Skip to content

Instantly share code, notes, and snippets.

// CommonJS require()
// monkey patched from version in visionmedia/mocha
// https://raw.github.com/visionmedia/mocha/master/mocha.js
// (which was in turn based on original by weepy #justsaying)
// added lines are commented
function require(p) {
var path = require.resolve(p)
, mod = require.modules[path];
Ld /Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos/trackjam.app/trackjam normal armv7
cd /Users/weepy/dev/dawn/junglator4
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs -L/Users/weepy/dev/dawn/junglator4/../dawn-src/modules/core/ios-libs -L/Users/weepy/dev/dawn/junglator4 -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs/armv7 -L/Users/weepy/dev/dawn/daw
Ld /Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos/trackjam.app/trackjam normal armv7
cd /Users/weepy/dev/dawn/junglator4
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs -L/Users/weepy/dev/dawn/junglator4/../dawn-src/modules/core/ios-libs -L/Users/weepy/dev/dawn/junglator4 -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs/armv7 -L/Users/weepy/dev/dawn/daw
Ld /Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos/trackjam.app/trackjam normal armv7
cd /Users/weepy/dev/dawn/junglator4
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/weepy/Library/Developer/Xcode/DerivedData/junglator-elqsgwwsybdmhtfuccsjkcpdlovb/Build/Products/Debug-iphoneos -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs -L/Users/weepy/dev/dawn/junglator4/../dawn-src/modules/core/ios-libs -L/Users/weepy/dev/dawn/junglator4 -L/Users/weepy/dev/dawn/junglator4/../dawn-src/static-libs/armv7 -L/Users/weepy/dev/dawn/daw
@weepy
weepy / gist:6009631
Last active March 16, 2022 18:18
Cubic Roots Solver Function in JS
function CubicSolve(a, b, c, d){
b /= a;
c /= a;
d /= a;
var discrim, q, r, dum1, s, t, term1, r13;
q = (3.0*c - (b*b))/9.0;
r = -(27.0*d) + b*(9.0*c - 2.0*(b*b));
@weepy
weepy / gist:6006819
Created July 16, 2013 08:20
Example : missing intersection in Raphael.pathIntersection
<body style='background:#000'>
<script src='http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js'></script>
<script>
var path = "M50.975,83.158C79.822,82.37700000000001,81.971,83.114,84.97999999999999,83.15700000000001V85.03200000000001Z"
// no intersections ...
var zigzag = "M69.575,90.190 L69.575,28.290"
<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="520" version="1.1" height="500"><path transform="matrix(1,0,0,1,0,0)" fill="none" stroke="#f00" d="M32.63297050498895,30.682621982774982L31.317,32.963L36.65,31.724L40.668,32.766L33.326,37.483L35.335,42.003L44.686,33.807L48.703,34.849L37.344,46.524L39.353,51.044L52.721,35.891L56.738,36.932L41.362,55.564L43.371,60.085L60.755,37.974L64.773,39.015L45.38,64.605L47.389,69.125L68.79,40.057L72.808,41.098L49.398,73.645L51.407,78.165L76.825,42.14L80.842,43.181L53.416,82.685L55.425,87.206L84.86,44.223L88.878,45.265L57.434,91.727L59.443,96.247L92.895,46.306L96.913,47.348L61.452,100.767L63.461,105.287L100.93,48.389L104.947,49.431L65.47,109.808L67.479,114.328L108.965,50.472L112.982,51.514L69.488,118.848L71.497,123.368L116.999,52.555L121.018,53.597L73.506,127.888L75.515,132.409L125.035,54.639L129.052,55.68L77.524,136.93L79.533,141.45L133.07,56.722L137.087,57.763L81.542,145.97L83.551,150.49L
@weepy
weepy / gist:5453276
Created April 24, 2013 16:01
simple observer
function watch(o, prop, fn) {
var interval = 100
var value = o[prop]
function check() {
if(o[prop] != value) {
fn(o[prop], value)
value = o[prop]
}
@weepy
weepy / gist:4174659
Created November 30, 2012 09:11
easy json
'', undefined
'a', "a"
'1', 1
'true', true
'"true"', "true"
'undefined', undefined
'a', "a"
npm http GET https://registry.npmjs.org/component
npm http 200 https://registry.npmjs.org/component
npm http GET https://registry.npmjs.org/component/-/component-0.9.0.tgz
npm http 200 https://registry.npmjs.org/component/-/component-0.9.0.tgz
npm http GET https://registry.npmjs.org/term-css/1.0.0
npm http GET https://registry.npmjs.org/commander/1.0.5
npm http GET https://registry.npmjs.org/superagent/0.9.3
npm http GET https://registry.npmjs.org/component-builder/0.4.2
npm http GET https://registry.npmjs.org/string-to-js/0.0.1
npm http GET https://registry.npmjs.org/jog/0.4.0