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
appcleaner | |
dropbox | |
firefox | |
gimp | |
google-chrome | |
iterm2 | |
keyremap4macbook | |
kobito | |
libreoffice | |
linein |
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
#!/bin/sh | |
#### begin settings #### | |
log_to=~/.app_history | |
idle_min_seconds=300 | |
duration=1 | |
idling_app_name='#Idle' | |
#### end settings #### | |
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
--- setup.py.orig 2013-02-18 02:24:16.000000000 +0900 | |
+++ setup.py 2015-01-20 20:20:20.000000000 +0900 | |
@@ -7,7 +7,7 @@ | |
return os.popen(str).readlines()[0][:-1] | |
def cmd2(str): | |
- return string.split (cmd1(str)) | |
+ return cmd1(str).split() | |
setup(name = "mecab-python", |
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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("%d\n", 24); | |
return 0; | |
} |
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
// | |
// UIImage+fixOrientation.swift | |
// | |
import UIKit | |
extension UIImage { | |
func fixOrientation () -> UIImage { | |
if self.imageOrientation == UIImageOrientation.Up { | |
return self |
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
$ pip install 'svn+http://cabocha.googlecode.com/svn/trunk/python@r99' |
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
$ awk '{s += $1} END {print s}' < sample-1.txt | |
18 |
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 bash -eu | |
cd "${0%/*}" && exec > .gitignore | |
gibo osx | |
gibo linux | |
gibo vagrant | |
gibo python | |
cat <<'EOF' | |
.foobar.conf | |
something_*.log |
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 osascript | |
set o to "" | |
tell application "Google Chrome" | |
repeat with w in windows | |
repeat with t in (tabs of w) | |
set o to (o & (url of t) & "\t" & (name of t) & "\n") | |
end repeat | |
end repeat | |
end tell | |
return text 1 thru -2 of o |
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
$ autoflake -i --remove-all-unused-imports --remove-unused-variables main.py |
OlderNewer