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
# この変更の前に、/boot/config.txtの末尾にlcd_rotate=2を追加しておく | |
# /usr/share/X11/xorg.conf.d/10-evdev.confの | |
# 既存の内容からIdentifierにtouchscreenと指定してあるところを探して | |
# そのSectionを以下のようになるように変更 | |
.... | |
Section "InputClass" | |
Identifier "evdev touchscreen catchall" | |
MatchIsTouchscreen "on" | |
MatchDevicePath "dev/input/event*" |
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.Query; | |
import twitter4j.QueryResult; | |
import twitter4j.Status; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterFactory; | |
import com.aldebaran.qi.Application; | |
import com.aldebaran.qi.CallError; | |
import com.aldebaran.qi.Session; | |
import com.aldebaran.qi.helper.EventCallback; |
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 com.aldebaran.qi.Application; | |
import com.aldebaran.qi.Session; | |
import com.aldebaran.qi.helper.proxies.*; | |
public class HelloPepper { | |
public static void main(String[] args) throws Exception { | |
Application app = new Application(args,"tcp://pepper.local:9559"); | |
try { | |
app.start(); | |
Session session = app.session(); |
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
var http = require('http'); | |
var url = require('url'); | |
var piblaster = require('pi-blaster.js'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/html'}); | |
var brightness = url.parse(req.url).pathname.slice(1); | |
if (brightness.length === 0 || isNaN(brightness)) { |
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
//Java5前には、配列先頭から要素を取り出す…は、こんな感じでした | |
public class BeforJava5{ | |
public static void main(String[] args) { | |
List texts = new ArrayList(); | |
texts.add("Hello"); | |
texts.add("Good bye"); | |
// Iterator(イテレータ)を使って、要素の先頭から末尾へと要素取り出しをする | |
Iterator ite = texts.iterator(); |
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
Runnable r1 = () -> { System.out.println("r1:並行処理してます"); }; |
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
Runnable r1 = new Runnable(){ | |
@Override | |
public void run(){ | |
System.out.println("r1:並行処理してます"); | |
} | |
} |