Skip to content

Instantly share code, notes, and snippets.

View yoichiro's full-sized avatar
😁
I'm fine! Now writing a code!

Yoichiro Tanaka yoichiro

😁
I'm fine! Now writing a code!
View GitHub Profile
@yoichiro
yoichiro / pom.xml
Created January 21, 2019 14:17
The pom.xml file to test AoG Java/Kotlin Client Library
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>jp.eisbahn.actions.simpleaction</groupId>
<artifactId>simple-action</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>simple-action Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
@yoichiro
yoichiro / gist:a192cf77abac52cf519a
Last active August 29, 2015 14:05
QueryDivider - A parser to divide SQL queries with a delimiter string which is decided by the "delimiter" command.
/*
* var parser = new QueryDivider();
* var result = parser.parse(sql);
* if (result.success) {
* var result = result.result;
* for (var i = 0; i < result.length; i++) {
* var query = result[i];
* // do something...
* }
* }
@yoichiro
yoichiro / gist:3780155
Created September 25, 2012 05:28
mixi Graph APIでのメッセージ送信
curl -iH "Authorization: OAuth ..." -H "Content-Type: application/json" -d '{"title":"Test","body":"Test from Yoichiro","recipients":["..."]}' "https://api.mixi-platform.com/2/messages/@me/@self/@outbox"
@yoichiro
yoichiro / emacs.rb
Created November 27, 2011 10:22 — forked from kevinpet/emacs.rb
Homebrew Emacs for OSX Lion with native full-screen
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@yoichiro
yoichiro / np.erl
Created September 9, 2011 01:10
ランダムに並んだ数列のANDを取るプログラム
-module(np).
-export([main/0]).
-define(LIST_LENGTH, 100).
main() ->
Source = create_test_list(?LIST_LENGTH),
product_all_lists(Source, 0).
product_all_lists([], Count) ->