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 | |
declare(strict_types=1); | |
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer; | |
use Symplify\EasyCodingStandard\Config\ECSConfig; | |
return ECSConfig::configure() | |
->withConfiguredRule(ArraySyntaxFixer::class, | |
array('syntax' => 'long') |
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
block-closing-brace-empty-line-before | |
block-closing-brace-newline-after | |
block-closing-brace-newline-before | |
block-closing-brace-space-after | |
block-closing-brace-space-before | |
block-opening-brace-newline-after | |
block-opening-brace-newline-before | |
block-opening-brace-space-after | |
block-opening-brace-space-before | |
color-hex-case |
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 | |
FOR /F "tokens=2" %%K IN (' | |
tasklist /FI "ImageName eq notepad++.exe" /FI "Status eq Not Responding" /FO LIST ^| findstr /B "PID:" | |
') DO ( | |
:: Check for number | |
SET "var="&for /f "delims=0123456789" %%i in ("%%K") do set var=%%i | |
IF NOT DEFINED var ( | |
:: https://processhacker.sourceforge.io/ |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
<IfModule mod_env.c> | |
# Scheduled Maintenance | |
RewriteRule ^ - [E=MAINTENANCE_DATE:False] | |
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} 20230509 [OR] | |
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} 20230523 [OR] | |
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} 20230613 [OR] | |
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} 20230627 [OR] |
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
#Persistent | |
#SingleInstance, Force | |
#NoEnv | |
If ProcessExist("wmplayer.exe") | |
wmp := new RemoteWMP | |
!4:: ; Alt+4 | |
SpeakAloudTrack(wmp) | |
Return |
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
[CmdletBinding()] Param ( | |
[Parameter()][ValidateSet('On', 'Off')][string]$BluetoothStatus | |
) | |
If ((Get-Service bthserv).Status -eq 'Stopped') { Start-Service bthserv } | |
Add-Type -AssemblyName System.Runtime.WindowsRuntime | |
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] | |
Function Await($WinRtTask, $ResultType) { | |
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType) | |
$netTask = $asTask.Invoke($null, @($WinRtTask)) | |
$netTask.Wait(-1) | Out-Null |
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
// Tag → Filename | |
$replace($caps(%artist%),', ', & ,Ft,feat.,Vs,vs.) - ''$caps($replace($lower($replace(%title%,'',’)''),' (original mix)',,extended ,, mix, remix,' (',''' (','(','[',')',']',']''',']',' [mix]',,' [remix]',),''' [') |
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
$.fn.DataTable.ext.pager.numbersWithEllipses = function (page, pages) { | |
if (pages === 1) { | |
return []; | |
} | |
var numbers = [], | |
buttons = 3, | |
withEllipses = true; | |
var range = function (len, start) { |
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
GEOGRAPHY | |
1. Which US state has the longest coastline? (Alaska) | |
2. How many timezones are there in China? (1) | |
3. What is the capital of Switzerland? (Bern) | |
4. What is the largest island in the world? (Greenland) | |
5. Which country is the largest producer of coffee? (Brazil) | |
6. What is the national sport of Canada? (Lacrosse) | |
7. What country spans all four hemispheres? (Kiribati) | |
8. What is the most northerly capital city in the world? (Reykjavik) | |
9. What country has three capital cities? (South Africa) |
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 | |
/** | |
* Generate two arrays: | |
* Values array: a list of elements as they appear in the diff | |
* Mask array: 0: unchanged, -1: removed, 1: added | |
* | |
* @param string $from | |
* @param string $to | |
* @return array |
NewerOlder