Copy the folder ./elixir_mix/ to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list. e.g.
Example:
plugins=(
autojump
git
| #################################################################### | |
| # Change the number of rows and columns to display in Launchpad # | |
| # by typing the following two lines in Terminal. You can use any # | |
| # two integers for the number of rows and columns. I'm using 15x10 # | |
| #################################################################### | |
| defaults write com.apple.dock springboard-columns -int 15 | |
| defaults write com.apple.dock springboard-rows -int 10 | |
| #################################################################### | |
| # Reset all settings |
| iTerm2; curl; git-remote-https; helpd; "Alfred 3"; idea; Thunder*; Terminal; php; Dropbox; Sparrow; "Sequel Pro"; python; python3; ruby; wget; GitHub; npm; node; perl; prl*; itunes; sftp; whois; traceroute; stroke; ssh; MacUpdate*; git*; Git; fzs*; mail; flickr*; xulr*; imess*; com.apple.im*; Airmail; Adium; Prot*; Tokens; Lite*; file*; ssh; ftp; Adobe*; PDApp*; Creative*; Vbox*; xulrunner; Virtual*; PDApp; Bit*; Domainers; fire*; plugin*; Atom*; Tokens; .com.realmacsoftware*; Xcode; java; httpd; Amethyst; Moom; |
| func keyCodeToString(keyCode: CGKeyCode) -> String { | |
| let curKeyboard = TISCopyCurrentKeyboardInputSource().takeRetainedValue() | |
| let ptr = TISGetInputSourceProperty(curKeyboard, kTISPropertyUnicodeKeyLayoutData) | |
| let keyboardLayoutPtr = UnsafePointer<UCKeyboardLayout>(ptr) | |
| var deadKeyState: UInt32 = 0 | |
| var actualStringLength = 0 | |
| var unicodeString = [UniChar](count: 255, repeatedValue: 0) | |
| let status = UCKeyTranslate(keyboardLayoutPtr, |
| #!/bin/sh | |
| # Convert video to gif. | |
| if [[ $# -ne 3 ]]; then | |
| echo "Usage: trans_gif source.mp4 target.gif 300" | |
| exit 1 | |
| fi | |
| palette="/tmp/palette.png" | |
| filters="fps=15,scale=$3:-1:flags=lanczos" |
| @interface YourViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { | |
| UIImageOrientation scrollOrientation; | |
| CGPoint lastPos; | |
| } | |
| - (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (tableView.isDragging) { | |
| UIView *myView = cell.contentView; | |
| CALayer *layer = myView.layer; | |
| CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity; |
| from flask import Flask | |
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from flask.ext.wtf import Form | |
| from flask.ext.babel import gettext | |
| from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
| from wtforms.validators import Optional, Required | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) |
| """ Inspired by http://flask.pocoo.org/snippets/40/ """ | |
| app = Flask(__name__) | |
| @app.url_defaults | |
| def hashed_url_for_static_file(endpoint, values): | |
| if 'static' == endpoint or endpoint.endswith('.static'): | |
| filename = values.get('filename') | |
| if filename: | |
| if '.' in endpoint: # has higher priority |
| import time | |
| class Marsaglia: | |
| """Pseduo-random generator | |
| http://www.math.uni-bielefeld.de/~sillke/ALGORITHMS/random/marsaglia-c | |
| """ | |
| def __init__(self, i1=0, i2=0): | |
| self.z = i1 or 362436069 |