Skip to content

Instantly share code, notes, and snippets.

View mdigital's full-sized avatar

Robin Marshall mdigital

View GitHub Profile
function pr () {
target_branch=$1
local repo=`git remote -v | grep -m 1 "(push)" | sed -e "s/.*github.com[:/]\(.*\)\.git.*/\1/"`
local branch=`git name-rev --name-only HEAD`
echo "... creating pull request for branch \"$branch\" in \"$repo\""
if [[ ! -z $target_branch ]]; then
open https://github.com/$repo/pull/new/$target_branch...$branch
else
open https://github.com/$repo/pull/new/$branch
fi
@mdigital
mdigital / gist:9417030
Created March 7, 2014 18:28
Custom Map Markers for Google Maps
<html>
<head>
<title>Google Maps JavaScript API v3: Custom Marker Demo</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script>
function CustomMarker(latlng, map) {
this.latlng_ = latlng;
// Once the LatLng and text are set, add the overlay to the map. This will
@mdigital
mdigital / README-Template.md
Last active February 18, 2019 01:52 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of product description goes here

Getting Started

These instructions will get you a copy of the product up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mdigital
mdigital / ux-components.md
Created March 23, 2023 20:31
Plain Language UX components

ChatGPT 4 session

I want to create a resource that shows consistent plain language descriptions for UX components of digital products. For example, the best plain language description for a modal and a fieldset. Can you give me this for common components such as these?

Of course! Here's a list of plain language descriptions for common UX components of digital products:

  • Modal: A pop-up window that appears on top of the main content, usually asking for user input or providing information. Users must interact with it or close it before returning to the main content.

  • Fieldset: A group of related input fields or options, often with a label indicating the overall purpose of the group. This helps users understand the context for the fields they're interacting with.