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()] | |
# [string] | |
$CommitHash, | |
$DeploymentTime | |
) | |
$environmentFiles = @( |
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 * as ts from 'typescript'; | |
function whatTypeOfNodeIsIt(node: ts.Node) { | |
const functions = [ | |
ts.isNumericLiteral, | |
ts.isBigIntLiteral, | |
ts.isStringLiteral, | |
ts.isJsxText, | |
ts.isRegularExpressionLiteral, | |
ts.isNoSubstitutionTemplateLiteral, |
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
export async function loadStyleSheets(items: StyleSheetLoadingItem[]) { | |
items.forEach((item) => { | |
loadStyleSheet(item.stylePath, item.elementName); | |
}); | |
} | |
async function loadStyleSheet(styleModule: Promise<{ default: string }>, elementName: string = '') { | |
// Import style if not already done | |
if (document.getElementById(elementName) == null) { | |
// @ts-ignore |
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
<div class="h-screen flex overflow-hidden bg-gray-100"> | |
<div class="hidden md:flex md:flex-shrink-0"> | |
<div class="flex flex-col w-64 h-screen text-white"> | |
<div class="flex flex-col flex-grow bg-black p-4 border-r-2 overflow-y-auto"> | |
<div class="my-20">Outer Sidebar</div> | |
<div class="my-20">Outer Sidebar</div> | |
<div class="my-20">Outer Sidebar</div> | |
<div class="my-20">Outer Sidebar</div> | |
<div class="my-20">Outer Sidebar</div> |
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
export interface Configuration { | |
logging?: boolean; | |
} |
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 | |
/** | |
* @var \ProcessWire\Config $config | |
* @var \ProcessWire\Fieldgroups $fieldgroups | |
* @var \ProcessWire\Fields $fields | |
* @var \ProcessWire\Languages $languages | |
* @var \ProcessWire\Modules $modules | |
* @var \ProcessWire\Page $page | |
* @var \ProcessWire\Pages $pages | |
* @var \ProcessWire\Paths $urls |
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 | |
include_once "path/to/import.php"; | |
include_once "path/to/export.php"; | |
// call the functions like this | |
if (isset($_GET["export"])) { | |
$forceDownload = isset($_GET["force"]); | |
$debug = isset($_GET["debug"]); | |
renderExport($pages, $forceDownload, $debug); |
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
on runme(message) | |
if (item 1 of message = 191) and (item 2 of message = 0) and (item 3 of message = 65) then | |
tell application "Spotify" | |
next track | |
end tell | |
end if | |
if (item 1 of message = 191) and (item 2 of message = 0) and (item 3 of message = 63) then | |
tell application "Spotify" | |
previous track | |
end tell |