#Heroku導入メモ
→ Heroku | Cloud Application Platform
- 知っておきたい!Herokuを使う上では当たり前?の16の常識 | blog.mah-lab.com
- デザイナーもHerokuを使ってみよう!Herokuを使って静的ページを無料で作る - KUROIGAMEN(黒い画面)
##Herokuとは?
grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" . |
# usage: ruby compress.rb icon.gif > myicon.rb | |
bit = 15 | |
data = File.open(ARGV[0]){|f| f.read } | |
encoded_data = nil | |
offset = 0 | |
bit_str = data.unpack("B*")[0] | |
(0x0000..0xffff).each do |i| |
{- | |
新人女子プログラマの書いたコードを直すだけの簡単なお仕事です!|paizaオンラインハッカソンVol.1 https://paiza.jp/poh/ec-campaign | |
-} | |
import Data.List | |
import Data.Maybe | |
main = do cs <- getContents | |
putStr $ unlines $ (map show) $ parse $ lines cs | |
parse :: [String] -> [Int] | |
parse ls = map (findBestPrice prices) goals |
{-# LANGUAGE BangPatterns #-} | |
import Control.Monad | |
import Control.Monad.ST | |
import Control.Applicative | |
import qualified Data.Vector.Unboxed as V | |
import Data.Vector.Unboxed ((!)) | |
import qualified Data.Vector.Algorithms.Intro as Intro | |
isort v = runST $ do |
http://mohayonao.github.io/CoffeeCollider/
The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.
# pulling one User object
user = User.query.get(1)
{: a, a <- [ 1, 2, 3 ] }
のような書き方で Routine が生成できる.
リスト内包記法は r {}
の式にコンパイルされるので、その生成コードを調べて理解を深める.
// 基本の形, 最初の式が yield される. <- は do と解釈される
FROM ubuntu:trusty | |
RUN apt-get update && apt-get install -y golang mercurial | |
ENV GOPATH /usr/local | |
RUN go get code.google.com/p/go.tools/cmd/present | |
EXPOSE 3999 | |
CMD cd /mnt && present -orighost="localhost" |