- 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
/* | |
* LCD + INT + TIMER + ADC | |
Ports: | |
- PORTB: OC0 usage | |
- PORTC: LCD usage (defined in lcd4.h, modified via `#define`) | |
- PORTD: using INT1 | |
- PORTE: LED-GREEN output, using PE1. | |
- PORTF: ADC purpose. | |
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) |
NewerOlder