Skip to content

Instantly share code, notes, and snippets.

View mattborn's full-sized avatar
🥃
Slow and steady…

Matt Born mattborn

🥃
Slow and steady…
View GitHub Profile
@mattborn
mattborn / weekcards.js
Created December 26, 2017 21:00
52 cards & weeks
// There are 52 weeks in a year. Usually.
// There are 52 cards in a deck.
// Let’s generate an alternate sequential reference for weeks.
let weeks = [];
const faces = [2,3,4,5,6,7,8,9,'T','J','Q','K','A']
const suits = ['♣','♦','♥','♠'];
suits.forEach(suit => {
@mattborn
mattborn / index.html
Created April 20, 2017 04:46
Inline templates
<!doctype html>
<html>
<head>
<title>Inline templates</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>
<style>
body {
font-size: 200%;
margin: 10%;
}
@mattborn
mattborn / bars.json
Created March 7, 2017 21:32
HoppyHour™ Map
[
{
"lat": 41.879261,
"lng": -87.628403,
"name": "Berghoff"
}
]
@mattborn
mattborn / index.html
Last active February 2, 2017 22:26
iFrame Play Button
<!doctype html>
<html>
<head>
<title>iframe Play Button</title>
<style>
@import "https://cdn.rawgit.com/mattborn/a9ceb96ad80f586cf40145276f98b86c/raw/713948588a471f22349744ff76d899fedbdb1577/bambu.css";
iframe {
border: none;
max-width: 100%;
}
@mattborn
mattborn / index.html
Created January 25, 2017 14:14
SVG Experiment
<!doctype html>
<html>
<head>
<title>SVG Experiment</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<svg viewBox="0 0 100 95.1">
<g>
<polygon points="50,0 65.5,31.3 100,36.3 75,60.7 80.9,95.1 50,78.9 19.1,95.1 25,60.7 0,36.3 34.5,31.3 "/>
@mattborn
mattborn / bambu.css
Created January 12, 2017 21:36
Common assets across projects
@import "https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css";
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
body {
color: #515e5f;
font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif; /* smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide */
-webkit-font-smoothing: antialiased;
line-height: 1;
}
@mattborn
mattborn / index.html
Created December 30, 2016 21:59
Adaptive Flexbox for Sid
<!doctype html>
<html>
<head>
<title>Adaptive Flexbox for Sid</title>
<style>
body { margin: 5%; }
img { max-width: 100%; }
.Album-Details {
display: flex;
flex-wrap: wrap;
@mattborn
mattborn / index.html
Last active December 30, 2016 19:50
Pure JS Slider
<!doctype html>
<html>
<head>
<title>Pure JS Slider</title>
</head>
<body>
<script src="slider.js"></script>
</body>
</html>
@mattborn
mattborn / favicon.ico
Created December 22, 2016 06:15
Everything
@mattborn
mattborn / favicon.ico
Last active December 21, 2016 15:41
Static boilerplate