Skip to content

Instantly share code, notes, and snippets.

View dennis-8's full-sized avatar

Dennis N. dennis-8

View GitHub Profile
@dennis-8
dennis-8 / gist:58aa88db0812b87a4741cb209ea6f1d4
Created July 2, 2018 08:25
ui-router, child to parent navigation without refresh
To stop refreshing use dynamic params.
@dennis-8
dennis-8 / gist:e88a64a3d8cf4393bf645c9ecae398b0
Last active July 16, 2018 10:15
Default binding values for AngularJS
ctrl.$onInit = function() {
if (angular.isUndefined(ctrl.layout) || ctrl.layout === null) {
ctrl.layout = 'column';
}
}
or
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@dennis-8
dennis-8 / laravel-queue.service
Created February 9, 2017 15:40 — forked from thomasjsn/laravel-queue.service
Laravel queue worker using systemd.
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service
[Unit]
Description=Laravel queue worker