Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the Chromebook Pixel 2 (2015), but I can't think of any reason it wouldn't work with other devices.
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
I finally took Josh's advice and started digging deeper into Pycharms visual debugger. But I quickly ran into an issue using envdir for our prestige projects. There doesn't seem like there is a way to prepend the django manage.py command with envdir. So I modified the manage.py file with these few lines to load your envdir/ folder. The added benefit of this is you can just type python /manage.py runserver. Otherwise you would have to manually enter all the required Enviromental variables into pycharm by hand and also track the changes. I figured I share this.
if 'local' in sys.argv:
env_dir = os.path.join('local', 'envdir')
else:
env_dir = 'envdir/dev'
# all forms must be the same height. each line in a form must be the same width, but each form's width may differ. blank lines are permitted at the top and bottom of each form. | |
A = """ | |
XXXX | |
X X | |
XXXX | |
X X | |
X X | |
""" | |
B = """ | |
XXX |
# -*- coding: utf-8 -*- | |
""" | |
useage: import finger | |
finger.flip() | |
""" | |
finger = """ | |
/´¯/) | |
,/¯ / | |
/ / | |
/´¯/' '/´¯¯`·¸ |
# HOST == access URI (eg. github.com) | |
ssh-keyscan -t rsa,dsa HOST 2>&1 | sort -u - ~/.ssh/known_hosts > ~/.ssh/tmp_hosts | |
cat ~/.ssh/tmp_hosts >> ~/.ssh/known_hosts |
#Setting up Nginx on Your Local System ###by Keith Rosenberg
##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/
The command to type into terminal to install homebrew is:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/**********************************************/ | |
/* | |
/* | |
/* Crate -- Theme for Chrome DevTools | |
/* Last Update :: September 2013 | |
/* | |
/* based on: | |
/* mnml by Michael P. Pfeiffer | |
/* Based on a Gist by Ben Truyman. Further attr: | |
/* https://gist.github.com/3040634 |
from fabric.api import env | |
env.use_ssh_config = True | |
env.forward_agent = True | |
env.roledefs = { | |
# key # hostname from config | |
'foo': ['foo.production'], | |
} |