Skip to content

Instantly share code, notes, and snippets.

@oi-sendai
oi-sendai / gist:485f38bd1d855329f704
Created July 7, 2015 00:03
ion.RangeSlider Angular Directive
// USAGE <ionslide max="{{total}}" value="{{ingredient.value}}" sku="{{ingredient.sku}}" go="ingredient.value" onChange="fun(ingredient)" onFinish=""></ionslide>
.directive('ionslide', function() {
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
max: '@max',
value: '@value',
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@oi-sendai
oi-sendai / gist:61eea5ff838d496d46f5
Created November 10, 2014 14:34
Checkbox Persistance Directive with Firebase
//html
/*
<tasted beer="{{beer.$id}}" />
*/
var TastedDirective = angular.module('TastedDirective', []);
TastedDirective
.directive( 'tasted', function($rootScope, $q, TastedFactory) {
return {