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 -*- | |
# s5k4ecgx_genfw.py - generate firmware for s5k4ecgx driver | |
# | |
# Copyright (C) 2012 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
/* | |
* Copyright (C) 2012 Homin Lee <[email protected]> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 | |
import os | |
def print_conf_list(project_root, project_name = ""): | |
root = os.path.realpath(project_root) | |
repositories_root = root[:root.find("repositories") + len("repositories")] | |
if not project_name: | |
project_name = root[len(repositories_root) + 1:] | |
project_name = project_name.replace("/", "_") |
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 | |
import os, sys | |
import subprocess | |
import StringIO | |
import xml.dom.minidom | |
def getTop(): | |
for v in ('TOP', 'ANDROID_BUILD_TOP'): | |
if v in os.environ: |
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
#!/bin/bash | |
# example | |
# $ mkdir -p archive | |
# $ ./record_mms mms://118.223.168.32/eFM test 1 archive/ | |
MMS_ADDR=$1 | |
PROGRAM_NAME=$2 | |
HOW_LONG_MIN=$3 | |
DEST_DIR=$4 |
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
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"log" | |
) | |
var encoded = ` | |
<list><value>a</value> |
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 | |
# IgorplugUDP.py -- python transcoder for Igorplug-UDP to lirc | |
# Dr. Frank Borkenhagen | |
__version__ = "0.0.1" | |
__author__ = "Dr. Frank Borkenhagen" | |
__homepage__= "http://home.arcor.de/borkenhagen/IgorplugUDP" | |
def __doc__(): | |
print """ |
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 | |
import sys | |
import Image | |
fileName = sys.argv[1] | |
img = Image.open(fileName) | |
img = img.convert('L') |
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
#!/bin/bash | |
# Original script came from; | |
# http://domseichter.blogspot.com/2008/02/visualize-dependencies-of-binaries-and.html | |
# Written by Dominik Seichter and added patch from pfree | |
# analyze a given file on its | |
# dependecies using ldd and write | |
# the results to a given temporary file | |
# |
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)) |