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
Adding Hidden Agendas | |
Adjusting Bell Curves | |
Aesthesizing Industrial Areas | |
Aligning Covariance Matrices | |
Applying Feng Shui Shaders | |
Applying Theatre Soda Layer | |
Asserting Packed Exemplars | |
Attempting to Lock Back-Buffer | |
Binding Sapling Root System | |
Breeding Fauna |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- Material Design - Color Palette --> | |
<!-- http://www.google.com/design/spec/style/color.html#color-color-palette --> | |
<!-- Red --> | |
<color name="red_50">#FFEBEE</color> | |
<color name="red_100">#FFCDD2</color> | |
<color name="red_200">#EF9A9A</color> |
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
========== Navigation ========== | |
CTRL+C OR Ctrl+[ instead of ESC. | |
1/2 ½ BOL (Begin-of-line) | |
0 BOL (Begin-of-line) | |
$ EOL (End-of-line) | |
H Goto HEADER (Top of the screen) | |
M Goto MIDDLE of BUFFER | |
L Goto last (bottom). |
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
# create the pre-commit file & make it executable | |
touch .git/hooks/pre-commit | |
chmod +x .git/hooks/pre-commit | |
# The line below is important! | |
#!/bin/bash | |
# Don't push if TODO is in the source for HEAD | |
dont_push_flag="TODO" | |
flag_found=`git grep --color "$dont_push_flag" HEAD` |
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
#!/usr/bin/env python | |
import os | |
import pip | |
dists = [] | |
for dist in pip.get_installed_distributions(): | |
dists.append(dist.project_name) | |
for dist_name in sorted(dists, key=lambda s: s.lower()): |
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
<!-- AndroidManifest.xml --> | |
<activity android:name="com.your.package.ActivityName" | |
android:windowSoftInputMode="stateHidden" /> |
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
tmux new -s session_name -n window_name # Creates a new session with a named window | |
tmux attach -t session_name # Attaches to tmux session | |
tmux ls # Lists all tmux sessions | |
#PREFIX is Ctrl-b by default | |
PREFIX ? # Lists all commands available | |
PREFIX d # Detaches window | |
PREFIX c # New window | |
PREFIX , # Rename window | |
PREFIX n # Next window |
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
Ctrl+D to select next occurence of word. | |
Alt+F3 to select all occurences of a word. | |
R-Click & Shift for column select. Ctrl to add to selection. | |
Make selection, Ctrl+Shift+L (L for lines) | |
Ctrl+Shift+P for command bar. Type somethign like syntax or just javascript (it does fuzy searching) | |
Ctrl+P searches your file system (fuzzy search as well). Enter @ symbol on highlighted file to get Ctrl+R functionality (see) | |
Ctrl+R to browse symbols / method names / style sheets. | |
Ctrl+I is incremental search (what does this do?) | |
Ctrl+Shift+P and type snipper for the working files language snippets | |
You can create your own snippets. |
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 update_progress(progress): | |
print '\r{1}%[{0}] '.format('#' * (progress/2), str(progress).zfill(2)), | |
# Useage | |
data = [] | |
count = 0.0 | |
total = len(data) | |
print 'Starting...' | |
# iterate over something and update count |
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
// Paste inside public void paint() | |
g.setColor(Color.black); | |
g.setFont(new Font(null)); | |
for ( int X=0; X<800; X += 50 ) | |
g.drawString( String.valueOf(X), X, 50 ); | |
for ( int Y=100; Y<600; Y += 50 ) | |
g.drawString( String.valueOf(Y), 28, Y ); | |
// lines | |
g.setColor(Color.lightGray); | |
for ( int X=0; X<800; X += 50 ) |
NewerOlder