Skip to content

Instantly share code, notes, and snippets.

View skorasaurus's full-sized avatar

Will Skora skorasaurus

View GitHub Profile
@skorasaurus
skorasaurus / gist:89ebc353d3bc264dcc875d67ea3000e9
Created September 29, 2023 20:13
example block markup for issue PR 54846 in gutenberg
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"30px","bottom":"30px","right":"30px","left":"30px"},"margin":{"top":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"backgroundColor":"header-footer","textColor":"white","className":"is-style-default","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull is-style-default has-white-color has-header-footer-background-color has-text-color has-background has-link-color" style="margin-top:0px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:site-logo /-->
<!-- wp:navigation {"ref":1017,"icon":"menu","layout":{"type":"flex","orientation":"horizontal","justifyContent":"space-between"},"style":{"layout":{"selfStretch":"fit"}},"fontSize":"medium"} /-->
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
<
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skorasaurus
skorasaurus / 2023-08-08-cuyahoga_precinct_results.csv
Last active August 13, 2023 15:17
August 2023 Special Election Precinct-level results for Issue 1, Cuyahoga County, Ohio. Data transformed by me; Generated https://boe.cuyahogacounty.gov/docs/default-source/boe/elections/08-08-23-unofficial-results-by-precinct.pdf?sfvrsn=a92bc12f_1 ; data is from Aug 08, 2023 2023-08-09 01:37:45 should be good; but please spot check and verify. …
precinct_name registered_voters yes_votes no_votes total_votes overvotes undervotes
Precinct0002BAY VILLAGE -01-A 1041 161 420 581 0 0
Precinct0003BAY VILLAGE -01-B 1021 133 378 511 0 0
Precinct0004BAY VILLAGE -01-C 1019 153 422 575 0 0
Precinct0005BAY VILLAGE -02-A 1042 155 448 603 0 0
Precinct0006BAY VILLAGE -02-B 1047 108 444 552 0 0
Precinct0007BAY VILLAGE -02-C 1087 165 453 618 0 0
Precinct0008BAY VILLAGE -03-A 1010 185 438 623 0 0
Precinct0009BAY VILLAGE -03-B 1038 131 447 578 0 1
Precinct0010BAY VILLAGE -03-C 1041 168 447 615 0 0
@skorasaurus
skorasaurus / test_case.php
Last active January 26, 2023 16:43
Registering Custom Post Type
function cp_register_metric() {
$labels = array(
'name' => _x( 'Metrics', 'Metric General Name', 'cleveland-reads-metrics' ),
'singular_name' => _x( 'Metric', 'Metric Singular Name', 'cleveland-reads-metrics' ),
'menu_name' => __( 'Metrics', 'cleveland-reads-metrics' ),
'name_admin_bar' => __( 'Metric', 'cleveland-reads-metrics' ),
'archives' => __( 'Metric Archives', 'cleveland-reads-metrics' ),
'attributes' => __( 'Metric Attributes', 'cleveland-reads-metrics' ),
'parent_item_colon' => __( 'Parent Metric:', 'cleveland-reads-metrics' ),
@skorasaurus
skorasaurus / theme.json
Last active June 14, 2022 18:04
theme.json example ; for version 2.
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"color": {
"custom": false,
"customGradient": false,
"gradients": [],
"link": false,
"defaultPalette": false,
<!-- wp:uagb/section {"classMigrate":true,"block_id":"9d71eb16","borderStyle":"dotted","borderWidth":4,"borderRadius":8} -->
<section class="wp-block-uagb-section uagb-section__wrap uagb-section__background-undefined uagb-block-9d71eb16"><div class="uagb-section__overlay"></div><div class="uagb-section__inner-wrap"><!-- wp:paragraph -->
<p>A catchy 2 or 3 sentence line that is really punchy for folks and would want them to read even more things!</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2>A new idea for words</h2>
<!-- /wp:heading -->
<!-- wp:list -->
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skorasaurus
skorasaurus / map.geojson
Last active December 16, 2021 16:11
bicycle parking in cleveland and nearby burbs; includes bicycle parking on private property but is publicly accessible (e.g. inside a parking garage, a bar's patio/terrace (not on the sidewalk) ; visit https://wiki.openstreetmap.org/wiki/Key:bicycle_parking for understanding the types of bicycle parking. Capacity typically calculated at 2 bicycl…
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
error in console:
react-dom.860550b4.js:10320
insertBefore http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:10320
insertOrAppendPlacementNode http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:21252
insertOrAppendPlacementNode http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:21260
insertOrAppendPlacementNode http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:21260
commitPlacement http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:21213
commitMutationEffects http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:23391
callCallback http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:3942
invokeGuardedCallbackDev http://case.test/wp-content/plugins/gutenberg/vendor/react-dom.860550b4.js:3991
{
"version":1,
"settings":{
"color":{
"custom":false,
"customGradient":false,
"gradients":[
],
"link":false,