Skip to content

Instantly share code, notes, and snippets.

View cblanquera's full-sized avatar
🌪️
Breaking Things.

Christian Blanquera cblanquera

🌪️
Breaking Things.
View GitHub Profile
@cblanquera
cblanquera / Create.php
Created December 4, 2015 12:21
A comparison of Node and PHP
<?php //-->
/**
* A Custom Project
*
* Copyright and license information can be found at LICENSE
* distributed with this package.
*/
namespace Eve\Job\Product;
<?php //-->
return array(
'singular' => 'Profile', //for pages and messages
'plural' => 'Profiles', //for pages and messages
'rest' => array(
'update', //add a Rest/Profile/Update Action
'search', //add a Rest/Profile/Search Action
'detail' //add a Rest/Profile/Detail Action
),
'page' => array(
@cblanquera
cblanquera / composer.json
Last active October 2, 2015 09:45
Training Start
{
"minimum-stability": "dev",
"require": {
"eve-php/framework": "dev-master",
"openovate/eden-middleware-htpasswd": "dev-master"
}
}
CHECKOUT API
-------------------------
POST api.buysana.com/rest/checkout
client_id=123&client_secret=123&currency&item[0][name]=Sample+Item&item[0][price]=123.45&shipping=1 ...
ITEMS
--------
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"><head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Sets initial viewport load and disables zooming -->
<title>Buy Balla Powder Talc for Men - 3 Pack on Salaaap!</title>
<!-- MOBILE TAGS -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, height=device-height, width=device-width">
@cblanquera
cblanquera / gist:6078641
Created July 25, 2013 10:48
isotope soft hard search results logic
$('#agency-search-form').submit(function(e) {
e.preventDefault();
var agencies = [];
$('div.select-agency li input:checked').each(function() {
agencies.push(this.value);
});
var filter = [];
$('div.select-specialism li input:checked, '