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
extends Camera2D | |
# Note: Limit smoothing and position smoothing must be disabled | |
const V2_2: Vector2 = Vector2.ONE * 2 | |
const PAN_SPEED: int = 2000 | |
const PAN_SMOOTHING: int = 8 | |
# How far from the edge of the screen panning starts (% of screen size) | |
const EDGE_PAN_THRESHOLD_MIN: Vector2 = Vector2(0.06, 0.12) |
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
#!/bin/bash | |
# This script takes a remote repository and merges it into | |
# the current one as a subdirectory | |
set -e | |
if [ -z "$1" ] | |
then | |
echo "Usage:" |
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
$ docker logs -fn 10 my_container_name 2>&1 | grep -v -e "] LOG:" -e "] DETAIL:" -e "] STATEMENT:" |
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
/\s+"""[\s\S]*?"""/sg |
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 | |
namespace modules; | |
use Craft; | |
use craft\commerce\elements\Subscription; | |
use DateTime; | |
use Twig\Error\LoaderError; | |
use Twig\Error\SyntaxError; | |
use yii\base\Module; |
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 { getCurrentUrl, exec, subscribers } from 'preact-router'; | |
import { useEffect, useState } from 'preact/hooks'; | |
/** | |
* Hook to check if the given path matches the current URL | |
* | |
* const [matches, { path }] = useMatch('/my/:path?'); | |
* | |
* @param {string} path - The path to check against | |
* @return {[boolean, Object]} |
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
country | country_code | currency | unit_text | symbol | |
---|---|---|---|---|---|
New Zealand | NZ | NZD | New Zealand Dollar | $ | |
Cook Islands | CK | NZD | New Zealand Dollar | $ | |
Niue | NU | NZD | New Zealand Dollar | $ | |
Pitcairn | PN | NZD | New Zealand Dollar | $ | |
Tokelau | TK | NZD | New Zealand Dollar | $ | |
Australian | AU | AUD | Australian Dollar | $ | |
Christmas Island | CX | AUD | Australian Dollar | $ | |
Cocos (Keeling) Islands | CC | AUD | Australian Dollar | $ | |
Heard and Mc Donald Islands | HM | AUD | Australian Dollar | $ |
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
ngrok http -region=eu -host-header=my-dev-domain.local 443 |
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
ngrok http dev.example.com:443 -host-header=dev.example.com -region=eu |
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
*/15 * * * * python /path/to/ddns.py |
NewerOlder