Skip to content

Instantly share code, notes, and snippets.

View lordfeck's full-sized avatar
⚔️
training combat

Lord Feck lordfeck

⚔️
training combat
View GitHub Profile
@brakkum
brakkum / ytmndText.js
Last active July 8, 2025 20:45
A function that creates old-school YTMND style text within a given HTML element. You supply the text, element to use, and distance from top of page in px.
ytmndText = (text, el_id = "zoom_text", top = 250) => {
let text_box = document.getElementById(el_id);
for (let i = 1; i <= 30; i++) {
let color_val = i === 30 ? 0 : i * 8;
let text_shadow = i === 30 ? "-1px 0 white, 0 1px white, 1px 0 white, 0 -1px white" : "none";
let new_div = `
<div
style="
@aras-p
aras-p / preprocessor_fun.h
Last active December 5, 2025 05:33
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"