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
| # compile | |
| rm -rf dist | |
| mkdir dist | |
| coffee -o dist -c lib/main.coffee lib/defaultClient.coffee lib/Client.coffee lib/Socket.coffee lib/util.coffee | |
| # build | |
| node_modules/.bin/browserbuild -m main -b dist/ node_modules/engine.io-client/lib dist > protosock.js | |
| # minify | |
| node_modules/.bin/uglifyjs -nc --unsafe -mt -o protosock.min.js protosock.js |
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 'formula' | |
| class Pdf2htmlex < Formula | |
| homepage 'http://coolwanglu.github.com/pdf2htmlEX/' | |
| url 'https://github.com/coolwanglu/pdf2htmlEX/tarball/master' | |
| head 'https://github.com/coolwanglu/pdf2htmlEX.git' | |
| depends_on 'cmake' => :build | |
| depends_on 'fontforge' |
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 'formula' | |
| class Pdf2htmlex < Formula | |
| homepage 'http://coolwanglu.github.com/pdf2htmlEX/' | |
| url 'https://github.com/coolwanglu/pdf2htmlEX/tarball/master' | |
| version '0.3.2' | |
| head 'https://github.com/coolwanglu/pdf2htmlEX.git' | |
| depends_on 'cmake' => :build | |
| depends_on 'fontforge' |
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
| sudo sh -c 'echo "proxyserver=\"chisproxy.amers.ibechtel.com\" | |
| proxyport=\"8080\" | |
| git config --global url.https://github.com/.insteadOf git://github.com/ | |
| function proxy(){ | |
| echo -n \"Bechtel Username: \" | |
| read -e username | |
| echo -n \"Bechtel Password: \" | |
| read -es password | |
| export http_proxy=\"http://\$username:\$password@\$proxyserver:\$proxyport\" |
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
| rivets.configure({ | |
| adapter: { | |
| subscribe: function(obj, keypath, callback) { | |
| if (obj instanceof Backbone.Collection) { | |
| obj.on('add remove reset', function () { | |
| callback(obj[keypath]) | |
| }); | |
| } else { | |
| obj.on('change:' + keypath, function (m, v) { callback(v) }); | |
| }; |
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
| FooterV = SomeViewInstance; | |
| MainV = SomeViewInstace; | |
| MyLayout = Backbone.Layout.extend({ | |
| template: function(){ | |
| // this can be any js function that returns html or a jquery el | |
| return "<div id='sidebar'/><div id='main'/><div id='footer'/>"; | |
| }, | |
| // Define friendly names for regions |
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 mongoose = require('mongoose'); | |
| var http = require('http'); | |
| var JSONStream = require('JSONStream'); | |
| var PersonSchema = new mongoose.Schema({ | |
| name: String, | |
| num: Number | |
| }); | |
| mongoose.connect("mongodb://localhost:27017"); |
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
| function djb2(s) | |
| r = 5381 | |
| for i in s | |
| c = int(i) | |
| r = r + (r << 5) + c | |
| end | |
| return r | |
| end | |
| println(djb2("test")) |
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
| [][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]][([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+([][[]]+[])[+[[+!+[]]]]+(![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[+!+[]]]]+([][[]]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[ |
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
| JSON.stringify($("img").map(function () { | |
| var e = $(this); | |
| return { | |
| url: e.parent().attr('href'), | |
| image: e.attr('src') | |
| }; | |
| }).get()); |