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
#!/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 | |
# |
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
Person.prototype.save = function() { | |
var person = this; | |
person.database.insert(person.properties, function(err, result) { | |
person.properties = result; | |
}); | |
}; | |
// becomes: | |
Person.prototype.save = 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
# 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 |
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
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 |
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
<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 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->assertEquals(sort([]), sort([1, 2, 3, 4])); |
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
$x = new DateTime(); | |
if ($x->diff) { echo "diff"; } else { echo "no"; } | |
// outputs no |
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
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'); | |
+ |
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
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') |
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
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", |
OlderNewer