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
// ==UserScript== | |
// @name Observe | |
// @namespace http://gist.github.com/dting | |
// @version 0.1 | |
// @description Change non-link matches for /bug-\d+/ to a link | |
// @author You | |
// @match https://mail.google.com/mail/u/0/* | |
// ==/UserScript== | |
(function() { |
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
sudo -v | |
# keep-alive: update existing `sudo` timestamp until bootstrap has finished | |
while true; do sudo -v; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
sudo softwareupdate -i -a | |
sudo xcodebuild -license accept | |
# Install Command Line Tools |
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
<!-- begin snippet: js hide: false --> | |
<!-- language: lang-js --> | |
var app = angular.module('app', ['ngMessages']); | |
app.controller('myController', function($scope) { | |
$scope.data = {}; |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ |
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 type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.9.3/lodash.min.js"></script> | |
<script src="https://getfirebug.com/firebug-lite-debug.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular-messages.js"></script> | |
<div ng-app='app' ng-controller='myController'> | |
<some-directive></some-directive> |
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
sudo apt-get update | |
sudo apt-get install gcc libffi-dev vim | |
sudo apt-get install python3.3 python3.3-dev python3.3-minimal | |
workon py2.7 | |
pip install -r /home/vagrant/.hosthome/djangocore/django/tests/requirements/py2.txt | |
deactivate | |
rm /home/vagrant/.virtualenvs/py3.3/bin/python | |
cd /home/vagrant/.virtualenvs/ | |
mkvirtualenv py3.3 --python=`which python3.3` | |
workon py3.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
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -v; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
# Update OS X | |
sudo softwareupdate -i -a | |
# Install Command Line Tools |
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
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class | |
autocmd BufWritePre *.py :%s/\s\+$//e | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent | |
set smartindent | |
set showmatch | |
set ignorecase |