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
| rules_version = '2'; | |
| // Note: When editing the rules, consider using the online Rules Simulator: | |
| // e.g. https://console.firebase.google.com/u/0/project/vue-rollup-example/database/firestore/rules | |
| // | |
| service cloud.firestore { | |
| match /databases/{database}/documents { | |
| // tbd. removed projects likely to get their own collection (simpler) |
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
| /* | |
| Mixin for ACF colored pagebuilder | |
| elements (flexible content field) | |
| --- $name = name of flex content field | |
| --- $color = color? :) | |
| */ | |
| @mixin acfsection($name, $color) { | |
| [data-name="#{$name}"] { | |
| background-color: lighten($color, 20%); | |
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
| /* How To Use | |
| $('.class').starterPlugin({ | |
| FontSize: 40 | |
| }); | |
| */ | |
| // The semi-colon before function invocation is a safety net against concatenated | |
| // scripts and/or other plugins which may not be closed properly. | |
| ;(function ($, window, document, undefined) { |
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
| <?php | |
| function acf_PageBuilder( $name = '' ) { | |
| $rows = get_field( $name ); | |
| if ( $rows ) { | |
| // Adding all page/post related info to $context['post'] Array() | |
| $context = Timber::get_context(); | |
| $context['post'] = new TimberPost(); | |
| foreach ( $rows as $row ) { |
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
| var screenshotUrl = 'http://example.com/' | |
| var casper = require("casper").create({ | |
| viewportSize: { | |
| width: 1024, | |
| height: 768 | |
| } | |
| }); | |
| if (casper.cli.args.length < 1) { |
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
| <?php | |
| // address to map | |
| $map_address = ""; | |
| $url = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=".urlencode($map_address); | |
| $lat_long = get_object_vars(json_decode(file_get_contents($url))); | |
| // pick out what we need (lat,lng) | |
| $lat_long = $lat_long['results'][0]->geometry->location->lat . "," . $lat_long['results'][0]->geometry->location->lng; |