This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
(defun browser-repl () | |
(interactive) | |
(run-lisp "/usr/local/bin/lein trampoline cljsbuild repl-listen")) | |
(defun repljs () | |
(interactive) | |
(run-lisp "~/Dropbox/development/clojure/clojurescript/script/repljs")) |
var runOnce = require('uvrun').runOnce; | |
// Do something here, like make a server to keep the event loop busy | |
var TCP = process.binding('tcp_wrap').TCP; | |
var server = new TCP(); | |
server.onconnection = function () { | |
console.log("connection!"); | |
}; | |
server.bind("0.0.0.0", 3000); | |
server.listen(511); |
class ReloaderEventHandler(FileSystemEventHandler): | |
""" | |
Listen for changes to modules within the Django project | |
On change, reload the module in the Python Shell | |
Custom logic required to reload django models.py modules | |
Due to the singleton AppCache, which caches model references. | |
For those models files, we must clear and repopulate the AppCache | |
""" | |
def __init__(self, *args, **kwargs): |
// @license http://opensource.org/licenses/MIT | |
// copyright Paul Irish 2015 | |
// Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
// github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
// as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
// if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
// but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
// jonas :: https://github.com/michaelsbradleyjr/jonas | |
// :: https://npmjs.org/package/jonas | |
var jonas = require("jonas"), | |
Cont = jonas.Monad.Cont, | |
pCont = jonas.Monad.pCont, | |
Q = jonas.Q, | |
util = require("util"); |
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
(ns n01se.externs-for-cljs | |
(:require [clojure.java.io :as io] | |
[cljs.compiler :as comp] | |
[cljs.analyzer :as ana])) | |
(defn read-file [file] | |
(let [eof (Object.)] | |
(with-open [stream (clojure.lang.LineNumberingPushbackReader. (io/reader file))] | |
(vec (take-while #(not= % eof) | |
(repeatedly #(read stream false eof))))))) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.