Skip to content

Instantly share code, notes, and snippets.

View FlorianWendelborn's full-sized avatar
🇺🇦

Florian Wendelborn FlorianWendelborn

🇺🇦
View GitHub Profile
@Isokaeder
Isokaeder / higher-order-functions.js
Last active April 10, 2024 10:56
eslint rule to find higher order functions
module.exports = {
meta: {
type: 'problem',
fixable: null,
schema: [],
},
create(context) {
function checkForHigherOrderFunction(node) {
if (
(node.type === 'ArrowFunctionExpression' ||
@Nitroholic
Nitroholic / mappings.json
Last active January 2, 2024 15:21
Profile Mappings
{
"achievement_spawned_island_types" : "player_data.achievement_spawned_island_types",
"active_effects" : "player_data.active_effects",
"autopet" : "pets_data.autopet",
"backpack_contents" : "inventory.backpack_contents",
"backpack_icons" : "inventory.backpack_icons",
"bank_account" : "profile.bank_account",
"bank_history" : "profile.bank_history",
"candy_inventory_contents" : "shared_inventory.candy_inventory_contents",
"coin_purse" : "currencies.coin_purse",

This for loop:

for (let i = 0, getI = () => i; i < 3; i++)
  console.log(getI());

unrolls to:

@janpio
janpio / timescaledb-quickstart-node-prisma.md
Last active March 4, 2024 03:40
Quick Start: Node, Prisma and TimescaleDB

Quick Start: Node, Prisma and TimescaleDB

Goal

This quick start guide is designed to get the Node.js developer up and running with TimescaleDB as their database.

Pre-requisites

To complete this tutorial, you will need a cursory knowledge of the Structured Query Language (SQL). The tutorial will walk you through each SQL command, but it will be

@GavinRay97
GavinRay97 / guide.md
Last active January 4, 2022 05:38
Configuring Nuxt for Composition API and TSX Support

Main

EDIT: DO NOT USE THIS. THIS WAS FROM WHEN ALL OF THIS WAS NEW/EXPERIMENTAL AND NOT OFFICIALLY SUPPORTED. PLEASE SEE THE LINK BELOW FOR THE PROPER, EASIER INTEGRATION NOWADAYS =)

Use create-nuxt-app and enable the Typescript related options to scaffold a new boilerplate TS Nuxt repo:

yarn create nuxt-app 
@LeaPhant
LeaPhant / - hypixel skyblock stuff
Last active March 5, 2023 03:50
Hypixel SkyBlock stuff
collecting some data about skyblock here
import math
from moviepy.editor import concatenate, ImageClip
import os
import platform
import subprocess
import random
import torch
# pip install pytorch-pretrained-biggan
from pytorch_pretrained_biggan import (BigGAN, truncated_noise_sample, convert_to_images)
import numpy as np
@acutmore
acutmore / README.md
Last active January 21, 2024 20:30
Emulating a 4-Bit Virtual Machine in (TypeScript\JavaScript) (just Types no Script)

A compile-time 4-Bit Virtual Machine implemented in TypeScript's type system. Capable of running a sample 'FizzBuzz' program.

Syntax emits zero JavaScript.

type RESULT = VM<
  [
    ["push", N_1],         // 1
    ["push", False],       // 2
 ["peek", _], // 3
@robere2
robere2 / hypixel-tag-calculator.js
Last active November 29, 2023 03:18
Calculates the currently displayed player tag on the Hypixel Network, given a response from the API
const ranks = {
"ADMIN": [
[
'c',
"[ADMIN]"
]
],
"MODERATOR": [
[
'2',
@alexkrauss
alexkrauss / gitlab-timeline.html
Created August 16, 2018 07:17
Timeline charts for Gitlab build jobs
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// This is a quick hack to be able to see Gantt-like Timelines of gitlab build pipelines.
// It makes it easier to diagnose the running time of the pipelines and understand resource usage.
// Ideally, gitlab would directly provide such a view in its frontend.
google.charts.load('current', {'packages':['gantt']});