Skip to content

Instantly share code, notes, and snippets.

View aroman's full-sized avatar
👋
hiring!

Avi Romanoff aroman

👋
hiring!
View GitHub Profile
@aroman
aroman / expii-terminology.md
Created June 22, 2015 20:40
expii terminology

In a sentence: expii is made up of many topics which have one or more explanations.

What’s a topic? (previously: node, leaf, group)

What’s a topic title?

~/D/gala-314 $ ./src/gala --replace
Window manager warning: Trying to re-add keybinding "switch-to-workspace-last".
Window manager warning: Trying to re-add keybinding "move-to-workspace-last".
** (lt-gala:21393): WARNING **: Utils.vala:361: Failed to open file '/usr/local/share/gala/close.png': No such file or directory
** (lt-gala:21393): WARNING **: Utils.vala:361: Failed to open file '/usr/local/share/gala/close.png': No such file or directory
** (lt-gala:21393): WARNING **: Utils.vala:361: Failed to open file '/usr/local/share/gala/close.png': No such file or directory
~/Downloads $ sudo diskutil eraseDisk FAT32 YO MBRFormat /dev/disk1
Password:
Sorry, try again.
Password:
Started erase on disk1
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk1s1 as MS-DOS (FAT32) with name YO
512 bytes per physical sector
convert image -format format -o outfile
convert image to type format and write the result to outfile.
As with create, the correct filename extension will be added
only if it isn't part of the provided name. Format is one of:
UDRW - UDIF read/write image
UDRO - UDIF read-only image
UDCO - UDIF ADC-compressed image
UDZO - UDIF zlib-compressed image
function bindModels() {
// (i dont actually know how the API works)
seuelize.bind("model1", blah);
seuelize.bind("model2", blah);
}
sequelize.connect(function dbConnected () {
bindModels();
server.listen(app);
});
repeat until "iPhone Simulator" is running
tell application "System Events" to keystroke "c" using {command down, option down, control down}
end repeat
48027961
335476527
47018761
46611931
44480792
46925366
46661382
490969714
47614703
44533524
@aroman
aroman / index.html
Last active August 29, 2015 14:03
Jason's Little Kony
<html>
<head>
<title>My Little Kony</title>
</head>
<body>
<div id="kony"></div>
<script>
$.get("/digits", function (err, res) { // I don't actually remember the args
$("#kony").html("Kony " + JSON.parse(res).currently);
});
// Dope hack so we don't have to re-validate
// the entire form on every keystroke. <3 underscore
// Only contains inputs which aren't pre-filled at
// the start to make browser autocomplete work.
invalid_inputs = _.compact(_.map($(".form-control"), function (input) {
if (!$(input).val()) return $(input).attr('name');
}));
$("button[type=submit]").prop('disabled', !_.isEmpty(invalid_inputs));
// usage: go run demo.go OR go run demo.go <number>
package main
import (
"os"
"fmt"
netUrl "net/url"
fb "github.com/huandu/facebook"
)