Skip to content

Instantly share code, notes, and snippets.

View phivk's full-sized avatar
On a boat

Philo van Kemenade phivk

On a boat
View GitHub Profile
@phivk
phivk / ImageGraph.ipynb
Created September 5, 2022 21:18
Autogenerated from www.imagegraph.cc, My sketch title
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 1. download images from Unsplash
# e.g. using:
# https://addons.mozilla.org/en-US/firefox/addon/save-all-images-webextension/
# https://github.com/splash-cli/splash-cli
# https://github.com/MehediH/Bulksplash
# 2. rename *.jpeg to *.jpg
for f in *.jpeg; do mv "$f" "${f/.jpeg/.jpg}"; done
# 3. resize images into resized folder
@phivk
phivk / chatterpast-story-stylesheet.css
Created June 18, 2022 19:51
Chatterpast Story Stylesheet
.chat-passage-wrapper[data-speaker='Enica']:before {
background-image: url('https://raw.githubusercontent.com/phivk/tolerant-futures/chatterpast/assets/img/avatar-enica.png');
}
.chat-passage-wrapper[data-speaker='Enica'] .chat-passage::before {
color: #5889BC;
}
.chat-passage-wrapper[data-speaker='Maelli']:before {
background-image: url('https://raw.githubusercontent.com/phivk/tolerant-futures/chatterpast/assets/img/avatar-maelli.png');
}
@phivk
phivk / roman-cartoon-avatars.css
Created February 8, 2022 16:34
Roman cartoon avatar styles for Trialogue Story Stylesheet
.chat-passage-wrapper[data-speaker='Enica']:before {
background-image: url('http://celts.phillipmartin.info/girl.png');
background-size: cover;
}
.chat-passage-wrapper[data-speaker='Enica'] .chat-passage::before {
color: orange;
}
.chat-passage-wrapper[data-speaker='Marcus']:before {
background-image: url('http://rome.phillipmartin.info/rome_man.gif');
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
// glc.setMode('single');
// glc.setEasing(false);
var list = glc.renderList,
width = glc.w,
height = glc.h,
@phivk
phivk / happynewyear2020-2021.glc
Created December 26, 2020 16:42
gifloopcoder happy new year gif 2020-2021
function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
// glc.setMode("single");
// glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
@phivk
phivk / vispa-example-response.json
Created January 17, 2020 09:58
example response from VISPA API for Hackalod 2019 'Niet te Vergeten' project
[
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "http://hdl.handle.net/10934/RM0001.COLLECT.682048",
"representation": [
{
"_label": "Rijksmuseum Image API",
"id": "https://lh3.googleusercontent.com/Hm0admc0da4EyU9vR6t-HjbLdV_Cu4Brau_884esPJFwcbvpOtIaywmRIoDKxFom1UlLhdYCiE5V3vs-70kc1Mz8NJc=s400",
"type": "VisualItem"
}
{
"strings": {
"TITLE": {
"sk": "Insurgent of Myjava (sk)",
"en": "Insurgent of Myjava"
},
"SUBTITLE": {
"sk": "Prepare your best volunteer for battle (sk)",
"en": "Prepare your best volunteer for battle"
},
@phivk
phivk / SketchSystems.spec
Created February 15, 2019 10:40
Insurgent of Myjava
Insurgent of Myjava
Landing
choose volunteer -> CharacterSelection
gallery -> Gallery
CharacterSelection
UI-CS
next -> CharacterCustomisation
home -> Landing
help -> Modal-CS
Modal-CS
@phivk
phivk / SketchSystems.spec
Last active August 28, 2018 22:45
# duplicate state demo
# duplicate state demo
Animation Player
Animation 1
button press -> Animation 2
1 Playing
timer -> 1 Ended
1 Ended
Animation 2
button press -> Animation 1
2 Playing