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
autoload -U colors && colors | |
autoload -U promptinit | |
autoload -Uz vcs_info | |
local reset white gray green red yellow blue cyan magenta black | |
reset="%{${reset_color}%}" | |
white="%{$fg[white]%}" | |
gray="%{$fg_bold[black]%}" | |
green="%{$fg_bold[green]%}" | |
red="%{$fg[red]%}" |
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
diskutil list | |
diskutil unmountDisk /dev/diskN | |
sudo dd if=/path/to/iso of=/dev/diskN bs=1m | |
diskutil eject /dev/diskN |
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
#Before | |
canModify: Ember.computed -> | |
value = false | |
description = @get('content.statusDescription') | |
if description is 'Unsent' or description is 'Do Not Send' | |
value = true | |
value | |
#After |
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 pynotify | |
>>> pynotify.init("Test") | |
True | |
>>> pynotify.Notification("T", "B", "dialog-warning").show() | |
True | |
>>> pynotify.Notification("T", "B", "dialog-info").show() | |
True | |
>>> pynotify.Notification("T", "B", "dialog-error").show() | |
True |
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
install zsh | |
sudo apt-get -y install emacs23-nox zsh | |
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh | |
chsh -s $(which zsh) | |
.dotfiles repo | |
-> .emacs.d submodule |
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
// Instead of | |
Someframework.object.create({ | |
my: 'attributes', | |
go: 'here' | |
}); | |
// Try doing this | |
function MyObject(){ | |
this.my = "attributes"; | |
this.go = "here"; |
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
(function(){ | |
var console = { | |
log: function(message){ | |
$('body').append(message + "<br />"); | |
} | |
}; | |
var __bind_prop = function(fn, me, name){ | |
return function(){ | |
var args = [name]; | |
for (var x=0;x<arguments.length;x++){ |
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
(emberdemo)[emberdemo] node_modules/requirejs/bin/r.js -o baseUrl=. name=main ☁ master ☀ | |
Error: Missing either an "out" or "dir" config value. If using "appDir" for a full project optimization, use "dir". If you want to optimize to one file, use "out". | |
at Function.build.createConfig (/Users/mattjmorrison/Projects/emberdemo/node_modules/requirejs/bin/r.js:22707:19) | |
(emberdemo)[emberdemo] node_modules/requirejs/bin/r.js -o baseUrl=. name=main dir=. ☁ master ☀ | |
Error: ENOENT, no such file or directory | |
at Object.exports.resolve (path.js:284:52) | |
(emberdemo)[emberdemo] node_modules/requirejs/bin/r.js -o baseUrl=. name=main out=main.js | |
zsh: no such file or directory: node_modules/requirejs/bin/r.js |
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
(add-to-list 'load-path "~/.emacs.d/plugins") | |
(require 'color-theme) | |
(color-theme-initialize) | |
(color-theme-midnight) | |
(set-face-attribute 'default nil :height 130) | |
(add-to-list 'load-path "~/.emacs.d/vendor") | |
(load-file "~/.emacs.d/emacs-for-python/epy-init.el") | |
(require `tramp) | |
(load-file "~/.emacs.d/emacs-for-python/epy-pylint.el") | |
(load-file "~/.emacs.d/emacs-for-python/epy-flake8.el") |
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
server { | |
listen 80; | |
} | |
server { | |
listen 80; | |
server_name python.sample.com; | |
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file htpasswd; |