Skip to content

Instantly share code, notes, and snippets.

View aakashd's full-sized avatar

aakash dharmadhikari aakashd

View GitHub Profile
View product-valid-sample.csv
SKU Operation Item Name Brand Name Manufacturer Product Type Product Description Parent/Child Parent SKU foobar_property Active Variation Theme Category Path 1 Category Path 2
dummy-1 create Himalaya Herbals Purifying Neem Face Wash Himalaya Himalaya Global Holdings Ltd foobar_product_type is a soap-free herbal formulation that clears impurities and helps clear pimples Parent 1 TRUE foobar_theme 2000 3000
dummy-2 create Himalaya Herbals Purifying Neem Face Wash 200ml Child dummy-1 2 TRUE
dummy-3 create Himalaya Herbals Purifying Neem Face Wash 500ml Child dummy-1 1 TRUE
dummy-4 create Himalaya Herbals Baby Soap (Honey and Milk) Himalaya Himalaya Global Holdings Ltd foobar_product_type is a herbal soap developed for baby's sensitive skin TRUE 2000
View variation-themes-valid-sample.csv
Category Product Type Name Attribute 1 Attribute 2 Attribute 3 Operation
Personal Care Tablet Personal Theme 1 String Description Number Size Dropdown Skin Type create
Personal Care Tablet Personal Theme 2 String Description Dropdown Skin Type create
Personal Care Tablet Personal Theme 3 Number Size create
View properties-valid-sample-data.csv
Name Input Type Character Limit Operation
inseam length number create
size number create
side effects text 500 create
Strength Qty number create
Strength Unit dropdown create
number size number create
Text Side Effects text 500 create
Dropdown Skin Type dropdown create
Boolean Popular boolean create
View product-types-valid-sample.csv
MC1 Product Type
Pharmacy electronics
Pharmacy medicines
Pharmacy foot care
View rails_template.rb
# Gemfile
gem 'rails', '4.1.4'
gem 'pg'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '~> 2.4.0'
gem 'coffee-rails', '~> 4.0.1'
gem 'jquery-rails', '~> 3.0.4'
aakashd / sample_action.html.erb
Last active August 29, 2015 14:01
how to include page specific javascript code after application.js
View sample_action.html.erb
<div class='content'>
<!-- your application code, which requires some JS -->
<% content_for :javascript do %>
<script type="text/javascript">
$(function () {
aakashd / gh_to_pt.rb
Last active August 29, 2015 13:58 — forked from rbrooks/gh_to_pt.rb
View gh_to_pt.rb
#!/usr/bin/env ruby
# Author: Russ Brooks, TelVue Corporation (
# Description: Migrates GitHub Issues to Pivotal Tracker.
# Dependencies: Ruby 1.9.2+
# GitHub API gem:
# Pivtal Tracker gem:
# 1. Change the constants below accordingly for your project.
# 2. Change the options in list_repo() method for your GitHub project.
# 3. Change the options in stories.create() method accordingly.
aakashd / gist:7453860
Created November 13, 2013 18:26
BrowserStack IE 8 on Windows XP stack trace for
View gist:7453860
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Wed, 13 Nov 2013 18:25:07 UTC
Message: Object doesn't support this property or method
Line: 4
Char: 6105
Code: 0
aakashd / nutrition_data.rb
Created May 7, 2013 19:11
ActiveAdmin multi level has many configuration within Snacker
View nutrition_data.rb
class NutritionData < ActiveRecord::Base
attr_accessible :calories, :calories_from_fat, :header, :item_id, :serving, :nutrition_items_attributes
validates :calories, :presence => true, :numericality => true
validates :calories_from_fat, :presence => true, :numericality => true
validates :header, :presence => true
validates :serving, :presence => true
belongs_to :item
View Snacker Gemfile.lock
remote: git://
revision: 18438fcc82ef12f74d43f65766125eac466f79fc
ref: 18438fcc82ef12f74d43f65766125eac466f79fc
activeadmin (0.5.0)
arbre (>= 1.0.1)
bourbon (>= 1.0.0)
devise (>= 1.1.2)