This is now an actual repo:
// (c) copyright unscriptable.com / John Hann | |
// License MIT | |
// For more robust promises, see https://github.com/briancavalier/when.js. | |
function Promise () { | |
this._thens = []; | |
} | |
Promise.prototype = { |
Moved, see VIM Cheatsheet
body { | |
font: 12px verdana; | |
background-color: #5C87B2; | |
} | |
form { | |
max-width: 400px; | |
padding: 15px; | |
background-color: white; | |
} |
"use strict" | |
var Promise = function () { | |
this.state = 'pending' | |
this.thenables = [] | |
} | |
Promise.prototype.resolve = function (value) { | |
if (this.state != 'pending') return | |
this.state = 'fulfilled' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
; AHK wake-up-timer | |
; scheduler provides some of the functions of Window's Task Scheduler or the command line tool "schtasks" as an AHK-script. | |
; Unlike Windows' Scheduled Tasks this function works with accounts without passwords | |
; | |
; Author: boskoop (http://http://www.autohotkey.com/board/topic/10587-wake-up-timer-scheduler-function) | |
; CONFIGURATION | |
Year=2006 | |
Month=8 ;1-12 | |
Day=30 ;1-31 |
- Works even under the most spartan conditions (in a simple remote shell window such as xterm, putty), with syntax highlighting, function folding, tabs, buffers, and all that lightning fast
- Delete lines matching pattern:
g/pattern/d
- Delete lines not matching pattern:
g!/pattern/d
- Sort buffer:
:%sort
- Filter buffer through command
:%!sort -u
- Delete from current line until end of file (try with a large file!)
- Increment numeric values:
C-a
,C-x
- Complete line pattern
C-x C-l
- Convert a DOS file (with CRLF line endings) to UNIX:
:set ff=unix
(and then save it)
Interesting part (unmounting & API) is at the end if you're not interested in the rest =).
This animation proposal is just an attempt. In case it doesn't work out, I've gathered a few examples that can test the power of a future animation system.
-
Parent is an infinitely spinning ball, and has a child ball that is also spinning. Clicking on the parent causes child to reverse spinning direction. This tests the ability of the animation system to compose animation, not in the sense of applying multiple interpolations to one or more variables passed onto the child (this should be trivial), but in the sense that the parent's constantly updating at the same time as the child, and has to ensure that it passes the animation commands correctly to it. This also tests that we can still intercept these animations (the clicking) and immediately change their configuration instead of queueing them.
-
Typing letters and let them fly in concurrently. This tests concurrency, coordination of an array of ch