Skip to content

Instantly share code, notes, and snippets.

Mohamed Habib Bellaaj bellaajhabib

Block or report user

Report or block bellaajhabib

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flatMap
console.clear();
var source=Rx.Observable.interval(100).take(10).flatMap(x=>Rx.Observable.interval(5000).take(10));
source.subscribe(x=>console.log(x));
View DataBase
<?php
class Database
{
private $host = 'localhost';
private $user = 'root';
private $pass = '';
private $dbname = 'myblog';
private $dbh;
@bellaajhabib
bellaajhabib / gist:2da073ccefe05b3c80c3
Last active Aug 27, 2015 — forked from codemasta92/gist:1555328
Button class with EaselJS
View gist:2da073ccefe05b3c80c3
(function(k) {
var Button = function(a, x, y) {
this.initialize(a,x,y)
},p = Button.prototype = new DisplayObject;
p.left = 0;
p.top = 0;
p.ypos = 0;
p.image = null;
p.snapToPixel = true;
View DefaultControllerTest.php
<?php
namespace Yoda\EventBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
You can’t perform that action at this time.