This file contains 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>Spirograph</title> | |
<style type="text/css"> | |
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; |
This file contains 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
Show hidden characters
{ | |
"shell_cmd": "cat \"$file_name\" | mit-scheme", | |
"selector": "source.scm" | |
} |
This file contains 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
<style> | |
* { | |
font-family: monospace; | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
font-size: 52px; | |
color: silver; | |
user-select: none; |
This file contains 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
void _log(int); | |
void log123() { | |
_log(123); | |
} |
This file contains 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
const fs = require('fs'); | |
const path = require('path'); | |
const rawDirPath = path.join(__dirname, 'raw'); | |
const allDoodlesPath = path.join(__dirname, 'doodles.all.json'); | |
const allDoodles = fs | |
.readdirSync(rawDirPath) | |
.reduce((_allDoodles, fileName) => { | |
const filePath = path.join(rawDirPath, fileName); |
This file contains 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
function inheritsObject(baseObject, superObject) { | |
Object.setPrototypeOf(baseObject, superObject); | |
} | |
function inheritsMultipleObjects(baseObject, superObjects) { | |
inheritsObject( | |
baseObject, | |
new Proxy({}, { | |
get(target, key, rec) { |
This file contains 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
+type ClearAction = {type: 'CLEAR'}; | |
+type ResetAction = {type: 'RESET', text: 'Hello World'}; | |
+type UpdateAction = {type: 'UPDATE', text: string}; | |
+ | |
+type Action = | |
+ | ClearAction | |
+ | ResetAction | |
+ | UpdateAction; | |
+ | |
const CLEAR = 'CLEAR'; |
This file contains 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
const cppCode = document.getElementById("cpp-template").innerHTML; | |
document.getElementById("cpp").innerHTML = cppCode.replace(/\s{2,}/g, ""); | |
const app = new Vue({ | |
el: "#app", | |
data: { | |
counterMode: false, | |
dimensionCount: { value: 2, prevValue: 2 }, |
This file contains 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
# switch to python3 | |
which python | |
sudo rm /usr/bin/python | |
sudo ln -s /usr/bin/python{3,} | |
python --version | |
# install python-dev | |
sudo apt install -y python3-dev | |
# install pip |
This file contains 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
const fs = require('fs') | |
const path = require('path') | |
const ESLING_LOG = path.join(__dirname, 'eslint.log') | |
const STATE = { | |
EMPTY: 'EMPTY', | |
FILE: 'FILE', | |
} |
OlderNewer