dhcp-script=/etc/detect_new_device.sh
Reference:
ctrlPressed = false | |
keyPressed = false | |
layoutWatcher = hs.eventtap.new({hs.eventtap.event.types.flagsChanged, hs.eventtap.event.types.keyUp}, function(e) | |
local flags = e:getFlags() | |
local keyCode = e:getKeyCode() | |
if flags.cmd and keyCode == 0x36 and not (flags.alt or flags.shift or flags.ctrl or flags.fn) then | |
ctrlPressed = true | |
keyPressed = false | |
elseif ctrlPressed and not (flags.cmd or flags.alt or flags.shift or flags.ctrl or flags.fn) and not keyPressed then |
<?php | |
function wp_date_localised($format, $timestamp = null) { | |
// This function behaves a bit like PHP's Date() function, but taking into account the Wordpress site's timezone | |
// CAUTION: It will throw an exception when it receives invalid input - please catch it accordingly | |
// From https://mediarealm.com.au/ | |
$tz_string = get_option('timezone_string'); | |
$tz_offset = get_option('gmt_offset', 0); | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<ng-template> | |
<button class="tab-button" | |
(click)="login()">{{loginText}}</button> | |
<button class="tab-button" | |
(click)="signUp()">{{signUpText}}</button> | |
</ng-template> |
dhcp-script=/etc/detect_new_device.sh
Reference:
<?php // Don't copy this line if you are inserting in a file that has it already. | |
/** | |
* ACF Options Page | |
* | |
* Instructions: | |
* Add more languages to the array below: $languages | |
* | |
* @author: Zeshan Ahmed <https://zeshanahmed.com/> | |
*/ |
<?php | |
/** | |
* Save Gravity Forms event registration file to media library. | |
*/ | |
class WDSP_Event_Form { | |
/** | |
* Instance of class. | |
* | |
* @var class |
<?php | |
/* ————————————————————————— */ | |
/* ACF Inline SVGs | |
/* ————————————————————————— */ | |
$repeater = 'repeater_field_name' | |
if ( have_rows( $repeater ) ): ?> | |
<section class="content-main"> | |
<div class="container"> <?php |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
//Deregister Gravity Stylesheets and Scripts from specific pages | |
add_action("gform_enqueue_scripts", "deregister_scripts"); | |
function deregister_scripts(){ | |
//Change this conditional to target whatever page or form you need. | |
if(is_front_page()) { | |
<?php | |
namespace Wader; | |
final class Mbstring { | |
/** | |
* upcase first char in string | |
* @param string $str | |
* @return string | |
*/ |