This file contains 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
@echo off | |
if "%1" == "" goto error | |
if not "%opencl_dir%" == "" goto build | |
echo ############# Setting env vars ############# | |
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" | |
set opencl_dir=C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCL\common | |
:build |
This file contains 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
$ npm install socketstream -g | |
/usr/local/bin/socketstream -> /usr/local/lib/node_modules/socketstream/bin/socketstream | |
> zeromq@0.5.1 preinstall /usr/local/lib/node_modules/socketstream/node_modules/zeromq | |
> node-waf clean || true; node-waf configure build | |
Nothing to clean (project not configured) | |
Setting srcdir to : /usr/local/lib/node_modules/socketstream/node_modules/zeromq | |
Setting blddir to : /usr/local/lib/node_modules/socketstream/node_modules/zeromq/build | |
Checking for program g++ or c++ : /usr/bin/g++ |
This file contains 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
{ echo -ne "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: text/plain\r\n\r\n"; node -v; } | nc.traditional -l -p 8001 |
This file contains 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'), | |
httpProxy = require('http-proxy'); | |
var proxy = new httpProxy.HttpProxy(); | |
proxy.on('proxyError', function(err, req, res) { | |
console.log('proxy.error: ' + err); | |
}); | |
proxy.on('end', function(req, res) { |
This file contains 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
/* | |
* Author: Daniel Tralamazza <tralamazza@gmail.com> | |
* | |
* Patch Socket for a before connect event. | |
* Important! You must require this module before anything else. | |
* | |
* Usage: | |
* | |
* var patch = require('./bind_hack'); | |
* var bind_f = process.binding('net').bind; |
This file contains 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
/* | |
* breathalizer.cpp | |
* | |
* Created on: Aug 13, 2011 | |
* Author: Daniel Tralamazza <daniel@tralamazza.com> | |
* URL: http://www.facebook.com/careers/puzzles.php?puzzle_id=17 | |
*/ | |
#define NORVIG | |
#define FACEBOOK |
This file contains 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
$ sbt | |
[info] Loading global plugins from C:\Users\daniel.m.tralamazza\.sbt\plugins | |
[info] Loading project definition from C:\Users\daniel.m.tralamazza\Projects\sbt | |
eclipse\example\project | |
[info] Updating {file:/C:/Users/daniel.m.tralamazza/Projects/sbteclipse/example/ | |
project/}default-6af6fc... | |
[info] Resolving default#default-ae3a02;0.0 ... | |
[info] Resolving org.scala-tools.sbt#sbt_2.9.1;0.11.1 ... | |
[info] Resolving org.scala-tools.sbt#main_2.9.1;0.11.1 ... | |
[info] Resolving org.scala-tools.sbt#actions_2.9.1;0.11.1 ... |
This file contains 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace EnumHelper | |
{ | |
public class EnumeratorAdapter<T, K> : IEnumerator<K> | |
{ | |
private IEnumerator<T> Enumerator = null; |
This file contains 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
UI frameworks | |
* https://github.com/appMobi/jQ.Mobi | |
* https://github.com/senchalabs/jQTouch | |
MVC frameworks | |
* https://github.com/documentcloud/backbone/ | |
* http://spinejs.com/ | |
* https://github.com/emberjs/ember.js | |
* https://github.com/SteveSanderson/knockout/ |
This file contains 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/sh | |
find . -name *.xib | xargs ruby -ne '$_.match(/<string key="(.*)">(.*)<\/string>/){|m|puts "\"#{m[2]}\" = \"#{m[2]}\";" if m[1] =~ /IB.*Title/}' | |
find . -name *.m | xargs ruby -ne '$_.scan(/NSLocalizedString\s*\(\s*@"([^"]*)"\s*,[^)]*\)/){|m|puts "\"#{m[0]}\" = \"#{m[0]}\";"}' | |
find . -name *.m | xargs ruby -ne '$_.scan(/__\(\s*@"([^"]*)"\s*\)/){|m|puts "\"#{m[0]}\" = \"#{m[0]}\";"}' |
OlderNewer