save this script as script.js
- install node.js
- npm i cgbi-to-png
- put your files in cgbi_in
- run script.js
- check your files in cgbi_out
import collections, random, sys, textwrap | |
# Build possibles table indexed by pair of prefix words (w1, w2) | |
w1 = w2 = '' | |
possibles = collections.defaultdict(list) | |
for line in sys.stdin: | |
for word in line.split(): | |
possibles[w1, w2].append(word) | |
w1, w2 = w2, word |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <math.h> | |
#define debug(...) | |
//#define debug printf | |
// torus radii and distance from camera |
VERSION = \"1.0.0\" | |
PREFIX ?= out | |
INCDIR = inc | |
SRCDIR = src | |
LANG = c | |
OBJDIR = .obj | |
MODULE = binary_name | |
CC = gcc |
save this script as script.js
#!/usr/bin/env python3 | |
import sys, re | |
from zlib import crc32 | |
from typing import Tuple | |
from PyQt5.QtWidgets import QWidget, QLineEdit, QApplication, QLabel, QVBoxLayout, QHBoxLayout | |
class Calculator(QWidget): | |
def __init__(self): | |
super().__init__() |
// ==UserScript== | |
// @name Stop Wordle! | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Hide all mentions of Wordle from Hacker News feeds! | |
// @author https://github.com/tucnak | |
// @match https://news.ycombinator.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com | |
// @grant none | |
// ==/UserScript== |
// The Most Memory Safe Buffer Overflow in Rust! | |
// | |
// Consider all the code below under Public Domain | |
// | |
// How to build: | |
// $ rustc main.rs | |
// | |
// Wrong password: | |
// $ printf "hello\n" | ./main | |
// |
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
// Bad example | |
interface IRemoteData<T> { | |
result?: T | |
error?: string | |
isLoading: boolean | |
isLoaded: boolean | |
} | |
// Same on OOP |