超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
| #!/bin/bash | |
| # | |
| #################################### | |
| # iTunes Command Line Control v1.0 | |
| # written by David Schlosnagle | |
| # created 2001.11.08 | |
| # edit 2010.06.01 rahul kumar | |
| #################################### | |
| showHelp () { |
| // REFERENCE UNICODE TABLES: | |
| // http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
| // http://www.tamasoft.co.jp/en/general-info/unicode.html | |
| // | |
| // TEST EDITOR: | |
| // http://www.gethifi.com/tools/regex | |
| // | |
| // UNICODE RANGE : DESCRIPTION | |
| // | |
| // 3000-303F : punctuation |
| var DateHelper = { | |
| // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time | |
| // Ruby strftime: %b %d, %Y %H:%M:%S GMT | |
| time_ago_in_words_with_parsing: function(from) { | |
| var date = new Date; | |
| date.setTime(Date.parse(from)); | |
| return this.time_ago_in_words(date); | |
| }, | |
| // Takes a timestamp and converts it to a relative time | |
| // DateHelper.time_ago_in_words(1331079503000) |
| #import <UIKit/UIKit.h> | |
| #import <ImageIO/ImageIO.h> | |
| #import <MobileCoreServices/MobileCoreServices.h> | |
| static UIImage *frameImage(CGSize size, CGFloat radians) { | |
| UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
| [[UIColor whiteColor] setFill]; | |
| UIRectFill(CGRectInfinite); | |
| CGContextRef gc = UIGraphicsGetCurrentContext(); | |
| CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
| (defun ag () | |
| (interactive) | |
| (let ((grep-command "ag -a --nocolor ") | |
| (grep-find-command "ag --nocolor --nogroup ")) | |
| (call-interactively 'grep-find))) |
| SimpleCov.start 'rails' do | |
| add_filter ".bundle" | |
| end |
| # ----- PROMPT ----- | |
| ## PROMPT | |
| PROMPT=$'[%*] → ' | |
| ## RPROMPT | |
| RPROMPT=$'`branch-status-check` %~' # %~はpwd | |
| setopt prompt_subst #表示毎にPROMPTで設定されている文字列を評価する | |
| # {{{ methods for RPROMPT | |
| # fg[color]表記と$reset_colorを使いたい | |
| # @see https://wiki.archlinux.org/index.php/zsh |
| #!/usr/bin/env bash | |
| # Automatically installs swiftenv and run's swiftenv install. | |
| # This script was designed for usage in CI systems. | |
| git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
| export SWIFTENV_ROOT="$HOME/.swiftenv" | |
| export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" | |
| if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then | |
| swiftenv install -s |