Skip to content

Instantly share code, notes, and snippets.

@shiraco
shiraco / python2_startup.sh
Last active December 20, 2015 17:17
EC2 Ubuntu python startup
#!/bin/bash
# update the local repo listing
sudo apt-get update -y
sudo apt-get upgrade -y
# install language-pack-ja
sudo apt-get -y install language-pack-ja
# install git
@shiraco
shiraco / script.R
Last active December 23, 2015 05:39
toDateTime <- function(strTime){
strptime((strTime),format="%Y/%m/%d %H:%M")
}
> toDateTime("2012/08/12 00:00")
----
countRunning <- function(recordDateTime, startDateTime, endDateTime){
# isRunning <- ifelse(startDateTime <= recordDateTime & recordDateTime < endDateTime, 1, 0)
isRunning <- (startDateTime <= recordDateTime & recordDateTime < endDateTime) * 1
@shiraco
shiraco / octpress_start.sh
Last active October 7, 2015 19:18
Octpress start
git clone git://github.com/imathis/octopress.git octopress
cd octopress
bundle install
rake setup_github_pages
Repository url: [email protected]:shiraco/shiraco.github.com.git
rake install
rake generate
rake deploy
git remote add bucket [email protected]:shiraco/octopress.git