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
(my_key: value, another_key: value) | |
({:my_key => value, :another_key => value}) |
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
(function ($) { | |
$.event.special.textchange = { | |
setup: function (data, namespaces) { | |
$(this).bind('keyup', $.event.special.textchange.handler); | |
$(this).bind('cut paste input', $.event.special.textchange.delayedHandler); | |
}, | |
teardown: function (namespaces) { |
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 bash | |
sudo mysqladmin shutdown | |
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
sed '/MYSQLCOM=-YES/ d' /etc/hostconfig |
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
set :application, 'foo' | |
set :repository, '_site' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :copy_compression, :gzip | |
set :use_sudo, false | |
set :host, '127.0.0.1' | |
role :web, host | |
role :app, host |
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
# Simple ubuntu setup instructions | |
# First create ssh keys | |
sudo apt-get update | |
sudo apt-get install build-essential | |
sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev | |
sudo apt-get install mysql-server mysql-client libmysqlclient-dev | |
sudo apt-get install git-core | |
# Install REE from source, install passenger and nginx |
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
[[ | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00" | |
], [ | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", | |
"ff0000", "00ffff", "0000ff", "00ff00", "ffff00", |
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
class Panel | |
# NOTES: | |
# When app initilizes, it should check all the existing LED's in the DB | |
# It should attempt to update them upon successful connection via serial | |
# Important! App should make sure it doesn't terminate the connection to the device | |
# App may need to send out a heartbeat every 30 seconds (guess) to keep connection alive | |
# After update of LED run something like Panel.new.send(22, 4, 'ff0000') | |
# TODO: |
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
/Users/jpsilvashy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError) |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>css_correct_width</title> | |
<style type="text/css" media="screen"> | |
/* because all browsers have a differnt opinion on alot of things like what the | |
* default size of an h1 is, what the default font-famliy is, and many things else, |
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/sh | |
cd ~/Downloads | |
echo ":::::::::: WGET" | |
# install wget, which is cleverer than curl | |
curl -O http://ftp.gnu.org/gnu/wget/wget-1.11.tar.gz | |
tar zxvf wget-1.11.tar.gz | |
cd wget-1.11 | |
./configure --prefix=/usr/local |