I realized that I kept assembling lists of URLs to just send people, so I collected them instead.
- Remote first vs. remote friendly by Zach Holman
- Building Remote-First Teams by @fox
- How to be effective at working remotely
// ==UserScript== | |
// @name HN font-color | |
// @namespace hackerNewsFix | |
// @include https://news.ycombinator.com | |
// @include https://news.ycombinator.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var comments = Array.from(document.querySelectorAll('span[class^=c]:not(.comhead)')); |
I realized that I kept assembling lists of URLs to just send people, so I collected them instead.
I hereby claim:
To claim this, I am signing this object:
// Save the raw JSON paste to file.json | |
// Then start up a Node REPL and do this | |
var data = require('./file.json'); | |
var fs = require('fs'); | |
fs.writeFileSync('./formatted-file.json', JSON.stringify(data, null, 2)); |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
Pattern STATE_REGEX = Pattern.compile( "\\b(?<stateCode>[a-zA-Z]{2})$" ); | |
Matcher matcher = STATE_REGEX.matcher( input ); | |
List<ZipCode> zipCodeList = new ArrayList<>(); | |
if ( matcher.find() ) { | |
String city = input.substring( 0, matcher.start() - 1 ); |
if ( 'function' !== typeof window.addEventListener ) { | |
(function ( win, doc ) { | |
function docHijack( p ) { | |
var old = doc[p]; | |
doc[ p ] = function ( v ) { | |
return addListen( old( v ) ); | |
}; | |
} |
var i=0; | |
var dataRef = new Firebase("https://adultcatfinder.firebaseio.com/rooms"); | |
var myRoomRef = dataRef.push(); | |
window.setInterval(function(){ | |
var chat=document.getElementById("chat"); | |
if (i==0){chat.innerHTML +="<p style='color:blue'>Local Cat: meow meow <i>meow</i>?</p>";} | |
else if (i==1){chat.innerHTML +="<p style='color:blue'>Local Cat: moew meow meow meow!!</p>";} |
// konami code - up up down down left right left right b a | |
var code1 = String.fromCharCode(38, 38, 40, 40, 37, 39, 37, 39, 66, 65); | |
var code2 = String.fromCharCode(38, 38, 40, 40, 37, 39, 37, 39, 65, 66); | |
var codeBuffer = ""; | |
$(document).keyup(function (e) { | |
codeBuffer += String.fromCharCode(e.which); | |
if (code1.substring(0, codeBuffer.length) == codeBuffer) { | |
if (code1.length == codeBuffer.length) { | |
toggle1(); | |
codeBuffer = String.fromCharCode(38, 38, 40, 40, 37, 39, 37, 39, 66); |
function updateAddAllToCartButton(event) { | |
var validList = ""; | |
var invalidList = ""; | |
jQuery(".listItem").each(function(index) { | |
var item = jQuery(this); | |
var conflictInput = item.find("input[name='conflictWithSlot']"); | |
if (item.find(".itemUnavailableText").size() > 0 || item.find(".discontinued").size() > 0) { | |
// Ignore unavailable and discontinued items | |
} else if (conflictInput.size() == 0 || conflictInput.val() == "false") { // skip invalid items |
<!DOCTYPE html> | |
<head> | |
<title>Name</title> | |
<style type="text/css"> | |
html { | |
background: white; | |
color: black; | |
font: 14px 'Helvetica Neue', Arial, sans-serif; |