Skip to content

Instantly share code, notes, and snippets.

View benwaffle's full-sized avatar
🍝
best spaghetti in town

Ben Iofel benwaffle

🍝
best spaghetti in town
View GitHub Profile
@ericboehs
ericboehs / slack-classifier-bug-report.md
Last active August 9, 2026 13:57
Slack file-type classifier bug: .md files with line-initial record*/program* words misclassified as Pascal; + any non-ASCII char = Binary

Slack file-type classifier bug: .md files misclassified as Pascal / Binary

This file is a self-demonstrating example. Because it contains a line-initial trigger word plus non-ASCII characters (see the demo line at the bottom), dragging this file into any Slack channel uploads it as "Binary file" with no preview. That IS the bug.

Summary

The file-type classifier applied to uploaded files (rolled out ~June 2026)

@joepie91
joepie91 / index.js
Last active December 17, 2024 10:45
Breaking CloudFlare's "I'm Under Attack" challenge
'use strict';
const parseExpression = require("./parse-expression");
function findAll(regex, target) {
let results = [], match;
while (match = regex.exec(target)) {
results.push(match);
}
@ptomato
ptomato / css.md
Created August 12, 2015 04:27
GTK CSS properties
@Prince781
Prince781 / DoubleBuffering.java
Last active December 22, 2015 19:19
Example double-buffering using Canvas2D; excerpt from Project X.
/*******************************
* Example of double buffering
* in Canvas2D
********************************/
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.util.*;