code
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: iL...
Noneatme/iLife-SA
client/Manager/World/cAdManager.lua
Lua
mit
5,711
local M = {} local state = { tags = nil, -- current set of tags tagstack = {},-- current tag stack: list of { i=num, tags={tag list} } tagidx = 0, -- index into tagstack of current level lasttag = nil,-- last tag list timestamp = nil, -- tags file modification time. } M.state = state -- Load a...
erig0/textadept-vi
vi_tags.lua
Lua
mit
4,852
return{ name= 'blimp', type= 'vehicle', hasAttack = true, move = {'once', {'1,1'}, .1}, attack = {'once', {'1,1'}, .1}, height = 206, width = 199, xOffset= 67, yOffset= 159, }
10headless/hawkthorne-journey
src/nodes/vehicles/blimp.lua
Lua
mit
194
--[[ This module is meant to make general utility code available to WikiCode, mainly by just exporting built-in lua functions via thin wrappers. --]] local wc = {} local w = require('Wikilib') local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck:...
pokemoncentral/wiki-lua-modules
Wc-Util.lua
Lua
cc0-1.0
1,857
--[[ Copyright (C) 2020 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
deepmind/lab2d
dmlab2d/lib/game_scripts/common/args.lua
Lua
apache-2.0
18,675
-------------------------------- -- @module EaseIn -- @extend EaseRateAction -- @parent_module cc -------------------------------- -- brief Create the action with the inner action and the rate parameter.<br> -- param action The pointer of the inner action.<br> -- param rate The value of the rate parameter.<b...
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseIn.lua
Lua
apache-2.0
1,092
local p={ ["ship"]={ energyMax=100, armorMax=150 , price_m=200, price_e=100, price_t=3, isMum=false , name="wasp", description="larger and stronger then bees", skin=5, size=3 , speedMax=5 , speedAcc=0.3, isSP=false, visualRange=500, fireRange=200, }, ["weapon"]={ { posX=5, pos...
AlexarJING/space-war
obj/ships/param/wasp.lua
Lua
apache-2.0
548
-- Basic wasd movements, the screen doesn't contains the rectangle inside to avoid going outside. function love.load() --[[ Create a character table, our character is a rectangle, the initial position of the character object in the x and y coordinate is defined in the table as 300 and 400 respectively. ]] charac...
helzatch/new_game
playground/movements/main.lua
Lua
apache-2.0
1,316
-- 建筑基础信息 Building = class("Building",function() return cc.Node:create() end) -- 资源列表 BuildingResList = { [0]={ res={"building_human_Ground.png"} }, -- 空地 [1]={ res={"building_human_TownCenter.png"} }, -- 王城/圣殿 [2]={ res={""} }, -- 城墙/城墙 [3]={ res={"building_human_Drunkery.png"} }, -- 酒馆/灵堂 [4]={ res={"buildi...
Gamesjiazhi/rwproject
ResourceWar/undeadClient2D/frameworks/runtime-src/proj.android/assets/src/Building.lua
Lua
apache-2.0
7,051
--- Renderable class implementing Visitor Pattern Renderer_Abstract = Class {} return Renderer_Abstract
jesstelford/time-prototype
Renderer/Abstract.lua
Lua
bsd-2-clause
105
return { name = 'oculus_rift', ident = '^Rift/WMHD', wm = 'ignore', tag = 'VR' };
letoram/durden
durden/devmaps/display/rift.lua
Lua
bsd-3-clause
86
-- -- tests/oven/test_tokens.lua -- Test the Premake oven's handling of tokens. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.oven_tokens = { } local suite = T.oven_tokens local oven = premake5.oven local project = premake5.project local config = premake5.config -- -- Setup and teardown -- ...
annulen/premake-dev-rgeary
tests/oven/test_tokens.lua
Lua
bsd-3-clause
3,950
--- Additions to the io module module ("io", package.seeall) require "base" require "package_ext" -- Get file handle metatable local file_metatable = getmetatable (io.stdin) -- Get an input file handle. -- @param h file handle or name (default: <code>io.input ()</code>) -- @return file handle, or nil on error loca...
ukoloff/rufus-lua-win
vendor/lua/lib/lua/io_ext.lua
Lua
mit
2,953
local EMPTY_ARRAY_PLACEHOLDER = "__empty_array_placeholder__" return { ["GET"] = { ["NGX_STUB"] = { req = { start_time = function() return 1432844571.623 end, get_method = function() return "GET" end, http_version = function() return 1.1 end, get_headers = function() return ...
sbuettner/kong
spec/plugins/mashape-analytics/fixtures/requests.lua
Lua
mit
5,580
local a a = {f()}
viruscamp/unluac
test/src/multiliteraltarget.lua
Lua
mit
20
--[[ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ]]-- -- All...
wojzaremba/algorithm-learning
utils/colors.lua
Lua
bsd-3-clause
1,320
local skynet = require "skynet" require "skynet.manager" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_sender = {} local command = {} local config = {} local nodename = cluster.nodename() local connecting = {} local function open_channel(...
ag6ag/skynet
service/clusterd.lua
Lua
mit
5,643
local verse = require "verse"; function verse.plugins.presence(stream) stream.last_presence = nil; stream:hook("presence-out", function (presence) if not presence.attr.to then stream.last_presence = presence; -- Cache non-directed presence end end, 1); function stream:resend_presence() if last_presence ...
msva/verse
plugins/presence.lua
Lua
mit
808
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local meta = require "kong.meta" local server_header = meta._NAME .. "/" .. meta._VERSION local RequestTerminationHandler = BasePlugin:extend() RequestTerminationHandler.PRIORITY = 7 function RequestTerminationHan...
salazar/kong
kong/plugins/request-termination/handler.lua
Lua
apache-2.0
1,013
-- -- tests/config/test_targetinfo.lua -- Test the config object's build target accessor. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("config_targetinfo") local config = p.config -- -- Setup and teardown -- local wks, prj function suite.setu...
tvandijck/premake-core
tests/config/test_targetinfo.lua
Lua
bsd-3-clause
5,365
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- C++ LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'cpp'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line_comme...
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/cpp.lua
Lua
mit
2,938
addEvent("getServerName",true) addEventHandler("getServerName",resourceRoot, function() local name = getServerName() triggerClientEvent(client,"receiveServerName",resourceRoot,name) end)
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/mrgreen-sidebar/sb_s.lua
Lua
mit
192
-- $Id: moments.lua,v 1.2 2004-05-24 02:23:25 bfulgham Exp $ -- http://www.bagley.org/~doug/shootout/ -- implemented by: Roberto Ierusalimschy local nums = {} local n = 0 local sum = 0 while 1 do local line = io.read() if line == nil then break end line = line+0 -- convert line to number sum = sum + lin...
ensemblr/llvm-project-boilerplate
include/llvm/projects/test-suite/MultiSource/Applications/lua/bench/moments.lua
Lua
mit
1,560
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Analog Lever" ENT.WireDebugName = "Lever" function ENT:CalcAngle(shootPos, shootDir) local myPos = self:GetPos() local right = self:GetRight() local planeHitPos = self:WorldToLocal(shootPos + shootDir * ((myPos - shootPos):Dot(right)...
NezzKryptic/Wire
lua/entities/gmod_wire_lever.lua
Lua
apache-2.0
7,941
-- Try the FFI-enabled binding if running LuaJIT if jit and jit.status() then local ok, mod = pcall(require, "coolprop.ffi") if ok then return mod end -- If loading via FFI fails, try Lua/C API, -- which might contain a statically-linked CoolProp. end local ok, capi = pcall(require, "coolp...
JonWel/CoolProp
wrappers/Lua/coolprop.lua
Lua
mit
3,397
local utils = require "utils" require "llthreads".new(utils.thread_init .. [[ require "string" require "llthreads".set_logger(function(msg) if type(msg) ~= 'string' then print("ERROR! Invalid error message: ", msg) os.exit(-2) end if not msg:find("SOME ERROR", nil, true) then print("ERROR! Invalid e...
moteus/lua-llthreads2
test/test_logger.lua
Lua
mit
495
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> 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 ]]-- local ma...
sjznxd/lc-20130116
protocols/6x4/luasrc/model/cbi/admin_network/proto_6in4.lua
Lua
apache-2.0
2,709
-- Linux error messages return { PERM = "Operation not permitted", NOENT = "No such file or directory", SRCH = "No such process", INTR = "Interrupted system call", IO = "Input/output error", NXIO = "No such device or address", ["2BIG"] = "Argument list too long", NOEXEC = "Exec format error", BADF = ...
jsitnicki/rushit
vendor/github.com/justincormack/ljsyscall/syscall/linux/errors.lua
Lua
apache-2.0
5,242
---- -- Utility - Utility functions for xlsxwriter.lua. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- require "numberbook.xlsxwriter.strict" local Utility = {} local char_A = string.byte("A") local col_names = {} local named_colors = { ["black"] = "#000000", ["blue"] = "#0000FF", ["brown"...
dariocanoh/numberbook
xlsxwriter/utility.lua
Lua
mit
9,910
----------------------------------------------------- --name : home/lib/mpm/rstools.lua --description: a library that makes working with redstone easier --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : http://oc.cil.li/index.php?/topic/ -------------------------------------...
mpmxyz/ocprograms
home/lib/mpm/rstools.lua
Lua
mit
5,942
local snax = require "snax" local skynet = require "skynet" local skymgr = require "skynet.manager" local cluster = require "cluster" local methods = { --方式一,cluster.proxy,可以call,可以send [1] = function() local intf = assert(snax.interface("server")) local proxy = cluster.proxy("...
ximenpo/hello-skynet
hello-cluster-snax/client.lua
Lua
mit
1,335
stage = display.getCurrentStage() player = display.newImage("player.png") player.x = 40 player.y = 40 bullet = display.newImage("player_bullet.png") bullet.x = 60 bullet.y = 40 function newEnemy() local enemy = display.newImage("enemy.png") enemy.y = 40 enemy.x = math.random() * stage.width return enemy end func...
JesterXL/Corona-SDK---Adobe-AIR-Workshop-and-Refactoring-Presentation
Gaming/code-gaming/Corona/Lesson-4/4-b/main.lua
Lua
mit
516
-- ABNF from RFC 3629 -- -- UTF8-octets = *( UTF8-char ) -- UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4 -- UTF8-1 = %x00-7F -- UTF8-2 = %xC2-DF UTF8-tail -- UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) / -- %xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail ) -- UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3...
blitmap/lua-utf8-simple
utf8_simple.lua
Lua
mit
2,739
ReportFu.sessionPlayers = {} -- Utils and functions function ReportFu:LoadReport(id) return new ('ReporFuReport'):find(id) end function ReportFu:IsValidReporter(ply, reportedPlayerSteamID64) if not ReportFu.sessionPlayers[ply:SteamID64()] then return false end if not ReportFu.sessionPlayers[reportedPlayerSteamID6...
adamdburton/reportfu
reportfu/sv_reportfu.lua
Lua
mit
3,261
local tinsert = table.insert local type = type local ipairs = ipairs local setmetatable = setmetatable local ngx_quote_sql_str = ngx.quote_sql_str local mysql = require("resty.mysql") local utils = require("orange.utils.utils") local Object = require("orange.lib.classic") local DB = Object:extend() function DB:new(c...
sumory/orange
orange/store/mysql_db.lua
Lua
mit
2,932
-- Obtained at https://github.com/attractivechaos/plb local benchmark_util = require 'benchmarks/util' benchmark_util(function() function sd_genmat() local R, C, r = {}, {}, 0 for i = 0, 8 do for j = 0, 8 do for k = 0, 8 do C[r], r = { 9 * i + j, math.floor(i/3)*27 + math.floor(j/3)*9 + k...
gligneul/Lua-Low-Level
benchmarks/sudoku.lua
Lua
mit
4,766
-- Lock rate uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) if file.open('main.lua') then file.close() dofile('main.lua') else dofile('main.lc') end
kalmanolah/kalmon-ESP8266
src/init.lua
Lua
mit
170
-- =========================================================================== -- Action Panel -- Main area of game to advance turns and show what is currently blocking. -- Tabs set to 4 spaces; retaining tab. -- =========================================================================== include( "InstanceManager"...
EvolSknaht/cqui
Assets/UI/actionpanel.lua
Lua
mit
49,875
require 'Model.Model_Base' local Model_CNN = torch.class('Model_CNN','Model_Base') function Model_CNN:__init(args) Model_Base:__init(args) self.args.conv_layers = {10,30} self.args.filter_sizes = {5,5} self.args.fc_layers = {120,60} end function Model_CNN:create_model() --[[ Conv layers]]-- local ...
theduynguyen/monet
Model/Model_CNN.lua
Lua
mit
1,302
net.Receive("GBaySubmitService", function(len, ply) local servname = GBayEscapeString(net.ReadString()) local servdesc = GBayEscapeString(net.ReadString()) local servprice = GBayEscapeString(net.ReadFloat()) if not GBayConfig.ServiceToggle then ply:GBayNotify("error", "Services are NOT allowed on " .. GBayConfig...
XxLMM13xXgaming/gbay
lua/gbay/service/sv_service.lua
Lua
mit
6,045
package.path = "./lualib/?.lua;./sproto/?.lua;" .. package.path package.cpath = "./luaclib/?.dll;" .. package.cpath local math3d = require "math3d" local physx = require "physxadapter" local staticFriction = 0.5 local dynamicFriction = 0.5 local restitution = 0.6 local scene local boxes = {} local defaultMaterial loca...
Mephostopilis/lua
physx/test.lua
Lua
apache-2.0
1,780
local RunService = game:GetService('RunService') local UserInputService = game:GetService('UserInputService') local PlayersService = game:GetService('Players') local StarterPlayer = game:GetService('StarterPlayer') local RootCamera = script:WaitForChild('RootCamera') local AttachCamera = require(RootCamera:WaitForCh...
hockeychaos/Core-Scripts-1
PlayerScripts/StarterPlayerScripts/CameraScript.lua
Lua
apache-2.0
10,195
-- The ship factory constructs ship data objects. -- When it is finished you can get default versions of different ship layouts -- For example: buildTrader(), buildDestroyer(), etc... -- a small ship for testing purposes function shipFactory_buildTestShip() -- first init a new ship object of size 5 local shi...
zorfmorf/loveprojects
traderun/Client/model/shipFactory.lua
Lua
apache-2.0
995
-- this add-on simply adds an alternative UI that allows to start/stop/pause a simulation. This is not very useful, -- but illustrates how easily V-REP can be customized using add-ons execMode=... if (execMode==0) then uiHandles=simLoadUI('addOnDemoUi.ttb') if (#uiHandles==1) then simSetUIProperty(uiHandles[1...
NEricN/RobotCSimulator
V-REP3/V-REP_PRO_EDU/vrepAddOnScript-addOnScriptDemo.lua
Lua
apache-2.0
2,268
-- string.lua -- Contains functions to expand the string library -- Makes the first character of a string uppercase, and lowercases the rest. function string.ucfirst(a_String) local firstChar = a_String:sub(1, 1):upper() local Rest = a_String:sub(2):lower() return firstChar .. Rest end
cuberite/WorldEdit
LibrariesExpansion/string.lua
Lua
apache-2.0
298
-- ALF implementation for ngx_lua/Kong -- ALF version: 1.1.0 -- @version 2.0.0 -- @see https://github.com/Mashape/galileo-agent-spec -- -- Incompatibilities with ALF 1.1 and important notes -- ================================================== -- * The following fields cannot be retrieved as of ngx_lua 0.10.2: -- *...
smanolache/kong
kong/plugins/galileo/alf.lua
Lua
apache-2.0
8,302
local skynet = require "skynet" local httpc = require "http.httpc" local dns = require "dns" local CMD = {} local function make_header( mcmd, scmd, len, context) local header = string.pack(">HHI4BI4", mcmd, scmd, len, 0, context) return header end local function request( ... ) httpc.dns() -- set dns server print...
zhulin0001/skynet_demo
service/phpproxy.lua
Lua
apache-2.0
1,700
---------------------------------------------------------------------- -- This script demonstrates how to load the (SVHN) House Numbers -- training data, and pre-process it to facilitate learning. -- -- The SVHN is a typical example of supervised training dataset. -- The problem to solve is a 10-class classification p...
jason9263/JasonAI
torch/2_supervised/1_data.lua
Lua
apache-2.0
8,655
env = require('test_run') test_run = env.new() -- -- Access control tests which require a binary protocol -- connection to the server -- box.schema.user.grant('guest','read,write,execute','universe') session = box.session remote = require('net.box') c = remote.connect(box.cfg.listen) c:call("dostring", "session.su('adm...
mejedi/tarantool
test/box/access_bin.test.lua
Lua
bsd-2-clause
3,959
local function addgroup(msg) local group = load_data('bot/group.json') local groupa = group[tostring(msg.chat_id)] if not groupa then group[tostring(msg.chat_id)] = { group_type = 'SuperGroup', by = msg.from_id, moderators = {}, set_owner = member_id , settings = { lock_link = "no", lock...
senator0/senatorvip2
plugins/addrem.lua
Lua
bsd-3-clause
1,746
class = require("sunclass") local SuperClass = class("SuperClass") function SuperClass:print() print("Called a super class") end --------------------------------------- local Mixin = class("Mixin") function Mixin:print() print("This will never be called") end function Mixin:print2() print("Called a ...
ld-test/sunclass
test.lua
Lua
mit
694
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -...
Neopallium/lua-handlers
examples/tcp_server.lua
Lua
mit
2,199
--[[-------------------------------------------------------------------------- LGI testsuite, GObject.Object test suite. Copyright (c) 2010, 2011 Pavel Holejsovsky Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]----------------------------------------------------------...
ld-test/lgi
tests/gobject.lua
Lua
mit
9,233
local fixtures = require "spec.plugins.mashape-analytics.fixtures.requests" local ALFSerializer = require "kong.plugins.log_serializers.alf" -- @see http://lua-users.org/wiki/CopyTable local function deepcopy(orig) local copy = {} if type(orig) == "table" then for orig_key, orig_value in next, orig, nil do ...
Skyscanner/kong
spec/plugins/mashape-analytics/alf_serializer_spec.lua
Lua
mit
3,683
--luacheck: ignore describe it describe('rapidjson.decode()', function() local rapidjson = require('rapidjson') describe('should return value', function() it('when decode values without array or object', function() assert.are.equal('very funny', rapidjson.decode('"very funny"')) assert.are.equal(123...
ignacio/lua-rapidjson
spec/json_decode_spec.lua
Lua
mit
6,400
---- -- Test cases for xlsxwriter.lua. -- -- Test the worksheet set_x_pagebreaks() methods. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" local workbook = Workbook:new("test_page_breaks02.xlsx") local worksheet = workbook:add_worksheet() worksheet:set_h_pa...
LuaDist2/xlsxwriter
test/comparison/lua/test_page_breaks02.lua
Lua
mit
399
a = box.schema.space.create('test', { engine = 'sophia' }) index = a:create_index('primary', { type = 'tree', parts = {1, 'num'} }) b = box.schema.space.create('test_tmp', { engine = 'sophia' }) index = b:create_index('primary', { type = 'tree', parts = {1, 'num'} }) -- begin/rollback box.begin() for key = 1, 10 do...
dkorolev/tarantool
test/sophia/transaction_multidb.test.lua
Lua
bsd-2-clause
1,236
local lpeg = require "lpeg" local re = require "re" module(..., package.seeall) local function parse_selector(selector, env) env = env or "env" selector = string.sub(selector, 2, #selector) local parts = {} for w in string.gmatch(selector, "[^|]+") do local n = tonumber(w) if n then table.inser...
jgm/lunamark
standalone/src/cosmo/grammar.lua
Lua
mit
4,696
--- Reading and writing strings using file-like objects. <br> -- -- f = stringio.open(text) -- l1 = f:read() -- read first line -- n,m = f:read ('*n','*n') -- read two numbers -- for line in f:lines() do print(line) end -- iterate over all lines -- f = stringio.create() -- f:write('hello') -- f:wr...
ukoloff/rufus-lua-win
vendor/lua/lib/lua/pl/stringio.lua
Lua
mit
3,654
--[[ key 1 -> key name - ip, user id or some unique key to throttle X by arg 1 -> limit arg 2 -> milliseconds returns 0 if request is ok returns 1 if request denied ]] local count = redis.call('INCR', KEYS[1]) local pttl = redis.call('pttl',KEYS[1]) local remaining = tonumber(ARGV[1]) - count if count == 1 ...
redibox/job
src/lua/pThrottle.lua
Lua
mit
574
--[[ World ===== A World allows you to easily move Players between the Cells in your game. Conceptually, a World can be thought of as the game itself, and the Cells it has access to are all the areas the Player can travel to. You should limit yourself to a single World instance, they're intended to be ...
VoxelDavid/echo-ridge
src/ReplicatedStorage/Level/World.module.lua
Lua
mit
3,778
local addon, ns = ... local cfg = ns.cfg if not cfg.automation.shout_cooldowns.enable then return end local cd_list = cfg.automation.shout_cooldowns.cd_list for i,v in ipairs(cd_list) do local f = CreateFrame"Frame" local c, nm = 0, 1 f:RegisterEvent( "UNIT_SPELLCAST_SUCCEEDED" ) f:SetScript( "OnEvent", function(s,...
jcdenton/mono-ui-cfg
AddOns/m_UI/elements/automation/shoutCD.lua
Lua
mit
2,442
------------------------------------------------------------------- -- This file is where your Lua server scripts go! -- -- As an alternative you can also put them into the folder -- -- sys/lua/autorun -- -- ...
PizzaKirby/CS2D-WorldEdit
server.lua
Lua
mit
3,815
ElvCharacterDB = { ["ChatHistoryLog"] = { }, ["BodyGuard"] = { ["Active"] = false, ["Health"] = 0, ["MaxHealth"] = 0, ["IsInValidZone"] = true, }, ["ChatEditHistory"] = { "/p any idea what this is like post squish ?", -- [1] "/p well ferk", -- [2] "/p 1min", -- [3] "/p then I can zone", -- [4] "...
nublet/WoWCache
WTF/Account/869497#2/Darksorrow/Beepbeep/SavedVariables/ElvUI.lua
Lua
mit
818
relayState = 0 buttonStateDown = 0 function ioButtonInterrupt() print("Interrupt") if (buttonStateDown == 0 and gpio.read(config.io.button_pin) == gpio.LOW) then buttonStateDown = 1 tmr.delay(config.io.button_delay_short_click_us) print("Short delay complete") if (gpio.read(conf...
ssk181/home-switch-sonoff
io.lua
Lua
mit
2,254
-------------------------------------------------------------- -- Duel System Setting -------------------------------------------------------------- FIRE_DUEL_SYSYEM_TIMER = 10 DUEL_SYSTEM_TIMER_STARTED = 300 DUEL_TIMER_INSIDE_ARENA = 25 DUEL_TIMER_PRE_ARENA = 5 DUEL_TIMER_AFTER_ARENA = 10 -----...
DiNaSoR/Angel_Arena
game/angel_arena/scripts/vscripts/mechanics/duel/old_duel/duel.lua
Lua
mit
13,322
local mkstr = ZO_CreateStringId local SI = Alchemist.SI -- texts mkstr(SI.NO_DISCOVERIES_AVAILABLE, "Keine Entdeckungen m\195\182glich.") mkstr(SI.COMBINATIONS_AVAILABLE, "%d Kombination(en) verf\195\188gbar!") mkstr(SI.COMBINE_THE_FOLLOWING, "Kombiniere folgendes:") mkstr(SI.TO_GET_THE...
helgefmi/Alchemist
localization/DE.lua
Lua
mit
2,543
local _, nBuff = ... nBuff.Config = { buffSize = 36, buffScale = 1, buffBorderColor = {1, 1, 1}, buffFontSize = 14, buffCountSize = 16, borderBuff = "Interface\\AddOns\\nBuff\\media\\textureOverlay", borderDebuff = "Interface\\AddOns\\nBuff\\media\\textureDebuff", debuffSize = 36, ...
renstrom/NeavUI
Interface/AddOns/nBuff/config.lua
Lua
mit
526
local core = require('core') local pathlib = require('path') local fs = require('fs') local string = require('string') local Writable = require('stream').Writable local WriteOptions = core.Object:extend() function WriteOptions:initialize() self.flags = 'w' self.mode = '0644' self.offset = 0 self.fd = nil end...
virgo-agent-toolkit/luvit-stream-fs
lib/write_stream.lua
Lua
apache-2.0
2,055
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of thi...
LiberatorUSA/GUCEF
platform/gucefANDROIDGLUE/Gingerbread/jni/premake4.lua
Lua
apache-2.0
1,426
local cjson_safe = require "cjson.safe" local shmlock = require "resty.lock" local http = require "resty.http" local resolver = require "resty.resolver" local util = require "util" -- In order to make caching code testable, these constants need to be -- configurable/exposed through env vars. -- -- Values assigned to t...
dcos/dcos
packages/adminrouter/extra/src/lib/cache.lua
Lua
apache-2.0
29,972
local BinaryTanhActivation, Parent = torch.class('nn.BinaryTanhActivation', 'nn.Module') function BinaryTanhActivation:__init(binWeights) Parent.__init(self) self.binWeights = binWeights or 'stoch' end function BinaryTanhActivation:_binSigmoid(x) return torch.cmax(torch.cmin((x+1)/2,1),0) end function BinaryT...
caldweln/nn
BinaryTanhActivation.lua
Lua
bsd-3-clause
1,304
--[[ KeyBound localization file Korean by damjau --]] if (GetLocale() ~= "koKR") then return end local REVISION = 90000 + tonumber(("$Revision: 92 $"):match("%d+")) if (LibKeyBoundLocale10 and REVISION <= LibKeyBoundLocale10.REVISION) then return end LibKeyBoundLocale10 = { REVISION = REVISION;...
Goranaws/Dominos
Dominos/libs/LibKeyBound-1.0/Locale-koKR.lua
Lua
bsd-3-clause
2,613
-- Translations for Dominos Cast (English - Default Version) local L = LibStub("AceLocale-3.0"):NewLocale("Dominos-CastBar", "enUS", true) L.CastBarDisplayName = 'Cast Bar' L.Display = DISPLAY L.Display_border = "Show Border" L.Display_icon = "Show Icon" L.Display_label = "Show Label" L.Display_latency = "Show Latenc...
tullamods/Dominos
Dominos_Cast/localization/localization.lua
Lua
bsd-3-clause
695
local util = loadmodule("moonscript.util") local data = loadmodule("moonscript.data") local ntype do local _obj_0 = loadmodule("moonscript.types") ntype = _obj_0.ntype end local user_error do local _obj_0 = loadmodule("moonscript.errors") user_error = _obj_0.user_error end local concat, insert do local _obj_0...
Mijyuoon/starfall
lua/moonscript/compile/value.lua
Lua
bsd-3-clause
8,283
-- -- cmake_cpp.lua -- Generate a C/C++ CMake project. -- Copyright (c) 2014 Manu Evans and the Premake project -- premake.extensions.cmake.d = {} local cmake = premake.extensions.cmake local d = cmake.d local project = premake.project local config = premake.config local fileconfig = premake.fileconfig --- -...
TurkeyMan/premake-cmake
cmake_d.lua
Lua
bsd-3-clause
12,296
--------------------------------------------------------------------------------------------- -- CRQ: APPLINK-25200: [GENIVI] VehicleInfo interface: SDL behavior in case HMI does not -- respond to IsReady_request or respond with "available" = false -- -- Requirement(s): APPLINK-25225: [Vehicl...
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/IsReady/VehicleInfo_IsReady/ATF_VehicleInfo_IsReady_missing_SingleRPC_ABORTED.lua
Lua
bsd-3-clause
821
-------------------------------------------------------------------------------- --[[ LoadPreset The absolute minimum code required to get a preset loaded onscreen. The Academic Section -------------------- If you've just come from the BasicVent tutorial, you'll probably be wondering where customization comes in. W...
GymbylCoding/CBEffects
samples/GettingStarted/LoadPreset.lua
Lua
mit
1,913
-- ####################################### -- ## Project: HUD iLife ## -- ## For MTA: San Andreas ## -- ## Name: HudComponentLoader.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFun...
Pandafuchs/iLife
client/Classes/Hud/CHudComponentLoader_Old.lua
Lua
mit
2,927
return { hand_right = { { {-9, 39}, {13, 32}, {-7, 33}, {-13, 29}, {-9, 38}, {-18, 28}, {-15, 15}, {-15, 19}, {-15, 37}, }, { {-8, 38}, {9, 34}, {-3, 34}, {-15, 30}, {-9, 38}, {-4, 35}, {-18, 15}, {-9, 38}, {-11, 38}, }, { {-9, 38}, {-17, 32}, {-10, 34}, {-10, 34}, {-8, 46}, {-15, 20}, {-6, 31}, {-8...
hawkthorne/hawkthorne-server-lua
src/positions/jeff.lua
Lua
mit
2,882
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 agr...
rjeli/luvit
deps/helpful.lua
Lua
apache-2.0
2,277
sptbl["incr"] = { files = { module = "incr.c", header = "incr.h", example = "ex_incr.c", }, func = { create = "sp_incr_create", destroy = "sp_incr_destroy", init = "sp_incr_init", compute = "sp_incr_compute", }, params = { mandatory ...
narner/Soundpipe
modules/data/incr.lua
Lua
mit
1,675
-- @docclass Creature -- @docconsts @{ SkullNone = 0 SkullYellow = 1 SkullGreen = 2 SkullWhite = 3 SkullRed = 4 SkullBlack = 5 SkullOrange = 6 ShieldNone = 0 ShieldWhiteYellow = 1 ShieldWhiteBlue = 2 ShieldBlue = 3 ShieldYellow = 4 ShieldBlueSharedExp = 5 ShieldYellowSharedExp = 6 ShieldBlueNoSharedExpBlink = 7 Shie...
gpedro/otclient
modules/gamelib/creature.lua
Lua
mit
4,134
return { ["in-ipv6-frag-reassembly-unneeded"] = 1, ["memuse-ipv4-frag-reassembly-buffer"] = 728203264, ["memuse-ipv6-frag-reassembly-buffer"] = 11378176, ["out-ipv6-frag-not"] = 1, }
SnabbCo/snabbswitch
src/program/lwaftr/tests/data/counters/nofrag6-sol.lua
Lua
apache-2.0
195
require 'torch' local ffi = require 'ffi' local tester = torch.Tester() local tests = torch.TestSuite() local function createSharedMemStorage(name, size, storageType) local storageType = storageType or 'FloatStorage' local shmName = name or os.tmpname():gsub('/','_') local isShared = true local isSharedMem = ...
adamlerer/torch7
test/test_sharedmem.lua
Lua
bsd-3-clause
3,030
bad_script
minifirocks/nifi-minifi-cpp
thirdparty/civetweb-1.10/test/bad_script.lua
Lua
apache-2.0
13
local wrap = require 'cwrap' require 'torchcwrap' local interface = wrap.CInterface.new() interface:print( [[ #include "luaT.h" #include "TH.h" extern void torch_Generator_init(lua_State *L); extern void torch_Generator_new(lua_State *L); ]]) for _,name in ipairs({"seed", "initialSeed"}) do interface:wrap...
EliHar/Pattern_recognition
torch1/pkg/torch/random.lua
Lua
mit
1,364
LinkLuaModifier("modifier_item_golden_eagle_relic", "items/item_golden_eagle_relic.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_golden_eagle_relic_enabled", "items/item_golden_eagle_relic.lua", LUA_MODIFIER_MOTION_NONE) item_golden_eagle_relic = class({ GetIntrinsicModifierName = function() return "...
ark120202/aabs
game/scripts/vscripts/items/item_golden_eagle_relic.lua
Lua
mit
3,650
local mod = DBM:NewMod(1903, "DBM-TombofSargeras", nil, 875) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17492 $"):sub(12, -3)) mod:SetCreatureID(118523, 118374, 118518)--118523 Huntress kasparian, 118374 Captain Yathae Moonstrike, 118518 Prestess Lunaspyre mod:SetEncounterID(2050) mod:SetZ...
liruqi/bigfoot
Interface/AddOns/DBM-TombofSargeras/SistersoftheMoon.lua
Lua
mit
18,292
local pasteboard = require("hs.pasteboard") local utils = {} function utils.reverse(arr) local i, j = 1, #arr while i < j do arr[i], arr[j] = arr[j], arr[i] i = i + 1 j = j - 1 end return arr end function utils.trim(s) return s:gsub("^%s+", ""):gsub("%s+$", "") end functi...
meain/dotfiles
hammerspoon/.config/hammerspoon/utils.lua
Lua
mit
5,527
--@import see.util.Color --@import weegui.element.Container --@import weegui.element.MenuBarButton --@import weegui.element.Menu --@extends weegui.element.Container function MenuBar:init(parent, x, y, w, bg, fg) self:super(Container).init(parent, x, y, w, 1) self.bg = bg self.fg = fg self.right = 1 e...
Yevano/weegui
weegui/element/MenuBar.lua
Lua
mit
773
local requests = require('src/requests') describe("All requests test", function() describe("GET request", function() it("can make basic get requests", function() local url = 'http://localhost:8080/get' local response = requests.get(url) local _, err = response.json() assert.are.same(200...
JakobGreen/lua-requests
tests/user_tests.lua
Lua
mit
6,916
local sw, sh = love.graphics.getWidth(), love.graphics.getHeight() local smallerDimension = sw < sh and sw or sh function percentToPixels(percent) return percent * smallerDimension/100 end function percentagesToPixels(percentX, percentY) return {x = percentX * sw/100, y = percentY * sh/100} end constants = {...
raffomania/ideophilia
src/constants.lua
Lua
mit
406
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: HUD ...
Noneatme/iLife-SA
client/Classes/Hud/cHudComponent_Crosshair.lua
Lua
mit
2,290
PROPERTY = {}; PROPERTY.ID = 40; PROPERTY.Name = "Suburbs House #2"; PROPERTY.Category = "House"; PROPERTY.Description = "A moderately sized house in the suburbs."; PROPERTY.Image = "ev3x_subs2"; PROPERTY.Cost = 2000; PROPERTY.Doors = { {Vector(4276.1875, 11000.1875, 116), '*5'}, {Vector(5008.1875, ...
msburgess3200/PERP
gamemodes/perp/gamemode/properties/suburb_house_02.lua
Lua
mit
606
--[[ THIS FILE IS ENCODED IN UTF-8 Bagnon Void Storage Localization Information: Chinese Simplified Credits: 天下牧@萨格拉斯 Last Update: 2012/04/05 by 天下牧@萨格拉斯 --]] local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-VoidStorage', 'zhCN') if not L then return end L.ConfirmTransfer = '储存这件物品将移除该物品上的一切...
liruqi/bigfoot
Interface/AddOns/Bagnon_VoidStorage/localization/cn.lua
Lua
mit
766
// Skulks With Shotguns: Babblers are now Shotguns. You should have seen them wag. MAGIC! // @TODO Remove this when we get the model working. Script.Load("lua/ScriptActor.lua") Script.Load("lua/Mixins/ClientModelMixin.lua") Script.Load("lua/LiveMixin.lua") Script.Load("lua/TeamMixin.lua") Script.Load("lua/MobileTarget...
DaanVanYperen/ns2-skulks-with-shotguns
output/lua/Babbler.lua
Lua
mit
31,678
-- Ogres are going to attack soon. -- Move near each of tents (to the X marks) -- say() something at each X to wake your soldiers. -- Beware: leave the camp when the battle begins! -- Ogres will send reinforcements if they see the hero. -- The sergeant knows the distance between tents. local sergeant = hero:findNeare...
nikai3d/codecombat-scripts
mountain/to-arms.lua
Lua
mit
1,251
#!/usr/bin/env lua ------------------ -- *strictness, a "strict" mode for Lua*. -- Source on [Github](http://github.com/Yonaba/strictness) -- @author Roland Yonaba -- @copyright 2013-2014 -- @license MIT local after_Lua_5_1 = _VERSION > ('Lua 5.1.5') local setmetatable, getmetatable = setmetatable, getmetatable local ...
LuaDist2/strictness
strictness.lua
Lua
mit
9,004
function ClassModConfigFunc() local BIGFOOT_CLASS_MOD,ENABLE_AIMED_SHOT,ENABLE_AIMED_SHOT_TOOLTIP,AJUST_CAST_POSITION, ENABLE_MISDIRECT,ENABLE_MISDIRECT_TOOLTIP; local ENABLE_ASPECT_BAR,ENABLE_ATTACK_TIMER,ENABLE_ATTACK_TIMER_TOOLTIP,CLASS_MOD_PATH,USE_OLD_COB,USE_OLD_COB_TEXT; local ENABLE_FOCUS_BAR,ENABLE_FOC...
liruqi/bigfoot
Interface/AddOns/BigFoot/Config/ClassMod.lua
Lua
mit
13,663