Skip to content

Instantly share code, notes, and snippets.

View todrobbins's full-sized avatar
⌨️
beep boop

Tod Robbins todrobbins

⌨️
beep boop
View GitHub Profile
@todrobbins
todrobbins / firecat.css
Created April 12, 2012 04:15 — forked from angrytoast/firecat.css
Firecat css
#firecat h1 {
margin: .2em 0 .6em;
padding: 0;
font-size: 1.2em;
}
#firecat {
position: fixed;
z-index: 999;
top: 10px;
right: 10px;
@todrobbins
todrobbins / firecat.css
Created April 12, 2012 04:16 — forked from angrytoast/firecat.css
Firecat css
#firecat h1 {
margin: .2em 0 .6em;
padding: 0;
font-size: 1.2em;
}
#firecat {
position: fixed;
z-index: 999;
top: 10px;
right: 10px;
#!/usr/bin/env ruby
require 'rubygems'
require 'stathat'
FILES = [["/opt/local/var/db/buckets.tct", "somekeyforstat1"],
["/opt/local/var/db/stats.tct", "somekeyforstat2"],
["/opt/local/var/db/users.tct", "somekeyforstat3"]]
FILES.each do |elts|
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
-o-border-radius: $radius;
border-radius: $radius;
}
.box { @include border-radius(10px); }
Chewbacca:ocr trobbins$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
.auto { cursor: auto; }
.default { cursor: default; }
.none { cursor: none; }
.context-menu { cursor: context-menu; }
.help { cursor: help; }
.pointer { cursor: pointer; }
.progress { cursor: progress; }
.wait { cursor: wait; }
.cell { cursor: cell; }
.crosshair { cursor: crosshair; }
➜ dat-playground git:(master) ✗ node -pe "require('fs').readFileSync('pizza-vs-taco.json').toString('hex')"
7b226b6579223a202262757267657273222c20227461737479223a20747275657d0a7b226b6579223a202270697a7a61222c20227461737479223a20747275657d0a7b226b6579223a20227461636f73222c20227461737469657374223a20747275657d
➜ dat-playground git:(master) ✗ node -pe "new Buffer(require('os').EOL)"
<Buffer 0a>
➜ dat-playground git:(master) ✗ node --version
v0.10.28
➜ dat-playground git:(master) ✗ dat --version
dat version 5.0.1
➜ pdf-diff git:(master) ✗ python3 pdf-diff.py --changes < changes.json > test.png
Traceback (most recent call last):
File "pdf-diff.py", line 225, in <module>
render_changes(json.load(sys.stdin), sys.stdout.buffer)
File "pdf-diff.py", line 142, in render_changes
pages[change["pdf"]["index"]][change["page"]["number"]] = pdftopng(change["pdf"]["file"], change["page"]["number"])
File "pdf-diff.py", line 218, in pdftopng
pngbytes = subprocess.check_output(["/usr/bin/pdftoppm", "-f", str(pagenumber), "-l", str(pagenumber), "-scale-to", str(width), "-png", pdffile])
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 607, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
@todrobbins
todrobbins / keybase
Last active August 29, 2015 14:04
keybase
### Keybase proof
I hereby claim:
* I am todrobbins on github.
* I am todrobbins (https://keybase.io/todrobbins) on keybase.
* I have a public key whose fingerprint is 13EA EFA1 80B0 5890 F755 2741 17E1 BDB7 4FFC 96AB
To claim this, I am signing this object: