Skip to content

Instantly share code, notes, and snippets.

@kevincolten
kevincolten / protocol.md
Last active August 29, 2015 14:25
Tornado Sandbox

ClientDataStore operations

Stores actual columns of data on the client. Used by lightweight "data source" models. Supports performing the following CRUD operations.

  • create new columns

  • replace all columns

@kevincolten
kevincolten / notes.md
Last active August 29, 2015 14:26
Notes

brew install mysql

mysql.server start

mysql -uroot

sudo /usr/bin/Weavedssh22.sh start|stop|restart

sudo /usr/bin/Weavedweb80.sh start|stop|restart

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevincolten
kevincolten / lines.html
Created August 12, 2015 16:53
Comparing Consecutively Ran Bokeh Plots
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>line.py example</title>
<link rel="stylesheet" href="bokehjs/build/css/bokeh.css" type="text/css" />
<script type="text/javascript" src="bokehjs/build/js/bokeh.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
@kevincolten
kevincolten / TowersOfHanoi.js
Last active September 6, 2015 03:52
Towers of Hanoi (GUI)
$(document).ready(function() {
var block;
function checkForWin() {
var gameWon = false;
$('[data-stack]').each(function () {
if ($(this).data('stack') !== 1 && $(this).children().length === 4) {
gameWon = true;
}
});
@kevincolten
kevincolten / index.html
Created September 7, 2015 05:04
Material Backbone App
<!---->
@kevincolten
kevincolten / WordSearch.js
Last active September 13, 2015 15:37
Algorithms
'use strict';
// https://www.youtube.com/watch?v=kPRA0W1kECg
var LineByLineReader = require('line-by-line');
var prompt = require('prompt');
var wordList = new LineByLineReader('./sample_words.txt');
var words = [];
@kevincolten
kevincolten / PigLatin.js
Created September 19, 2015 15:07
Pig Latin App
'use strict';
var prompt = require('prompt');
prompt.start();
prompt.get(['word'], function(err, result) {
var word = result['word'];
var vowelIndex = word.indexOf('a');
if ( (word.indexOf('e') > -1 && word.indexOf('e') < vowelIndex) || (vowelIndex === -1) ) {
@kevincolten
kevincolten / TicTacToe.js
Last active September 19, 2015 20:56
Tic Tac Toe
'use strict';
var prompt = require('prompt');
prompt.start();
var board = [
[' ', ' ', ' '],
[' ', ' ', ' '],
[' ', ' ', ' '],
[' ', ' ', ' ']