Skip to content

Instantly share code, notes, and snippets.

落書きの報告書 Twitterばかりしてる俺
超高速でビルドするけど 動かないVirtual Machine
やさしくないJavaの本ページ破りたい
Chromeの裏 2ちゃんを覗いて見つかれば逃げ場もない
座って固まり 目を伏せながら
心のひとつも解りあえないプログラムをにらむ
そして仲間たちは今夜辞職の計画をたてる
とにかくもう 会社や家には帰りたくない
自分の業務が何なのかさえ 解らず震えている
25の夜
@tbroyer
tbroyer / Html5Historian.java
Created February 22, 2012 10:07
GWT PlaceHistoryHandler.Historian using HTML5 pushState and onpopstate
/*
* Copyright 2012 Thomas Broyer <[email protected]>
*
* 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
@shin1ogawa
shin1ogawa / GDataCalendarExample.java
Created February 24, 2012 08:31
Apps API Japan #3 Javaサンプル
import java.io.*;
import java.net.*;
public class GDataCalendarExample {
static final String CLIENT_ID = "";
static final String CLIENT_SECRET = "";
static final String REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob"; // InstalledApplication
static final String SCOPES = "https://www.googleapis.com/auth/calendar";
static final String ENDPOINT = "https://accounts.google.com/o/oauth2";
@kimukou
kimukou / GDataOAuth2.groovy
Created February 25, 2012 09:04
GDataOAuth2.groovy
//
// ref https://gist.github.com/1899391
import java.io.*
import java.net.*
import groovy.transform.Field
//see @Field's Explanation http://d.hatena.ne.jp/uehaj/20110703/1309685397
@cynipe
cynipe / git-flow-with-maven-release-plugin.rst
Created March 22, 2012 07:49
git-flow + maven-release-plugin用の手順

git-flow + maven-release-plugin用の手順

前提

プロジェクトのルートPOMに以下の設定が書かれている必要がある。

SCM情報の設定

@YusukeKokubo
YusukeKokubo / Hello.gwt.xml
Created April 27, 2012 05:25
Hello GwtQuery
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.4.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.4.0/distro-source/core/src/gwt-module.dtd">
<module rename-to="hello">
<inherits name="com.google.gwt.user.User" />
<inherits name='com.google.gwt.query.Query' />
<source path="client" />
<entry-point class="as.client.Hello"></entry-point>
</module>
@mhawksey
mhawksey / gist:2720726
Created May 17, 2012 18:20
Google Apps Script fetch feed item link
function fetchUrlfromRSS(url) {
var cache = CacheService.getPublicCache(); // using Cache service to prevent too many urlfetch
var cached = cache.get(url);
if (cached != null) { // if value in cache return it
return cached;
}
// otherwise build urlfetch
var options = {"method" : "get"};
try {
var response = UrlFetchApp.fetch(url , options);
@vvakame
vvakame / BitmapType.java
Created June 14, 2012 23:27
ORMLiteでBitmapなフィールドを良い感じに処理してくれるPersisterClass
package net.vvakame.android.entity;
import java.io.ByteArrayOutputStream;
import java.sql.SQLException;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Bitmap.CompressFormat;
import com.j256.ormlite.field.FieldType;
(function(global) {
var Hoge, Fuga, SampleView;
Hoge = (function() {
function Hoge() {
}
Hoge.prototype.init = function(str) {
str = str || "hoge";
@mhawksey
mhawksey / gist:3007293
Created June 27, 2012 22:26
Turn Google Site pages into RSS feed
/*
Copyright 2011 Martin Hawksey
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