This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"lat": 41.879261, | |
"lng": -87.628403, | |
"name": "Berghoff" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 "/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Pure JS Slider</title> | |
</head> | |
<body> | |
<script src="slider.js"></script> | |
</body> | |
</html> |