Code Maven

Search for '{{search_term}}'

Welcome to the Code Maven!

Programming Exercises for any language.

For now, just read the articles...

If you want to make sure you don't miss any new articles, you can subscribe to the Code Maven newsletter, follow via atom feed, Twitter, or even my Google+ account.

Ideas for TED

TED is full of great talks about Technology, Entertainment, Design, and actually a lot more. I also love the fact that they have plenty of local events sometimes in the local language and that many of the talks have subtitles in a lot of languages.

This makes it even more likely that their ideas will spread.

So I thought I'd like to help it with my little knowledge of programming, but first let's write down a few ideas.


Ideas for TED


Prevent leaving the page using plain JavaScript

In many case, but espeically in single-page applications when there is some unsaved data in the browser you might want to make sure the user does not accidently leave the page without first saving the data. This can be achived using the onbeforeunload (read "on before unload") event.


Prevent leaving the page using plain JavaScript


Wikipedia

Wikipedia is great, especially if you speak one of the major languages.

Unfortunately there are many people who cannot read these major languages, and even if they can, it is much easer to understand thing in their own mother tongue.

On the other hand I have encounterd many articles on Wikipedia that are available in one of the "smaller" languages, but not in English. I belive making these available in English as well would be important.


Wikipedia


Merge only one commit from a Pull-request on GitHub

Recently I got a pull-request for one of my projects. The pull request had two changes in it. One of them I wanted to accpet, but for the other one I had a much simpler solution and thus I wanted to only merge the change that was really good.


Merge only one commit from a Pull-request on GitHub


Skeletons

When you start writing a project it is much easier to start with a skeleton than to stare at a blank page. This is a collection of skeletons you might find useful.


Skeletons


SVG X

This is part of the SVG Tutorial and exercises drawing a line in SVG.


SVG X



Bootstrap Skeleton

Bootstrap is an HTML framework that makes it easy to build good looking, mobile-friendly web sites. You can start using it with this skeleton, or you can download the respective files and serve them from your own server.


Bootstrap Skeleton



Record editor using Angular JS

I am working on several web application where we have lists of data records and we would like to give our users some capability to edit those records. In this article I'll look at one of the solutions I've tried.


Record editor using Angular JS