Skip to content

Instantly share code, notes, and snippets.

View bradherman's full-sized avatar

Bradley Herman bradherman

View GitHub Profile
@bradherman
bradherman / gist:1980931
Created March 5, 2012 20:36
Google docs stylesheet for use w/ stylish
#gbx3, #gbx4 {height:20px !important;}
#gb {font:10px/27px Arial,sans-serif !important;height:2px !important;}
.docs-title-inner {font-size:16px !important;}
.gbt {line-height:18px !important;}
.docs-menubar {height:28px !important;}
#docs-bars {height:4px !important;background:black !important;}
#docs-bars:hover {height:auto !important;background:none !important;}
#docs-menubar, #docs-toolbar-wrapper {display:none !important;}
#docs-bars:hover #docs-menubar, #docs-bars:hover #docs-toolbar-wrapper {display:block !important;}
<?xml version="1.0"?>
<ArrayOfItemImport>
<ItemImport>
<Skuid>037000061946</Skuid>
<BrandName>Head and Shoulders</BrandName>
<Manufacturer>Head and Shoulders</Manufacturer>
<ProductCode>anti-dandruff-shampoo</ProductCode>
<ProductName>classic clean shampoo</ProductName>
<ProductDescription>The original head &amp;amp; shoulders anti-dandruff shampoo . Mild enough to use every day, it will thoroughly cleanse your hair and care for your scalp. You&amp;rsquo;ll be left with up to 100% flake free hair* that feels soft and fresh, light and easy to manage. &lt;br /&gt;</ProductDescription>
<UniqueIdentifier>anti-dandruff-shampoo</UniqueIdentifier>
@bradherman
bradherman / num_problem.rb
Created April 12, 2011 14:21
wrote this real quick to solve a tough math problem for a girl at work... she got it right
a = c = (-50..50).to_a
b = d = (-50..-1).to_a + (1..50).to_a
for i in 0..100
for j in 0..99
for k in 0..100
for l in 0..99
e = Float(a[i])
f = Float(b[j])
g = Float(c[k])