Skip to content

Instantly share code, notes, and snippets.

@lpender
lpender / ql.xml
Last active November 6, 2019 16:59
Shipment Order Summary Schema
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://schemas.quietlogistics.com/V2/ShipmentOrder.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:p1="http://schemas.quietlogistics.com/V2/ShipmentOrder.xsd" xmlns:mstns="http://schemas.quietlogistics.com/V2/ShipmentOrder.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" >
<xs:element name="ShipOrderDocument" nillable="false" type="p1:ShipOrderDocumentType" />
<xs:complexType name="AddressType">
<xs:sequence>
<xs:element name="Extension" type="xs:string" maxOccurs="1" minOccurs="0" />
</xs:sequence>
<xs:attribute name="Company" type="xs:string" use="optional" />
<xs:attribute name="Contact" type="xs:string" use="optional" />
<xs:attribute name="Address1" type="xs:string" use="required" />
@lpender
lpender / cart.liquid
Created November 6, 2019 16:49
cart.liquid example of gift notes
{% comment %}
Optional, add a textarea for special notes
- Your theme settings can turn this on or off. Default is on.
- Make sure you have name="note" for the message to be submitted properly
{% endcomment %}
{% if settings.cart_notes_enable %}
<div class="grid__item large--seven-twelfths cart__note-container">
<div class="cart__note">
<label for="CartSpecialInstructions">{{ 'cart.general.note' | t }}</label>
<textarea name="note" class="input-full" id="CartSpecialInstructions">{{ cart.note }}</textarea>
=> Errors executing Cordova commands:
While preparing Cordova project for platform iOS:
Error: Cannot find module '../plugman/platforms/ios'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Context.requireCordovaModule
(/Users/lpender/.meteor/packages/meteor-tool/.1.5.2-rc.2.t17zkx++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/Context.js:77:12)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote: -----> Installing node
remote: -----> Installing meteor
remote: Downloading Meteor distribution
remote:
remote: Meteor 1.4.3.2 has been installed in your home directory (~/.meteor).
remote:
{
"reservation_id": "123",
"addOns": [
{
"id": 1,
"amount": 1
},
{
"id": 4,
"amount": 1
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '.',
frameworks: [
'mocha',
'chai',
'chai-as-promised',
'fixture',
@lpender
lpender / .bummr-build.sh
Last active April 12, 2018 18:33
Multi-pass build script
#!/bin/sh
MAX_TRIES=4
COUNT=0
EXIT=0
while [ $COUNT -lt $MAX_TRIES ] && [ $EXIT -eq 0 ]; do
git log --pretty=format:'%s' -n 1
echo "\nRunning test suite... $COUNT of $MAX_TRIES"
bundle exec rake
let EXIT=$?
@lpender
lpender / NGRapv.markdown
Created September 24, 2015 04:37
NGRapv
@lpender
lpender / gist:148700fc8d98e6ab4cbd
Last active August 29, 2015 14:04
PusherFake Server Error
7:50:42 web.1 | >> Thin web server (v1.5.1 codename Straight Razor)
17:50:42 web.1 | >> Maximum connections set to 1024
17:50:42 web.1 | >> Listening on 127.0.0.1:1976, CTRL+C to stop
17:50:42 web.1 | /Users/lpender/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
17:50:42 web.1 | from /Users/lpender/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_server'
17:50:42 web.1 | from /Users/lpender/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thin-1.5.1/lib/thin/backends/tcp_server.rb:16:in `connect'
17:50:42 web.1 | from /Users/lpender/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thin-1.5.1/lib/thin/backends/base.rb:55:in `block in start'
17:50:42 web.1 | from /Users/lpender/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thin-1.5.1/lib/thin/backends/base.rb:61
@lpender
lpender / HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install php54-apc
Created March 25, 2013 19:23
Homebrew error in compiling php54-apc
lpender-iMac:healthguru.phoenix lpender$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install php54-apc
==> Downloading http://pecl.php.net/get/APC-3.1.10.tgz
Already downloaded: /Library/Caches/Homebrew/php54-apc-3.1.10.tgz
tar xf /Library/Caches/Homebrew/php54-apc-3.1.10.tgz
==> /usr/local/Cellar/php54/5.4.12/bin/phpize
/usr/local/Cellar/php54/5.4.12/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525