- [ジャバ2] http://relayr.herokuapp.com/19
- [ジャバ3] http://relayr.herokuapp.com/37
「[あなたとジャバ]」の外伝的位置づけ。
主人公は、二億円が欲しいがために様々なトラブルに巻き込まれる。
| Earthquake.init do | |
| command :delete do | |
| name = twitter.info["name"] | |
| id = twitter.user_timeline(:screen_name => name).first["id_str"] | |
| tweet = twitter.status(id) | |
| async_e { twitter.status_destroy(id) } if confirm("delete '#{tweet["text"]}'") | |
| end | |
| end |
| import java.util.Scanner; | |
| import java.awt.AWTException; | |
| import java.awt.GraphicsEnvironment; | |
| import java.awt.Rectangle; | |
| import java.awt.Robot; | |
| public final class MouseJump | |
| { | |
| public static void main(String[] args) throws AWTException | |
| { |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| create_table :users, id: false do |t| | |
| t.uuid :id, primary: true, null: false | |
| # ... | |
| end |
| import java.io.IOException; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import org.apache.struts.action.ActionServlet; | |
| @SuppressWarnings("serial") | |
| public class RestfulActionServlet extends ActionServlet { |
| Gemfile.lock |
| # ncurses | |
| wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz | |
| tar xvzf ncurses-5.9.tar.gz | |
| cd ncurses-5.9 | |
| ./configure --prefix=$HOME/local | |
| make -j8 | |
| make install | |
| cd .. | |
| # libevent |
| #!/bin/bash | |
| # setup NIFTY Cloud API Tools | |
| ( | |
| USER=${USER} | |
| HOME=${HOME} | |
| ARC=$(/bin/uname -m) | |
| ## OpenJDKセットアップ | |
| /usr/bin/yum -y install java-1.6.0-openjdk.${ARC} |
「[あなたとジャバ]」の外伝的位置づけ。
主人公は、二億円が欲しいがために様々なトラブルに巻き込まれる。