Problem I have been learning Python 3 for about a year now. I have been looking for a project to […]
Tag: modules
Improvements to an Angular ScrollSpy module
Problem Things that I’m not sure about: Whether this works in all use cases – alongside routing and within templates […]
Calling a Class Method on a Module
Problem I have a module (in file dialect.rb) defined as such: require ‘dialect/generators/elements’ module Dialect def self.included(caller) caller.extend Dialect::Generator::Element end […]
Exporting routes in node.js Express 4
Problem I’m using Express 4 to provide routes to HTML/Jade files, and as well to provide an API. I want […]
Finding expiring/expired documents
Problem This code is to find expiring/expired documents. It was included in one of the models, say Document. Is this […]
Node.JS Twitter Count Module
Problem I would like someone review this code and tell if it can be done better, or if the code […]
Program for creating custom directory listings
Problem The following code was written to create custom directory listings for the Abyss Web Server. It attempts to provide […]
A flexible Ruby Observable module
Problem I was learning a bit about about observers. Ruby has an Observable module, but I decided to make my […]
Ruby: Database Authentication Module
Problem I have created a module that validates the credentials against different databases. module Authentication DATABASES = %w[mysql mssql oracle].freeze […]
Module to validate and sum a string containing no negative numbers
Problem To learn the language of JavaScript, I did a dojo exercise by Roy Osherove. Is there a better way […]