Skip to content

Instantly share code, notes, and snippets.

View kerrtravers's full-sized avatar

kerr kerrtravers

View GitHub Profile
@bates64
bates64 / mrk+image.js
Last active March 5, 2018 22:38
Image extension for mrk
const markImage = mrk({
extendPatterns: {
image: ({ read, readUntil }, meta) => {
if (read(2) !== '![') return
// All characters up to `]` are the alt text
const alt = readUntil(']')
if (read(2) !== '](') return
@kerrtravers
kerrtravers / README.md
Last active November 6, 2020 21:30
README template

Title

Desc.

Usage

Title Can be used by...

Features

  • Icons
  • Fonts
@kerrtravers
kerrtravers / print.js
Created October 27, 2017 16:18
Print a page using Javascript
function printPage() {
window.print();
}
@kbrsh
kbrsh / README.md
Last active October 27, 2017 16:28
Slash - Fast, efficient hash

Slash

Fast, efficient hash

Usage

char *str = "Slash";
unsigned long long hash = slash(str);
@mdo
mdo / 00-intro.md
Last active March 24, 2024 08:04
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@SebastianJarsve
SebastianJarsve / Calculator.py
Last active November 18, 2017 19:20
Calculator
from __future__ import division
from scene import *
from math import sqrt, pi
import sound
button_pad = [['ans', 'pi', 'sqrt(', '%'],
['(', ')', '*', '/'],
['7', '8', '9', '-'],
['4', '5', '6', '+'],
['1', '2', '3', '='],
@parse
parse / shell.c
Created May 11, 2011 07:31
Simple shell in C
/* Compile with: g++ -Wall –Werror -o shell shell.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>