From 443765ffc73de8ae0ffe9daf7daf32539afeec8c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 21 Nov 2016 17:17:28 -0800 Subject: [PATCH] update TypeKit code, add DNS prefetching, use https for gists --- public/_layout.ejs | 14 +++++--------- .../2010/01/basics-of-the-mach-o-file-format.md | 6 +++--- .../01/working-with-c-style-structs-in-ruby.md | 4 ++-- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/public/_layout.ejs b/public/_layout.ejs index dbea4bd..4216c70 100644 --- a/public/_layout.ejs +++ b/public/_layout.ejs @@ -44,15 +44,11 @@ - + + + + + +

Segments

@@ -82,7 +82,7 @@ e.g. \_\_DATA or \_\_TEXT

The code exposes some more details about segment commands, but should be easy enough to follow.

- +

Sections

@@ -105,7 +105,7 @@ two underscores, e.g. \_\_bss or \_\_text

Finally, the Ruby code describing section structs:

- +

macho.rb

diff --git a/public/posts/2010/01/working-with-c-style-structs-in-ruby.md b/public/posts/2010/01/working-with-c-style-structs-in-ruby.md index ff73f07..1b9da3d 100644 --- a/public/posts/2010/01/working-with-c-style-structs-in-ruby.md +++ b/public/posts/2010/01/working-with-c-style-structs-in-ruby.md @@ -28,11 +28,11 @@ supported by Array#pack is fairly easy to add though. First a quick example and then we'll get into the CStruct class itself. In C you may write the following to have one struct "inherit" from another: - + With CStruct in Ruby that translates to: - + CStructs act like Ruby's built-in Struct to a certain extent. They are instantiated the same way, by passing values to #new in the same order they