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
cd $PSScriptRoot | |
wget "https://www.nicovideo.jp/ranking/genre/all?term=24h&rss=2.0&lang=ja-jp" -OutFile "all.txt" | |
wget "https://www.nicovideo.jp/ranking/genre/music_sound?term=24h&rss=2.0&lang=ja-jp" -OutFile "music_sound.txt" | |
git add . | |
git commit -a -m "a" | |
git push -f |
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
0x05, 0x01, // Usage Page (Generic Desktop Ctrls) | |
0x09, 0x06, // Usage (Keyboard) | |
0xA1, 0x01, // Collection (Application) | |
0x85, 0x7F, // Report ID (127) | |
0x05, 0x07, // Usage Page (Kbrd/Keypad) | |
0x19, 0xE0, // Usage Minimum (0xE0) | |
0x29, 0xE7, // Usage Maximum (0xE7) | |
0x15, 0x00, // Logical Minimum (0) | |
0x25, 0x01, // Logical Maximum (1) | |
0x95, 0x08, // Report Count (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
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install build-essential -y | |
sudo apt install gcc-arm-none-eabi -y | |
sudo apt install python3-pip -y | |
sudo pip3 install adafruit-nrfutil | |
sudo pip3 install intelhex | |
git clone https://github.com/ogatatsu/Adafruit_nRF52_Bootloader.git | |
cd Adafruit_nRF52_Bootloader |
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
sudo apt update | |
sudo apt upgrade | |
sudo apt install build-essential | |
sudo apt install libgmp-dev | |
sudo apt install libmpc-dev | |
sudo apt install libmpfr-dev | |
wget http://core.ring.gr.jp/pub/GNU/binutils/binutils-2.33.1.tar.gz | |
tar xvzf binutils-2.33.1.tar.gz | |
cd ./binutils-2.33.1 |
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
char ReportDescriptor[] = { | |
0x05, 0x01, // USAGE_PAGE (Generic Desktop) | |
0x09, 0x02, // USAGE (Mouse) | |
0xa1, 0x01, // COLLECTION (Application) | |
0x85, 0x02, // REPORT_ID (2) | |
0x09, 0x01, // USAGE (Pointer) | |
0xa1, 0x00, // COLLECTION (Physical) | |
0x95, 0x10, // REPORT_COUNT (16) | |
0x75, 0x01, // REPORT_SIZE (1) |
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
Frame 17: 93 bytes on wire (744 bits), 93 bytes captured (744 bits) on interface 0 | |
USB URB | |
[Source: 3.15.0] | |
[Destination: host] | |
USBPcap pseudoheader length: 28 | |
IRP ID: 0xffffd48c68507520 | |
IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000) | |
URB Function: URB_FUNCTION_CONTROL_TRANSFER (0x0008) | |
IRP information: 0x01, Direction: PDO -> FDO | |
URB bus id: 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
{"lastUpload":"2020-08-08T10:10:20.923Z","extensionVersion":"v3.4.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
def test(): Unit = { | |
for(i <- 1 to 10) { | |
println(i); | |
if(i == 5) return; | |
} | |
println("test"); //実行されたら気持ち悪い | |
} |
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
object RetryUtil { | |
import scala.util.control.Exception.allCatch | |
case class RetryResult[T](e: Either[List[Throwable], T]) { | |
def `catch`(f: List[Throwable] => T): T = e match { | |
case Right(r) => r | |
case Left(l) => f(l) | |
} | |
} |
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
def connect = { | |
log("connect") { // connect start | |
// ... 何かの処理 ... | |
log("login") { // connect : login start | |
// ... 何かの処理 ... | |
} // connect : login end | |
// ... 何かの処理 ... | |
} // connect end | |
} |
NewerOlder