I wrote up how to add local packages as dependencies in local projects (useful for example during package development), using yalc, here:
https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/
https://twigfiddle.com/ujg6hr | |
{% macro when(theDate = 'now', precision = 'd F Y') %} | |
{% set difference = 'now'|date(precision)|date('U') - theDate|date(precision)|date('U') %} | |
{{ difference == 0 ? 'now' : (difference > 0 ? 'past' : 'future') }} | |
{% endmacro %} | |
{% set currentDay = 'now'|date('d') %} | |
{% set currentMonth = 'now'|date('F') %} | |
{% set currentYear = 'now'|date('Y') %} |
# Henry Bley-Vroman, 2019 | |
# | |
# Usage | |
# Paste or source this into your shell profile. | |
# Requires macOS and that your shell supports [[ ]] and '<string> == <starting substring>*' | |
# (Bash, Zsh, Ksh etc) | |
# alias php to the latest PHP installed with MAMP | |
MAMP_PHP__LATEST=$(ls /Applications/MAMP/bin/php/ | sort -V | tail -1) | |
alias php="/Applications/MAMP/bin/php/${MAMP_PHP__LATEST}/bin/php -c \"/Library/Application Support/appsolute/MAMP PRO/conf/${MAMP_PHP__LATEST}.ini\"" |
I wrote up how to add local packages as dependencies in local projects (useful for example during package development), using yalc, here:
https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/
Gappy Grid is a flexbox grid system for building grids that have equal-width columns, equal-height rows, outer columns flush with the container's sides.
It supports arbitrary column gaps and row gaps, and breakpoint-specific column counts and gap sizes.
It has been tested on the oldest browsers I had handy access to when writing it: Chrome 68, Edge 14, Firefox 61, IE 11, Opera 51, Safari 11, and Safari on iOS 9.
Sassmeister: https://www.sassmeister.com/gist/e99c2a0ed632a8d8bafb8e81961f96bd
// ---- | |
// Sass (v3.4.25) | |
// Compass (v1.0.3) | |
// ---- | |
// VARIABLES | |
$widths: ( | |
// devices | |
tablet-to-mobile: 768px//, |
Pen: https://codepen.io/henry/pen/JBXMgB
@import
, or just paste in) the variables--
Sass files, and then the functions--
Sass files.@include media(<one of the keys in $queries>) {…}
A few ways of dealing with global variables in Twig. Demonstrated at https://twigfiddle.com/ork0hv/2
Compiled from http://som.csudh.edu/fac/lpress/history/arpamaps/ and https://en.wikipedia.org/wiki/ARPANET
These maps are from Heart, F., McKenzie, A., McQuillian, J., and Walden, D., ARPANET Completion Report, Bolt, Beranek and Newman, Burlington, MA, January 4, 1978.
Folks -- I just scanned these in. They are too big, but right now I do not have the time to reduce them and try filtering out the noise. If someone does, please let me know. Larry (source: http://som.csudh.edu/fac/lpress/history/arpamaps/)
#!/usr/bin/env sh | |
# nvm-ls-g | |
# Henry Bley-Vroman | |
# MIT License, 2018 | |
# Lists the globally-installed npm packages | |
# for every nvm-installed version of Node | |
# Usage: |
#!/usr/bin/env ruby | |
# Write git commit messages to a log file | |
# | |
# Lincoln A. Mullen | lincoln@lincolnmullen.com | http://lincolnmullen.com | |
# MIT License <http://lmullen.mit-license.org/> | |
# Fork by Henry Bley-Vroman / @olets | |
# | |
# You will have to install the git gem for this to work: | |
# gem install git |