A simple Jekyll breadcrumb without plugin.
{% capture url_tree %}
{{ page.url | replace: '/', ' ' | strip }}
{% endcapture %}| (function () { | |
| function onLoad() { | |
| return function imageDefer() { | |
| var defer = document.getElementsByTagName('img'); | |
| (defer && defer.length < 0) && Object.keys(defer).forEach(function (i) { | |
| (defer[i].getAttribute('data-src')) && | |
| defer[i].setAttribute('src', defer[i].getAttribute('data-src')); | |
| }); | |
| } | |
| } |
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "GitGutter", | |
| "Package Control", | |
| "SideBarEnhancements", |
# display the directory stack vertically, prefixing each
# entry with its index in the stack.
$ dirs -v
# cd and push the path to the directory stack.
$ pushd /path/to/directoryOnce in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| # Pico+ | |
| DialerFramework # Install Dialer Framework | |
| CalSync # Install Google Calendar Sync (except if Google Calendar is being installed) | |
| GoogleTTS # Install Google Text-to-Speech (Micro+ on 5.0-, Pico+ on 6.0+) | |
| PackageInstallerGoogle # Install Google Package Installer | |
| # Nano+ | |
| BatteryUsage # Install Device Health Services (7.1+) | |
| FaceDetect # Install Face Detect library for photo apps |
| var app = angular.module('app', ['firebase']); | |
| app.controller('ctrl', function($scope, $pageArray) { | |
| $scope.pageItems = $pageArray(ref, 'number'); | |
| }); | |
| app.factory('$pageArray', function($firebaseArray) { | |
| return function(ref, field) { | |
| // create a Paginate reference | |
| var pageRef = new Firebase.util.Paginate(ref, field, {maxCacheSize: 250}); |
Taken from post:
Nested Routes with Express: Keeping your routes separate while creating a nested routing structure.
--http://katieleonard.ca/blog/2016/nested-routes-with-expressjs/
| 'use strict'; | |
| const local = (gmt) => { | |
| const now = new Date() | |
| return new Date((now.getTime() + (now.getTimezoneOffset() * 60000)) + (3600000 * gmt)) | |
| } | |
| console.log(local('+2')) //--> Thu Jan 05 2017 22:07:51 GMT+0200 (EET) |
This is a basic application template for AngularJS using the Angular Material library
A Pen by Ajay Viswanathan on CodePen.