Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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: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:4707045
Created February 4, 2013 14:35
Lock your windows desktop from the command line.
rundll32.exe user32.dll, LockWorkStation
@joelbyler
joelbyler / javascript-editor-tab
Last active December 12, 2015 02:38
JavaScript Notepad Bookmarklet
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/twilight");e.getSession().setMode("ace/mode/javascript");</script>
@joelbyler
joelbyler / gist:4227050
Created December 6, 2012 18:51
Cleveland GDCR Slides
https://docs.google.com/presentation/pub?id=19WUpckSOMRVyIhKuD9z7x4lYWq5JzF5swZYCVNPjf0I&start=true&loop=true&delayms=1000#slide=id.g17779a8_1_104
@joelbyler
joelbyler / gist:4225565
Created December 6, 2012 15:57
Cucumber Rerun Rake Task
require 'cucumber/rake/task'
def run_rake_task(name)
begin
Rake::Task[name].invoke
rescue Exception => e
return false
end
true
end