repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
mtroyka/Zero-K
LuaRules/Gadgets/game_resign.lua
12
1334
function gadget:GetInfo() return { name = "Resign Gadget", desc = "Resign stuff", author = "KingRaptor", date = "2012.5.1", license = "Public domain", layer = 0, enabled = true, } end if (not gadgetHandler:IsSyncedCode()) then return end local spGetPlayerInfo = Spring.GetPlayerInfo local spKillTeam...
gpl-2.0
thedraked/darkstar
scripts/zones/Western_Adoulin/npcs/Preterig.lua
14
1184
----------------------------------- -- Area: Western Adoulin -- NPC: Preterig -- Type: Shop NPC -- @zone 256 -- @pos 6 0 -53 256 ----------------------------------- package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/z...
gpl-3.0
alalazo/wesnoth
data/ai/micro_ais/cas/ca_wolves_multipacks_functions.lua
4
5523
local H = wesnoth.require "helper" local W = H.set_wml_action_metatable {} local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local M = wesnoth.map local wolves_multipacks_functions = {} function wolves_multipacks_functions.clear_label(x, y) W.label{ x = x, y = y, text = "" } end function w...
gpl-2.0
dmccuskey/dmc-utils
dmc_corona/lib/dmc_lua/lua_class.lua
16
14025
--====================================================================-- -- dmc_lua/lua_class.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission is hereby granted, fr...
mit
wljcom/vlc-2.2
share/lua/meta/art/01_googleimage.lua
74
1764
--[[ Gets an artwork from images.google.com $Id$ Copyright © 2007 the VideoLAN team 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 (at your option) any la...
gpl-2.0
SnabbCo/snabbswitch
lib/luajit/testsuite/test/sysdep/ffi_lib_z.lua
6
3348
local ffi = require("ffi") local compress, uncompress if ffi.abi("win") then ffi.cdef[[ int RtlGetCompressionWorkSpaceSize(uint16_t fmt, unsigned long *wsbufsz, unsigned long *wsfragsz); int RtlCompressBuffer(uint16_t fmt, const uint8_t *src, unsigned long srclen, uint8_t *dst, unsigned long dstsz,...
apache-2.0
Xkeeper0/emu-lua
nes-fceux/pac-man.lua
1
3756
function getMode() local ghostMode = memory.readbyte(0xD0) local ghostModeTimer = memory.readbyte(0x00CF) * 0x3C + (0x3C - memory.readbyte(0x00d1)) local text = "Chase" if math.fmod(ghostMode, 2) == 0 then text = "Scatter" end return { modeName = text, modeCount = ghostMode, modeTimer = ghostModeTimer, modeRa...
mit
thedraked/darkstar
scripts/globals/weaponskills/catastrophe.lua
19
2122
----------------------------------- -- Catastrophe -- Scythe weapon skill -- Skill Level: N/A -- Drain target's HP. Bec de Faucon/Apocalypse: Additional effect: Haste -- This weapon skill is available with the stage 5 relic Scythe Apocalypse or within Dynamis with the stage 4 Bec de Faucon. -- Also available without Af...
gpl-3.0
master041/tele-master-asli
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
keharriso/rogue-with-friends
Position.lua
1
4651
-- Rogue with Friends - a 2D, real-time, multiplayer roguelike -- --------------------------------------------------------------- -- Released under the GNU AGPLv3 or later. See README.md for info. local Point = require "Point" local concat = table.concat -- A Position represents the location of a game object in an A...
agpl-3.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/luarocks/new_version.lua
2
4519
--- Module implementing the LuaRocks "new_version" command. -- Utility function that writes a new rockspec, updating data from a previous one. module("luarocks.new_version", package.seeall) local util = require("luarocks.util") local cfg = require("luarocks.cfg") local download = require("luarocks.download") local fe...
mit
filug/nodemcu-firmware
lua_modules/mpr121/mpr121.lua
19
2055
--------------------------------------------------------------- -- MPR121 I2C module for NodeMCU -- Based on code from: http://bildr.org/2011/05/mpr121_arduino/ -- Tiago Custódio <tiagocustodio1@gmail.com> --------------------------------------------------------------- local moduleName = ... local M = {} _G[moduleName...
mit
thedraked/darkstar
scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua
14
1039
----------------------------------- -- Area: Al Zahbi -- NPC: Eumoa-Tajimoa -- Type: Standard NPC -- @zone 48 -- @pos 19.275 -1 55.182 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -------------------------...
gpl-3.0
NPLPackages/main
script/ide/System/Windows/Mouse.lua
1
2713
--[[ Title: Mouse Author(s): LiXizhi Date: 2015/4/23 Desc: Singleton object The Mouse class provides mouse related events, methods and, properties which provide information regarding the state of the mouse. use the lib: ------------------------------------------------------------ NPL.load("(gl)script/ide/System/Windows...
gpl-2.0
SnabbCo/snabbswitch
lib/ljsyscall/test/netbsd.lua
5
9658
-- BSD specific tests local function init(S) local helpers = require "test.helpers" local types = S.types local c = S.c local abi = S.abi local features = S.features local util = S.util local bit = require "syscall.bit" local ffi = require "ffi" local t, pt, s = types.t, types.pt, types.s local assert = helpers.as...
apache-2.0
rjeli/luvit
tests/to-convert/test-utils.lua
5
2455
local utils = require('utils') require('helper') local Object = require('core').Object local BindHelper = Object:extend() function BindHelper:func1(arg1, callback, ...) assert(self ~= nil) callback(arg1) end function BindHelper:func2(arg1, arg2, callback) assert(self ~= nil) callback(arg1, arg2) end functio...
apache-2.0
mtroyka/Zero-K
scripts/chicken_roc.lua
12
5362
include "constants.lua" --pieces local body, head, tail, leftWing1, rightWing1, leftWing2, rightWing2 = piece("body","head","tail","lwing1","rwing1","lwing2","rwing2") local leftThigh, leftKnee, leftShin, leftFoot, rightThigh, rightKnee, rightShin, rightFoot = piece("lthigh", "lknee", "lshin", "lfoot", "rthigh", "rkne...
gpl-2.0
SnabbCo/snabbswitch
lib/luajit/testsuite/test/lang/meta/index.lua
6
1077
do --- table 1 local t=setmetatable({}, {__index=function(t,k) return 100-k end}) for i=1,100 do assert(t[i] == 100-i) end for i=1,100 do t[i] = i end for i=1,100 do assert(t[i] == i) end for i=1,100 do t[i] = nil end for i=1,100 do assert(t[i] == 100-i) end end do --- table 2 local x local t2...
apache-2.0
davidmilligan/LrRamp
ramp.lrdevplugin/Info.lua
1
1275
--[[-------------------------------------------------------------- Copyright (C) 2015 David Milligan 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 (at your opti...
gpl-2.0
OpenNMT/OpenNMT
hooks/chartokenization.lua
4
1223
local unicode = require('tools.utils.unicode') local myopt = { { '-mode', 'conservative', [[Define how aggressive should the tokenization be. `aggressive` only keeps sequences of letters/numbers, `conservative` allows a mix of alphanumeric as in: "2,000", "E65", "soft-landing", etc. `space` is do...
mit
mtroyka/Zero-K
LuaUI/Widgets/gui_spotter.lua
11
8605
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: gui_spotter.lua -- brief: Draws smoothed polygons under units -- author: metuslucidium (Orig. Dave Rodgers (orig. TeamPlatter edited by T...
gpl-2.0
mason-larobina/luakit
lib/adblock.lua
1
18407
--- Simple URI-based content filter. -- -- This is a simple, fast ad blocker module that works by blocking requests to -- domains that only serve advertisements. It does not currently do any form of -- cosmetic ad blocking (i.e. element hiding with CSS). -- -- See also: @ref{adblock_chrome}. -- -- # Capabilities -- -- ...
gpl-3.0
thedraked/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Hieroglyphics.lua
7
2551
----------------------------------- -- Area: Buburimu_Peninsula -- NPC: Hieroglyphics -- Dynamis Buburimu_Dunes Enter -- @pos 117 -10 133 172 118 ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"...
gpl-3.0
mamaddeveloper/7894
plugins/savef.lua
1
1101
local function savefile(extra, success, result) local msg = extra.msg local name = extra.name local adress = extra.adress local receiver = get_receiver(msg) if success then local file = './'..adress..'/'..name..'' print('File saving to:', result) os.rename(result, file) print('File mo...
gpl-2.0
bjornbytes/lust
lust.lua
1
5780
-- lust v0.1.0 - Lua test framework -- https://github.com/bjornbytes/lust -- MIT LICENSE local lust = {} lust.level = 0 lust.passes = 0 lust.errors = 0 lust.befores = {} lust.afters = {} local red = string.char(27) .. '[31m' local green = string.char(27) .. '[32m' local normal = string.char(27) .. '[0m' local functio...
mit
X-Coder/wire
lua/entities/gmod_wire_cd_lock.lua
10
2953
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire CD Lock" ENT.WireDebugName = "CD Lock" if CLIENT then return end -- No more client //Time after losing one disk to search for another local NEW_DISK_WAIT_TIME = 2 local DISK_IN_SOCKET_CONSTRAINT_POWER = 5000 local DISK_IN_ATTACH_RANGE = 16 ...
gpl-3.0
jhasse/wxFormBuilder
build/premake/4.3/tests/test_targets.lua
9
7216
-- -- tests/test_targets.lua -- Automated test suite for premake.gettarget() -- Copyright (c) 2008, 2009 Jason Perkins and the Premake project -- T.targets = { } local cfg function T.targets.setup() cfg = { } cfg.basedir = "." cfg.location = "." cfg.targetdir = "../bin" cfg.language = "C++" cf...
gpl-2.0
SnabbCo/snabbswitch
src/program/snabbvmx/lwaftr/setup.lua
7
20675
module(..., package.seeall) local PcapFilter = require("apps.packet_filter.pcap_filter").PcapFilter local V4V6 = require("apps.lwaftr.V4V6").V4V6 local VhostUser = require("apps.vhost.vhost_user").VhostUser local basic_apps = require("apps.basic.basic_apps") local bt = require("apps.lwaftr.binding_table") local config...
apache-2.0
thedraked/darkstar
scripts/zones/Cloister_of_Gales/bcnms/sugar-coated_directive.lua
30
1808
---------------------------------------- -- Area: Cloister of Gales -- BCNM: Sugar Coated Directive (ASA-4) ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/qu...
gpl-3.0
mtroyka/Zero-K
gamedata/modularcomms/weapons/torpedo.lua
17
1427
local name = "commweapon_torpedo" local weaponDef = { name = [[Torpedo Launcher]], areaOfEffect = 16, avoidFriendly = false, bouncerebound = 0.5, bounceslip = 0.5, burnblow = true, collideFriendly = false, craterBoost ...
gpl-2.0
thedraked/darkstar
scripts/globals/weaponskills/keen_edge.lua
25
1370
----------------------------------- -- Keen Edge -- Great Axe weapon skill -- Skill level: 150 -- Delivers a single hit attack. Chance of params.critical varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: None -- Modifiers: STR:35% -- 100%TP ...
gpl-3.0
mtroyka/Zero-K
units/benzcom1.lua
2
5837
unitDef = { unitname = [[benzcom1]], name = [[Siege Commander]], description = [[Standoff Combat Commander, Builds at 10 m/s]], acceleration = 0.18, activateWhenBuilt = true, autoHeal = 5, brakeRate = 0.375, buildCostEnergy = 1200, bu...
gpl-2.0
thedraked/darkstar
scripts/zones/Misareaux_Coast/Zone.lua
4
1649
----------------------------------- -- -- Zone: Misareaux_Coast (25) -- ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Misareaux_Coast/TextIDs"); ------------------------...
gpl-3.0
MonkeyFirst/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/container.lua
28
17414
-- tolua: container abstract class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- e...
mit
mtroyka/Zero-K
LuaUI/Widgets/unit_voice.lua
12
3543
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Voice Assistant", desc = "", author = "quantum", date = "Dec 2011", licens...
gpl-2.0
thedraked/darkstar
scripts/globals/abilities/pets/attachments/tension_spring.lua
27
1089
----------------------------------- -- Attachment: Tension Spring ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addMod(MOD_ATTP, 3) pet:addMod(MOD_RATTP, 3) end function...
gpl-3.0
thedraked/darkstar
scripts/zones/Caedarva_Mire/npcs/qm1.lua
30
1329
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? (Spawn Verdelet(ZNM T2)) -- @pos 417 -19 -69 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Caedarva_Mire/TextIDs"); require("scripts/gl...
gpl-3.0
mtroyka/Zero-K
LuaUI/Widgets/unit_building_starter.lua
12
2690
-- $Id$ function widget:GetInfo() return { name = "Building Starter", desc = "v2 Hold Q to queue a building to be started and not continued.", author = "Google Frog", date = "Dec 13, 2008", license = "GNU GPL, v2 or later", layer = 5, enabled = true -- loaded b...
gpl-2.0
OpenNMT/OpenNMT
onmt/modules/JoinReplicateTable.lua
8
4192
local JoinReplicateTable, parent = torch.class('onmt.JoinReplicateTable', 'nn.Module') function JoinReplicateTable:__init(dimensionReplicate, dimensionJoin, nInputDims) parent.__init(self) self.size = torch.LongStorage() self.dimensionReplicate = dimensionReplicate self.dimensionJoin = dimensionJoin self.gra...
mit
lyzardiar/RETools
PublicTools/bin/tools/bin/ios/x86/jit/bc.lua
78
5620
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
thedraked/darkstar
scripts/zones/Abyssea-Tahrongi/npcs/qm7.lua
14
1376
----------------------------------- -- Zone: Abyssea-Tahrongi -- NPC: qm7 (???) -- Spawns Hedetet -- @pos ? ? ? 45 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --[[ ...
gpl-3.0
MonkeyFirst/Urho3D
bin/Data/LuaScripts/04_StaticScene.lua
24
7000
-- Static 3D scene example. -- This sample demonstrates: -- - Creating a 3D scene with static content -- - Displaying the scene using the Renderer subsystem -- - Handling keyboard and mouse input to move a freelook camera require "LuaScripts/Utilities/Sample" function Start() -- Execute the c...
mit
thedraked/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahraga.lua
14
1201
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Wahraga -- Guild Merchant: Alchemist Guild -- @pos -76.836 -6.000 140.331 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
mamaddeveloper/7894
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
thedraked/darkstar
scripts/globals/spells/battlefield_elegy.lua
23
1594
----------------------------------------- -- Spell: Battlefield Elegy ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,tar...
gpl-3.0
NPLPackages/main
script/kids/3DMapSystemApp/mcml/test/test_pe_avatar.lua
1
1168
--[[ Title: test all mcml avatar tags Author(s): WangTian Date: 2008/3/16 Desc: use the lib: ------------------------------------------------------- NPL.load("(gl)script/kids/3DMapSystemApp/mcml/test/test_pe_avatar.lua"); test_pe_avatar() %TESTCASE{"test pe:avatar", func="test_pe_avatar"}% ----------------------------...
gpl-2.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/luarocks/tools/patch.lua
2
22316
--- Patch utility to apply unified diffs. -- -- http://lua-users.org/wiki/LuaPatch -- -- (c) 2008 David Manura, Licensed under the same terms as Lua (MIT license). -- Code is heavilly based on the Python-based patch.py version 8.06-1 -- Copyright (c) 2008 rainforce.org, MIT License -- Project home: http://code.goog...
mit
SnabbCo/snabbswitch
lib/ljsyscall/syscall/openbsd/constants.lua
24
20467
-- tables of constants for NetBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select local abi =...
apache-2.0
mamaddeveloper/7894
plugins/inf.lua
1
31182
local function get_rank_by_username(extra, success, result) if success == 0 then return send_large_msg(extra.receiver, lang_text('noUsernameFound')) end local rank = get_rank(result.peer_id, extra.chat_id) send_large_msg(extra.receiver, lang_text('rank') .. reverse_rank_table[rank + 1]) en...
gpl-2.0
thedraked/darkstar
scripts/globals/items/earth_wand.lua
41
1075
----------------------------------------- -- ID: 17076 -- Item: Earth Wand -- Additional Effect: Earth Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action --------------------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Southern_San_dOria/npcs/Foletta.lua
17
1458
----------------------------------- -- Area: Southern San d'Oria -- NPC: Foletta -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
SnabbCo/snabbswitch
lib/ljsyscall/syscall/linux/c.lua
4
40793
-- This sets up the table of C functions -- this should be generated ideally, as it is the ABI spec --[[ Note a fair number are being deprecated, see include/uapi/asm-generic/unistd.h under __ARCH_WANT_SYSCALL_NO_AT, __ARCH_WANT_SYSCALL_NO_FLAGS, and __ARCH_WANT_SYSCALL_DEPRECATED Some of these we already don't use, ...
apache-2.0
thedraked/darkstar
scripts/zones/Port_Bastok/npcs/Bagnobrok.lua
17
1554
----------------------------------- -- Area: Port Bastok -- NPC: Bagnobrok -- Only sells when Bastok controls Movalpolos -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = ...
gpl-3.0
eduardoabinader/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua
79
1251
local function scrape() -- documetation about nf_conntrack: -- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html nat_metric = metric("node_nat_traffic", "gauge" ) for e in io.lines("/proc/net/nf_conntrack") do -- output(string.format("%s\n",e )) local fields = space_split(e) local ...
gpl-2.0
mtroyka/Zero-K
LuaRules/Configs/StartBoxes/Akilon Wastelands ZK v1.lua
11
19588
return { [0] = { boxes = { { {6950, 6435}, {6804, 6292}, {6794, 6284}, {6783, 6283}, {6781, 6294}, {6782, 6304}, {6779, 6315}, {6770, 6326}, {6761, 6336}, {6754, 6347}, {6743, 6354}, {6733, 6357}, {6722, 6359}, {6712, 6360}, {6702, 6360}, {6691, 635...
gpl-2.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/logging/file.lua
3
1493
------------------------------------------------------------------------------- -- Saves logging information in a file -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2011 Kepler Project -- ------------------------------------------------------------------------------- require"logging" l...
mit
thedraked/darkstar
scripts/zones/Dragons_Aery/mobs/Fafnir.lua
12
1849
----------------------------------- -- Area: Dragons Aery -- HNM: Fafnir ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- function ...
gpl-3.0
thedraked/darkstar
scripts/zones/Windurst_Woods/npcs/Wani_Casdohry.lua
17
1310
----------------------------------- -- Area: Windurst Woods -- NPC: Wani Casdohry ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Windurst_Woods/TextIDs"); ------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/West_Ronfaure/npcs/Doladepaiton_RK.lua
14
3332
----------------------------------- -- Area: West Ronfaure -- NPC: Doladepaiton, R.K. -- Type: Outpost Conquest Guards -- @pos -448 -19 -214 100 ------------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; -------------------------------------- require("scripts/globals/conquest")...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok_Markets/npcs/Pavel.lua
30
1775
----------------------------------- -- Area: Bastok Markets -- NPC: Pavel -- Involved in Quest: Stamp Hunt -- @pos -349.798 -10.002 -181.296 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); requi...
gpl-3.0
alalazo/wesnoth
data/multiplayer/scenarios/2p_Dark_Forecast.lua
2
17082
local helper = wesnoth.require("helper") local _ = wesnoth.textdomain 'wesnoth-multiplayer' local T = helper.set_wml_tag_metatable {} local on_event = wesnoth.require("on_event") local random_spawns = { { {"Heavy Infantryman", "Shock Trooper", "Iron Mauler", "none"}, {"Elvish Fighter", "Elvish Hero", "more", "El...
gpl-2.0
thedraked/darkstar
scripts/zones/Buburimu_Peninsula/Zone.lua
4
4569
----------------------------------- -- -- Zone: Buburimu_Peninsula (118) -- ----------------------------------- package.loaded[ "scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/Buburimu_Peninsula/TextI...
gpl-3.0
pexcn/openwrt
extra-master/packages/xunlei/files/usr/lib/lua/luci/model/cbi/xunlei.lua
11
9499
local fs = require "nixio.fs" local util = require "nixio.util" local running=(luci.sys.call("pidof EmbedThunderManager > /dev/null") == 0) local button="" local xunleiinfo="" local tblXLInfo={} local detailInfo = "<br />启动后会看到类似如下信息:<br /><br />[ 0, 1, 1, 0, “7DHS94”,1, “201_2.1.3.121”, “shdixang”, 1 ]<br /><br />其中有...
gpl-2.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/oil/corba/services/event/ProxyPushConsumer.lua
7
3053
local oil = require "oil" local oo = require "oil.oo" local assert = require "oil.assert" module("oil.corba.services.event.ProxyPushConsumer", oo.class) -- Proxies are in one of three states: disconnected, connected, or destroyed. -- Push/pull operations are only valid in the...
mit
thedraked/darkstar
scripts/zones/The_Shrouded_Maw/mobs/Diabolos.lua
23
9084
----------------------------------- -- Area: The Shrouded Maw -- MOB: Diabolos ----------------------------------- -- TODO: CoP Diabolos -- 1) Make the diremites in the pit all aggro said player that falls into region. Should have a respawn time of 10 seconds. -- 2) Diremites also shouldnt follow you back to the figh...
gpl-3.0
X-Coder/wire
lua/wire/client/wire_expression2_editor.lua
3
58934
local Editor = {} -- ---------------------------------------------------------------------- -- Fonts -- ---------------------------------------------------------------------- local defaultFont if system.IsWindows() then defaultFont = "Courier New" elseif system.IsOSX() then defaultFont = "Monaco" else defaultFont...
gpl-3.0
thedraked/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/HomePoint#1.lua
14
1294
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: HomePoint#3 -- @pos -12 0.5 -288 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); re...
gpl-3.0
thedraked/darkstar
scripts/globals/spells/poisonga_ii.lua
26
1132
----------------------------------------- -- Spell: Poisonga II ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
wrxck/mattata
plugins/setlmgtfy.lua
2
1086
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local setlmgtfy = {} local mattata = require('mattata') local redis = require('libs.redis') function setlmgtfy:init() setlmgtfy.commands = mattata.commands(self.info....
mit
robert00s/koreader
plugins/newsdownloader.koplugin/lib/xml.lua
14
17777
--- -- Overview: -- ========= -- -- This module provides a non-validating XML stream parser in Lua. -- -- Features: -- ========= -- -- * Tokenises well-formed XML (relatively robustly) -- * Flexible handler based event API (see below) -- * Parses all XML Infoset elements - ie. -- - Tags...
agpl-3.0
tianxiawuzhei/cocos-quick-lua
quick/samples/coinflip/src/app/MyApp.lua
8
1055
require("cocos.init") require("config") require("framework.init") require("framework.shortcodes") require("framework.cc.init") local MyApp = class("MyApp", cc.mvc.AppBase) function MyApp:ctor() MyApp.super.ctor(self) self.objects_ = {} end function MyApp:run() cc.FileUtils:getInstance():addSearchPath("r...
mit
arventwei/WioEngine
Tools/jamplus/src/luaplus/Src/Modules/xavante/src/codeweb/codeWeb.lua
1
2563
----------------------------------------------------------------------------- -- Xavante CodeWeb -- -- Author: Javier Guerra -- Copyright (c) 2005 Kepler Project ----------------------------------------------------------------------------- local prep = require "cgilua.prep" local httpd = require "xavante.httpd" local...
mit
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/admin-mini/luasrc/model/cbi/mini/network.lua
82
6273
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
gpl-2.0
NSAKEY/prosody-modules
mod_mam/mod_mam.lua
7
8099
-- XEP-0313: Message Archive Management for Prosody -- Copyright (C) 2011-2014 Kim Alvefur -- -- This file is MIT/X11 licensed. local xmlns_mam = "urn:xmpp:mam:0"; local xmlns_delay = "urn:xmpp:delay"; local xmlns_forward = "urn:xmpp:forward:0"; local st = require "util.stanza"; local rsm = module:require "rsm"...
mit
bizkut/BudakJahat
Rotations/Old/old_BalanceFengshen.lua
1
24893
local rotationName = "Fengshen" --------------- --- Toggles --- --------------- local function createToggles() -- Define custom toggles -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of target...
gpl-3.0
onerain88/SLuaLib
build/luajit-2.1.0/src/jit/dis_arm.lua
78
19363
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
tianxiawuzhei/cocos-quick-lua
quick/framework/cc/ui/UIStretch.lua
19
3491
--[[ Copyright (c) 2011-2014 chukong-inc.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 to use, copy, modify, merge, publish, di...
mit
stanfordhpccenter/soleil-x
testcases/legacy/taylor_with_smaller_particles/taylor_green_vortex_4096_2048_2048.lua
1
4172
-- This is a Lua config file for the Soleil code. return { xnum = 4096, -- number of cells in the x-direction ynum = 2048, -- number of cells in the y-direction znum = 2048, -- number of cells in the z-direction -- if you increase the cell number and the calculation diverges -- right away, decrease the tim...
gpl-2.0
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
37
5651
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
gpl-2.0
bizkut/BudakJahat
Rotations/Priest/Holy/Blank.lua
1
8783
local rotationName = "None" -- Change to name of profile listed in options drop down --------------- --- Toggles --- --------------- local function createToggles() -- Define custom toggles -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps b...
gpl-3.0
philanc/plc
test/test_poly1305.lua
1
2348
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file ------------------------------------------------------------ local bin = require "plc.bin" -- used for hex conversions -- test poly1305.lua local poly = require "plc.poly1305" local test_poly_auth = function () -- "nacl" test vector local naclkey = string...
mit
kracwarlock/dp
xplog.lua
7
3959
------------------------------------------------------------------------ --[[ XpLog ]]-- -- Interface, Composite of CollectionQueries ------------------------------------------------------------------------ local XpLog = torch.class("dp.XpLog") XpLog.isXpLog = true function XpLog:__init(...) local args, name = xlua...
bsd-3-clause
robert00s/koreader
frontend/apps/reader/modules/readerrolling.lua
1
19487
local Device = require("device") local InputContainer = require("ui/widget/container/inputcontainer") local Event = require("ui/event") local ReaderPanning = require("apps/reader/modules/readerpanning") local UIManager = require("ui/uimanager") local logger = require("logger") local _ = require("gettext") local Input =...
agpl-3.0
silverhammermba/awesome
lib/menubar/utils.lua
3
11022
--------------------------------------------------------------------------- --- Utility module for menubar -- -- @author Antonio Terceiro -- @copyright 2009, 2011-2012 Antonio Terceiro, Alexander Yakushev -- @release @AWESOME_VERSION@ -- @module menubar.utils ------------------------------------------------------------...
gpl-2.0
shangwuhencc/shogun
examples/undocumented/lua_modular/evaluation_contingencytableevaluation_modular.lua
21
1809
require 'modshogun' require 'load' ground_truth = load_labels('../data/label_train_twoclass.dat') math.randomseed(17) predicted = {} for i = 1, #ground_truth do table.insert(predicted, math.random()) end parameter_list = {{ground_truth,predicted}} function evaluation_contingencytableevaluation_modular(ground_truth,...
gpl-3.0
cshore/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
68
3021
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } -- uci:foreach("asterisk", "dialplan", -- function(s) -- if not h[s['.name']] then -- c[#c+1]...
apache-2.0
tianxiawuzhei/cocos-quick-lua
quick/welcome/src/app/scenes/WelcomeScene.lua
1
21357
local scheduler = require(cc.PACKAGE_NAME .. ".scheduler") local WelcomeScene = class("WelcomeScene", function() return display.newScene("WelcomeScene") end) function WelcomeScene:ctor() local bg = cc.LayerColor:create(cc.c4b(56, 56, 56, 255)) self:addChild(bg) -- self:createTitleBar(bg) self:cre...
mit
NSAKEY/prosody-modules
mod_captcha_registration/util/dataforms.lua
33
6601
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local setmetatable = setmetatable; local pairs, ipairs = pairs, ipairs; local tostring, type, next = tost...
mit
maciejmiklas/NodeMCUUtils
src/wlan.lua
3
1599
require "log" wlan = { ssid = "SSID not set", max_queue_size = 4 } local online = false local callback_queue = {} local off_reason = nil local function on_online(ev, info) online = true off_reason = nil if log.is_info then log.info("WLAN ON:", info.ip, "/", info.netmask, ",gw:", info.gw) ...
apache-2.0
czlc/skynet
lualib/skynet/sharemap.lua
30
1503
local stm = require "skynet.stm" local sprotoloader = require "sprotoloader" local sproto = require "sproto" local setmetatable = setmetatable local sharemap = {} function sharemap.register(protofile) -- use global slot 0 for type define sprotoloader.register(protofile, 0) end local sprotoobj local function loadsp...
mit
interfaceware/iguana-web-apps
shared/csv/writer.lua
1
1830
local csv = {} local function escape(V) V = V:rxsub('\"', '""') return V end -- This is for a JSON based file function csv.formatHeaders(R) local Headers = '' for K, V in pairs(R) do if type(V) == 'string' or type(V) == 'number' then Headers = Headers .. '"'..K..'",' end end Hea...
mit
silverhammermba/awesome
tests/examples/awful/placement/resize_to_mouse.lua
3
2158
--DOC_HIDE_ALL local awful = {placement = require("awful.placement")} local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) screen._setup_grid(64, 48, {4, 4, 4, 4}, {workarea_sides=0}) local function test_touch_mouse(c) local coords = mouse.coords() return c:geometry(...
gpl-2.0
NSAKEY/prosody-modules
mod_tcpproxy/mod_tcpproxy.lua
31
3923
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
mit
ZeroK-RTS/Zero-K-Infrastructure
Benchmarker/Benchmarks/games/path_test.sdd/Luaui/Widgets/cmd_path_test_creator.lua
12
4474
function widget:GetInfo() return { name = "Path test creator", desc = "allows to easily create path test configs", author = "BD", license = "WTFPL", layer = 0, enabled = true } end local TEST_PATH = "pathTests" local mapModString = Game.mapName .. "-".. Game.modShortName .. " " .. ...
gpl-3.0
Ashkan7150/hydra_api
plugins/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
ShieldTeams/oldsdp
plugins/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
agpl-3.0
pkulchenko/ZeroBraneEduPack
common-samples/demo.lua
1
2494
local common = require("common") -- Imploding and expoloding strings local t = common.stringExplode("The brown fox jumps over the lazy dog !"," ") table.insert(t, 5, "high") common.logStatus("Result: "..common.stringImplode(t, " ")) -- Add pure time delay without opening a turtle window via "wait" common.timeDelay(5)...
mit
hfjgjfg/shatel
plugins/Chat.lua
5
1625
local function run(msg) if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then return "va al...
gpl-2.0
sohrab96/cyrax
plugins/admin.lua
95
10643
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
rickvanbodegraven/nodemcu-firmware
lua_modules/http/http.lua
89
6624
------------------------------------------------------------------------------ -- HTTP server module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> ------------------------------------------------------------------------------ local collectgarbage, tonumber, tostring = col...
mit