Skip to content

Instantly share code, notes, and snippets.

View dayvonjersen's full-sized avatar

dayvonjersen dayvonjersen

View GitHub Profile
@dayvonjersen
dayvonjersen / preview-vim-colors.sh
Last active November 3, 2016 00:58
Use :TOhtml to see what all your colorschemes look like
#!/bin/bash
#
# preview (neo)vim colors
#
# use "~/.vim/colors" and "vim"
# instead of "~/.config/nvim/colors" and "nvim"
#
# IFF you're a nerd and aren't using neovim yet
#
# usage:
@dayvonjersen
dayvonjersen / index.html
Created November 4, 2016 17:44
note to self on javascript mvc
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<title>Index</title>
</head>
<body>
<input type="text" placeholder="gtype suggest">
<ul></ul>
POP3:
telnet example.com 110
USER user
PASS pass
STAT
LIST
RETR 1
DELE 1
@dayvonjersen
dayvonjersen / slices.c
Created August 15, 2018 17:56
C++ For Go Programmers: Part 2 - Slices
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
struct slice {
size_t type;
int len;
int cap;