This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 = ...; }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1. global definition | |
function Map(config) { | |
this._init(config); | |
} | |
Map.prototype = { | |
_container: null, | |
_init: function (config) { | |
this._container = document.getElementById(config.container); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# You must run as root!!! (or sudo) | |
##################### | |
##### IMPORTANT ##### | |
##################### | |
# Add the following entry to /etc/yum.repos.d/rubyworks.repo: | |
# | |
# [rubyworks] |