Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
nishinoshake / readme.md
Last active May 29, 2016 03:28
Three.jsがよくわからん

##Three.jsとは WebGLを簡単に利用するためのライブラリ。
宇宙で地球をグルグル回すみたいなことが少ない手数でできる。
簡単とはいうもののカメラなどの独特の考え方があるので、慣れが必要。

##用語の説明

  • Scene => オブジェクトの配置先の3D空間。描画対象。
  • Camera => シーンをのぞくカメラ
  • Geometry => 形
  • Material => 材質
@nishinoshake
nishinoshake / getBgImage.js
Last active May 29, 2016 03:35
jQueryでCSSから背景画像の取得
bgImage = $(".wanna__get--bg").css('backgroundImage').match(/images\/\S*(?:\.png|\.jpg|\.gif)/);
@nishinoshake
nishinoshake / index.js
Last active November 16, 2016 11:56
jsdocの書き方
/**
* 音声管理
*
* @constructor
*/
Index.Sound = function() {
this.load();
}
Index.Sound.prototype = {
/**
@nishinoshake
nishinoshake / mapvalue.js
Created May 17, 2016 23:33
値のマッピング
mapValue(num, from_min, from_max, to_min, to_max) {
return ((num - from_min) / (from_max - from_min)) * (to_max - to_min) + to_min;
}

#Object Oriented CSS ##なぜ CSSにも再利用性が必要だから。
要素に直接スタイルを振るとh2がh3になったら効かない。

##構造と見た目の分離 構造・・・幅・高さ・テキスト揃え
見た目・・・色、フォントサイズ、角丸

##BEM

@nishinoshake
nishinoshake / command.sh
Last active June 2, 2016 03:21
Vagrantの使い方
# == vagrant ==
#カレントディレクトリでvagrant環境を初期化
vagrant init
#vagrantの起動
vagrant up
#vagrantの停止
vagrant halt
@nishinoshake
nishinoshake / readme.md
Last active June 9, 2016 02:45
PHP5.6のインストール
@nishinoshake
nishinoshake / ramdme.md
Created April 24, 2016 13:29
SSHで接続できない

##IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! サーバ側のフィンガープリントが変わった場合、
ローカルに保存してある情報を削除すればいける

ssh-keygen -R remote_host_name

@nishinoshake
nishinoshake / readme.md
Last active May 29, 2016 05:10
yumとrpmの違いがよくわからん

##yumは依存解決してくれる。内部的にはrpm呼んでる 結論から、yumは内部的にrpmを読んでいるので、
rpmを使いやすくするためのコマンドという認識で良い。
yumはrpmをエイリアス的に呼べるのと、依存管理をしてくれる。

簡潔
yum install packege-name
長い
rpm -ivh package-name-xxxxxxxx.yyyyyyyy.zzzzz.rpm