Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@junichi11
junichi11 / license.txt
Created May 30, 2014 04:46
License header for NetBeans for dotcake project
<#if licenseFirst??>
${licenseFirst}
</#if>
${licensePrefix}${name}
${licensePrefix?replace(" +$", "", "r")}
${licensePrefix}@copyright Copyright (c) dotcake organization. (https://github.com/dotcake)
${licensePrefix}@license http://www.opensource.org/licenses/mit-license.php MIT License
<#if licenseLast??>
${licenseLast}
</#if>
@junichi11
junichi11 / .cake
Created June 4, 2014 05:56
.cake sample
{
"cake": "..\/lib\/",
"build_path": {
"models": [
".\/Model\/"
],
"behaviors": [
".\/Model\/Behavior\/"
],
"datasources": [
@junichi11
junichi11 / errata.md
Created June 26, 2014 02:18
TypeScript リファレンス 誤植
  • p86 上記の通り通り -> 上記の通り
  • p88 「TypeScriptは language service」 -> TypeScriptは「language service」
  • p100 サンプルコードの"TypeScript" -> JavaScript
  • p212 自動的に岡蹴る -> 自動的に追いかける
  • p227 リスト6.7のような雰囲気になります -> リスト6.32のような雰囲気になります
@junichi11
junichi11 / Utils.java
Last active August 29, 2015 14:03
NetBeans template : Java Utilities class
<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">
<#if package?? && package != "">
package ${package};
</#if>
/**
@junichi11
junichi11 / project.xml
Created October 14, 2014 00:20
NetBeans : Vagrant settings for C/C++ project
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.cnd.makeproject</type>
<configuration>
... something
<preferences xmlns="http://www.netbeans.org/ns/auxiliary-configuration-preferences/1">
<module name="org-netbeans-modules-vagrant">
<property name="vagrant-path" value="/path/to/CppApplication/vagrant/root/dir/"/>
</module>
<module name="org-netbeans-modules-projectimport-eclipse-core"/>
@junichi11
junichi11 / yii.json
Created February 1, 2015 06:58
Path aliases file for Yii2 Framework
{
"aliases": {
"@app/controllers" : ["controllers", "mycontrollers"],
"@app/models" : ["mymodels"],
"@app/views" : ["themes/basic", "views", "views2"],
"@yii": ["vendor/yiisoft/yii2"]
}
}
@junichi11
junichi11 / kiriban_component.php
Created April 19, 2011 09:39
CakePHP KiribanComponent (check round number)
<?php
/**
* KiribanComponent (Kiriban is round number)
*
* @author junichi11
*/
class KiribanComponent extends Object{
public $_controller = null;
/**
@junichi11
junichi11 / cake_component_code_completion.php
Created April 21, 2011 11:16
CakePHP Component Code Completion
<?php
/**
* CakePHP Component & Model Code Completion
* @author junichi11
*
* /path/to/yourproject/nbproject/cake_component_code_completion.php
*
* ==============================================
* CakePHP Core Components
* ==============================================
@junichi11
junichi11 / cake_helper_code_completion.php
Created April 21, 2011 11:20
CakePHP Helper Code Completion
<?php
/**
* CakePHP Helper Code Completion
* @author junichi11
*
* install NetBeans 7.0 && cakephp-netbeans plugin
* http://netbeans.org
* https://github.com/evilbloodydemon/cakephp-netbeans/tree/autocomplete
* /path/to/yourproject/nbproject/cake_helper_code_completion.php
*
@junichi11
junichi11 / ju_autocomplete.php
Created April 22, 2011 10:35
CakePHP jQuery Ui Autocomplete Component (get data from DB)
<?php
/**
* JqueryUiAutocomplete Component
* サーバー側にデータが要求されたときにDBからデータを取得
*
* @author junichi11
*
*/
class JuAutocompleteComponent extends Object
{