Skip to content

Instantly share code, notes, and snippets.

View KiaraGrouwstra's full-sized avatar
💁‍♀️

Kiara Grouwstra KiaraGrouwstra

💁‍♀️
  • BIJ1
  • Utrecht, the Netherlands
  • 20:27 (UTC +02:00)
View GitHub Profile
@KiaraGrouwstra
KiaraGrouwstra / calendar.js
Last active April 3, 2021 21:01
calendar links
// https://npm.runkit.com/calendar-link
const { google, outlook, office365, yahoo, ics } = require("calendar-link");
const event = {
start: "2021-12-31 18:00:00 +0200",
duration: [1, "hour"],
title: "",
location: "",
description: "",
@KiaraGrouwstra
KiaraGrouwstra / abc_intro.md
Last active March 1, 2021 01:34
keezer's quest

Dit is een samenvatting van de content van Arjan Lubach's Keezer's quest, gepresenteerd bij Zondag met Lubach. Ik vond deze content in een javascript file, die ik vervolgens wat voor leesbaarheid bewerkt heb (zie scriptje) om hier in yaml formaat te presenteren, voor wie graag alles wil kunnen lezen zonder honderd keer te moeten spelen. :) De content is in spreadsheet formaat (partij vs partij) tevens hier te vinden.

@KiaraGrouwstra
KiaraGrouwstra / spotify.md
Last active February 24, 2021 14:15
spotify clone brainstorm

author-friendly spotify clone

observation: if users wanted not to compensate authors, they already could, so the goal is to facilitate fair reward rather than combat piracy.

  • UI: clones aplenty
  • payment models
    • simple: Payment Request API
      • crypto not standardized into this particular API yet, so far just fiat handlers (cc, banks, apps)
      • recurring payments not standardized in an API yet
  • for cheapskates: ad-based
@KiaraGrouwstra
KiaraGrouwstra / mhw-moves.cypher
Created January 28, 2021 19:10
analyzing Monster Hunter World combos using graph database Neo4J
// clean db
MATCH(n) DETACH DELETE n;
// flowcharts: https://www.reddit.com/r/MonsterHunter/search?q=flow%20chart&restrict_sr=1
// motion values: https://www.reddit.com/r/MonsterHunter/comments/7v0pp3/mhworld_motion_values_compiled/
// motion frames: ???
// Long Sword
CREATE
@KiaraGrouwstra
KiaraGrouwstra / audiobook.sh
Last active February 6, 2021 14:51
creating a video from an image plus audio files
# assumptions: audio files in .flac, no other flac files, named alphabetically
# cut to part of a recording
ffmpeg -ss mm:ss -to mm2:ss2 -i in.flac -codec copy out.flac
# replace a segment
ffmpeg -to mm:ss -i in.flac -codec copy pre.flac; ffmpeg -ss mm2:ss2 -i in.flac -codec copy post.flac; ffmpeg -f concat -safe 0 -i <( for f in {pre,replacement,post}.flac; do echo "file '$(pwd)/$f'"; done ) -c copy out.wav; flac out.wav; rm pre.flac; rm post.flac; rm out.wav
# get chapter timestamps for youtube
for song_file in *.flac; do echo $song_file; done
duration=0; total=0; rounded=$total; hours=0; mins=0; secs=0; for song_file in *.flac; do rm -f tmp.wav; echo "$hours:$(printf "%02d\n" $mins):$(printf "%02d\n" $secs)"; flac -d -o tmp.wav $song_file > /dev/null 2>&1; duration=`soxi -D tmp.wav`; total=`echo "$total + $duration" | bc`; rounded=`printf "%.*f\n" "" "$total"`; hours=`expr $rounded / 3600`; mins=$((`expr $rounded / 60` - $hours * 60)); secs=$(($rounded - $hours * 3600 - $mins * 60)); done; rm -f tmp.wav
@KiaraGrouwstra
KiaraGrouwstra / nl-trans-politics.md
Last active January 19, 2021 23:07
trans/queer rechten in politieke partij programma's

zoekende op transgender/trans/lhbt...

niet genoemd

enige lhbt mention is "geen speciale LHBTI-convenanten"

paar mentions mbt discriminatie

@KiaraGrouwstra
KiaraGrouwstra / linkedin-dark.css
Last active January 11, 2021 22:19
linkedin dark theme for use with stylus/stylish browser extensions
/*
==UserScript==
@name LinkedIn - dark
@description This is a black and very dark gray LinkedIn style with a lot of attention to detail. Like the rest of my styles, it's just a basic change of paint without any major remodeling.
@author Kete, Kiara Grouwstra
@homepage https://gist.github.com/KiaraGrouwstra/4c6b93d1593de22a28f834be8c5f3565
@include http://linkedin.com/*
@include https://linkedin.com/*
@include http://*.linkedin.com/*
@include https://*.linkedin.com/*
type AnnotatedMatrix = {
matrix: number[][];
invertible: boolean;
square: boolean;
symmetric: boolean;
positive_definite: boolean;
semi_definite: boolean;
full_rank: boolean;
}
// invertMatrix :: a < AnnotatedMatrix { invertible: true } :: a -> a
programming language as closer to math
no (unencapsulated*) mutation (immutable)
recursion
no (unencapsulated*) side effects (io)
no operators, everything is a (pure mathematical referentially transparent) function (lambda calculus)
* limitations can be either used by best practice (non-pure languages) or enforced (compiler can use for optimization, type guarantees)
strong guarantees
easily testable (referential transparency, short functions)
compiler is your friend: strongly typed: encapsulate anything in types
pk; system new cinereal
pk; system description cinereal system
pk; system tag [cinereal system]
pk; system timezone Europe/Amsterdam
pk; system avatar https://media.discordapp.net/attachments/606576460936904726/779666734642233374/makeup-filter.jpg
pk; member new chiara
pk; member chiara pronouns she/they
pk; member chiara color #ffffff
pk; member chiara displayname kiara 輝愛来