This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Compare Old and New Sites Visually</title> | |
<style> | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The following environment variables are required for connecting to the DB via an SSH tunnel: | |
# DBHOST -> the MySQL DB endpoint | |
# BASTIONUSER -> username for connecting to the bastion host, associated with your SSH key | |
# BASTIONHOST -> the IP or hostname of the bastion host | |
# | |
# Overriding the SSH key path is optional: | |
# SSHKEYPATH -> if using a non-default SSH key, set this to override ~/.ssh/id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HttpsProxyAgent = require('https-proxy-agent'); | |
require('isomorphic-fetch'); | |
// Attempt to fetch the origin server, but proxied through the proxy server...works in browser, but not on the CLI | |
// with `node fetch.js` | |
fetch('http://localhost:8818', { | |
agent: new HttpsProxyAgent('http://username:password@localhost:9818') | |
}).then((res) => { | |
console.log('Fetch response', res); | |
}).catch((err) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const maxWeight = 50; | |
const piles = [ | |
{ | |
count: 60, | |
weight: 10 | |
}, | |
{ | |
count: 120, | |
weight: 30 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CSS_COLOR_NAMES = ["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","Darkorange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function memoize(fn) { | |
let state = {}; | |
return function() { | |
const args = [...arguments]; | |
if(state[args]) { | |
return state[args]; | |
} else { | |
const value = fn.apply(this, args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'date' | |
require 'csv' | |
require 'nokogiri' | |
require "net/http" | |
require "uri" | |
require 'work_queue' | |
CSV_FILENAME = "crash_data.csv" | |
# Crash reports are at least 3 days old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:16:17 Projects $ ember new glimmer-components -b @glimmer/blueprint | |
installing blueprint | |
create .editorconfig | |
create .ember-cli | |
create .watchmanconfig | |
create README.md | |
create config/environment.js | |
create config/module-map.d.ts | |
create config/resolver-configuration.d.ts | |
create config/targets.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var styleTags = jQuery('style'); | |
var styleText; | |
var scopeClass; | |
var scopedStyles; | |
var firstChar; | |
styleTags.each(function(index) { | |
scopeClass = makeScope(); | |
styleText = jQuery(this).text(); | |
firstChar = styleText.trim().substring(0, 1); |