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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from tw3 import MyTwitter
def main():
twitter = MyTwitter()
lists = twitter.get_list_all('yoshiori')
for i,data in enumerate(lists):
print '%-2s : %s(%s)' % (i+1,data['name'], data['member_count'])
#!/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()
/**
*
*/
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 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'
#!/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 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'
/**
*
*/
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 sys
import pynotify
def main():
if len(sys.argv) is not 3:
return
summary = sys.argv[1];
@yoshiori
yoshiori / CoR.java
Created April 25, 2011 04:35
Chain of Responsibility で fizzbuzz
/**
*
*/
package org.yoshiori.cor;
/**
* @author yoshiori
*
@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 -->