This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| require "uglifier" | |
| require "rake-pipeline-web-filters" | |
| # this gives you concat, coffee_script, and minispade methods | |
| require "rake-pipeline-web-filters/helpers" | |
| class ImportFilter < Rake::Pipeline::Filter | |
| def generate_output(inputs, output) | |
| inputs.each do |input| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| only /Xcode/ do | |
| map '<Cmd-d>', "<Cmd-Shift-l>" "<Delete>" | |
| map '<Cmd-Option-Up>', "<Cmd-Shift-l>" "<Cmd-c>" "<Cmd-Left>" "<Cmd-v>" "<Up>" | |
| map '<Cmd-Option-Down>', "<Cmd-Shift-l>" "<Cmd-c>" "<Cmd-Left>" "<Cmd-v>" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Configuration elsewhere in the file | |
| self.paginationMapping = [RKObjectMapping mappingForClass:[RKObjectPaginator class]]; | |
| [paginationMapping mapKeyPath:@"current_page" toAttribute:@"currentPage"]; | |
| [paginationMapping mapKeyPath:@"per_page" toAttribute:@"perPage"]; | |
| [paginationMapping mapKeyPath:@"total_entries" toAttribute:@"objectCount"]; | |
| // Object Mappings for Unit Pricing | |
| self.unitPricingMapping = [RKManagedObjectMapping mappingForClass:[UnitPricingEntry class] inManagedObjectStore:self.objectManager.objectStore]; | |
| [unitPricingMapping mapKeyPath:@"id" toAttribute:@"unitPricingEntryId"]; | |
| [unitPricingMapping setPrimaryKeyAttribute:@"unitPricingEntryId"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ErrorCode":"String content", | |
| "ErrorText":"String content", | |
| "ResultCode":"String content", | |
| "NextProcessDate":"String content", | |
| "Products":[{ | |
| "ErrorCode":"String content", | |
| "ErrorText":"String content", | |
| "ResultCode":"String content", | |
| "Product":{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RKObjectMapping* productMapping = [RKObjectMapping mappingForClass:[CWProduct class]]; | |
| [productMapping mapKeyPathsToAttributes:@"Product.Id", @"productId", @"Product.ProductCode", @"productCode", @"Product.Name", @"name", @"Product.Description", @"descriptionText", @"Product.IsInBox", @"isInBox", @"Product.QtyInBox", @"quantityInBox", @"Product.Images", @"images", @"Product.Videos", @"videos", @"Product.Attributes", @"attributes", @"Product.Link", @"link", @"Product.Rating", @"rating", nil]; | |
| productMapping.rootKeyPath = @"Products"; | |
| // curl -XPOST -d "mid=4" http://feeds.clubw.com.asp1-1.dfw1-2.websitetestlink.com/mobile.svc/GetProductList | |
| [objectManager.mappingProvider setObjectMapping:productMapping forResourcePathPattern:@"/mobile.svc/GetProductList"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ErrorCode":"String content", | |
| "ErrorText":"String content", | |
| "ResultCode":"String content", | |
| "Product":{ | |
| "Attributes":[{ | |
| "Name":"String content", | |
| "Value":"String content" | |
| }], | |
| "Description":"String content", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import base64 | |
| import suds | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| logging.getLogger('suds.client').setLevel(logging.DEBUG) | |
| url = "https://secure.echosign.com/services/EchoSignDocumentService14?wsdl" | |
| client = suds.client.Client(url, autoblend=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import base64 | |
| import suds | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| logging.getLogger('suds.client').setLevel(logging.DEBUG) | |
| url = "https://secure.echosign.com/services/EchoSignDocumentService14?wsdl" | |
| client = suds.client.Client(url, autoblend=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| api_key="your Prowl API key goes here" | |
| cd ~ | |
| testSiteForChanges () { | |
| ls "old_page.html" 1>/dev/null 2>/dev/null | |
| if [ $? -eq "1" ] ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": 12, | |
| "title": "Events", | |
| "children": [{ | |
| "id": 14, | |
| "title": "Congresses", | |
| "children": [], | |
| "events": [{ | |
| "start": "2013-12-07T17:45:48Z", | |
| "end": "2013-12-10T16:59:59Z", |