Skip to content

Instantly share code, notes, and snippets.

Junichi Yamamoto junichi11

View GitHub Profile
@junichi11
junichi11 / inkscape_convert_to_cmyk.sh
Last active May 5, 2018
[Inkscape] Convert from RGB to CMYK
View inkscape_convert_to_cmyk.sh
#!/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
@junichi11
junichi11 / yii.json
Created Feb 1, 2015
Path aliases file for Yii2 Framework
View yii.json
{
"aliases": {
"@app/controllers" : ["controllers", "mycontrollers"],
"@app/models" : ["mymodels"],
"@app/views" : ["themes/basic", "views", "views2"],
"@yii": ["vendor/yiisoft/yii2"]
}
}
@junichi11
junichi11 / project.xml
Created Oct 14, 2014
NetBeans : Vagrant settings for C/C++ project
View project.xml
<?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 / Utils.java
Last active Aug 29, 2015
NetBeans template : Java Utilities class
View Utils.java
<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">
<#if package?? && package != "">
package ${package};
</#if>
/**
@junichi11
junichi11 / errata.md
Created Jun 26, 2014
TypeScript リファレンス 誤植
View errata.md
  • p86 上記の通り通り -> 上記の通り
  • p88 「TypeScriptは language service」 -> TypeScriptは「language service」
  • p100 サンプルコードの"TypeScript" -> JavaScript
  • p212 自動的に岡蹴る -> 自動的に追いかける
  • p227 リスト6.7のような雰囲気になります -> リスト6.32のような雰囲気になります
View .cake
{
"cake": "..\/lib\/",
"build_path": {
"models": [
".\/Model\/"
],
"behaviors": [
".\/Model\/Behavior\/"
],
"datasources": [
@junichi11
junichi11 / license.txt
Created May 30, 2014
License header for NetBeans for dotcake project
View license.txt
<#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>
View index.html
<!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>
@junichi11
junichi11 / index.html
Created Sep 12, 2013
Vagrant boxes html
View index.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>
View composer.json
{
"minimum-stability": "dev",
"config": {
"vendor-dir": "vendors"
},
"repositories" : [
{
"type": "package",
"package": {
"name" : "cakephp/cakephp",
You can’t perform that action at this time.