Alexander Kazanski
alexkazanski.bsky.social
Alexander Kazanski
@alexkazanski.bsky.social
12 followers 5 following 170 posts
Posts Media Videos Starter Packs
Reposted by Alexander Kazanski
Reposted by Alexander Kazanski
🌕🇬🇧 Supermoon Over Big Ben – Palace of Westminster, London ✨
The Supermoon rises above London’s iconic skyline, perfectly aligned with Big Ben (the Elizabeth Tower) at the Palace of Westminster.

📸 Otherworld Earth

#travel #photography
Reposted by Alexander Kazanski
WHITE CLIFFS & BLUE SKIES
Dover, Kent

The forecast called for a rare clear day, so I hopped on the first train from London — caffeine in hand. Totally worth it!

Fun Fact: my phone thought I was in France! 🤣🤷🏻‍♂️

IG: seanmarier

#photography #travel #travelphotography #uk #england #whitecliffsofdover
Reposted by Alexander Kazanski
Reposted by Alexander Kazanski
QP Travel Thursday
Post travel photos with location #TravelThursday

Southern Utah ♥️
Set stream processing:
stream.forEach(item => { if (!seen.has(item)) { seen.add(item) process(item) } })
Process game events, skip duplicates. Clean feed.
#JavaScript #Set #Streaming
Set exhaustion check:
if (set.size === totalPlayers) allProcessed()
Did the ENTIRE team finish drills?
#JavaScript #Set #Complete
Set size limits:
if (set.size < MAX_PLAYERS) set.add(player)
Roster cap enforced. League rules.
#JavaScript #Set #Limits
Set frozen/immutable pattern:
const frozenSet = Object.freeze(new Set([1,2,3]))
Retired jerseys. Never changing. Ever.
#JavaScript #Set #Frozen
Set clear and refill:
set.clear()
newItems.forEach(x => set.add(x))
Rebuild year: nuke roster, start over.
#JavaScript #Set #Reset
Set bidirectional sync:
set1.forEach(x => set2.add(x))
set2.forEach(x => set1.add(x))
Sync home & away rosters. Mirror match.
#JavaScript #Set #Sync
Set as lookup optimization:
const lookup = new Set(bigArray)
smallArray.filter(x => lookup.has(x))
Who made All-Star? Fast lookup wins.
#JavaScript #Set #Lookup
Set pipeline operations:
new Set(arr.filter(x => x > 0).map(x => x * 2))
Filter transform dedupe player stats. Pipeline magic.
#JavaScript #Set #Pipeline
Set for distinct values:
const distinct = new Set(arr)
const hasDupes = arr.length !== distinct.size
Are all jersey numbers unique? Quick check.
#JavaScript #Set #Distinct
Set as blacklist:
const banned = new Set(['player1', 'player2'])
if (!banned.has(id)) process()
Suspended list. You shall not pass.
#JavaScript #Set #Blacklist
Set as whitelist:
const allowed = new Set([1, 2, 3])
if (allowed.has(playerId)) allow()
Eligible players only. Bouncer Set.
#JavaScript #Set #Whitelist
Set jaccard similarity:
const similarity = intersection.size / union.size
How similar are these rosters? Math answers.
#JavaScript #Set #Similarity
Set intersection size:
const commonSize = [...set1].filter(x => set2.has(x)).length
How many played BOTH games? Count 'em.
#JavaScript #Set #Intersection
Set as state tracker:
const activeStates = new Set()
activeStates.add('playing')
activeStates.delete('warmup')
Game state: warmup playing. Tracked.
#JavaScript #Set #State
Set as graph vertices:
const vertices = new Set(['A', 'B', 'C'])
Tournament bracket teams, no duplicates.
#JavaScript #Set #Graph
Set batch operations:
const batch = new Set([1,2,3])
batch.forEach(x => set.add(x))
Trade deadline mass moves. Buckle up.
#JavaScript #Set #Batch
Set for counting unique:
const uniqueScorers = new Set(goals.map(g => g.player))
uniqueScorers.size // number of different scorers
How many DIFFERENT players scored?
#JavaScript #Set #Counting