Skip to content

Instantly share code, notes, and snippets.

View hoorayimhelping's full-sized avatar

Bucky Schwarz hoorayimhelping

View GitHub Profile
@hoorayimhelping
hoorayimhelping / hack.sh
Created March 31, 2012 13:12 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@hoorayimhelping
hoorayimhelping / gist:4959334
Created February 15, 2013 09:22
Replace context binding to a variable with built in function
Person.prototype.save = function() {
var person = this;
person.database.insert(person.properties, function(err, result) {
person.properties = result;
});
};
// becomes:
Person.prototype.save = function() {
# Define a procedure, abbaize, that takes
# two strings as its inputs, and returns
# a string that is the first input,
# followed by two repetitions of the second input,
# followed by the first input.
def abbaize('a','b'):
a = 'a'+'b'
b = 'b'+'a'
return a+b
cl_radar_rotate 1
cl_radar_always_centered 0
cl_radar_scale 0.55
cl_radar_icon_scale_min .5
cl_crosshairthickness 1.1
cl_crosshaircolor 2
cl_crosshairsize 2.5
cl_crosshairdot 0
cl_crosshairalpha 235
<head>
<?php
$fileName = basename(__FILE__);
switch($fileName){
case 'content/test.inc.php':
echo '<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css">';
echo '<link rel="stylesheet" href="https://d3egb1p3jkzgcl.cloudfront.net/donde-style-v2.min.css">';
echo '<link rel="stylesheet" href="http://api.donde.io/css/53299c5e7ec08ebbfe000017">';
break;
case 'some/other/file/here.php': // if you want to do something if the file is different than test.inc.php, check for it here
$this->assertEquals(sort([]), sort([1, 2, 3, 4]));
$x = new DateTime();
if ($x->diff) { echo "diff"; } else { echo "no"; }
// outputs no
diff --git a/gulpfile.js b/gulpfile.js
index b166623..fe7ae80 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,6 +5,8 @@ var jshint = require('gulp-jshint');
var browserify = require('browserify');
var tape = require('gulp-tape');
+var shell = require('gulp-shell');
+
diff --git a/gulpfile.js b/gulpfile.js
index fe7ae80..c0b13dc 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -28,6 +28,11 @@ gulp.task('test', shell.task([
'tape ' + paths.js_test + '* | faucet',
]));
+gulp.task('test-debug', function() {
+ return gulp.src(paths.js_test + '/*.js')
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..82fafa2
--- /dev/null
+++ b/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "graph",
+ "version": "0.0.1",
+ "description": "A simple graph library",