Skip to content

Instantly share code, notes, and snippets.

View abraham's full-sized avatar
🍩
donot mind if I do

Abraham Williams abraham

🍩
donot mind if I do
View GitHub Profile
cool
@abraham
abraham / test.txt
Last active December 12, 2024 15:32
orangeorangeorangeorange
require 'uri'
require 'cgi'
require 'json'
known_keys = [
"secret",
"digits",
"period",
]

Test 2

@abraham
abraham / readme.md
Created November 3, 2022 22:06
Public test gist

hello world

@abraham
abraham / enable-print-styles.js
Created September 5, 2018 20:05
Enable CSS that is behind a `@media print` media query
Object.keys(document.styleSheets).forEach(function(styleSheetKey) {
var rules = document.styleSheets[styleSheetKey].rules || {};
Object.keys(rules).forEach(function(ruleKey) {
var media = rules[ruleKey].media;
if (media) {
media.mediaText = media.mediaText.replace('print', 'screen');
}
});
});
import { one, two, pipe } from './utils';
class Main {
public sentence() {
return pipe<string>('word',
addPeriod,
capitalize);
}
}
@abraham
abraham / example.json
Created July 7, 2018 23:25
Split a large JSON file into multiple files
[
{"one":"two"},
{"three":"four"}
]
{
"is_quote_status": true,
"quoted_status": {
"is_quote_status": true,
}
}
@abraham
abraham / belt.txt
Created June 4, 2017 23:39
Factorio 16x2 belt branch blueprint
0eNqlne2uXbeVbN/l/NZp7MVv5lUajYukIwQCHFmQpUYHgd/9Ht8c6XZLe0ujBn8JtuziZK3FNbnJmjX/+fSXXz6//fDx3ftPT3/659O7//z1/W9Pf/r3fz799u5v7//8yx//7tM/Prx9+tPTu09v//705un9n//+xz+9/e8PH9/+9tvzp49/fv/bh18/fnr+y9tfPj39/ubp3fu/vv3vpz9dv//Hm6e37z+9+/Tu7b8Q/98//OP/vP/897+8/fjyH/wM683Th19/e/nff33/RxQvkM/XfPP0j5c/S3kZ56/vPr79z3/9bfv9zXfw5Tv43z788u7Tp5e/uwM8/q2/QtefQ9cIun+FBlG3CLolUXfBd+ORDwFfOfyMiCkJMSuCvpLHuSPoWxL1dROE33jol1ifO4CP1ueKmInW50ye5xWtz+ijcon1OYLIxfpMiInWZ/TduqL1WaPHGa3P6KNSxPIsQXa7gsizwJOFGbFdakxJwkiL0ZPYe8BK9HqXESBHH6syY0aCD0pJlmX0JSw7jjtIPPUWxB3lnZqsyWwfUUtMSZLra5Ixs21KzZdlsi2sybrMtoU1WZjZLr/mKzPZitdkaWY/Imq+NpMfbS1ZnNmPtnbye/P2v/HLPfxygH+B+KvAH0H8TeD3+/h34/9+pX5+/9e3H//28deXP386g28ZevP1WOL9h89/nDt8P+BQA3Y/4Dz4hU0YXAc/sQn+PogfvMH9dhA/wTcrvHB+ulnh1338cQ+/qhe26Be2NzXg5QfsB2cWhMHhzyzAJ7LPg/DJC7x8+ARerO/F2RlieU+++sZlXtal39VRzHjTj1f9+Q+hr/nzHwJ/cHoFXt1xcHpF4MXCDhL3EOu68q/e2OZNrfpNnTczXvPjXf4oDdA3i4cH79bM13XlH93Z9JkaQTd79oMXa+jJkAcx9QEhWOMzX+PBF2RuHTtgZpkF7dfzytdzsE9YRZ96EnSzR/ebgtX0ZMhz7/qgFXxXV76aV4A+deyEmSUes99rLnGqdvH