Skip to content

Instantly share code, notes, and snippets.

View csarven's full-sized avatar
👽
https://csarven.ca/#i

Sarven Capadisli csarven

👽
https://csarven.ca/#i
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active May 10, 2024 17:16
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@Gargron
Gargron / mastodon-e2e.md
Last active May 20, 2023 05:13
Mastodon E2EE implementation guide

Mastodon E2EE implementation guide

You need the crypto OAuth scope. Check if there is a way for you to use Olm for your programming language / platform. Using libsignal should be possible but has not been tested.

Step 1: Setting up the device/app

Use Olm to generate the device keypairs and a set of one-time keys. Decide on what the device will be called publicly (this can be changed any time). Also generate a random device ID, this can be a number or a string as long as it's securely random.

There are two device keypairs: The Curve25519 key that we call the identity key, and the Ed25519 key that we call the fingerprint key, which is used for signing and verifying that other keys belong to the same device.

@XlogicX
XlogicX / games.md
Last active April 27, 2024 12:22
List of Boot Sector Gamers

Boot Sector Games

A list of playable boot sector games, most of which are on github. Fun to play, great to learn from. There are also many cool non-booting boot sectors out there that aren't games (so more like demos), but this page is just reserved to interactive boot sectors / games. This list is also not complete, but not on purpose, it is a best effort collection of games, so if you know of any fun boot sector games, please contribute.

This page lists a collection of 31 games spanning several authors: nanochess, me, daniel-e, shikhin, JulianSlzr, XanClic, QiZD90, darkvoxels, guyhill, w-shackleton, egtzori, VileR, ish_works, franeklubi, queso_fuego, franeklubi, Jethro82, waternine9, tevoran, palma3k, taylor-hartman. peterferrie should also be mentioned as he has touched a lot of these games.

TetrOS

https://github.com/daniel-e/tetros

Tetris Clone. Full color, no score. This was one of the older boot sector games out there. ![tetros](https://gist.github.com/assets/1570856/3a0d1023-cbe6-4b4d-

@dauwhe
dauwhe / toast.md
Last active May 6, 2024 05:08
Are Web Standards Toast?

Are Web Standards Toast?

I find myself in a tempest in a toaster. Yesterday I (and much of the web standards world) learned about two possible new HTML elements proposed by Google, std-toast and std-switch. I had no idea what “toast” meant in the context of the web, a problem shared my many other people. It turns out it’s a UI pattern, those little notices that pop up and then disappear without user interaction.

But wow, new HTML elements! This is the holy grail. In my part of the web we don’t even dream about new HTML elements. Oh, we’ve tried, but Hixie didn’t much care for footnote, WICG didn’t much care for list titles, and no one much cared about author. Just last week the author of the extensible web manifesto warned me to never expect new HTML elements, due to the difficulty of changing the parser.

But my concern wasn’t so much about the nature of the new elements, but of how we learned about them and what that says about how web standardization works. My [first tweet](https://twitter.com

@namedgraph
namedgraph / WebAlgebra.md
Last active May 9, 2023 08:32
A denotational semantics for CRUD operations on RDF datasets

RDF quads

S = I ∪ B

P = I

O = I ∪ B ∪ L

anonymous
anonymous / .block
Created November 28, 2017 00:27
Force-Directed Graph
license: gpl-3.0
height: 600
@stain
stain / count.sh
Last active November 1, 2017 15:41
Mentions of words like "http" or Web" in 250 PDFs submitted to WWW2018 Web Content Analysis, Semantics, and Knowledge track
for a in $(find . -name '*pdf') ; do
pdf2txt $a > $a.txt;
done
find . -name '*txt' | xargs grep -c http | cut -d : -f 2 > http
find . -name '*txt' | xargs grep -c doi.org | cut -d : -f 2 > doi.org
find . -name '*txt' | xargs grep -ci web | cut -d : -f 2 > web
find . -name '*txt' | xargs grep -ci www | cut -d : -f 2 > www
find . -name '*txt' | xargs grep -ci mining | | cut -d : -f 2 > mining
find . -name '*txt' | xargs wc -l | grep -v total$ | awk -e '{print $1}' > lines
@rhiaro
rhiaro / inbox.php
Created August 13, 2017 13:50
Basic LDN receiver. Help yourself. See: https://rhiaro.co.uk/2017/08/diy-ldn
<?
/*
Copyright 2017 Amy Guy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@tomasklapka
tomasklapka / webid_gen.sh
Last active October 5, 2019 12:06
WebID generation bash script (requires openssl)
#!/bin/bash
BITS=2048
DIR=./out
if grep -q 'webid_generator' /etc/ssl/openssl.cnf; then
echo "WEBID_GEN: Found webid_generator configuration section in /etc/ssl/openssl.cnf"
else
echo "WEBID_GEN: Section webid_generator is missing in /etc/ssl/openssl.cnf. Add this configuration section manually:
@stain
stain / iswc2017-review-167.md
Last active December 16, 2019 11:44
Peer review of ISWC 2017 Resources Track submission #167