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
-- vim: set filetype=haskell: | |
Config | |
{ font = "Noto Sans CJK JP Bold 9" | |
, additionalFonts = ["Symbola 9"] | |
, bgColor = "#3d3846" | |
, fgColor = "#ffffff" | |
, border = FullB | |
, borderColor = "#3d3846" | |
, borderWidth = 4 | |
, position = TopH 20 |
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 -- | |
# Name : rpi-pir-alarm | |
# Purpose : Motion Detection and Email Notification Using Raspberry Pi | |
# | |
# Author : KUSANAGI Mitsuhisa <[email protected]> | |
# License : MIT License | |
# Usage : ./rpi-pir-alarm |
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
「シェル芸勉強会 meets バイオインフォマティクス vol.1」解答例 | |
資料URL: https://bio-shell.connpass.com/event/66089/presentation/ | |
問題URL: https://www.slideshare.net/EmiHattori1/ss-80854726 | |
A1: | |
$ echo 'Gorilla gorilla' | perl -nlE 's/ori/a/g;s/a\b/us/g;say' | |
Gallus gallus | |
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
# The subject line | |
# The body of a commit message. | |
# Resolves: #123 | |
# Git commit message template to use Emoji Prefix | |
# =============================================== | |
# | |
# Consider starting the commit message with an applicable emoji: |
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
「シェル芸勉強会の前座的な手抜き」の解答例 | |
問題URL: http://techlion.jp/archives/9691 | |
問題 | |
連結したら素数になるという素数のペアを、ワンライナーでなるべくたくさん挙げてみましょう。 | |
例: 2と3(連結したら23で素数。) |
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
2015/06/18「第17回ジュンク堂はシェル芸が乗っ取った勉強会」の解答例 | |
問題URL: http://blog.ueda.asia/?p=6454 | |
A1-1: | |
cat data1 | sort -k1,1 | awk 'BEGIN{ORS=""}{print $1!=prev?"\n"$1" "$2:" "$2;prev=$1}' | awk 'NR!=1' | |
A1-2: | |
cat data1 | sort -k1,1 | awk 'BEGIN{ORS=""}{print $1!=prev?"],"$1":["$2:","$2;prev=$1}END{print "]}\n"}' | sed 's/^],/{/' |
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
/** | |
* 「上田ブログ」(http://blog.ueda.asia/)のエントリー | |
* 『京急VVVF音(ドレミファインバータ)の周波数』 | |
* (http://blog.ueda.asia/?p=6039)をProcessingで鳴らしてみる | |
*/ | |
import ddf.minim.*; | |
import ddf.minim.ugens.*; | |
Minim minim; |
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
URI='http://www.summitstore.co.jp/tirashi/doc/435a.html?1'; chkmd5(){ wget -q -rl1 -nd -P img -A html,gif,jpg "$URI"; find img -type f | sort -n | xargs md5sum; }; while :; do [ "_$(diff <(chkmd5) <(sleep 30m; chkmd5))" = "_" ] || notify-send -i info "更新あり: サミットストア荏原4丁目店"; 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
2014/12/30「年末年始シェル芸問題集」の解答例 | |
問題URL: http://blog.ueda.asia/?p=4852 | |
A1: | |
find ~/ -type f -a \( -iname '*.jpg' -o -iname '*.jpeg' \) -print0 | xargs -0 md5sum | sort -k1d | awk '{if($1==M){print M,P"\n"$1,$2}{M=$1;P=$2}}' | uniq | |
A2: | |
curl -s 'http://www.geocoding.jp/api/?q=羽田空港' | grep '^<\(lat\|lng\)_' | sed 's/<[^>]\+>//g' | awk -F',' '{print "緯度:"$1"度"$2"分"$3"秒"}' | sed '2s/^緯/経/' |
NewerOlder