Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@junichi11
junichi11 / CakePHPControllerSuite.php
Created October 7, 2012 06:34
PHPUnit Test Suite for CakePHP
<?php
class CakePHPControllerSuite extends PHPUnit_Framework_TestSuite {
public static function suite() {
$suite = new CakeTestSuite('Cake Controller Test Sute');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}
@junichi11
junichi11 / configuration.xml
Created October 6, 2012 14:04
PHPUnit for CakePHP (exclude core)
<phpunit>
<filter>
<blacklist>
<directory suffix=".php">path\to\NetBeansProjects\cakephp\lib</directory>
</blacklist>
</filter>
</phpunit>
@junichi11
junichi11 / composer.json
Created October 3, 2012 11:33
Composer template for CakePHP Plugin
{
"name": "vendor/plugin_name",
"type": "cakephp-plugin",
"description": "Moge Plugin for CakePHP",
"keywords": ["cakephp","moge"],
"homepage": "https://github.com/yousername/your_plugin",
"license": "MIT",
"authors": [
{
"name": "hoge moge",
@junichi11
junichi11 / composer.json
Created October 1, 2012 23:32
CakePHP Plugin Composer Example
{
"repositories": [
{
"type":"package",
"package": {
"type" : "cakephp-plugin",
"name" : "junichi11/Plupload",
"version" : "1.0",
"dist": {
"url": "https://github.com/junichi11/CakePHP-Plupload-Plugin/zipball/master",
@junichi11
junichi11 / cakephp-netbeans-license.txt
Created September 10, 2012 05:18
cakephp-netbeans license file
/*
* cakephp-netbeans
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under Dual License consisting of the Common Development and Distribution
* License (CDDL) v1.0 and GNU General Public License (GPL) v2
* Redistributions of files must retain the above copyright notice.
*
@junichi11
junichi11 / install
Created July 31, 2012 02:13
PHP CodeSniffer for CakePHP
pear upgrade PEAR
pear install PHP_CodeSniffer
pear channel-discover pear.cakephp.org
pear install cakephp/CakePHP_CodeSniffer
@junichi11
junichi11 / _cake_auto_completion_.php
Created July 14, 2012 15:13
cakephp-netbeans plugin create auto code completion file sample
<?php
/**
* For CakePHP Component & Model Code Completion
* ==================================================
* Model
* ==================================================
* @property Member $Member
* @property TreeBehavior $Member
* @property AclBehavior $Member
* @property TranslateBehavior $Member
@junichi11
junichi11 / cddl.txt
Created July 8, 2012 12:39
License : CDDL, GPLv2, MIT license
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
1. Definitions.
1.1. Contributor means each individual or entity that creates or
contributes to the creation of Modifications.
1.2. Contributor Version means the combination of the Original
Software, prior Modifications used by a Contributor (if any),
and the Modifications made by that particular Contributor.
@junichi11
junichi11 / textext.txt
Created July 5, 2012 06:42
textext environment for ubunto
sudo apt-get install pdf2svg
sudo apt-get install pstoedit
sudo apt-get install texlive
@junichi11
junichi11 / gtkrc
Created March 23, 2012 10:28
Inkscape 日本語メニューフォント設定 for Windows
#下記を最後に追記
# UI font
gtk-font-name = "sans 10"