Skip to content

Instantly share code, notes, and snippets.

View DrFrankenstein's full-sized avatar
💻
Compiling...

Carl Tessier DrFrankenstein

💻
Compiling...
View GitHub Profile
@DrFrankenstein
DrFrankenstein / directions.md
Last active November 11, 2021 20:12
How to get to canFURence 2021 by car

The Delta Hotel Ottawa City Centre's street address is: 101 Lyon Street North, Ottawa, ON K1R 5T9.

  • The main entrance is on Lyon Street (one-way SB) between Albert (one-way WB) and Queen (two-way) Streets.
  • There are two doors with pick-up/drop-off zones: a main one on Lyon, and a side one on Albert. Both are accessible from Albert ONLY, as the Lyon one is on property goes opposite from traffic.
  • There is a parking garage on-site, with an entrance on Queen street.

Via 417 Eastbound (from points south and west: 401, 416, 7, 17, Toronto, Central/Southern/Northern Ontario and U.S.A.)

  • Take Exit 120 to Kent Street.
  • Continue straight past Catherine Street.
  • Skip the next section.
@DrFrankenstein
DrFrankenstein / Yakuza.comp
Created January 25, 2021 21:31
Yakuza character title for Fusion
Composition {
CurrentTime = 73,
RenderRange = { 0, 299 },
GlobalRange = { 0, 299 },
CurrentID = 81,
HiQ = true,
PlaybackUpdateMode = 0,
Version = "DaVinci Resolve 17.0.0b.0018",
SavedOutputs = 0,
HeldTools = 0,
@DrFrankenstein
DrFrankenstein / CppProperties.json
Last active January 7, 2021 00:32
Build and run single-file C/C++ programs in Visual Studio
{
"configurations": [
{
"inheritEnvironments": [
"msvc_x64"
],
"name": "x64-Debug",
"includePath": [
"${workspaceRoot}\\..\\..\\Microsoft\\vcpkg\\installed\\x64-windows\\include",
"${env.INCLUDE}",
@DrFrankenstein
DrFrankenstein / launch.json
Last active December 10, 2020 06:41
build files
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "clang++ - Générer et déboguer le fichier actif",
"type": "cppdbg",
"request": "launch",
@DrFrankenstein
DrFrankenstein / aoc1.f77
Last active July 29, 2019 20:47
First AoC problem in Fortran
PROGRAM AOC1 000010AA
IMPLICIT NONE 000020AA
C --------DECLARATIONS--------------------------------------------- 000030AA
CHARACTER :: C 000040AA
INTEGER :: STATUS, FLOOR, STEP 000050AA
LOGICAL :: BASEMENT 000060AA
C --------STATEMENTS----------------------------------------------- 000070AA
BASEMENT = .FALSE. 000080AA
FLOOR = 0 000090AA
STEP = 0 000100AA
@DrFrankenstein
DrFrankenstein / strsep.c
Last active February 26, 2019 00:51
C String splitting examples
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
void split_in_two(const char* input)
{
// we first make a copy of the input. We don't have to,
// but strsep operates by overwriting the delimiter in the
// input string, and I want to keep it clean.
// you can remove that step if you're okay with trashing
(module
(import "console" "log" (func $console_log (param $val i32)))
(export "pe1" (func $pe1))
(func $pe1
(result i32)
(local $n i32)
(local $sum i32)
(set_local $sum (i32.const 0))
(set_local $n (i32.const 3))
@DrFrankenstein
DrFrankenstein / whyyyyy.cxx
Created November 7, 2017 16:32
Exception-based isEven in C++. >;D
#include <limits>
#include <exception>
class OverflowException : public std::exception
{
};
struct SafeInt
{
int n;
@DrFrankenstein
DrFrankenstein / main.cpp
Last active November 25, 2016 18:19
Formatting with iostreams
#include <iostream>
#include <string>
#include <array>
#include <iomanip>
#include <numeric>
using namespace std;
struct Item
{