Skip to content

Instantly share code, notes, and snippets.

@cooldaemon
cooldaemon / Portfile
Created July 27, 2008 09:59
This is local port file for erlang R12B-3.
PortSystem 1.0
name erlang
version R12B-3
revision 0
categories lang erlang
maintainers cooldaemon@gmail.com
platforms darwin
description The Erlang Programming Language
long_description \
Erlang is a programming language designed at the \
@weppos
weppos / capistrano_database_yml.rb
Created July 27, 2008 10:04
Provides a couple of tasks for creating the database.yml configuration file dynamically when deploy:setup is run.
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <weppos@weppos.net>
# Copyright:: 2007-2010 The Authors
import javax.swing.*;
import wiiremotej.*;
import wiiremotej.event.*;
import javax.sound.sampled.*;
import java.io.*;
public class WiiSample1 {
@cnix
cnix / build.sh
Created July 27, 2008 10:56
Build lighty and php for leopard
#Build lighty and php for leopard
curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-6.6.tar.gz
tar xzvf pcre-6.6.tar.gz
cd pcre-6.6
./configure --prefix=/usr/local CFLAGS=-O1
make
sudo make install
curl -O http://lighttpd.net/download/lighttpd-1.4.11.tar.gz
#!/usr/bin/env ruby
$KCODE = 'utf8'
# 漢数字を数値に変換する
#
# * http://ja.wikipedia.org/wiki/%E6%BC%A2%E6%95%B0%E5%AD%97
# * http://www.akatsukinishisu.net/kanji/kansuji.html
module Kansuji
class Main
def sayhello
puts "hihi, kengi"
end
End
from django.db import models
from django.contrib import admin
POST_TYPES = (
('A', 'Audio'),
('V', 'Video'),
('U', 'URL'),
('Q', 'Quote'),
('I', 'Image'),
)
We couldn’t find that file to show.
class Test
def hello
p "hello world"
end
end
@mcfearsome
mcfearsome / Greasekit_Helper.js
Created July 27, 2008 15:17
Recreation of GM_ functions from GreaseMonkey for use with GreaseKit
//
// GreaseKit friendly
//
if(typeof GM_xmlhttpRequest === "undefined") {
GM_xmlhttpRequest = function(/* object */ details) {
details.method = details.method.toUpperCase() || "GET";
if(!details.url) {
throw("GM_xmlhttpRequest requires an URL.");