Skip to content
View twitter-as-rest.js
* Example service definition for Twitter
id: 'twitter',
name: 'Twitter',
url: '',
siteName: '',
rest: {
// Global REST configurations that are inherited by all subsequent definitions
View activitystreams.js
[{ provider:
{ id: 'facebook',
displayName: 'Facebook',
url: '' },
published: '2011-06-29T14:56:58+0000',
{ objectType: 'person',
id: '653038898',
displayName: 'Justin McCurry',
image: { url: '' } },
View twitter-error.js
exports.convertTwitterError = function(error_str) {
if(typeof error_str == 'object') {
var code = 500;
if(error_str.code) {
code = error_str.code;
if(error_str.status) {
code = error_str.status;
if(error_str.statusCode) {
<script type="text/javascript">
flutterscape_group_id = 5;
//flutterscape_referral_code = 'XXX';
<script type="text/javascript" src=""></script>
<script type="text/javascript">
flutterscape_group_id = 5;
<script type="text/javascript" src=""></script>
View flutterscape.widget.seller.html
<script type="text/javascript">
flutterscape_seller = "mooshu888";
//flutterscape_options = {'no_avatar': true}; // Optional: hide the username/avatar
<script type="text/javascript" src=""></script>
View flutterscape.widget.category.html
<script type="text/javascript">
flutterscape_category = "anime";
flutterscape_options = {'include_price': true}; // Optional: include product price
<script type="text/javascript" src=""></script>
View github.env.text
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 357 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: /data/github/current/lib/github.rb:34: undefined method `env' for Rails:Module (NoMethodError)
remote: from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
remote: from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
remote: from /data/github/current/lib/rock_queue.rb:46
remote: from hooks/post-receive:14:in `require'
View piece of ruby.rb
def loop_dir(dir)
Find.find(dir) do |path|
next if path == '.'
yield(path) unless ignore_path?(path)
def ignore_path?(path)
@ignored_path_regexes.detect { |regex| File.basename(path).match(regex) != nil }
View Semantic Categorizer.js
* First (promising) results from my 'Semantic Categorizer' which I use to classify interests.
* This example run takes the word 'Ruby' which has 2 main meanings (programming language
* and gem stone) and tries to rank the categories of both meanings. The more recursive
* the searches, the more abstract the categories.
* This run is using still very crude and yet incomplete Wikipedia category hierarchies.
* It runs on a highly performing combination of MongoDB and NodeJS, but it's still
* not fast enough. Soon this system must be able to hundreds of classifications per second.
Something went wrong with that request. Please try again.