Problem This converts from character representation of integers to their decimal value: def chrtodec(str): dec = 0 base = ord(‘0’) […]
Tag: reinventing-the-wheel
Simple authentication in ASP.NET MVC 5
Problem I am building an ASP.NET MVC 5 application and, for reasons which are irrelevant at this point, I am […]
Wrapper for complicated Range manipulation
Problem I’m playing around with a class module to try to wrap up some complicated(ish) Range manipulation in Excel-VBA. I […]
AJAX with Vanilla Node.js/JavaScript – POST JSON without a form
Problem I am new to node.js, ajax, and asynchronous code. I’ve pieced together a working way to exchange json between […]
Split string by substring without using String.Split()
Problem The Aim Since I very rarely write code to do things other than business logic anymore I’ve set myself […]
Bash-based Port scanner (/dev/tcp)
Problem This question is ideal in my case: Ludisposed’s python-scapy-tcp-port-scan-of-subnet – At codereview stackexchange But this is not Scapy; nor […]
FoldLeft in Terms of FoldRight
Problem I [believe that I] wrote foldl in terms of foldr: myFoldl :: (a -> b -> a) -> a […]
Reading files and displaying their content
Problem I’m writing a program to read two files supplied as arguments in the command line, convert them from list […]
Implementing Haskell’s `insert`
Problem Learn You a Haskell shows the insert function. insert takes an element and a list of elements that can […]
Function Composition: $ versus `.`
Problem Learn You a Haskell offers the findKey function: Here’s the book’s implementation: findKey :: (Eq k) => k -> […]