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
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; |
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
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 |
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
User-agent: * | |
Disallow: / | |
User-agent: ia_archiver | |
Disallow: / | |
User-agent: Googlebot | |
Disallow: / | |
User-agent: Facebot |
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
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); |
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
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 |
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
# from functools import reduce | |
import json | |
import requests | |
import csv | |
csv_name = input("Where would you like to store the result? (filename)") | |
f = open("output/" + csv_name + ".csv" ,'x') | |
error_log = open("output/" + "error_" + csv_name + ".txt", "x") | |
writer = csv.writer(f) |
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
<?php | |
/* | |
Plugin Name: Hubspot API | |
Description: Plugin to make the hubspot API available from WordPress | |
Author: Steven K | |
Author URI: https://www.stevenkoerts.nl | |
*/ | |
// Demo form: 233bb53d-071f-4d39-8859-f041855bbbd4, API_KEY: demo |
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
from flask import Flask, jsonify, request | |
from flask_cors import CORS | |
import requests | |
# RUn the app by running flask run -p 3000 you can change the port number if have allready something running on port 3000 | |
app = Flask(__name__) | |
# Allow CORS on every request | |
CORS(app) |
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
const setBlockState = <K extends keyof BLOCKPROPS>(prop: K, newValue: BLOCKPROPS[K]) => (s: CMSState<customBlockData, extra_images, PublicSite_CustomPageData>): CMSState<customBlockData, extra_images, PublicSite_CustomPageData> => { | |
if (!s.blocks.has(props.block_index)) return s | |
let current_block = s.blocks.get(props.block_index) as any | |
if (current_block.kind != 'BLOCK_NAME') return s | |
current_block = ({ | |
...current_block, | |
value: { | |
...current_block.value, | |
fst: { | |
...current_block.value.fst, |
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
interface StateMachine { | |
busy: boolean | |
update: () => void | |
reset: () => void | |
} | |
interface Seq extends StateMachine { | |
sm1: StateMachine | |
sm2: StateMachine | |
current: StateMachine, |
NewerOlder