made with esnextbin
made with esnextbin
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
define ( ['somewhere/someFunc'], function (someFunction) { | |
return someFunction(anotherFunction); | |
function anotherFunction() { | |
// stuff | |
}; | |
}); |
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
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix. | |
;; | |
;; * :use makes functions available without a namespace prefix | |
;; (i.e., refers functions to the current namespace). | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; |
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
noremap <silent> <leader>l :call FlipScheme()<cr> | |
function! FlipScheme() | |
if g:colors_name == 'hemisu' | |
set background=dark | |
color jellybeans | |
else | |
set background=light | |
color hemisu | |
endif | |
endfunction |
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 Request = require('request').Request, | |
_ = require('./underscore'), | |
Backbone = require('./backbone'), | |
// Firefox Add-Ons cannot use jQuery in the background | |
// script, but there are instances where we need some | |
// jquery functionality, paricularly $.ajax, which | |
// is defined later. | |
$ = { | |
ajax: function (params) { | |
if (!params.url){ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#------------------------------------------------------------------------------- | |
# Sunrise theme for oh-my-zsh by Adam Lindberg (eproxus@gmail.com) | |
# Intended to be used with Solarized: http://ethanschoonover.com/solarized | |
# (Needs Git plugin for current_branch method) | |
#------------------------------------------------------------------------------- | |
# Modified by Sundeep Malladi to include Mercurial (and some other shtuff). | |
# Color shortcuts | |
R=$fg[red] |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
NewerOlder