Skip to content

Instantly share code, notes, and snippets.

@syads321
syads321 / gist:66fae9c40c5ff9ded6d4
Last active August 29, 2015 14:02
Extract Image Color
https://github.com/thephpleague/color-extractor
http://stackoverflow.com/questions/3468500/detect-overall-average-color-of-the-picture?lq=1
http://stackoverflow.com/questions/7727843/detecting-colors-for-an-image-using-php?lq=1
@syads321
syads321 / gist:5309f17d98c28aaa4b40
Created June 16, 2014 05:17
Masonry Angular JS
http://embed.plnkr.co/Vp7MXg/preview
http://plnkr.co/edit/ZuSrSh?p=preview
@syads321
syads321 / gist:afe8bd9615add0589ab6
Last active August 29, 2015 14:03
Like google loading indicator
<!DOCTYPE html><html class=''>
<head><meta charset='UTF-8'>
<meta name="robots" content="noindex">
<style>/**
* Document defaults
*/
body {
text-align: center;
background-color: #eee;
@syads321
syads321 / gist:aae7678011cae9415570
Created June 26, 2014 06:04
Angular Advanced Filter
Angular filter hide instead clear.
@syads321
syads321 / gist:ba4ecaffd33c6af2bb7c
Created June 27, 2014 03:57
Angular custom filter
http://fiddle.jshell.net/TahmidTanzim/N9Vqk/show/
@syads321
syads321 / gist:b16329429752fadff286
Created June 27, 2014 09:45
Custom filter hide show
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>AngularJS: Simple Custom Filter - jsFiddle demo by TahmidTanzim</title>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.4/angular.min.js'></script>
@syads321
syads321 / gist:c2486252424b20758800
Last active August 29, 2015 14:03
Get average color php
http://stackoverflow.com/questions/7727843/detecting-colors-for-an-image-using-php?lq=1
https://github.com/thephpleague/color-extractor
xspaz
ceptivo
percettivo
lodsy
loudsee
fringeup
var raf = window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame;
Bridge.animLoop = function( render, element ) {
var running, lastFrame = +new Date;
function loop( now ) {
if ( running !== false ) {
raf ?
raf( loop, element ) :
@syads321
syads321 / gist:eeeda739c631ebdc8f69
Created July 2, 2014 08:38
Create PDF with laravel
http://imron02.wordpress.com/2014/06/08/laravel-4-create-pdf-use-dompdf/