Just like many many other lisp programmers, I’ve started to solve the famous set of ninety nine lisp problems available here at L-99: Ninety-Nine Lisp Problems. Check my Github Repo to check it out. It seems these are based on a set of prolog problems so I hope this suits for lisp. To start things, I just solved the first ...
I seriously enjoy sublime text 2 editor for all kinds of stuff like web developing, node.js and even for some stuff I do with common lisp. It’s one heck of a text editor. Often I need to open an entire folder in sublime so I can switch between them using Ctrl+P. There’s a simple Registry hack to add a new ...
Conway’s game of life implemented using common lisp. Run the next-gen function with a 2 dimensional array with binary values to see results. Just replace the game-of-life function with something else for some other 2d cellular automata. This uses Periodic boundary condition (something like a doughnut). (defun get-n (a y x) (setf y (+ y (array-dimension a 0))) (setf x ...
I have my AI exams 23rd this month and I’d better prepare for it. I thought I’ll write some lisp stuff to help me with that exam. For now, there are some list related stuff and a lisp implementation of the “hunt and kill” maze generation algorithm. (I.A.) If you like, feel free to contribute. For now just make a ...
Just a counter with 2 seven segment displays implemented in 2 different methods. First by using separate output ports (7 per SSD). And second by using a multiplexer (8 for SSD with dot and 2 for selecting the SSD). The multiplexer method can be easily extended to support many SSDs. One thing to remember is that you must always make ...
Doing WebGL with THREE.js is as easy as it can get. Just for fun, I made this logo with WebGL and made it rotate in a few minutes. Just open the THREE.js documentations page for reference, you’ll be needing it a LOT. Here’s the link to the logo.
This is a Google Chrome Extension which displays a horizontal bar and lets users drag and drop content from websites to it. This bar shows a preview of content items it’s holding at the moment. These collectors are a temporary place to store content until they are used with the “Web Content Editor” which comes with this extension.
I’m trying to create a few stuff which helps people automatically do necessary attribution for content they use from around the web. The project includes a widget and a server with widget information. A browser extension to help users gather and use content and automatically gather attribution information with them. The goal is to help and encourage users to make ...
Just a quick post, I just saw that CTRL+SPACE can toggle the extension ON/OFF. ( Some other shortcuts mentioned in extensions page didn’t work ). So if you’re like me and switch between English and Sinhala/Tamil often use this one. This is only necessary if you’re using Linux as your primary OS and use Google Chrome.
I’m not much of an embedded system developer but I just made this one (while practicing for the exam, of course). Download the code and the schema design I made using “Proteus 7″ to understand it better. Just make sure that you have CCSC and Proteus 7 installed. One great thing about CCSC is that you can easily set it ...
I’ll start this blog with the Islamic greeting “Assalamualaikum Warahmathullahi Wabarakathuhu!”. Hopefully, soon there’ll be some interesting posts over here. Most of the times it’ll be about computers and sometimes about other stuff.