Search
Get a Random Array Item with JavaScript
9.5.2022
JavaScript Arrays are probably my favorite primitive in JavaScript. You can do all sorts of awesome things with arrays: get unique values, clone them, empty them, etc. What about getting a random value from an array? To get a random item from an array, you can employ Math.random: const arr =...
Crypto’s Sanction-Slipping Power: Why Bitcoin’s Neutrality Is Its Greatest Humanitarian Asset
4.3.2022
Decentralized networks such as Bitcoin’s don’t know national allegiance, they only know math. And when you’re trying to get your savings out of an ATM, or send a payment to relatives in a war-torn environment, someone else’s politics is the last thing you want standing...
‘Crack Down’ on Crypto? Maybe, but You Can’t Ban Math
3.3.2022
Governments can and should regulate on-ramps such as crypto exchanges, but outlawing code would be unconstitutional and ultimately futile
A Wordle Math Clone Is Rapidly Becoming My Daily Favorite
21.2.2022
Like everyone else on planet Earth, I’ve been poking at all manner of Wordle-likes for the last few weeks, yet I’ve found all but one to lack the stickiness of the original. The exception? Nerdle, a game in which you have to guess the basic arithmetic that hides behind those blanks.Read more
Simple math says Russia could collect up to $13B in crypto tax each year
8.2.2022
The analytic note mentioned that the estimates are purely an overview and based on a basic tax slab of 6%, which would be quite different once regulations are set in place
Wordle's 'Best' Starting Word Has Been Found, And Ruined, By Math
8.2.2022
One of the cutest things about Wordle, and also one of the most important if you value having any kind of success with the game, is the selection of your starting word. For most players this has probably been their own favourite combination of vowels and consonants, but if you really want to...
Twitch Streamer Amouranth Bought A Gas Station For -$110,000 Using Rich-Person Math
10.11.2021
Yes, the headline is correct. The popular Twitch streamer Amouranth did in fact purchase a gas station. Not only did she purchase a gas station, she claims to have done so while turning a profit through tax deductions. To prove this, she tweeted out a bunch of rich-person math—which makes my brain...
On Pornhub, Math Teacher Makes His Mark Teaching Calculus
25.10.2021
When you think of Pornhub, you probably think of pornography, right? For good reason, the site is wall-to-wall porn. But one math teacher named Changshu noticed something was missing: math. “Since very few people teach math on adult video platforms, and since there are so many people who watch...
Cardano's Hoskinson Says He Just Got Math Center after USD 20M Donation
22.9.2021
mself.Hoskinson announced the news on Twitter, where he claimed that the new “permanent center” would be named the Hoskinson Center for Formal Mathematics and would help “rewrit
Using Absolute Value, Sign, Rounding and Modulo in CSS Today
28.7.2021
For quite a while now, the CSS spec has included a lot of really useful mathematical functions, such as trigonometric functions (sin(), cos(), tan(), asin(), acos(), atan(), atan2()), exponential functions (…
The post Using Absolute Value, Sign, Rounding and Modulo in CSS Today appeared...
Trigonometry in CSS and JavaScript: Beyond Triangles
5.7.2021
Web design is such a rectangle-based design medium that literally any deviation from it feels fresh. Michelle Barker gets into using math in various ways to programmatically draw lines, shapes, and animations that end up looking both beautiful and have …
The post Trigonometry in CSS...
Billionaire Paul Tudor Jones Says ‘I Like Bitcoin’ — Will Go All in on Inflation Trades if Fed Says ‘Things Are Good’
15.6.2021
Billionaire hedge fund manager Paul Tudor Jones says he likes bitcoin. Noting that he can trust math, the famed hedge fund manager said, “bitcoin has appealed to me because it’s a way for me to invest in certainty.” Jones also shared his investment strategies in response to...
Designing calculator apps
1.4.2021
It is extremely weird that the calculator apps, even the default ones baked into desktop operating systems, embrace the UI and UX of those little cheap-o plastic physical calculators. I like what Florens Verschelde’s Math teacher had to say:
I
…
The post Designing calculator apps...
Recipe websites, data modeling, and user experience
18.2.2021
Simeon Griggs with some nice UX ideas for a recipe website:
No math. Swap between units and adjust servings on-the-fly.
Offer alternative ingredients.
Re-list the ingredient amounts when they’re referenced in the instructions.
I totally agree, especially on that last …
The post...
Bitcoin trader explains why BTC outperforming Ethereum is just 'simple math'
18.2.2021
Bitcoin has been outperforming Ethereum in the past few days as one popular trader says this is a result of "simple math."
Lots of Ways to Use Math.random() in JavaScript
30.11.2020
Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, it’s possible for an actual 0 to be returned) and 1 (exclusive, as in, it’s not possible for an actual 1 to be returned).
Math.random(); // returns...
Algorithmic Bitcoin and Ethereum Social Attention List Ranks Influencers With Math
25.11.2020
On November 19, Hive.one, a project that maps the community clusters of Bitcoin and Ethereum social status using mathematics, announced the launch of a new algorithm version. Since the last time Hive.one published a list, social influencer scores and ranks changed and the creators believe the...
Gray Burst
3.11.2020
I made this neat little gray burst thing. It’s nothing particularly special, especially compared to the amazing creativity on CodePen, but I figured I could document some of the things happening in it for learning reasons.
CodePen Embed Fallback
It’s SVG
SVG has <line x1 y1...
FLETACHAIN Announces Strategic Partnership with Math Wallet
26.8.2020
Decentralized applications infrastructure network FLETACHAIN has announced a strategic partnership with Math Wallet, a Singapore based crypto wallet, for the use of FLETA tokens. The partnership will cater to users across the globe who are looking for a crypto wallet with decent services and robust...
Warp SVG Online
6.8.2020
The warping is certainly the cool part here. Some fancy math literally transforms the path data to do the warping. But the UX detail work here is just as nice. Scrolling the page zooms in and out via a transform: scale() on the SVG wrapper (clever!). Likewise, holding the spacebar lets you...