Skip to content

Instantly share code, notes, and snippets.

View kimarx's full-sized avatar

Kim, Yi-Chul kimarx

View GitHub Profile
#!/usr/local/bin/gosh
;;; Last Update: 2010-10-09 00:01+09:00.
;;; Project Euler - Problem-55:
;;; http://projecteuler.net/index.php?section=problems&id=55
;;; Kim, Yi-Chul < kimarx@gmail.com >
(use srfi-1)
#!/usr/bin/perl
### Last Update: 2010-10-28 01:32+09:00.
### smart_nytfeed.pl: This script fetches a given Atom feed of NYT and
### reconstructs smarter a RSS feed file from it, however, FTTB, it does not
### fetch any article of NYT's blog.
### Kim, Yi-Chul < kimarx@gmail.com >
;;;; Binary Function
(use srfi-13)
(define (binary num)
(string->number
(string-concatenate
(map number->string (mod-lis '() num)))))
(define (mod-lis lis num)
;;;; Binary Function
(use srfi-13)
(define (binary num)
(string->number
(string-concatenate
(map number->string (mod-lis '() num)))))
(define (mod-lis lis num)
@kimarx
kimarx / gist:983210
Created May 20, 2011 15:48
This script is meant to display examples of sentence scraped from certain web
#!/usr/bin/perl
## This script is meant to display examples of sentence scraped from certain web
## pages.
## Last Update: 2011-05-21 00:48+09:00.
## Kim, Yi-Chul <kimarx@gmail.com>
use strict;
use warnings;
@kimarx
kimarx / creole.pl
Created November 13, 2011 16:03
This is a blosxom plugin that allows Blosxom to interprete the syntax of Creole Wiki..
# Blosxom Plugin: creole
# Author: Kim, Yi-Chul
# Last Update: 2011-11-14 01:04+09:00.
# This blosxom plugin is based on text_hatena_rev.
# Probably you need to rename meta plugin in order to use this plugin.
# example: 'mv meta 2meta'.
# If you use Emacs, it will be better to visit this Emacs Wiki's page.
@kimarx
kimarx / RealURL.pm
Created November 16, 2011 23:04
You'll say "You use Moose for this small module as if taking a sledgehammer to crack a nut!" :-) "
package RealURL;
use Moose;
has 'shorturi' => ( is => 'rw', );
__PACKAGE__->meta->make_immutable();
no Moose;
use LWP::Simple;
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
package Net::Fortune;
use Any::Moose;
use XML::Simple;
use LWP::Simple;
use Encode;
@kimarx
kimarx / gist:1393548
Created November 25, 2011 13:38
2ch like thread's template
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">
<!--
* {
margin: 0;
padding: 0;
}
body { background-color: rgb(239, 239, 239); }
# Bash Prompt
PS1='\u@\h \W: '
HISTSIZE=5000
HISTFILESIZE=5000
export XMODIFIERS=@im=uim-skk
export PATH="$PATH:/usr/games"