Skip to content

Instantly share code, notes, and snippets.

@heyjordn
heyjordn / index.html
Last active February 7, 2016 05:16
Force Directed graph of Jamaica!
<html>
<meta charset="utf-8">
<style>
/* CSS goes here. */
line {
stroke: #999;
stroke-width: .5px;
}
@heyjordn
heyjordn / .gitignore
Last active August 28, 2015 18:37 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@heyjordn
heyjordn / gulpfile-express.js
Last active August 29, 2015 14:27 — forked from mollerse/gulpfile-express.js
Gulpfile for livereload + static server
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
embedlr = require('gulp-embedlr'),
refresh = require('gulp-livereload'),
lrserver = require('tiny-lr')(),
express = require('express'),
livereload = require('connect-livereload')
livereloadport = 35729,
@heyjordn
heyjordn / gulpfile.js
Created May 15, 2015 04:53
Common build and optimizing tasks using Gulp.js (minify JS, minify CSS and optimize images for web)
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var rename = require('gulp-rename');
var cssmin = require('gulp-cssmin');
/*
*Command: gulp uglify
* Minifies or "uglifies" JavaScript files for faster load time.
*/
@heyjordn
heyjordn / inapp.js
Last active August 29, 2015 14:20
Open Dynamic Links Using The Cordova InAppBrowser (ionicFramework)
document.onclick = function (e) {
e = e || window.event;
var element = e.target || e.srcElement;
if (element.tagName == 'A') {
window.open(element.href, "_blank", "location=yes");
return false;
}
}
@heyjordn
heyjordn / scope-list.txt
Created March 17, 2015 14:46
Sublime Text 3 snippets Scope List
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
CSS: source.css
D: source.d
@heyjordn
heyjordn / input.py
Created March 1, 2015 04:26
Used mainly for formatting input on Hackerrank.com
#Input Script template
def inputScript():
A = []
strng = input()
#trims whitespace
trimmed = strng.replace(" ", "")
ind = list(map(int, trimmed))
print(ind)
@heyjordn
heyjordn / node-webkit.sublime-build
Created February 22, 2015 03:17
Sublime text 3 build system for Node-Webkit
{
"cmd": ["nw", "${project_path:${folder}}"],
"working_dir": "${project_path:${folder}}",
"path": "<pathToNodeWebkit>"
}