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
$THEME_NAME = "takuya"; | |
$THEME_CUSTOM = 0; | |
$THEME_URL = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/default.omp.json"; # For THEME_CUSTOM = 1 | |
if($THEME_CUSTOM -eq 0) { | |
$THEME_URL = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/${THEME_NAME}.omp.json"; | |
} | |
oh-my-posh init pwsh --config "${THEME_URL}" | Invoke-Expression |
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 MAX_PARTICLES = 500; | |
const PARTICLE_COLOR = "rgba(174, 194, 224, 0.5)"; | |
const PARTICLE_SPEED = 10; | |
const TEXT_COLOR = "rgba(255, 255, 255, .2)"; | |
const TEXT_FONT = "bold 36px Arial"; | |
const body = document.body; | |
function randomInt(min, max) { |
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
# Source: https://stackoverflow.com/a/26567563 | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
from selenium.common.exceptions import TimeoutException | |
browser = webdriver.Firefox() | |
browser.get("url") |
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
baseName = 'test' | |
mainClass = 'org.tinytengu.main.Main' | |
jar { | |
manifest { | |
attributes "Main-Class": "${mainClass}" | |
} | |
} |
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
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
} |
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
{ | |
"Header #ifndef pattern": { | |
"prefix": "hdef", | |
"body": [ | |
"#ifndef _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}", | |
"#define _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}", | |
"\n${1:/* content */}\n", | |
"#endif" | |
], | |
"description": "Header file pattern to preserve reinclude" |
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
:halt | |
call :__SetErrorLevel %1 | |
call :__ErrorExit 2> nul | |
goto :eof | |
:__ErrorExit | |
() | |
goto :eof |
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
:args_loop | |
if "%1"=="-lt" set light_time=%2 | |
if "%1"=="-dt" set dark_time=%2 | |
if "%1"=="-lp" set light_theme=%2 | |
if "%1"=="-dp" set dark_theme=%2 | |
if "%1"=="-path" set path_type=%2 | |
shift /1 | |
shift /1 | |
if not "%1"=="" goto args_loop |
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
:killproc | |
set _kpwait=%~2 | |
if "%_kpwait%"=="" set _kpwait=0 | |
:killproc_loop | |
tasklist /fi "imagename eq %~1" |find ":" > nul | |
if %errorlevel% neq 1 ( | |
if %_kpwait% equ 1 goto killproc_loop | |
exit /B 0 | |
) | |
taskkill /f /im %~1 > nul |
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
:time_fix | |
set _time=%~1 | |
if "%_time:~0,1%"==" " set %~2=0%_time:~1% | |
if "%_time:~1,1%"==":" set %~2=0%_time% | |
if "%~3"=="1" set %~2=0%_time:~0,7% | |
exit /B 0 | |
rem Usage: CALL :time_fix %time% time_fixed | |
rem echo %time_fixed% |
NewerOlder