Skip to content

Instantly share code, notes, and snippets.

View zaeem's full-sized avatar

Zaeem Asif zaeem

  • San Francisco, CA, USA
View GitHub Profile

Background: We are going to design a simple weather forcast app that will get and dispaly the weather forecast for specific city.

Tools: Reactjs, React-redux

UI: https://screencast.com/t/JqCaYoPr

Background

We are going to design a guest checking/checkout system for Hotel management. A general understanding of Node and React should be good enough to complete this excercise, should take somewhere between 4-8 hours. A dumy working model should be good enough, no need to add any integration, just the working ui.

Tools

  • Nodejs, express and mongodb
  • Reactjs

UI

require 'spec_helper'
describe CartsController do
include Fdoc::SpecWatcher
it_behaves_like "a base cart controller", "carts", "/:id"
let(:sku){mock_sku}
let(:sku_2){mock_sku(id:20, code:'FLB-R-M', current_retail_price:Money.new(1900), current_sale_price:Money.new(1800),
current_stylist_price:Money.new(900), pqv:2800, display_category_ids:[1,2,3])}
class Cart < ActiveRecord::Base
include ModelPlatform
include Workflow
class CartAddError < StandardError; end
#Define which of the classes in the Carts module are enabled
def self.available_carts
@@available_carts ||= [
Carts::DsrCart,
#KEEP-1119
# This scrip corrects the birthday of users in the database table.
# To run the file
# load('app/controllers/foo.rb')
# Set the incorrect data in sql as
# update users set birthday = date('0067-12-12');
# Set tge in correct data in rails console as
# @u = User.all.unscoped.find(1)
# @u.birthday = Date.parse('0009-10-07')
# @u.save(:validate => false)
# File name assumption is 70.csv and 35.csv and this will only run for 1 event and 2 races in that one event.
# This specific to the event id = 41211
#Dev
# Event_id = 8
# Race1 = 19
# Race2 = 20