This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" シフト移動幅 | |
set shiftwidth=2 | |
" タブ幅 | |
set tabstop=2 | |
" タブをスペースにして入力 | |
set expandtab | |
" 行番号を表示 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class c = object.getClass(); | |
Field fields[] = c.getFields(); | |
StringBuilder query = new StringBuilder() | |
.append("INSERT INTO ").append(c.getName()) | |
.append(" VALUE ("); | |
for (int i = 0; i < fields.length; i++) query.append("?,"); | |
query.deleteCharAt(query.length()); | |
query.append(')'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- encoding:utf-8 -*- | |
#====== options ============= | |
#Oauth用認証トークン 各自取得 | |
ckey = "" | |
csecret = "" | |
atoken ="" | |
atoken_secret = "" | |
#============================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class PrintTool { | |
public static final PrintTool out = new PrintTool(); | |
private PrintStream stream; | |
public PrintTool() { | |
this(System.out); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONVOPT='-verbose -depth 8 -rotate -90 -resize 1024x600' | |
TMPDIR=`mktemp -d` | |
echo 'Extracting images...' | |
pdfimages $1 $TMPDIR/img | |
echo 'Converting PBM/PPM to PNG...' | |
for file in $TMPDIR/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="電力供給状況" description="東京電力の電力供給状況を表示するガジェット" author="Kimura Youichi (@kim_upsilon)" height="150"> | |
<Require feature="views" /> | |
</ModulePrefs> | |
<Content view="home,profile" type="html"> | |
<![CDATA[ | |
<style> | |
p, div { | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#export http_proxy=http://example.com:8080/ | |
cd plugins | |
git clone http://github.com/ebihara/opAuthMailAddressPlugin.git | |
git clone http://github.com/ebihara/opAuthMobileUIDPlugin.git | |
git clone http://github.com/ebihara/opAuthOpenIDPlugin.git | |
git clone http://github.com/tejimaya/opCommunityTopicPlugin.git | |
git clone http://github.com/ebihara/opWebAPIPlugin.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="Test Application"> | |
<Require feature="opensocial-0.9" /> | |
</ModulePrefs> | |
<Content type="html"> | |
<![CDATA[ | |
こんにちは! | |
]]> | |
</Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#(例)出金伝票 | |
6/1: | |
- title: ○○○○ | |
out: | |
××費: 1000 | |
#(例)入金伝票 | |
6/2: | |
- title: ○○○○ | |
in: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /opt/local/bin/ruby -w | |
# -*- mode:ruby; coding:utf-8 -*- | |
require 'atig/util' | |
require 'atig/http' | |
require 'json' | |
module Atig | |
module IFilter | |
class ExpandTumblr |
OlderNewer