def my_cool_method(message)
puts message
end
This file contains hidden or 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 log = console.log; | |
var ViewBase = Backbone.View.extend({ | |
initialize: function(){ | |
var oldRender = this.render; | |
this.render = function(){ | |
oldRender.call(this); | |
log('trigger event\'s rendered') | |
} | |
}, | |
render: function(){ |
This file contains hidden or 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
define('backbone', ['lib-underscore', 'lib-backbone'], function () { | |
Backbone.mixin = function (view, mixin, custom) { | |
if (custom) { | |
if (custom.events && mixin.events) { | |
mixin = _.clone(mixin) | |
_.defaults(custom.events, mixin.events) | |
} | |
_.extend(mixin, custom) | |
} | |
var source = view.prototype || view |
This file contains hidden or 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
runtime! debian.vim | |
syntax on | |
source ~/.vim/vimrc_vundle | |
set nocompatible | |
set noswapfile | |
set fileencodings=ucs-bom,utf-8,chinese,cp936 | |
set isk+=- | |
set list | |
set listchars=tab:▸\ ,trail:· |
This file contains hidden or 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
// ==UserScript== | |
// @name Hide someone | |
// @description Hide someone | |
// @author Hxgdzyuyi | |
// @include http://www.douban.com/ | |
// @version 1.4 | |
// @run-at document-start | |
// ==/UserScript== | |
This file contains hidden or 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
source 'http://rubygems.org' | |
gem 'omniauth-renren', '~> 1.0.0.rc2', :git => 'git://github.com/huangxiangdan/omniauth-renren.git' | |
gem 'renren' | |
gem 'sinatra' | |
gem 'shotgun' | |
gem 'icalendar' |
NewerOlder