Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@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
@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 / 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 / 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 / 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 / .cake
Created June 4, 2014 05:56
.cake sample
{
"cake": "..\/lib\/",
"build_path": {
"models": [
".\/Model\/"
],
"behaviors": [
".\/Model\/Behavior\/"
],
"datasources": [
@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>
<!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 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",