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
Backbone / Events / bind | |
Backbone / Events / unbind | |
Backbone / Events / trigger | |
Backbone / Model | |
Backbone / Collection | |
Backbone / Controller | |
Backbone / History | |
Backbone / View | |
Backbone / sync / params / beforeSend | |
Backbone / sync / <definition-1> |
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
_ / <definition-1> | |
_ / forEach | |
_ / map | |
_ / inject | |
_ / foldr | |
_ / detect | |
_ / select | |
_ / reject | |
_ / all | |
_ / any |
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
jQuery / <definition-1> | |
jQuery / prototype / init | |
jQuery / prototype / size | |
jQuery / prototype / toArray | |
jQuery / prototype / get | |
jQuery / prototype / pushStack | |
jQuery / prototype / each | |
jQuery / prototype / ready | |
jQuery / prototype / eq | |
jQuery / prototype / first |
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
typeOf | |
instanceOf | |
Function / prototype / overloadSetter | |
Function / prototype / overloadGetter | |
Function / from | |
Array / from / <definition-1> | |
Array / from / <definition-2> | |
Number / from | |
String / from | |
Type / <definition-1> |
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
(defadvice ruby-indent-line (after unindent-closing-paren activate) | |
(let ((column (current-column)) | |
indent offset) | |
(save-excursion | |
(back-to-indentation) | |
(let ((state (syntax-ppss))) | |
(setq offset (- column (current-column))) | |
(when (and (eq (char-after) ?\)) | |
(not (zerop (car state)))) | |
(goto-char (cadr state)) |
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
module SingleRecipientSmtp | |
def self.included(clazz) | |
clazz.class_eval do | |
cattr_accessor :single_recipient_smtp_settings | |
end | |
end | |
def perform_delivery_single_recipient_smtp(mail) | |
mail.to = single_recipient_smtp_settings[:to] | |
mail.cc = nil |
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
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |
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 check-next-def () | |
(push-mark nil t) | |
(when (re-search-forward | |
(concat "(def\\(?:un\\|macro\\|subst\\|var\\|const\\) " | |
"\\(\\(?:\\sw\\|\\s_\\)+\\)") | |
nil 'move) | |
(save-excursion | |
(let ((name (match-string 1))) | |
(goto-char (point-min)) | |
(unless (re-search-forward (concat "\\_<" name "\\_>") nil t 2) |
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
;;; -*- lexical-binding: t -*- | |
(defvar ac-prefix) | |
(defun company-backend-from-ac (source-alist) | |
(cl-labels ((call (key &rest args) | |
(let ((fn (cdr (assoc key source-alist)))) | |
(when fn | |
(apply fn args))))) | |
(lambda (command &optional arg &rest ignore) |
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 isearch-use-region-when-active () | |
(when (region-active-p) | |
(setq mark-active nil) | |
(setq isearch-lazy-highlight-last-string nil) | |
(isearch-yank-string | |
(buffer-substring (region-beginning) (region-end))))) | |
(add-hook 'isearch-mode-hook 'isearch-use-region-when-active) |
OlderNewer