Skip to content

Instantly share code, notes, and snippets.

View haayhappen's full-sized avatar
🤪
whatuuppppp

Fynn Merlevede haayhappen

🤪
whatuuppppp
View GitHub Profile
@haayhappen
haayhappen / marked.js
Created July 2, 2021 08:45
Marked custom extension not working
import marked from 'marked'
const variable = {
name: 'variable',
level: 'block',
start (src) { return src.match(/\{{(.*?)}}/g)?.index },
tokenizer (src, tokens) {
const rule = /\{{(.*?)}}/g
const match = rule.exec(src)
@haayhappen
haayhappen / devops_borat.dat
Created October 13, 2021 11:24 — forked from textarcana/devops_borat.dat
The wisdom of Devops Borat (RIP, may Taichi Ohno himself carry him into Valhalla!) condensed in fortune cookie format without any @ messages included. Just the goofiest random shit :)
I remember very clear I cry when I finish volume 3 of Knuth.
%
I am work on CSS SQL.
%
First sign of depression in devops is denial: you start of ignore Nagios alert.
%
In devops language is not success unless is another language++.
%
In devops you are addict to graph if first thought after orgasm is send duration and intensity to Graphite.
%
@haayhappen
haayhappen / safe_spreading_object_properties.js
Created January 12, 2022 14:35
How to spread truthy values into an object
const one = 'one'
const two = null
const three = {
...(one && { one }),
...(two && { two })
}
console.log(three)
@haayhappen
haayhappen / 📊 Weekly development breakdown
Last active April 5, 2022 12:22
Weekly dev breakdown
JavaScript 10 hrs 19 mins ██████████░░░░░░░░░░ 54.5%
Vue.js 6 hrs 55 mins ███████░░░░░░░░░░░░░ 36.5%
Text 28 mins █░░░░░░░░░░░░░░░░░░░ 2.5%
SQL 21 mins █░░░░░░░░░░░░░░░░░░░ 1.9%