I hereby claim:
- I am joshangell on github.
- I am angell (https://keybase.io/angell) on keybase.
- I have a public key whose fingerprint is 9494 0E71 A201 2F9D 9C45 BF20 1102 C463 74D6 64E2
To claim this, I am signing this object:
| #!/bin/bash | |
| while getopts ":h:p:a:d:l:" opt; do | |
| case $opt in | |
| h) | |
| HOST="$OPTARG" | |
| ;; | |
| p) | |
| PORT="$OPTARG" | |
| ;; |
| /* 'rem' is a Sass mixin that converts pixel values to rem values | |
| * Returns 2 lines of code — regular pixel values and converted rem values | |
| * | |
| * Sample input: | |
| * .element { | |
| * @include rem('padding',10px 0 2px 5px); } | |
| * | |
| * Sample output: | |
| * .element { | |
| * padding: 10px 0 2px 5px; |
| #!/bin/bash | |
| echo "enter directory path, leave blank for current" | |
| read DOCROOT | |
| if [ -z "$DOCROOT" ]; | |
| then | |
| DOCROOT="$PWD" | |
| fi |
| # Varnish 4.0 configuration for Craft | |
| # | |
| # Based on the following: | |
| # - https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl | |
| # - https://gist.github.com/aelvan/eba03969f91c1bd51c40 | |
| vcl 4.0; | |
| import std; | |
| import directors; |
| #!/bin/sh | |
| printf "\e[34mEnter name for this site\e[0m\n" | |
| read DOMAIN | |
| if [ -z "$DOMAIN" ]; | |
| then | |
| DOMAIN="${PWD##*/}" | |
| fi |
| <?php | |
| namespace Craft; | |
| class MyPluginController extends BaseController | |
| { | |
| // This lets anyone run the controller actions we specify, useful for CRON etc | |
| protected $allowAnonymous = array('actionMigrate'); | |
| /** |
I hereby claim:
To claim this, I am signing this object:
| vcl 4.0; | |
| import xkey; | |
| # Based on: https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl | |
| import std; | |
| import directors; | |
| backend server1 { # Define one backend | |
| .host = "127.0.0.1"; # IP or Hostname of backend | |
| .port = "80"; # Port Apache or whatever is listening |
cd frontend and then yarn dev or npm run dev<page-query>, click the light bulb icon, choose "Inject language or reference" and select GraphQL, like this:NOTE: you only have to do this once and then all your .vue files will support GraphQL queries inside <page-query> tags.