Skip to content

Instantly share code, notes, and snippets.

View denpatin's full-sized avatar
🐷
己亥

Den Patin denpatin

🐷
己亥
View GitHub Profile
@denpatin
denpatin / cpu.rb
Created September 28, 2017 22:51
Simple CPU
# Main class for emulating the simplest CPU
class CPU
attr_reader :al, :ah, :ax
attr_writer :registers
def initialize
@al = 0
@ah = 0
@ax = 0
end
@denpatin
denpatin / Gemfile
Created June 25, 2020 05:21 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@denpatin
denpatin / day08.cr
Created December 9, 2021 12:59
Day 08 (AoC 2021)
class Day08
getter displays : Array(Array(Array(String)))
def initialize(input)
@displays = input.map &.split("|").map(&.split)
end
def part1
result = 0
@denpatin
denpatin / keybase.md
Created February 15, 2022 17:05
Keybase

Keybase proof

I hereby claim:

  • I am denpatin on github.
  • I am denpatin (https://keybase.io/denpatin) on keybase.
  • I have a public key ASDOmSh6Y07KDGmMx2isV8IUAHCbPc9Baox8_jjlBVI-BQo

To claim this, I am signing this object:

# frozen_string_literal: true
source 'https://rubygems.org'
gem 'nokogiri'
gem 'rubocop', require: false