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
@ECHO off | |
REM Trap for doing `pause` only when double-click from explorer | |
IF "%parent%"=="" SET parent=%~0 | |
IF "%console_mode%"=="" ( | |
SET console_mode=1 | |
FOR %%x IN (%cmdcmdline%) DO ( | |
IF /i "%%~x"=="/c" SET console_mode=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
import json | |
import os | |
import re | |
import time | |
from os import path | |
from typing import TextIO, List, Dict, Callable, AnyStr, Any, Tuple, Pattern, Optional | |
import matplotlib.pyplot as plt | |
import numpy as np |
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
<?php | |
/* Load up wordpress externally */ | |
define('WP_USE_THEMES', false); | |
define('COOKIE_DOMAIN', false); | |
define('DISABLE_WP_CRON', true); | |
require('../wordpress/wp-load.php'); | |
require('../wordpress/wp-admin/includes/image.php'); | |
$user_id = -1; |