Dominiek ter Heide dominiek

View twitter-as-rest.js
1 2 3 4 5 6 7 8 9 10
/**
* Example service definition for Twitter
*/
{
id: 'twitter',
name: 'Twitter',
url: 'http://twitter.com/',
siteName: 'Twitter.com',
rest: {
// Global REST configurations that are inherited by all subsequent definitions
View activitystreams.js
1 2 3 4 5 6 7 8 9 10
[{ provider:
{ id: 'facebook',
displayName: 'Facebook',
url: 'http://facebook.com/' },
published: '2011-06-29T14:56:58+0000',
actor:
{ objectType: 'person',
id: '653038898',
displayName: 'Justin McCurry',
image: { url: 'https://graph.facebook.com/653038898/picture' } },
View twitter-error.js
1 2 3 4 5 6 7 8 9 10
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) {
View flutterscape.widget.group.referral.html
1 2 3 4 5
<script type="text/javascript">
flutterscape_group_id = 5;
//flutterscape_referral_code = 'XXX';
</script>
<script type="text/javascript" src="http://flutterscape.com/scripts/widget/load.js"></script>
View flutterscape.widget.group.html
1 2 3 4
<script type="text/javascript">
flutterscape_group_id = 5;
</script>
<script type="text/javascript" src="http://flutterscape.com/scripts/widget/load.js"></script>
View flutterscape.widget.seller.html
1 2 3 4 5
<script type="text/javascript">
flutterscape_seller = "mooshu888";
//flutterscape_options = {'no_avatar': true}; // Optional: hide the username/avatar
</script>
<script type="text/javascript" src="http://flutterscape.com/scripts/widget/load.js"></script>
View flutterscape.widget.category.html
1 2 3 4 5
<script type="text/javascript">
flutterscape_category = "anime";
flutterscape_options = {'include_price': true}; // Optional: include product price
</script>
<script type="text/javascript" src="http://flutterscape.com/scripts/widget/load.js"></script>
View github.env.text
1 2 3 4 5 6 7 8 9 10
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
1 2 3 4 5 6 7 8 9 10
def loop_dir(dir)
Find.find(dir) do |path|
next if path == '.'
yield(path) unless ignore_path?(path)
end
end
 
def ignore_path?(path)
@ignored_path_regexes.detect { |regex| File.basename(path).match(regex) != nil }
end
View Semantic Categorizer.js
1 2 3 4 5 6 7 8 9 10
/*
* 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.