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
#include <SPI.h> | |
#include <MFRC522.h> | |
#include "LedControl.h" | |
#define CARDUID "c3 85 14 21" | |
#define TAGUID "33 6a 38 1f" | |
constexpr uint8_t RST_PIN = 9; // Configurable, see typical pin layout above | |
constexpr uint8_t SS_PIN = 10; // Configurable, see typical pin layout above |
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
# About the Problem | |
<!-- you write concisely about Problem, Background etc. --> | |
# How do you resolve this problem? | |
<!-- you write concisely about way of solving. --> | |
# Include migration? | |
<!-- If MR includes migration, you must tag migration to this MR. --> | |
# About an operation confirmation |
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
# usage: python3 hoge.py us-east-1 20190926 | |
import boto3 | |
import datetime | |
import json | |
import sys | |
REGION = sys.argv[1] | |
YYYYMMDD_UTC = datetime.datetime.strptime(sys.argv[2], '%Y%m%d') |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
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
package main | |
import ( | |
"fmt" | |
) | |
func receiver(ch <-chan int) { | |
for { | |
i := <-ch | |
fmt.Println(i) |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var ( | |
ch0 chan int |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
/* A */ | |
a := [3]int{1, 2, 3} // s == [1,2,3] | |
s := a[:] |
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
package main | |
import ( | |
"fmt" | |
) | |
func later() func(string) string { | |
// 1つ前に与えられた文字列を保存する変数 | |
var store string | |
// 引数に文字列をとり文字列を返す関数を返す |
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
bind status D !rm %(file) |