Skip to content

Instantly share code, notes, and snippets.

View gar's full-sized avatar

Gar Morley gar

View GitHub Profile
@danthegoodman
danthegoodman / Impressions of the ZSA Moonlander.md
Last active December 2, 2021 13:49
Impressions of the ZSA Moonlander

Impressions of the ZSA Moonlander

I bought a ZSA Moonlander keyboard. This article documents my journey to using this keyboard as my daily driver.

Last Update: June 1, 2021

My current configuration: Oryx Layout

Graph of Typing Speed

things I don't know

I took this list from What CS majors should know.

I think it is fun to list things I don't know so I did it =D. I actually found it to be a cool exercise -- maybe I should do a fun graphics project and learn about Open GL!

i wrote this because, while i think the things on this list are potentially worth knowing, and I actually think it's an awesome list of project ideas as well as good food for thought for people developing CS curricula (many of the things I don't know are great exercises!) -- I thought it was really weird to say that every CS student should know all of them. I have a CS degree and I learned very few of the things I do know inside my degree.

I classify "do know" as anything that I have a reasonable grasp of or at least some basic experience with -- the kind of experience I'd expect a CS student to be able to get. If I say I don't know something, it means either I know pretty much nothing about it (for "gr

@jamtur01
jamtur01 / ladder.md
Last active August 20, 2025 19:17
Kickstarter Engineering Ladder
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 17, 2025 19:12
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@basham
basham / css-units-best-practices.md
Last active September 5, 2025 10:49
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

@jrom
jrom / nginx.conf
Created February 7, 2012 17:14
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
@paularmstrong
paularmstrong / a_star.js
Created May 27, 2011 02:33 — forked from jminor/a_star.js
A* path finding algorithm for impactjs game engine
/**
* AStar
*
* Created by Paul Armstrong on 2011-05-26.
* Copyright (c) 2011 Paul Armstrong Designs. All rights reserved.
*
* Based on: https://gist.github.com/827899
*/
ig.module('plugins.a-star')
require 'rubygems'
require 'oauth'
consumer = OAuth::Consumer.new("anonymous",
"anonymous",
{:site => 'https://www.google.com',
:request_token_path => '/accounts/OAuthGetRequestToken',
:access_token_path => '/accounts/OAuthGetAccessToken',
:authorize_path => '/accounts/OAuthAuthorizeToken'})
# change to gem dir for current ruby/gemset
function cdgem {
cd $(rvm gemdir)/gems
cd $(ls | grep $1 | sort | tail -1)
}
# edit gem for current ruby/gemset
function egem {
cd $(rvm gemdir)/gems
mate $(ls | grep $1 | sort | tail -1)
# Command Enhancements
# Utility
alias reload='source ~/bin/dotfiles/bash/aliases'
alias ea='mate -w ~/bin/dotfiles/bash/aliases && reload' # Edit aliases
alias ee="mate ~/bin/dotfiles/bash/env"
alias eb="mate ~/bin"
# Quicker cd
alias cg='cd /Library/Ruby/Gems/1.8/gems/'