Author Archives: SnipBot

(JavaScript) JavaScript Observer Pattern

The Observer pattern is more popularly known these days as the Publish/Subscribe buy levitra safely from canada. pattern. It is a design pattern which allows an object (known as a subscriber) to watch another object (the publisher), where we provide a means for the subscriber and pub-lisher form a listen and broadcast relationship. Popular JavaScript [...]

Posted in JavaScript | Tagged , , , , , | Leave a comment

(JavaScript) Javascript Module Pattern

The module pattern was originally defined as a way to provide both private and public encapsulation for classes in conventional software engineering. In JavaScript, the module pattern is used to further emulate the concept of classes in such a way that we’re able to include both public/private methods and variables inside a single object, thus [...]

Posted in JavaScript | Tagged , , , , , | Leave a comment

(JavaScript) Javascript Object Literal

In object literal notation, an object is described as a set of comma-separated name/ value pairs enclosed in curly braces ({}). Names inside the object may be either strings or identifiers that are followed by a colon. There should be no comma used after the final name/value pair in the object as this may result [...]

Posted in JavaScript | Tagged , , , , , | Leave a comment

(MySQL) Age in Years for Given Birthdate

Given a birthdate in @dob, here are two simple formulae for age in years : (the second formulae is for age in years to two decimal places, ignoring day of month)

Posted in Uncategorized | Tagged , , , , , | Leave a comment

(JavaScript) Generic List in Javascript

The closest to a generic List in javascript. When calling constructor – new List(Module) – add model in constructor parameter

Posted in JavaScript | Tagged , , , , | Leave a comment

(JavaScript) Google Maps API V3 Javascript Full Example

This javascript will create a complex google javascript map with multiple locations selected marked. The map will be centered in the middle and zoomed so that all point can cymbalta online without prescription. be seen. It also stylizes the map making it mostly desaturated with bits of orange. More explanation as to how to set [...]

Posted in JavaScript | Tagged , , , , , , | Leave a comment

(PHP) Fibonacci series (several different algorithms)

Planning to add proper PHPunit and PHPlogger code examples and pills to cure migraines permanently. blog about it at http://bcmoney-mobiletv.com/blog/

Posted in PHP | Tagged , , , , , , , | Leave a comment

(Bash) How to check the superuser privileges

 

Posted in Bash | Tagged , , , , | Leave a comment

(Bash) Check if a folder exists

eye drop for beautiful eye.  

Posted in Bash | Tagged , , , , | Leave a comment

(Bash) Check if a file exists

cialis online overnight delivery.  

Posted in Bash | Tagged , , , , | Leave a comment