Skip to content

Instantly share code, notes, and snippets.

View bellaajhabib's full-sized avatar

Habib Bellaaj bellaajhabib

View GitHub Profile
@bellaajhabib
bellaajhabib / app.component.ts
Created October 30, 2020 00:39
*** Extraits de code : Premiers pas avec Angular. ***
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}}</h1>`,
})
export class AppComponent { name = 'Angular'; }
console.clear();
var source=Rx.Observable.interval(100).take(10).flatMap(x=>Rx.Observable.interval(5000).take(10));
source.subscribe(x=>console.log(x));
@bellaajhabib
bellaajhabib / DataBase
Created September 20, 2016 21:47
PDO Connextion
<?php
class Database
{
private $host = 'localhost';
private $user = 'root';
private $pass = '';
private $dbname = 'myblog';
private $dbh;
@bellaajhabib
bellaajhabib / gist:2da073ccefe05b3c80c3
Last active August 27, 2015 13:19 — forked from codemasta92/gist:1555328
Button class with EaselJS
(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;
<?php
namespace Yoda\EventBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{