Skip to content

Instantly share code, notes, and snippets.

View tcoppex's full-sized avatar
🥝
ᐳ ᐁ ᓯ

Thibault Coppex tcoppex

🥝
ᐳ ᐁ ᓯ
  • France
View GitHub Profile
@tcoppex
tcoppex / async_dl.cc
Created December 2, 2017 14:32
Simple async case for 'curl for people'
#include <cpr/cpr.h> // https://github.com/whoshuu/cpr
#include <iostream>
static const char* sURL = "https://www.google.fr";
void async_result() {
auto fr = cpr::GetAsync(
cpr::Url{sURL}
, cpr::VerifySsl{false}
);
@tcoppex
tcoppex / greasemonkey_youtube_filters.js
Last active April 4, 2018 13:53
GreaseMonkey script to remove unused links from Youtube main page.
// ==UserScript==
// @name YouTube Spam Filters
// @namespace Youtube Scripts
// @description Remove unused links from Youtube's front page.
// @match *://www.youtube.com/*
// @grant GM_addStyle
// @run-at document-idle
// @icon http://www.youtube.com/favicon.ico
// ==/UserScript==
@tcoppex
tcoppex / .bashrc
Created April 13, 2018 09:13
Some bash utilities.
# retrieve the total number of CPU minus one to avoid stall.
export NUM_CPU=$((`grep -c ^processor /proc/cpuinfo`-1))
@tcoppex
tcoppex / ruler_80_vs.reg
Last active April 14, 2021 12:59
Add a colored ruler on column 80 on Visual Studio
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\Text Editor]
"Guides"="RGB(128,192,128) 80"
@tcoppex
tcoppex / DHALF.TXT
Created July 4, 2020 10:57
[1991] Everything you ever wanted to know (for the time being) about digital halftoning, or dithering.
DHALF.TXT
June 20, 1991
Original name: DITHER.TXT
Original date: January 2, 1989
=====================================
ORIGINAL FOREWORD BY LEE CROCKER
@tcoppex
tcoppex / c_nostd.txt
Last active May 3, 2024 13:58
Writing C software without the standard library [Linux Edition] - Franc[e]sco's Gopherspace
###################################################################
Writing C software without the standard library
Linux Edition
###################################################################
There are many tutorials on the web that explain how to build a
simple hello world in C without the libc on AMD64, but most of them
stop there.
I will provide a more complete explanation that will allow you to
build yourself a little framework to write more complex programs.
255 250 250 snow
248 248 255 ghost white
248 248 255 GhostWhite
245 245 245 white smoke
245 245 245 WhiteSmoke
220 220 220 gainsboro
255 250 240 floral white
255 250 240 FloralWhite
253 245 230 old lace
253 245 230 OldLace
@tcoppex
tcoppex / OxmanMaedaGold.md
Created November 20, 2020 16:13
Neri Oxman's krebs cycle of creativity

neri-oxmans-krebs-cycle-of-creativity

{
"selector": "source.cpp",
"working_dir": "$folder",
"shell_cmd": "make -j7 Release && make RunRelease;"
}