Skip to content

Instantly share code, notes, and snippets.

View udonmai's full-sized avatar
🎹

麥町 udonmai

🎹
View GitHub Profile
@udonmai
udonmai / liduo
Created March 23, 2012 06:27
liduo
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
void fun(FILE *stdin) {
char str[20], tmp[20];
int sum, len, i, idx, cnt;
int a1[10], num1 = 0, num2 = 0, ans1 = 0;
double a2[10], ans2 = 0;
@udonmai
udonmai / vimrc
Created July 20, 2012 18:01
vimrc
" Source a global configuration file if available
"if filereadable("/etc/vim/vimrc.local")
" source /etc/vim/vimrc.local
"endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
@udonmai
udonmai / vimrc
Created July 20, 2012 18:01
vimrc
" Source a global configuration file if available
"if filereadable("/etc/vim/vimrc.local")
" source /etc/vim/vimrc.local
"endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
@udonmai
udonmai / vimrc
Created July 21, 2012 14:10
vimrc
" Source a global configuration file if available
"if filereadable("/etc/vim/vimrc.local")
" source /etc/vim/vimrc.local
"endif
"""""""""""""""""""""""""""""""""""""Ace"""""""""""""""""""""""""""""""""""""
" 一般设定
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
runtime! debian.vim
"set compatible
@udonmai
udonmai / gist:3878765
Created October 12, 2012 11:21
biubiubiu
募集の背景
募集的背景
あまりにも男性にモテないまま歳を取ってしまい、
随着年龄的增长会越来越不受男人欢迎
結婚しないで人生終わるかも?!という危機感を感じ、
都没结婚人生就结束了吗?所以说有了危机感
人生のパートナーを募集します。m(_ _)m
在此募集人生伴侣
パートナーの条件
1.たばこを吸わない人(必須)
@udonmai
udonmai / gist:3892023
Created October 15, 2012 11:28
GR share
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Google 阅读器中 udonmai 的订阅</title>
</head>
<body>
<outline text="Delicious/pongba/shared-reading"
title="Delicious/pongba/shared-reading" type="rss"
xmlUrl="http://feeds.delicious.com/v2/rss/pongba/shared-reading?count=15" htmlUrl="http://www.delicious.com/pongba/shared-reading"/>
<outline text="FeedzShare" title="FeedzShare" type="rss"
#!/usr/bin/python
# coding=utf-8
import os
#import sys
#import string
#import urllib
import urllib2
import re
import json
{
"4180": {
"0": {
"url": "/b/4809410846",
"imageurl": "http://ecx.images-amazon.com/images/I/514Cl5AlxLL._SL150_.jpg",
"isbn": {
"10": "4809410846",
"13": "978-4809410840"
},
"author_name": [
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
import collections
from pprint import *
from peewee import *
# DB init
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
import collections
from pprint import *
from peewee import *
# DB init