Skip to content

Instantly share code, notes, and snippets.

View DanOswalt's full-sized avatar

Dan Oswalt DanOswalt

View GitHub Profile
@DanOswalt
DanOswalt / pronounceableRandomString.js
Last active February 17, 2019 00:47
Pronounceable Random String function
// returns a random string that is english-ish.
// if no params passed, will return a lowercase string between 3 and 8 letters.
// 1st arg option to pass in boolean for caplitalizing first letter for proper names (default false)
// 2nd arg option to pass in min chars (default 3)
// 3rd arg option to pass in max chars (default 8)
function pronounceableRandomString(cap, min, max) {
function randBetween(min, max) {
return Math.floor(Math.random()*(max-min+1)+min);
@DanOswalt
DanOswalt / chessmove.md
Last active May 18, 2018 04:53
How to make a chess move when you have no idea what to do.

How to make a chess move when you have no idea what to do.


Sometimes it's dead simple.

  • Can you capture the enemy king? Do this. You win. This is highly recommended.

Otherwise, you'll have to sort things out.

@-moz-document domain(libanalytics.com) {
@import 'https://fonts.googleapis.com/css?family=Ubuntu';
@import 'https://fonts.googleapis.com/css?family=Baloo+Tamma';
@keyframes periodic_blink {
0% {
color: blue;
}
16% {
color: green;
@DanOswalt
DanOswalt / betterform.css
Last active September 16, 2016 21:47
Stylesheet for stat-tracker
@import 'https://fonts.googleapis.com/css?family=Ubuntu';
@import 'https://fonts.googleapis.com/css?family=Baloo+Tamma';
@keyframes periodic_blink {
0% {
color: blue;
}
16% {
color: green;
}
33% {
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
</head>
<style>
.container {
margin: 0 10px;
}
<!DOCTYPE html>
<html>
<head>
<title>Johnny D's Donut Dreem</title>
</head>
<body>
<h1>Johnny D's Donut Dreem</h1>
<h3>If you've got dollars, we've got donuts</h3>
<section id='content'>