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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <iconv.h> | |
int | |
iconv_convert(char **outstr, char *instr, const char *tocode, const char *fromcode) | |
{ | |
iconv_t cd; | |
size_t ins; |
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
(browse-url | |
(format "http://www.gravatar.com/avatar/%s?d=monsterid" | |
(md5 | |
(apply 'concat | |
(split-string | |
(downcase | |
(car (mail-header-parse-address user-mail-address))) | |
" "))))) |
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
static inline int parse_opt_q(const char *arg) | |
{ | |
char *max_buff = safe_strdup(arg); | |
char *fill_buff = strchr(max_buff, '/'); | |
char *p; | |
if (opt_aq_max_buff) { | |
free(opt_aq_max_buff); | |
opt_aq_max_buff = NULL; | |
} |
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
(use srfi-34) | |
(define-macro (defined? sym) | |
`(guard (err (else #f)) | |
(and ,sym | |
,(symbol? sym)))) |
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
Index: uim/uim.c | |
=================================================================== | |
--- uim/uim.c (revision 5797) | |
+++ uim/uim.c (working copy) | |
@@ -60,7 +60,7 @@ | |
static void fatal_error_hook(void); | |
-static void *uim_init_internal(void *dummy); | |
+static int uim_init_internal(void *dummy); |
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
.xsessionで | |
export GTK_IM_MODULE=uim | |
export QT_IM_MODULE=uim | |
export GTK_IM_MODULE_FILE=$HOME/.gtk.immodule | |
#export UIM_CANDWIN_PROG=uim-candwin-gtk | |
uim-xim & | |
export XMODIFIERS="@im=uim" | |
.Xdefaultsで | |
*inputMethod: uim |
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
curl -I "http://cl.naist.jp/~mamoru-k/chaime/api.cgi?action=conv&to=ime&query=aaaaaaaaaaaaaaaaaaaaa" |
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
#> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <locale.h> | |
#include <wchar.h> | |
C_word | |
C_string_to_list(const char *str) | |
{ | |
int i; |
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
main() | |
{ | |
char buf[10]; | |
gets(buf); | |
printf(buf); | |
} |
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
curl -s http://twitter.com/statuses/user_timeline/???.json | csi -e "(use json)(pp (json-read))" |