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 cask install bitbar |
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
module Main exposing (..) | |
import Html exposing (Html, button, div, text, program) | |
import Html.Events exposing (onClick) | |
-- モデル | |
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
iex(1)> QueueEx.Queue.start_link | |
{:ok, #PID<0.124.0>} | |
iex(2)> QueueEx.Queue.add 1 | |
:ok | |
iex(3)> QueueEx.Queue.add 2 | |
:ok | |
iex(4)> QueueEx.Queue.add 3 | |
:ok | |
iex(5)> QueueEx.Queue.add 3 | |
:ok |
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 |
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
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 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
$ 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
$ 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
var calendarId = "Calendar ID を入力"; | |
var slackToken = "Slack API Token を入力" | |
function onTrigger() { | |
var event = getCurrentEvent(calendarId); | |
updateSlackStatus(event); | |
} |