Here’s a plot of exp(6it)/2 + exp(20it)/3: Notice that the plot has 7-fold symmetry. You might expect 6-fold symmetry from…
Continue Readingreturn
A wrinkle in Clojure
Bob Martin recently posted a nice pair of articles, A Little Clojure and A Little More Clojure. In the first…
Continue ReadingSum of squared digits
Take a positive integer x, square each of its digits, and sum. Now do the same to the result, over…
Continue ReadingInverse congruence RNG
Linear congruence random number generators have the form xn+1 = a xn + b mod p Inverse congruence generators have…
Continue ReadingVisualisation of Information from Raw Twitter Data — Part 1
For this post I downloaded tweets about the Brexit for a period of about two days, quering the API for…
Continue ReadingPython tips
Python tipsEldiiar EgemberdievBlockedUnblockFollowFollowingJun 16“I do not like to repeat successes, I like to go on to other things”. Walt DisneyAt…
Continue ReadingTop Python Tips & Tricks
Time Saving Tips And Tricks Of PythonTop Python Tips & TricksThese Must-Know Python Tips Make The Language BeautifulFarhad MalikBlockedUnblockFollowFollowingJun 14This article presents…
Continue ReadingBeginning Python Programming — Part 12
Beginning Python Programming — Part 12An introduction to iterators and generatorsBob RoeblingBlockedUnblockFollowFollowingJun 10Photo by Timothy Dykes on UnsplashIn our previous piece, we covered packages…
Continue ReadingRuby Return Values
I get back the same value I put in, even though I tried to change the data?Turns out, every method…
Continue ReadingAmazon and Gold — Efficient Frontier Analysis
Which has a higher risk?If we were to make a portfolio solely out of these 2 assets, what ratio of…
Continue ReadingComparing iOS TableView and Android RecyclerView
Comparing iOS TableView and Android RecyclerViewExploring the similarities and differences when creating lists on each platformElyeBlockedUnblockFollowFollowingMay 25When it comes down to…
Continue ReadingIntro to SwiftUI — Part 1: The language features behind it
Let’s take a look. Opaque Result TypesImagine we had a drawing library, which provided several primitive drawable types, such as lines…
Continue ReadingOptimizing Portfolios with Modern Portfolio Theory Using Python
Optimizing Portfolios with Modern Portfolio Theory Using PythonMPT and some basic Python implementations for tracking risk, performance, and optimizing your portfolio.…
Continue ReadingWrite a monad, in Java, seriously?
At least not the basics!The simplest way of explaining a Monad is to tell you that it is sort of…
Continue ReadingPython and LRU Cache
Python and LRU CacheJose Alberto Torres AgüeraBlockedUnblockFollowFollowingMay 26Since version 3. 2 python we can use a decorator namedfunctools. lru_cache() , this function…
Continue ReadingDo Stocks Provide a Positive Expected Return?
The classic answer is that when we buy a share of the company, we are providing financial capital to help…
Continue ReadingLaravel — Extending Query Builder
Laravel — Extending Query BuilderDennis SminkBlockedUnblockFollowFollowingMay 24Sometimes the findOrFail() (or any other default) method is not enough and you need to have a…
Continue ReadingCounting at compile time
A genuine type-level computation. Our Nat are now ordered. (Lt, Gt, Gte can all be defined similarly or derived from…
Continue ReadingTail recursion in Kotlin — with bytecode!
Tail recursion in Kotlin — with bytecode!Stephen LeighBlockedUnblockFollowFollowingMay 7Kotlin Island, St Petersburg. сергей володин via Google Maps. Every article on Kotlin starts by…
Continue ReadingArea and volume of Menger sponge
The Menger sponge is the fractal you get by starting with a cube, dividing each face into a 3 by…
Continue ReadingSwift: Writing simple & composable data queries using Reader Monad
Swift: Writing simple & composable data queries using Reader MonadBalraj SinghBlockedUnblockFollowFollowingMay 5Composable QueryRecently I was working on a sample project link.…
Continue ReadingSpring: Advanced search & filtering
Photo by Glen Noble on UnsplashSpring: Advanced search & filteringMilan BrankovicBlockedUnblockFollowFollowingMay 2Implementing a data access layer of an application has been…
Continue ReadingThe Spaceship Operator
Let’s take a look below:Using the <=> operator and #group_by, we can transform our original array into a hash containing…
Continue ReadingAn Intro to Javascript for Experienced Programmers Who Could Use a Strong Dose of Fundamentals
Use them in the body, of course. What do you think this is?(diameter) => diameter * 3. 14159265It’s a function…
Continue ReadingExplained: Futures in Rust for Web Development
+ ⛑If a crate returns a Future, you can use . and_then() to work with the result once the Future is ready.…
Continue Reading