gravatar
raynes has 427 public pastes.
Paste 96248
January 18, 2015
1
2
3
4
5
coffee> juxt(((x) -> x * x), ((x) -> x + x))(5)
[ 25, 10 ]
coffee> 5 * 5
25
coffee> juxt(((x, y) -> x * y), ((x, y) -> x + y))(5, 10)
more...

Paste 96247
January 18, 2015
1
2
3
4
5
juxt = function() {
  var fns;
  fns = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
  return function() {
    var args, fn, _i, _len, _results;
more...

Paste 92467
October 30, 2014
1
2
3
4
5
    @staticmethod
    def get_downloader(name):
        """Convenience downloader factory."""
        downloader_module = import_module('revenew.' + name)
        classname = ''.join([word.capitalize()
more...

Paste 91989
October 19, 2014
1
ewferferferr

Paste 91570
October 10, 2014
1
2
3
4
5
(defmacro foldr [f coll]
  (cond
   (empty? coll) ()
   (= 1 (count coll)) (first coll)
   :else (list f (first coll)
more...

Paste 91569
October 10, 2014
1
2
3
4
5
(defmacro foldr [f coll]
  (cond
   (empty? coll) ()
   (= 1 (count coll)) (first coll)
   :else (list f (first coll)
more...

Paste 88071
July 10, 2014
1
2
3
        columns = ',\n'.join([name + ' ' + redshift_type
                              for name, redshift_type
                              in self.columns(table, overrides, nulls)])

Paste 88070
July 10, 2014
1
2
3
        columns = ',\n'.join([name + ' ' + redshift_type
                              for name, redshift_type
                              in self.columns(table, overrides, nulls)])

Paste 88069
July 10, 2014
1
2
3
        columns = ',\n'.join([name + ' ' + redshift_type
                             for name, redshift_type
                             in self.columns(table, overrides, nulls)])

Paste 87665
June 30, 2014
1
2
3
4
5
(defn list-channels [token]
   (->> (client/get "https://slack.com/api/channels.list"
                    {:as :json
                     :query-params {:token token}})
         :body
more...

Did you know? CLOSE

  • There are keyboard shortcuts!
    • When Creating A Paste
      • ALT+P Toggle Private
      • CTRL+Enter Create Paste
      • ALT+W Toggle word wrap
    • When Viewing A Paste
      • ALT+G Go to a line
      • ALT+CTRL+E Edit the paste
      • ALT+R Show the raw code
  • There are URL options!
    • When Creating A Paste
      • ?lang=Javascript to default to javascript
    • When Viewing A Paste
      • #L-N Jump to line number N
?