Skip to content

Instantly share code, notes, and snippets.

View SerhiiKozachenko's full-sized avatar

Serhii Kozachenko SerhiiKozachenko

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
Product Name and Size,Category,Sub Category,Product,Price (C),Item number,Product Description - Fabric; Features; Printing Method,Width (in inches),Height (in inches),Pixel Dimension (Width),Pixel Dimension (Height),Optimal Resolution,Package Type,CS Length/IN,CS Width/IN,CS Height/IN,CS Weight/LBS,CBM,Care Instructions
White Crewneck Fleece Sweatshirt Front and Back Print - S,DTG Apparel,Front and Back Print,Crewneck Fleece Sweatshirt,$28.31,32285,White Bella Canvas 3945 Crewneck Fleece Sweatshirt; FRONT AND BACK PRINT; Direct-to-Garmet,See Template,,,,,Mailer Bag,13.00,10.00,1.00,0.73,0.07523148148,"Machine Wash, Cold Water, Gentle Cycle, Do Not Bleach, Tumble Dry Low, Do Not Iron"
White Crewneck Fleece Sweatshirt Front and Back Print - M,DTG Apparel,Front and Back Print,Crewneck Fleece Sweatshirt,$28.31,32284,White Bella Canvas 3945 Crewneck Fleece Sweatshirt; FRONT AND BACK PRINT; Direct-to-Garmet,See Template,,,,,Mailer Bag,16.00,10.00,1.00,0.85,0.09259259259,"Machine Wash, Cold Water, Gentle Cycl
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 19 columns, instead of 7 in line 3.
Product Name and Size,Category,Sub Category,Product,Price (C),Item number,Product Description - Fabric; Features; Printing Method,Width (in inches),Height (in inches),Pixel Dimension (Width),Pixel Dimension (Height),Optimal Resolution,Package Type,CS Length/IN,CS Width/IN,CS Height/IN,CS Weight/LBS,CBM,Care Instructions
"Spun Polyester Blown & Closed Pillow - 14"" x 14""",Home Decor,Pillows,Throw Pillows,$7.88,PRT-GEN-SD4GPW,Spun Polyester; Blown & Closed; Polyester Fill; Double-Sided Print; Dye Sublimation,31.00,15.50,4650,2325,150,Mailer Bag,15.00,15.00,4.35,0.75,0.56640625,Spot Clean / Dry Clean Only
"Spun Polyester Blown & Closed Pillow - 14"" x 10""",Home Decor,Pillows,Throw Pillows,$6.45,PRT-GEN-SHSG104,Spun Polyester; Blown & Closed; Polyester Fill; Double-Sided Print; Dye Sublimation,15.50,23.00,2325,3450,150,Mailer Bag,15.00,15.00,4.35,0.65,0.56640625,Spot Clean / Dry Clean Only
"Spun Polyester Blown & Closed Pillow - 16"" x 16""",Home Decor,Pillows,Throw Pillows,$9.74,PRT-GEN-SLG16S ,Spun Pol
@SerhiiKozachenko
SerhiiKozachenko / merchant-catalog.csv
Last active April 9, 2025 11:03
merchant-catalog.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 19 columns, instead of 7 in line 3.
Product Name and Size,Category,Sub Category,Product,Price (C),Item number,Product Description - Fabric; Features; Printing Method,Width (in inches),Height (in inches),Pixel Dimension (Width),Pixel Dimension (Height),Optimal Resolution,Package Type,CS Length/IN,CS Width/IN,CS Height/IN,CS Weight/LBS,CBM,Care Instructions
"Spun Polyester Blown & Closed Pillow - 14"" x 14""",Home Decor,Pillows,Throw Pillows,$7.88,PRT-GEN-SD4GPW,Spun Polyester; Blown & Closed; Polyester Fill; Double-Sided Print; Dye Sublimation,31.00,15.50,4650,2325,150,Mailer Bag,15.00,15.00,4.35,0.75,0.56640625,Spot Clean / Dry Clean Only
"Spun Polyester Blown & Closed Pillow - 14"" x 10""",Home Decor,Pillows,Throw Pillows,$6.45,PRT-GEN-SHSG104,Spun Polyester; Blown & Closed; Polyester Fill; Double-Sided Print; Dye Sublimation,15.50,23.00,2325,3450,150,Mailer Bag,15.00,15.00,4.35,0.65,0.56640625,Spot Clean / Dry Clean Only
"Spun Polyester Blown & Closed Pillow - 16"" x 16""",Home Decor,Pillows,Throw Pillows,$9.74,PRT-GEN-SLG16S ,Spun Pol
@SerhiiKozachenko
SerhiiKozachenko / cachebuilder.clj
Created July 14, 2024 14:21 — forked from lnostdal/cachebuilder.clj
Guava: CacheBuilder / CacheLoader for compute cache type thing and similar
;; This stuff is pretty useful in many contexts.
...
(:import (com.google.common.cache CacheBuilder CacheLoader))
...
quantataraxia.core> (with (-> (CacheBuilder/newBuilder)
(.weakKeys)
(let [f (future
(try
(Thread/sleep 10000)
(catch Throwable e
(println e)
(println "isInterrupted:" (.isInterrupted (Thread/currentThread)))
(println "isAlive:" (.isAlive (Thread/currentThread)))
(println "interrupted:" (Thread/interrupted)))))]
(Thread/sleep 500)
(future-cancel f)
@SerhiiKozachenko
SerhiiKozachenko / async_&_transducers.clj
Created July 14, 2024 09:03 — forked from lnostdal/async_&_transducers.clj
how to use transducer with clojure.core.async
;; I keep forgetting how to do this stuff for some reason, so here goes:
(let [c (async/chan 1 (map #(* % 2)))]
(async/go
(loop []
(when-let [e (async/<! c)]
(println "async/go, e:" e)
(recur))))
(async/>!! c 1)
(async/>!! c 2))
@SerhiiKozachenko
SerhiiKozachenko / upmap.clj
Created July 13, 2024 16:58 — forked from lnostdal/upmap.clj
Clojure unordered concurrency test: MAP vs. PMAP vs. UPMAP
;; www.Quanto.ga
;;
;; cp/upmap is from https://github.com/TheClimateCorporation/claypoole
quantataraxia.core> (do
(println "MAP:")
(println (time (doall (map (fn [x] (Thread/sleep x) x)
(range 500 50 -9)))))
(println "PMAP:")
@SerhiiKozachenko
SerhiiKozachenko / fast_local_mutation.clj
Created July 13, 2024 16:58 — forked from lnostdal/fast_local_mutation.clj
Clojure: Performance of with-local-vars vs. atom vs. volatile vs. unsynchronized-mutable field
;; Performance of with-local-vars vs. atom vs. volatile vs. unsynchronized-mutable field.
(definterface IOObject
(setVal [new-val])
(getVal [])
(oswap [f])
(oswap [f x])
(oswap [f x y])
(oswap [f x y z]))
Videos http://www.pyvideo.org/