This file contains hidden or 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/env python | |
# -*- coding: utf-8 -*- | |
import gntp.notifier | |
import sys | |
notifications = ["OK","FAILURE","ERROR"] | |
growl = gntp.notifier.GrowlNotifier( | |
applicationName = "GrowlNotifir.py", | |
notifications = notifications, |
This file contains hidden or 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/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' |
This file contains hidden or 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
/** | |
* | |
*/ | |
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; |
This file contains hidden or 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/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() |
This file contains hidden or 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/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']) |
This file contains hidden or 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/env ruby | |
require 'github/markup' | |
require 'tempfile' | |
if ARGV[0] && File.exists?(file = ARGV[0]) | |
html = GitHub::Markup.render(file) | |
tmp = Tempfile::new(['','.html']) | |
tmp.write(html) | |
tmp.close |
This file contains hidden or 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
object Main { | |
def main(args: Array[String]){ | |
Main puts "Main" | |
this puts "this" | |
// puts "foo" これがダメなのなんで??? | |
} | |
def puts(text:String){ | |
println(text) | |
} | |
} |
This file contains hidden or 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
scala> val txt = "foo" + "bar" match { case s => {println(s);s} } | |
foobar | |
txt: java.lang.String = foobar | |
scala> val txt = "foo" + ("bar" match { case s => {println(s);s} }) | |
bar | |
txt: java.lang.String = foobar | |
だから |
This file contains hidden or 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 org.specs2.mutable._ | |
trait BarTrait {} | |
class Hoge {} | |
class TraitGetClassTest extends Specification { | |
"Trait mixin " should { | |
"getClass " in { | |
val hoge = new Hoge with BarTrait | |
hoge.isInstanceOf[Hoge] must beTrue | |
} | |
} |
This file contains hidden or 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
<turboFilter class="ch.qos.logback.classic.turbo.MarkerFilter"> | |
<Marker>MarkerExample</Marker> | |
<OnMatch>DENY</OnMatch> | |
</turboFilter> |