Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Replace investors.com stylesheet with local copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @run-at document-start
// @match http://www.investors.com/*
// @match http://www.dev7investors.com/news*
// @grant none

First, I would need to weigh the opportunity cost of performing the task myself vs outsourcing it to a service provider (laundry mat, app/service, dry cleaner). To find that opportunity cost, I would multiply the estimated amount of time that it would take to complete the task in its entirety by what I feel is the current value of my time. This "current value of my time" is an amalgamation of multiple, context specific factors (e.g. my professional hourly rate, how imminent the need for clean cloths/a specific garment is, the value & urgency of other tasks that could be accomplished). If the opportunity cost of performing the task myself is greater than the cost of outsourcing it to a service provider, then it should be outsourced.

If it is determined that the task should be performed by me, I would start by first separating the laundry into piles of like colors. Then each pile would be subjected to the following process, with each pile going through the process completely prior to the next pile beginning

@BriceShatzer
BriceShatzer / answer.md
Last active January 11, 2017 01:08
js answer explanation

The two functions they provide are basically identical, with the only difference being the comparison that they are making. Hopefully talking through an example use of one, step by step will help...

So lets say we have an example array of numbers that look like this [7,12,5].

When we call the max() function and pass that array of number into it like this:

max( [7,12,5] );

// or this:
@BriceShatzer
BriceShatzer / final.html
Created January 23, 2017 02:16
Small agency password management question & answer
<html>
<h3>Question:</h3>
<p>Looking for advice for the small web agency that I work for. There's five of us so were a small team and want to set mature processes in place while we are still small. We would like to improve our security in regards to user access management.</p>
<p>We're looking at a scenario where we may need to revoke an employee's access to multiple client sites and access to subscriptions like Moz, etc. We have approximately 40+ client sites which each designer has access to via a CMS login like Wordpress or Drupal.</p>
<p>Any thoughts on the topic or examples of how your organization handles user access management?</p>
<hr>
<h3>Answer:</h3>
<em>TL;DR:</em>
<ul>

Unfortunately it doesn't, because they're literally identical analogies and you're saying that they're different. Lets try swapping Christian & Mormon/Hindu beliefs in your explanation:

Abortion is against my religion
(Consuming coffee/tea & beef is against Mormon/Hindu religion)

Some of my tax dollars are given to Planned Parenthood to fund abortions
(Some of Mormon/Hindu followers tax dollars are given to SNAP to fund the consumption of beef & coffee/tea)

That is forcing me and other Christians to participate in this act, against our will and religious beliefs
(That is forcing Mormons/Hindus to participate in this act, against their will and religious beliefs)

@BriceShatzer
BriceShatzer / CSS-Color-Transition.md
Last active January 25, 2017 19:38
SO question that I might turn into an article

How is CSS transition of color calculated and what effect does using 3-digit vs 6-digit hex values have on that transition?

is there a difference between CSS transition of color when using 3-digit vs 6-digit hex values

Does

MacBook Pro (Retina, 15-inch, Mid 2015)
2.8 GHz Intel Core i7
16 GB 1600 MHz DDR3
AMD Radeon R9 M370X 2048 MB
500 GB SSD
  1. ordered list item 1
  2. ordered list item 2
  • plain text
  • in a div
  • table > tr > td
  • in a h1