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
public function process() { | |
$beforeQuery = $this->beforeQuery(); | |
if ($beforeQuery !== true) { | |
return $this->failure($beforeQuery); | |
} | |
$data = $this->getData(); | |
$list = $this->iterate($data); | |
$datetime = new DateTime('Europe/London'); | |
$curtime = $datetime->format('Y\-m\-d\ H:i:s'); |
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
MERGE PR - Have issued pr to upstream branch: | |
1. Open target repo in cmd | |
2. git checkout develop | |
3. git checkout -b test-branch-name develop | |
*create and switch to a new branch, from develop to test the pr changes | |
4. git pull https://github.com/account/fork-repo.git pr-branch-name | |
*pull the whole pr branch into test branch | |
5. Review changes in test branch | |
6. git checkout develop |
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
&where=`{ "template:IN" : [ 1,2,3 ] } | |
&where=`{ "template:NOT IN" : [ 1,2,3 ] } | |
&where=`[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]` |
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
[[pdoResources? | |
&parents=`537` | |
&limit=`0` | |
&showHidden=`0` | |
&hideContainers=`1` | |
&sortby=`longtitle` | |
&sortdir=`ASC` | |
&tplWrapper=`@INLINE N/A==na||[[+output]]` | |
&tpl=`@INLINE [[+longtitle]]==[[+id]]||` | |
&tplLast=`@INLINE [[+longtitle]]==[[+id]]` |
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
# Option One | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("input:text").each(function () { | |
var v = this.value; // store default value | |
$(this).blur(function () { | |
if (this.value.length == 0) this.value = v; // if input is empty, reset value to default | |
}) | |
.focus(function () { | |
this.value = ""; // when input is focused, clear its contents |
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
# Add subtitle track | |
-add "input.mp4" -add "english-subs.srt:hdlr=sbtl:group=2:layer=-1:lang=en:name=English" -new "output.mp4" | |
# Add multiple subtitle tracks | |
-add "input.mp4" -add "english-subs.srt:hdlr=sbtl:group=2:layer=-1:lang=en:name=English" -add "french-subs.srt:hdlr=sbtl:group=2:layer=-1:lang=fr:disabled:name=French" -new "output.mp4" |
NewerOlder