Skip to content

Instantly share code, notes, and snippets.

View gmtcrary's full-sized avatar
🎯
Focusing

George Takumi Crary gmtcrary

🎯
Focusing
View GitHub Profile
jq -c '.queue | _nwise(10) ' hugeComboQueue.json | awk '{f=NR".json";} {print "{\"mode\": \"queue\", \"replay\": \"\", \"isRealTimeMode\": false,
\"outputOverlayFiles\":true, \"queue\" : $0 }" >f; close(f)}'
@gmtcrary
gmtcrary / JdeJavaJulianDateTools.java
Created December 9, 2022 23:52 — forked from trplll/JdeJavaJulianDateTools.java
JD Edwards Julian and Java Date Conversions
package com.trplcd.jdejava;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class JdeJavaJulianDateTools {
public static class Methods {
/**
@gmtcrary
gmtcrary / default.nix
Created November 18, 2022 23:41 — forked from knedlsepp/default.nix
custom unixodbc
let
pkgs = import <nixpkgs> {};
unixODBC-cache = pkgs.stdenv.mkDerivation {
name = "unixODBC-cache";
src = pkgs.fetchurl {
url = "ftp://ftp.intersystems.com/pub/cache/odbc/2014/cache.2014.1.3.ODBC-lnxrhx64.tar.gz";
sha256 = "0rgmpac45q126capd32gyhxk0pjjyg9kad5gqs9k0iyj022csxl8";
};
sourceRoot = "bin";
installPhase = ''
@gmtcrary
gmtcrary / Makefile
Created November 14, 2021 14:43 — forked from dradtke/Makefile
Hello World example for Allegro.
CC := gcc
CFLAGS := -g -Wall
LIBS := -lallegro
SOURCES := $(shell find src/ -type f -name "*.c")
OBJECTS := $(SOURCES:.c=.o)
TARGET := game
all: $(SOURCES) $(TARGET)
$(TARGET): $(OBJECTS)
@gmtcrary
gmtcrary / type-systems.txt
Created November 11, 2021 01:42 — forked from dicej/type-systems.txt
Type system learning notes
Classes
* Keith Devlin - Introduction to Mathematical Thinking - https://www.coursera.org/learn/mathematical-thinking
* Michael Genesereth - Introduction to Logic - https://www.coursera.org/learn/logic-introduction
* Robert Harper - Homotopy Type Theory - http://www.cs.cmu.edu/~rwh/courses/hott/
Books and Articles
* Benjamin C. Pierce - Types and Programming Languages - https://www.cis.upenn.edu/~bcpierce/tapl/
* x775 - Introduction to Datalog - https://x775.net/2019/03/18/Introduction-to-Datalog.html
* Bartosz Milewski - Category Theory For Programmers - https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/
* Benjamin C. Pierce et al. - Software Foundations - https://softwarefoundations.cis.upenn.edu/
@gmtcrary
gmtcrary / erik-meijer-books.md
Created August 18, 2021 03:46
Erik Meijer’s List of Recommended Books

Erik Meijer’s List of Recommended Books

  1. Logic and Computation: Interactive Proof with Cambridge LCF (Cambridge Tracts in Theoretical Computer Science)
  2. Mathematical Theory of Programme Correctness (Prentice-Hall International series in computer science)
  3. The Haskell School of Expression: Learning Functional Programming through Multimedia
  4. LaTeX: A Document Preparation System (2nd Edition)
  5. Denotational Semantics
  6. Denotational Semantics: The Scott-Strachey Approach to Programming Language Theory
  7. Programs and Machines
  8. The Denotational Description of Programming Languages: An Introduction
#[derive(Copy, Clone)]
pub struct Wall{
full : bool,
color : Color
}
pub fn main() {
let render_statics = |buffer: &mut [u8], pitch: usize| {
let world : &Vec<Vec<Wall>> = &w;
println!("{}", pitch);
for y in 0..600 {
@gmtcrary
gmtcrary / index.html
Created October 3, 2017 08:39
SVG Text Clip with Gradient & GIF
<div class="logbox">
<div class="text-wrap">
<svg viewBox="0 0 500 210">
<pattern
id="p-img"
viewBox="0 0 400 165"
patternUnits="userSpaceOnUse"
width="100%" height="100%"
>
<image xlink:href="https://thumbs.gfycat.com/IdioticWebbedAmurratsnake-small.gif" width="500" height="210"/>