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
| (ns helloclosure | |
| (:require [goog.net.Jsonp :as jsonp])) | |
| (defn show [msg] | |
| (let [data-as-json ((js* "JSON.stringify") msg nil 4)] | |
| ((js* "alert") data-as-json))) | |
| (defn doajax [] | |
| (.send (goog.net.Jsonp. (goog.Uri. "http://api.stackoverflow.com/1.1/users/268619") "jsonp") | |
| nil |
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
| const | |
| util = require('util'), | |
| net = require('net'), | |
| crypto = require('crypto'), | |
| fs = require('fs'), | |
| Buffer = require('buffer').Buffer, | |
| http = require('http'), | |
| url = require('url'); | |
| var privateKey = fs.readFileSync('../cert/privatekey.pem').toString(); |
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
| fastcgi.server = ( ".js" => | |
| (( "socket" => "/tmp/js-fastcgi.socket", | |
| "bin-path" => "/node-fastcgi/examples/responder.js", | |
| "check-local" => "disable" | |
| )) | |
| ) |
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
| #!/usr/bin/env node | |
| var argv = require('optimist') | |
| .usage('Usage: --key=[consumer key] -secret=[consumer secret]') | |
| .demand(['key', 'secret']) | |
| .argv | |
| ; | |
| var OAuth = require('oauth').OAuth; | |
| var Step = require('step'); |
NewerOlder