代码搜索:Local
找到约 10,000 项符合「Local」的源代码
代码结果 10,000
www.eeworm.com/read/419627/10853053
lua readonly.lua
-- make global variables readonly
local f=function (t,i) error("cannot redefine global variable `"..i.."'",2) end
local g={}
local G=getfenv()
setmetatable(g,{__index=G,__newindex=f})
setfenv(1,g)
-
www.eeworm.com/read/419627/10853055
lua bisect.lua
-- bisection method for solving non-linear equations
delta=1e-6 -- tolerance
function bisect(f,a,b,fa,fb)
local c=(a+b)/2
io.write(n," c=",c," a=",a," b=",b,"\n")
if c==a or c==b or math.abs(a-b)
www.eeworm.com/read/419627/10853063
lua fib.lua
-- fibonacci function with cache
-- very inefficient fibonacci function
function fib(n)
N=N+1
if n
www.eeworm.com/read/419627/10853070
lua trace-globals.lua
-- trace assigments to global variables
do
-- a tostring that quotes strings. note the use of the original tostring.
local _tostring=tostring
local tostring=function(a)
if type(a)=="string" then
www.eeworm.com/read/419627/10853091
lua env.lua
-- read environment variables as if they were global variables
local f=function (t,i) return os.getenv(i) end
setmetatable(getfenv(),{__index=f})
-- an example
print(a,USER,PATH)
www.eeworm.com/read/419627/10853112
lua xd.lua
-- hex dump
-- usage: lua xd.lua < file
local offset=0
while true do
local s=io.read(16)
if s==nil then return end
io.write(string.format("%08X ",offset))
string.gsub(s,"(.)",
function (c) io.w
www.eeworm.com/read/274760/10854224
asm xp.asm
;for winxp
.686p
.model flat, stdcall
option casemap :none ; case sensitive
; #########################################################################
include \masm32\include\windows.inc
www.eeworm.com/read/348907/10860462
install
##
## Install
## *******
##
## Meld can be installed in two ways:
##
## Run directly from untar directory:
## "make" to create translations
## Now run "./meld"
## You can create a symlink to
www.eeworm.com/read/419485/10864430
makefile
#############################################################################
# Makefile for building: painttrans
# Generated by qmake (2.01a) (Qt 4.3.0) on: ?? ?? 10 22:16:18 2008
# Project: painttr
www.eeworm.com/read/419485/10864470
makefile
#############################################################################
# Makefile for building: paintbasic
# Generated by qmake (2.01a) (Qt 4.3.0) on: ?? ?? 10 22:06:34 2008
# Project: paintba