Skip to content

Instantly share code, notes, and snippets.

Tim Kock timkock

Block or report user

Report or block timkock

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
</head>
<body>
<script id="jsbin-javascript">
var width = 960,
@timkock
timkock / bootstrap.sh
Last active Mar 17, 2017
AZURE NV* BOOTSTRAP SCRIPT
View bootstrap.sh
#!/bin/sh -e
# /etc/rc.local
### BEGIN INIT INFO
# Provides: vmbootstrap
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: vmbootstrap
@timkock
timkock / weather.ipynb
Last active Jan 25, 2017
simple notebook to get to demonstrate notebooks to the uninitiated
View weather.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timkock
timkock / format.js
Last active Jan 25, 2016
json re-formatter
View format.js
// npm install lodash glob
// dependencies
var glob = require('glob');
var _ = require('lodash');
var path = require('path');
var fs = require('fs');
// unformatted files are in a subfolder 'index'
// output subfolder 'parsed' has already been made
@timkock
timkock / rmnodemodules.sh
Created Dec 6, 2015
removes nested node_modules directories to clean unwanted data for backup or other purposes
View rmnodemodules.sh
find . -name "node_modules" -exec rm -rf '{}' +
View sing.js
'use strict';
// instructions
// 0. save this code to sing.js
// 1. npm install request cheerio commander
// 2. node sing.js -l http://tinyurl.com/qxmreql -s 50
// dependencies
var request = require('request')
, cheerio = require('cheerio')
@timkock
timkock / hugs.js
Last active Oct 21, 2015
Everyone needs some love
View hugs.js
'use strict';
/////////////////////
// COLLECTIEF HUGS //
/////////////////////
// dependencies
var inquirer = require('inquirer')
, nyanstream = require('nyanstream')
, colors = require('colors')
You can’t perform that action at this time.