This file contains hidden or 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 incomingByte = 0; | |
| int ledPin = 13; | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(ledPin, OUTPUT); | |
| } | |
| void loop() { | |
| if (Serial.available() > 0) { |
This file contains hidden or 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 incomingByte = 0; | |
| int ledPin = 13; //ardunioのLEDは13番ピン | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(ledPin, OUTPUT); | |
| } | |
| void loop() { | |
| if (Serial.available() > 0) { |
This file contains hidden or 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 java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.io.IOException; | |
| import java.util.HashSet; | |
| import java.util.InputMismatchException; | |
| import java.lang.StringBuffer; | |
| /** | |
| *HitAndBlowは、四桁の重複しない数字列を解答とし、その値を予測するゲームである。 | |
| *任意の数字と解答の数字が桁まで一致してる場合をヒット、 |
This file contains hidden or 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 java.util.regex.*; | |
| public class Calc { | |
| public static void main(String[] args) { | |
| char[] charArray; | |
| charArray = new char[10]; | |
| charArray[0] = '1'; |
This file contains hidden or 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
| public class Diamond { | |
| public static void main (String[] args) { | |
| for (int j = 0; j < 8; j++) { | |
| for (int i = 7; i-j>0; i-- ) { | |
| System.out.print(" "); | |
| } | |
| for (int i = 1; i<j*2; i++){ | |
| System.out.print("*"); |
This file contains hidden or 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> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script> | |
| //write here | |
| $(function() { | |
| $("input#search").click( function() { | |
| var searchId = $("input#input_id").val(); |
This file contains hidden or 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 cyclone.web | |
| class MainHandler(cyclone.web.RequestHandler): | |
| def get(self): | |
| self.write("hello, world") | |
| Application = lambda: cyclone.web.Application([(r"/", MainHandler)]) |
This file contains hidden or 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
| 「Fluentd & Treasure Data でこっそり始めるログ集計」 | |
| CROOZ 株式会社 | |
| 池田 朋大( @mikeda ) | |
| FluentdとTreasureDataプラットフォームを使って、1インフラエンジニアが勢いでログ集計システムを作ってみたお話です | |
| --- | |
| ■発表の人 | |
| インフラエンジニア | |
| fluentd 歴3ヶ月 |
This file contains hidden or 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
| public class BoundingBox { | |
| public int smallestArea(int[] X, int[] Y) { | |
| return getl(X)*getl(Y); | |
| } | |
| private int getl(int[] N) { | |
| int max = -100; | |
| int min = 100; |
This file contains hidden or 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 str0 = '{"id":0,"name":"GMT","difference":0}'; | |
| var str1 = '{"id":1,"name":"JST","difference":9}'; | |
| var str2 = '{"id":2,"name":"PST","difference":-8}'; | |
| timezones = new Array(JSON.parse(str1), JSON.parse(str2), JSON.parse(str0)); | |
| localStorage.setItem("currentTimezone",JSON.stringify(timezones[0])); | |
| localStorage.setItem("myTimezone",JSON.stringify(timezones)); |
OlderNewer