Skip to content

Instantly share code, notes, and snippets.

class Match < ActiveRecord::Base
self.primary_key = :match_id
has_many :memberships, class_name: 'Match::Membership'
has_many :users, through: :memberships
validates :match_id, uniqueness: true
before_create :get_details
after_save :build_memberships_and_update_players_field
jewlery
id, name
1, 'ring'
JewleryProprietsCategories
id, jewlery_id, name
1, 1, 33, 'Weight'
2, 1, 43, 'Stone'
JewleryProperties
@sebyx07
sebyx07 / gg.csv
Created September 29, 2014 20:54
Type ItemName Item Image Lot Image Certificate Image Lot ID Parcel Name Qty MainStone Size MainStone Weight Shape Color Purity Status MainStone Lab MainStone Cert Weight Notes Jew Model T. Green Price Metal Weight GR
Regular RING 1 6050603 18K White 1 1.00-1.49 1.09 OV FY SI1 MEMO GIA 2155113306 5.10 M-RE00539 RRME00539001 5,000.00 4.06
prototypes:
jewellery:
- item_name
- item_image
- lot_image
- certificate_image
- lot_id
- parcel_name
- qty
- mainstone_size
def self.start(opts = {})
path = opts[:path]
prototype_name = opts[:prototype_name]
prototype_name_column = opts[:prototype_name_column]
price_column = opts[:price_column]
csv = self.new(path)
prototype = self.create_prototype(prototype_name, csv.headers)
products = self.create_products(prototype.id, csv.line_items, prototype_name_column, price_column)
true
result = plusTwo(20, function(err, result){
if err
console.log(err)
else
console.log(result)
});
plusTwo = function( param, callback){
if !param.instanceOf(Integer)
Da relativ ok
Seb Yx
10:25pm
Seb Yx
imi pare bine sa aud asta
Popa Alexandra
10:28pm
Popa Alexandra
Seb Yx
10:31pm
Primary stats
carry:
% kills
net_worth
support:
assists
deaths
mid:
β–‘β–‘β–‘β–‘β–‘β–„β–„β–„β–„β–€β–€β–€β–€β–€β–€β–€β–€β–„β–„β–„β–„β–„β–„β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–‘β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–‘β–‘β–€β–€β–„β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–’β–’β–’β–’β–’β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–’β–‘β–‘β–ˆβ–‘β–‘β–‘
β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–„β–ˆβ–ˆβ–€β–„β–„β–‘β–‘β–‘β–‘β–‘β–„β–„β–„β–‘β–‘β–‘β–‘β–ˆβ–‘β–‘
β–‘β–„β–€β–’β–„β–„β–„β–’β–‘β–ˆβ–€β–€β–€β–€β–„β–„β–ˆβ–‘β–‘β–‘β–ˆβ–ˆβ–„β–„β–ˆβ–‘β–‘β–‘β–‘β–ˆβ–‘
β–ˆβ–‘β–’β–ˆβ–’β–„β–‘β–€β–„β–„β–„β–€β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–’β–’β–’β–’β–’β–‘β–ˆ
β–ˆβ–‘β–’β–ˆβ–‘β–ˆβ–€β–„β–„β–‘β–‘β–‘β–‘β–‘β–ˆβ–€β–‘β–‘β–‘β–‘β–€β–„β–‘β–‘β–„β–€β–€β–€β–„β–’β–ˆ
β–‘β–ˆβ–‘β–€β–„β–‘β–ˆβ–„β–‘β–ˆβ–€β–„β–„β–‘β–€β–‘β–€β–€β–‘β–„β–„β–€β–‘β–‘β–‘β–‘β–ˆβ–‘β–‘β–ˆβ–‘
β–‘β–‘β–ˆβ–‘β–‘β–‘β–€β–„β–€β–ˆβ–„β–„β–‘β–ˆβ–€β–€β–€β–„β–„β–„β–„β–€β–€β–ˆβ–€β–ˆβ–ˆβ–‘β–ˆβ–‘β–‘
β–‘β–‘β–‘β–ˆβ–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–€β–ˆβ–„β–„β–„β–ˆβ–„β–„β–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–ˆβ–‘β–‘β–‘
content.addComponent(new Button("Push Me!",
new ClickListener() {
@Override
public void buttonClick(ClickEvent e) {
Notification.show("Pushed!");
}
}));