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
$ brew install git | |
==> Downloading http://git-core.googlecode.com/files/git-1.7.9.2.tar.gz | |
File already downloaded in /Users/xxx/Library/Caches/Homebrew | |
==> make prefix=/usr/local/Cellar/git/1.7.9.2 CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4.1 LDFLAGS= install | |
GIT_VERSION = 1.7.9.2 | |
* new build flags or prefix | |
* new link flags | |
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h | |
rm -f git-am git-am+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.9.2/g' -e 's|@@LOCALEDIR@@|/usr/local/Cellar/git/1.7.9.2/share/locale|g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-am.sh >git-am+ && \ | |
chmod +x git-am+ && \ |
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
$ brew install git | |
==> Downloading http://git-core.googlecode.com/files/git-1.7.9.2.tar.gz | |
File already downloaded in /Users/xxx/Library/Caches/Homebrew | |
==> make prefix=/usr/local/Cellar/git/1.7.9.2 CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4.1 LDFLAGS= install | |
GIT_VERSION = 1.7.9.2 | |
* new build flags or prefix | |
* new link flags | |
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h | |
rm -f git-am git-am+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.9.2/g' -e 's|@@LOCALEDIR@@|/usr/local/Cellar/git/1.7.9.2/share/locale|g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-am.sh >git-am+ && \ | |
chmod +x git-am+ && \ |
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
call <SID>AddPair('or', 'and') | |
call <SID>AddPair('and', 'or') |
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
from collections import Counter, defaultdict | |
import sys | |
try: | |
#FILENAME = "/Users/{hoge}/.zhistory" | |
FILENAME = sys.argv[1] | |
except: | |
print "USAGE: zsh_history_sort.py <your_history_file>" | |
sys.exit(1) |
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 | |
# -*- coding: utf-8 -*- | |
import pyaudio | |
import wave | |
import sys | |
import pylab | |
import numpy | |
import os |
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# -*- coding: utf-8 -*- | |
import urllib | |
import zipfile | |
import json | |
import re | |
import os | |
from github import Github | |
GITHUB_TOKEN = "Enter Your GitHub Token" |
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 | |
# -*- coding: utf-8 -*- | |
import Levenshtein | |
import json | |
import sys | |
import zipfile | |
import os | |
OUTPUT_PATH = "./index.txt" |
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
let s:unite_source = { | |
\ 'name': 'def', | |
\ } | |
function! s:unite_source.gather_candidates(args, context) | |
let s:exePath ="YOUR_DICT/main.py" | |
let s:path = expand('%:p') | |
let s:ext = expand('%:e') | |
let s:lines = getbufline('%', 1, '$') | |
let s:func_list = [] |
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
+(UIColor*) hexToUIColor:(NSString *)hex | |
{ | |
if(hex.length == 6) | |
hex = [@"FF" stringByAppendingString: hex]; | |
NSScanner *colorScanner = [NSScanner scannerWithString:hex]; | |
unsigned int color; | |
[colorScanner scanHexInt:&color]; | |
CGFloat a = ((color & 0xFF000000) >> 24)/255.0f; | |
CGFloat r = ((color & 0x00FF0000) >> 16)/255.0f; | |
CGFloat g = ((color & 0x0000FF00) >> 8) /255.0f; |
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
#import "Test.h" | |
@interface Test (Private) | |
- (void)hoge; | |
@end | |
@implementation Test { | |
NSString *str; | |
int index; | |
} |
OlderNewer