Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function pakuriTweet(id) { | |
TwitterService.status.update(TwitterService.status.get(id).text, 0); | |
} | |
System.addContextMenuHandler('パクツイ', 0, pakuriTweet); | |
System.addKeyBindingHandler('T'.charCodeAt(0), 1, pakuriTweet); |
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
function makeUniqueColor(status) { | |
var id = status.user.id; | |
var max = 16777215; | |
while (id > max) | |
id -= max; | |
var colorRange = [0, 255]; | |
var averageRange = [0, 80]; | |
var color = [id & 255, (id >> 8) & 255, (id >> 16) & 255]; | |
while (true) { | |
for (var i = 0; i < 3; i++) { |
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
#korean.py | |
# 한국어 조사 처리 모듈. | |
# 사용을 위해 구성해야 할 것은 없습니다. | |
# 값을 산출하는 OnTranslate 핸들러가 이미 있을 경우, 의도와는 다르게 동작할 수 있습니다. | |
# | |
# 사용 예시: | |
# 나\=[은,는] 자연\=[을,를] 배운다. | |
# 손\=[으]로 만지고, 발\=[으]로 밟는다. | |
# | |
# 결과: |
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
Public NotInheritable Class MultiplexConverter | |
Implements System.Windows.Data.IValueConverter | |
Private _Converters As New System.Collections.ObjectModel.Collection(Of System.Windows.Data.IValueConverter) | |
<System.ComponentModel.BindableAttribute(True)> | |
Public ReadOnly Property Items As System.Collections.ObjectModel.Collection(Of System.Windows.Data.IValueConverter) | |
Get | |
Return _Converters | |
End Get |
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
[ -z "$PS1" ] && return | |
# Colours | |
Black='\033[0;30m' | |
Red='\033[0;31m' | |
Green='\033[0;32m' | |
Yellow='\033[0;33m' | |
Blue='\033[0;34m' | |
Purple='\033[0;35m' |
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 sys, os, shutil | |
from compileall import compile_dir | |
# libpath destpath | |
if len(sys.argv) < 3: | |
print("need more arguments.") | |
os._exit(1) | |
os.chdir(sys.argv[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
#!/bin/sh | |
curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz | |
tar zxvf package-query.tar.gz | |
cd package-query | |
makepkg -si --asroot | |
cd .. | |
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz | |
tar zxvf yaourt.tar.gz | |
cd yaourt | |
makepkg -si --asroot |
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
.parent { | |
position: relative; | |
} | |
.child { | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, "Lucida Grande", "Segoe UI", Arial, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "Meiryo UI", "Apple SD 산돌고딕 Neo", "Apple SD Gothic Neo", "맑은 고딕", "Malgun Gothic", "나눔고딕", "NanumGothic", sans-serif; | |
} |
OlderNewer