Skip to content

Instantly share code, notes, and snippets.

View jonmagic's full-sized avatar

Jonathan Hoyt jonmagic

View GitHub Profile

clarified butter

@mixin pretty_button($font_size, $gradient_color) {
$border:$font_size/2;
span {
font-size:$font_size;
line-height:$font_size * 2;
margin:$border;
padding:$font_size/3+1px $font_size*1.5;
position:relative;
text-align:center;
@include background-image(linear-gradient(top, $gradient_color, adjust-lightness($gradient_color, -15)));
@jonmagic
jonmagic / HipChat CSS mods
Created January 12, 2011 22:37
HipChat CSS Mods
a.download {display:none;}
#status_ui {display:block !important;}
div.welcomeMessage {display:none;}
Saturday
hamburgers with sweet potato fries & corn on the cob
Sunday
BLT's
Whole Sea Bass with Charred Serrano-Basil Vinaigrette, steamed broccoli & roasted potatoes
Monday
Stir-Fried Baby Bok choy & carrots with Garlic, served over lo-mien noodles
'## Silly setup stuff
Dim conn
Dim wsh
Dim sPath
Dim rs
set wsh = CreateObject("wscript.shell")
On Error Resume Next
sPath = wsh.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Helios\Helios11\Paths\DPathClient")
/Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire.rb:93:in `block in <module:DSL>': uninitialized constant ApplicationController::InlineTemplates (NameError)
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/concern.rb:17:in `class_eval'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/concern.rb:17:in `append_features'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `include'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `block (2 levels) in <class:Rails>'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `class_eval'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `block in <class:Rails>'
from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:419:in
➜ ~ perl decode.pl
Global symbol "$encoded" requires explicit package name at decode.pl line 35.
Execution of decode.pl aborted due to compilation errors.
# setup my filenames
sent_filename = ARGV[0]
billed_filename = ARGV[1]
to_bill_filename = sent_filename.split('.')[0]+'_send_again.csv'
# create my arrays
sent_array = []
File.open(sent_filename, 'r').each_line { |line| sent_array << line }
return_array = []
require 'helper'
class Foo
include MongoMapper::Document
plugin Grip
attachment :image
attachment :pdf
before_save :callback_for_fun