For quick-starting a standard website nunjucks project.
.
├── html # Holds nunjucks templates with both `.html` and `.njk` extensions
│ ├── _layouts # Template folder, for `extends`
| const times = [ | |
| { start: "09:00", end: "10:00", hours: 1 }, | |
| { start: "10:00", end: "11:30", hours: 1.5 }, | |
| { start: "11:30", end: "12:00", hours: 0.5 }, | |
| { start: "13:30", end: "15:45", hours: 2.25 }, | |
| { start: "15:45", end: "16:45", hours: 1 } | |
| ]; | |
| const allOverOne = times.every( entry => entry.hours >= 1 ); |
| const data = [ | |
| { "id": "1", "firstname": "Friendly", "lastname": "Glenn" }, | |
| { "id": "5", "firstname": "Ifits", "lastname": "Friendly" }, | |
| { "id": "24", "firstname": "Mya", "lastname": "Crotch" }, | |
| { "id": "81", "firstname": "Glenn", "lastname": "Tipton" }, | |
| { "id": "23", "firstname": "Friendly", "lastname": "Dude" }, | |
| ]; | |
| /* ----------------------------------------- | |
| Object extension: |
| .totalcenter { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| text-align: center; | |
| height: 100vh; | |
| } |
| // SCSS Spacing Helpers | |
| // | |
| // update 060519 | |
| // @rob.kistner | |
| // | |
| // based on Bootstrap 4's spacing helpers utilities | |
| // | |
| $spacer: 1rem; | |
| $spacers: ( |
| /* ----------------------------------------- | |
| Spacing Helpers | |
| ------------------------------------------*/ | |
| /* margin */ | |
| .m-0 { margin: 0; } | |
| .mt-0 { margin-top: 0; } | |
| .mr-0 { margin-right: 0; } | |
| .mb-0 { margin-bottom: 0; } |
| /* ---------------------------------------- | |
| Bootstrap 4 | |
| HTML, PHP, BLADE snippets | |
| Alerts | |
| 042419 | |
| ---------------------------------------- */ | |
| { | |
| "Boostrap 4: Alert": { |
| # | |
| # printutils | |
| # | |
| # A collection of print utilties to use | |
| # when testing python scripts or following | |
| # along with code-along tutorials. | |
| # | |
| import json # for json.dumps() | |
| import termcolor as tc # colorize banner output, etc. |
| const { src, dest, watch, parallel, series, done } = require('gulp'), | |
| gulpif = require('gulp-if'), | |
| del = require('del'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| gulp_file_include = require('gulp-file-include'), | |
| sass = require('gulp-sass'), | |
| cleancss = require('gulp-clean-css'), | |
| uglify = require('gulp-uglify'), | |
| concat = require('gulp-concat'), | |
| browserSync = require('browser-sync').create() |
| const { src, dest, watch, parallel, series, done } = require('gulp'), | |
| gulpif = require('gulp-if'), | |
| del = require('del'), | |
| path = require('path'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| less = require('gulp-less'), | |
| cleancss = require('gulp-clean-css'), | |
| uglify = require('gulp-uglify'), | |
| concat = require('gulp-concat'), | |
| browserSync = require('browser-sync').create() |