Notice: Trying to access array offset on value of type bool in /home/customer/www/flogvit.com/public_html/wp-content/themes/Divi/includes/builder/functions.php on line 2442
Archives | Flogvit

#javascript and parsing param string

Got a little challenge parsing strings like: Little brown="and yellow" fox=1 jumps over=lazy dog I wanted to split it into an array with key/value pairs, so the result would be: var res = [ [ 'Little', undefined ], [ 'brown', 'and yellow' ], [ 'fox', '1' ],...

@nodejs and object sort speed

I was coding a scheduler and needed a sorted array of the schedules, so I started to investigate the speed of different sorting variants I could use. I created a little program (https://gist.github.com/flogvit/c9df93ab37ca4dbd2d7f) to test 4 different variants. For...
%d bloggers like this: