This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Originally: | |
| https://gist.github.com/7565976a89d5da1511ce | |
| Hi Donald (and Martin), | |
| Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I | |
| appreciate the tone. This is a Yegge-long response, but given that you and | |
| Martin are the two people best-situated to do anything about this, I'd rather | |
| err on the side of giving you too much to think about. I realize I'm being very | |
| critical of something in which you've invested a great deal (both financially |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn scaffold | |
| "Print the ancestor method signatures of a given interface." | |
| [iface] | |
| (doseq [[iface methods] (->> iface | |
| .getMethods | |
| (map #(vector (.getName (.getDeclaringClass %)) | |
| (symbol (.getName %)) | |
| (count (.getParameterTypes %)))) | |
| (group-by first))] | |
| (println (str " " iface)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "faraday" | |
| require 'typhoeus' | |
| conn = Faraday.new(:url => 'http://httpstat.us') do |builder| | |
| builder.request :url_encoded | |
| builder.response :logger | |
| builder.adapter :typhoeus | |
| end | |
| conn.in_parallel do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SC.initialize({ | |
| client_id: "YOUR_CLIENT_ID" | |
| }); | |
| SC.whenStreamingReady(function() { | |
| SC.stream(TRACK_ID, { | |
| ontimedcomments: function(comments) { | |
| var comment, _i, _len; | |
| for (_i = 0, _len = comments.length; _i < _len; _i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $VERBOSE = nil | |
| require File.expand_path('../rooby', __FILE__) | |
| Person = Rooby::Class.new 'Person' do | |
| define :initialize do |name| | |
| @name = name | |
| end | |
| define :name do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| | FUCKIN PUSSIES | |
| 13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
| 13:16 <luite> | hello | |
| 13:16 <ChongLi> | somebody has a mental illness! | |
| 13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| | compelled to write Node.js! | |
| 13:16 <genisage> | hi | |
| 13:16 <luite> | you might be pleased to learn that you can compile | |
| | haskell to javascript now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Monads where | |
| {- runhaskell Monads.hs -} | |
| import Prelude hiding (Monad, (>>=), return) | |
| {- | |
| Laws: | |
| * Associativity: `m >>= f >>= g` is equivalent to `m >>= \x -> f x >>= g` |
OlderNewer