Skip to content

Instantly share code, notes, and snippets.

View souflam's full-sized avatar
🏠
Working from home

lamnizeh soufiane souflam

🏠
Working from home
View GitHub Profile
@souflam
souflam / gist:6048451
Created July 21, 2013 12:45
Hello ACE
<?php
echo 'Hello ACE Editor :) ';
?>
@souflam
souflam / 0_reuse_code.js
Created June 28, 2017 11:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@souflam
souflam / Example_cast.php
Last active March 8, 2018 23:20
cast a Object to a class
<?php
class Foo {
public $item ;
function __construct($item = '') {
$this->item = $item;
}
public function getItem() {
return $this->item;
<div class="animated fadeIn">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<strong *ngIf="editing">Modification d'un utilisateur</strong>
<strong *ngIf="!editing">Création d'un utilisateur</strong>
</div>
<form *ngIf="user" [formGroup]="form" enctype="multipart/form-data" (ngSubmit)="onSubmit(form.value)">