Skip to content

Instantly share code, notes, and snippets.

View wlalele's full-sized avatar

Amine Daï wlalele

View GitHub Profile
@wlalele
wlalele / chphp
Created November 16, 2016 09:27
change php version used by the system
#!/bin/bash
sudo rm /etc/alternatives/php
sudo ln -s /usr/bin/php$1 /etc/alternatives/php
php --version
@wlalele
wlalele / jhr.js
Last active December 7, 2016 13:23 — forked from Zirak/jhr.js
JSONHttpRequest
/**
* Perform a JSON Http Request via XMLHttpRequest
* @param method
* @param url
* @param data
* @param callback
* @returns {XMLHttpRequest}
*/
var jhr = function ( method, url, data, callback ) {
var xhr = new XMLHttpRequest();
@wlalele
wlalele / installDoc.md
Last active October 10, 2016 13:03 — forked from faboo03/installDoc.md
Install Apache With PHP-FPM
@wlalele
wlalele / vsm.js
Last active August 29, 2015 14:22 — forked from skrat/vsm.js
/**
* Extended version of THREE.ShadowMapPluginVSM using VSM shadow mapping.
* @author Dusan Maliarik
*/
THREE.ShadowMapPluginVSM = function ( ) {
var _gl,
_renderer,
_depthMaterial, _depthMaterialMorph, _depthMaterialSkin, _depthMaterialMorphSkin,