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
| use strict; | |
| use warnings; | |
| use DBIx::Simple; | |
| use CGI; | |
| use DateTime::Format::SQLite; | |
| use DateTime; | |
| use Text::Xslate qw(mark_raw); | |
| my $q = CGI->new; | |
| print $q->header(-charset=>'utf-8'); |
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
| <html lang="ja"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Data <: $today :></title> | |
| <style type="text/css"> | |
| td { | |
| font-size: small; | |
| border: 1px #2b2b2b solid; |
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 spk = 13; | |
| //int doremi[] = {523, 587, 659, 698, 784, 880, 988, 1046}; | |
| int doremi[] = {478, 506, 568, 638, 716, 758, 851, 956}; | |
| int button[8]; | |
| void setup() { | |
| button_init(); | |
| pinMode(spk, 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
| package AnyEvent::Twitter::Stream; | |
| use strict; | |
| use 5.008_001; | |
| our $VERSION = '0.21'; | |
| use Data::Dumper; | |
| use AnyEvent; | |
| use AnyEvent::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
| use 5.14.0; | |
| my $G = 1; | |
| my $H = 3.5; | |
| my $M = 1; | |
| my $org = 90; | |
| my $dx = 0.5; | |
| my $dt = 0.1; | |
| my $nm = 99; | |
| my $ni = 50; |
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 led[10]; | |
| void init_led () { | |
| for (int i=0; i<10; i++) { | |
| led[i] = i + 2; | |
| pinMode(led[i], OUTPUT); | |
| } | |
| } | |
| void light_led (char *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
| int led[10]; | |
| void init_led () { | |
| for (int i=0; i<10; i++) { | |
| led[i] = i + 2; | |
| pinMode(led[i], OUTPUT); | |
| } | |
| } | |
| void light_led (char *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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| struct record { | |
| char word[20]; | |
| int count; | |
| struct record *next; | |
| }; |
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 <Matrix.h> | |
| #include <Sprite.h> | |
| Matrix mtx = Matrix(10, 12, 11); // DIN, CLK, LOAD の各ピン番号 | |
| void setup() {} | |
| void loop() { | |
| mtx.clear(); // LED マトリックスを全て消灯 |
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 <Sprite.h> | |
| #include <Matrix.h> | |
| Matrix mtx = Matrix(10, 12, 11); | |
| Sprite tsuku = Sprite( | |
| B01001000, | |
| B01101110, | |
| B10110100, | |
| B00000000, |
OlderNewer