- BlockCursorEverywhere
- Anaconda
- Better CoffeeScript
- CoffeeComplete Plus (Autocompletion)
- Git
- GitGutter
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
import json | |
from collections import defaultdict | |
class NestedDefaultDict(defaultdict): | |
def __init__(self, depth, default=int, _root=True): | |
self.root = _root | |
self.depth = depth | |
if depth > 1: |
This was working on Vagrant 1.4.3 (Mac).
#HOST#
File: ~/.ssh/config
Host vagrant.*
ForwardAgent yes
File: Vagrantfile
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 flask import Blueprint | |
shared_value = None | |
class RegisteringExampleBlueprint(Blueprint): | |
''' | |
Example showing how to access a value for routes | |
saved in flask's configuration section for all routes in | |
blueprint. | |
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
''' | |
Quick and dirty code to see if I could figure out the next | |
larger number with all the same digits of the number passed. | |
Note: After coming up with the solution I found the following | |
http://stackoverflow.com/questions/9368205/given-a-number-find-the-next-higher-number-which-has-the-exact-same-set-of-digi | |
''' | |
def get_next(the_num): | |
the_num = str(the_num) |
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 python | |
# -*- coding: utf-8 -*- | |
import json | |
import logging | |
import logging.handlers | |
import requests | |
class BufferingSlackWebHookHandler(logging.handlers.BufferingHandler): |
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
description "Hubot Slack bot" | |
# Slack-specific environment variables. Change these: | |
env HUBOT_SLACK_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaa | |
env HUBOT_SLACK_TEAM=example | |
env HUBOT_SLACK_BOTNAME=flash_gordan | |
env HUBOT_AUTH_ADMIN=admin | |
# Subscribe to these upstart events | |
# This will make Hubot start on system boot |
Ranger mac setup:
- brew install ranger
- ranger --copy-config=all
- vim ~/.config/ranger/rc.conf
- preview_image false --> true
Other Tools:
- brew install w3m
- brew install lynx
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
# encoding: utf-8 | |
from __future__ import unicode_literals | |
import os | |
import requests | |
import sys | |
def get_google_auth_session(username, password): | |
session = requests.Session() |
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
# -*- coding: utf-8 -*- | |
''' | |
Quick script to embed into Automator to concat a folder of srt files into | |
a single srt. | |
Note: This also removes extra blanks lines, to allow pycaption to process | |
the files. This won't be needed if https://github.com/pbs/pycaption/pull/39 | |
is merged. | |
''' |
OlderNewer