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 hasher from './hasher'; | |
import React, { Component } from 'react'; | |
// import Reflux from 'reflux'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
raw: '' |
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
2.0.0 :037 > upcs | |
=> ["400001840948", "400001840924", "400001840931", "400001840955", "400001840962", "400001840979"] | |
2.0.0 :038 > Product.joins(product_colors: :skus).where(skus: { epicor_in_house_upc_number: upcs }).to_sql | |
=> "SELECT `products`.* FROM `products` INNER JOIN `product_colors` ON `product_colors`.`product_id` = `products`.`id` INNER JOIN `skus` ON `skus`.`product_color_id` = `product_colors`.`id` AND skus.deleted = 0 WHERE `skus`.`epicor_in_house_upc_number` IN ('400001840948', '400001840924', '400001840931', '400001840955', '400001840962', '400001840979')" | |
2.0.0 :039 > Product.joins(product_colors: :skus).where(skus: { epicor_in_house_upc_number: upcs }).to_a.uniq.sole.colors.map{ |c| [c.id, c.hide_color] } | |
=> [[3548462, false]] | |
2.0.0 :040 > Sku.where(epicor_in_house_upc_number: upcs).to_sql | |
=> "SELECT `skus`.* FROM `skus` WHERE `skus`.`epicor_in_house_upc_number` IN ('400001840948', '400001840924', '400001840931', '400001840955', '400001840962', '400001840979')" | |
2.0.0 :041 > Sku.wher |
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
# MAX_BOT_SEED to go fast | |
class GameOn < RTanque::Bot::Brain | |
NAME = 'GameOn' | |
include RTanque::Bot::BrainHelper | |
TURRET_FIRE_RANGE = RTanque::Heading::ONE_DEGREE * 1.0 | |
SWITCH_CORNER_TICK_RANGE = (600..1000) | |
def tick! | |
movable | |
if (target = nearest_target) |