ネットで探したり chatGPT に聞いたりして作りました。
| json | jsonc | json5 | jsonl | ndjson | |
|---|---|---|---|---|---|
| とは? | みんな知ってる JSON。 | コメントが書ける JSON |
ネットで探したり chatGPT に聞いたりして作りました。
| json | jsonc | json5 | jsonl | ndjson | |
|---|---|---|---|---|---|
| とは? | みんな知ってる JSON。 | コメントが書ける JSON |
| const hexRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/; | |
| // https://stackoverflow.com/a/11868398/13126073 | |
| function getContrastYIQ(hexcolor) { | |
| if (hexcolor.length === 4) { | |
| hexcolor = `#${hexcolor[1]}${hexcolor[1]}${hexcolor[2]}${hexcolor[2]}${hexcolor[3]}${hexcolor[3]}` | |
| } | |
| hexcolor = hexcolor.replace("#", ""); | |
| var r = parseInt(hexcolor.substr(0, 2), 16); | |
| var g = parseInt(hexcolor.substr(2, 2), 16); |
| #include <WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <WiFiAP.h> | |
| #define LED_BUILTIN 2 | |
| WiFiServer server(80); | |
| const IPAddress ip(192, 168, 10, 1); | |
| const IPAddress subnet(255, 255, 255, 0); |
| import os | |
| import struct | |
| # フォルダ内の全ての .SPE ファイルを /out フォルダに .txt として出力します | |
| # 対象フォルダ内(一つの階層だけに対応しています)にこの python ファイルを置き、実行してください | |
| def from_bytes(b, fmt, offset): | |
| return struct.unpack(fmt, b[offset:offset+struct.calcsize(fmt)])[0] | |
| import struct | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def from_bytes(b, fmt, offset): | |
| size = struct.calcsize(fmt) | |
| return struct.unpack(fmt, b[offset:offset+size])[0] | |
| const chantoSort = (array) => { | |
| for (let i = array.length - 1; i > 0; i--) { | |
| let r = Math.floor(Math.random() * (i + 1)); | |
| let tmp = array[i]; | |
| array[i] = array[r]; | |
| array[r] = tmp; | |
| } | |
| return array; | |
| }; |
| /** | |
| * Google Drive の特定のフォルダー以下のメンバーと権限をスプレッドシートに展開する | |
| * | |
| * 1. 権限を知りたいフォルダー直下にスプレッドシートを作成する | |
| * 2. ツール > スクリプトエディタ で開いたエディタにこのページのコードを貼り付ける | |
| * 3. 保存、実行、してちょっと待つ (初回実行時は権限の許可が必要) | |
| */ | |
| const masterSheet = SpreadsheetApp.getActive() | |
| const sheet = masterSheet.getSheetByName("シート1").activate() |
⭐ ブログ → githubio
Twitter → @takapiro_99
GitHub → @takapiro99
LT など登壇資料まとめ → https://drive.google.com/drive/folders/1JLm3j1...
これを和訳した
おれに偏った解釈/解説をしています。訳は忠実ではないかもしれません
とりあえずeveryoneGitPracticeをVScodeで開く。
ここで cloneまでやっておくこと!
Github Desktopで、正しいブランチにいることを確かめる。