Skip to content

Instantly share code, notes, and snippets.

View koizuss's full-sized avatar

Takeshi Koizumi koizuss

View GitHub Profile
@koizuss
koizuss / antlog.groovy
Created November 10, 2011 13:38
groovy AntBuilderでログ出力
def ant = new AntBuilder()
ant.record(name: 'sample.log', loglevel: 'debug', emacsmode: false, append: false)
// -> http://www.jajakarta.org/ant/ant-1.5/docs/ant-1.5/j/docs/manual/CoreTasks/recorder.html
ant.copy(file: 'antlog.groovy', tofile: 'antlog.groovy.sample')
@koizuss
koizuss / build.gradle.ant.ftp
Created November 10, 2011 13:59
gradle antでftp
repositories {
mavenCentral()
}
configurations {
ftpAntTask
}
dependencies {
ftpAntTask("org.apache.ant:ant-commons-net:1.8.2") {
@koizuss
koizuss / gist:3016459
Last active October 6, 2015 15:48
yammer auto click
yammer_refresh = setInterval(function(){ var t = jq('.yj-new-messages-link'); if(t.css('height') != "0px"){ t.click(); }}, 1000);
@koizuss
koizuss / build.gradle
Created September 11, 2012 06:07
Compile JavaScript on Gradle
archivesBaseName = 'hoge'
version = '0.0.0-snapshot'
import com.google.javascript.jscomp.ant.CompileTask
buildscript {
repositories {
mavenCentral()
}
dependencies {
@koizuss
koizuss / httpd-2.4.3-install.sh
Created October 25, 2012 11:52
install "httpd-2.4.3"
sudo apt-get install libpcre3-dev
curl -O http://apache.mesi.com.ar/apr/apr-1.4.6.tar.gz
curl -O http://apache.mesi.com.ar/apr/apr-util-1.4.1.tar.gz
curl -O http://mirrors.linsrv.net/apache/httpd/httpd-2.4.3.tar.gz
tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
tar zxvf httpd-2.4.3.tar.gz
mkdir httpd-2.4.3/srclib
mv apr-1.4.6 httpd-2.4.3/srclib
mv httpd-2.4.3/srclib/apr-1.4.6 httpd-2.4.3/srclib/apr
@koizuss
koizuss / Default.sublime-keymap
Last active November 8, 2018 01:34
Mac上でDocblockr Pluginとgoogle日本語入力を使っていてコメント内でENTERを押したら入力内容が消える問題を回避(とりあえず)
[
// open a docblock with enter
{ "keys": ["enter"], "command": "jsdocs",
"context": [
{ "key": "setting.auto_indent", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\\/\\*|###)\\*$", "match_all": true }
]
},
@koizuss
koizuss / JUnit実践入門.md
Created May 30, 2013 15:28
JUnit実践入門

JUnit実践入門

@koizuss
koizuss / webdriver-setup.gradle
Created June 1, 2013 08:29
setup webdriver on gradle
ext {
webdriver {
chrome {
driver = file('tools/chromedriver/chromedriver')
}
}
}
task setupChromeDriver << {
ext {
@koizuss
koizuss / maven-dependency-tutorial.md
Created June 12, 2013 10:45
Mavenの依存関係をいろいろいじくる

maven-dependency-tutorial

ph0. プロジェクト作成

依存関係のサンプルなので普通のJavaプロジェクトを作成

mvn archetype:generate
  • groupId: net.jp.kronos.hq
  • artifactId: maven-dependency-tutorial
@koizuss
koizuss / js-function-measurement.html
Created June 16, 2013 14:03
即時関数の処理速度測定
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js-function-measurement</title>
</head>
<body>
<style type="text/css">
dd {position: relative; width: 250px;}
[id^=item] { font-weight: bold; position: absolute; right: 0;}