IT分からんわ~_~;

IT色々お勉強中のブログ

react-native-paginationを使ってみる

www.npmjs.com React Nativeに最適なページネーションコンポーネント Roadmap github.com Horizontal これらを自分で試してみるのは簡単です。Xcodeでただexamples/ios/*.xcodeprojを開いてください。 次にCmd + Rを押します。あなたはスイッチケースのため…

ScrollableTabViewの使い方

github.com 訳↓ これはおそらくAndroid上の私のお気に入りのナビゲーションパターンです、私はそれがiOS上でより一般的だったことを願っています! これはReact Nativeのための非常に単純なJavaScriptのみの実装です。この背景にあるアニメーションがどのよ…

neovim deinに再挑戦

brew install neovim/neovim/neovim curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh sh ./installer.sh ~/.cache/dein call dein#install() nvim ~/.config/nvim/init.vim set number "行番号を表示 set a…

git alias設定

git

git alias設定 global設定 vim ~.gitconfig [alias] st = status co = checkout br = branch ci = commit 特定のブランチだけには そのブランチ配下で vim .git/config [user] name = hoge email= hoge@gmail.com

ag インストール使い方

brew install ag 探したくない奴はここに書く ~/.agignore log オプション -G 正規表現 --hidden 隠しファイルも -i, --ignore-case 大文字小文字の違いを無視 -s, --case-sensitive 大文字小文字の違いを考慮する その他オプション qiita.com

fzfを使う

gitで取得 git clone https://github.com/junegunn/fzf.git ~/.fzf インストール ~/.fzf/install bashにこれ書き込む [ -f ~/.fzf.bash ] && source ~/.fzf.bash

recat-native link とはなんなのか

recat-native link jsだけは実現できないos毎に分けて記述された、objective-cやjavaのコードを自動で設定してくれる便利コマンドらしい Javascript オンリーのモジュールを利用する場合には link は不要だけど、NativeCode を利用する場合には必要 XCode / …

Parsing error: Unexpected tokenで困ってる

yarn add -D eslint eslint-plugin-vue yarn remove eslint-plugin-html module.exports = { root: true, - parser: 'babel-eslint', parserOptions: { + parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, }, - // https://github.co…

babel-loader 'bindings' of nullエラー

Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: Cannot read property 'bindings' of null at Scope.moveBindingTo (/usr/local/hoge/node_modules/@babel/traverse/lib/scope/index.js:864:13) TypeError: Cannot read …

webpack3→4でエラーになった babel-core

babel-coreが読み込めないらしい Error: Cannot find module '@babel/core' babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'. yarn upgrade babel-co…

webpack3→4でエラーになった Chunk

Chunk.jsでエラー 10% building 3/3 modules 0 active(node:135) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead ℹ 「wds」: Project is running at http://0.0.0.0:3035/ ℹ 「wds」: webpack output is served from /pack…

webpack3→4でエラーになった loaders

webpack3→4でエラーになった ✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.module has an unknown property 'loaders'. These properties are …

webpack3→4でエラーになった webpack-cli

webpack3→4に帰るとエラーになった。 The CLI moved into a separate package: webpack-cli Please install 'webpack-cli' in addition to webpack itself to use the CLI -> When using npm: npm i -D webpack-cli -> When using yarn: yarn add -D webpack…

20190421ワイの .bashrc

HISTSIZE=50000 alias ll='ls -la' alias vi='vim' alias dock='docker-compose' alias ctags="`brew --prefix`/bin/ctags" alias xl='cd ~/Xleap' source /usr/local/etc/bash_completion.d/git-prompt.sh source /usr/local/etc/bash_completion.d/git-com…

React Native I18n.localeがenしか取得できない

I18n.localeがenしか取得できないケースがあるらしい Both in android and ios locale always returns 'en' · Issue #7 · xcarpentier/ex-react-native-i18n · GitHub I18n.initAsync()をして上げると解決する import I18n from 'ex-react-native-i18n' comp…

Rail5.2.3アップグレードでArgumentError: wrong number of argumentsエラー発生

Rspec流して出たエラーはこれ from /hogehoge/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:140:in `select_for_count'``` will_paginateでエラー出てるっぽいから、PR調べてると、それっぽいの発見 ArgumentError: wrong number of argume…

ReactNative初めてのお勉強

children 子に要素を出すことができる {children} こんな感じで エミュレーター上でcmd + D でデバックモードとか設定出来る Reducer にアクションを通知する関数dispatch dispatchでSagaを呼び出してstateを変えている? export default connect(mapStateTo…

nodeのバージョンを上げる方法

nodeのバージョンを上げる方法 nをインストールして上げる npm install -g n n --stable sudo n stable yarn install

複数Githubアカウントでssh接続設定(config)を使い分ける手順

cd ~/.ssh ssh-keygen -t rsa -C {Githubメールアドレス} -f {作成する鍵の名前} Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: vim ~/.ssh/config Host github.sub # サブアカウント…

brew install yarn --without-node オプションが使えなくなった

brew install yarn --without-nodeオプションを付けると動かない $ brew install yarn --without-node Updating Homebrew... ==> Auto-updated Homebrew! Error: invalid option: --without-node こないな感じでそんなオプションありまへんでって言われる gi…

npm install --globalに失敗した場合の対応方法

npm install --global babel-cli npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: …

go入門

brew install go package main import "fmt" func main() { fmt.Println("Go言語はじめました!") } go run hello.go go build hello.go

Surrogate Pair(取り敢えず入れたくない)

mysqlでutf8mb4の文字コードが入ってるくそDBに対してどう対応するか 文字コードが変えられない残念な人のrails対応 サロゲートペア拒否 validates :text, length: { maximum: CONTENTS::CAP::LONG::TEXT }, format: { without: /[\u{10000}-\u{10FFFF}]/,

mercari.go #6

go

https://mercari.connpass.com/event/118695/ kentanさん concarency ・robpike fake google search channelの機能で書けた javaで書くと意外と綺麗に書けた completableFuture ・オブジェクト指向でない InterfaceとReceiverの概念はある 書こうと思えばか…

mac mojaveでgdbが動かない、、

gdbのバージョンが新しいと動かないらしいんでバージョン下げた brew unlink gdb brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9ec9fb27a33698fc7636afce5c1c16787e9ce3f3/Formula/gdb.rb brew pin gdb HighSierra以降は以下設定…

file、stringsコマンド、gdb動かず、、

fileコマンド $ file ngrok ngrok: Mach-O 64-bit executable x86_64 $ file Downloads/odbg201/ollydbg.exe Downloads/odbg201/ollydbg.exe: PE32 executable (GUI) Intel 80386, for MS Windows fileコマンドを使うと実行ファイルがどのOS、bit向けか分か…

OSXでバイナリーエディター

mac

mac用バイナリーエディタがあるらしい これ↓ Hex FiendPeter Ammon開発ツール無料 調べてみたらghexをmacでもインストールできるらしい。↑入れちゃったからやらなかったけど、、、 brewinstall.org

dtruss、dtrace、radare2インストール

macでstraceをインストールしたいと思った。straceとは↓ プログラムが使用するシステムコールおよび受け取るシグナルを監視するものである 無かった、代わりにdtrussがあるらしい sudo dtruss -e -d unison -e : それぞれのシステムコールの実行時間をmicros…

neovimを使ってみるぜ

neovimインストール brew install neovim 設定変更 nvim .config/nvim/init.vim 先ずは、色から set termguicolors qiita.com 行数表示 set number クリップボードの共有 set clipboard=unnamed プラグイン導入dein # ディレクトリ作成 $ mkdir -p ~/.cache/…

git フックを使ってみた

git フックとは 特定のgitアクションが行われた時に、スクリプトを実行する 1. それぞれがフックが動くタイミングは? docs.google.com 2. フックをインストール プロジェクトのディレクトリへ移動 .git/hooks/pre-push.sampleのサンプルをhookスクリプトをg…