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
I have two assets, one Facebook, one Twitter | |
I can't currently connect either one to any of my four worspaces in dev | |
I get "No accounts to connect." after clicking "authorize app" (or equivalent) | |
I am running Celery | |
I am running upstream/master | |
Each of the assets show up in dev debug as "deactivated" | |
In staging I can connect them to my workspace | |
In staging I can disconnect them from my workspace | |
In staging I can reconnect them to my workspace |
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
" I grabbed 73 .vimrc files from GitHub. After some manual massaging, these were the most common lines: | |
" Code used: https://github.com/captbaritone/vimrc-survey | |
" Number of occurances: Command | |
46: set nocompatible | |
43: syntax on | |
40: set expandtab | |
34: set backspace=indent,eol,start |
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
the gist |
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
<script src="js/marked.js"></script> | |
<script> | |
function render(data) { | |
if(data.template) { | |
var request = new XMLHttpRequest(); | |
request.onload = function() { | |
delete data.template; | |
var front = /^---\n((.|\n)*)\n---/; | |
data.content = request.response.replace(front, function(f, json) { | |
settings = JSON.parse(json); |
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
from numpy.linalg import svd | |
from numpy import array | |
CLUSTERS = 2 | |
character_index_lookup = { | |
0: "Papageno", | |
1: "Figaro", | |
2: "Mimi", | |
3: "Rudolfo", |
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 src_url="https://spshared.5min.com/Scripts/PlayerSeed.js?playList=517858080&height=381&width=570&sid=577&videoGroupID=148829&relatedNumOfResults=100&relatedMode=2&relatedBottomHeight=60&companionPos=&hasCompanion=false&autoStart=false&colorPallet=%23CC0000&vcdBgColor=%2323191919&shuffle=0&continuous=true"; | |
src_url += "&onVideoDataLoaded=HPTrack.Vid.DL&onTimeUpdate=HPTrack.Vid.TC"; | |
if (typeof(commercial_video) == "object") { | |
src_url += "&siteSection="+commercial_video.site_and_category; | |
if (commercial_video.package) { | |
src_url += "&sponsorship="+commercial_video.package; | |
} | |
}; | |
document.write('<scr' + 'ipt type="text/java |
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
#!/bin/sh | |
# | |
# This shell script passes all its arguments to the binary inside the | |
# MacVim.app application bundle. If you make links to this script as view, | |
# gvim, etc., then it will peek at the name used to call it and set options | |
# appropriately. | |
# | |
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
# Weber and Bjorn Winckler, Aug 13 2007). |
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
site_url("api/v1/ticket/checkin/<API KEY>/<EVENT%20ID>/<Ticket%20ID>"); |
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
# tiny success: http://bit.ly/RhpepU | |
# osx specific, mpg123 or the like for linux | |
nmap HH :silent ! afplay /Users/nat/.vim/audio/succ_horns01.mp3 1>&-2>&-&<CR><C-l> |
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
# Forbid directory listing | |
Options -Indexes | |
# Serve `evil-install` instead of `install` to curl | |
RewriteEngine on | |
RewriteCond %{HTTP_USER_AGENT} curl [NC] | |
RewriteRule ^install$ evil-install [L] |
OlderNewer