Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe B. Lewis joelewis

View GitHub Profile
@joelewis
joelewis / typesystem.md
Last active Dec 28, 2019
Stringly typed vs More-strongly typed
View typesystem.md

Strongly typed vs More-strongly typed

We know types help us eliminate certain classes of errors from programs. For instance, it's impossible to write an executable program in Java that adds a string to a number. If you’re a big company already using Java, you’ve hypothetically saved some significant amount of $$$ in terms of developer productivity. But we still lose $$$ with the most expensive mistake ever made in the software industry - Null. I'm pretty sure while you are reading this, at least one programmer across the world is either running into a null access exception or debugging one!

As such, Java is not a strongly typed language after all. It's just less-weakly typed than python. Well, we have Swift or Kotlin, which when written in a certain way can be statically verified that the program is free of null errors. Or even better, Haskell – which elim

@joelewis
joelewis / reactcss.md
Last active Oct 24, 2016
Resources: React CSS
@joelewis
joelewis / signprocessing.py
Last active Mar 13, 2019
Python script to detect signature, enhance, transform and box it in an image
View signprocessing.py
import Image, ImageEnhance
def enhance_signature(img):
bw = ImageEnhance.Color(img).enhance(0.0)
bright = ImageEnhance.Brightness(bw).enhance(2.2)
contrast = ImageEnhance.Contrast(bright).enhance(2.0)
sign = contrast.convert("RGBA")
datas = sign.getdata()
View RawThoughts.md

"Take on big problems"

"Trying to write an Operating System and failing is better than writing a simple app successfully"

"Code is art. There's quiet a no of ways for solving a problem, and probably no perfect way of solving it. All it takes is a bit of artistry to find what is close to a perfect solution"

"Think of an idea and tell it to someone and listen to him talking of its existence already or the key problem in the idea. Now FTW and go build it, unless the person you told to is the smartest man on the planet"

"If an idea you came up already exists but not in action at your place, it probably isn't the best one"

View RawThoughts.md

"Take on big problems"

"Trying to write an Operating System and failing is better than writing a simple app successfully"

"Code is art. There's quiet a no of ways for solving a problem, and probably no perfect way of solving it. All it takes is a bit of artistry to find what is close to a perfect solution"

"Think of an idea and tell it to someone and listen to him talking of its existence already or the key problem in the idea. Now FTW and go build it, unless the person you told to is the smartest man on the planet"

"If an idea you came up already exists but not in action at your place, it probably isn't the best one"

View 2013-07-08LiveThoughts.md

Monday, 08. July 2013 11:11PM: It's the death part of the day, and I'm deciding between enjoying a good movie and coke, or fiddle with the 'download almost finished' GAE sdk for Java :-/

Monday, 08. July 2013 11:13PM: Java is starting to lessen its intimidation and though I don't still embrace its verbosity, it doesn't scare me anymore as it did before me and android era

Monday, 08. July 2013 11:15PM: I've got to get rid of the remaining misunderstanding between us, sooner or later. GAE and J2ee might help :).

Tuesday, 09. July 2013 12:52AM: Well, just read through the basics of GAE, with Java and let me confess, Java is enchanting!

Tuesday, 09. July 2013 12:57AM: Servlet's provide a good way to put the application logics, in a Class, which in turn is mapped by the url routings defined in configuration file and it may or may not send the response directly to the client, in the latter case is when JSP's are used. So, JSP's are the good guys providing a nice templating system to put

View 2013-07-08-LiveThoughts.md

Monday, 08. July 2013 11:11PM: It's the death part of the day, and I'm deciding between enjoying a good movie and coke, or fiddle with the 'download almost finished' GAE sdk for Java :-/

Monday, 08. July 2013 11:13PM: Java is starting to lessen its intimidation and though I don't still embrace its verbosity, it doesn't scare me anymore as it did before me and android era

Monday, 08. July 2013 11:15PM: I've got to get rid of the remaining misunderstanding between us, sooner or later. GAE and J2ee might help :).

Tuesday, 09. July 2013 12:52AM: Well, just read through the basics of GAE, with Java and let me confess, Java is enchanting!

Tuesday, 09. July 2013 12:57AM: Servlet's provide a good way to put the application logics, in a Class, which in turn is mapped by the url routings defined in configuration file and it may or may not send the response directly to the client, in the latter case is when JSP's are used. So, JSP's are the good guys providing a nice templating system to put

View DevLog-72HoursOfCode.md

DevLog: TimeTable-Droid and TwentOneDays

One hot shot with my machine for 72 hours, and I got to complete what I couldn't( or perhaps didn't) do in 2 months. Built this by taking every meal as a break, and completely devoid of sleep. Honestly, it was as if, any more of staring at the editor and I'll fall into a limbo where buildings are constructed with statements, objects and semicolons. There was a moment at the genesis of day 2, when my mind started working as if its a virtual machine by itself! Unusual, crazy, interesting, frustrating, intermittently happy 72 hours of my life.

Screenshots:

View devlog_TheAxeEffect.md
  • On the go, to create a clicker like mobile app. Fancying it to be multiplatform, as it was meant to be put into commercial production.
  • clicker
  • Started prototyping it.
  • clicker
  • And ended up getting it somewhere here!
  • clicker
  • And there was a bug. Not a bug exactly, but
  • bug
  • Started digging the source online, and found this to be the problem