Skip to content

Instantly share code, notes, and snippets.

View TheNoim's full-sized avatar
🏠
Working from home

Nils Bergmann TheNoim

🏠
Working from home
View GitHub Profile
@TheNoim
TheNoim / trig.scss
Last active March 13, 2019 20:21 — forked from kamikat/trig.scss
SCSS/SASS module calculating sin/cos/tan using Taylor Expansion.
///////////////////////////////////////////////////////////////////////////////////
// Plain SASS Trigonometry Algorithm in Taylor Expansion //
// //
// Based on //
// http://japborst.net/posts/sass-sines-and-cosines //
// + http://thesassway.com/advanced/inverse-trigonometric-functions-with-sass //
///////////////////////////////////////////////////////////////////////////////////
$pi: 3.14159265359;
$_precision: 10;
@TheNoim
TheNoim / pushbullet.sh
Last active January 7, 2018 12:27 — forked from outadoc/pushbullet.sh
Pushbullet bash script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
fs.readFile(path, function (err, contents) {
if(err) callback(err, null);
r.db('db').table('images').insert({
user: name,
file: contents,
elo: 1000
}).run();
})