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
| uint8_t read_han[8] = { 0x0A, 0x1E, 0x0A, 0x17, 0x16, 0x0A, 0x10, 0x1F }; | |
| uint8_t read_kook[8] = { 0x1F, 0x01, 0x02, 0x1F, 0x04, 0x1F, 0x01, 0x02 }; | |
| void setup() { | |
| lcd.createChar(1, read_han); | |
| lcd.createChar(2, read_kook); | |
| lcd.begin(16, 2); | |
| lcd.setCursor(8, 0); | |
| lccd.write(1); | |
| lcd.write(2); |
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
| https://docs.google.com/presentation/d/1O9p46Cx7dpWL-A5eGzIMzmMLdVM3K9-QHgwL2T9qljY/edit?usp=sharing |
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
| kernel driver, and the last ones that didn't support | |
| DRM format modifiers until now. | |
| On GFX6-8, the GFX block can only use pre-determined tiling | |
| modes which are programmed by the kernel according to the | |
| tiling mode table. GFX6 uses the GB_TILE_MODE0...31 registers, | |
| and GFX7-8 also has GB_MACROTILE_MODE0...15 registers. | |
| DCC is also supported on GFX8, albeit not displayable. | |
| Note that the tiling table is uAPI and userspace relies on |
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
| const int LED1 = PA1; // interrupt | |
| const int LED2 = PA2; // 상시-주기적 toggling LED | |
| const int BTN_LED = PB12; // -> LED1 | |
| const int BTN_MOTOR = PB13; // MOTOR_{A,B} | |
| const int MOTOR_A = PA6; | |
| const int MOTOR_B = PA7; | |
| void handleLedISR() { | |
| digitalWrite(LED1, digitalRead(BTN_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
| use aes::{ | |
| Aes128, Aes128Dec, | |
| cipher::{ArrayLength, BlockDecryptMut, KeyInit, consts::U16, generic_array::GenericArray}, | |
| }; | |
| use pkcs5::pbes1::DigestAlgorithm; | |
| use sha1::{Digest, Sha1}; | |
| use std::{ | |
| fs::File, | |
| io::{Read, Write}, | |
| }; |
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 IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "(gdb) Launch", | |
| "type": "cppdbg", | |
| "request": "launch", |
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
| { | |
| description = "Build configuration for brave browser"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; | |
| }; | |
| outputs = { nixpkgs, ... }@inputs: let | |
| system = "x86_64-linux"; | |
| pkgs = import nixpkgs { inherit system; }; |
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
| alacritty -e "bash" "-c" "echo hi && sleep 10" & | |
| PROCESSID=$! | |
| sleep 0.1 | |
| WINDOW_ID=$(echo "\"Windows\"" | socat STDIO "$NIRI_SOCKET" | jaq '.Ok | .[] | map(select(.pid == '"$PROCESSID"')) | .[].id') | |
| echo $WINDOW_ID | |
| echo '{"Action":{"MoveWindowToWorkspace":{"window_id":'"$WINDOW_ID"', "reference": {"Index":2}, "focus": false}}}' | socat STDIO "$NIRI_SOCKET" |
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
| interface: 'wl_compositor', version: 6, | |
| interface: 'wl_subcompositor', version: 1, | |
| interface: 'wl_drm', version: 2, | |
| interface: 'wl_shm', version: 2, | |
| interface: 'wl_output', version: 4, | |
| interface: 'wl_data_device_manager', version: 3, | |
| interface: 'wl_seat', version: 8, | |
| interface: 'wp_viewporter', version: 1, | |
| interface: 'wp_fractional_scale_manager_v1', version: 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
| // from https://github.com/firebase/firebase-js-sdk/blob/ea1f9139e6baec0269fbb91233fd3f7f4b0d5875/packages/installations/src/helpers/generate-fid.ts#L20 | |
| const fidByteArray = new Uint8Array(17); | |
| self.crypto.getRandomValues(fidByteArray); | |
| fidByteArray[0] = 0b01110000 + (fidByteArray[0] % 0b00010000) | |
| const fid = btoa(String.fromCharCode(...fidByteArray)).replace(/\+/g, '-').replace(/\//g, '_').substr(0,22); | |
| /^[cdef][\w-]{21}$/.test(fid) |
NewerOlder