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 coconutsfine | |
// @namespace http://d.hatena.ne.jp/coconutsfine/ | |
// @description visit my page!!! | |
// @include * | |
// ==/UserScript== | |
(function () { | |
var mypage = 'http://d.hatena.ne.jp/coconutsfine/' | |
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
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'typhoeus' | |
require 'json' | |
require 'time' | |
require 'net/http' | |
class Twitter |
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
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'typhoeus' | |
require 'yaml' | |
class Github | |
include Typhoeus | |
remote_defaults :base_uri => 'http://github.com/api/v1/yaml', |
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
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require 'open-uri' | |
require 'benchmark' | |
require 'rubygems' | |
require 'hpricot' | |
require 'typhoeus' |
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
{ | |
label: 'github', | |
value: 'copy project title and description from github', | |
custom: function(){ | |
var title = content.document.getElementById('path').getElementsByTagName('a')[0].innerHTML; | |
var desc = content.document.getElementById('repository_description').innerHTML; | |
return title + ": " + desc + ' ' + content.document.location; | |
} | |
}, |
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
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# You need a jQuery library: ./public/javascripts/jquery.js | |
# Run: ruby app.rb -s mongrel | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'sass' |
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
#include <stdio.h> | |
struct Greeter { | |
struct Greeter (*hello)(const char*); | |
}; | |
struct Greeter hello(const char *name); | |
struct Greeter initialize() | |
{ |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef struct PEOPLE { | |
char name[25]; | |
struct PEOPLE *next; | |
} people; | |
struct Greeter { |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
template <class T> | |
class Array : public vector<T> { | |
public: | |
Array() : vector<T>() {} |
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
import java.io.*; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.net.URL; | |
import java.net.MalformedURLException; | |
import java.awt.image.BufferedImage; | |
import javax.imageio.*; | |
import javax.swing.text.MutableAttributeSet; | |
import javax.swing.text.html.*; |