Skip to content

Instantly share code, notes, and snippets.

BLACK => "\033[30m",
RED => "\033[31m",
GREEN => "\033[32m",
YELLOW => "\033[33m",
BLUE => "\033[34m",
PURPLE => "\033[35m",
CYAN => "\033[36m",
WHITE => "\033[37m",
# background color

Optlam.js - 3.4 million IPS

// ~~~~~~~~~~~~~~~~~~~~~~ Optlam.js ~~~~~~~~~~~~~~~~~~~~~~
// An optimal λ-calculus normalizer written in JavaScript.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Optlam.js is a simple, optimal (in Levy's sense) λ-calculus evaluator using
// interaction nets. It is, currently, as far as I know, the fastest
// implementation of functions in the world. It uses Lamping's Abstract
// Algorithm - that is, the so called (and problematic) "oracle" is avoided
@kevinSuttle
kevinSuttle / meta-tags.md
Last active May 12, 2024 15:28 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
package main
import (
"bytes"
"encoding/binary"
"fmt"
"io"
"math/rand"
"net"
"strings"
@JunhongXu
JunhongXu / download.py
Last active May 12, 2024 15:24
A Python script downloading all ICLR and NIPS papers from openreview.net
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import requests
import os
def download_all_papers(base_url, save_dir, driver_path):
driver = webdriver.Chrome(driver_path)
@Varneon
Varneon / VRCSdkControlPanelWorldBuilder_ValidationStripping.md
Last active May 12, 2024 15:23
How to speed up VRCSDK - Worlds control panel by disabling redundant scene checks

How to speed up VRCSDK - Worlds control panel by disabling redundant scene checks

This guide shows you how to make VRCSDK faster by disabling scene checks considered redundant by many advanced world creators who just want the SDK to do its job, which is building and uploading the content they create to VRChat.

⛔ Follow this guide at your own risk! Please do not proceed if you do not consider yourself an advanced world creator and/or you are not familiar with VRChat's inner workings. ⛔

All changes in this guide will be made in the following file: Packages\com.vrchat.worlds\Editor\VRCSDK\SDK3\VRCSdkControlPanelWorldBuilder.cs, so go ahead and open it in your favourite code editor and let's get started!

⚠️ This guide applies to VRCSDK version 3.6.0

Be careful with applying these changes to different versions of the VRCSDK, double check what you're about to disable

@raffy-ops
raffy-ops / hvac_pause.yaml
Last active May 12, 2024 15:22
HA HVAC Pause Blueprint
#ver. 1.7
blueprint:
name: HVAC Pause V1.7
description: Pauses HVAC when windows/doors open; resumes last state once closed
domain: automation
source_url: https://gist.github.com/raffy-ops/2bdf967036d8d274fb1f62572ed5e545
input:
climate_device:
description: Climate entity used for climate control.
name: Climate Device
@pmkay
pmkay / top-brew-packages.txt
Last active May 12, 2024 15:20 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@jcgillespie
jcgillespie / running-tailscale-on-ubiquiti-usg.md
Last active May 12, 2024 15:19
Running Tailscale on Ubiquiti USG

You will need ssh access to your USG. I suggest running sudo su so you're the root user throughout

Installation

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your USG's processor.
curl https://pkgs.tailscale.com/stable/tailscale_1.36.1_mips64.tgz | tar xvz -C /tmp
mv /tmp/tailscale_1.36.1_mips64 /config/tailscale
//
// SignatureAnimation.swift
// OpenSwiftUIAnimations
//
// Created by Amos Gyamfi on 11.5.2024.
//
import SwiftUI
struct SignatureAnimation: View {