Skip to content

Instantly share code, notes, and snippets.

View lravik's full-sized avatar

L Ravi Kiran lravik

View GitHub Profile
/*
* An example of
* 1. Using the YUI 3 module system to encapsulate a custom class for reuse
* 2. Creating a Plugin class
* 3. Using Y.Base.create to generate the class
*/
// YUI.add(
// "dash-separated-module-name",
// function (Y) { Y.MyModule = ...; },
// Step 1. global definition
function Map(config) {
this._init(config);
}
Map.prototype = {
_container: null,
_init: function (config) {
this._container = document.getElementById(config.container);
#!/bin/bash
# You must run as root!!! (or sudo)
#####################
##### IMPORTANT #####
#####################
# Add the following entry to /etc/yum.repos.d/rubyworks.repo:
#
# [rubyworks]