Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@taisyo7333
taisyo7333 / memo.txt
Last active March 2, 2016 07:02
React Native Memo
react-native-sound のLoadは非同期。
<Image> using local image file
https://github.com/facebook/react-native/issues/751
<Image style={styles.hoge} source={{isStatic:true, uri:"/tmp/image/hoge.jpg"}} />
@taisyo7333
taisyo7333 / dump(Add Suppoted Orietation 2).log
Last active March 25, 2016 01:03
react-native-orientation Lock to LandScapeによる例外発生
2016-03-25 08:54:38.640 [info][tid:com.facebook.React.JavaScript] Running application "landscape_test" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2016-03-25 08:54:38.651 landscape_test[5155:66368] Locked to Landscape
2016-03-25 08:54:38.658 landscape_test[5155:66197] *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorotate] is returning YES'
*** First throw call stack:
(
0 CoreFoundation 0x000000010ef7ed85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010e176deb objc_exception_throw + 48
2 CoreFoundation 0x000000010ef7ecbd +[NSException raise:format:] + 205
3 UIKit 0x0000000110f45e36 -[UIViewController __supportedInterfaceOrientations] + 903
4 UIK
@taisyo7333
taisyo7333 / command_line.log
Created March 29, 2016 09:14
docker上でrails console起動する
docker-compose run app rails console
最上位のcomponentにconnectを行う。propsを通して、state,actionを引き渡す。
https://tongariboyz.gitbooks.io/react-native-redux-dev-notes/content/ja/smartAndDumbComponent.html
http://qiita.com/kiita312/items/d769c85f446994349b52#container-and-presentational-components
@taisyo7333
taisyo7333 / gist:08d43bf1e66a2b84f0238ac639d4169d
Created April 8, 2016 08:26
コーディング:英語
http://qiita.com/sue738/items/9754b3cad13272bd3d39
@taisyo7333
taisyo7333 / gist:db468b21158ca82dd5d80af1609d7568
Created April 15, 2016 03:57
Rails Minitest debugging on console
$stdout.puts e.class
$stdout.puts e.message
@taisyo7333
taisyo7333 / gist:78146940fdad161112538eace80359ff
Created April 17, 2016 23:29
Test HTTP request using curl command.
curl -X POST -H "Authorization: Token token= ~Here is token~ " https://example.com?value=100
@taisyo7333
taisyo7333 / gist:17410beb8d90708909ddf8578b8da5d8
Created May 11, 2016 02:30
npm-check-updates で package.json を更新する
http://bunlog.d-s-b.jp/2014/07/22/autoupdate-package_json/
https://atom.io/packages/atom-react-native-css
@taisyo7333
taisyo7333 / gist:b3d3fdd3e4c1f1f3d6c797553c95922f
Created May 27, 2016 08:00
Emacs で 英語のスペルチェック!
Aspell
https://miyazakikenji.wordpress.com/2013/06/01/emacs%E3%81%A7%E3%82%B9%E3%83%9A%E3%83%AB%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF/
http://qiita.com/catatsuy/items/ae9875706769d4f02317
http://keisanbutsuriya.hateblo.jp/entry/2015/02/10/152543