- [ジャバ2] http://relayr.herokuapp.com/19
- [ジャバ3] http://relayr.herokuapp.com/37
「[あなたとジャバ]」の外伝的位置づけ。
主人公は、二億円が欲しいがために様々なトラブルに巻き込まれる。
| # | |
| # Description: | |
| # Have a multi-step conversation with hubot | |
| # | |
| # Commands: | |
| # hubot start wizard - Allow hubot to ask you some questions | |
| # | |
| module.exports = (robot) -> |
| // run with `--harmony` | |
| var ucs2 = require('punycode').ucs2; | |
| function food(){ | |
| function *foodz(){ | |
| var s = 0x1F354, | |
| e = 0x1F37B, | |
| c = s; | |
| for(;;){ | |
| if(c>e){ c = s; }; |
| var AnimationTimer = {}; | |
| var _timerId = 0; | |
| var _timerIds = {}; | |
| AnimationTimer.setInterval = function(callback, delay) { | |
| var timerId = ++_timerId; | |
| _timerIds[timerId] = setTimeout(function interval() { | |
| requestAnimationFrame(function() { |
| const double THRESHOLD = 64.0; // +2 | |
| // http://makers-with-myson.blog.so-net.ne.jp/2014-04-05 | |
| unsigned int on[] = {2552,2680,824,860,820, 860,824,1892,852,1868,824,1896,824,1892,828, 856,828, 856,848,53728,2552,2672,828,860,824, 856,824,1896,852,1864,824,1896,824,1896,852, 828,828, 856,828,53840,2560,2672,828,856,848, 836,824,1892,824,1892,828,1892,852,1868,852, 832,848, 832,828}; | |
| unsigned int off[] = {2552,2676,852,832,824,1896,848, 832,828, 856,828,1892,824, 856,852,1868,824,1892,852,53944,2556,2676,824,860,820,1896,828, 856,828, 852,848,1872,824, 856,828,1896,824,1892,824,53844,2552,2676,852,832,824,1896,848, 836,824, 856,828,1892,824, 860,820,1896,828,1888,848}; | |
| void setup() { | |
| Serial.begin(115200); | |
| pinMode(12, OUTPUT); | |
| analogReference(INTERNAL); |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # | |
| # RedmineからREST APIを使ってユーザーの一覧を取得しCSV形式で出力する | |
| # | |
| require 'open-uri' | |
| require 'json' | |
| require 'csv' |
「[あなたとジャバ]」の外伝的位置づけ。
主人公は、二億円が欲しいがために様々なトラブルに巻き込まれる。
| #!/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} |
| # 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 |
| Gemfile.lock |
| 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 { |