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
| #!/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" |
| def hash_file(file, block_size=65536): | |
| hasher = hashlib.md5() | |
| for buf in iter(partial(file.read, block_size), b''): | |
| hasher.update(buf) | |
| return hasher.hexdigest() | |
| def upload_to(instance, filename): | |
| """ |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.
| // | |
| // UIView+LiveHitTestTracing.h | |
| // UIViewLiveHitTestTracing | |
| // | |
| // Created by Manfred on 10/28/15. | |
| // | |
| // | |
| @import UIKit; |
| // | |
| // PasteboardWatcher.swift | |
| // PasteboardWatcher | |
| // | |
| // Created by Devarshi Kulshreshtha on 6/19/15.PasteboardWatcher | |
| // Copyright © 2015 Devarshi Kulshreshtha. All rights reserved. | |
| // | |
| import Cocoa |
You installed anaconda-mode and you've enabled it for use in Emacs. You also used homebrew to install your python distrubution. You open up a python file with anaconda-mode on.
You see a quick flash of Blocking call to accept-process-output with quit inhibited!! across your minibuffer. You switch to *messages* to see the errors and you see:
Blocking call to accept-process-output with quit inhibited!! [52 times]
| """ 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 |
| let blacklists = ["https://mail.google.com/* gi gt x r f"] | |
| map H scrollLeft | |
| map L scrollRight | |
| map h previousTab | |
| map l nextTab | |
| map r reloadTabUncached | |
| map u lastClosedTab | |
| map R :restore<Space> | |
| map , goBack |
| #!/usr/bin/env python3 | |
| import random | |
| import signal | |
| import sys | |
| """帮助 | |
| 输入 ? 显示正确答案 | |
| """ | |
| TEST_COUNT = 0 |