Skip to content

Instantly share code, notes, and snippets.

View thebinarypenguin's full-sized avatar

Ethan Zimmerman thebinarypenguin

View GitHub Profile
https://repl.it/@thebinarypengui/Array-copying-I-drill
https://repl.it/@thebinarypengui/Array-copying-II-drill
https://repl.it/@thebinarypengui/Squares-with-map-drill
https://repl.it/@thebinarypengui/Sort-drill
https://repl.it/@thebinarypengui/Filter-drill
https://repl.it/@thebinarypengui/Find-drill
https://repl.it/@thebinarypengui/Creating-arrays-drill
https://repl.it/@thebinarypengui/Adding-array-items-drills
https://repl.it/@thebinarypengui/Accessing-array-items-drill
https://repl.it/@thebinarypengui/Array-length-and-access-drill
https://repl.it/@thebinarypengui/Traffic-lights-drill
https://repl.it/@thebinarypengui/Error-alert-drill
https://repl.it/@thebinarypengui/area-of-a-rectangle-drill
https://repl.it/@thebinarypengui/temperature-conversion-drill
https://repl.it/@thebinarypengui/Is-divisible-drill
https://repl.it/@thebinarypengui/Wiseperson-generator-drill
https://repl.it/@thebinarypengui/shouter-drill
https://repl.it/@thebinarypengui/text-normalizer-drill

A Tale of Two Scopes

Hi, I'm an ES6 enthusiast and I'm here to explain why the convenience of one set of scope rules in JavaScript has been replaced by the convenience of two sets of scope rules.

You're probably thinking, "Sure, more scope rules are great, and I don't mind paying the extra cognitive load, but how will I remember all those rules?"

@thebinarypenguin
thebinarypenguin / sudoku-board.html
Created May 28, 2016 15:57
A sample Sudoku board in HTML and CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML Sudoku Board</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
@thebinarypenguin
thebinarypenguin / node-hello-world.js
Created March 6, 2016 13:27
"Hello World" HTTP server using node.js
const http = require('http');
const name = 'node-hello-world';
const port = '8888';
const app = new http.Server();
app.on('request', (req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.write('Hello World');
@thebinarypenguin
thebinarypenguin / jot.sh
Last active August 29, 2015 14:24
Simple script for quickly capturing notes
#!/bin/bash
# Usage
#
# jot.sh - Open today's jot file
# jot.sh <text> - Append text (with timestamp) to end of today's jot file
jotsDir=~/jots/
todaysFile=$jotsDir$(date +%F).jot
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>xxxxxxxxxx</title>
<meta name="description" content="xxxxxxxxxx">