Skip to content

Instantly share code, notes, and snippets.

View dotkrnl's full-sized avatar

Jason Lau dotkrnl

View GitHub Profile
@dotkrnl
dotkrnl / disk.py
Created March 21, 2017 07:41
2014011307 LAB 8
DISK = [
0x03, 0x0f, 0x01, 0x09, 0x06, 0x05, 0x09, 0x1b, 0x07, 0x14, 0x16, 0x14, 0x05, 0x0a, 0x08, 0x10, 0x1e, 0x06, 0x11, 0x02, 0x0b, 0x1d, 0x1c, 0x02, 0x1a, 0x16, 0x1c, 0x0e, 0x0d, 0x1b, 0x10, 0x17,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x15, 0x08, 0x0b, 0x1a, 0x13, 0x1d, 0x07, 0x00, 0x1a, 0x12, 0x04, 0x07, 0x1d, 0x11, 0x11, 0x17, 0x1b, 0x0c, 0x19, 0x1a, 0x1d, 0x0e, 0x1b, 0x19, 0x0e, 0x16, 0x04, 0x17, 0x0c, 0x19, 0x0a, 0x18,
0x14, 0x1c, 0x0f, 0x0c, 0x0a, 0x1c, 0x1c, 0x13, 0x16, 0x0a, 0x04, 0x1e, 0x14, 0x08, 0x1e, 0x12, 0x0a, 0x1b, 0x02, 0x18, 0x04, 0x03, 0x08, 0x16, 0x12, 0x0d, 0x04, 0x1c, 0x17, 0x15, 0x19, 0x18,
0x0a, 0x01, 0x14, 0x14, 0x14, 0
@dotkrnl
dotkrnl / Export Evernote to Day One 2.scpt
Created December 16, 2016 12:00
Migrate selected Evernote notes to Day One 2. Supports tags. Supports pandoc to convert to markdown. No support for attachments yet. Original version at https://gist.github.com/robrecord/d9418583d0925920f682
(*
Origin from https://gist.github.com/robrecord/d9418583d0925920f682 (veritrope.com)
Export Evernote Items to DayOne
VERSION 0.99
December 4, 2016
// UPDATE NOTICES
** Follow @Veritrope on Twitter, Facebook, Google Plus, and ADN for Update Notices! **
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.0.2'
require 'active_record'
require 'minitest/autorun'
require 'logger'
require 'bigdecimal'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)