Skip to content

Instantly share code, notes, and snippets.

View Steven24K's full-sized avatar
🤹‍♂️
Enjoying life

Steven Steven24K

🤹‍♂️
Enjoying life
View GitHub Profile
@Steven24K
Steven24K / docker-compose.yml
Created July 7, 2022 08:16
A simple minimal Dockerized Wordpres solution.
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
function getUrlParam(key: string): string {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(key) ?? "";
}
function addUrlParam(key: string, value: string): void {
const url = new URL(window.location.href);
url.searchParams.set(key, value);
const newUrl = url.href;
window.history.pushState({ path: newUrl }, "", newUrl);
@Steven24K
Steven24K / robots.txt
Created March 12, 2024 08:03
robots.txt
User-agent: *
Disallow: /
User-agent: ia_archiver
Disallow: /
User-agent: Googlebot
Disallow: /
User-agent: Facebot
1. 11111011 = 251 1. 73 = 01001001
2. 11011100 = 220 2. 131 = 10000011
3. 01101110 = 110 3. 82 = 01010010
4. 01011101 = 93 4. 16 = 00010000
5. 01101000 = 104 5. 118 = 01110110
6. 01110001 = 113 6. 79 = 01001111
7. 11010111 = 215 7. 178 = 10110010
8. 00100110 = 38 8. 1 = 00000001
9. 11101011 = 235 9. 52 = 00110100
10. 10100000 = 160 10. 83 = 01010011
@Steven24K
Steven24K / game.js
Created December 26, 2024 12:43
Tic Tac Toe HTML, CSS, JS exercise
const game_grid = document.getElementById('game-grid');
const grid_size = 3;
const player_x = document.getElementById('player-x')
const player_o = document.getElementById('player-o')
const header = document.getElementById('header');
const reset_button = document.getElementById('reset');
let current_player = player_x;