Skip to content

Instantly share code, notes, and snippets.

View morishin's full-sized avatar
🦍
ウホホ

Shintaro Morikawa morishin

🦍
ウホホ
View GitHub Profile
#####
# OS Xの一時ファイル
.DS_Store
*.swp
*.lock
profile
####
@morishin
morishin / Gruntfile.coffee
Created October 19, 2013 08:24
Gruntfile Example
module.exports = (grunt)->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
jade:
options:
pretty: true
compile:
files:[
expand: true
cwd: 'src/jade/'
\documentclass[a4j]{jarticle}
\usepackage[dvipdfm]{graphicx}
\usepackage{listings,jlisting}
\usepackage{color,graphicx}
\usepackage{geometry}
\usepackage{type1cm}
\title{<TITLE>}
\author{<AUTHOR>}
\date{\today}
from __future__ import print_function
import sys
def spinner_gen():
while 1:
yield '|'
yield '/'
yield '-'
yield '\\'
function send_yo() {
curl -s -d "api_token=API_TOKEN" -d "username=$1" http://api.justyo.co/yo/
}
function yome() {
if [ $# -gt 0 ]; then
for arg in $@
do
send_yo $arg > /dev/null
done
@morishin
morishin / package-list.txt
Last active September 14, 2015 00:28
Atom packages
Sublime-Style-Column-Selection@1.3.0
autocomplete-ctags@0.3.1
autocomplete-python@0.5.3
autocomplete-ruby@0.1.0
autocomplete-sass@0.1.0
color-picker@2.0.11
emmet@2.3.12
file-icons@1.6.9
git-blame@0.4.5
linter-pep8@1.0.1
alias activate='f=`find . -regex ".*/bin/activate"`; source $f'
@morishin
morishin / chart.py
Last active September 27, 2016 15:34
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sqlite3
import time
from enum import Enum
from bottle import request, response, route, run, static_file
@morishin
morishin / task.py
Last active September 27, 2016 15:34
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hashlib
import json
import os
import sqlite3
import time
import urllib.request
FROM python:3
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y libfreetype6-dev libatlas-base-dev liblapack-dev gfortran cron
RUN pip install matplotlib
RUN pip install pandas
RUN pip install bottle