Skip to content

Instantly share code, notes, and snippets.

Avatar

Sander Houttekier saelfaer

View GitHub Profile
View config.edn
{:meta/version 1
;; Currently, we support either "Markdown" or "Org".
;; This can overwrite your global preference so that
;; maybe your personal preferred format is Org but you'd
;; need to use Markdown for some projects.
;; :preferred-format ""
;; Preferred workflow style.
;; Value is either ":now" for NOW/LATER style,
@saelfaer
saelfaer / install_robomongo.sh
Created Apr 28, 2014
This file installs robomongo on your ubuntu / mint linux install
View install_robomongo.sh
#!/bin/bash -e
# Script for installing Robomongo on Ubuntu.
# Copyright 2013 Binary Birch Tree
# http://www.binarybirchtree.com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@saelfaer
saelfaer / .gitignore
Created Apr 11, 2013
gitignore file to ignore following patterns on committing to a git repository #snippet
View .gitignore
# node js development
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
@saelfaer
saelfaer / name.sublime-project
Last active Sep 26, 2016
Sublime Project File #snippet #sublimetext
View name.sublime-project
{
"folders":
[
// add paths per directory you want to show
{
// relative paths to the root
"path": "/",
// optionally give it a different name
"name": "My Project",
// possible folders to exclude
@saelfaer
saelfaer / js_hint_config.js
Created Mar 8, 2013
js hint config #snippet #jshintrc
View js_hint_config.js
{
"passfail" : false,
"maxerr" : 10000,
"browser" : true,
"node" : false,
"rhino" : false,
"couch" : false,
"wsh" : false,
@saelfaer
saelfaer / js_hint_config_commented.js
Last active Dec 14, 2015 — forked from voidfiles/js_hint_conf.js
js hint config #snippet
View js_hint_config_commented.js
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 10000, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
View toc.js
/**
* @author Louis Stowasser <louisstow@gmail.com>
* License: MIT
*/
function generateTOC (rootNode, startLevel) {
var lastLevel = 0;
startLevel = startLevel || 2; //which H# tag to start indexing.
var html = "<ul>";
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
robot.clone();
robot.turn(45);
this.offset = 1;
};
Robot.prototype.onIdle = function(ev) {