Skip to content

Instantly share code, notes, and snippets.

View guidoschmidt's full-sized avatar
🦩
🦎

Guido Schmidt guidoschmidt

🦩
🦎
View GitHub Profile
@guidoschmidt
guidoschmidt / irc.md
Created December 9, 2022 19:39 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@guidoschmidt
guidoschmidt / hide-scrollbars.css
Created October 28, 2022 13:01
Hide Scrollbars
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollable::-webkit-scrollbar {
display: none;
}
.scrollable {
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
@guidoschmidt
guidoschmidt / reset.css
Created October 24, 2022 21:29
reset.css for Interface + Interaction 2022/23 @ FH Bielefeld
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
@guidoschmidt
guidoschmidt / css
Created October 31, 2021 11:29 — forked from mateuszkocz/css
Disable image smoothing. Comes in handy when creating pixel-art game. The pixels will stay sharp.
/* You can aslo add */
canvas {
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
}
@guidoschmidt
guidoschmidt / print-shops.md
Last active March 24, 2023 15:50
buy art from living artists, the dead don't need the money
@guidoschmidt
guidoschmidt / verification
Created August 29, 2021 08:44
tzprofiles.com/github Verification
I am attesting that this GitHub handle guidoschmidt is linked to the Tezos account tz1Z9s59QUmYTs4NKf48uHhcgeY5wimpFWiX for tzprofiles
sig:edsigtYWSFbSE2FP5mFP9r1gAkJCQYqSf9myVdLQbVCuiQJt2JkZZkcxc49MSpoqSPotg6vhzzua18ixWoSXbQ969dbDC2pkYq2
@guidoschmidt
guidoschmidt / ObjectPool.js
Created March 16, 2021 09:06 — forked from mattdesl/ObjectPool.js
object pooling for zero-allocation JS game dev
// Modified version of ECSY's ObjectPool, see here:
// https://github.com/ecsyjs/ecsy/blob/dev/src/ObjectPool.js
const ret = (e) => e;
const und = () => undefined;
export default class ObjectPool {
static isObjectPool = true;
constructor(opt = {}) {
@guidoschmidt
guidoschmidt / hic_et_nunc_basic_scraper.py
Created March 11, 2021 12:21 — forked from schwittlick/hic_et_nunc_basic_scraper.py
This is a very basic no-frills scraper to retrieve the metadata and digital assets from all tokens minted on hicetnunc.xyz. I share this as a starting point for people who want to experiment with building alternative views on the works created on the platform or preserve the data. Feel free to improve upon this or add additional features.
import requests
import os
import ipfsapi
import concurrent.futures
api = ipfsapi.Client(host='https://ipfs.infura.io', port=5001)
url = "https://better-call.dev/v1/contract/mainnet/KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton/tokens"
r = requests.get(url)
@guidoschmidt
guidoschmidt / EnvironmentSphere.js
Created February 16, 2021 08:53
three.js fake env map
import * as THREE from "three";
// Local imports
import levelLogic from "@common.js/logic/logic.level.js";
import webGLLogic from "@common.js/logic/logic.webgl.js";
import assetLogic from "@common.js/logic/logic.assets.js";
class EnvironmentSphere {
constructor(filepath, radius = 60) {
console.assert(
@guidoschmidt
guidoschmidt / gs.sh
Created December 11, 2020 10:54 — forked from esrever10/gs.sh
gstreamer send and receive h264 rtp stream
# linux send h264 rtp stream:
gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
# Macos send h264 rtp stream:
gst-launch-1.0 -v avfvideosrc capture-screen=true ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
# receive h264 rtp stream:
gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink