Skip to content

Instantly share code, notes, and snippets.

@mrflip
mrflip / BasicInstructions.md
Last active March 28, 2024 12:34
Running debezium and kafka connect locally with homebrew

Running Debezium / Kafka Connect locally with homebrew

Initial setup

  • Install all the things: brew install kafka zookeeper maven openjdk
  • Make a directory for plugins: mkdir -p /usr/local/share/kafka/plugins
  • Edit the file /usr/local/etc/kafka/connect-standalone.properties and uncomment the line setting up a plugin path: plugin.path=/usr/local/share/java,/usr/local/share/kafka/plugins,/opt/connectors
  • Start all the things: brew services start zookeeper and brew services start kafka
@d7samurai
d7samurai / .readme.md
Last active March 28, 2024 12:34
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Also check out Minimal D3D11 pt2, reconfigured for instanced rendering and with a smaller, tighter, simplified overall code structure, or Minimal D3D11 pt3, with shadowmapping + showcasing a range of alternative setup and rendering techniques.

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 12:34
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; // ¯\\_(ツ)_/¯
@voluntas
voluntas / webrtc_sfu_dev.rst
Last active March 28, 2024 12:31
WebRTC SFU コトハジメ

WebRTC SFU コトハジメ

日時

2023-12-03

voluntas

バージョン

2023.1

url

https://voluntas.github.io

この記事が良いと思ったらこの記事に Star をお願いします

@ihor-lev
ihor-lev / sublime_fix_home_end_keys.md
Last active March 28, 2024 12:30
Fix Sublime Text Home and End key usage on Mac OSX

Sublime Text Home/End keys default functionality jumps to the beginning and end of the file.

Fix Home and End keys to move the cursor to the beginning and end of lines.

Preferences > Key Bindings - User

Adding the following to the array:

{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },

Pansharpening notes, mid-2021

First posted in August 2021. This is basically a snapshot of my thinking about pansharpening at that time; I’m not making any substantial updates. Last typo and clarity fixes in February 2023.

Preface

This is a collection of notes on how I’ve been approaching convolutional neural networks for pansharpening. It’s an edited version of an e-mail to a friend who had asked about this tweet, so it’s informal and somewhat silly; it’s not as polished as, say, a blog post would be. It’s basically the advice I would give to an image processing hobbyist before they started working on pansharpening.

If you want a more serious introduction, start with the literature review in Learning deep multiresolution representations for pansharpening. Most of the academic work I would recommend is mentioned there.