Skip to content

Instantly share code, notes, and snippets.

View Sixeight's full-sized avatar
🏠
Working from home

Tomohiro Nishimura Sixeight

🏠
Working from home
View GitHub Profile
// ==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/'
#! /usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
require 'typhoeus'
require 'json'
require 'time'
require 'net/http'
class Twitter
# -*- coding: utf-8 -*-
require 'rubygems'
require 'typhoeus'
require 'yaml'
class Github
include Typhoeus
remote_defaults :base_uri => 'http://github.com/api/v1/yaml',
#! /usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'net/http'
require 'open-uri'
require 'benchmark'
require 'rubygems'
require 'hpricot'
require 'typhoeus'
{
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;
}
},
#! /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'
#include <stdio.h>
struct Greeter {
struct Greeter (*hello)(const char*);
};
struct Greeter hello(const char *name);
struct Greeter initialize()
{
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct PEOPLE {
char name[25];
struct PEOPLE *next;
} people;
struct Greeter {
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
template <class T>
class Array : public vector<T> {
public:
Array() : vector<T>() {}
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.*;