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
| /* | |
| * Kitchen Pomodoro Timer — Arduino Nano (3-Button Version) | |
| * | |
| * Hardware: | |
| * - 4-digit 7-segment LED display (TM1637) → CLK=D2, DIO=D3 | |
| * - Piezo buzzer → D8 | |
| * - BTN_M (Mode) → D4 (INPUT_PULLUP) | |
| * - BTN_PLUS (+) → D5 (INPUT_PULLUP) | |
| * - BTN_MINUS (−) → D6 (INPUT_PULLUP) | |
| * |
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
| const int pins[] = {8, 2, 3, 4, 5, 6, 7, 9, 10}; | |
| const int count = sizeof(pins) / sizeof(pins[0]); | |
| void setup() { | |
| Serial.begin(115200); | |
| delay(1000); | |
| Serial.println("booted"); | |
| for (int i = 0; i < count; i++) { | |
| pinMode(pins[i], OUTPUT); |
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
| const int buzzerPin = 9; // Assign the buzzer to digital pin 9 | |
| void setup() { | |
| pinMode(buzzerPin, OUTPUT); // Set the buzzer pin as an output | |
| } | |
| void loop() { | |
| tone(buzzerPin, 1000); // Send a 1KHz sound signal | |
| delay(1000); // Pause for 1 second | |
| noTone(buzzerPin); // Stop the sound signal |
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
| // A B C D E F G DP | |
| // 6 5 2 3 4 7 8 9 | |
| int pins[] = {6, 5, 2, 3, 4, 7, 8, 9}; | |
| char segments[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'D','P'}; | |
| const int NUM_PINS = 8; | |
| void setup() { | |
| for (int i = 0; i < NUM_PINS; i++) { | |
| pinMode(pins[i], OUTPUT); |
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 scalaz._ | |
| import Scalaz._ | |
| /** | |
| * Use the state monad to 'process a trade' and store the new trade. | |
| * As well as processing the trade, handle validation errors. | |
| */ | |
| object StateMonad extends App { | |
| case class Trade(info: String) |
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
| package main | |
| import "bytes" | |
| import "io" | |
| import "os" | |
| import "strings" | |
| import "strconv" | |
| import "fmt" | |
| import "flag" | |
| import "net/http" |
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
| // Copyright (C) 2012 Benoit Sigoure | |
| // Copyright (C) 2012 StumbleUpon, Inc. | |
| // This library is free software: you can redistribute it and/or modify it | |
| // under the terms of the GNU Lesser General Public License as published by | |
| // the Free Software Foundation, either version 2.1 of the License, or (at your | |
| // option) any later version. This program is distributed in the hope that it | |
| // will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |
| // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | |
| // General Public License for more details. You should have received a copy | |
| // of the GNU Lesser General Public License along with this program. If not, |
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
| { | |
| "situation":"open_raise", | |
| "position":null, | |
| "upload_hands_item_id":"526ed331ce34de6612a66390", | |
| "created_at":"2013-10-29T01:12:17.178Z", | |
| "updated_at":"2013-10-29T01:12:17.178Z", | |
| "upload_hands_item_date":"2013-10-29T01:12:17.178Z", | |
| "columns":[ | |
| { | |
| "aposteriori_share":"0.33282", |
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
| { | |
| "header":{ | |
| "showdown":{ | |
| "freewalk":"show", | |
| "SERGO LAVROV":"show" | |
| }, | |
| "currency":"USD", | |
| "bb_player":"lucylooose", | |
| "table":{ | |
| "button":5, |
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
| { | |
| "header":{ | |
| "showdown":{ | |
| }, | |
| "currency":"USD", | |
| "bb_player":"krondix", | |
| "table":{ | |
| "button":2, | |
| "name":"Sita III", |
NewerOlder