Skip to content

Instantly share code, notes, and snippets.

@shwujiun
shwujiun / index.html
Created January 5, 2016 07:12 — forked from k4ml/index.html
PHP SSE Demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script>
var source = new EventSource('updates.php');
source.onmessage = function(e) {
var updates;
@shwujiun
shwujiun / pthreads.md
Created November 25, 2015 05:15 — forked from krakjoe/pthreads.md
pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth
@shwujiun
shwujiun / AuthController.php
Last active October 6, 2015 08:54
Test Always Failed
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Common\CommonTool;
use Illuminate\Http\Request;
use App\Models\User;
use Validator;
use App\Http\Controllers\Controller;