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/python | |
# -*- coding: utf-8 -*- | |
# img2rawdump.py - dump raw date from input image | |
# | |
# Copyright (C) 2011 Homin Lee <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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/python | |
# | |
# m4aInfo.py - script for get container info of mp4 video file | |
# | |
# originally written by gioshe | |
# part of eighttrak, http://code.google.com/p/eighttrak/ | |
# | |
# This work is released under the GNU GPL, version 2 or later. | |
# | |
import struct |
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
@startuml | |
title <b>가시나무 (시인과 촌장)</b>\n노래 - 자우림 | |
(*) --> ==== S0 ==== | |
--> "내 속엔" | |
"내 속엔" --> 내가 | |
내가 --> "너무도 많아" |
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/python | |
# -*- coding: utf-8 -*- | |
# dnw.py - python port of dnw client, smdk-usbdl | |
# | |
# Copyright (C) 2011 Homin Lee <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
install: iram-swap iram-get-devname | |
cp iram-get-devname /usr/bin/ | |
cp iram-swap /etc/init.d/ | |
ln -s /etc/init.d/iram-swap /etc/rcS.d/S15iram-swap | |
@echo "all done" | |
uninstall: | |
rm -f /usr/bin/iram-get-devname | |
rm -f /etc/init.d/iram-swap | |
rm -f /etc/rcS.d/S15iram-swap |
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
# http://news.naver.com/main/read.nhn?mode=LSD&mid=sec&sid1=100&oid=003&aid=0004297105 | |
def bideTwitterScore(cntFollower, cntFollowing, cntTweet, cntRetweet): | |
import math | |
scoreFollow = (math.log10((cntFollower + cntFollowing) / 1000.0)) / 10 + 1 | |
scoreTweet = 1 + cntTweet + (cntRetweet / 100) | |
return scoreFollow * scoreTweet |
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 python | |
# | |
# Make beautifier | |
# | |
# Author : Philippe Fremy <[email protected]> | |
# contributions from Adrian Thurston <[email protected]> | |
# Version : 1.3 | |
# License : Do whatever you want with this program! | |
# Warranty : None. Me and my program are not responsible for anything in the | |
# world and more particularly on your computer. |
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/python | |
# Copyright (C) 2008 The Android Open Source Project | |
# License at http://www.apache.org/licenses/LICENSE-2.0 | |
# Copyright (C) 2012 Homin Lee <[email protected]> | |
import os | |
import sys | |
import string |
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
@startuml | |
"startFile()" --> ===B1=== | |
--> "addStringTag(name, value)" | |
if "" then | |
-right->[value is ASCII] "handleStringTag()" | |
-down-> ===B2=== | |
else | |
-down-> "push name & value to mName & mValue" | |
-down-> ===B2=== |
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 <iconv.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <stdint.h> | |
int conv_utf8_to_ucs2(const char* src, size_t len) | |
{ | |
iconv_t cb = iconv_open("UTF-16", "UTF-8"); | |
if (cb == (iconv_t)(-1)) |
OlderNewer