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 java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
public class Main { |
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
#define RECV_PIN 5 | |
#define TIMEOUT_US 30000 | |
#define DETECT_INTERVAL_MS 10000 | |
int recv_data(uint32_t *data) { | |
int count = 0; | |
while (true) { | |
unsigned long pulse = pulseIn(RECV_PIN, HIGH, TIMEOUT_US); | |
if (pulse == 0){ | |
break; |
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
brew cask install google-chrome | |
brew cask install iterm2 | |
brew cask install skype | |
brew cask install todoist | |
brew cask install sequel-pro | |
brew cask install sublime-text | |
brew cask install intellij-idea | |
brew cask install alfred | |
brew cask install 1password | |
brew cask install cinch |
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
「Fluentd & Treasure Data でこっそり始めるログ集計」 | |
CROOZ 株式会社 | |
池田 朋大( @mikeda ) | |
FluentdとTreasureDataプラットフォームを使って、1インフラエンジニアが勢いでログ集計システムを作ってみたお話です | |
--- | |
■発表の人 | |
インフラエンジニア | |
fluentd 歴3ヶ月 |
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 cyclone.web | |
class MainHandler(cyclone.web.RequestHandler): | |
def get(self): | |
self.write("hello, world") | |
Application = lambda: cyclone.web.Application([(r"/", MainHandler)]) |
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> | |
<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 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 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 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 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) { |
NewerOlder