I realised the issue with the 4x4 grid is that it will miss bacteria that should die from overcrowding. For example:
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isBlankSelected: Ember.computed.empty('selectedOption'), | |
actions: { | |
loadFilter(selectedOption) { | |
this.set('selectedOption', selectedOption); | |
} | |
} |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
function updatePickupDate() { | |
var sheet = SpreadsheetApp.getActive().getSheetByName('pickupDateAlterations'); | |
var data = sheet.getDataRange().getValues(); | |
var ordersAndPickupDates = getOrdersAndPickupDates(data); | |
Logger.log(ordersAndPickupDates); | |
var options = { | |
method: "patch", | |
payload: JSON.stringify({"orders": ordersAndPickupDates}) | |
} | |
UrlFetchApp.fetch('https://citypantry.localtunnel.me/orders/bulk-update-pickup-date', options); |
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
## Promocode controller/generate endpoint controller | |
def generate | |
begin | |
@promocode.is_valid? | |
rescue e #An array of errors | |
render json: e | |
end | |
if @promocode.save |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model: function() { | |
return this.store.find('todo'); | |
}, | |
actions: { | |
createTodo: function (newTitle) { | |
// Create the new Todo model | |
var todo = this.store.createRecord('todo', { |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
createTodo: function(newTitle) { | |
this.set('newTitle', ''); | |
this.sendAction('createTodo', newTitle); | |
} | |
} | |
}); |
NewerOlder