Skip to content

Instantly share code, notes, and snippets.

View RyanRoberts's full-sized avatar
💭
I may be slow to respond.

Ryan RyanRoberts

💭
I may be slow to respond.
View GitHub Profile
@RyanRoberts
RyanRoberts / deploy-from-git.sh
Created September 5, 2022 08:40 — forked from johnfmorton/deploy-from-git.sh
deploy-from-git.sh - Used on Arcustech to deploy a Craft CMS site
# 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
@RyanRoberts
RyanRoberts / deploy.yaml
Created December 27, 2021 19:53 — forked from jeromecoupe/deploy.yaml
Github actions: build and deploy Craft sites (WIP)
name: Craft CMS deployments
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
@RyanRoberts
RyanRoberts / dateTimeMacro.twig
Created July 2, 2021 10:31 — forked from watershed/dateTimeMacro.twig
CraftCMS datetime macro
{#
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
}
@RyanRoberts
RyanRoberts / gist:3964587
Created October 27, 2012 13:14
Ruby fail
Ryans-MacBook-Pro:_assets RyanRoberts$ compass watch
>>> Compass is watching for changes. Press Ctrl-C to Stop.
/Library/Ruby/Gems/1.8/gems/fssm-0.2.7/lib/fssm/backends/fsevents.rb:27: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Abort trap: 6

SHORTCUTS

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
@RyanRoberts
RyanRoberts / 0_reuse_code.js
Created May 11, 2016 08:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@RyanRoberts
RyanRoberts / Precision responsive typography.markdown
Created March 28, 2016 09:26
Precision responsive typography

Precision responsive typography

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/

@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created January 27, 2014 13:02
Generated by SassMeister.com.
<p class="gradient-test">Donec ullamcorper nulla non metus auctor frinitemlla. Sed posuere consect etur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vestibulum id ligula porta felis euismod semper.</p>
@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created January 21, 2014 17:18
Generated by SassMeister.com.
<div class="thing"></div>
<div class="thing thing--saturate"></div>
<div class="thing thing--scale-saturation"></div>