Skip to content

Instantly share code, notes, and snippets.

View Planeshifter's full-sized avatar
🎯
Focusing

Philipp Burckhardt Planeshifter

🎯
Focusing
View GitHub Profile
{"Month":[10,12,1,8,1,7,9,3,9,6,1,12,12,5,11,9,4,6,5,11,8,2,10,5,1,3,1,2,12,8,3,6,1,4,5,1,12,8,10,4,4,9,4,2,7,6,7,10,4,5,1,5,7,7,5,10,2,4,7,1,10,6,1,8,5,6,8,5,7,8,6,8,5,4,4,5,5,6,3,8,3,11,7,7,3,6,6,12,9,1,4,1,6,3,8,9,3,12,12,8,2,7,3,7,11,9,2,11,1,7,3,1,5,3,8,6,5,10,9,10,2,6,2,6,3,11,12,6,7,3,5,4,4,8,6,3,10,3,4,4,11,8,7,2,11,1,2,4,12,8,6,2,12,7,4,8,7,1,1,5,5,9,11,12,12,5,6,9,5,6,5,8,8,8,9,6,5,9,2,7,6,2,7,10,3,8,7,9,10,8,12,3,7,7,1,5,5,3,2,1,12,2,2,1,1,3,7,4,1,8,9,12,11,7,5,12,3,12,7,9,1,12,12,5,6,12,2,9,12,2,1,12,1,4,6,3,12,8,8,7,9,1,3,8,12,12,8,10,5,9,12,3,12,1,12,5,8,12,6,12,6,10,9,7,3,12,4,3,11,9,2,2,4,7,3,6,2,7,4,6,8,7,2,3,3,4,10,3,5,10,12,12,10,5,2,4,2,8,4,5,3,1,8,12,4,8,1,2,1,10,4,5,6,8,7,12,3,8,12,3,6,7,9,6,6,2,8,3,5,8,9,5,4,6,5,5,5,1,7,2,4,1,9,2,6,12,9,7,12,6,10,4,5,12,1,10,6,5,2,4,3,9,3,9,3,7,2,5,12,4,1,11,1,5,3,2,7,7,10,7,5,5,6,7,1,8,9,10,2,12,12,3,12,6,3,5,12,11,6,4,8,6,12,12,7,6,11,7,1,12,7,7,9,2,8,4,10,10,12,6,11,4,5,3,3,7,9,3,1,4,3,1,6,3,3,11,11,7,5,6,3,5,7,2,5,3,12,6,8,6,10,3,5,7,3,3,9,3,6,12,10

Sample

Sample elements from an array-like object.

@Planeshifter
Planeshifter / .tern-config
Last active September 27, 2015 20:40
TernJS Configuration FIle
{
"libs": {
"browser",
"ecma5",
"ecma6"
},
"plugins": {
"complete_strings": {},
"node": {},
"requirejs": {},
@Planeshifter
Planeshifter / exec.R
Last active August 29, 2015 14:24
Run a JS file from R
system("node fun.js myaddress")
@Planeshifter
Planeshifter / gist:1e2eedb5eb68e038d4c3
Created April 29, 2015 14:53
Execute mongo script
mongo --quiet sample.js > sample.json
@Planeshifter
Planeshifter / javascript_resources.md
Last active August 29, 2015 14:14 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@Planeshifter
Planeshifter / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#include <iostream>
#include <fstream>
int main(){
ofstream outFile("c:\\data\\test.txt", iod::out);
outFile << 20;
outFile.close();
return 0;
}
@Planeshifter
Planeshifter / mongo to JSON
Created November 30, 2014 21:10
dump mongo query output to JSON file
mongo dbname -eval "printjson(db.collection.find({}))" >> output.json
@Planeshifter
Planeshifter / gist:faf05155f2fb4225728f
Last active August 29, 2015 14:09
Nested Groups in Regular Expressions
(https?:\/\/([\w.-/~-]+))