Skip to content

Instantly share code, notes, and snippets.

View upsparkdev's full-sized avatar

Matt Wilkins upsparkdev

View GitHub Profile
@GaryJones
GaryJones / js.js
Created January 5, 2015 12:54
Gravity Forms Countries dropdown with country codes
var countryCodes = {
'Afghanistan': '93',
'Albania': '355',
'Algeria': '213',
'American Samoa': '684',
'Andorra': '376',
'Angola': '244',
'Antigua and Barbuda': '1-268',
'Argentina': '54',
'Armenia': '374',
@Tamal
Tamal / git-ssh-error-fix.sh
Last active July 8, 2024 13:24
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@jonolayton
jonolayton / theme.js
Last active April 1, 2022 14:52
Hide unavailable secondary product options in Shopify's Debut theme
/*
**README**
The method below simply makes variant options which aren't available in a secondary dropdown menu "disabled"
when using the Debut theme in Shopify.
It works for me, but I'm not making any promises for you...
Firstly, the _hideUnavailableOptions method needs to be added to Variants.prototype (see code below).