Skip to content

Instantly share code, notes, and snippets.

View skorasaurus's full-sized avatar

Will Skora skorasaurus

View GitHub Profile
<html <?php language_attributes(); ?>>
<head>
<?php cryout_meta_hook(); ?>
<meta http-equiv="content-type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" href="https://use.typekit.net/hmm8egp.css">
<?php
cryout_header_hook();
@skorasaurus
skorasaurus / B-package-control-sublime-user-settings
Created March 24, 2019 16:26
The values in b-SyncSettings-sublime arenotcorrect; I replaced them with dummy text but the formatting is the same.
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Package Control",
"Sync Settings"
]
[
{
"key": "group_5b9fc8c430d0a",
"title": "Home Slideshow",
"fields": [
{
"key": "field_57cec205ff109",
"label": "Link URL",
"name": "link_url",
"type": "text",
@skorasaurus
skorasaurus / content-location.php
Last active March 19, 2019 03:38
How to enqueue javascript so it displays within a page template;
<?php
/**
* Template part for displaying page content in page.php
*
* @link https://codex.wordpress.org/Template_Hierarchy
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
@skorasaurus
skorasaurus / button.css
Created February 13, 2019 16:05
default styling for button element, firefox 65.
align-content: normal;
align-items: normal;
align-self: auto;
animation-delay: 0s;
animation-direction: normal;
animation-duration: 0s;
animation-fill-mode: none;
animation-iteration-count: 1;
animation-name: none;
animation-play-state: running;
@skorasaurus
skorasaurus / CLEVELAND.geojson
Created February 6, 2019 15:01
surface parking
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.l-search {
display: none;
position: absolute;
top: 10px;
right: 0; }
@media (min-width: 768px) {
.l-search {
max-width: 220px;
display: block; } }
.l-search select {
@skorasaurus
skorasaurus / functions.php
Last active February 15, 2019 14:57
my-mapbox-code.js is a ; Is using shortcodes a best practice? ; why can't I just bind it other more complex examples are at https://www.mapbox.com/mapbox.js/example/v1.0.0/markercluster-custom-polygon-appearance/
function enqueue_scripts() {
/**
you can remove the if statement if you want the script to load on all pages;
locations is the page's slug
*/
if (is_page( 'locations' )) {
wp_register_style('mapbox_css', 'https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.css');
wp_register_script('mapbox_js', 'https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.js', '', '', true);
MMMMMMMMMMMMMMMMMMMMMMMMMMM~====MMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMM=============MM
MMMMMMMMMMMMMMMMMMMMMM================MM
MMMMMMMMMMMMMMMMMMM===================MM
MDMMMMMMMZ==~MMM======================MM
M=====================================MM
M======================================M
M=====================================MM
M=====================================MM
(also at https://gist.github.com/c6c460c8d24f96bca0c68fe623765060)
we're at an interesting crossroads because of vector tiles (not everyone needs to use them just yet);
they do offer some performance gains and it really depends on the tools;
why vector tiles:
quickly change the map style > no need to make new tiles!