Skip to content

Instantly share code, notes, and snippets.

View jca02266's full-sized avatar

Koji Arai jca02266

View GitHub Profile
@jca02266
jca02266 / burndownchart.css
Last active August 29, 2015 14:04
D3.jsでバーンダウンチャートを書く ref: http://qiita.com/jca02266/items/3133c008c45dd144cf8f
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
stroke-width: 1.5px;
}
.axis text {
font-family: sans-serif;
font-size: 11px
@jca02266
jca02266 / file0.txt
Last active September 14, 2019 22:24
powershellでパーサコンビネータ ref: https://qiita.com/jca02266/items/b7e1dc21d8d537827290
$x = $target[0..(0+4-1)]
$y = $target[4..(4+3-1)]
@jca02266
jca02266 / ColumnNum.java
Last active December 4, 2016 21:39
sample code for POI
package sample;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ColumnNum {
@jca02266
jca02266 / App.gwt.xml
Last active May 15, 2018 09:06
GWT validator sample
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to="App">
<inherits name="com.google.gwt.user.User"/>
<inherits name="org.hibernate.validator.HibernateValidator" />
<replace-with class="sample.webapp.client.ValidatorFactory">
<when-type-is class="javax.validation.ValidatorFactory" />
</replace-with>
package sample;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.regex.Pattern;
package sample;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.regex.Pattern;
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jca02266
jca02266 / git-svn.perl.diff
Last active August 5, 2020 04:27
git-svn: keep timestamp of git commit date when do "git svn dcommit"
--- git-svn.perl.orig 2017-07-09 03:29:19.208317700 +0900
+++ git-svn.perl 2017-07-11 23:17:29.997533800 +0900
@@ -16,6 +16,7 @@
use File::Spec;
use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
use Memoize;
+use POSIX qw/strftime/;
use Git::SVN;
use Git::SVN::Editor;
@jca02266
jca02266 / make.rb
Last active September 17, 2017 23:56
sample code of tsort library
require 'tsort'
# usage
=begin
$ cat depends
t1: t2
t2: t3
t3:
t4: t1
//
// sakura用桁揃えマクロ
//
// drived from http://zenu.xrea.jp (http://zenu.xrea.jp/data/quickint.js.txt)
//
// 使い方:
// 1. このファイルを %AppData%\sakura に配置する
// 2. 桁揃えしたい範囲を選択する
// 3. ツール → 「名前を指定してマクロを実行」でこのファイルを選択する
//