Skip to content

Instantly share code, notes, and snippets.

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

amin007 amin007

🏠
Working from home
View GitHub Profile
<html>
<head>
<style type="text/css">
table table {
width: 600px !important;
}
table div + div { /* main content */
width: 65%;
float: left;
}
@amin007
amin007 / rubber stamp
Last active August 29, 2015 14:21 — forked from nawawi/rubber stamp
<?php
$img = imagecreatetruecolor(200, 200);
// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
$red = imagecolorallocate($img, 255, 0, 0);
$green = imagecolorallocate($img, 0, 255, 0);
$blue = imagecolorallocate($img, 0, 0, 255);
$blue1 = imagecolorallocate($img, 102, 104, 230);
define(['jquery', 'underscore', 'backbone', 'text!templates/category/categoryIndexTemplate.html'], function($, _, Backbone, categoryIndexTemplate) {
var CategoryModel = Backbone.Model.extend({});
var CategoryCollection = Backbone.Collection.extend({
model: CategoryModel,
url: "https://izify.com/api/izify-api/admin/get_all_categories.php?merchantId=" + localStorage.merchantId,
parse: function(data) {
// Return people object which is the array from response
return data.tbl_category;
}
});