This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repeat until "iPhone Simulator" is running | |
tell application "System Events" to keystroke "c" using {command down, option down, control down} | |
end repeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48027961 | |
335476527 | |
47018761 | |
46611931 | |
44480792 | |
46925366 | |
46661382 | |
490969714 | |
47614703 | |
44533524 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: go run demo.go OR go run demo.go <number> | |
package main | |
import ( | |
"os" | |
"fmt" | |
netUrl "net/url" | |
fb "github.com/huandu/facebook" | |
) |