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
language: node_js | |
node_js: | |
- "6" | |
before_deploy: | |
- npm run build | |
deploy: | |
provider: s3 | |
bucket: {{bucket名}} | |
region: ap-northeast-1 | |
endpoint: {{bucket名}}.s3-ap-northeast-1.amazonaws.com |
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
$ aws ec2 describe-security-groups \ | |
--filters Name=ip-permission.cidr,Values='xxx.xxx.xxx.xxx/32' | |
--query 'SecurityGroups[*].{Name:GroupName, Description:Description}' | |
[ | |
{ | |
"Name": "hoge", | |
"Description": "from hogehoge" | |
}, | |
... |
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
$ brew install hugo | |
$ hugo version | |
ugo Static Site Generator v0.19 darwin/amd64 BuildDate: 2017-02-27T19:21:29+09:00 |
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
var calendarId = "Calendar ID を入力"; | |
var slackToken = "Slack API Token を入力" | |
function onTrigger() { | |
var event = getCurrentEvent(calendarId); | |
updateSlackStatus(event); | |
} |
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
$ git push origin HEAD |
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
$ brew install fontforge |
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
defmodule Erastosthenes do | |
def sieve(prime, next, last?) do | |
receive do | |
n when rem(n, prime) == 0 -> | |
sieve(prime, next, last?) | |
n -> | |
send next, n | |
next = if last? do | |
# 自身が最後の篩だったら次の篩を生成する |
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
git log --full-history --date=format:'%Y/%m/%d %H:%M:%S' --pretty=format:'%h [%ad] %an : %s' | peco | awk '{print nt $1}' |
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
defmodule ScrapingWikiHttpstatus.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :scraping_wiki_httpstatus, | |
version: "0.1.0", | |
elixir: "~> 1.4", | |
build_embedded: Mix.env == :prod, | |
start_permanent: Mix.env == :prod, | |
elixirc_paths: ["."], |
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
for line in (cat syukujitsu_utf8.csv) | |
set -l syuku (string split , $line) | |
echo "$syuku[1]は$syuku[2]です" | |
end |