Skip to content

Instantly share code, notes, and snippets.


FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

balupton /
Last active Jul 17, 2021
Installing ChromiumOS

Install ChromiumOS

  1. Get Chromium OS from one of the following places
    1. Download the vanilla build (old but stable):
      1. NOTE: Password is facepunch
    2. Download the nightly build (sync doesn't work):
      1. NOTE: If you want developer mode, you must change _base_ in the download URL to _test_ as the base image does not have developer tools enabled
      2. NOTE: Password is unknown, instructions for working around this are provided later
      3. NOTE: I could not get syncing working with this build, perhaps due to no API KEYS being provided???
      4. NOTE: I could not move past the welcome screen on the 64bit build due to no network being found (32bit worked)
aparrish / spacy_intro.ipynb
Last active Jul 5, 2021
NLP Concepts with spaCy. Code examples released under CC0, other text released under CC BY 4.0
View spacy_intro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sauloperez / signal_catching.rb
Last active Nov 11, 2020
How to catch SIGINT and SIGTERM signals in Ruby
View signal_catching.rb
# Signal catching
def shut_down
puts "\nShutting down gracefully..."
sleep 1
puts "I have PID #{}"
# Trap ^C
Signal.trap("INT") {
ampedandwired / gist:3385002
Last active Oct 8, 2017
Zip a directory to memory in Ruby. The rubyzip library is pretty hard to use. I tried for ages to figure out how to zip a directory to a string in memory. So here's an example that zips the given directory to a Ruby StringIO object using rubyzip.
View gist:3385002
require 'zip/zip'
def zip(dir)
Zip::ZipOutputStream::write_buffer do |zos|
Dir["#{dir}/**/**"].each do |file|
path_for_file_in_zip = file.sub(/\A#{dir}\//, '')
if !
zip_entry = zos.put_next_entry(path_for_file_in_zip)
zos <<