Skip to content

Instantly share code, notes, and snippets.

View adamveld12's full-sized avatar
🏠
Working from home

Adam Veldhousen adamveld12

🏠
Working from home
View GitHub Profile
@adamveld12
adamveld12 / markdown.css
Last active October 20, 2021 00:22
Github flavored markdown css.
@font-face {
font-family: octicons-anchor;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAYcAA0AAAAACjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABwAAAAca8vGTk9TLzIAAAFMAAAARAAAAFZG1VHVY21hcAAAAZAAAAA+AAABQgAP9AdjdnQgAAAB0AAAAAQAAAAEACICiGdhc3AAAAHUAAAACAAAAAj//wADZ2x5ZgAAAdwAAADRAAABEKyikaNoZWFkAAACsAAAAC0AAAA2AtXoA2hoZWEAAALgAAAAHAAAACQHngNFaG10eAAAAvwAAAAQAAAAEAwAACJsb2NhAAADDAAAAAoAAAAKALIAVG1heHAAAAMYAAAAHwAAACABEAB2bmFtZQAAAzgAAALBAAAFu3I9x/Nwb3N0AAAF/AAAAB0AAAAvaoFvbwAAAAEAAAAAzBdyYwAAAADP2IQvAAAAAM/bz7t4nGNgZGFgnMDAysDB1Ml0hoGBoR9CM75mMGLkYGBgYmBlZsAKAtJcUxgcPsR8iGF2+O/AEMPsznAYKMwIkgMA5REMOXicY2BgYGaAYBkGRgYQsAHyGMF8FgYFIM0ChED+h5j//yEk/3KoSgZGNgYYk4GRCUgwMaACRoZhDwCs7QgGAAAAIgKIAAAAAf//AAJ4nHWMMQrCQBBF/0zWrCCIKUQsTDCL2EXMohYGSSmorScInsRGL2DOYJe0Ntp7BK+gJ1BxF1stZvjz/v8DRghQzEc4kIgKwiAppcA9LtzKLSkdNhKFY3HF4lK69ExKslx7Xa+vPRVS43G98vG1DnkDMIBUgFN0MDXflU8tbaZOUkXUH0+U27RoRpOIyCKjbMCVejwypzJJG4jIwb43rfl6wbwanocrJm9XFYfskuVC5K/TPyczNU7b84CXcbxks1Un6H6tLH9vf2LRnn8Ax7A5WQAAAHicY2BkYGAA4teL
@adamveld12
adamveld12 / github.css
Last active August 29, 2015 14:18 — forked from andyferra/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@adamveld12
adamveld12 / heroku_example.tf
Last active April 2, 2018 12:57
GoLang Heroku Terraform
# Heroku Terraform Example
# A terraform file for setting up a heroku app. I recommend you do `terraform plan -out=plan` to see what it would do before running `terraform apply`.
# If you would like to tear down the app, just run `terraform destroy`.
variable "heroku_api_key" {
default = "api key here"
description = "Your Heroku api key"
}
variable "email" {
@adamveld12
adamveld12 / LICENSE.txt
Last active August 29, 2015 14:16 — forked from jed/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@adamveld12
adamveld12 / comments.md
Last active April 5, 2024 17:13
Go Code Review Comments

Go Code Review Comments

This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.

You can view this as a supplement to http://golang.org/doc/effective_go.html.

Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.

Programming Best Practices Tidbits

A Collection of quotes and paraphrases for developers from around the web.

Use your own judgment in their application.


Unix philosophy

  • Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new features.
@adamveld12
adamveld12 / tinywm.c
Last active January 16, 2022 02:09
tinyWM annotated source. In case you want to make a window manager for linux. More deets here: http://stackoverflow.com/questions/1811321/building-a-window-manager
/* TinyWM is written by Nick Welch <mack@incise.org>, 2005.
*
* This software is in the public domain
* and is provided AS IS, with NO WARRANTY. */
/* much of tinywm's purpose is to serve as a very basic example of how to do X
* stuff and/or understand window managers, so i wanted to put comments in the
* code explaining things, but i really hate wading through code that is
* over-commented -- and for that matter, tinywm is supposed to be as concise
* as possible, so having lots of comments just wasn't really fitting for it.
@adamveld12
adamveld12 / Maya.json
Last active August 29, 2015 14:14
Go Advenure Games
{
"name": "Super Maze",
"meta": {
"author": "Anurag Jain & Arvind Ravulavaru",
"email": " *anurag91jain@gmail.com & arvind.ravulavaru@gmail.com",
"tagline": "A Simple Text based Adventure game written in Javascript",
"welcome": "Welcome to Maya - A pilot written to test the text based adventure game engine written in Javascript. The aim of the game is to find the exit gate and leave the maze."
},
"rooms": [{
"room1": {
#!/bin/sh
# OPTIONAL FLAGS:
#
# -geoip true
# this will install maxmind geoip and auto update crontab file
#
# -cloudwatch true
# this will install aws cloud watch metrics and send them to aws dashboard
#
@adamveld12
adamveld12 / IniFile.cs
Created December 27, 2014 18:30
INI File DOM - Loads, creates and modifies INI files. Useful for games
/// <summary>
/// An Ini file implementation/DOM
/// </summary>
public class IniFile
{
private readonly IDictionary<string, Section> _sections = new Dictionary<string, Section>();
/// <summary>
/// The key for a section of the INI file that isn't in a section block
/// </summary>