Skip to content

Instantly share code, notes, and snippets.

@danhanly
danhanly / export_google_music.js
Created May 19, 2016 08:01 — forked from jmiserez/export_google_music.js
(fixed/updated 2016-05-10) Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
// Jeremie Miserez <jeremie@miserez.org>, 2016
//
// A little bit of Javascript to let you export your Google Music library, playlists, and album track lists :)
//
// I posted this as an answer here: http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music
//
// 1. Go to: https://play.google.com/music/listen#/all (or your playlist)
//
// 2. Open a developer console (F12 for Chrome). Paste
// code below into the console.
@danhanly
danhanly / .gitignore
Created January 20, 2015 09:08
Magento Gitignore for Module Development
# Given CompanyName as the namespace
# and ModuleName as the module
# Root
/*
!/app
!/js
!/skin
!/tests
@danhanly
danhanly / postcodes.php
Last active September 8, 2017 14:00
UK Postcode Identification Algorithm (Webshopapps Premium Matrixrate Magento Extension)
<?php
/* This was built to accompany the WebshopApps Premium Matrix Rates Magento Extension
*
* The Postcode schemes do not allow negation i.e. "All postcodes except a specific set of postcodes".
* My solution was to build this, which allows identification of a set of 'Disallowed' Postcodes, and returns a list
* of all the other postcodes that don't match the set. This allowed identification of a strict set of UK Mainland Postcodes.
*
* Updated to work with UK Postcode Matching instead of Pattern Matching
*/