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
# -*- mode: snippet -*- | |
# name: amd | |
# -- | |
define(function(require) { | |
/* | |
$0 | |
*/ | |
var $1 = $2({ | |
$3 | |
}); |
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
|11:12:32 meandavejustice | It's still weird to me that we live in a place that people visit on vacation │ | |
│11:12:42 meandavejustice | that their are tourists here. │ | |
│11:13:25 grantgarrett | thats what happens when you live in civilization │ | |
│11:13:46 chrisforrette | meandavejustice: http://www.discoverlynchburg.org/ │ | |
│11:14:07 chrisforrette | http://www.discoverlynchburg.org/wp- |
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
;; normalize copy and paste for osx | |
(defun copy-from-osx () | |
(shell-command-to-string "pbpaste")) | |
(defun paste-to-osx (text &optional push) | |
(let ((process-connection-type nil)) | |
(let ((proc (start-process "pbcopy" "*Messages*" "pbcopy"))) | |
(process-send-string proc text) | |
(process-send-eof proc)))) | |
(if (eq system-type 'darwin) | |
(progn |
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 arr = [] | |
undefined | |
> arr | |
[] | |
> arr.keyName = true | |
true | |
> arr | |
[ keyName: true ] | |
> arr[0] | |
undefined |
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
comparator: function(item) { | |
return -item.get('number'); | |
}, | |
groupBy: function() { | |
if (item.isSubItem()) { | |
return [item.get('parent'), item.get('pk')]; | |
} else { | |
return [item.get('pk'), 0]; |
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
// currently sorting my collection with this comparator. | |
// It sets up a relationship so that a Parent Item should be before its sub-items(you can think of these as sub tasks) | |
// 'parent' attribute is just the 'pk' of the parent item. | |
// This is working fantastically but I need to sort at a higher level above this descending from an attribute called | |
// 'created_at'. | |
// the `else` refers to items that are either parents, or items that have no relationship to any others. | |
comparator: function(item) { | |
if (item.isSubItem()) { | |
return [item.get('parent'), item.get('pk')]; |
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
// Bohemian Rhapsody - queen | |
if (realLife || fantasy) { | |
for (i = 0; i < landslide + 1; i++) { | |
if (!reality) { | |
break; | |
} | |
landslide = i + 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
// placeholder styles | |
.placeholder(@color:inherit, @background: inherit) { | |
::-webkit-input-placeholder { | |
color: @color; | |
background: @background; | |
} | |
:-moz-placeholder { /* Firefox 18- */ | |
color: @color; | |
background: @background; |
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
(load-theme 'kvn-spacey t) | |
(require 'package) | |
;; Add the original Emacs Lisp Package Archive | |
(add-to-list 'package-archives | |
'("elpa" . "http://tromey.com/elpa/")) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) |
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
npm WARN package.json Please pick one as the 'repository' field |