Python 2 には str
と unicode
の2種類の文字列型がある。
This file contains hidden or 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
#define _POSIX_C_SOURCE 199309L | |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
#include <memory.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
This file contains hidden or 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 re | |
from saying.exceptions import ApplicationException | |
from itertools import chain | |
class DSLSyntaxError(ApplicationException): | |
pass | |
def format(handler, text, message): | |
var = { | |
u'sender': lambda: resolve_handle(message.Sender.Handle), |
This file contains hidden or 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
瀬戸際に漂う 神秘のソース | |
このライブラリの果ては まあるく結合してますよ | |
瀬戸際で語らう リリースの形 | |
七つのチケットはブロッカーを出してる | |
仕様ー!どこだー! | |
仕様ー!どこだー! |
This file contains hidden or 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
config: | |
color: true | |
goods: | |
- URL: http://tracking.post.japanpost.jp/service/detail_search.do?searchKind=M004&reqCode=HOGEHOGE123 | |
kind: 健康かつ快活になれる海外サプリメント |
サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
This file contains hidden or 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
squid の external acl を perl で書いてたんだけどあるときから exteranal acl daemon 自体が起動しなくなった | |
2012/09/11 05:33:15| externalAclLookup: 'authed_ext' queue overload (ch=0x2300e300) | |
とか出る。Overload もなにも、1個のURLにアクセスしただけでコイツが発生するので、何それと思ってちょっとまえのログ見たら | |
2012/09/11 06:04:23| helperOpenServers: Starting 1/1 'perl' processes | |
2012/09/11 06:04:23| commBind: Cannot bind socket FD 7 to [::1]: (99) Cannot assign requested address | |
2012/09/11 06:04:23| commBind: Cannot bind socket FD 8 to [::1]: (99) Cannot assign requested address | |
2012/09/11 06:04:23| ipcCreate: Failed to create child FD. | |
2012/09/11 06:04:23| WARNING: Cannot run '/usr/bin/perl' process. |
This file contains hidden or 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
--- /Applications/Gyazo.app/Contents/Resources/script~ 2012-08-14 07:50:01.000000000 +0900 | |
+++ /Applications/Gyazo.app/Contents/Resources/script 2012-08-14 23:31:39.000000000 +0900 | |
@@ -24,6 +24,7 @@ | |
else | |
system "screencapture -i \"#{tmpfile}\"" | |
if File.exist?(tmpfile) then | |
+ system "/usr/local/bin/mogrify -resize 50% -unsharp 1x1.2+0.2+0 \"#{tmpfile}\"" | |
system "sips -d profile --deleteColorManagementProperties \"#{tmpfile}\"" | |
end | |
end |