Skip to content

Instantly share code, notes, and snippets.

yamamushi / bresenham3d
Created June 20, 2013 15:03
C++ Bresenham 3d Line Drawing Algorithm
// Bresenham3D
// A slightly modified version of the source found at
// Provided by Anthony Thyssen, though he does not take credit for the original implementation
// It is highly likely that the original Author was Bob Pendelton, as referenced here
KeesCBakker / roboflow-main-without-jquery-and-lodash.js
Created October 3, 2022 05:14
Let's remove the jQuery and lodash dependencies from the Roboflow main.js.
/*jshint esversion:6*/
window.addEventListener("load", (event) => {
const video = document.querySelector("video");
var model;
var cameraMode = "environment"; // or "user"
const startVideoStreamPromise = navigator.mediaDevices
<script type="application/ld+json">
"@context": "",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "How to find an apprenticeship?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<p>We provide an official service to search through available apprenticeships. To get started, create an account here, specify the desired region, and your preferences. You will be able to search through all officially registered open apprenticeships.</p>"
tabrindle /
Last active June 15, 2024 07:55
Convert all files in directory to webp, with default params, or standard cwebp params passed from command
PARAMS=('-m 6 -q 70 -mt -af -progress')
if [ $# -ne 0 ]; then
cd $(pwd)

Building Chrome V8 on Windows

In order to be able to build v8 from scratch on Windows for x64, please follow the following steps.

These instructions were updated to work with Windows 11 Build 10.0.22621, but this should also work on WInodws 10

NOTE: While the Chrome team does provide decent documentation, there are some nuances and other additional steps that must be done for v8 to compile on Windows.


timothyham /
Last active June 15, 2024 07:50
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

// cc -w -include time.h -o qlock qlock.c // MIT Copyright (c) Tsoding
char*s="// cc -w -include time.h -o qlock qlock.c // MIT Copyright (c) Tsoding\n"
");else printf(\"%c\",ch);if(ch=='\\n'){y+=1;x=0;}else x+=1;}gd(){time_t t=time(NULL);struct\n"
" tm*tm=localtime(&t);d[0]=tm->tm_hour/10;d[1]=tm->tm_hour%10;d[2]=10;d[3]=tm->tm_min\n"
nimone / Sidebar.jsx
Created June 29, 2023 09:33
Retractable Sidebar Component purely in ReactJS and TailwindCSS
import { MoreVertical, ChevronLast, ChevronFirst } from "lucide-react"
import { useContext, createContext, useState } from "react"
const SidebarContext = createContext()
export default function Sidebar({ children }) {
const [expanded, setExpanded] = useState(true)
return (
<aside className="h-screen">
panchicore / italian-verbs.csv
Created February 18, 2017 09:53
Most important Italian verbs database
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
t18n / tsconfig.json
Last active June 15, 2024 07:40 — forked from vemarav/tsconfig.json
[Example tsconfig.json] Tsconfig.json with description #typescript
"compilerOptions": {
/* Basic Options */
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
] /* Specify library files to be included in the compilation. */,
// "allowJs": true, /* Allow javascript files to be compiled. */