- Environments
- Production: http://dsg.com/giftlocker/api/v1/
- Staging: http://stage-origin.dsg.com/giftlocker/api/v1/
- REST semantics are not followed for POST, PUT, & DELETE in order to support JSONP clients
- All GET endpoints support the JSONP callback parameter
The DSG Product API returns only products and skus that are marked as active "A" in the product feed. To override this behavior all APIs support sending an "unfiltered=true" parameter that will return all results.
- Search by PID(s) Supports the JSONP callback parameter
http://api.dsg.com/api/v1/products/search?pids=<pid1,pid2,pid3>
This file contains 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
if (supportsMaps_) | |
{ | |
BOOL initialized = NO; | |
CLLocationDegrees minLat = -1000.0f; | |
CLLocationDegrees maxLat = 1000.0f; | |
CLLocationDegrees minLong = -1000.0f; | |
CLLocationDegrees maxLong = 1000.0f; | |
// We support maps, loop over houses to find the region to fit | |
for (Household *household in [self households]) |
This file contains 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
ActiveAdmin::Dashboards.build do | |
# Add this section in your dashboard... | |
section "Background Jobs" do | |
now = Time.now.getgm | |
ul do | |
li do | |
jobs = Delayed::Job.where('failed_at is not null').count(:id) | |
link_to "#{jobs} failing jobs", admin_jobs_path(q: {failed_at_is_not_null: true}), style: 'color: red' | |
end |
This file contains 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/sh | |
# Version 2.0 (updated for Xcode 4, with some fixes) | |
# Changes: | |
# - Works with xcode 4, even when running xcode 3 projects (Workarounds for apple bugs) | |
# - Faster / better: only runs lipo once, instead of once per recursion | |
# - Added some debugging statemetns that can be switched on/off by changing the DEBUG_THIS_SCRIPT variable to "true" | |
# - Fixed some typos | |
# | |
# Purpose: |