Skip to content

Instantly share code, notes, and snippets.

View zAlbee's full-sized avatar

Albert Choi zAlbee

  • Vena Solutions
  • Toronto
View GitHub Profile
@zAlbee
zAlbee / magic
Created January 3, 2014 16:39
magic for file command (5.13)
#------------------------------------------------------------------------------
# $File: acorn,v 1.5 2009/09/19 16:28:07 christos Exp $
# acorn: file(1) magic for files found on Acorn systems
#
# RISC OS Chunk File Format
# From RISC OS Programmer's Reference Manual, Appendix D
# We guess the file type from the type of the first chunk.
0 lelong 0xc3cbc6c5 RISC OS Chunk data
@zAlbee
zAlbee / Q_1Vestigium.java
Created April 5, 2020 16:43
Code Jam 2020 Qualification Round solutions (75 points)
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
/**
* 2020-Q. Vestigium
* @author Albert Choi
*/
public class Q_1Vestigium {
@zAlbee
zAlbee / R1A_1PatternMatching.java
Created April 11, 2020 04:13
Code Jam 2020 - Round 1A solutions (33 points)
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
/**
* 2020-R1A. Pattern Matching - solves Test Sets 1 and 2 (one asterisk only)
* @author Albert Choi
*/
public class R1A_1PatternMatching {