#AgularJs Tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| img.grayscale.disabled { | |
| filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
| -webkit-filter: grayscale(0%); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='UTF-8' /> | |
| <link rel='stylesheet' href='style.css' /> | |
| </head> | |
| <body> | |
| <form id="myform"> | |
| <input type="text" name="login" id="login" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = angular.module('app', []); | |
| app.directive('yaTree', function () { | |
| return { | |
| restrict: 'A', | |
| transclude: 'element', | |
| priority: 1000, | |
| terminal: true, | |
| compile: function (tElement, tAttrs, transclude) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Produces a dump on the state of WordPress when a not found error occurs */ | |
| /* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */ | |
| ini_set( 'error_reporting', -1 ); | |
| ini_set( 'display_errors', 'On' ); | |
| echo '<pre>'; | |
| add_action( 'parse_request', 'debug_404_rewrite_dump' ); | |
| function debug_404_rewrite_dump( &$wp ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var uuids = angular.module('uuids', []); | |
| uuids.factory("rfc4122", function () { | |
| return { | |
| newuuid: function () { | |
| // http://www.ietf.org/rfc/rfc4122.txt | |
| var s = []; | |
| var hexDigits = "0123456789abcdef"; | |
| for (var i = 0; i < 36; i++) { | |
| s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * UUID class | |
| * | |
| * The following class generates VALID RFC 4122 COMPLIANT | |
| * Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
| * | |
| * UUIDs generated validates using OSSP UUID Tool, and output | |
| * for named-based UUIDs are exactly the same. This is a pure | |
| * PHP implementation. |
A contacts list based on a video from Google's Material Design spec.
Forked from Kyle Edwards's Pen Meaningful Transitions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** waterfall | |
| * | |
| * Simple helper to call a serie of asynchronous functions. | |
| * Each result from a function will be passed as arguments to the next one. | |
| * Callback use the node.js format. | |
| * Syntaxe: | |
| * - function *init* = waterfall(array *funcs*, function *done*) | |
| * - array *funcs* = [ function(..., function *next*), ... ] | |
| * - function *next* = function(*err*, ...) | |
| * - function *done* = function(*err*, ...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('helperFunctions', []) | |
| .factory('throttle', ['$timeout', function ($timeout) { | |
| return function (delay, no_trailing, callback, debounce_mode) { | |
| var timeout_id, | |
| last_exec = 0; | |
| if (typeof no_trailing !== 'boolean') { | |
| debounce_mode = callback; | |
| callback = no_trailing; | |
| no_trailing = undefined; |