Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script>
$(function(){
$('#aaa').click(function(){
<?php
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
$commands = [];
@ngyuki
ngyuki / symfony-console-single.php
Last active August 29, 2015 14:03
symfony console single
<?php
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MyApplication extends Application
<?php
// composer require react/react:\*
require __DIR__ . '/vendor/autoload.php';
use React\EventLoop\Factory;
use React\Socket\Server as SocketServer;
use React\Http\Server as HttpServer;
use React\Http\Request;
use React\Http\Response;
@ngyuki
ngyuki / c.php
Last active August 29, 2015 14:04
php-zend-multibyte-bug
<?php
declare(encoding='UTF-8');
/* あああ */
?>
@ngyuki
ngyuki / index.css
Last active August 29, 2015 14:04
CSRF slide
.red {
color: #f00;
}
.reveal .slides section .fragment.through {
opacity: 1;
}
.reveal .slides section .fragment.through.visible {
text-decoration: line-through;
@ngyuki
ngyuki / vhost.php
Created August 1, 2014 12:43
vhost.php
<?php
/**
* Apache mod_vhost_alias のバーチャルホストの一覧を表示する
*
* ex. httpd.conf
*
* LoadModule vhost_alias_module modules/mod_vhost_alias.so
*
* <VirtualHost *:80>
* ServerName vhost.example.net
@ngyuki
ngyuki / .php-renderer-slide
Last active August 29, 2015 14:05
PhpRenderer slide
PhpRenderer slide.
@ngyuki
ngyuki / .php-renderer-sample
Last active August 29, 2015 14:05
PhpRenderer sample
PhpRenderer sample.
@ngyuki
ngyuki / .gitignore
Last active August 29, 2015 14:06
Run phpunit via ssh in phpstorm7 on windows
/vendor
/composer.lock
/*.local.php
/tests