Skip to content

Instantly share code, notes, and snippets.

View ogaty's full-sized avatar

Yuji Ogata ogaty

View GitHub Profile
@ogaty
ogaty / knockoutjsメモ.md
Last active August 18, 2017 16:37
knockout.js

ko.applyBindings

viewModelをバインドする

ko.applyBindings(myViewModel);

ko.observable、ko.observableArray

バインドする変数定義

var myViewModel = {
@ogaty
ogaty / colorscheme.md
Last active June 14, 2019 14:05
vim my vimrc linux

viの色

teratermの場合は:colorscheme elflord いいね
:colorscheme murphy
:colorscheme ron も悪くない

@ogaty
ogaty / git_commands.md
Last active January 3, 2023 01:34
git commands

特定ユーザーのgist

colors user:ogaty

reset周り

git reset --hard ワークツリー、staging、HEAD全部戻す
git reset staging、HEAD戻す
git reset --soft HEADのみ戻す

diff周り

git diff HEAD^ resources/views/backend/post/index.blade.php 最新コミット

@ogaty
ogaty / vue_js.md
Last active August 17, 2017 12:35
vue.jsメモ

propsて何だっけ

親テンプレートから子テンプレートにデータを渡す際に使用するパラメータ。

v-forにデータ渡し

<li v-for="list in lists" v-bind:data-id="list.id"> {{list.name}} </li>

@ogaty
ogaty / jquery_ajax.md
Last active September 22, 2022 04:37
jquery ajax
@ogaty
ogaty / vagrant-storage.md
Created August 17, 2017 15:41
vagrant 容量up

書き途中

vmdk→vdi

vdi容量up

vdi→vmdk

virtualbox側でマウント

@ogaty
ogaty / idiorm.md
Created August 18, 2017 11:59
idiormを使ってみる

select * from person where age = 30;

$persons = ORM::for_table('person')
    ->where('age', 30)
    ->find_many();
$persons = ORM::for_table('person')
    ->where('age', 30)
    ->find_array();
@ogaty
ogaty / service.md
Last active May 23, 2019 14:05
サービスメモ service url
@ogaty
ogaty / error.md
Last active September 6, 2022 02:44
intellij すぐ忘れるコマンド
Communications link failure

が出た時

データソースの詳細タブ内の「useSSL」デフォルトで「true」になっているのをfalseにする

@ogaty
ogaty / css.md
Last active September 2, 2019 15:03
css transition box-shadow 画像

transition

transition: プロパティ 秒数 delay ease
カンマで複数

transition: height 1s 0s ease
transition: width 1s 0s ease,height 1s 0s ease

translate,translate3d

absolute+leftとほぼ同じ、ポジション移動