Skip to content

Instantly share code, notes, and snippets.

View Gemfile
source 'https://rubygems.org'
gem 'grpc', '~> 1.0.0'
# prerelease protobuf magic
git 'git@github.com:google/protobuf.git', tag: 'v3.0.0' do
gem 'google-protobuf'
end
group :development, :test do
View melville.txt
This file has been truncated, but you can view the full file.
WHITE-JACKET.
CHAPTER I.
THE JACKET.
View water-salt-lead.md

Background

This article asserts that consuming Himalyan salt, which clocks in with lead content at 100 ppb, is incredibly dangerous. The supplied evidence is that water with lead content of 5 ppb is declared unsafe, so obviously the salt must be unsafe as well.

Here are some calculations:

Salt:

  • The FDA recommends consuming no more than 2300 mg per day, but many sites cite them as saying 3400. People like salt; let's use the higher number!
    • 3400mg per day
View .ruby-style.yml
AllCops:
Exclude:
- "vendor/**/*"
- "db/schema.rb"
UseCache: false
Style/CollectionMethods:
Description: Preferred collection methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
Enabled: true
PreferredMethods:
View sync-linters.sh
#!/bin/bash
for d in {essential-apps,essential-baseline,essential-gem,essential-payments}
do
echo "configuring linters for $d:"
for config in {.hound.yml,.ruby-style.yml}
do
echo "$config"
cp "essential-service/$config" "$d"
done
echo
View struct_accessors.rb
require 'yaml'
class Base < Struct.new(:base_id)
def doit
puts 'i have %s' % self.base_id
end
end
class Thing < Base
attr_accessor :foo
View input.txt
This file has been truncated, but you can view the full file.
19,miles_davis_kind_of_blue,purchase
19,daft_punk_discovery,purchase
19,radiohead_ok_computer_limited_edition,purchase
19,neutral_milk_hotel_in_the_aeroplane_over_the_sea,purchase
19,arcade_fire_neon_bible,purchase
20,acdc_back_in_black,purchase
30,fleetwood_mac_rumors,purchase
30,black_sabbath_paranoid,purchase
32,miles_davis_kind_of_blue,purchase
@abscondment
abscondment / input.txt
Created Jun 10, 2015
Sample mahout/spark input
View input.txt
19,miles_davis_kind_of_blue,purchase
19,daft_punk_discovery,purchase
19,radiohead_ok_computer_limited_edition,purchase
19,neutral_milk_hotel_in_the_aeroplane_over_the_sea,purchase
19,arcade_fire_neon_bible,purchase
20,acdc_back_in_black,purchase
30,fleetwood_mac_rumors,purchase
30,black_sabbath_paranoid,purchase
32,miles_davis_kind_of_blue,purchase
32,black_sabbath_paranoid,purchase
@abscondment
abscondment / PhD-Octopus.md
Created Apr 2, 2015
The PhD Octopus, by William James
View PhD-Octopus.md

Excerpted from Memories and Studies at Project Gutenberg.

I. THE PH.D. OCTOPUS[1]

Some years ago we had at our Harvard Graduate School a very brilliant student of Philosophy, who, after leaving us and supporting himself by literary labor for three years, received an appointment to teach English Literature at a sister-institution of learning. The governors of this institution, however, had no sooner communicated the appointment than they made the awful discovery that they had enrolled

View gist:48269323db4adb80c9e5
Verifying that +abscondment is my Bitcoin username. You can send me #bitcoin here: https://onename.io/abscondment
You can’t perform that action at this time.