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
@echo off | |
setlocal enabledelayedexpansion | |
title tic tac toe | |
:init | |
set "options=" | |
set "players=XO" | |
set /a rounds = 0 | |
set "separator=+-----------+" |
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
# compiled class files | |
*.class | |
# log files | |
*.log | |
# package files | |
*.jar | |
*.war | |
*.nar |
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
@echo off & setlocal & goto main | |
:hextoint %1:string | |
set "remainingHexString=%~1" | |
set /a position = 0 | |
set /a base = 16 | |
set /a result = 0 | |
set "hexCharValueMap=(a:10,b:11,c:12,d:13,e:14,f:15)" | |
:_hextoint |
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
@echo off | |
setlocal enableDelayedExpansion | |
title Batch Game Demo | |
set /a width = 20, height = 15 | |
set /a windowWidth = width + 1 + (2 * 2) | |
set /a windowHeight = height + 6 | |
set /a speed = 1 | |
set /a x = width / 2, y = height / 2 |
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
.data | |
array: .word 13, 37, 6, 9, 420 | |
size: .word 0 | |
.text | |
main: li $t0, 0 # item index := 0 | |
la $t1, array # array start | |
la $t2, size # array end | |
loop: sll $t3, $t0, 2 # multiply index by 4 | |
add $t3, $t3, $t1 # add array start position |
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
npm outdated | |
npm install -g npm-check-updates | |
ncu -u | |
npm install |
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 | |
/* | |
JWT TOKEN LOGIN -- Automatically logs a user in a WordPress site with JWT | |
This script allows you to log a user into a WordPress site automatically | |
based on his/her JSON Web Token (JWT). This assumes that you use the | |
following plugin and set it up properly on your WordPress site to enable | |
JWT authentication via REST API. | |
JWT Auth – WordPress JSON Web Token Authentication |
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 // put this file in the public_html folder and access it via HTTP | |
unlink(__FILE__); | |
rmdir(__DIR__); | |
chdir('..'); | |
symlink('contao/public', 'public_html'); |