Skip to content

Instantly share code, notes, and snippets.

@joelbyler
joelbyler / gist:4734729
Created February 7, 2013 22:14
Ruby Install-Fest Resources
Ruby Website
http://www.ruby-lang.org
http://www.jruby.org
http://www.rubyinstaller.org/downloads
http://www.rubyinstaller.org/add-ons/devkit
http://www.rvm.io
http://www.github.com/vertiginous/pik
Resources
@joelbyler
joelbyler / gist:6518022
Created September 11, 2013 00:59
tic tac toe sort of puts statement to command line... for future reference, may try a command line tic tac toe game.
puts "\r\n a | b | c \r\n---+---+---\r\n d | e | f \r\n---+---+---\r\n g | h | i \r\n\r\n"
a | b | c
---+---+---
d | e | f
---+---+---
g | h | i
@joelbyler
joelbyler / gist:7062708
Created October 19, 2013 23:11
Some links to common performance problems with VS
http://blog.geocortex.com/2007/12/07/slow-visual-studio-performance-solved/
@joelbyler
joelbyler / gdcr13cle
Last active December 31, 2015 01:59
GDCR 2013 Cleveland
Slides
https://docs.google.com/presentation/d/1AZiia0edI-BhlsEQHyapj7vZ3eXu6rTrPIAl4HZXgYQ/pub?start=true&loop=true&delayms=3000#slide=id.p
Day-Of Instructions
https://docs.google.com/document/d/1hbpJ5x4mhvnupjD9NTqkOUiNfQ_AiRP4VLPAA09wc8E/edit
Recorded Facilitator Training
http://coderetreat.org/video/coderetreat-facilitator-training-2012-11-28
Recorded Intro Example
@joelbyler
joelbyler / arduino_ligths_siren
Last active August 21, 2017 23:50
Arduino Sketch (very simply written)To start lights and siren
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led1 = 8;
@joelbyler
joelbyler / devise.rb
Created February 7, 2014 21:57
Sample Devise Initializer
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
config.secret_key = 'dontshowsecret'
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "[email protected]"
@joelbyler
joelbyler / police_cruiser_lights
Created February 15, 2014 17:17
Police Cruiser Lights Sketch
// PIN 1 is light bar power
// PIN 2 is red light on light bar
// PIN 3 is white driver side light
// PIN 4 is white passenger side light
// PIN 5 is blue light on light bar
// PIN 6 is marker lights
int led1 = 8;
int led2 = 9;
int led3 = 10;
int led4 = 11;
@joelbyler
joelbyler / gist:9554291
Created March 14, 2014 18:52
Pretty JSON Endpoint Tool
curl http://198.45.124.159/job/CSA_Report_Analytics_Tool/api/json | python -mjson.tool
@joelbyler
joelbyler / gist:10219412
Created April 9, 2014 02:10
Angular.js + jQuery + Harvest/Chosen + Custom Directive
<script>
var app = angular.module('myApp', []);
var myController = app.controller('myController', ['$scope', function ($scope, $timeout) {}]);
myController.directive('chosen', function(){
var linker = function(scope, element, attrs, ngModel) {
var model = attrs['ngModel'];
scope.$watch(model, function () {
@joelbyler
joelbyler / vim.md
Last active May 26, 2017 03:12
Vim cheat sheet

#Cursor movement

h - move left
j - move down
k - move up
l - move right
ctrl-b - page up
ctrl-f - page down
% - jump to matching brace

w - jump by start of words (punctuation considered words)