Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkstn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
See how computer handles text (UTF8)
(codepen.io)
1 points
by
pkstn
2y ago
|
0 comments
32.
▲
by
pkstn
3y ago
PM2 was really nice until I moved to using Docker Swarm Mode which is even better in so many ways!
33.
▲
by
pkstn
3y ago
Source: https://github.com/pakastin/datacenter-test data (locations): https://github.com/pakastin/datacenters
34.
▲
Show nearest Hetzner/UpCloud data center based on Cloudflare cf-ray header
(datacenter-test.pakastin.fi)
1 points
by
pkstn
3y ago
|
2 comments
35.
▲
by
pkstn
3y ago
UpCloud has super fast MaxIOPS: https://upcloud.com/products/block-storage Here's referral link with free credits: https://upcloud.com/signup/?promo=J3JYWZ
36.
▲
by
pkstn
3y ago
Play here: https://flanets.io
37.
▲
Open source 2D space simulator
(github.com)
1 points
by
pkstn
3y ago
|
1 comments
38.
▲
by
pkstn
3y ago
I'm just seeing single frame of white noise (Chrome 120, macOS 14.2, MBP 14" M1 Pro)
39.
▲
by
pkstn
3y ago
Thanks for the feedback! Added link to the Github readme..
40.
▲
Open sourced my 2D space flight sim!
(github.com)
4 points
by
pkstn
3y ago
|
4 comments
41.
▲
by
pkstn
3y ago
Contributions welcome, have fun! :) Game itself: https://flanets.io
42.
▲
by
pkstn
3y ago
Well graphics were easier to do as MovieClips, but otherwise not that much of a difference. Maybe overall easier with DOM actually..
43.
▲
by
pkstn
3y ago
That is better way to do it, i should fix it
44.
▲
by
pkstn
3y ago
That is true, i could actually finally fix that..
45.
▲
by
pkstn
3y ago
It's using socket.io, pretty simple stuff.. Here's the car.js.org server-side as simple example: https://github.com/pakastin/car-ws/blob/master/server/index....
46.
▲
by
pkstn
3y ago
Oh, only when pressing shuffle. In the new version in multiplayer mode the order is kept on server-side so that players can't cheat..
47.
▲
by
pkstn
3y ago
I'm the author of Deck.of.Cards, actually did the first version with Flash back in 2008. I started with Flash back in 1999, working in major ad agencies, and nowadays work as fullstack JS developer / entrepreneur. This project is
48.
▲
by
pkstn
3y ago
I actually did the first version of Deck of Cards with Flash back in 2008
49.
▲
by
pkstn
3y ago
It's fisher-yates with multiple iterations, so should be pretty random
50.
▲
by
pkstn
3y ago
Feel free ;)
51.
▲
by
pkstn
3y ago
I have no idea, but it was a fun surprise that of.cards was available (not very cheap though). deck.of.cards is actually a subdomain :D
52.
▲
by
pkstn
3y ago
Might be overloaded because of HN, i'll check and add capacity..
53.
▲
by
pkstn
3y ago
Try https://deck.of.cards it has multiplayer with "hands" area for four players ;)
54.
▲
by
pkstn
3y ago
The new version is in the root https://deck.of.cards and includes multiplayer ;)
55.
▲
by
pkstn
3y ago
Wow, thanks for sharing my Deck.of.Cards project! Just to let you guys know, this one is the old version. Newer version is in the root https://deck.of.cards Old one has nicer animation treats, but the new one has multiplayer as
56.
▲
by
pkstn
4y ago
Wow!
57.
▲
by
pkstn
4y ago
Wow, so awesome!
58.
▲
by
pkstn
4y ago
and well, there's also BSON: https://github.com/mongodb/js-bson
59.
▲
by
pkstn
4y ago
in client-side you can parse bunch of items by just wrapping with [ and ]
60.
▲
by
pkstn
4y ago
Use gzip for compressing. If you want to stream, use following syntax: [\n { ... },\n { ... },\n { ... },\n ...\n ]\n With this simple trick you can stream easily..
More ›