Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| Per https://code.google.com/p/v8/codesearch#v8/trunk/src/runtime.cc | |
| %CreateSymbol | |
| %CreatePrivateSymbol | |
| %CreateGlobalPrivateSymbol | |
| %NewSymbolWrapper | |
| %SymbolDescription | |
| %SymbolRegistry | |
| %SymbolIsPrivate |
| #!/usr/bin/env python | |
| """Use inotify to watch a directory and execute a command on file change. | |
| Watch for any file change below current directory (using inotify via pyinotify) | |
| and execute the given command on file change. | |
| Just using inotify-tools `while inotifywait -r -e close_write .; do something; done` | |
| has many issues which are fixed by this tools: | |
| * If your editor creates a backup before writing the file, it'll trigger multiple times. | |
| * If your directory structure is deep, it'll have to reinitialize inotify after each change. |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <signal.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/env python | |
| import ctypes | |
| import wave | |
| import sys | |
| pa = ctypes.cdll.LoadLibrary('libpulse-simple.so.0') | |
| PA_STREAM_PLAYBACK = 1 | |
| PA_SAMPLE_S16LE = 3 |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.