Skip to content

Instantly share code, notes, and snippets.

View rameshanandakrishnan's full-sized avatar

Ramesh Anandakrishnan rameshanandakrishnan

View GitHub Profile
@jayj
jayj / Gruntfile.js
Last active March 13, 2022 16:47
Using Grunt to automate theme releases
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON( 'package.json' ),
// Bump version numbers
version: {
css: {
options: {
prefix: 'Version\\:\\s'
@iros
iros / storyboard.example.js
Created November 9, 2012 17:26
Miso Storyboard Example
var interactive = new Miso.Storyboard({
// our initial state will be loading
initial : 'loading',
scenes : {
loading: {
enter : function() {
// show that we are in a loading state
$('#loading').show();
@metamn
metamn / gist:960375
Created May 7, 2011 09:53
Shopify collections get current product type or vendor
// Making the selected product type/vendor active at Collections page
var urlParams = {};
(function () {
var e,
a = /\+/g, // Regex for replacing addition symbol with a space
r = /([^&=]+)=?([^&]*)/g,
d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
q = window.location.search.substring(1);
while (e = r.exec(q))