Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@junichi11
junichi11 / code_completion_action.xml
Last active December 14, 2015 15:29
NetBeans Plugin for WordPress : custom code completion file
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2013 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
@junichi11
junichi11 / code_completion.php
Last active December 10, 2015 06:18
NetBeans : Code completion file for Yii Framework
<?php
/**
* Description of Code Completion file for Yii Framework with NetBeans.
*
* This is file for code completion of yii framework.
* Please put this to your nbproject folder. (e.g. yourproject/nbproject/code_completion.php)
*
* Yii::app()->[Ctrl + Spase]
* CWebApplication methods and fields are added on the popup list.
*
<?php
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject to the terms of either the GNU
<?php
class Asset_Instance extends Fuel\Core\Asset_Instance {}
class Cache_Handler_Json extends Fuel\Core\Cache_Handler_Json {}
class Cache_Handler_Serialized extends Fuel\Core\Cache_Handler_Serialized {}
class Cache_Handler_String extends Fuel\Core\Cache_Handler_String {}
class Cache_Storage_Apc extends Fuel\Core\Cache_Storage_Apc {}
abstract class Cache_Storage_Driver extends Fuel\Core\Cache_Storage_Driver {}
class Cache_Storage_File extends Fuel\Core\Cache_Storage_File {}
class Cache_Storage_Memcached extends Fuel\Core\Cache_Storage_Memcached {}
class Cache_Storage_Redis extends Fuel\Core\Cache_Storage_Redis {}
@junichi11
junichi11 / tree.txt
Created November 19, 2012 10:36
Existing Source fuel for NetBeans
myproject
├── CHANGELOG.md
├── CONTRIBUTING.md
├── README.md
├── TESTING.md
├── build.xml
├── docs
├── fuel
├── nbproject
├── oil
@junichi11
junichi11 / PostsController.php
Created November 12, 2012 09:28
CakePHP controller sample
<?php
class PostsController extends AppController {
public $uses = array('Post', 'Foo', 'Bar');
public $components = array('Session', 'Security');
public $helpers = array('Html', 'Form');
public function index() {
@junichi11
junichi11 / 201211130001
Created November 12, 2012 01:52
Remove after
java.net.MalformedURLException: no protocol:
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
[catch] at org.netbeans.modules.php.editor.elements.PhpElementImpl.toFileObject(PhpElementImpl.java:194)
at org.netbeans.modules.php.editor.elements.PhpElementImpl.resolveFileObject(PhpElementImpl.java:188)
at org.netbeans.modules.php.editor.elements.PhpElementImpl.getFileObject(PhpElementImpl.java:173)
at org.netbeans.modules.php.editor.api.elements.ElementFilter.forEqualTypes(ElementFilter.java:295)
at org.netbeans.modules.php.editor.api.elements.ElementFilter$15.isAccepted(ElementFilter.java:317)
at org.netbeans.modules.php.editor.elements.IndexQueryImpl$1.isFromSubclassOfEnclosingType(IndexQueryImpl.java:913)
@junichi11
junichi11 / CakePHPControllerSuite.php
Created October 12, 2012 13:03
CakePHPTestSuite for NetBeans
<?php
class CakePHPControllerSuite extends CakeTestSuite {
public static function suite() {
$suite = new CakePHPControllerSuite('Cake Controller Test Sute');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}
@junichi11
junichi11 / phpunit.bat
Created October 11, 2012 06:26
CakePHP PHPUnit for NetBeans
@echo off
set NETBEANSSUITE=
:loop
if "%1"=="" goto end
if "%1"=="NetBeansSuite" goto suite
set NETBEANSSUITE=%NETBEANSSUITE% %1
shift
goto loop
:suite
set NETBEANSSUITE=%NETBEANSSUITE% %1