Skip to content

Instantly share code, notes, and snippets.

module Webservices
module Responses
module GetOrder
class GetOrderResponse
include Webservices::Responses::ResponseErrorHandler, CulturaldistrictApp::OrderDetails
attr_reader :order, :line_items, :shipping_address, :contributions, :gift_cards,
:redeemed_gift_cards, :gift_card_fees, :parking_line_items, :restaurant_line_items, :package_line_items,
:flex_package_line_items, :package_parking_line_items, :package_restaurant_line_items, :fee_line_items,
:super_package_line_items
for (int i = 0; i < dummyPkgs.Count; i++)
{
DataRow rslt_row = rslt.NewRow();
rslt_row[col_pkg_no] = dummyPkgs[i].Row["package_no"];
rslt_row[col_pkg_desc] = dummyPkgs[i].Row["description"];
decimal[] zone_prices = new decimal[ZONE_COUNT];
for (int j = 0; j < ZONE_COUNT; j++)
{
zone_prices[j] = 0M;
}
#Set Primary address a.k.a Billing Address [ugh]
class BillingInformationController < ApplicationController
no_login_required
before_filter :must_be_at_least_an_authenticated_user
before_filter :cart_should_not_be_empty
radiant_layout 'normal'
helper :users, :orders
@sipple
sipple / github_api.rb
Created March 1, 2010 20:49
Beginnings of a Github API class.
class GithubAPI
require 'net/http'
require 'net/https'
require 'uri'
require 'open-uri'
# Get the configuration values from APP_CONFIG
Token = APP_CONFIG['github_api_token']
Base_Url = APP_CONFIG['github_api_url']
User = APP_CONFIG['github_api_user']
using System;
using System.Collections;
using System.Text.RegularExpressions;
namespace website.lib
{
public enum BadwordSensitivity
{
low = 1, medium = 2, high = 3