Skip to content

Instantly share code, notes, and snippets.

View noname007's full-sized avatar
📖
Focusing

soul11201 noname007

📖
Focusing
View GitHub Profile
@noname007
noname007 / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later).
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • They're all while loops because shut up, you're overthinking a joke.
@noname007
noname007 / autoload.php
Last active August 29, 2015 14:16
spl_autoload_register类的自动加载
<?php
function import($classname)
{
$filename = __DIR__.'/class/'.$classname.'.php';
if(is_file($filename))
{
require $filename;
}else {
die('Not Find the file '.$filename);
}
@noname007
noname007 / singletone.php
Created February 11, 2015 09:10
php 单例模式代码-----
class Singletone{
private static $obj=null;
private function __construct(){}
static function getInstance()
{
if(is_null(self::$obj))
{
echo 111111111,'------';