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
| Request URL:http://ads.intergi.com/adrawdata/3.0/5205/2408430/0/2898/ADTECH;referring_url=http%3A%2F%2Fmotd.pinion.gg%2Fmotd%2Foffice%2Fintergihtml5wcookie.html;number=1353021571;time=1353021571;cors=yes;acao=motd.pinion.gg | |
| Request Headers | |
| GET http://ads.intergi.com/adrawdata/3.0/5205/2408430/0/2898/ADTECH;referring_url=http%3A%2F%2Fmotd.pinion.gg%2Fmotd%2Foffice%2Fintergihtml5wcookie.html;number=1353021571;time=1353021571;cors=yes;acao=motd.pinion.gg HTTP/1.1 |
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
| // Generated by CoffeeScript 1.4.0 | |
| (function() { | |
| var fs, http, qs, server; | |
| http = require("http"); | |
| qs = require("querystring"); | |
| fs = require("fs"); |
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
| // Include the CoffeeScript interpreter so that .coffee files will work | |
| var coffee = require('coffee-script'); | |
| // Include our application file | |
| var app = require('./app.coffee'); |
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
| // Design Doc: | |
| { | |
| "_id": "_design/things", | |
| "_rev": "3-c05af422e754a6734d1843e309fa1135", | |
| "language": "javascript", | |
| "views": { | |
| "filter": { | |
| "map": "function(doc) { emit([doc.country, doc.city], doc); }" | |
| } |
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
| var upnode = require('../'); | |
| var dnode = require('dnode'); | |
| var test = require('tap').test; | |
| var net = require('net'); | |
| test('simple', function (t) { | |
| t.plan(1); | |
| var port = Math.floor(Math.random() * 5e4 + 1e4); | |
| var up = upnode.connect(port); |
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
| var http = require('http'); | |
| opts = { | |
| domain: 'google.com' | |
| } | |
| http.get(opts, function(res) { | |
| response = '' | |
| res.on('data', function(data) { | |
| response += data.toString() | |
| } | |
| res.on('end', function() { |
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
| . | |
| ├── bin | |
| │ └── gotour | |
| ├── pkg | |
| │ └── darwin_amd64 | |
| │ └── code.google.com | |
| └── src | |
| ├── code.google.com | |
| └── github.com | |
| └── davidbanham |
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
| #Sometimes I want to munge data that I've pulled from a backend with Angular. The Promises implementation augments the object with it's own $properties and I don't want to munge those. | |
| app = angular.module 'GetOffMyLawn' | |
| app.controller 'DangKids', ($scope, $resource) -> | |
| Wat = $resource '/wat' | |
| Wat.get {}, (data) -> | |
| #data is something like { foo: {something: 1, somethingElse: 2} } |
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
| // Include the CoffeeScript interpreter so that .coffee files will work | |
| var coffee = require('coffee-script'); | |
| // Explicitly register the compiler if required. This became necessary in CS 1.7 | |
| if (typeof coffee.register !== 'undefined') coffee.register(); | |
| // Include our application file | |
| var app = require(process.argv[2] || './app.coffee'); |
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
| class TokenAdder | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| status, headers, body = @app.call(env) | |
| response = Rack::Response.new body, status, headers |