Skip to content

Instantly share code, notes, and snippets.

View xtex404's full-sized avatar
😷
Working from home

Justin M xtex404

😷
Working from home
  • 16:12 (UTC -05:00)
View GitHub Profile
@xtex404
xtex404 / gist:80a384cb64cb2d53e6d682279427a746
Last active July 9, 2017 00:15 — forked from mnordhoff/gist:2213179
Python regular expressions for IPv4 and IPv6 addresses and URI-references, based on RFC 3986's ABNF.The URI-reference regular expression includes IPv6 address zone ID support (RFC 6874).
# Python regular expressions for IPv4 and IPv6 addresses and URI-references,
# based on RFC 3986's ABNF.
#
# ipv4_address and ipv6_address are self-explanatory.
# ipv6_addrz requires a zone ID (RFC 6874) follow the IPv6 address.
# ipv6_address_or_addrz allows an IPv6 address with optional zone ID.
# uri_reference is what you think of as a URI. (It uses ipv6_address_or_addrz.)
import re
// Photoshop Script to Create Mac OS X Icons from 1024x1024+ PSD Document
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete permanently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected folder is empty!
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
// Modified for hires Mac OS X icons Copyright (c) 2014 by Justin Matlock http://jdmatlock.com/