Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# = 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import wiiremotej.*; | |
import wiiremotej.event.*; | |
import javax.sound.sampled.*; | |
import java.io.*; | |
public class WiiSample1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main | |
def sayhello | |
puts "hihi, kengi" | |
end | |
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib import admin | |
POST_TYPES = ( | |
('A', 'Audio'), | |
('V', 'Video'), | |
('U', 'URL'), | |
('Q', 'Quote'), | |
('I', 'Image'), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
def hello | |
p "hello world" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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."); |