Skip to content

Instantly share code, notes, and snippets.

View theodorDiaconu's full-sized avatar
💪
work smart, and hard.

Theodor Diaconu theodorDiaconu

💪
work smart, and hard.
View GitHub Profile
@theodorDiaconu
theodorDiaconu / methodContainer.js
Created August 31, 2016 14:54
React Meteor Method Container
import React from 'react';
/**
* Method container for React. Very helpful to avoid boilerplate code.
*
* export default methodContainer((props) => { method, param }, Component)
* Will send {error, data, ready} as props to the specified Component
*
* On behalf of www.drivindu.com
*
root@datati [~]# pecl install zip
downloading zip-1.10.2.tgz ...
Starting to download zip-1.10.2.tgz (236,912 bytes)
.................................................done: 236,912 bytes
61 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
<script>
$(function(){ // functie care e rulata odata ce este incarcata pagina
$(".datepicker").datepicker(); // va atasa evenimentul pe toate inputurile care au clasa datepicker
});
</script>
<?php
public function findNewTasksForUser($id)
{
return
$this->createQueryBuilder('t')
->where('t.taskAdmin = :id AND t.properties & :admin_new_message = :admin_new_message
AND t.properties & :admin_new_task = :admin_new_task')
->orWhere('t.taskDuer = :id AND t.properties & :duer_new_message = :duer_new_message
AND t.properties & :duer_new_message = :duer_new_message')