Skip to content

Instantly share code, notes, and snippets.

View wolfiex's full-sized avatar

Dan Ellis wolfiex

View GitHub Profile
@wolfiex
wolfiex / BF-31 default frequencies img
Created September 4, 2022 18:57
Baofeng W31 factory settings
<?xml version="1.0" encoding="utf-8"?>
<T20>
<信道参数列表>
<信道数据
信道号="1"
接收频率="430.12500"
发射频率="430.12500"
亚音解码="67.0"
亚音编码="67.0"
发射功率="1"
@wolfiex
wolfiex / git.js
Last active August 2, 2023 06:57
Fetch files from github.
/* Author: Daniel Ellis 2022 */
export async function getgit (owner, repo, path) {
// A function to fetch files from github using the api
let data = await fetch (
`https://api.github.com/repos/${owner}/${repo}/contents/${path}`
)
.then (d => d.json ())
.then (d =>
@wolfiex
wolfiex / GLSL-Noise.md
Created December 1, 2022 11:22 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

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);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@wolfiex
wolfiex / GLSL-Noise.md
Created December 1, 2022 11:22 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

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);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@wolfiex
wolfiex / nmrm.py
Created February 1, 2023 12:25
Script to node_modules from a computer.
'''
nmrm.py
A script to remove node modules folders on Unix-like machines.
Author: Daniel Ellis
code @ danielellisresearch . com
Installation:
pip3 install cutie halo numpy
'''