Skip to content

Instantly share code, notes, and snippets.

View cocoatomo's full-sized avatar
🐧
Translating

cocoatomo cocoatomo

🐧
Translating
View GitHub Profile
@cocoatomo
cocoatomo / MuseMember.hs
Last active December 20, 2016 15:38 — forked from aiya000/MuseMember.hs
import Data.Monoid
data Muse = HanayoKoizumi | RinHoshizora | MakiNishikino
| UmiSonoda | KotoriMinami | HonokaKosaka
| EliAyase | NicoYazawa | NozomiTojo
deriving (Eq, Ord, Enum, Show)
next :: Muse -> Muse
next HanayoKoizumi = RinHoshizora
next RinHoshizora = MakiNishikino
@cocoatomo
cocoatomo / Hoge.py
Last active December 10, 2015 08:18 — forked from irof/Hoge.java
use Jython
#!/usr/bin/env jython
# -*- coding: utf-8 -*-
class Fuga(object):
def __init__(self, color, weight):
self.color = color
self.weight = weight
@cocoatomo
cocoatomo / Hoge.java
Last active December 10, 2015 04:28 — forked from irof/Hoge.java
using Guava
package net.elliptium;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
@cocoatomo
cocoatomo / gist:2259087
Created March 31, 2012 03:51 — forked from yusuke/gist:2136681
twitter name card
<%@ page language="java" import="twitter4j.*,java.util.List" contentType="text/html; charset=UTF-8" session="false" %>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<style>
.username {
font-size: 12pt;
}
.description{