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
| #include <Arduino.h> | |
| void setup() { | |
| Serial.begin(9600); | |
| delay(500); | |
| } | |
| void loop() { | |
| Serial.println("URI decoder!"); | |
| while( 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
| #include "DigiKeyboard.h" | |
| void setup() { | |
| // don't need to set anything up to use DigiKeyboard | |
| pinMode(1, OUTPUT); | |
| pinMode(2, OUTPUT); | |
| pinMode(0, INPUT_PULLUP); | |
| digitalWrite(2, LOW); | |
| } |
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
| str = File.read("SIRS201519198.csv") | |
| def hyoka2gp(c) | |
| case c | |
| when 'A+' | |
| 4.3 | |
| when 'A' | |
| 4 | |
| when 'B' | |
| 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
| #for trinket M0 | |
| import pulseio | |
| import time | |
| import board | |
| import simpleio | |
| while True: | |
| simpleio.tone(board.D2, 350 , 0.337) | |
| simpleio.tone(board.D2, 466 , 0.506) |
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
| # RTされたツイートは平和にならない | |
| Plugin.create :make_twitter_cat do | |
| filter_update do |service, msgs| | |
| msgs.map! { |m| m[:message]="にゃ〜ん🐱"; m } | |
| msgs.each { |m| p m.body } | |
| [service, msgs] | |
| end | |
| end |
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
| li { | |
| list-style: none; | |
| } | |
| h2 { | |
| text-align: center; | |
| } |
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
| #include <stdio.h> | |
| #include <stdint.h> | |
| typedef union { | |
| float f; | |
| uint32_t l; | |
| } float_bits_t; | |
| int main(void) { | |
| float_bits_t num; |
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
| require './smalltalklike' | |
| 100.times { |i| | |
| ( i%15 == 0 ).if { | |
| puts 'FizzBuzz' | |
| }.else { | |
| ( i%3 == 0 ).if { | |
| puts 'Fizz' | |
| }.else { | |
| ( i%5 == 0 ).if { |
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
| pic2shop://scan?callback=https%3A%2F%2Fgoogle.co.jp%2Fsearch%3Fq%3DEAN |
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
| Plugin.create(:half_hour_mute) do | |
| mutes = [] | |
| command(:half_hour_mute, | |
| name: '半時ROMれ', | |
| condition: lambda{ |opt| true } , | |
| visible: true, | |
| role: :timeline) do |opt| | |
| opt.messages.each do |message| | |
| user = message.user.to_s | |