I hereby claim:
- I am bronzehedwick on github.
- I am bronzehedwick (https://keybase.io/bronzehedwick) on keybase.
- I have a public key ASA1s4RaAOH9R4IT7fV69aYx6RTDkReBzKZJl-hXD8Kslwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>TODO</title> | |
| <style> | |
| [data-status="done"] { | |
| color: #999; | |
| text-decoration: line-through; | |
| } |
| /** | |
| * Determines (poorly) the current browser. | |
| * @returns {string} the current browser or 'unknown'. | |
| */ | |
| function getBrowser() { | |
| var ua = navigator.userAgent; | |
| var browsers = [ | |
| 'Vivaldi', | |
| 'OPR', // Opera | |
| 'Firefox', |
| /** | |
| * Returns a random number between min and max, rounded to the nearest whole number. | |
| * @param {number} min is the lowest amount possible to return. | |
| * @param {number} max is the highest amount possible to return. | |
| * @returns {number} a random number between min and max. | |
| */ | |
| let random = (min, max) => Math.round(Math.random() * (max - min) + min); |
| /** | |
| * Format a number with thousand's place seperating commas. | |
| * @param {number} num is the number to format. | |
| * @returns {string} The formatted number. | |
| */ | |
| function addCommas( num ) { | |
| var numString = num + ''; | |
| var numArray = numString.split('').reverse(); | |
| if ( numArray.length < 4 ) { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Guess My Number</title> | |
| </head> | |
| <body> | |
| <script> | |
| (function guessNumber() { | |
| 'use strict'; |
| # Description | |
| # A command to check Github's web status | |
| # | |
| # Dependencies: | |
| # None | |
| # | |
| # Configuration: | |
| # None | |
| # | |
| # Commands: |
| #!/bin/bash | |
| # Get status from Github | |
| response=$(curl --silent https://status.github.com/api/last-message.json | sed "s/{//" | sed "s/}//") | |
| IFS=',' read -a messages <<< "$response" | |
| #Colors | |
| red="\033[0;31m" | |
| green="\033[0;32m" | |
| yellow="\033[0;33m" |
| #!/usr/bin/env ruby | |
| require "httparty" | |
| require "nokogiri" | |
| require "rainbow" | |
| require "ostruct" | |
| require 'rainbow/ext/string' | |
| def show_latest | |
| response = HTTParty.get("http://news.ycombinator.com") |
| #!/bin/bash | |
| # Create a new post for a Jekyll blog. | |
| cd /path/to/your/jekyll/repo/_posts | |
| FILETILE=$(echo "$1" | tr " " "-" | tr '[:upper:]' '[:lower:]') | |
| POSTDATE=$(\date +"%Y-%m-%d") | |
| POSTNAME=$POSTDATE-$FILETILE.md | |
| POSTBODY="--- | |
| layout: post |