Skip to content

Instantly share code, notes, and snippets.

View xsddz's full-sized avatar

xsddz xsddz

View GitHub Profile
@xsddz
xsddz / from.html
Last active August 29, 2015 14:06
在一个FORM表单中实现多个ACTION动作,三种方式
<p>原文地址:<a href="http://www.blogjava.net/hwaspf/articles/320491.html" target="_blank">在一个FORM中实现多个ACTION动作</a></p>
<form name="testForm" method="post" action="">
<input name="Name" type="text" id="Name">
<input type="button" name="Button" value="Act1" onClick="act1();">
<input type="button" name="Submit2" value="Act2" onClick="act2();">
</form>
<script language="JavaScript">
function act1()
{
@xsddz
xsddz / create-makefile
Last active December 15, 2015 15:09
根据源码生成 makefile 文件。
#!/bin/bash
# filename: create_makefile.sh
#
# function definiton {{{
#===============================================================================
usage()
{
echo "Usage: $script_file_name [options] {main_source_program_name [...]}"
echo
echo "description:"