Basically it is backbones self-propegating extend method, slightly hacked up to allow the definition of __name__
. Defining this means that you will never end up seeing child
when looking at your class in the dev tools. Also adds a define
method for creating singletons.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-ruby-sass'); | |
var watch = require('gulp-watch'); | |
var plumber = require('gulp-plumber'); | |
var traceur = require('gulp-traceur'); | |
var jshint = require('gulp-jshint'); | |
var stylish = require('jshint-stylish'); | |
var notify = require('gulp-notify'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canvas { | |
position: absolute; | |
top: 0; | |
width: 500px; | |
height: 500px; | |
cursor: move; | |
} | |
.canvas-container { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "<f1>") 'magit-status) | |
(define-key evil-normal-state-map "B" 'magit-checkout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun switch-to-local-project () | |
(interactive) | |
(let* ((prompt "Switch to project: ") | |
(project-dir "~/src") | |
(choices (actionable-files-in-directory project-dir)) | |
(project (ido-completing-read prompt choices nil t))) | |
(find-file (concat project-dir "/" project)))) | |
(defun actionable-files-in-directory (dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn home-path | |
"create a path from the home dir" | |
[s] | |
(str (System/getProperty "user.home") s)) |
I hereby claim:
- I am mbriggs on github.
- I am mbriggs (https://keybase.io/mbriggs) on keybase.
- I have a public key whose fingerprint is 9EF3 F6C7 DE1D C5CB 27E5 A8F9 625A B952 57A9 1190
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- deref2 [_ p] @p) | |
(defn gather! | |
[{:keys [queues]}] | |
(send queues deref2 (rabbit/get-queues))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn build-routes | |
[{:keys [bus queues] :as app-data}] | |
(routes | |
(GET "/data" req | |
; get an http-kit websocket channel for this request | |
(http/with-channel req req-ch | |
; make a channel for subscriptions to the data updated event bus | |
(let [metrics (async/chan)] | |
; subscribed to all messages in the updated topic | |
(async/sub bus :updated metrics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:gist_clip_command = 'pbcopy' | |
let g:gist_detect_filetype = 1 |
OlderNewer