Skip to content

Instantly share code, notes, and snippets.

@lekev
lekev / test.php
Last active April 24, 2019 16:23
<?php echo("hello") ?>
@lekev
lekev / config.js
Created November 1, 2015 19:59 — forked from pywebdesign/config.js
Simple JsonAPi adapter for Restangular
// it require either lodash or underscorejs
.config(function(RestangularProvider) {
// add a response interceptor
RestangularProvider.addResponseInterceptor(function(data, operation, what, url, response, deferred) {
extractedData = data.data;
extractedData.meta = data.meta;
extractedData.included = data.included;
function _apply(elem, fct){