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 stations = [ | |
[0, 0, 10], | |
[20, 20, 5], | |
[10, 0, 12], | |
]; | |
const points = [ | |
[0, 0], | |
[100, 100], | |
[15, 10], |
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
import type { useToast } from "@chakra-ui/react"; | |
import { createActorContext } from "@xstate/react"; | |
import { endOfMonth, isSameMonth, startOfMonth } from "date-fns"; | |
import { assign, createMachine } from "xstate"; | |
import type { RouterOutput, trpc } from "@/utilities/trpc"; | |
export type Transaction = Omit< | |
RouterOutput["transactions"]["list"][number], | |
"organizationId" | "skipInvoicing" |
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
#!/bin/bash | |
install_with_plugin=false | |
install_without_plugin=false | |
while getopts ":yn" opt; do | |
case $opt in | |
n) | |
install_without_plugin=true | |
;; |
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
{ | |
"require":[ | |
[ | |
"ScheduledServerJS", | |
"handle", | |
null, | |
[ | |
{ | |
"__bbox":{ | |
"require":[ |
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
.data | |
licz1: .word 4 | |
licz2: .word 2 | |
wyn: .word 0 | |
status: .word 0 | |
overflow_message: .asciiz "Overflow" | |
.text | |
lw $t0, licz1 |
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
<style> | |
@import url('https://fonts.googleapis.com/css?family=Lobster&display=swap') repeat scroll 0 0 rgba(0, 0, 0 , 0); | |
body { | |
background: #fff; | |
} | |
.title { | |
font-size: 2.5rem; | |
font-family: 'Lobster', cursive; |
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
// you can write to stdout for debugging purposes, e.g. | |
// console.log('this is a debug message'); | |
const cache = new Map<string, number>(); | |
let lowestCurrentScore = Infinity; | |
const getScore = ({ | |
P, | |
Q, |
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
grep -rl 'hmr.host' ./node_modules/.pnpm/vite@*/node_modules/vite/dist/node/chunks | xargs sed -i 's/hmr && hmr.host/false/g' |
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 { Client, Intents } = require("discord.js"); | |
const { joinVoiceChannel } = require("@discordjs/voice"); | |
const { addSpeechEvent } = require("discord-speech-recognition"); | |
const client = new Client({ | |
intents: [ | |
Intents.FLAGS.GUILDS, | |
Intents.FLAGS.GUILD_VOICE_STATES, | |
Intents.FLAGS.GUILD_MESSAGES, | |
], |
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 { joinVoiceChannel } = require("@discordjs/voice"); | |
client.on("messageCreate", (msg) => { | |
const voiceChannel = msg.member?.voice.channel; | |
if (voiceChannel) { | |
joinVoiceChannel({ | |
channelId: voiceChannel.id, | |
guildId: voiceChannel.guild.id, | |
adapterCreator: voiceChannel.guild.voiceAdapterCreator, | |
selfDeaf: false, |
NewerOlder