Skip to content

Instantly share code, notes, and snippets.

View axross's full-sized avatar
🍣
= 🍚 + 🐟 + ❤️

Kohei axross

🍣
= 🍚 + 🐟 + ❤️
View GitHub Profile
@axross
axross / provisioning_sakuravps.md
Last active August 29, 2015 13:57
さくらVPS上のCentOS6.4にオレオレ開発環境を構築するための覚書

Login (root user)

ssh root@axross.org

Create user

useradd axross
@axross
axross / pokemon_master.js
Last active August 29, 2015 14:00
「初代ポケモン151匹言えるかな?」を一瞬でクリアするJavascript (http://hoget.web.fc2.com/)
pokemons=['フシギダネ','アーボ','ラフレシア','ゴーリキー','ベトベトン','サイホーン','イーブイ','フシギソウ','アーボック','パラス','カイリキー','シェルダー','サイドン','シャワーズ','フシギバナ','ピカチュウ','パラセクト','マダツボミ','パルシェン','ラッキー','サンダース','ヒトカゲ','ライチュウ','コンパン','ウツドン','ゴース','モンジャラ','ブースター','リザード','サンド','モルフォン','ウツボット','ゴースト','ガルーラ','ポリゴン','リザードン','サンドパン','ディグダ','メノクラゲ','ゲンガー','タッツー','オムナイト','ゼニガメ','ニドランメス','ダグトリオ','ドククラゲ','イワーク','シードラ','オムスター','カメール','ニドリーナ','ニャース','イシツブテ','スリープ','トサキント','カブト','カメックス','ニドクイン','ペルシアン','ゴローン','スリーパー','アズマオウ','カブトプス','キャタピー','ニドランオス','コダック','ゴローニャ','クラブ','ヒトデマン','プテラ','トランセル','ニドリーノ','ゴルダック','ポニータ','キングラー','スターミー','カビゴン','バタフリー','ニドキング','マンキー','ギャロップ','ビリリダマ','バリヤード','フリーザー','ビードル','ピッピ','オコリザル','ヤドン','マルマイン','ストライク','サンダー','コクーン','ピクシー','ガーディ','ヤドラン','タマタマ','ルージュラ','ファイヤー','スピアー','ロコン','ウインディ','コイル','ナッシー','エレブー','ミニリュウ','ポッポ','キュウコン','ニョロモ','レアコイル','カラカラ','ブーバー','ハクリュー','ピジョン','プリン','ニョロゾ','カモネギ','ガラガラ','カイロス','カイリュー','ピジョット','プクリン','ニョロボン','ドードー','サワムラー','ケンタロス','ミュウツー','コラッタ','ズバット','ケーシィ','ドードリオ','エビワラー','コイキング','ミュウ','ラッタ','ゴルバット','ユンゲラー','
@axross
axross / api.md
Created August 23, 2014 09:06 — forked from koba04/api.md

API

Class: Vue

  • Vueはvue.jsのコアとなるコンストラクタ
  • インスタンスが作られたときにデータバインディングが開始される
  • オプションを取ることも出来て、DOMやデータやメソッドについて定義出来る
@axross
axross / material_design_less_color_schema.less
Created August 29, 2014 02:00
less color schema of google material design
//
// Colors
//
@red50: #fde0dc;
@red100: #f9bdbb;
@red200: #f69988;
@red300: #f36c60;
@red400: #e84e40;
@red500: #e51c23;
@red600: #dd191d;
{
"name": "myapp"
"scripts": {
"start": "node app.js",
"production": "NODE_ENV=production node app.js"
}
}
@axross
axross / file0.less
Last active August 29, 2015 14:06
Google material designのColor定義のlessファイル書いた ref: http://qiita.com/axross/items/a5013511dac77be4f83b
//
// Colors
//
@red50: #fde0dc;
@red100: #f9bdbb;
@red200: #f69988;
@red300: #f36c60;
@red400: #e84e40;
@red500: #e51c23;
@red600: #dd191d;
@axross
axross / gulpfile.js
Last active August 29, 2015 14:11
ライブコーディングでつかうクソgulpfile
var path = require('path');
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var rename = require('gulp-rename');
var webpack = require('gulp-webpack');
var browserSync = require('browser-sync');
var modRewrite = require('connect-modrewrite');
gulp.task('bundle', function() {
gulp.src('./public/app.jsx')
@axross
axross / user_code.js
Last active August 29, 2015 14:15
Isomorphic_model
var Post = Model.createModel({
id: {
type: Number,
validators: ['isNumber'],
},
body: {
type: String,
validators: ['isString']
},
user: {
@axross
axross / modifier_sample.less
Last active August 29, 2015 14:17
ReactでBEMなclassNameを書きやすくするBemmerというライブラリを作った
.exButton {
color: black;
&--isOdd { color: red; }
&--isEven { color: blue; }
}
import is from 'is_js';
// メールアドレスサンプル
// 引用元 : http://qiita.com/mpyw/items/257eabe0b43b1e02e6f7
const emails = [
'Abc@example.com',
'Abc.123@example.com',
'user+mailbox/department=shipping@example.com',
"!#$%&'*+-/=?^_`.{|}~@example.com",
'"Abc@def"@example.com',