Skip to content

Instantly share code, notes, and snippets.

View deanturpin's full-sized avatar
:octocat:

Definition of Dean deanturpin

:octocat:
View GitHub Profile
@deanturpin
deanturpin / asana.csv
Created October 8, 2019 21:20
A curated list of yoga poses
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 6 columns, instead of 5. in line 9.
Transliteration,Sanskrit,English,Description,Type,Variation
"Sukhasana, Yogasana, Svastikasana","सुखासन, स्वस्तिकसन","Auspicious, Lucky mark",,Warm up,
"Siddhasana, Muktasana, Siddha Yoni Asana","मुक्तासन, सिद्धासन","Liberated, Accomplished, The Adept's Pose",Seated cross-legged with knees down,Warm up,
Shavasana,शवासन,Corpse,,Warm up,"Butterfly legs, buttterfly legs and arms, reverse corpse (lying on the front)"
"Pavan Muktasana, apanasana",,Wind Release pose,Supine with knees to chest,Warm up,
"Ardha Pavan Muktasana, apanasana",,Half Wind Release pose,Supine with one knee to chest,Warm up,
Ananda Balasana,,"Happy Baby, stirred up",,Warm up,Straight legs
Jathara Parivartanasana,ञटर परिवर्तनासन​,Belly twist,Lie on back and windscreen wiper the legs over to one side,Warm up,Cat tail: hold trailing foot
Makarasana,मकरासन,Crocodile,Supine with elbows down and supporting head in hands,Warm up,
"Bidalasana, Marjariasana / Bitilasana","बिडालासन, मार्जरीआसन",Cat / Cow,On all fours arch back upwards then downwards,Kn
@deanturpin
deanturpin / gist:e76991fd2fc045628ef51bcddd1116e1
Last active August 28, 2019 09:31
Building a Jekyll site using Docker on a local dir
```
cd my-jekyll-site
sudo docker run -it -p 4000:4000 --rm --entrypoint /bin/bash -v $PWD:/srv/jekyll jekyll/jekyll
jekyll serve
```
@deanturpin
deanturpin / install.md
Created August 27, 2019 12:37
install Jekyll and nginx
```bash
sudo ufw enable
sudo ufw allow 8080
sudo ufw status
```
const std::map<double, std::string> notes{
// Catch all for lower bound search
{0.0, "Bx"},
// All the notes we're interested in. At the low end a single Fourier bin
// will map to multiple notes. Further up multiple bins will be assigned
// the same note.
{16.35, "C0"},
{17.32, "C#0"},
Technology Gigabits/s Category
USB 1.1 0.012 Peripheral
ADSL2+ 0.024 Broadband
HSPA+ 0.042 Mobile
Bluetooth 5.0 0.05 Wireless
LTE 0.173 Mobile
DOCSIS 3.0 (Virgin fibre) 0.216 Broadband
VME64 32-64bit 0.4 Bus
USB 2.0 0.48 Peripheral
1 Gb Ethernet 1 LAN
#include <iostream>
#include <vector>
struct fax {
~fax() {
static size_t i = 0;
std::cout << ++i << " dtor\n";
}
};
# Create Google Cloud instance using Ubuntu 16 LTS
# Tick Allow HTTP traffic and Allow HTTPS traffic
# Launch SSH web browser
# Paste the following
# Just agree to stuff and have a root password ready
# Based on this
# https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/
sudo apt update && \
@deanturpin
deanturpin / read-wav.sh
Created June 17, 2019 10:29
Extracting and plotting a WAV in bash
#!/bin/bash
[[ $# == 1 ]] && count=$1 || count=750
# Fetch some samples
nibbles=8
readarray samples < <(xxd -cols $nibbles -plain -s 42 -len $(( nibbles * count )))
# Loop through samples
i=0
# Garmin
https://connect.garmin.com/modern/proxy/download-service/files/wellness/2019-06-13
# Cryptocurrencies
https://min-api.cryptocompare.com/data/histominute?fsym=ZRX&tsym=USD&limit=1999