Skip to content

Instantly share code, notes, and snippets.

@Jgb14002
Jgb14002 / falsehoods-programming-time-list.md
Created September 19, 2022 17:13 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@Jgb14002
Jgb14002 / Event.h
Created December 14, 2020 21:12
Simple C++ EventBus Implementation
#pragma once
#include <unordered_map>
#include <vector>
#include <memory>
#include <typeindex>
struct Event { bool handled = false; };
class EventDispatcher
@Jgb14002
Jgb14002 / private_fork.md
Created June 5, 2019 03:13
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git