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
#!env python | |
#-*- coding: utf-8 -*- | |
# see http://togetter.com/li/821309 | |
import sys | |
length = len('ABCDEFGHIJK') | |
print sum(range(length)) |
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
#!env python | |
#-*- coding: utf-8 -*- | |
# see http://togetter.com/li/821309 | |
import sys | |
print sum(range(ord('L') - ord('A'))) |
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
# Solarized - PuTTY settings ini version | |
# https://github.com/altercation/solarized | |
# https://github.com/altercation/solarized/blob/master/putty-colors-solarized/solarized_dark_puttytray.txt | |
# https://github.com/altercation/solarized/blob/master/putty-colors-solarized/solarized_light_puttytray.txt | |
# http://blog.remora.cx/2012/10/let-us-use-solarized.html | |
# # normal | |
# Colour0="187,187,187" | |
# Colour1="255,255,255" | |
# Colour2="0,0,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
// C# キーワード定義ファイル | |
// CASE=True | |
#endif | |
#endregion | |
#if | |
#pragma | |
#region | |
abstract | |
as |
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
; テキストエディタ色設定 Ver3 | |
; C[XXX]=on/off,bold,BBGGRR,BBGGRR,underline ; | |
; SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B sRGB HSB ; | |
; --------- ------- ---- ------- ----------- ---------- ----------- ----------- ; | |
; base03 #362b00 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 ; | |
; base02 #423607 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26 ; | |
; base01 #756e58 10/7 brgreen 240 #4e4e4e 45 -07 -07 88 110 117 194 25 46 ; | |
; base00 #837b65 11/7 bryellow 241 #585858 50 -07 -07 101 123 131 195 23 51 ; | |
; base0 #969483 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59 ; | |
; base1 #a1a193 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63 ; |
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 java.util.HashSet; | |
import java.util.ArrayList; | |
import java.util.Random; | |
class MakeRandomArray { | |
public ArrayList<Integer> makeRandomArray(ArrayList<Integer> array, Random rand, int arraySize, int randMax, int randMin){ | |
HashSet<Integer> set = new HashSet<>(arraySize); | |
for(int i = 1; i <= arraySize; i++){ | |
set.add(random(rand, randMax, randMin)); | |
} |
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
[status] | |
# http://qiita.com/tettekete/items/7019bf7d1bfa883d8549 | |
showuntrackedfiles = no |
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 | |
cat << EOS | tr '\n' '\t' | sed -e 's/\t*$//' >> ${log} | |
name:${app} | |
time:$(date --iso-8601=seconds) | |
pid:$$ | |
args:"${*}" | |
EOS | |
echo "" >> ${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
@echo off | |
sh %~dp0ssh-select.sh %* |
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 | |
# Event check | |
event="$1" | |
if [ -z "${event}" ];then | |
# fail | |
exit 1 | |
fi | |
# Key |