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
howdy |
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
/** | |
* Converts a map of action keys into redux-dispatchable string values, | |
* so you don't have to type the action name a bunch of times. | |
* | |
* Example: | |
* | |
* let actions = { | |
* EAT_TACO: null, | |
* EAT_BURRITO: null, | |
* |
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
/** | |
* Loads a DuckEntityForm and pre-populates it with the value from a singleDuck | |
* | |
* Note that you need to map the form properties into your component props separately using mapStateToProps. i.e. | |
* | |
* const tacos = DuckEntity(); | |
* const tacoForm = DuckEntityForm(); | |
* | |
* function mapDucksToProps (props) { |
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
/** | |
* Converts a map of action keys into redux-dispatchable string values, | |
* so you don't have to type the action name a bunch of times. | |
* | |
* Example: | |
* | |
* let actions = { | |
* EAT_TACO: null, | |
* EAT_BURRITO: null, | |
* |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks |
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
class NormalizeUserNames < ActiveRecord::Migration | |
def self.up | |
total_customers = Customer.count | |
Customer.all.each_with_index do |customer, index| | |
puts " [#{index + 1}/#{total_customers}] #{customer.subdomain}" | |
System.with_customer(customer) do | |
User.silo.each do |u| | |
u.first_name = u.first_name.strip |