Skip to content

Instantly share code, notes, and snippets.

View sohara's full-sized avatar

Sean O'Hara sohara

View GitHub Profile
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 / application.controller.js
Last active December 14, 2015 21:21
CustomLayout
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@sohara
sohara / application.controller.js
Last active November 9, 2015 23:16
Simple Table
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
collection: [
{name: 'Jack Seamus', title: 'President'},
{name: 'Jill Gillian', title: 'Manager'}
],
actions: {
#!/usr/bin/env python
from __future__ import print_function
from subprocess import call
import cookielib
import bs4
import mechanize