Skip to content

Instantly share code, notes, and snippets.

View ad-si's full-sized avatar
🎯
Working on airsequel.com

Adrian Sieber ad-si

🎯
Working on airsequel.com
View GitHub Profile
@nick-desteffen
nick-desteffen / OSX UTC Time Zone
Created August 5, 2011 01:50
Set Time zone in OSX to UTC
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime
@dsanson
dsanson / any2pandoc.sh
Created August 30, 2011 17:52
any2pandoc.sh: script that tries to convert documents thrown at it to pandoc's extended markdown
#!/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:
@therealklanni
therealklanni / proxy.php
Created November 22, 2011 04:53
Stupidly simple PHP proxy
<?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}";
}
@BasementCat
BasementCat / uploadfile.php
Created January 11, 2012 04:38
A simple PHP file upload script, that handles exactly one file
<?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');
@LeaVerou
LeaVerou / dabblet.css
Created April 19, 2013 21:19
SVG inspired by Quine's paradox
/**
* SVG inspired by Quine's paradox
*/
svg {
display: block;
margin: 40px auto;
font: 83px sans-serif;
}
@kroger
kroger / midi2mp3
Last active December 18, 2023 17:03
Convert MIDI files to MP3 using fluidsynth. See
#!/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

Designing Interactive Systems

Definitions

Usability

effectiveness, efficiency, satisfaction with which specified users achieve a particular goal Goals:

  • discoverable
  • efficient
  • robust
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@beechnut
beechnut / backtick-surround.js
Last active December 6, 2021 06:11
Surround with backticks in Sublime Text 3
// 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 },

Math.TAU

The Number value for τ, the ratio of the circumference of a circle to its radius, which is approximately 6.283185307179586.

This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.

There are > 222,000 occurrences on github.