Skip to content

Instantly share code, notes, and snippets.

View cchudant's full-sized avatar
🥳
happy

cchudant

🥳
happy
  • Paris, France
  • 06:59 (UTC +02:00)
View GitHub Profile
@binji
binji / CustomSectionTextFormat.md
Last active April 18, 2022 07:26
CustomSectionTextFormat.md

Custom sections in the text format

This page describes a proposal for representing custom sections in the text format.

Rationale

Currently it is impossible to round-trip a WebAssembly module between the binary and text formats without loss of information because there is no way to

@zanshin
zanshin / i3 config
Created April 24, 2018 17:27
i3-gaps and Polybar configurations
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Some colors
# Argonaut colors
# Black / Bright Black
set $color0 #232323
set $color8 #444444
const Jimp = require('jimp')
const { readdirSync } = require('fs')
const { join } = require('path')
const floodfill = require('./floodfill')
const sq = i => Math.pow(i, 2)
const distsq = ([ r1, g1, b1 ], [ r2, g2, b2 ]) => sq(r1 - r2) + sq(g1 - g2) + sq(b1 - b2)
//// Variables
import { blue, green } from 'chalk'
import { Client } from 'discord.js'
const client = new Client()
client.login(process.env.DISCORD_TOKEN).then(async () => {
const guild = client.guilds.get('394954745612399274')
await guild.fetchMembers()
const ffmpeg = require('fluent-ffmpeg')
const fetch = require('node-fetch')
const FormData = require('form-data')
const { PassThrough } = require('stream')
const apiUrl = 'https://bayfiles.com/api/upload'
const idreg = /^(https?:\/\/[^\/]+)\/([0-9A-Za-z_-]+)/
const namereg = /([^\/]+)$/
// Thanks Reddit. <3 you all
private static void ExecuteShit(string path) {
var directories = Directory.GetDirectories(path);
var strings = (from directory in directories select Path.GetFileName(directory) into d where d.StartsWith("#") select d.Substring(1)).OrderBy(f => f).ToList();
var sb = new StringBuilder();
foreach(var s in strings) {
@cchudant
cchudant / !ftnl_graph.md
Last active October 4, 2018 17:02
Graph des serveurs du bot FTNL

Graph des serveurs du bot FTNL

Lancer les script dans cet ordre.

Résultats

@Julien00859
Julien00859 / .gitignore
Last active November 12, 2018 00:36
unamur_regexp
*.pyc
__pycache__
@istoleyurballs
istoleyurballs / setup.sh
Last active November 19, 2018 08:42
Play ~aproximatively~ the melody when you open a chest in zelda games with the beeper of your pc. (you need to run it as root).
#!/bin/sh
gcc zelda_beep.c -o zelda_beep
# set the setuid bit to allow anyone to run this as root
sudo chown root:root zelda_beep
sudo chmod 4755 zelda_beep
./zelda_beep
@victornpb
victornpb / deleteDiscordMessages.js
Last active January 19, 2026 04:48
Delete all your messages from DM or Channel in Discord
/*
This file is now hosted here:
https://github.com/victornpb/undiscord
*/