Skip to content

Instantly share code, notes, and snippets.

View tjk's full-sized avatar

TJ Koblentz tjk

View GitHub Profile
@tjk
tjk / main.c
Created October 13, 2012 03:03 — forked from jroesch/pizza.hs
ACM Micro-Challenge 1
int
num_pizzas(unsigned int num_people, unsigned int slices_per_pizza, unsigned int time)
{
unsigned int num_slices;
num_slices = num_people;
if (11 <= time && time <= 22)
num_slices *= 2;
return (int)(num_slices / (float)slices_per_pizza + 1);
}
@tjk
tjk / GitHub-Forking.md
Created December 1, 2016 02:58 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your

@tjk
tjk / iterm2-solarized.md
Created December 29, 2021 19:18 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k