Skip to content

Instantly share code, notes, and snippets.

@kbrgl
kbrgl / init.coffee
Created March 30, 2016 21:42
Atom small UI fix
require('web-frame').setZoomFactor(1.5)
# other coffee here
@kbrgl
kbrgl / template.js
Created March 14, 2016 04:18
Simplistic node templates
'use strict';
const render = function(template, mappings) {
for (let mapping in mappings) {
template = template.replace(new RegExp(`\\{\\{\\s?${mapping}\\s?\\}\\}`, 'g'), function (capture) {
if (typeof mappings[mapping] === 'function') {
return mappings[mapping]();
} else {
return mappings[mapping];
}
@kbrgl
kbrgl / kit.sh
Last active April 9, 2016 07:29
Kabir's Installation Tool
#!/bin/bash
# Elevate priviliges
sudo echo "Welcome to Kabir's Installation Tool."
echo "At any point during the installation, you can enter 'e' as your answer to exit."
echo
# Ask user whether they want to install a given program
function yn {
while true; do
@kbrgl
kbrgl / cryptic.bf
Created January 25, 2016 12:41
hint: repl.it
++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>++++++++++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>>>>>.<<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>>.<<<<<<<<<<<<<<>>>>>>>>>>>>>>+++.---<<<<<<<<<<<<<<>>>>>>>++.--<<<<<<<>>>>>>-.+<<<<<<>>>>>>-.+<<<<<<>>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<<>>>>>>--.++<<<<<<>>>>>>>>>>>>>>>+.-<<<<<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<<>>>>>>>>>>>>++.--<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>--.++<<<<<<>>>>>>>>>>>>+++.---<<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<>>>>>>-.+<<<<<<>>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<<>>>>>>>>>>>>+.-<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>+++.---<<<<<<<<<<<<>>>>>>>>>>>>>