Skip to content

Instantly share code, notes, and snippets.

View jpsilvashy's full-sized avatar
🎯
Focusing

JP Silvashy jpsilvashy

🎯
Focusing
  • Raad
  • Las Vegas, San Francisco & New York
  • 04:18 (UTC -07:00)
  • X @jpsilvashy
View GitHub Profile
(my_key: value, another_key: value)
({:my_key => value, :another_key => value})
(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) {
#!/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
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
# 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
[[
"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",
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:
/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)
<!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,
#!/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