Skip to content

Instantly share code, notes, and snippets.

View sohara's full-sized avatar

Sean O'Hara sohara

View GitHub Profile
#!/usr/bin/env python
from __future__ import print_function
from subprocess import call
import cookielib
import bs4
import mechanize
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{
"ASIN": [
"B0002DNIAE"
],
"ParentASIN": [
"B0072CXURY"
],
"DetailPageURL": [
"http://www.amazon.com/Diorliner-Precision-Eyeliner-Christian-Dior/dp/B0002DNIAE%3Fpsc%3D1%26SubscriptionId%3DAKIAJ7IODE3ZIX6FGTPA%26tag%3Daws Tag%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0002DNIAE"
],
{
"ASIN": [
"B002JSL6QI"
],
"DetailPageURL": [
"http://www.amazon.com/Babyliss-BABTT5585-Tourmaline-Titanium-Dryer/dp/B002JSL6QI%3FSubscriptionId%3DAKIAJ7IODE3ZIX6FGTPA%26tag%3Daws Tag%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002JSL6QI"
],
"ItemLinks": [
{
"ItemLink": [
{
"ASIN": [
"B00BSE0P0W"
],
"DetailPageURL": [
"http://www.amazon.com/Neutrogena-Norwegian-Formula-Absorbing-Cream/dp/B00BSE0P0W%3FSubscriptionId%3DAKIAJ7IODE3ZIX6FGTPA%26tag%3Daws Tag%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00BSE0P0W"
],
"ItemLinks": [
{
"ItemLink": [
{
"ASIN": [
"B00CELFJ4A"
],
"ParentASIN": [
"B00ZF21ZCK"
],
"DetailPageURL": [
"http://www.amazon.com/Blackstone-1575-Outdoor-Pizza-Oven/dp/B00CELFJ4A%3Fpsc%3D1%26SubscriptionId%3DAKIAJ7IODE3ZIX6FGTPA%26tag%3Daws Tag%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00CELFJ4A"
],
var people = [
{ name: 'Sean', id: 23, type: 'engineer'},
{ name: 'Ryan', id:44, type: 'engineer'},
{ name: 'Christina', id:5, type: 'boss'},
{ name: 'Sherard', id: 23, type: 'candidate'}];
var options = {
sortField: 'name',
sortOrder: ['Ryan', 'Sean', 'Christina', 'Sherard']
};
require 'mechanize'
LOGIN_PAGE = "https://remote.advancepubs.com/dana-na/auth/url_30/welcome.cgi"
@dsid = ''
@agent = Mechanize.new
@agent.get(LOGIN_PAGE) do |page|
login_result = page.form_with(:name => 'frmLogin') do |login|
login.username = 'USERNAME'
@sohara
sohara / gist:7489653
Created November 15, 2013 18:55
js response
$('#checkout-summary').html(' <!--XRAY START 248 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_outer_summary.html.erb-->\n<!--XRAY START 245 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary.html.erb-->\n<h3>Order Summary<\/h3>\n<a href=\"/cart\" class=\"edit_order_contents_link\">Edit Order<\/a>\n\n<table id=\"order-line-items\" data-hook=\"order_summary\">\n<tbody>\n<!--XRAY START 243 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary_line_item.html.erb-->\n<tr>\n <td class=\"cart-image\">\n <img alt=\"Hero_boxclosed\" src=\"https://s3.amazonaws.com/lb-spree/spree/products/1830/small/hero_boxclosed.png?1383751177\" />\n <\/td>\n <td>\n Synth Kit <\/td>\n <td>\n 1\n <\/td>\n <td class=\"price-column\">\n $135.15\n <\/td>\n<\/tr>\n\n<!--XRAY END 243--><!--XRAY START 244 /Users/seanohara/Code/little_bits/app/views/spree/checkout/_summary_line_item.html.erb-->\n<tr>\n <td class=\"cart-image\">\n <img alt=\"Deluxeopen3_v2lr\" src=\"http
<?xml version="1.0"?>
<DeliveryOrders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Action="Create" xsi:noNamespaceSchemaLocation="http://schema.pchintl.com/DO/DO_1.0.xsd">
<DO>
<DN>H35873740614</DN>
<PODT>2013-09-18</PODT>
<DCDT>2013-09-18</DCDT>
<BAdr>
<Nm1>Mildred E Vogassaris</Nm1>
<Adr1>50995 ROSEMARY LN</Adr1>
<Adr2/>