repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
TeoTwawki/darkstar
scripts/globals/items/pork_cutlet.lua
11
1447
----------------------------------------- -- ID: 6394 -- Item: pork_cutlet -- Food Effect: 180Min, All Races ----------------------------------------- -- HP +40 -- STR +7 -- INT -7 -- Fire resistance +20 -- Attack +20% (cap 120) -- Ranged Attack +20% (cap 120) ----------------------------------------- require("scripts/...
gpl-3.0
massimobernava/torch7
torchcwrap.lua
54
15111
local wrap = require 'cwrap' local types = wrap.types types.Tensor = { helpname = function(arg) if arg.dim then return string.format("Tensor~%dD", arg.dim) else return "Tensor" end end, declare = function(arg...
bsd-3-clause
riidt/neox
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotarySpring.lua
7
1400
-------------------------------- -- @module PhysicsJointRotarySpring -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- @function [parent=#PhysicsJointRotarySpring] getDamping -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @f...
mit
koltegirish/esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_modules/ds3231/ds3231-web.lua
84
1338
require('ds3231') port = 80 -- ESP-01 GPIO Mapping gpio0, gpio2 = 3, 4 days = { [1] = "Sunday", [2] = "Monday", [3] = "Tuesday", [4] = "Wednesday", [5] = "Thursday", [6] = "Friday", [7] = "Saturday" } months = { [1] = "January", [2] = "Febuary", [3] = "March", [4] = "Apri...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/dish_of_spaghetti_ortolana.lua
11
1257
----------------------------------------- -- ID: 5658 -- Item: Dish of Spafhetti Ortolana -- Food Effect: 30 Mins, All Races ----------------------------------------- -- Agility 2 -- Vitality 2 -- HP +30% Cap 70 -- StoreTP +6 -- Resist Blind +10 ----------------------------------------- require("scripts/globals/status"...
gpl-3.0
celophi/melia
system/scripts/npc/field/f_pilgrimroad_47.lua
1
10789
----- Torn Letter ----- ----- npcselectdialog.ies | ClassName: ----- ----- Dialog ----- addnpc(147312, "QUEST_20150428_001898", "f_pilgrimroad_47", -843, 143, -1287, 45, "npc_QUEST_20150428_001898") function npc_QUEST_20150428_001898() msg("GM_QUEST_MODIFY_PC_SEL") msg("GM_NPC_HIDE_UNHIDE") end ----- Tree Root Cryst...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/bibikibo.lua
11
1047
----------------------------------------- -- ID: 4314 -- Item: Bibikibo -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 1 -- Mind -3 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ---------------------------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/bowl_of_soy_ramen_+1.lua
11
1526
----------------------------------------- -- ID: 6459 -- Item: bowl_of_soy_ramen_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- HP +55 -- STR +6 -- VIT +6 -- AGI +4 -- Attack +11% (cap 175) -- Ranged Attack +11% (cap 175) -- Resist Slow +15 ----------------------------------------- req...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Hampu-Kampu.lua
1
1978
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Hampu-Kampu -- Type: Quest NPC -- !pos -115.597,-1.000,-158.703 94 ----------------------------------- local ID = require("scripts/zones/Windurst_Waters_[S]/IDs") require("scripts/globals/quests") require("scripts/globals/keyitems") require("scr...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua
11
1044
-------------------------------- -- @module TransitionSlideInB -- @extend TransitionSlideInL -- @parent_module cc -------------------------------- -- Creates a transition with duration and incoming scene.<br> -- param t Duration time, in seconds.<br> -- param scene A given scene.<br> -- return A autoreleased Transit...
mit
celophi/melia
system/scripts/npc/dungeon/d_firetower_43.lua
1
5395
----- Grita ----- ----- npcselectdialog.ies | ClassName: FTOWER43_GRITA_01 ----- ----- Dialog ----- ----- QuestIDs: FTOWER43_MQ_01 ----- addnpc(147449, "QUEST_LV_0100_20150317_000688", "d_firetower_43", -2555, 525, -190, -15, "npc_QUEST_LV_0100_20150317_000688") function npc_QUEST_LV_0100_20150317_000688() msg("FTOWER...
gpl-3.0
T4Larson/OpenTomb
scripts/gui/fonts.lua
1
3812
-- OPENTOMB FONT GENERATION SCRIPT -- by Lwmte, Jan 2015 -------------------------------------------------------------------------------- -- In this script, we define all in-game fonts and styles. You can define as -- much styles as you want (out of pre-defined bounds), but you won't be able -- to generate more ...
lgpl-3.0
TeoTwawki/darkstar
scripts/globals/items/holy_maul_+1.lua
12
1079
----------------------------------------- -- ID: 17114 -- Item: Holy Maul +1 -- Additional Effect: Light Damage ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(pla...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/West_Ronfaure/npcs/Palcomondau.lua
3
12887
----------------------------------- -- Area: West Ronfaure -- NPC: Palcomondau -- Type: Patrol -- !pos -349.796 -45.345 344.733 100 ----------------------------------- local ID = require("scripts/zones/West_Ronfaure/IDs") require("scripts/globals/pathfind"); ----------------------------------- local path = { -373...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Bastok_Markets/npcs/Zaira.lua
12
1150
----------------------------------- -- Area: Batok Markets -- NPC: Zaira -- Standard Merchant NPC -- !pos -217.316 -2.824 49.235 235 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs") require("scripts/globals/shop") function onTrigger(player,npc) local stock = { ...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Ekhu_Pesshyadha.lua
2
1262
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ekhu Pesshyadha -- Type: Standard NPC -- !pos -13.043 0.999 103.423 50 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/quests") require("scripts/globals/keyitems") local ID = require("scripts/zone...
gpl-3.0
oeuftete/wx-xword
scripts/download/stats.lua
2
4241
--- Puzzle statistics. -- Implemented as a singleton class that derives from `task.QueueTask`. local task = require 'task' local QueueTask = require 'task.queue_task' local M = { --- Last download attempt was an error ERROR = 0, --- Puzzle does not exist. MISSING = 1, --- Puzzle exists,...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/abilities/choral_roll.lua
12
2951
----------------------------------- -- Ability: Choral Roll -- Decreases spell interruption rate for party members within area of effect -- Optimal Job: Bard -- Lucky Number: 2 -- Unlucky Number: 6 -- Level: 26 -- Phantom Roll +1 Value: 4 -- -- Die Roll |No BRD |With BRD -- -------- -------- ------- -- 1...
gpl-3.0
Elv13/awesome-1
lib/wibox/widget/calendar.lua
1
12943
--------------------------------------------------------------------------- -- A calendar widget -- -- This module defines two widgets: a month calendar and a year calendar -- -- The two widgets have a `date` property, in the form of -- a table {day=[number|nil], month=[number|nil], year=[number]}. -- -- The `year` wid...
gpl-2.0
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/windows/logging-receiver_iis/833b5d64212d9b89dccee6595e63f2f5.lua
1
1163
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua
7
8618
-------------------------------- -- @module SpriteBatchNode -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- Append the child. <br> -- param sprite A Sprite. -- @function [parent=#SpriteBatchNode] appendChild -- @param self -- @param #cc.Sprite sprite -- @return SpriteBatchNo...
mit
Elv13/awesome-1
docs/05-awesomerc.md.lua
2
9220
local filename, rcfile, new_rcfile, rc_script = ... local f = assert(io.open(filename, "w")) f:write[[# Default configuration file documentation This document explains the default `rc.lua` file provided by Awesome. ]] -- Document sections of the file to guide new users to the right doc pages local sections = {} ...
gpl-2.0
kooiot/GoIoT
shared/app/mpft.lua
2
1478
--- Message process fucntion table -- @local -- local cjson = require 'cjson.safe' local mpft = {} ---- local function call_handler(name, app, vars) if app.handlers[name] then return app.handlers[name](app, vars) end return nil, name.." not implemented" end mpft['version'] = function(app, vars) local reply = {...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Windurst_Waters/npcs/Hakeem.lua
12
1287
----------------------------------- -- Area: Windurst Waters -- NPC: Hakeem -- Type: Cooking Image Support -- !pos -123.120 -2.999 65.472 238 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Windurst_Waters/IDs"); ------------...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua
11
2660
-------------------------------- -- @module MenuItemFont -- @extend MenuItemLabel -- @parent_module cc -------------------------------- -- Returns the name of the Font.<br> -- js getFontNameObj<br> -- js NA -- @function [parent=#MenuItemFont] getFontNameObj -- @param self -- @return string#string ret (return value:...
mit
kooiot/GoIoT
apps/proto_designer/web/controller/tpl/upload.lua
4
1494
local function upload_tpl(appname, name, alias) local cjson = require 'cjson.safe' local tpl = require 'shared.store.template' local platform = require 'shared.platform' local path = platform.path.apps..'/'..appname..'/conf.json' local f, err = io.open(path) if not f then return nil, err end local c = f:rea...
gpl-2.0
zxteloiv/docomo-qa
lua/answer/token_template_container.lua
1
2250
local M_ = {} local ts = require("./lua/answer/template_schema") local qs = require("./lua/answer/query_schema") local json = require("rapidjson") local tis_client = require("./lua/utils/tis_client") local Container = require("./lua/answer/simple_template_container").Container local function call_pos_tagger (questi...
apache-2.0
Elv13/awesome-1
lib/dynamite/init.lua
1
6623
--------------------------------------------------------------------------- --- A drop-in replacment for the stateless layout suits -- -- This system also add the possibility to write handlers enabling the use -- of tabs, spliters or custom client decorator. -- -- Any wibox.layout compliant layout can be implemented. M...
gpl-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua
18
3398
-------------------------------- -- @module cc -------------------------------------------------------- -- the cc Control -- @field [parent=#cc] Control#Control Control preloaded module -------------------------------------------------------- -- the cc ControlButton -- @field [parent=#cc] ControlButton#ControlButton...
mit
mohammadclashclash/seed7
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
ioiasff/ssse
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
aqasaeed/saeed
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
IoveSunny/DreamBox
feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/xwrt/page.lua
8
9949
-------------------------------------------------------------------------------- -- htmlpageClass.lua -- -- Author(s) [in order of work date]: -- Fabián Omar Franzotti -- -------------------------------------------------------------------------------- -- -- usage : page = xwrtpageClass.new(title_of_page) -- page ...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Nyzul_Isle/mobs/Naja_Salaheem.lua
3
2869
----------------------------------- -- Area: Nyzul Isle (Path of Darkness) -- MOB: Naja Salaheem ----------------------------------- local ID = require("scripts/zones/Nyzul_Isle/IDs") require("scripts/globals/allyassist"); require("scripts/globals/instance"); ----------------------------------- -- Path to Stage 2 Posi...
gpl-3.0
wiremod/wire
lua/entities/gmod_wire_expression2/core/compat.lua
2
3367
-- Functions in this file are retained purely for backwards-compatibility. They should not be used in new code and might be removed at any time. e2function string number:teamName() return team.GetName(this) or "" end e2function number number:teamScore() return team.GetScore(this) end e2function number number:teamP...
apache-2.0
facebook/eyescream
cifar/train/conditional_adversarial.lua
3
10650
require 'torch' require 'optim' require 'pl' require 'paths' local adversarial = {} -- training function function adversarial.train(dataset, N) epoch = epoch or 1 local N = N or dataset:size() local time = sys.clock() local dataBatchSize = opt.batchSize / 2 local inputs = torch.Tensor(opt.batchSize, opt.ge...
bsd-3-clause
TeoTwawki/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua
2
2171
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Water -- Involved in Zilart Mission 7 -- !pos 199 -2 36 168 ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); local ID = require("scripts/...
gpl-3.0
981213/luci-1
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua
76
1122
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require "luci.config" local fs = require "nixio.fs" m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Southern_San_dOria/npcs/Najjar.lua
2
1118
----------------------------------- -- Area: Southern San d'Oria -- NPC: Najjar -- General Info NPC ------------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); function onTrade(player,npc,trade) -- "Flye...
gpl-3.0
oeuftete/wx-xword
scripts/download/config.lua
1
26137
-- Save the current directory for relative require local _R = (string.match(..., '^.+%.') or ... .. '.') local path = require 'pl.path' local tablex = require 'pl.tablex' local stringx = require 'pl.stringx' local serialize = require 'serialize' local os = require 'os' local date = require 'date' -- -------...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Kazham/npcs/Kakapp.lua
2
2692
----------------------------------- -- Area: Kazham -- NPC: Kakapp -- Standard Info NPC ----------------------------------- function onTrade(player,npc,trade) -- item IDs -- 483 Broken Mithran Fishing Rod -- 22 Workbench -- 1008 Ten of Coins -- 1157 Sands of Silence -- 1...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/libs/web/luasrc/config.lua
13
1115
--[[ LuCI - Configuration Description: Some LuCI configuration values read from uci file "luci" FileId: $Id: config.lua 3856 2008-12-05 15:36:44Z Cyrus $ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in com...
gpl-2.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/TextureData.lua
19
1044
-------------------------------- -- @module TextureData -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#TextureData] getContourData -- @param self -- @param #int index -- @return ContourData#ContourData ret (return value: ccs.ContourData) ---------------------...
mit
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/ArmatureData.lua
19
1045
-------------------------------- -- @module ArmatureData -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#ArmatureData] addBoneData -- @param self -- @param #ccs.BoneData boneData -- @return ArmatureData#ArmatureData self (return value: ccs.ArmatureData) ------...
mit
gilbertocamara/sysdyn
lua/SIR.lua
2
2357
--- A Susceptible-Infectious-Recovered (SIR) Model to study epidemics. -- @arg data.susceptible The initial susceptible population. The default value is 9998. -- @arg data.infected The initial indected population. The default value is 2. -- @arg data.recovered The initial recovered population. The default value is 0. ...
gpl-3.0
981213/luci-1
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/user-config.lua
79
4831
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local has_ipv6 = fs.access("/proc/net/ipv6_route") m = Map("ocserv", translate("OpenConnect VPN")) s = m:section(TypedSection, "ocserv", "OpenConnect") s.ano...
apache-2.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/Application.lua
11
1714
-------------------------------- -- @module Application -- @parent_module cc -------------------------------- -- brief Open url in default browser<br> -- param String with url to open.<br> -- return true if the resource located by the URL was successfully opened; otherwise false. -- @function [parent=#Application] op...
mit
ArchiveTeam/viddy-grab
table_show.lua
58
3226
--[[ Author: Julio Manuel Fernandez-Diaz Date: January 12, 2007 (For Lua 5.1) Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount() Formats tables with cycles recursively to any depth. The output is returned as a string. References to other tables are shown as values....
unlicense
TeoTwawki/darkstar
scripts/globals/mobskills/condemnation.lua
11
1073
--------------------------------------------------- -- Condemnation -- Deals damage in a threefold attack to enemies within a fan-shaped area of effect. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") ---------...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
13
2441
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson 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 ]]-- module("luci.cont...
gpl-2.0
prapin/premake-core
src/base/globals.lua
14
2408
-- -- globals.lua -- Replacements and extensions to Lua's global functions. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- -- -- Find and execute a Lua source file present on the filesystem, but -- continue without error if the file is not present. This is used to -- handle optional files such as...
bsd-3-clause
ReWrite94/iLife
server/Manager/World/cMapManager.lua
2
10536
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 01.01.2015 -- Time: 14:23 -- Project: MTA iLife -- cMapManager = {}; --[[ local metaRoot = xmlLoadFile(':'..resourceName..'/meta.xml') if metaRoot then for i, v in ipairs( xmlNodeGetChildren( metaRoot ) ) do if xmlNodeGetName( v ) == 'custommap'...
mit
TeoTwawki/darkstar
scripts/globals/mobskills/grim_halo.lua
11
1124
--------------------------------------------------- -- Grim Halo -- Deals damage to a all targets. Additional effect: Knockback -- Only used by Fomors that wield a two-handed weapon (principally WAR, BLM, DRK, SAM, DRG, and SMN fomors). --------------------------------------------- require("scripts/globals/monstertpmov...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Western_Adoulin/Zone.lua
2
1237
----------------------------------- -- -- Zone: Western Adoulin -- !zone 256 -- ----------------------------------- local ID = require("scripts/zones/Western_Adoulin/IDs") require("scripts/globals/quests") ----------------------------------- function onInitialize(zone) end; function onZoneIn(player,prevZone) loca...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/weaponskills/leg_sweep.lua
10
1767
----------------------------------- -- Leg Sweep -- Polearm weapon skill -- Skill Level: 100 -- Stuns enemy. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/dish_of_spaghetti_boscaiola_+1.lua
11
1530
----------------------------------------- -- ID: 5201 -- Item: dish_of_spaghetti_boscaiola_+1 -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 18 -- Health Cap 130 -- Magic 40 -- Strength -5 -- Dexterity -2 -- Vitality 2 -- Mind 4 -- Store TP +6 -- Magic Regen While Healing 1 -----...
gpl-3.0
wiremod/wire
lua/entities/gmod_wire_dhdd.lua
4
3741
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Dupeable Hard Drive" ENT.Author = "Divran" ENT.WireDebugName = "Dupeable HDD" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(...
apache-2.0
TeoTwawki/darkstar
scripts/zones/The_Boyahda_Tree/npcs/Mandragora_Warden.lua
2
1539
----------------------------------- -- Area: The Boyahda Tree -- NPC: Mandragora Warden -- Type: Mission NPC -- !pos 81.981 7.593 139.556 153 ----------------------------------- local ID = require("scripts/zones/The_Boyahda_Tree/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scr...
gpl-3.0
wiremod/wire
lua/entities/gmod_wire_adv_input.lua
1
2958
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Advanced Input" ENT.WireDebugName = "Adv. Input" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs =...
apache-2.0
X-Coder/SBEP-Weapons
lua/autorun/server/sbpressure.lua
1
5638
MasterPressureTable = MasterPressureTable or {} function SBEPPrsCheck() if !SBEPPressure then return end local PAD = list.Get( "SBEP_PartAssemblyData" ) --PrintTable(MasterPressureTable) for i,e in pairs(MasterPressureTable) do --print("Check 1") if e and e:IsValid() then --print("Check 2") local model ...
apache-2.0
ReWrite94/iLife
server/Manager/World/cBusinessManager.lua
2
3865
-- ####################################### -- ## Project: iLife ## -- ## For MTA: San Andreas ## -- ## Name: cBusinessManager.lua ## -- ## Author: Noneatme(Gunvarrel ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### cBusinessManager = inheri...
mit
cecile/Cecile_QuickTalents
src/Cecile_QuickTalents/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua
13
10576
--[[ $Id: AceGUIWidget-DropDown-Items.lua 1202 2019-05-15 23:11:22Z nevcairiel $ ]]-- local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local select, assert = select, assert -- WoW APIs local PlaySound = PlaySound local CreateFrame = CreateFrame local function fixlevels(parent,...) local i = 1 local child = select...
artistic-2.0
cuit-zhaxin/quick-ng
quick/framework/cc/mvc/AppBase.lua
19
1929
local AppBase = class("AppBase") AppBase.APP_ENTER_BACKGROUND_EVENT = "APP_ENTER_BACKGROUND_EVENT" AppBase.APP_ENTER_FOREGROUND_EVENT = "APP_ENTER_FOREGROUND_EVENT" function AppBase:ctor(appName, packageRoot) cc(self):addComponent("components.behavior.EventProtocol"):exportMethods() self.name = appName ...
mit
TeoTwawki/darkstar
scripts/globals/spells/dokumori_ichi.lua
12
1439
----------------------------------------- -- Spell: Dokumori: Ichi ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end fu...
gpl-3.0
dxmgame/dxm-cocos
src/apps/lua-tests/Resources/src/ByteCodeEncryptTest/ByteCodeEncryptTest.lua
4
3906
local targetPlatform = cc.Application:getInstance():getTargetPlatform() local is64BitIOSDevice = cc.Application:getInstance():is64BitIOSDevice() if cc.PLATFORM_OS_LINUX ~= targetPlatform and is64BitIOSDevice ~= true then require("ByteCodeEncryptTest/ByteCodeTest") require("ByteCodeEncryptTest/ByteCodeAndEncryptTes...
mit
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/tests/lua-tests/src/ByteCodeEncryptTest/ByteCodeEncryptTest.lua
4
3906
local targetPlatform = cc.Application:getInstance():getTargetPlatform() local is64BitIOSDevice = cc.Application:getInstance():is64BitIOSDevice() if cc.PLATFORM_OS_LINUX ~= targetPlatform and is64BitIOSDevice ~= true then require("ByteCodeEncryptTest/ByteCodeTest") require("ByteCodeEncryptTest/ByteCodeAndEncryptTes...
mit
TeoTwawki/darkstar
scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua
12
1365
----------------------------------- -- Area: Windurst_Woods -- NPC: Bin Stejihna -- Only sells when Windurst controlls Zulkheim Region -- Confirmed shop stock, August 2013 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/shop") require("scripts/globals...
gpl-3.0
mahdib9/mah1
plugins/plugins.lua
19
6327
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
swordday/lunar
lunar/containers/list.lua
1
2030
local class = require("rtti").class local list = class("list") function list:ctor() local this = self.__pdatas this.m_head = {} this.m_tail = {} this.m_size = 0 this.m_head.m_next = this.m_tail this.m_tail.m_prev = this.m_head end function list:First() local this = self.__pdatas if this.m_size > 0 then ...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/abyss_blast.lua
11
1085
--------------------------------------------- -- Abyss Blast -- -- Description: Blasts a single target with dark energy. Additional effect: Blind -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Blinds target --------------------------------------------- require("scripts/glo...
gpl-3.0
ReWrite94/iLife
client/Manager/Firework/cFireworkManager.lua
2
2232
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 26.12.2014 -- Time: 23:47 -- Project: MTA iLife -- cFireworkManager = {}; --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// function cFireworkManager:new(...) local obj = ...
mit
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_tomcat_custom/3a8837ca83c575882172d55fc31a0e2c.lua
1
1173
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
TeoTwawki/darkstar
scripts/globals/items/plate_of_sole_sushi_+1.lua
11
1437
----------------------------------------- -- ID: 5163 -- Item: plate_of_sole_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 20 -- Strength 5 -- Dexterity 6 -- Accuracy % 16 -- Ranged ACC % 16 -- Sleep Resist 2 ----------------------------------------- require("scripts/glob...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/applications/luci-firewall/luasrc/model/cbi/luci_fw/zone.lua
3
6142
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.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 $Id: zone.lua ...
gpl-2.0
jhegg/wow-tome-of-illusions-check
TomeOfIllusionsCheck/lib/AceAddon-3.0/AceAddon-3.0.lua
66
25788
--- **AceAddon-3.0** provides a template for creating addon objects. -- It'll provide you with a set of callback functions that allow you to simplify the loading -- process of your addon.\\ -- Callbacks provided are:\\ -- * **OnInitialize**, which is called directly after the addon is fully loaded. -- * **OnEnable** wh...
mit
detect00r/zed-spam
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
notcake/gcad
lua/gcad/linearalgebra/matrix4x4.lua
1
31835
local self = {} GCAD.Matrix4x4 = GCAD.MakeConstructor (self) local isnumber = isnumber local Matrix = Matrix local Vector = Vector local Vector___index = debug.getregistry ().Vector.__index local Vector___newindex = debug.g...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua
11
2477
-------------------------------- -- @module TurnOffTiles -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- brief Show the tile at specified position.<br> -- param pos The position index of the tile should be shown. -- @function [parent=#TurnOffTiles] turnOnTile -- @param self -- @...
mit
Lymia/MultiverseModManager
src/patch/ui/hooks/ingame/ingame_chatcommands.lua
3
2437
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.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, co...
mit
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_studio_auto_api.lua
5
9598
-------------------------------- -- @module ccs -------------------------------------------------------- -- the ccs ActionFrame -- @field [parent=#ccs] ActionFrame#ActionFrame ActionFrame preloaded module -------------------------------------------------------- -- the ccs ActionMoveFrame -- @field [parent=#ccs] Acti...
mit
TeoTwawki/darkstar
scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua
3
1742
----------------------------------- -- Area: Sauromugue Champaign [S] -- NPC: Cavernous Maw -- !pos 369 8 -227 98 -- Teleports Players to Sauromugue_Champaign ----------------------------------- require("scripts/globals/teleports"); require("scripts/globals/campaign"); require("scripts/globals/titles"); --------------...
gpl-3.0
kooiot/GoIoT
core/logs/main.lua
2
3405
#!/usr/bin/env lua --[[ -- Save a cached log for web, and publish the log to any one who wants. ]]-- -- TODO: not use the appbase for this core log local m_path = os.getenv('KOOIOT_DIR') or "." local m_package_path = package.path package.path = string.format("%s;%s/?.lua;%s/?/init.lua", m_package_path, m_path, m_pa...
gpl-2.0
narimanpayande/Sin_Gar
dkjson.lua
63
26559
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
sundream/skynet
3rd/lpeg/re.lua
160
6286
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local setmetatable = setmetatable local m = require"lpeg" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' ...
mit
hfjgjfg/sspp
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
mrkale/NodeMCU-Modules
s2eta/s2eta.lua
1
1582
--[[ Seconds to elapsed or estimated time conversion for NODEMCU - Module converts amount of seconds to time string with components: days (d), hours (h), minutes (m), seconds (s) - Zero components are not included into the time string. - If no, zero, or negative input seconds are provided, the module returns empty st...
mit
ArchShaman/Zero-K
LuaUI/Widgets/unit_blobshadow.lua
5
7154
-- $Id: unit_blobshadow.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- author: jK -- -- Copyright (C) 2007,2009. -- Licensed under the terms of the GNU GPL, v2...
gpl-2.0
joshuaolufs/shortcake
sc_files/config.lua
1
1496
-- Config Options -- channel = "stable" -- Options: "stable", "dev" variables = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" hFlipBitOn = false -- changes left and right, h = horizontal vFlipBitOn = false -- changes up and down, v = vertical includeUp = false -- break the block above when moving forward with the 'x' command incl...
gpl-3.0
gmorishere/bsoeted
bot/seedbot.lua
2
8838
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
thisverygoodhhhh/orange
bin/cmds/reload.lua
4
2305
local ngx_handle = require("bin.utils.ngx_handle") local args_util = require("bin.utils.args_util") local logger = require("bin.utils.logger") local _M = {} _M.help = [[ Usage: orange reload [OPTIONS] Reload Orange with configurations(prefix/orange_conf/ngx_conf). Options: -p,--prefix (optional string) override...
mit
brahmi2/prosody-modules
mod_component_client/mod_component_client.lua
31
8204
--[[ mod_component_client.lua This module turns Prosody hosts into components of other XMPP servers. Config: VirtualHost "component.example.com" component_client = { host = "localhost"; port = 5347; secret = "hunter2"; } ]] local socket = require "socket" local logger = require "util.logger"; local sha...
mit
androidarmv6/android_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
phi-psi/luci
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
80
1260
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson 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 $Id$ ]]-- m = Map("mactodevinfo", lu...
apache-2.0
ArchShaman/Zero-K
LuaRules/Configs/MetalSpots/Charlie in the Hills v2.1.lua
17
3179
return { spots = { [1] = {x = 1960, z = 2760, metal = 1.7}, [2] = {x = 3416, z = 152, metal = 1.7}, [3] = {x = 4136, z = 8008, metal = 1.7}, [4] = {x = 4136, z = 3864, metal = 1.7}, [5] = {x = 4824, z = 7992, metal = 1.7}, [6] = {x = 4280, z = 7832, metal = 1.7}, [7] = {x = 6008, z = 2632, metal = 1.7}, ...
gpl-2.0
leehomyc/Photo-Realistic-Super-Resoluton
data/donkey_folder_supres.lua
1
2931
--[[ 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. ]]-- requ...
mit
HigorMenezes/Tank-vs-Rokets
explosion.lua
1
1059
local anim = require("anim8-master/anim8") Explosion = {} Explosions = {} local img = love.graphics.newImage("_img/explosion_sp.png") local g = anim.newGrid(95, 94, img:getWidth(), img:getHeight()) function Explosion:create(x, y) local explosion = {} explosion.animation = anim.newAnimation(g('1-7', 1), ...
unlicense
mixflowtech/logsensor
lib/luajit/dynasm/dasm_x86.lua
10
71180
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
apache-2.0
ArchShaman/Zero-K
LuaUI/Widgets/api_chili_widgetselector.lua
5
10849
function widget:GetInfo() return { name = "Chili Widget Selector", --needs epic menu to dynamically update widget checkbox colors. desc = "v1.013 Chili Widget Selector", author = "CarRepairer", date = "2012-01-11", --2013-06-11 (add crude filter/search capability) license = "G...
gpl-2.0
ashemedai/ProDBG
bin/win32/scripts/tundra/test/t_env.lua
22
2324
module(..., package.seeall) unit_test('scalar interpolation', function (t) local e = require 'tundra.environment' local e1, e2, e3 e1 = e.create(nil, { Foo="Foo", Baz="Strut" }) e2 = e1:clone({ Foo="Bar" }) e3 = e1:clone({ Baz="c++" }) t:check_equal(e1:get("Foo"), "Foo") t:check_equal(e1:get("Baz"), "S...
mit
ArchShaman/Zero-K
scripts/cruisemissile.lua
5
1424
include "constants.lua" local base = piece 'base' local launched = false function script.AimWeapon1(heading, pitch) return true end local function RemoveMissile() GG.MissileSilo.DestroyMissile(unitID, unitDefID) Spring.SetUnitRulesParam(unitID, "do_not_save", 1) Spring.SetUnitNoSelect(unitID, true) Spring.Set...
gpl-2.0