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
| // Copyright (C) 2018 by Things That Do Stuff, LLC - All rights reversed | |
| // http://www.unlicense.org/ (public domain) | |
| const gql = (templateStringParts: TemplateStringsArray, ...vars: any[]): string => | |
| templateStringParts.map((part, index) => (index in vars ? part + JSON.stringify(vars[index]) : part)).join(''); | |
| export const createPages: GatsbyCreatePages = async ({ graphql, boundActionCreators }) => { | |
| const query = gql` | |
| { | |
| site: contentfulSite(url: { eq: ${'thingsthatdostuff.com'} }) { |
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
| javascript: void (()=>{ | |
| let text = null; | |
| try { | |
| text = document | |
| .querySelector("ytd-transcript-renderer") | |
| .__data | |
| .data | |
| .body | |
| .transcriptBodyRenderer | |
| .cueGroups |
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
| //https://www.khanacademy.org/computer-programming/bouncy-hat/5273009214128128 | |
| var hatY = 0; | |
| var HATY_MAX = 106; | |
| var defaultSpringState = { | |
| enabled: true, | |
| mass: 10, | |
| friction: 3, | |
| stiffness: 120 / 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> | |
| <meta charset="UTF-8"> | |
| <style> | |
| html{background:#333} | |
| </style> | |
| <!-- <script src="lib/monkey keycodes.js"></script> --> | |
| <script> |
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
| #lulz { | |
| width:480px; | |
| height:480px; | |
| border-collapse:collapse; | |
| } | |
| #lulz td { | |
| border: 2px solid black; | |
| } | |
| #lulz td.chosen { | |
| border-color: red; |
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
| html,body{font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;} | |
| *{margin:0;padding:0;} | |
| body{padding:2ex;} | |
| hr{margin:2ex 0;} | |
| html,body,input,td,th{font-size:100%;} | |
| div{border:4px solid #AEFFE6;background:#66FFCC;} | |
| p {border:2px solid #66FFCC;background:#ffc;color:#cc0;} |
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
| //html{width:320px} |
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
| <html> | |
| <!-- It's normal NOT TO indent the children of the html element --> | |
| <body> | |
| <!-- It's normal NOT TO indent the children of the body element --> | |
| <div style="background-color: lime" data-moo-mar-maz="abc123" id="abc123"> | |
| <!-- It's normal TO indent the innards of almost all HTML elements --> | |
| Hello World. | |
| </div> |