This file contains hidden or 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
# coding: gbk | |
<%! | |
from textwrap import wrap | |
%> | |
local ${machine.name} = require '${machine.name}' | |
local delegate = {} | |
-------------------------------------------------------------------------------- | |
-- input | |
% for i in machine.inputs: |
This file contains hidden or 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
-- vi: syntax=lua ts=4 sw=4 et: | |
-- | |
-- FILE: csv.lua | |
-- AUTHOR: LeeoNix | |
-- DESCRIPTION: parse csv file use state machine | |
-- NOTES: --- | |
-- | |
local C_INV = 1 -- invalid characters | |
local C_COMMA = 2 -- , |
This file contains hidden or 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
# coding: gbk | |
<%! | |
from textwrap import wrap | |
import re | |
%><% | |
def replacer(s): | |
try: | |
return '(event == %s)' % (machine.event(s.group()).name) | |
except KeyError: | |
return '%s(param)' % machine.input(s.group()).name |
This file contains hidden or 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
import sys, string | |
template = """ | |
CC = gcc | |
CXX = g++ | |
AR = ar | |
DEFINES += | |
CFLAGS = $(DEFINES) -c -O2 -Wall | |
INCLUDES += |
This file contains hidden or 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
program three_num_add; | |
{$APPTYPE CONSOLE} | |
uses | |
Classes, | |
SysUtils; | |
type | |
PResult = ^TResult; |
This file contains hidden or 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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <ctype.h> | |
#include <fcntl.h> | |
#include <stddef.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <malloc.h> | |
#include <errno.h> |
This file contains hidden or 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
/* | |
* ===================================================================================== | |
* | |
* Filename: array.c | |
* Description: array structure | |
* Created: 2011-10-14 9:52:47 | |
* | |
* ===================================================================================== | |
*/ |
This file contains hidden or 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
import os, sys, getopt, string | |
import uuid | |
template4 = """ | |
newoption { | |
trigger = 'to', | |
value = 'path', | |
description = 'Set the output location for the generated files' | |
} |
This file contains hidden or 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
-- | |
-- FILE: extract_winrar.lua | |
-- AUTHOR: LeeoNix | |
-- DESCRIPTION: | |
-- NOTES: --- | |
-- | |
--[[ | |
TOTALCMD#BAR#DATA |
This file contains hidden or 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
solution 'StormLib' | |
location 'build' | |
language 'C++' | |
configurations { 'Debug', 'Release', } | |
platforms { 'x32', 'x64' } | |
targetdir 'bin' | |
objdir 'bin' |