Skip to content

Instantly share code, notes, and snippets.

View lxcodes's full-sized avatar

Alexander lxcodes

  • fh group
  • Erie, PA
View GitHub Profile
@lxcodes
lxcodes / console.log
Last active August 29, 2015 14:05
Pricing Failing Even With Correct Account
Account: Class {isFulfilled: false, isRejected: false, __ember1408629527214: null, __nextSuper: undefined, __ember1408629527214_meta: Object…} vendor.js:16672
Pricing?: false vendor.js:16672
Pricing On Account?: undefined
@lxcodes
lxcodes / example.yml
Created July 29, 2014 14:24
Conditional Example
{% if item.password == '' %}
password={{ lookup('password', '../../../credentials/mysql/' + inventory_hostname + '/' + item.name + '/' + item.user + '_password length=15') }}
{% else %}
password={{ item.password }}
{% endif; %}
vhosts:
-
name: 'site'
servername: 'site.com'
documentroot: "/var/www/siteroot"
@lxcodes
lxcodes / example.html
Created July 10, 2014 15:22
mPower Column Switch Example
<div class="row">
<div class="col-sm-6">We are the product development division of Modern Industries, a diversified, multi-division corporation founded in 1946. As a manufacturing operation that faces global competition, we fully understand that the need work to faster, smarter and at a lower
cost is the key to either success of failure in today’s competitive marketplace.</div>
<div class="col-sm-6">
<img class="img-responsive alignnone wp-image-75 size-full" src="http://vagrant.local/content/uploads/2014/07/speedloc_content.png" alt="speedloc_content" />
</div>
</div>
<div class="row">
<div class="col-sm-6 col-sm-push-6">
<h3>Innovative Solutions</h3>
@lxcodes
lxcodes / bower.json
Created June 25, 2014 18:33
Gulpfile Missing Spin.js
{
"name": "xxx",
"dependencies": {
"bootstrap": "~3.1.1",
"swiper": "~2.6.0",
"hammerjs": "~1.1.2",
"jquery-hammerjs": "~1.1.2",
"lodash": "~2.4.1",
"handlebars": "~1.3.0",
"spin.js": "~2.0.1"
@lxcodes
lxcodes / ResultController.coffee
Last active August 29, 2015 14:03
Troubleshooting
PumpResultController = Ember.ObjectController.extend
needs: ['pumpSelectorResults']
isSelected: false
@lxcodes
lxcodes / gist:11300794
Created April 25, 2014 19:43
TempFile Missing Constant
$ pry
[1] pry(main)> require 'tempfile'
=> false
[2] pry(main)> TempFile.new
NameError: uninitialized constant TempFile
from (pry):2:in `__pry__'
@lxcodes
lxcodes / wddx_rstfiles.xml
Last active August 29, 2015 14:00
Offending wddx_rstfiles.xml
<wddxPacket version='1.0'><header/><data><recordset rowCount='26' fieldNames='fileID,contentID,siteID,moduleID,filename,image,imageSmall,imageMedium,fileSize,contentType,contentSubType,fileExt,created,deleted,caption,credits,alttext,remoteID,remoteURL,remotePubDate,remoteSource,remoteSourceURL,exif' type='coldfusion.sql.QueryTable'><field name='fileID'><string>013D1662-4F2D-48C3-A571496F6A026C54</string><string>092F3F3B-38F9-46AD-9482E633283325CF</string><string>0A15B58D-94DC-4A63-B9BFE5C78E1CEC93</string><string>0D69E598-6CE3-419D-B9B371781AFBBC77</string><string>1AB4C89F-B9D7-4243-A32FF212BFA32356</string><string>1CC9711E-C1AC-49CD-91917867B60D55E8</string><string>3CEA7CB9-057B-4151-AE48C526692F92DA</string><string>3E6B23E2-E48A-48FD-9EF7D303EF7CC181</string><string>420966A1-E936-4163-938493C99602D13D</string><string>4A69CC51-5031-4BB4-BDC3602B4F876095</string><string>6D678BBB-8F89-47E7-ABBCCAD859C6D461</string><string>7C267036-3402-4615-A6DEF69F7239B902</string><string>7DA5CC15-F448-49A0-984DF81BEE83D80B</
#!/usr/bin/python
import argparse
import re
import logging
import os
import sys
if os.name == "nt":
import pbs as sh
@lxcodes
lxcodes / app.js
Last active August 29, 2015 13:56
...
App.ImagesController = Ember.ArrayController.extend({
imageCount: Ember.computed.alias('length'),
actions: {
removeSelectedImages: function(){
console.log('called');
}
}
});