Skip to content

Instantly share code, notes, and snippets.

@gmpsankalpa
gmpsankalpa / CompleteRecentDiscordQuest.md
Created May 8, 2024 18:45
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:

@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 8, 2024 18:53
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@m-tatsuto
m-tatsuto / Controller.swift
Created November 24, 2016 02:09
Changing tab bar font in Swift3
let appearance = UITabBarItem.appearance()
let attributes = [NSFontAttributeName: UIFont(name: "American Typewriter", size: 20),
NSForegroundColorAttributeName: UIColor.white]
appearance.setTitleTextAttributes(attributes, for: .normal)
@nadavrot
nadavrot / Matrix.md
Last active May 8, 2024 18:53
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@tzmartin
tzmartin / m3u8-to-mp4.md
Last active May 8, 2024 18:52
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
# libraries
import os
import matplotlib.pyplot as plt
import pandas as pd
import textwrap
# load the data
df = pd.read_csv(os.path.join('..', 'data', 'quest.csv'))
# Some questions are rather long. To nicely display them in the figure they need to be wrapped.
@twolfson
twolfson / .gitconfig
Last active May 8, 2024 18:50
Proof of concept to explore merge conflict resolution with SOPS encoded files for https://github.com/mozilla/sops/issues/52
[mergetool "sops-mergetool"]
cmd = ./sops-mergetool.sh "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
@atheiman
atheiman / cfn-no-resources.yaml
Created October 2, 2020 01:22
CloudFormation template with no resources - useful when generating templates and no resources are added to a template.
Conditions:
Never:
Fn::Equals: [a, b]
Resources:
NullResource:
Type: Custom::Null
Condition: Never
@eneko
eneko / list-of-curl-options.txt
Last active May 8, 2024 18:45
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 8, 2024 18:44
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);