Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@junichi11
junichi11 / plupload.php
Created July 29, 2011 18:35
CakePHP Plupload Component
<?php
/**
* CakePHP Plupload Plugin
* Pluplaod Component
*
* CakePHP version 1.3+
* PHP version 5.3+
*
* @author junichi11
*
@junichi11
junichi11 / ClearCacheSell.php
Created October 18, 2011 12:21
Clear Cache Shell for CakePHP2.0
<?php
/**
* CakePHP ClearCacheShell for 2.0
* @author junichi11
*/
class ClearCacheShell extends AppShell {
public $uses = array();
public $task = array();
@junichi11
junichi11 / inkscape_convert_to_cmyk.sh
Last active May 5, 2018 01:07
[Inkscape] Convert from RGB to CMYK
#!/bin/bash
# http://zeroset.mnim.org/2014/07/14/save-a-pdf-to-cmyk-with-inkscape/
# usage
# inkscape_convert_to_cmyk.sh /path/to/input_rgb.pdf /path/to/output_cmyk.pdf
gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE \
-sDEVICE=pdfwrite \
-sColorConversionStrategy=CMYK \
-dProcessColorModel=/DeviceCMYK \
-sOutputFile=$2 \
$1
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>A list of base boxes for Vagrant - Vagrantbox.es</title>
</head>
<body>
<div id="main">
<table class="sortable">
<thead>
<tr><th>Name</th><th>Provider</th><th>URL</th><th class="sorttable_numeric">Size</th></tr>
<?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
@junichi11
junichi11 / index.html
Created September 12, 2013 15:55
Vagrant boxes html
<!DOCTYPE html>
<head>
<title>Vagrant Boxes</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div>
<table>
<thead>
<tr><th>Name</th><th>Provider</th><th>URL</th><th>Size</th></tr>
{
"minimum-stability": "dev",
"config": {
"vendor-dir": "vendors"
},
"repositories" : [
{
"type": "package",
"package": {
"name" : "cakephp/cakephp",
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.
*