Skip to content

Instantly share code, notes, and snippets.

View yoshiori's full-sized avatar
🏠
Working from home

Yoshiori Shoji yoshiori

🏠
Working from home
View GitHub Profile
596 名前:名無しさん@お腹いっぱい。 [sage] :2011/01/18(火) 21:39:32 ID:7RufP18u
ソロ
1位:ヘビィ
2位:ライト
3位:弓、ハンマー
5位:スラアク
6位:大剣、ランス、ガンス
ーーーーー超えられない壁ーーーーーーー
9位:太刀
10位:双剣
@yoshiori
yoshiori / logback.xml
Created April 5, 2011 04:53
org.yoshiori 以下の DEBUG 以上のものは logging.log に出して、さらに、WARN 以上のものは ALERT にも出したいんだけど、どうやんの???
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<Target>System.out</Target>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
</Pattern>
</layout>
</appender>
<!--Daily rolling file appender -->
@yoshiori
yoshiori / CoR.java
Created April 25, 2011 04:35
Chain of Responsibility で fizzbuzz
/**
*
*/
package org.yoshiori.cor;
/**
* @author yoshiori
*
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import pynotify
def main():
if len(sys.argv) is not 3:
return
summary = sys.argv[1];
/**
*
*/
package org.yoshiori.dbutils;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time, random, urllib, urllib2, cgi, hmac, hashlib, commands, simplejson
from pit import Pit
class MyTwitter(object):
request_token_url = 'http://twitter.com/oauth/request_token'
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gntp.notifier
import sys
notifications = ["OK","FAILURE","ERROR"]
growl = gntp.notifier.GrowlNotifier(
applicationName = "GrowlNotifir.py",
notifications = notifications,
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gntp.notifier
import sys
applicationIcon = 'http://cdn-ak.f.st-hatena.com/images/fotolife/k/kompiro/20100811/20100811151901.png'
notifications = ['OK','Failure','Error']
okIcon = 'https://github.com/kompiro/quick-junit/blob/master/junit.extensions.eclipse.quick.notifications/icons/tsuiteok.gif?raw=true'
/**
*
*/
package org.yoshiori.logback.filter;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.AbstractMatcherFilter;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, simplejson, urllib2, urllib, dbm
import rfc822,logging, pickle
from pit import Pit
from time import sleep
from tw3 import MyTwitter
log = logging.getLogger()