Skip to content

Instantly share code, notes, and snippets.

View koriym's full-sized avatar

Akihito Koriyama koriym

View GitHub Profile
v8js
V8 Javascript Engine => enabled
V8 Engine Compiled Version => 5.0.71.33
V8 Engine Linked Version => 5.2.0 (candidate)
Version => 1.0.0
Directive => Local Value => Master Value
v8js.compat_php_exceptions => 0 => 0
v8js.flags => no value => no value
1. Asakusa
http://www.japan-guide.com/e/e3004.html
Get the map and Sumida River Cruise boat time table atAsakusa Culture Tourist Information Center (open at 9:00AM)
Kaminarimon, Sensoji Temple,and Kappabashi Shopping Street
2 Sumida River Cruise
http://www.japan-guide.com/e/e3042.html
@koriym
koriym / gist:17494e32e7690b4384b67ca2a33d3949
Created October 31, 2016 13:55
brew tap hhvm/hhvm error
$ brew tap hhvm/hhvm
Error: /usr/local is not writable. You should change the
ownership and permissions of /usr/local back to your
user account:
sudo chown -R $(whoami) /usr/local
==> Tapping hhvm/hhvm
Cloning into '/usr/local/Library/Taps/hhvm/homebrew-hhvm'...
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 0), reused 6 (delta 0), pack-reused 0
@koriym
koriym / mysql.cnf
Last active January 16, 2017 01:22
MySQL log in with no password
[mysqld]
skip-grant-tables
@koriym
koriym / gist:8817e82ffee4b1b3cad44e5949c0bdd9
Last active January 30, 2017 07:57
install v8js to Ubuntu
#!/bin/bash -eux
apt-get install chrpath
cd /tmp
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
fetch v8
@koriym
koriym / file0.php
Last active February 9, 2017 13:32
V8JsのスナップショットでSSRを高速化 ref: http://qiita.com/koriym/items/00b085fcb3b55bf338c6
$blob = V8Js::createSnapshot(file_get_contents(__DIR__ . "/react.bundle.js"));
file_put_contents(__DIR__ . '/snapshot_blob.bin', $blob);
$cache = new FilesystemCache() // PSR-16 simple cache
$baracoa = new CacheBaracoa($appBundleJsPath, new ExceptionHandler(), $cache);
$html = $baracoa->render('min', ['name' => 'World']);
echo $html; // Hello World
@koriym
koriym / test.php
Last active March 23, 2017 02:58
どちらの書き方がいいか?
/**
* リソースリクエストを使ってテスト (振る舞いテスト)
*
* test "behavior"
*/
class ATest extends \PHPUnit_Framework_TestCase
{
/**
* @var \BEAR\Resource\ResourceInterface
*/
@koriym
koriym / react_tutorial_2016.jsx
Last active May 8, 2017 05:18
React Tutorial 2016
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={() => props.onClick()}>
{props.value}
</button>
);
@koriym
koriym / file0.ini
Last active September 5, 2020 11:57
必要な時にのみxdebugをオン ref: https://qiita.com/koriym/items/29f81514706a39e3b7c1
;zend_extension = "/path/to/my/xdebug.so"