Skip to content

Instantly share code, notes, and snippets.

View app_models_diff3.diff
diff --git a/app/models/fpr_cron_parser.rb b/app/models/fpr_cron_parser.rb
new file mode 100644
index 000000000..51954d9fa
--- /dev/null
+++ b/app/models/fpr_cron_parser.rb
@@ -0,0 +1,30 @@
+# frozen_string_literal: true
+
+class FprCronParser
+ attr_reader :cron_string, :cron_parser, :time_zone
View app_models_diff2.diff
diff --git a/app/models/checkout_location.rb b/app/models/checkout_location.rb
index 0a017d1ed..9b9fc0892 100644
--- a/app/models/checkout_location.rb
+++ b/app/models/checkout_location.rb
@@ -156,7 +156,7 @@ class CheckoutLocation < ApplicationRecord
end
def alertable?
- shoppable? && !demo?
+ setup_statuses.none?(&:issue?)
View app_models_diff.diff
diff --git a/app/models/checkout_location.rb b/app/models/checkout_location.rb
index 0a017d1ed..9b1e82deb 100644
--- a/app/models/checkout_location.rb
+++ b/app/models/checkout_location.rb
@@ -196,11 +196,9 @@ class CheckoutLocation < ApplicationRecord
demo_reasons.present?
end
- SHOPPABLE_STATUSES = %i[ready demo].freeze
def ready_for_shopping?
View pumpkin-roll.md

Cream Cheese Pumpkin Roll

Ingredients

  • 3 eggs
  • 2/3 cup canned pumpkin
  • 1 cup sugar
  • 1 teaspoon of baking soda
  • 1/2 teaspoon ground cinnamon
  • 3/4 cup of flour
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
get foo() {
return "i was returned from the getter foo";
}
});
View controllers.application.js
import Ember from 'ember';
import { task, timeout, waitForProperty } from 'ember-concurrency';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
count: 0,
foo: task(function() {
return {
@machty
machty / ember-cli-build.js
Last active Sep 4, 2020
Broccoli challenges
View ember-cli-build.js
/* jshint node: true */
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const generateWhitelabelIndexes = require('./generate-whitelabel-indexes');
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
// ...all sorts of config
});
View controllers.application.js
import Ember from 'ember';
let guid = () => (Math.random().toString(36) + '00000000000000000').slice(2, 14)
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
vol: Ember.computed(function() {
return guid();
}).volatile(),
actions: {
View controllers.application.js
import Ember from 'ember';
import { lifespan, subscription } from "../subscription";
import { bind } from '@ember/runloop';
import { task, timeout } from 'ember-concurrency';
export default Ember.Controller.extend({
chatRooms:[ "EmberChat", "ReactChat", "VueChat", "AngularChat"],
chatRoom: null,
// chatRoomName: null,
View controllers.application.js
import Ember from 'ember';
import { subscription } from "../subscription";
import { bind } from '@ember/runloop';
import { task, timeout } from 'ember-concurrency';
export default Ember.Controller.extend({
chatRooms:[ "EmberChat", "ReactChat", "VueChat", "AngularChat"],
chatRoomName: null,