Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Translating

cocoatomo cocoatomo

🐧
Translating
View GitHub Profile
View 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 Dec 10, 2015 — forked from irof/Hoge.java
use Jython
View Hoge.py
#!/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 Dec 10, 2015 — forked from irof/Hoge.java
using Guava
View Hoge.java
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 Mar 31, 2012 — forked from yusuke/gist:2136681
twitter name card
View gist:2259087
<%@ 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{