Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tail Wag Games zacharycarter

🏠
Working from home
  • Tail Wag Games LLC
  • Austin, Texas
View GitHub Profile
View ijss.h
/* clang-format off */
/*
ijss : IncredibleJunior SparseSet
sparse set [1] for bookkeeping of dense<->sparse index mapping or
a building block for a simple LIFO index/handle allocator
[1] https://research.swtch.com/sparse
*/
View math.nim
type
Handness = enum
hLeft,
hRight
NearFar = enum
nfDefault,
nfReverse
Vec3 = object
View dungeon_keeper_crunch.txt
JONTY HERE : ...I AM WRITING THIS AT 4AM ON KEEPERS LAST DAY. I LOOK AROUND
THE OFFICE AND ALL I SEE ARE THE TIRED PALE FACES OF THE KEEPER TEAM. THIS
PROJECT HAS DESTROYED THE HEALTH AND SOCIAL LIVES OF EACH MEMBER, SO I HOPE
YOU LIKE THE GAME. AMAZINGLY AFTER SIXTEEN HOURS A DAY, 7 DAYS A WEEK, FOR
NEARLY 5 MONTHS WE STILL DO. THIS GAME HAS BEEN WRITTEN WITH A PASSION I AM
PROUD TO BE PART OF....
I DO NOT JUST HOPE YOU LIKE IT, I ALSO HOPE YOU ARE AWARE OF THE HUGE AMOUNT
OF WORK WE HAVE ALL DONE. ENOUGH WAFFLE AND ON TO THE REASON FOR THIS TEXT...
View autodup.nim
import asyncdispatch
import asynctools
import docopt
import json
import nre
import os
import ospaths
import sequtils
import sha256/sha256sum
import strutils
View orthodoxc++.md

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

View RAII.nim
{.experimental.}
type Refcounted = ref object
rc: int
value: int
type A = object
r: Refcounted
proc newA(value: int): A =
View console.log
<div>
<h1>Hello, World!</h1>
<h2>It is 8:44:27 PM.</h2>
</div>
tagged_template_literal.js:908:3
<div>
<h1>Hello, World!</h1>
<h2>It is 8:44:28 PM.</h2>
</div>
tagged_template_literal.js:908:3
View fail.nim
type
CircAlloc* [Size: static[int] , T] = tuple # Better less overhead
baseArray : array[Size,T]
index : uint16
type
Job = object of RootObj
var foo {.threadvar.}: CircAlloc[1,Job]
@zacharycarter
zacharycarter / carousel.nim
Created Jul 13, 2018
karax component issue
View carousel.nim
View nimble_install.log
zobsd$ ./koch nimble
git clone https://github.com/nim-lang/nimble.git dist/nimble
Cloning into 'dist/nimble'...
remote: Counting objects: 3137, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 3137 (delta 16), reused 15 (delta 4), pack-reused 3099
Receiving objects: 100% (3137/3137), 1.07 MiB | 2.65 MiB/s, done.
Resolving deltas: 100% (1943/1943), done.
git checkout -f master
Already on 'master'