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
class Main{public static void main(String[]x)throws Throwable{for(int N=System.in.read()-48,i=-1,j;++i<7;System.out.println())for(j=0;j<5;)System.out.print(((1<<j++)&">AA0AA>0@@0@@0>@@>11>>@@>@@>0AA>@@0>11>@@>>11>AA>>@@0@@0>AA>AA>>AA>@@>".charAt(N*7+i)-48)>0?'■':'□');}} |
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
# logspoutのdockerコンテナ起動コマンドがさっぱり覚えられないのでメモ | |
# syslogの出力先をpapertrailに | |
docker run -d -h hostname --name logspout -v=/var/run/:/tmp/ gliderlabs/logspout syslog://logs334.papertrailapp.com:114514 |
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
# nginxコンテナ起動 | |
docker run --name nginx_sample -d -p 127.0.0.1:80:80 nginx |
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 java.time.Instant; | |
import java.time.format.DateTimeFormatter; | |
import java.time.temporal.TemporalAccessor; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
public class DateTimeFormatterTest{ |
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
#for i in `seq 1 10`; do while [ -z $out ]; do out=`matsuya 1 | perl -nlE 'print if /(?=.*うどん.*).*カレー.*/'`; done && echo $out && unset out; done | |
for i in `seq 1 10` | |
do | |
while [ -z $out ] | |
do | |
out=`matsuya 1 | perl -nlE 'print if /(?=.*うどん.*).*カレー.*/'` | |
done && echo $out && unset out | |
done |
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
sudo iptables -A DOCKER -p tcp -s 172.17.0.0/16 -d 172.17.0.7 --dport 4444 -j ACCEPT | |
sudo iptables -A DOCKER -p tcp -d 172.17.0.7 --dport 4444 -j DROP |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class BatchBuild : MonoBehaviour { | |
static private string ApplicationName = "Hoge-application"; | |
//for Android |
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
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
playerfile="/tmp/player.swf" | |
keyfile="/tmp/authkey.png" |
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
//LICENSE: WTFPL (http://www.wtfpl.net/about/) | |
function COUNTBYCOLOR(range, colorref) { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var color = sheet.getRange(colorref) | |
.getBackground(); | |
var range = sheet.getRange(range); | |
var rangeVal = range.getValues(); | |
var count = 0; |
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
#!/bin/bash | |
# Usage: | |
# ./chrome_launcher.sh [user_data_dir] | |
# user_data_dirにあるユーザーデータディレクトリを使用しクロームを起動する。 | |
# user_data_dirが指定されなかった場合は、DEBUGという名前のユーザーデータディレクトリを使用する | |
USER_DATA_DIR=${1-DEBUG} | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="$HOME/Library/Application Support/Google/Chrome/$USER_DATA_DIR/" |
OlderNewer