Code review one person reading over another's code and offering comments, suggestions, and feedback about how it could be improved. Often this is done at companies or in open source projects as a required step before proposed changes can be merged into a
class ConvertToActiveStorage < ActiveRecord::Migration[5.2] | |
require 'open-uri' | |
def change | |
active_storage_blob_statement = ActiveRecord::Base.connection.raw_connection.prepare('active_storage_blob_statement', <<-SQL) | |
INSERT INTO active_storage_blobs ( | |
"key", filename, content_type, metadata, byte_size, checksum, created_at | |
) VALUES ($1, $2, $3, '{}', $4, $5, $6) | |
SQL |
# NewRelic instrumenter for GraphQL-ruby | |
# | |
# In your controller: | |
# ::NewRelic::Agent.add_custom_attributes({ | |
# user_id: @user.try(:id), | |
# query_string: @query_string, | |
# query_arguments: @query_variables | |
# }) | |
# | |
# @document = self.class.trace_execution_scoped(["GraphQL#parse"]) do |
JD Maturen, 2016/07/05, San Francisco, CA
As has been much discussed, stock options as used today are not a practical or reliable way of compensating employees of fast growing startups. With an often high strike price, a large tax burden on execution due to AMT, and a 90 day execution window after leaving the company many share options are left unexecuted.
There have been a variety of proposed modifications to how equity is distributed to address these issues for individual employees. However, there hasn't been much discussion of how these modifications will change overall ownership dynamics of startups. In this post we'll dive into the situation as it stands today where there is very near 100% equity loss when employees leave companies pre-exit and then we'll look at what would happen if there were instead a 0% loss rate.
What we'll see is that employees gain nearly 3-fold, while both founders and investors – particularly early investors – get dilute
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Symbol List</string> | |
<key>scope</key> | |
<string>source.ruby.rakefile.task</string> | |
<key>settings</key> | |
<dict> |
#!/bin/sh | |
# Installing Adobe AIR creates an application called "Adobe AIR Uninstaller" in /Applications/Utilities. | |
# Unfortunately, running this application does not uninstall the application and instead, it seems to | |
# unhelpfully confirm that it's installed (http://twitter.com/modernscientist/status/495388916267384833/photo/1). | |
# The proper way to run this application as an uninstaller is to run the enclosed from the command line | |
# with the flag "-uninstall" as superuser: | |
sudo /Applications/Utilities/Adobe\ AIR\ Uninstaller.app/Contents/MacOS/Adobe\ AIR\ Installer -uninstall |
#!/usr/bin/xcrun swift -i -sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk | |
// | |
// shell.swift | |
// | |
// Shell scripting in Swift, using a proper hashbang and a custom subshell operator. | |
// To run: `chmod +x shell.swift && ./shell.swift`. | |
// | |
// If you edit this in Xcode, ignore the error on the hashbang line. | |
// To play around with this in a playground, comment out the hashbang line. | |
// |
# An example used to segregate DB loading to those specs requiring it only. | |
RSpec.configure do |config| | |
config.include DBHelper::DB, db: true | |
config.include DSL::Setup, db: true | |
config.before(:all, db: true) do | |
DBHelper.load! | |
end |
[ | |
{ "keys": ["super+shift+e"], "command": "use_selection_for_replace"}, | |
{ "keys": ["alt+g"], "command": "next_result"}, | |
{ "keys": ["super+v"], "command": "paste_and_indent"}, | |
{ "keys": ["shift+super+v"], "command": "paste"}, | |
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["super+alt+f"], "command": "replace_next"}, | |
{ "keys": ["super+ctrl+r"], "command": "reveal_in_side_bar"}, |