Key/Command | Description |
---|---|
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + L | Clears the Screen |
Ctrl + C | Kill whatever you are running |
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
# This script is used to deploy a Craft CMS site on an Arcustech server | |
# | |
# It will clone the git main branch from a private repo into | |
# a 'deployments' directory and them create symlinks for the | |
# static assets: .env, and 3 directories of assets. | |
# It then does a composer install of the Craft site. | |
# The scripts in the composer file are like this: https://github.com/nystudio107/devmode/blob/f2b231e772026860f75e255c9e22722dac983de8/cms/composer.json#L55 | |
# These scripts update Craft, clear caches, etc. | |
# Finally, it will symlink the web directory in the newly downloaded files | |
# to the public folder which is the one used by Arcustech |
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
name: Craft CMS deployments | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest |
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
{# | |
value : date and/or time value validated as not null (mandatory), | |
format : php date format string (mandatory), | |
options: { | |
prefix: string to append to processed format, | |
suffix: string to append to processed format, | |
tag : html tagname string, | |
html : markup, typically to be wrapped in a <time> element, | |
attr : hash of name:value attribute pairs | |
} |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I've not seen this before so I think I've figured out something new and hopefully useful.
It appears that by using calc() and vw we can get responsive typography that scales perfectly between specific pixel values within a specific viewport range.
Check it out. (might be buggy in some browsers)
http://madebymike.com.au/writing/precise-control-responsive-typography/
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$spacing-unit: 24px; | |
$spacing-unit-tiny: round(0.25 * $spacing-unit); | |
$spacing-unit-small: round(0.5 * $spacing-unit); | |
$spacing-unit-large: round(2 * $spacing-unit); |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
// I must say I am not a big fan of having global variables here and there. | |
// There is a number of issues and drawbacks of handling basic configuration | |
// with global variables without having functional wrappers: | |
// - `!global` has to be written yet could be forgotten; | |
// - there is no way to make sure the value is valid; |
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
<hr class="rule"> |
NewerOlder