Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
@mattn
mattn / c.c
Created February 4, 2009 00:09 — forked from cho45/c.c
//#!gcc -g -O0 -Wall
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@mattn
mattn / log
Created February 6, 2009 01:27
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/*/*.t
t/000-load................................................# Soft dependency versions:
t/000-load................................................1/1 # MRO::Compat:
# Class::MOP: 0.71
# Moose: 0.62
# Class::Method::Modifiers: 1.01
t/000-load................................................ok
t/000-recipes/001_point...................................ok
t/001-strict..............................................ok
t/002-warnings............................................ok
Acme::Lou
Audio::Beep
Carp
Config
Config::INI::Simple
Cwd
DB_File
Data::Dumper
Data::ICal
Data::ICal::Entry::Event
# vim: set ft=make:
APACHE_ROOT=C:\Program Files\Apache Software Foundation\Apache2.2
CFLAGS=/I"$(APACHE_ROOT)\include" /DWIN32 /nologo
LDFLAGS=/LIBPATH:"$(APACHE_ROOT)\lib"
LIBS= libapr-1.lib libaprutil-1.lib libhttpd.lib
.SUFFIXES: .c .obj
all : mod_access_token.so
[alias]
co=checkout
ci=commit -a
df=diff HEAD
dl=diff HEAD^
ll=log --color-words
fullreset=reset --hard HEAD^
wu = log --stat origin..@{0}
@mattn
mattn / log
Created February 12, 2009 09:18
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/plagger/core/*.t t/plagger/plugins/*/*.t
t/00_compile...........................................ok
t/99_fail..............................................
# Failed test 'Fail test so you can't run make install!'
# at t/99_fail.t line 2.
# Looks like you failed 1 test of 1.
@mattn
mattn / mbcs.c
Created February 17, 2009 02:13
#include <iconv.h>
#include <stdio.h>
#include <string.h>
void mb_to_uc_fallback(
const char* inbuf,
size_t inbufsize,
void (*write_replacement) (const unsigned int *buf, size_t buflen, void* callback_arg),
void* callback_arg,
void* data) {
@mattn
mattn / js.pl
Created February 17, 2009 08:17
use strict;
use warnings;
use JSON::XS;
my $data = {
#text => "Foo[\xe2\x80\xa8]Bar"
text => "Foo[\x{2028}]Bar"
};
print JSON::XS->new->ascii->encode($data)."\n";
print JSON::XS->new->encode($data)."\n";
@mattn
mattn / js.pl
Created February 17, 2009 09:02
benchmark of JSON::XS encoding with ascii.
use strict;
use warnings;
use JSON::XS;
use Encode;
use Encode::JavaScript::UCS;
use Benchmark;
my $data = { text => "Foo[\x{2028}]Bar" };
my $xs = JSON::XS->new;
my $xsa = $xs->ascii;
require 'gdata';
require 'pit'
require 'rexml/xpath'
config = Pit.get("www.google.com", :require => {
"username" => "you email in google",
"password" => "your password in google"
})
gc = GData::Client::Contacts.new