This file contains hidden or 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
; Screenshot (you still have to paste it into paint or whatever) | |
>#+3::Send {PrintScreen};^+3 | |
>#+4::Send {PrintScreen};^+4 | |
<#+3::Send {PrintScreen};^+3 | |
<#+4::Send {PrintScreen};^+4 |
This file contains hidden or 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 | |
function execAndPipeOutput($cmd) | |
{ | |
echo PHP_EOL; | |
$proc = proc_open($cmd, [['pipe','r'],['pipe','w'],['pipe','w']], $pipes); | |
while(($line = fgets($pipes[1])) !== false) { | |
fwrite(STDOUT, $line); | |
} | |
while(($line = fgets($pipes[2])) !== false) { |
This file contains hidden or 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
/* | |
// Example usage | |
var myElement = document.getElementById('my-element'); | |
var modalFadeInDuration = 300; | |
focusAndOpenKeyboard(myElement, modalFadeInDuration); // or without the second argument | |
*/ | |
function focusAndOpenKeyboard(el, timeout) { | |
if(!timeout) { | |
timeout = 100; |
This file contains hidden or 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 | |
/** | |
* Instructions: | |
* In an Object Resolve function, use the fourth argument ($info) | |
* | |
* Example usage: | |
* | |
* $fieldInQuery = GraphQLQueryChecker::isFieldInQuery('some.nested.fieldname', $info); | |
* |
NewerOlder