sudo killall -9 coreaudiod
- Open new Chrome tab.
Instead of php -S localhost:8000
use php -S 0.0.0.0:8000
and you'll be able to see the server from http://<your IP address>:8000
.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>art show label generator</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,900,900i" rel="stylesheet"> | |
<link rel="stylesheet" href="./main.css" /> | |
</head> |
var getTimeAgo = function(datestring) { | |
// Takes in any datestring that can be used with the Date() constructor: | |
// e.g., "10/22/15" or "Wed Nov 29 2015 13:42:33 GMT-0800 (PST)" | |
// and outputs a date like Twitter's datetimestamps. | |
var d1 = new Date(); | |
var d2 = new Date(datestring); | |
var timeAgo = d1.getTime()-d2.getTime(); | |
if ((timeAgo/1000/60/60/24) >= 1) { | |
// return full date: "Nov 10" if same year, or "10 Nov 2015" | |
var months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>timecode calculator</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
input { | |
font-size: 54px; |
sudo killall -9 coreaudiod
Instead of php -S localhost:8000
use php -S 0.0.0.0:8000
and you'll be able to see the server from http://<your IP address>:8000
.
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- This is a template for a landing page! | |
✓ Fill in the things between the {{double braces}}, removing the {{ and }} in the process. | |
✓ Make a logo image for the <img> tag, and take note of its width and height. | |
✓ Make a sharing image for the OpenGraph/Facebook/Twitter <meta> tags (square, 1200x1200px). | |
✓ Tweak CSS as necessary. | |
✓ Rename this file to index.html and upload it and the two images to the web root directory on your server. | |
✓ Remove this comment when done. --> |
#!/bin/sh | |
# Error out if anything fails. | |
set -e | |
# Make sure script is run as root. | |
if [ "$(id -u)" != "0" ]; then | |
echo "Must be run as root with sudo! Try: sudo ./install.sh" | |
exit 1 | |
fi |
javascript:document.querySelector('div.Nags').remove(); |
An extension for Google Chrome that lets you look up words on Wordnik. | |
It's outdated—the manifest version is 1 when it should be 2—but it may work for you if you | |
• download the files | |
• go to chrome://extensions | |
• check "Developer Mode" | |
• "Load unpacked extension..." | |
The .zip file contains the following files: | |
- manifest.json | |
- background.html |
// **** | |
// Because I spent all week writing javascript, then I saw this: | |
// https://instagram.com/p/4DJNNbR5_P/ | |
// and needed to automate it, like so: | |
// > getNumber("Wolfgang Mozart") | |
// returns: "Your name is not a prime number: Wolfgang Mozart (178)." | |
// **** | |
var getNumber = function getNumber(nameString) { | |
var arr = nameString.toLowerCase().split(''); | |
var key = " abcdefghijklmnopqrstuvwxyz".split(''); |