Skip to content

Instantly share code, notes, and snippets.

View nojimage's full-sized avatar

Takashi Nojima nojimage

View GitHub Profile
@nojimage
nojimage / genuuid4.php
Last active November 26, 2019 10:58 — forked from tanakahisateru/genuuid4.php
NEVER USE this UUIDv4 generator
#!/usr/bin/env php
<?php
/**
* composer init && composer require cakephp/utility:^3.8
*
* Try < PHP 5.6: ./genuuid4.php 65536 | sort | uniq -d
*/
require 'vendor/autoload.php';
use Cake\Utility\Text;
<?php
/**
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com>
* Date: 07/06/12
*/
namespace Widop\Mink\Extension;
trait PopupDictionary
@nojimage
nojimage / app_email.php
Created February 1, 2011 11:28 — forked from monsat/app_email.php
CakePHP version 1.3.x EmailComponent for Japanese
<?php
/**
*
* AppEmailComponent (for Japanese)
*
* Copyright 2010, nojimage (http://php-tips.com/)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
<?php
class SeriController extends AppController {
var $uses = array();
function index() {
/*
$x=new App();
$x->__cache=1;
$x->__map=array("Core" => array("Router"