Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
View GitHub Profile
@otiai10
otiai10 / howtodebug.md
Created July 4, 2016 16:13
How to Debug yourself
  1. See what you can see
  2. Read error messages
  3. Grab when you broke your software
  4. Know why you broke your software
<iframe src="https://player.twitch.tv/?channel=mogra_akihabara" frameborder="0" scrolling="no" height="378" width="620"></iframe><a href="https://www.twitch.tv/mogra_akihabara?tt_medium=live_embed&tt_content=text_link" style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal; font-size:10px;text-decoration:underline;">Watch live video from mogra_akihabara on www.twitch.tv</a>
diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js
index 49df159..2174f4b 100644
--- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js
+++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js
@@ -46,7 +46,7 @@ var DatePickerIOS = React.createClass({
/**
* The currently selected date.
*/
- date: PropTypes.instanceOf(Date).isRequired,
+ date: PropTypes.number.isRequired,
@otiai10
otiai10 / index.html
Created May 22, 2016 09:19
ブラウザのJavaScriptからGoogle Cloud Vision APIを使うペライチのサンプル
<!DOCTYPE html>
<html>
<head></head>
<body>
<img style="max-width: 400px;"><input type="file" accept="image/*" />
<pre></pre>
<script type="text/javascript">
const api_key = `取得した自分のAPI_KEY`;
const url = `https://vision.googleapis.com/v1/images:annotate`;
@otiai10
otiai10 / tokyo_japan.md
Last active May 22, 2016 17:03
俺、東京帰ったら◯◯するんだ...
  • 宮崎県に行く
    • ともひろさん && 土屋さん
  • 神戸に行く
    • 塩見に会う
  • 京都に行く
    • 大介さんに金を返す
    • 京亀
  • 東京
    • るっかさんに回転🍣おごってもらう
  • ayanel🍣をする(🍣アカデミーがいい)
@otiai10
otiai10 / travel-preps.20160315.md
Last active March 14, 2016 22:38
travel preps

手続き的なやつ

  • 旅行保険入る
  • モスクワのホテル取る
  • メール
    • lawyer
    • manager
    • client

荷造り的なやつ

@otiai10
otiai10 / callable-instance.js
Last active March 1, 2016 11:31
extends callable function (クラスで定義したものをインスタンス化したものがcallableなFunctionとしてふるまってほしい場合、その処理をどこに書けばいいのだろうか)
class Foo extends Function {
// how to wite behavior
}
let foo = new Foo();
foo.call();
// this is callable, but no behavior defined
@otiai10
otiai10 / Elixir.md
Last active March 7, 2016 01:05
Elixir
  • block
  • do
  • quote

types

  • list
  • tuple
  • keyword list
  • map