Skip to content

Instantly share code, notes, and snippets.

View pulponair's full-sized avatar

Nikolas Hagestein pulponair

View GitHub Profile
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
Serial.println("ON");
@pulponair
pulponair / gist:b64a43dcba126a90fb1c72204215188f
Created February 23, 2019 09:46
TYPO3 NewsRepository Proxy
plugin.tx_news {
persistence {
classes {
GeorgRinger\News\Domain\Model\News {
subclasses {
Vendor\Events\Domain\Model\Event = Vendor\Events\Domain\Model\Event
Vendor\Events\Domain\Model\Course = Vendor\Events\Domain\Model\Course
}
}
@pulponair
pulponair / bla.js
Last active September 5, 2017 20:40
var MyModul = (function () {
var pub = {}, SubModule, SubObject = {}
SubObject = {
myProperty: 'test',
doSomething: function(callback) {
console.log('SubObject:doSomething' + this.myProperty);
callback();
}
UPDATE
tx_foo_domain_model_bar s,
sys_file_reference r,
sys_file f
SET
s.sorting = CAST(SUBSTRING(f.name,6,3) AS UNSIGNED) * 256
WHERE
s.record_type=1 AND
r.tablenames = 'tx_foo_domain_model_bar' AND
r.fieldname = 'image' AND
$constrains = array();
$query = $this->createQuery();
if ($wtf = $demand->getWhatver()) {
constrains[] = $query->equals('title', $wtf);
}
if ....
usw.
$query->matching($query->logicalAnd(
public function generatePdfFromHtml($html) {
$descriptorSpecification = array(
0 => array('pipe', 'r'), // stdin
1 => array('pipe', 'w'), // stdout
2 => array('pipe', 'w'), // stderr
);
$process = proc_open($this->wkhtmltopdf . ' ' . implode(' ', $this->wkhtmltopdfParameters). ' - -',
$descriptorSpecification, $pipes);
fwrite($pipes[0], $html);
public function generatePdfFromHtml($html) {
$descriptorSpecification = array(
0 => array('pipe', 'r'), // stdin
1 => array('pipe', 'w'), // stdout
2 => array('pipe', 'w'), // stderr
);
$process = proc_open($this->wkhtmltopdf . ' ' . implode(' ', $this->wkhtmltopdfParameters). ' - -',
$descriptorSpecification, $pipes);
fwrite($pipes[0], $html);
vagrant@wheezy-amd64:~/gitlab-kanban-all/wsserver$ ./rel/wsserver/bin/wsserver foreground
Exec: /home/vagrant/gitlab-kanban-all/wsserver/rel/wsserver/erts-5.9.1/bin/erlexec -noinput +Bd -boot /home/vagrant/gitlab-kanban-all/wsserver/rel/wsserver/releases/1/wsserver -config /home/vagrant/gitlab-kanban-all/wsserver/rel/wsserver/releases/1/sys.config -args_file /home/vagrant/gitlab-kanban-all/wsserver/rel/wsserver/releases/1/vm.args -- foreground
Root: /home/vagrant/gitlab-kanban-all/wsserver/rel/wsserver
=INFO REPORT==== 27-Aug-2015::09:18:08 ===
application: cowboy
exited: {shutdown,{cowboy_app,start,[normal,[]]}}
type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,cowboy,{shutdown,{cowboy_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,cowboy,{shutdown,{cowboy_app,start,[normal,[]]}}})
<?php
$__commonConfig = array(
'init' => array(
'enableCHashCache' => TRUE,
'adminJumpToBackend' => TRUE,
'enableUrlDecodeCache' => TRUE,
'enableUrlEncodeCache' => TRUE
),
'pagePath' => array(
<f:render section="categoryList" arguments="{categories: categories, isFirstLevel: 1}" />
<f:section name="categoryList">
<ul>
<f:for each="{categories}" as="category">
<li>
{category.title}
<f:if condition="{category.children}">
<f:render section="categoryList" arguments="{categories: category.children, isFirstLevel: 0}" />
</f:if>