Choosing a JavaScript framework for my side project

I started looking at JavaScript frameworks to see if I could find something interesting for my event scheduling project. I’m looking to use them to help me show the schedule itself: when a session of an event is modified, it must be updated in two places on the page since the list of sessions for a room is collapsible. I ...

Read More »

HTML5 Photo Gallery Example

The aim of this example is to get you through the process of creating a functional photo gallery using HTML5 and CSS3. Photo galleries will be needed in almost every website, whether to present products, staff members, or personal images when on a personal blogs. Before we begin, know the following technologies that will be used: – The photo viewer ...

Read More »

Explicit Currying in Python

Last week, I talked about currying a little bit, and I’ve been thinking about how one could do in languages that don’t have it built in. It can be done in Java, but the type of even a two-parameter function would be something like Function<Integer, Function<Integer, Integer>>, which is bad enough. Imagine 3- or 4-parameter functions. There’s also the fact ...

Read More »

Angular.js JSON Fetching Example

Hello there! Today’s example’s about displaying data from a JSON file to an Angular.js application. 1. Introduction 1.1 What is JSON JSON is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are ...

Read More »

Eventually Correct: Async Testing With Tornado

Async frameworks like Tornado scramble our usual unittest strategies: how can you validate the outcome when you do not know when to expect it? Tornado ships with a tornado.testing module that provides two solutions: the wait / stop pattern, and gen_test.   Wait / Stop gen_test Further Study Wait / Stop To begin, let us say we are writing an ...

Read More »

Angular.js Data Binding Example

Hey! Today we ‘ll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the automatic synchronization of data between the model and view components (for those that didn’t get this at all, please take a look over the MVC pattern). Regarding Angular’s implementation, the view is a projection of ...

Read More »

HTML5 Contact Form Example

In this example we will go through a simple clean contact form. Contact forms are sections within a webpage that you add with a set of input fields for users to have the possibility to contact the website admins. Normally, you can choose how many fields you want the contact form to have, like name, e-mail, subject and message, or ...

Read More »

WebSockets in Rails 4

I previously published this article on my personal blog early 2013, but thought I’d share it today with our Codeship readers. Enjoy! I’ve been using Rails 4 (beta) a lot recently. In a previous post we looked at how ActionController::Live can be used with Server-Sent Events, but the problem with that is that there’s no way for the client to ...

Read More »

CSS Box Shadow Example

In this example, we will go through the box-shadow property of css. Just like the text-shadow property, box-shadow will give an element of html a new look by adding different styled shadows. As you can imagine, this is going to be more of an examples show rather than exaplanation because the property is pretty straight-forward. The cases you’ll see below, ...

Read More »