Skip to content

Instantly share code, notes, and snippets.

@jayuen
jayuen / gist:973d06c444cdc827d41f22572618f409
Last active December 16, 2016 05:07
glassdoor-response-2016-12-15

Thank you for your feedback, both the pros and cons. I enjoyed reading the critical feedback because it’s a great opportunity to reflect on how we do things. I’d like to address each of your points to hopefully provide some clarity on the topics you raised.

  1. The product is nothing more than a bloated CRUD app. There are parts of the our main platform that are focused on configuration and, in these interactions, there is a strong bent towards CRUD (create, read, update, delete). However, the majority of our platform provides domain specific capabilities where CRUD is not an accurate characterization of the approach we take. For instance, inventory recall, lot/expiry traceability, quality control, production scheduling, labour optimization, and integration with other enterprise systems. Perhaps you didn’t get a chance to work on the more complex parts of the system during your time here and so I can understand why you have the impression of “bloated CRUD”.

  2. The code is in a … questionable state I agree

Keybase proof

I hereby claim:

  • I am jayuen on github.
  • I am jasony (https://keybase.io/jasony) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

javascript:(function(){
var ticketId = jQuery("#card-index").text().trim().replace("#", "");
var ticketDescription = jQuery("#card-short-description").text().trim().replace(/\W/g, ' ').replace(/([A-Z][a-z])/g,'$1').replace(/\s{2,}/g, ' ').trim();
var branchName = (ticketId + " " + ticketDescription).split(" ").join("_").toLowerCase();
jQuery("#card-short-description").after("<h1>git checkout -b " + branchName + "</h1>")
})();
require 'barby/barcode/code_25_interleaved'
module CustomOutputs::BarcodeGenerator
def generate_barcode_25 text
barcode = Barby::Code25Interleaved.new(text)
barcode.to_html.html_safe
end
@jayuen
jayuen / has_skus.rb
Last active December 26, 2015 09:19
def has_skus?
from_adjustment_has_sku? or to_adjustment_has_sku?
end
def from_adjustment_has_sku?
from_adjustment.try(:sku).present?
def to_adjustment_has_sku?
to_adjustment.try(:sku).present?
end
@jayuen
jayuen / gist:6787780
Created October 2, 2013 01:22
DateWithTimezone
define("DateWithTimezone", function(module) {
var DateWithTimezone = function(moment){
this.moment = moment
moment.tz(DateWithTimezone.getTimezone())
}
_.extend(DateWithTimezone.prototype, {
toISO: function(){
return this.format()
},
@jayuen
jayuen / gist:6338077
Last active December 21, 2015 17:08
Converting a local equivalent date into a DateWithTimezone
// generate a string that only has the time portion
var strWithoutTimezone = moment(localEquivalent).format("YYYY-MM-DDTHH:mm:ss")
// extract out the site's timezone identifier (DateWithTimezone.getTimezone() stores the site's timezone)
var timezone = moment.tz(DateWithTimezone.getTimezone()).format("Z")
// create a moment in the site's timezone and use it to initialize a `DateWithTimezone`
return new DateWithTimezone(moment(strWithoutTimezone + timezone))
var data = [
{brand: 'Kraft', sites: [
{name: 'Strive Morris', integrated: false, jobs_per_day: 50},
{name: 'Strive Aurora', integrated: true, jobs_per_day: 100},
{name: 'Strive Westway', integrated: true, jobs_per_day: 25},
]},
{brand: 'Frito Lay', sites: [
{name: 'BCP', integrated: false, jobs_per_day: 2},
{name: 'Industrial', integrated: false, jobs_per_day: 5},
{name: 'ATCO', integrated: false, jobs_per_day: 10},
<script type="text/html">
<div>{{mustacheVar}}</div>

...

</script>
<script type="text/html">
<div>{{mustacheVar}}</div>

...

</script>