Skip to content

Instantly share code, notes, and snippets.

View eyemyth's full-sized avatar

Jay Thompson eyemyth

  • WGBH
  • Austin, TX
View GitHub Profile
{
"title": "AppraiserPage",
"type": "object",
"properties": {
"display_name": {
"title": "Display Name",
"type": "string"
},
"honorific_prefix": {
"title": "Honorific Prefix",
{
"title": "AppraisalPage",
"type": "object",
"properties": {
"title": {
"title": "Title",
"type": "string"
},
"slug": {
"title": "Slug",
@eyemyth
eyemyth / karabiner.json
Created October 29, 2021 19:30
My karabiner config
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
{"title": "SphericalVideoPage", "description": "note that transcript is part of video schema", "type": "object", "properties": {"title": {"title": "Title", "type": "string"}, "slug": {"title": "Slug", "type": "string"}, "page_type": {"title": "Page Type", "type": "string"}, "canonical_image": {"$ref": "#/definitions/Image"}, "summary": {"title": "Summary", "type": "string"}, "url": {"$ref": "#/definitions/Hyperlink"}, "contentType": {"title": "Contenttype", "default": "application/vnd.theseus+novapage", "type": "string"}, "topic": {"$ref": "#/definitions/Topic"}, "brand": {"$ref": "#/definitions/Brand"}, "short_description": {"title": "Short Description", "type": "string"}, "long_description": {"title": "Long Description", "type": "string"}, "publish_date": {"title": "Publish Date", "type": "string", "format": "date"}, "related_content": {"title": "Related Content", "type": "array", "items": {"$ref": "#/definitions/NovaPage"}}, "video": {"$ref": "#/definitions/YouTubeVideo"}}, "required": ["title", "topic", "
@eyemyth
eyemyth / style
Created August 5, 2021 15:49
My yapf config
[style]
# Align closing bracket with visual indentation.
align_closing_bracket_with_visual_indent=False
# Allow dictionary keys to exist on multiple lines. For example:
#
# x = {
# ('this is the first element of a tuple',
# 'this is the second element of a tuple'):
# value,
<!doctype html>
<html class="no-js" lang="en-gb">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Wagtail - Editing image Potted plant and stars</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@eyemyth
eyemyth / shift_to_parentheses.json
Last active November 22, 2022 04:22
Complex modification rules for Karabiner Elements to map shift keys to parentheses. Use the URL in the comment to import easily.
{
"title": "Shift keys to parentheses",
"rules": [
{
"description": "map left shift to opening parenthesis",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
#!/usr/bin/env php
<?php
$arg = 'T';
$vehicle = ( ( $arg == 'B' ) ? 'bus' :
( $arg == 'A' ) ? 'airplane' :
( $arg == 'T' ) ? 'train' :
( $arg == 'C' ) ? 'car' :
( $arg == 'H' ) ? 'horse' :
'feet' );
echo $vehicle;
@eyemyth
eyemyth / plum.coffee
Created May 7, 2014 14:25
Plum Landing UGC Widget
class Dashing.Plum extends Dashing.Widget
ready: ->
container = $(@node).parent()
@width = (Dashing.widget_base_dimensions[0] * container.data("sizex")) + Dashing.widget_margins[0] * 2 * (container.data("sizex") - 1)
@height = (Dashing.widget_base_dimensions[1] * container.data("sizey"))
@currentIndex = 0
@imgElem = $(@node).find('.plum-image')
@nextPhoto()
@startCarousel()
@eyemyth
eyemyth / config.txt
Last active July 11, 2017 08:32 — forked from anonymous/gist:8983191
/boot/config.txt to make raspberry pi run at 1080p
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16