Skip to content

Instantly share code, notes, and snippets.

View jodaka's full-sized avatar

Anton Kudris jodaka

View GitHub Profile
(function(angular) {
'use strict';
var directives = angular.module('app.directives', []);
directives.directive('ngTap', function() {
return function(scope, element, attrs) {
var tapping;
tapping = false;
element.bind('touchstart', function(e) {
@jodaka
jodaka / handlebars.object_helpers.js
Last active December 17, 2015 14:49 — forked from strathmeyer/handlebars.object_helpers.js
now works with latest version of handlebars
// HELPER: #key_value
//
// Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}}
//
// Iterate over an object, setting 'key' and 'value' for each property in
// the object.
Handlebars.registerHelper( "key_value", function ( obj, options ) {
var buffer = "",
key;
/*
This library was developed by Will Honey.
It is licensed under the GPLv3 Open Source License
This library requires the underscore library found at http://documentcloud.github.com/underscore/
This library requires the underscore string library found at http://edtsech.github.com/underscore.string/
This library requires the support of localStorage. Updates could be easily made to change that.
*/
/* jslint adsafe: false, devel: true, regexp: true, browser: true, vars: true, nomen: true, maxerr: 50, indent: 4 */