Skip to content

Instantly share code, notes, and snippets.

View wolfiex's full-sized avatar

Dan Ellis wolfiex

View GitHub Profile
@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
'''
@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 / 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 / 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 / OpenGraph.svelte
Last active July 18, 2022 11:45
Svelte Sharable Content
<script>
import {onMount} from 'svelte';
export let title = '';
export let description = '';
export let url = '';
export let image = '';
export let type = 'article';
export let print = false;
@wolfiex
wolfiex / getcss.py
Created June 21, 2022 00:20
Extract CSS from url
# headless browser
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
import re
url = 'myurl.com'
querySelect = 'section'
@wolfiex
wolfiex / sim.py
Created May 19, 2022 21:59
Simulate Dataset
'''
A script to generate a synthetic dataset replacing the original one.
Author: danielellisresearch.com
'''
# !pip install synthia pandas
import pandas as pd
@wolfiex
wolfiex / tiletools.py
Last active June 8, 2022 13:24
Map-Tile Tools in Python
'''
A collection of Tile tools in python.
Author: Daniel Ellis 2022
Contact: daniel.ellis.research (a-t) gmail (dot) com
Article: https://medium.com/p/e54de570d0bd
'''
import mpmath as mp
@wolfiex
wolfiex / CSS811.ino
Created May 5, 2021 13:34
CSS811 example
/***************************************************************************
This is a library for the CCS811 air
This sketch reads the sensor
Designed specifically to work with the Adafruit CCS811 breakout
----> http://www.adafruit.com/products/3566
These sensors use I2C to communicate. The device's I2C address is 0x5A