Skip to content

Instantly share code, notes, and snippets.

import Make from "@rbxts/make";
import { useMountEffect } from "@rbxts/pretty-react-hooks";
import React, { useRef } from "@rbxts/react";
interface Props extends React.PropsWithChildren {
readonly ExtraCameraDepth?: number;
readonly Native: React.InstanceProps<ViewportFrame>;
readonly Object: BasePart | Model;
}
@MiraSynth
MiraSynth / cornparser.go
Created April 30, 2024 21:07
A cron string parser in hopes I can use it to schedule jobs
package cron
import (
"fmt"
"strconv"
"strings"
)
const (
MINUTE = 0
#EXTINF:-1,BeIN Sports News
http://iptv.nextnet.krd:25461/nextnet/3738/4335
#EXTINF:-1,BeIN SPORTS 1 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4338
#EXTINF:-1,BeIN SPORTS 2 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4339
#EXTINF:-1,BeIN SPORTS 3 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4340
#EXTINF:-1,BeIN SPORTS 4 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4341
from abc import ABC
from abc import abstractmethod
from abc import abstractproperty
from dataclasses import dataclass, field
from typing import Any
from typing import AsyncGenerator
from typing import Awaitable
from typing import Callable
from typing import Generator
from typing import Generic
@sanchezzzhak
sanchezzzhak / clickhouse-get-tables-size.sql
Created January 18, 2018 13:43
clickhouse get tables size
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 30, 2024 21:07
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@jdmichaud
jdmichaud / 1-zig-cheatsheet
Last active April 30, 2024 21:05
Zig cheatsheet
https://ziglang.org/documentation/master/#Pointers
*T - single-item pointer to exactly one item.
Supports deref syntax: ptr.*
[*]T - pointer to unknown number of items. (eq. of *T in C)
Supports index syntax: ptr[i]
Supports slice syntax: ptr[start..end]
Supports pointer arithmetic: ptr + x, ptr - x
@Aeplexi
Aeplexi / OldPFP.js
Last active April 30, 2024 21:04
Old Headshot
$.ajax({
method: "POST",
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
contentType: "application/json",
data: JSON.stringify({
"camera": {
// Ranges are inclusive.
"distanceScale": 1.15, // 0.5 to 4
"fieldOfViewDeg": 28.797294821013363, // 15 to 45
"xRotDeg": 0, // -20 to 20
@nikolovlazar
nikolovlazar / keybindings.json
Created April 29, 2024 01:12
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@benvsuw
benvsuw / custom-manjaro-kernel.md
Last active April 30, 2024 21:03
Manjaro Custom Kernel for HP Envy 13 with ITHC and Sound Fixes

Custom Manjaro Kernel

I use this configuration to compile a kernel for my HP Envy x360 13-bf0xxx with touchscreen. Touchscreen and pen works, sound partly works.

Setup

Clone these repositories:

git clone https://github.com/quo/ithc-linux.git