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; |
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
source 'https://rubygems.org' | |
gem 'thor' |
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
module SampleMod | |
def self.included(base) | |
[:one, :two, :three].each do |method_name| | |
define_method method_name do | |
puts "inside #{method_name}" | |
end | |
end | |
end |
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
# This makes 3 assumptions | |
# 1.) the root project directory must have a .git file (this way it won't try to "workon" in every single | |
# directory on your machine) | |
# 2.) the virtualenv name for your project must match the root directory name of your project | |
# 3.) you want it to auto switch virtualenvs for you when you jump between different project directories | |
# (when you hit another dir w/ a virtualenv that is) | |
workon_virtualenv() { | |
if [ -e .git ]; then | |
current_dir="${PWD##*/}" |
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
class FirstGradeMath(object): | |
def __init__(self, first_number, second_number): | |
self.first_number = first_number | |
self.second_number = second_number | |
def add(self): | |
return self.first_number + self.second_number | |
def subtract(self): |
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 pip install virtualenv |
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
jQuery.noConflict(); | |
MyClass = function($){ | |
return function(val){ | |
console.log("Constructing MyClass Instance"); | |
var self = {}; | |
self.getVal = function(){ | |
return self.val; | |
}; | |
self.val = val; |
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
def Module(): | |
module_state = {} | |
def Class(val): | |
def get_val(): | |
return val | |
class_state = {'get_val': get_val} | |
return class_state |