In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Example", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "node", | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
upstream upstream-EXAMPLE { | |
server localhost:3000; | |
# To use additional cores, edit your data/port file | |
# to read 3000 3001 3002 3003, and list the rest | |
# of them here too (commented out in this example). | |
# Your site will listen on one port per process | |
# automatically. Requires latest deployment files | |
# as found in sandbox | |
#server localhost:3001; | |
#server localhost:3002; |
""" | |
Recurseively rename all files in a directory by replace whitespace with underscores | |
and erasing all non-('a-zA-Z0-9' or '_' or '-' or '.') characters. | |
""" | |
import re, os, shutil, argparse, sys | |
parser = argparse.ArgumentParser(description = "Rename all files in directory by replacing whitespace with underscores.") | |
parser.add_argument('directories', metavar="DIR", nargs='*', default = [os.getcwd()], help="directories to walk. Default: CWD") | |
err = sys.stderr.write |
import ConfigParser, mmap | |
config_file = "/usr/share/applications/google-chrome.desktop" | |
add_string_to_each_section = ["StartupWMClass", "Google-chrome-stable"] | |
option = add_string_to_each_section[0] | |
value = add_string_to_each_section[1] | |
class Fixer: | |
def check(self, cf, option, value): |
@mixin filter( $var ) { | |
-webkit-filter: $var; | |
-moz-filter: $var; | |
-ms-filter: $var; | |
-o-filter: $var; | |
filter: $var; | |
} | |
a { | |
&:hover { | |
@include filter(blur(2px)); |
# Source: http://choyan.me/oh-my-zsh-elementaryos/ | |
sudo apt-get update && sudo apt-get install -y curl vim git zsh | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash | |
sudo chsh -s $(which zsh) $(whoami) |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
Gource is a software version control visualization tool.
Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project.