Skip to content

Instantly share code, notes, and snippets.

fetch(url, fetchOptions)
.then(function(fetchResponse){
if(fetchResponse.ok){
return fetchResponse.json();
} else {
console.log(url + " failed");
displaySearchErrorMessage(fetchResponse.statusText);
}
})
// ==UserScript==
// @name Universal GitHub Tasks
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author https://github.com/BriceShatzer
// @match https://github.com/*
// @grant none
// ==/UserScript==
//basic for loop
for (var i = 0; i < Things.length; i++) {
Things[i]
if(condition){
return; //breaks out
}
}
//Array.forEach version
let things = [1,2,3];
define( 'SVG_instapaper', '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.9356 24.0002"><title>Add to Instapaper</title><path d="M495.2844,421H481.78a5.2379,5.2379,0,0,0-5.2158,5.23v13.54a5.2384,5.2384,0,0,0,5.2158,5.23h13.504a5.2384,5.2384,0,0,0,5.2158-5.23V426.23A5.2379,5.2379,0,0,0,495.2844,421Zm-3.5324,5.9654c-1.2172,0-1.5871.4194-1.5871,0.9633v9.8825c0,0.5445.37,0.9645,1.5871,0.9645v0.8025H485.39V438.776c1.2169,0,1.5871-.42,1.5871-0.9645V427.929c0-.5439-0.37-0.9633-1.5871-0.9633v-0.8019h6.3617v0.8019Z" transform="translate(-476.5646 -421.0003)" fill="#36f"/><path d="M495.2844,421H481.78a5.2379,5.2379,0,0,0-5.2158,5.23v13.54a5.2384,5.2384,0,0,0,5.2158,5.23h13.504a5.2384,5.2384,0,0,0,5.2158-5.23V426.23A5.2379,5.2379,0,0,0,495.2844,421Zm-3.5324,5.9654c-1.2172,0-1.5871.4194-1.5871,0.9633v9.8825c0,0.5445.37,0.9645,1.5871,0.9645v0.8025H485.39V438.776c1.2169,0,1.5871-.42,1.5871-0.9645V427.929c0-.5439-0.37-0.9633-1.5871-0.9633v-0.8019h6.3617v0.8019Z" transform="translate(-476.5646 -421.0003)" fill="#36

Simple table with header

First name Last name
John Doe
  1. ordered list item 1
  2. ordered list item 2
  • plain text
  • in a div
  • table > tr > td
  • in a h1
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
@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

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 / 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>