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
if ! [ -x "$(command -v openvpn)" ]; then | |
echo "openvpn is not installed on this machine" | |
echo "cannot continue" | |
exit | |
fi | |
read -p "project name (lowercase): " -r project | |
make_client() { | |
./easyrsa build-client-full $1 nopass &>/dev/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
<?php | |
$starttime = microtime(true); | |
// PAGE CODE GOES HERE | |
try{ | |
$endtime = microtime(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
import { isAndroid, isIOS } from '@nativescript/core/platform' | |
import { layout } from '@nativescript/core/utils' | |
import { TextField } from '@nativescript/core/ui/text-field' | |
if(isIOS){ | |
let UITextFieldImpl = (function (_super) { | |
__extends(UITextFieldImpl, _super) | |
function UITextFieldImpl() { | |
return _super !== null && _super.apply(this, arguments) || this |
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
/* | |
This snippet provides a polyfill for zooming using mousewheel on Chrome, Firefox & IE. | |
It adds the method 'enableCompatibilityZoom' on the mapkit.Map prototype. | |
usage: | |
map.enableCompatibilityZoom(smooth, delta) |