Skip to content

Instantly share code, notes, and snippets.

for(s<-"33."+:114.to(213))print(s+""tail)
"33."+:114.to(213)map(_+""tail)map print
@ocadaruma
ocadaruma / index.html
Created October 13, 2015 07:33
TODO React
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8"/>
<title>TODO</title>
</head>
<body>
<div id="app"></div>
<script src="https://fb.me/react-0.14.0.min.js"></script>
<script src="https://fb.me/react-dom-0.14.0.min.js"></script>
@ocadaruma
ocadaruma / file0.txt
Created April 19, 2014 10:32
Railsで、画像をアップロード、ダウンロードするREST API ref: http://qiita.com/ocadaruma/items/d12a80f7dbe07dd851a4
$ rails g model Image tag:string data:binary
$ rake db:migrate
@ocadaruma
ocadaruma / CustomCell.h
Created April 19, 2014 04:57
UICollectionViewで非同期に画像を取得して表示 ref: http://qiita.com/ocadaruma/items/6bec7366b1a3c63d7467
#import <UIKit/UIKit.h>
@interface CustomCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicatorView;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end