Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
🏠
Working from home

Y.Yamamoto tuki0918

🏠
Working from home
View GitHub Profile
@tuki0918
tuki0918 / paste.js
Created January 2, 2015 14:01
Dev Tools: console include jQuery
var jq = document.createElement('script');
jq.src = 'https://code.jquery.com/jquery-2.1.3.min.js';
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict(); // Option
@tuki0918
tuki0918 / csv.php
Created February 3, 2015 13:17
fputcsv double quote
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
function fputcsv2($fp, $fields, $delimiter = ',', $enclosure = '"', $mysql_null = false) {
$delimiter_esc = preg_quote($delimiter, '/');
$enclosure_esc = preg_quote($enclosure, '/');
$output = array();
@tuki0918
tuki0918 / associate.php
Last active August 29, 2015 14:18
laravel snippets
<?php
// app/routes.php
Route::get('/', function()
{
$artist = new Artist;
$artist->name = 'Eve 6';
$artist->save();
@tuki0918
tuki0918 / crontab.md
Last active August 29, 2015 14:20
cron
$ crontab -l > crontab.back$(date '+%y%m%d_%H%M%S')
$ crontab .crontab.back
@tuki0918
tuki0918 / 01.json
Created May 4, 2015 13:57
composer
{
"require-dev": {
"phpunit/phpunit": "4.6.*"
},
"autoload": {
"psr-4": {
"Namespace\\": ""
}
}
}
.room {
width: 200px;
float: left;
margin-right: 145px;
}
.room-msg {
top: -20px;
left: 190px;
height: 100% !important;
・企画 書
・全体像( オーバービュー)
・利用 する 実装 技術
・実現 し たい こと 一覧( 要求 一覧)
・行動 シナリオ 一覧
・行動 シナリオ
・ワーク セット 一覧
・概念 データモデル
・ラフイメージ または モックアップ
・画面 遷移 図
@tuki0918
tuki0918 / readme.md
Last active September 5, 2015 19:02
xampp exec err
@tuki0918
tuki0918 / v.php
Created September 8, 2015 15:25
slim flash message
<?php
$app->map('/abc', '\App\Controller\UserController:abc')
->via('GET', 'POST')
->name('abcname');
if ($this->app->request()->isPost()) {
$this->app->flash('err', 'message!!!');
$this->app->redirect($this->app->urlFor('abcname'));
}