Skip to content

Instantly share code, notes, and snippets.

@ryo-murai
ryo-murai / herokuapi.md
Last active September 12, 2015 01:19
Heroku API

Heroku REST API Examples


See Heroku Platform API for details.

  • Config Vars
  • Get
curl -n -X GET https://api.heroku.com/apps/${APP_NAME}/config-vars \
@ryo-murai
ryo-murai / posh-measure-command.md
Created July 13, 2015 01:37
Powershellでコマンド実行時間を計測する
@ryo-murai
ryo-murai / curl-post-file.md
Last active June 23, 2026 08:39
curlでJSONをPOSTするの忘れるからかいとく
curl -v -H 'Content-Type: application/json; charset=UTF-8' -H 'X-Accept: application/json' -X POST --data-binary @path/to/file.json https://getpocket.com/v3/get
We couldn’t find that file to show.
@ryo-murai
ryo-murai / playgen.sh
Created February 8, 2015 13:45
activatorなしでplayする
#!/bin/sh
PROJECT=${1:sample}
SBT_VER=0.13.5
PLAY_VER=2.3.4
SCALA_VER=2.11.2
mkdir -p project
@ryo-murai
ryo-murai / flatten.ps1
Created February 7, 2015 13:40
タイムスタンプでファイルを整理する
dir -Directory | % { $d = $_
move "$d\*" .
rmdir $d
}
@ryo-murai
ryo-murai / scala-ss.md
Last active March 10, 2016 02:13
社内でちょろっとやるscala勉強会スライド

いまさら学ぶScala


Scalaとは

マルチパラダイムなプログラミング言語

  • 関数型とオブジェクト指向
@ryo-murai
ryo-murai / ie.ps1
Created March 28, 2014 02:32
IEが10秒ごとに開いて閉じるだけで離席時のロッk
# powershell -executionPolicy unrestricted -command "ie.ps1"
while($True) {
#$shell = New-Object -COM WScript.Shell
#$ie = $shell.CreateObject("InternetExplorer.Application")
$ie = New-Object -Com InternetExplorer.Application
echo "launching ie"
$ie.navigate2("about:blank")
sleep 1
$ie.visible=$true
@ryo-murai
ryo-murai / readme.md
Last active August 29, 2015 13:56
VIM備忘録

VIMのコマンド備忘録(自分用)

  • 自分のよく使うもの
  • 自分の忘れやすいもの
  • 網羅的ではない。自分用メモ
@ryo-murai
ryo-murai / msysvim_scalasyntax.sh
Last active January 1, 2016 12:09
scala syntax highlighting for msysgit vim.
#!/bin/bash
vimdir=/usr/share/vim/vim74
mkdir -p $vimdir/{ftdetect,indent,syntax}
for d in ftdetect indent syntax
do
curl -o $vimdir/$d/scala.vim https://raw.githubusercontent.com/scala/scala-tool-support/master/tool-support/vim/$d/scala.vim
done
for f in html javascript css vb