Skip to content

Instantly share code, notes, and snippets.

View liquidz's full-sized avatar
👶
hello world!

Iizuka Masashi liquidz

👶
hello world!
View GitHub Profile
@liquidz
liquidz / softbox.r.css
Created June 16, 2009 09:46
Softbox CSS Framework
@charset "UTF-8";
/*
* Softbox CSS Framework 0.05
*
* Copyright(C) 2009 Masashi Iizuka
* Dual licensed under the MIT and GPL licenses
*
* compile with rcss(http://gist.github.com/130588)
* */
@liquidz
liquidz / .screenrc
Created June 23, 2009 00:32
.screenrc
vbell off
startup_message off
# gmail unread num
backtick 0 0 300 ruby ${HOME}/.screen/gmail.rb
# checkpad updated num
backtick 1 0 600 ruby ${HOME}/.screen/checkpad.rb
caption always "%{= wk} %-w%{=bu dr} %n %t %{-}%+w %= %{= gw} checkpad:%1` %{= mw} gmail:%0` "
/* File.open {{{
object File {
import java.io.{BufferedReader, FileReader}
def open(path:String)(f:BufferedReader => Unit){
var br:BufferedReader = null;
try {
br = new BufferedReader(new FileReader(path))
f(br)
} catch {
case e:Exception => e.printStackTrace()
val ahoNum = Array(
"ぜ~ろ", "い~ち", "にぃ~", "さぁ~ん",
"よぉ~ん", "ごぉ~", "ろぉ~く", "ななぁ~",
"はぁ~ち", "きゅ~ぅ", "じゅ~ぅ"
)
class NabeInt(i:Int){
def から(j:Int):List[Int] = (i to j).toList
}
object BrainFuck {
abstract class BF
case class UpDown(i:Int) extends BF
case object Next extends BF
case object Prev extends BF
case object Out extends BF
case class Start(i:Int) extends BF
case class End(i:Int) extends BF
def parse(s:String):List[BF] = {
@liquidz
liquidz / build.xml
Created August 17, 2009 10:06
my scala modules
<?xml version="1.0"?>
<project name="scala-module" default="build" basedir=".">
<property environment="env"/>
<property name="scala.home" value="${env.SCALA_HOME}" />
<property name="source.dir" value="${basedir}" />
<property name="build.dir" value="${basedir}" />
<target name="init">
<property name="scala-library.jar" value="${scala.home}/lib/scala-library.jar" />
<property name="commons-codec-1.4.jar" value="${scala.home}/lib/commons-codec-1.4.jar" />
@liquidz
liquidz / Common.scm
Created September 10, 2009 09:33
kawa
(define-namespace Predef <scala.Predef>)
(require 'srfi-1)
; =let1 {{{
(define-syntax let1
(syntax-rules ()
((_ var expr1 expr2 ...)
(let ((var expr1)) expr2 ...)
)
@liquidz
liquidz / simple_view.scala
Created September 14, 2009 02:26
simple view module
package com.uo.liquidz
import scala.util.DynamicVariable
import scala.xml.{NodeBuffer, Elem}
object SimpleView {
type KeyParam = Symbol
type Params = Map[KeyParam, String]
val data = new DynamicVariable[Params](null)
/* osaifu */
{
"pageElement":"id(\"result_view\")",
"url":"^http://search\\.osaifu\\.com/",
"nextLink":"//span[@class=\"next\"]/a"
},
package com.uo.liquidz;
import org.apache.tools.ant.*;
import org.apache.tools.ant.types.*;
import java.io.*;
import java.util.*;
public class Kawac extends Task {
private List fsl = new LinkedList();
private String srcdir = ".";