Skip to content

Instantly share code, notes, and snippets.

View Rei-x's full-sized avatar
🚀
shipping

Bartek Rei-x

🚀
shipping
View GitHub Profile
const stations = [
[0, 0, 10],
[20, 20, 5],
[10, 0, 12],
];
const points = [
[0, 0],
[100, 100],
[15, 10],
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"
#!/bin/bash
install_with_plugin=false
install_without_plugin=false
while getopts ":yn" opt; do
case $opt in
n)
install_without_plugin=true
;;
{
"require":[
[
"ScheduledServerJS",
"handle",
null,
[
{
"__bbox":{
"require":[
.data
licz1: .word 4
licz2: .word 2
wyn: .word 0
status: .word 0
overflow_message: .asciiz "Overflow"
.text
lw $t0, licz1
<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;
// 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,
grep -rl 'hmr.host' ./node_modules/.pnpm/vite@*/node_modules/vite/dist/node/chunks | xargs sed -i 's/hmr && hmr.host/false/g'
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,
],
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,