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
#Requires AutoHotkey v2.0 | |
; On ctrl+middle click, send media play/pause | |
^MButton::SendInput "{Media_Play_Pause}" | |
; on ctrl+mb5, send media next | |
^XButton2::SendInput "{Media_Next}" | |
; on ctrl+mb4, send media prev | |
^XButton1::SendInput "{Media_Prev}" |
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 | |
use SilverStripe\CMS\Controllers\ContentController; | |
use SilverStripe\Core\Flushable; | |
use SilverStripe\Core\Path; | |
use SilverStripe\View\Requirements; | |
use SilverStripe\View\ThemeResourceLoader; | |
class PageController extends ContentController implements Flushable | |
{ |
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 fs = require('fs'); | |
const path = require('path'); | |
/* Config */ | |
const days = 7; | |
const protectedFileName = `items older than ${days} day${ | |
days == 1 ? '' : 's' | |
} are automatically deleted`; | |
const shouldCreateProtectedFile = true; |
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 | |
// Get more info and examples by running "php-cs-fixer describe rule_name" | |
$fixer = PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR2' => true, | |
/* | |
* Each line of multi-line DocComments must have an asterisk [PSR-5] and must |
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); | |
/** | |
* Similar to parse_str, parses a query string and returns the resulting array. | |
* Does not replace '.' and ' ' with underscores. | |
* | |
* @param string $string | |
* @return array | |
*/ |