- AB
- Problem 01
- Answer A
- Answer B
- Answer C
- Answer D
- Problem 02
- Answer A
- Answer B
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
/* | |
* main.c | |
* | |
* Created: 4/2/2024 11:15:32 AM | |
* Author: DatNgo | |
*/ | |
#include <xc.h> | |
#include <avr/io.h> | |
#include <avr/interrupt.h> |
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 <xc.h> | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <util/delay.h> | |
int count = 0; | |
volatile int direction = 1; | |
// 1 for going right side, -1 for going left side. | |
int masks[] = { 0b11111000, 0b11110100, 0b11110010, 0b11110001 }; |
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
<script lang="ts"> | |
import { onMount } from 'svelte'; | |
let observer: ResizeObserver | undefined = undefined; | |
let topElement: HTMLDivElement; | |
let slotElement: HTMLDivElement; | |
onMount(() => { | |
console.log(slotElement.getBoundingClientRect()); | |
observer = new ResizeObserver((_) => updateStyle()); |
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
@media not (prefers-color-scheme: dark) { | |
:root[color-scheme="system-color"][data-user-agent*="Linux"] tab-item:not(.active):not(.bundled-active):not(.highlighted), :root[color-scheme="system-color"][data-user-agent*="Linux"] .after-tabs button, :root[color-scheme="system-color"][data-user-agent*="Linux"] .after-tabs [role="button"], :root[color-scheme="system-color"][data-user-agent*="Linux"] #subpanel-selector-anchor, :root[color-scheme="system-color"][data-user-agent*="Linux"] #background { | |
--toolbar-non-lwt-bgcolor: welp !important; | |
--toolbar-non-lwt-textcolor: welp !important; | |
} | |
:root.simulate-svg-context-fill tab-item:not(.collapsed) tab-twisty::before { | |
background: var(--in-content-tab-color) !important; | |
} |
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
devices: ( | |
{ | |
name: "MX Master 3S"; | |
smartshift: | |
{ | |
on: true; | |
threshold: 255; | |
default_threshold: 255; | |
}; | |
hiresscroll: |
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
// undo every tweets | |
setInterval(() => { | |
for (const d of document.querySelectorAll('div[data-testid="unretweet"]')) { | |
d.click() | |
} | |
for (const d of document.querySelectorAll('div[data-testid="unretweetConfirm"]')) { | |
d.click() | |
} | |
window.scrollTo(0, document.body.scrollHeight) | |
}, 1000) |
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
function range(start, end) { | |
return Array.from({ length: end - start + 1 }, (_, i) => start + i); | |
} | |
function checkOverlap(square1, square2) { | |
const [x1, y1, r1] = square1; | |
const [x2, y2, r2] = square2; | |
const size1 = r1 * 2 + 1; | |
const size2 = r2 * 2 + 1; |
NewerOlder