Skip to content

Instantly share code, notes, and snippets.

View sedrickcz's full-sized avatar

Jiří Kratochvíl sedrickcz

View GitHub Profile
<template>
<LandingPage>
<div class="flex justify-between">
<SubMenu />
<g-image src="~/assets/images/team.jpg" alt="" class="" />
</div>
<section class="flex flex-col pr-6 mb-16">
<h1 class="">Team</h1>
<div class="flex flex-wrap justify-between w-1/2">
ERROR Failed to compile with 46 errors friendly-errors 15:51:06
These dependencies were not found: friendly-errors 15:51:06
friendly-errors 15:51:06
* core-js/modules/es6.array.find in ./.nuxt/client.js, ./.nuxt/firebase-module/main.js friendly-errors 15:51:06
* core-js/modules/es6.array.from in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 15:51:06
* core-js/modules/es6.array.iterator in ./.nuxt/client.js friendly-errors 15:51:06
* core-js/modules/es6.date.to-str
[
{
departure: "Berlin",
arrival: "Paris",
departure_at: "2020-05-31T08:25:00.000Z",
arrival_at: "2020-05-31T09:55:00.000Z",
vehicle: "hyperloop",
provider: {
name: "Hyperloop One",
slug: "hyperloop_one",
@sedrickcz
sedrickcz / add_invoices_to_user.rb
Created March 21, 2018 20:06
Add invoices to users
invoices = SmarterCSV.process('invoices.csv', { col_sep: ";" })
not_found = 0
ok = 0
invoices.each do |invoice|
user = Refinery::User.where(id: invoice[:user_id].to_i).first
if user
user.invoices.create number: invoice[:number].to_i, file_path: invoice[:invoice_file_name]
ok += 1
else
@sedrickcz
sedrickcz / invoice_import.rb
Created February 16, 2018 23:51
Import invoices to db
invoices = SmarterCSV.process('invoices.csv', { col_sep: ";" })
not_found = 0
not_matching_id = 0
ok = 0
invoices.each do |invoice|
tracking_number = TrackingNumber.where(waybill: invoice[:waybill].to_s).first
if tracking_number
if tracking_number.user_id.to_i == invoice[:user_id].to_i
tracking_number.update_attribute(:invoice, invoice[:invoice_file_name])
@sedrickcz
sedrickcz / create_invoice_list.rb
Last active February 16, 2018 23:21
Create invoice list from directory
File.open("invoices.csv", 'w+') { |file|
file.write("user_id;waybill;invoice_file_name\n")
}
dir_path = File.join(Rails.root, 'private', 'invoices')
invoices = Dir.entries(dir_path)
invoices.each do |invoice|
next if ['.', '..', '.DS_Store'].include?(invoice)
@sedrickcz
sedrickcz / gist:a7dc8c2b5bd4af0fe613131bc0f46e28
Last active February 16, 2018 00:16
Payment csv merger
payments = SmarterCSV.process('paypal1.csv', { col_sep: ";" })
File.open("paypal_payments.csv", 'w+') { |file|
file.write("status;email;transaction_id;country;country_code\n")
}
payments.each do |payment|
country_code = ISO3166::Country.find_country_by_name(payment[:country])&.alpha2
File.open("paypal_payments.csv", 'a') { |file|
- [ ] http://vuetron.io/
- [ ] https://vuejsbook.com/vuejs-storefront-all-in-one-front-end-for-ecommerce
- [ ] https://medium.com/js-dojo/5-vuex-plugins-for-your-next-vuejs-project-df9902a70de2
- [ ] https://parceljs.org/
- [ ] https://medium.com/@ericsimons/introducing-turbo-5x-faster-than-yarn-npm-and-runs-natively-in-browser-cc2c39715403
- [ ] https://bootstrap-vue.js.org/
- [ ] https://medium.com/@znck/accessible-components-test-driven-approach-d4eb458305a1
- [ ] https://medium.com/pixelmatters/unit-testing-with-vue-approach-tips-and-tricks-part-1-b7d3209384dc
bunzip2 -f db/crawdio_production_2016-12-22-221526.sql.bz2 && psql -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'kingdomcomerpg_development' AND pid <> pg_backend_pid();;" ; dropdb kingdomcomerpg_development; createdb kingdomcomerpg_development; psql -d kingdomcomerpg_development < db/crawdio_production_2016-12-22-221526.sql
#= require 'module'
$ = jQuery
@module 'Hypo', ->
class @Chat
constructor: (@opt) ->
@$container = $(@opt.container)
@animation = new Hypo.ChatAnimation(container: @$container)