View IPBSIEIP.md

January 25, 2017

MEMORANDUM FOR:

Kevin McAleenan, Acting Commissioner, U.S. Customs and Border Protection

Dan Ragsdale, Acting Director, U.S. Immigration and Customs Enforcement

Lori Scialabba, Acting Director, U.S. Citizenship and Immigration Services

View stub.html
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<link rel="stylesheet" href="presentation.css">
</head>
<body>
<script src="behavior.js"></script>
</body>
View WebExtensionCheck.js
// If we know the extension's ID and a path to one of its web-accessible resources, we can quietly check for presence.
(function (w, a) {
var checkExt = function (callback) {
var hazExt = false;
var img = new Image();
img.onload = function () {
hazExt = true;
};
// need to know the right protocol for Firefox and Edge extensions
View spinner.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View webExCompat.txt
From the root directory of your Chrome extension:
grep -r " chrome\." . | sed s/.*chrome\./\"/g | sed s/\(.*/#Browser_compatibility/ | sed s/[.]/\\//g | sed s/./https:\\/\\/developer\.mozilla\.org\\/Add-ons\\/WebExtensions\\/API\\// | sort | uniq
Hopefully you'll get something like this:
https://developer.mozilla.org/Add-ons/WebExtensions/API/i18n/getMessage#Browser_compatibility
https://developer.mozilla.org/Add-ons/WebExtensions/API/runtime/sendMessage#Browser_compatibility
https://developer.mozilla.org/Add-ons/WebExtensions/API/storage/local/get#Browser_compatibility
https://developer.mozilla.org/Add-ons/WebExtensions/API/storage/local/set#Browser_compatibility
View pinmarklet.md

How to recreate your long-lost Pinterest bookmarklet.

Right-click your bookmarks bar and choose Add Page (Chrome) or New Bookmarklet (Firefox).

In Name, put this:

Pin It

In URL, put this:

View konami.md

#Implementing the Konami Code

The Konami Code is a cheat code that appears in many early Konami video games. During the title screen before the game demo begins, the player can press the following sequence of buttons on the game controller to enable the cheat:

###↑ ↑ ↓ ↓ ← → ← → B A [Start]

The code has also found a place in popular culture as a reference to the third generation of video game consoles, and is present as an Easter egg on a number of Web sites.

####Please implement the Konami Code in JavaScript.

View hashy.js
/*
To make Hashy work, you'll need to install Botkit and follow instructions here:
https://github.com/howdyai/botkit
Success looks like this:
@hashy sha1 foo
sha1 hash of `foo`:
0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
View ClamToDoge.md

Converting Clamcoin to Dogecoin

If you had a Dogecoin address containing at least one coin before May 10th 2014, a copy of the address was created and awarded with 4.6055 Clam.

With the recent drop in Bitcoin, those Clams were suddenly worth messing with.

I had four addresses with nonzero balances on that fine day; I've just converted them to Dogecoin, doubling my tiny stash!

Here's what worked for me:

View glint.html
<!doctype html>
<html>
<head>
<title>Glint 1.0</title>
<style>
body {
font-family: monospace;
}
</style>
</head>