Skip to content

Instantly share code, notes, and snippets.

View turbo's full-sized avatar

Pierre turbo

View GitHub Profile
@CMCDragonkai
CMCDragonkai / http_streaming.md
Last active April 25, 2024 17:19
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

@ocornut
ocornut / imgui_node_graph_test.cpp
Last active April 23, 2024 19:02
Node graph editor basic demo for ImGui
// Creating a node graph editor for Dear ImGui
// Quick sample, not production code!
// This is quick demo I crafted in a few hours in 2015 showcasing how to use Dear ImGui to create custom stuff,
// which ended up feeding a thread full of better experiments.
// See https://github.com/ocornut/imgui/issues/306 for details
// Fast forward to 2023, see e.g. https://github.com/ocornut/imgui/wiki/Useful-Extensions#node-editors
// Changelog
// - v0.05 (2023-03): fixed for renamed api: AddBezierCurve()->AddBezierCubic().
CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french );
ALTER TEXT SEARCH CONFIGURATION fr ALTER MAPPING
FOR hword, hword_part, word WITH unaccent, french_stem;
CREATE TEXT SEARCH CONFIGURATION en ( COPY = english );
ALTER TEXT SEARCH CONFIGURATION en ALTER MAPPING
FOR hword, hword_part, word WITH unaccent, english_stem;
CREATE TEXT SEARCH CONFIGURATION de ( COPY = german );
ALTER TEXT SEARCH CONFIGURATION de ALTER MAPPING
@mikesigs
mikesigs / DeleteExcludedFiles.ps1
Last active May 10, 2023 11:40
PowerShell Script to Find (and delete) all excluded files in a Visual Studio Solution
<#
.SYNOPSIS
Find all files excluded from a Visual Studio solution with options to delete.
.DESCRIPTION
Finds all excluded files in all projects in the provided Visual Studio solution with options to delete the files.
.PARAMETER Solution
The path to the .sln file
@Nottt
Nottt / compile-opus.sh
Last active September 20, 2022 18:33
Compile Opus-Tools in Ubuntu 18.04
#!/bin/bash
# Install opus-tools
# Latest releases: opus 1.3.1, opus-tools 0.2, opusfile 0.11, libopusenc 0.2.1
set -e
set -o pipefail
# Install packages needed
apt update > /dev/null 2>&1 && apt install -y curl libflac-dev > /dev/null 2>&1

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they

@ConorOBrien-Foxx
ConorOBrien-Foxx / WeArePPCG.js
Last active February 6, 2022 06:57
A userscript to redesign the PPCG website
// ==UserScript==
// @name favicon
// @namespace Cᴏɴᴏʀ O'Bʀɪᴇɴ
// @version 1
// @grant none
// ==/UserScript==
function qS(x){
return document.querySelector(x);
}
@coolaj86
coolaj86 / github-pages-https-lets-encrypt.md
Last active November 16, 2021 22:36
Github Pages: Let's Encrypt!
@MattDiesel
MattDiesel / AuParse.au3
Created June 12, 2013 22:08
AutoIt parser written in AutoIt.
#cs
Syntax Tree Usage:
The syntax tree is a flat array of "branches". The branches can point to each other by referencing
the child branches index. In a simplistic way, the following tree:
1
/ \
@lateralusX
lateralusX / mono-build-64-bit-cygwin.txt
Last active November 1, 2018 18:13
Build Mono on Windows with 64-bit cygwin.
For 32-bit cygwin see current description on web page,
http://www.mono-project.com/docs/compiling-mono/windows. Bellow instructions apply to 64-bit cygwin
building 32 and 64-bit mono using mingw.
Install prerequisite:
• A working GIT environment is assumed (GIT can also be installed using chocolatey if needed).
• Visual Studio 2015.