# 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/directory
This file contains 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
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"GitGutter", | |
"Package Control", | |
"SideBarEnhancements", |
Once 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
This file contains 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
# 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 |
This file contains 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', ['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/
This file contains 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
'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.
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
// Works on Chrome | |
// Doesn't work on Firefox, need to transpile first. | |
;(function (angular) { 'use strict' | |
// Main Controller Class | |
class MainCtrllr { | |
constructor ($scope, $window, $timeout, pouchDB) { | |
// Initialize Angular JS Services | |
this.$scope = $scope |