effectiveness, efficiency, satisfaction with which specified users achieve a particular goal Goals:
- discoverable
- efficient
- robust
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
#!/bin/sh | |
# any2pandoc.sh | |
# | |
# A shell script that tries its best to convert documents thrown at it | |
# to pandoc's extended markdown. | |
# | |
# https://gist.github.com/1181510 | |
# | |
# Depends on: |
<?php | |
// Stupidly simple PHP proxy for AJAX (HTTP GET) requests. Written by Kevin Lanni. | |
$dest = ''; // Set to the remote script URL (i.e. http://remotehost.com/some.php) | |
$a = array(); | |
foreach ($_GET as $k=>$v) { | |
$a[] = "{$k}={$v}"; | |
} |
<?php | |
/*First of all I'm going to DEFINE a few constants because it makes more sense | |
to use DEFINE for variables that do not change during the execution of the code.*/ | |
//Max. size of uploaded files in MB | |
define('F_UPLOAD_MAX_SIZE_MB', 12); | |
//Directory to save uploaded files in | |
define('F_UPLOAD_DIR', './uploads'); | |
/** | |
* SVG inspired by Quine's paradox | |
*/ | |
svg { | |
display: block; | |
margin: 40px auto; | |
font: 83px sans-serif; | |
} |
#!/usr/bin/env bash | |
SOUNDFONT=/Users/kroger/Dropbox/Sfonts/BOPLMEVF16.sf2 | |
TMPDIR=/tmp | |
if [[ ! -f $SOUNDFONT ]] | |
then | |
echo "Couldn't find the soundfont: $SOUNDFONT" | |
exit 1 |
A list of Sketch plugins hosted at GitHub, in no particular order.
// Copy the following into Preferences > Key Bindings -- User | |
// Thanks to: | |
// http://sublimetext.userecho.com/topic/86166-backtick-quoting-selected-text-does-not-work-like-single-quotes-and-double-quotes/ | |
[ | |
// Auto-pair backticks | |
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, |