投稿されたすべてのコード一覧
javascript:var r=new XMLHttpRequest();r.open('GET','http://twitter.com/users/show/'+(document.location+'').match(/#!\/([^\/]*)/)[1]+'.xml',false);r.send(null);if(r.status==200)alert('http://twitter.com/statuses/user_timeline/'+document.evaluate('/user/id',r.responseXML,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.textContent+'.rss');
#!/bin/sh ## # Use stepped refinement function of COOT from command line. # ... This is a very simple example...
scala> def date(year:Int, month:Int, day:Int) = "%s/%02d/%02d" format(year, month, day) date: (year: Int,month: Int,day: Int)String scala> date(2011, 07, 18) res22: String = 2011/07/18
scala> def date(month:Int=10, day:Int) = "%s/%s" format (month, day) date: (month: Int,day: Int)String scala> date(30) <console>:7: error: not enough arguments for method date: (month: Int,day: Int)String.
scala> def log(msg:String, length:Int = msg.length) = "[%s] %s" format(length, msg) <console>:5: error: not found: value msg def log(msg:String, length:Int = msg.length) = "[%s] %s" format(length, msg) ^
$(function(){ $('.textimage').each(function(key,value){ var name = $(this).children('dt').text(); if( name == 'n'){ $(this).find('dd img').remove();