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
Process: java [96166] | |
Path: /Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/bin/java | |
Identifier: java | |
Version: ??? (???) | |
Code Type: X86-64 (Native) | |
Parent Process: bash [94062] | |
Date/Time: 2011-07-08 13:29:37.739 +0900 | |
OS Version: Mac OS X 10.6.8 (10K540) | |
Report Version: 6 |
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
package scala | |
object ob { | |
class ReversibleString(str: String) { | |
def reverseOrder() = { | |
var s = "" | |
for (c <- str.split("")) { | |
s = c + s | |
} |
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
package scala | |
object ob { | |
class ReversibleString(str: String) { | |
def reverseOrder() = { | |
str.split("").reverse.mkString | |
} | |
val upper = """[A-Z]""".r |
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
package scala | |
object ob { | |
class ReversibleString(str: String) { | |
def reverseOrder() = { | |
str.split("").reverse.mkString | |
} | |
def reverseCases() = { |
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
$ hg clone http://hg.openjdk.java.net/macosx-port/macosx-port | |
$ cd macosx-port | |
$ chmod 755 get_source.sh | |
$ ./get_source.sh | |
# cd ./jaxws && hg pull -u | |
$ make ALLOW_DOWNLOADS=true SA_APPLE_BOOT_JAVA=true ALWAYS_PASS_TEST_GAMMA=true ALT_BOOTDIR=`/usr/libexec/java_home -v 1.6` HOTSPOT_BUILD_JOBS=`sysctl -n hw.ncpu` |
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
int page = 1; | |
QueryResult result; | |
for(int i=1;i<=15;i++){ | |
result = TwitterFactory.getSingleton().search(new Query("twitter4j").rpp(100).page(page)); | |
if( result.getTweets().size() == 0){ | |
break; | |
} | |
for(Tweet tweet : result.getTweets()){ | |
// | |
System.out.println(tweet.getText()); |
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
$ wget https://dev.twitter.com/ | |
--2011-08-22 00:27:52-- https://dev.twitter.com/ | |
Resolving dev.twitter.com... 199.59.149.137 | |
Connecting to dev.twitter.com|199.59.149.137|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: unspecified [text/html] | |
Saving to: `index.html' | |
[ <=> ] 10,768 --.-K/s in 0.008s |
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
$ dig dev.twitter.com | |
; <<>> DiG 9.7.3 <<>> dev.twitter.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9646 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;dev.twitter.com. IN A |
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 twitter4j.*; | |
public class Test { | |
public static void main(String[] args) throws TwitterException { | |
Twitter twitter = TwitterFactory.getSingleton(); | |
ResponseList<Status> statuses = null; | |
Paging paging = new Paging(1).count(200); | |
int count = 0; | |
do { | |
System.out.println(paging.getPage()); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Twitter Web Toolkit - Tweets minimal example</title> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script src="twt.js"></script> | |
<link href="twt.css" rel="stylesheet"> | |
</head> | |
<body> |