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
{ | |
"alt-require": true, | |
"attr-lowercase": true, | |
"attr-no-duplication": true, | |
"attr-value-double-quotes": true, | |
"doctype-first": true, | |
"doctype-html5": true, | |
"id-unique": true, | |
"spec-char-escape": true, | |
"src-not-empty": true, |
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 MAX_FILES_PER_FOLDER = 500; | |
const IMAGE_EXTENSIONS = ['.png', '.jpg', '.jpeg', '.gif']; | |
// Get a list of all files in the current directory | |
const files = fs.readdirSync('.'); | |
// Filter out only the image files |
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
import "./style.css"; | |
const color_data = [ | |
{ | |
name: "red", | |
hex: "#ff0000", | |
sound: "sound_1", | |
}, | |
{ | |
name: "white", |
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
code { | |
font-family: Menlo, Monaco, "Lucida Console", Consolas, monospace; | |
font-size: 110%; | |
margin: 0; | |
} | |
pre { | |
margin: 1em 0; | |
overflow: auto; | |
} | |
pre code { |
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
{ | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascriptreact]": {}, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" |
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
<script type="ts"> | |
import { onMount } from 'svelte'; | |
let title: string; | |
onMount(() => { | |
try { | |
fetch('/api/post', { | |
method: 'post', | |
headers: { 'Content-Type': 'application/json' }, |
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
.box { | |
box-shadow: | |
0 2.8px 2.2px rgba(0, 0, 0, 0.034), | |
0 6.7px 5.3px rgba(0, 0, 0, 0.048), | |
0 12.5px 10px rgba(0, 0, 0, 0.06), | |
0 22.3px 17.9px rgba(0, 0, 0, 0.072), | |
0 41.8px 33.4px rgba(0, 0, 0, 0.086), | |
0 100px 80px rgba(0, 0, 0, 0.12); | |
} |
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
:root { | |
--color-celery-400: #3da74e; | |
--color-celery-500: #44b556; | |
--color-celery-600: #4bc35f; | |
--color-celery-700: #51d267; | |
--color-chartreuse-400: #7cc33f; | |
--color-chartreuse-500: #85d044; | |
--color-chartreuse-600: #8ede49; | |
--color-chartreuse-700: #9bec54; | |
--color-yellow-400: #d2b200; |
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
module.exports = { | |
env: { | |
browser: true, | |
es6: true | |
}, | |
extends: "eslint:recommended", | |
globals: { | |
Atomics: "readonly", | |
SharedArrayBuffer: "readonly" | |
}, |
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
#!/usr/local/bin/python3 | |
import random | |
import time | |
test_board = ['#', 'X', '0', 'X', '0', 'X', '0', 'X', '0', 'X'] | |
game_board = ['#', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] | |
def display_board(board): |
NewerOlder