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
module A | |
def pub_method | |
puts 'pub_method' | |
end | |
private | |
def pri_method | |
puts 'pri_method' | |
end | |
end |
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
.calendar | |
%h1.month December 2013 | |
%ol.day-names | |
%li Sunday | |
%li Monday | |
%li Tuesday | |
%li Wednesday | |
%li Thursday | |
%li Friday | |
%li Saturday |
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
$(function(){ | |
var randomNum = Math.floor(Math.random() * 10000); | |
$.post("/profile",{'_method':'put','user[nick_name]':'I Love Feng Zhichao ' + randomNum}); | |
}); |
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
var getConstructor = function (classPath) { | |
var classPaths = classPath.split('.'); | |
var obj = window; | |
for (index in classPaths) { | |
obj = obj[classPaths[index]]; | |
} | |
return obj; | |
}; | |
namespace1 = {}; |
NewerOlder