This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Interactive Ruby console configuration | |
# use x = _ to assign to last output | |
# use 'method' to determine where a method is defined | |
# e.g. User.method(:acts_as_commentable) | |
IRB_START_TIME = Time.now | |
# Print to yaml format with "y" | |
require 'yaml' | |
# Pretty printing | |
require 'pp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
raise "gimme a file!" unless ARGV[0] | |
# This script allows for quick github-flavored-markdown previewing. | |
# Inspiration/code from the following | |
# http://grosser.it/2009/06/17/quick-markdown-preview-for-github-readme/ | |
# https://gist.github.com/1300939 | |
# https://github.com/alampros/Docter | |
# http://blog.steveklabnik.com/posts/2011-12-21-redcarpet-is-awesome | |
# | |
# You will need the following gems: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pins[] = {11, 10, 9}; // R, G, B | |
int pinCnt = sizeof(pins) / sizeof(pins[0]); | |
String mode = "not test"; //set to test to debug | |
String mesg = "Pin "; | |
void ledDown(int pin, int lag){ | |
Serial.println(mesg + pin + " going down"); | |
for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) { | |
analogWrite(pin, fadeValue); | |
delay(lag); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pins[] = {11, 10, 9}; // R, G, B | |
int pinCnt = sizeof(pins) / sizeof(pins[0]); | |
String mode = "not test"; //set to test to debug | |
String mesg = "Pin "; | |
void setup() | |
{ | |
Serial.begin(9600); | |
if (mode == "test") { | |
for (int i=0; i < pinCnt; i++){ | |
pinMode(pins[i], OUTPUT); // set pin modes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
usage() | |
{ | |
echo "usage: `basename ${0}` [-h] | |
This script creates a new branch and sets upstream to origin. Specify the branch name as the first and only argument. | |
" >&2 | |
exit $1 | |
} | |
git branch $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
<!-- Yii seems to be including jquery automagically - we don't need this line | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js" type="text/javascript"></script> | |
--> | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.ui.min.js" type="text/javascript"></script> | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.tag.it.js" type="text/javascript"></script> | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.tools.js" type="text/javascript"></script> | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.select.box.js" type="text/javascript"></script> | |
======= | |
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/admin.scripts.min.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"pathogen runtime | |
source ~/.vim/bundle/vim-pathogen/autoload/pathogen.vim | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"system clipboard | |
set guioptions=aA | |
"paste indent fix toggle | |
nnoremap <F3> :set invpaste paste?<CR> | |
set showmode | |
set pastetoggle=<F3> |
NewerOlder