snowpack dev- Bridgetown builds to
bridgetown/ - Snowpack builds that output + output of your frontend assets to
out/ - Runs with hot reloading on localhost:8080
- Build for production
BRIDGETOWN_ENV=production snowpack build
This file contains hidden or 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
| <%= render ArticleComponent.new do %> | |
| <%= render StackComponent.new do %> | |
| <%= render BoxComponent.new(as: :header) do %> | |
| <%= render HeaderComponent.new.with_content(resource.data.title) %> | |
| <%= render TextComponent.new(tone: :secondary) do %> | |
| <%= render LinkComponent.new(href: "/").with_content("Andrew Mason") %> | |
| • <%= pretty_date resource.data.updated_at %> | |
| • <%= reading_time resource.content %> Minute Read | |
| <% end %> | |
| <% end %> |
This file contains hidden or 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
| ###ruby | |
| front_matter do | |
| layout :default | |
| title "Blog" | |
| description "A collection of my posts, tutorials, and thoughts that I've shared publicly" | |
| permalink "/blog/" | |
| end | |
| ### | |
| render PostsComponent.new do |c| |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Application", | |
| "type": "chrome", | |
| "preLaunchTask": "Start Dev", | |
| "postDebugTask": "Terminate All Tasks", | |
| "request": "launch", | |
| "url": "http://localhost:8081", |
This file contains hidden or 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
| { | |
| "presets": [ | |
| [ | |
| "@babel/preset-env", | |
| { | |
| "shippedProposals": true, | |
| "bugfixes": true, | |
| "targets": { | |
| "esmodules": true | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| # Output a dependencies.md file with a table of installed Yarn dependencies | |
| # Requires csvkit, jq | |
| # https://csvkit.readthedocs.io/en/0.9.1/install.html | |
| # https://stedolan.github.io/jq/download/ | |
| yarn licenses list --json \ | |
| | jq --slurp 'map(select(.type == "table"))' \ |
This file contains hidden or 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
| # src/_components/base_component.rb | |
| class BaseComponent < ViewComponent::Base | |
| include Bridgetown::ViewComponentHelpers | |
| TWITTER_PROFILE_URL = "https://twitter.com/andrewmcodes" | |
| def twitter_link | |
| link_to "Twitter", TWITTER_PROFILE_URL | |
| end |
Hello and welcome to my Shortcuts Catalog!
This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.
It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.
Enjoy!
I hereby claim:
- I am andrewmcodes on github.
- I am andrewmcodes (https://keybase.io/andrewmcodes) on keybase.
- I have a public key ASCEud8pW7OPG801GlSPyEfSmnu50PLMXTBKxUURu62qbgo
To claim this, I am signing this object: