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
rewrew | |
ew | |
rweewrew | |
func | |
rewew |
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
curl -XPUT 'http://localhost:9200/image3/' -d' | |
{ | |
"settings": { | |
"index":{ | |
"analysis":{ | |
"tokenizer" : { | |
"kuromoji" : { | |
"type" : "kuromoji_tokenizer" | |
} | |
}, |
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
ptrdiff_t urldecode(char* dst, const char* src) | |
{ | |
char* org_dst = dst; | |
char ch, a, b; | |
do { | |
ch = *src++; | |
if (ch == '%' && isxdigit(a = src[0]) && isxdigit(b = src[1])) { | |
if (a < 'A') a -= '0'; | |
else if(a < 'a') a -= 'A' - 10; | |
else a -= 'a' - 10; |
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
require 'RMagick' | |
NUM_COLORS = 16 | |
HIST_HEIGHT = 200 | |
img = Magick::Image.read('public/upload_images/d1/a5/d1a50562ce7d25930bc5d4b527aec38b.png').first | |
img = img.quantize(NUM_COLORS, Magick::GRAYColorspace) | |
#img = img.quantize(NUM_COLORS) | |
hist = img.color_histogram |
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
type | |
// | |
// Enumeration used to specify a .NET framework version | |
// | |
TDotNetFramework = ( | |
DotNet_v11_4322, // .NET Framework 1.1 | |
DotNet_v20_50727, // .NET Framework 2.0 | |
DotNet_v30, // .NET Framework 3.0 | |
DotNet_v35, // .NET Framework 3.5 | |
DotNet_v4_Client, // .NET Framework 4.0 Client Profile |
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 | |
django-admin.py makemessages -a | |
django-admin.py compilemessages | |
#django-admin.py makemessages -l de |
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
// Many thanks to http://mntone.hateblo.jp/entry/2013/02/13/115632 | |
[Code] | |
procedure Pin(path: String; targets: Array of String); | |
var | |
i,k: integer; | |
itemName : String; | |
FSO, folderPath, fileName, shell, folder, folderItem, colVerbs: Variant; |
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/bash | |
## | |
# BlueNote Firewall Configuration | |
## | |
# ポリシーの決定 | |
/sbin/iptables -P INPUT DROP # 受信はすべて破棄 すべての穴をふさいでから必要なポートを空ける | |
/sbin/iptables -P OUTPUT ACCEPT #送信はすべて許可 | |
/sbin/iptables -P FORWARD DROP # 通過はすべて破棄 |
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
[user] | |
name = Isshu Rakusai | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
[branch "master"] | |
remote = origin |