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
# Basic text search with relevancy for MongoDB. | |
# See http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/ | |
# Copythingie 2010 - Ward Bekker - ward@tty.nl | |
#create (or empty) a docs collection | |
doc_col = MongoMapper.connection.db('example_db').collection('docs') | |
doc_col.remove({}) | |
#add some sample data | |
doc_col.insert({ "txt" => "it is what it is"}) |
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 util = require('util'); | |
var events = require('events'); | |
/** | |
* A Lock | |
* | |
* @extends events.EventEmitter | |
* | |
* @param spec {} | |
*/ |
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
Count Gem | |
7570 rack | |
7444 rake | |
7425 rails | |
7424 activesupport | |
7421 bundler | |
7412 actionpack | |
7410 actionmailer | |
7409 activerecord | |
7397 activeresource |
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
Count Plugin | |
2040 rpm | |
1534 newrelic_rpm | |
1268 acts_as_list | |
1186 paperclip | |
1130 will_paginate | |
1068 exception_notification | |
1026 jrails | |
1010 restful_authentication | |
1009 haml |
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
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'rexml/document' | |
require 'ya2yaml' | |
include REXML | |
doc = Document.new(File.new(ARGV[0])) |
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
thunder://QUFodHRwOi8veGxpc3N1ZTExMC5zYW5kYWkubmV0L+Wkqea2r+aVsOaNri5rej9maWQ9RldLYVBiYUl0WjZLVUtyTTNTdHZGNC0yMVd1amU1RVhBQUFBQUxZVTRwNmNjUm1DTE9SQnBmUEVTdWpYYm9RVyZtaWQ9NjY2JnRocmVzaG9sZD0xNTAmdGlkPTRFN0VDNzRDMkM0NDdDQjVDNjUwOUJERkY1MzdEQ0ExJnNyY2lkPTExMiZ2ZXJubz0xWlo= |
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
// ==UserScript== | |
// @name 铲除一切害人虫 | |
// @description 移除我想移除,留下我想留下 | |
// @match http://weibo.com/* | |
// @match http://*.weibo.com/* | |
// @match http://t.sina.com.cn/* | |
// @version 1.0 | |
// ==/UserScript== | |
// 在这里添加你想要去掉的dom的id |
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
lambda { |m| | |
lambda { |f| f.call(f) }.call( | |
lambda { |f| | |
m.call(lambda { |x| f.call(f).call(x) })}) } | |
e.g | |
lambda { |m| | |
lambda { |f| f.call(f) }.call( | |
lambda { |f| |
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
# Gemfile | |
gem 'redis', '~> 3.0.1' |
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
cloudenvy: | |
keypair_name: heckj | |
keypair_location: /home/heckj/.ssh/id_dsa.pub | |
clouds: | |
env4: | |
os_auth_url: http://myopenstack.instance.com:5000/v2.0/ | |
os_username: heckj | |
os_password: ********** | |
os_tenant_name: heckj-project |
OlderNewer