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);
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<T20> | |
<信道参数列表> | |
<信道数据 | |
信道号="1" | |
接收频率="430.12500" | |
发射频率="430.12500" | |
亚音解码="67.0" | |
亚音编码="67.0" | |
发射功率="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
A script to generate a synthetic dataset replacing the original one. | |
Author: danielellisresearch.com | |
''' | |
# !pip install synthia pandas | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
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 |
NewerOlder