This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
/* | |
___ | |
| | ___________ | |
| | |____ ___| | |
\ \ | | | |
\ \ | | | |
| | | | | | | |
| | | | | | | |
|__| |___| |____| |
This file contains hidden or 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
import os | |
import subprocess | |
from flask import Flask, request, redirect, url_for, send_from_directory | |
from werkzeug import secure_filename, SharedDataMiddleware | |
from pydub import AudioSegment | |
DOWNLOAD_FOLDER = 'downloads/' | |
UPLOAD_FOLDER = 'uploads/' | |
ALLOWED_EXTENSIONS = set(['mp3', 'mp4', 'wav', 'ogg', 'flac', 'gif']) |
This file contains hidden or 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
const PAGEGUIDES = { | |
'organizer': organizerGuideView, | |
'activity' : activityGuideView | |
}; | |
loadViewName: function(viewName, opts) { | |
return PAGEGUIDES[viewName](opts); | |
} |
This file contains hidden or 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 bash | |
# Trap interrupts and exit instead of continuing the loop | |
trap "echo Exited!; exit;" SIGINT SIGTERM | |
while read line; do | |
npm install -g $line | |
done < ./global-modules.txt |
This file contains hidden or 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
fuck-you | |
draft-dodger | |
pdx-shows | |
tweach | |
picture-tube | |
marked-man | |
n | |
node-inspector |