Skip to content

Instantly share code, notes, and snippets.

View m3doune's full-sized avatar

Mame Medoune DIOP m3doune

  • Dakar, Senegal
View GitHub Profile
m3doune / date_util.erl
Created January 14, 2020 16:15 — forked from zaphar/date_util.erl
set of utility functions that wrap the calendar module and erlangs now() date() and time() functions
epoch() ->
epoch_hires() ->
m3doune / cache-json.php
Created February 5, 2019 10:55 — forked from ScottPhillips/cache-json.php
Cache Remote JSON Feed
* API Request Caching
* Use server-side caching to store API request's as JSON at a set
* interval, rather than each pageload.
* @arg Argument description and usage info
m3doune / .gitlab-ci
Created June 12, 2018 13:35 — forked from Slauta/.gitlab-ci
electron-updater from private repo
- build
image: slauta93/electron-builder-win
stage: build
m3doune / 1.How to easily implement a REST API with oAuth2 Symfony2 : How to easily implement a REST API with oAuth2 (for normal guys)

It's still a work in progress...


As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.

Ok, you know the bundles

You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :

m3doune /
Created February 8, 2018 11:48 — forked from coolaj86/
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set "Your Name"
npm set ""
npm set ""

npm adduser

m3doune / app.js
Created November 1, 2017 19:47 — forked from dskanth/app.js
Server file for Private chat using node.js and
var app = require('express').createServer()
var io = require('').listen(app);
var fs = require('fs');
// routing
app.get('/', function (req, res) {
res.sendfile(__dirname + '/chat.html');
m3doune / nodejs-rfid.js
Created September 8, 2017 12:32 — forked from basham/nodejs-rfid.js
Use NodeJS to read RFID ids through the USB serial stream.
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
m3doune /
Created June 8, 2017 10:00
cloud9 symfony apache config server

Symfony on Cloud9


  • DB Host: or '' empty string. Result of function getenv('IP')
  • DB Password: YOUR_PASSWORD
  • DB Name: c9