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
gilbertocamara/sysdyn
lua/PredatorPrey.lua
2
2471
--- Model that implements predatory-prey dynamics. -- @arg data.predator A number between 10 and 40 with the initial number of predators. -- @arg data.prey A number between 100 and 1000 with the initial number of preys. -- @arg data.preyGrowth A number between 0.01 and 1 with the probability of a prey -- to reproduce. ...
gpl-3.0
notcake/gcad
lua/gcad/rendering/viewrenderinfo.lua
1
7414
local self = {} GCAD.ViewRenderInfo = GCAD.MakeConstructor (self) local EyeAngles = EyeAngles local EyePos = EyePos local Angle = Angle local Vector = Vector local Angle_Set = debug.getregistr...
gpl-3.0
981213/luci-1
applications/luci-app-vnstat/luasrc/model/cbi/vnstat.lua
78
1816
-- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local utl = require "luci.util" local sys = require "luci.sys" local fs = require "nixio.fs" local nw = require "luci.model.network" local dbdir, line for line in io.lines("/etc/vnstat.conf") do dbdir ...
apache-2.0
amyvmiwei/skia
tools/lua/bitmap_statistics.lua
207
1862
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 local canvas = nil local num_perspective_bitmaps = 0 local num_affine_bitmaps = 0 local num_scaled_bitmaps = 0 loc...
bsd-3-clause
TeoTwawki/darkstar
scripts/zones/Southern_San_dOria/npcs/Sobane.lua
2
2800
----------------------------------- -- Area: Southern San d'Oria -- NPC: Sobane -- Starts and Finishes Quest: Signed in Blood -- Involved in quest: Sharpening the Sword, Riding on the Clouds -- !pos -190 -3 97 230 -- csid: 52 732 733 734 735 736 737 738 739 740 741 ------------------------------------- local...
gpl-3.0
prapin/premake-core
tests/project/test_vpaths.lua
16
3799
-- -- tests/project/test_vpaths.lua -- Automated test suite for the project support functions. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local suite = test.declare("project_vpaths") local project = premake.project -- -- Setup and teardown -- local wks, prj function suite.setup() wks...
bsd-3-clause
X-Coder/SBEP-Weapons
lua/entities/carpethpbomb/init.lua
1
1995
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) --include('entities/base_wire_entity/init.lua') include( 'shared.lua' ) util.PrecacheSound( "explode_9" ) util.PrecacheSound( "explode_8" ) util.PrecacheSound( "explode_5" ) function ENT:Initialize() self.Entity:SetModel( "models/Slyfo/how_explosiveround.md...
apache-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/Touch.lua
10
2963
-------------------------------- -- @module Touch -- @extend Ref -- @parent_module cc -------------------------------- -- Returns the previous touch location in screen coordinates. <br> -- return The previous touch location in screen coordinates. -- @function [parent=#Touch] getPreviousLocationInView -- @param self...
mit
TeoTwawki/darkstar
scripts/globals/weaponskills/raiden_thrust.lua
10
1297
----------------------------------- -- Raiden Thrust -- Polearm weapon skill -- Skill Level: 70 -- Deals lightning elemental damage to enemy. Damage varies with TP. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: Lightning -- Modifiers: STR:40% INT:40% -- 1...
gpl-3.0
wiremod/wire
lua/wire/stools/dynamic_button.lua
8
3255
WireToolSetup.setCategory( "Input, Output" ) WireToolSetup.open( "dynamic_button", "Dynamic Button", "gmod_wire_dynamic_button", nil, "Dynamic Buttons" ) if CLIENT then language.Add( "tool.wire_dynamic_button.name", "Dynamic Button Tool (Wire)" ) language.Add( "tool.wire_dynamic_button.desc", "Spawns a dynamic butto...
apache-2.0
TeoTwawki/darkstar
scripts/globals/abilities/pets/wind_blade.lua
11
1410
--------------------------------------------------- -- Geocrush --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") require("scripts/globals/magic") --------------------------------------------------- funct...
gpl-3.0
LuaDist2/lua-log
test/test_basic.lua
3
9795
local HAS_RUNNER = not not lunit local lunit = require "lunit" local TEST_CASE = assert(lunit.TEST_CASE) local skip = lunit.skip or function() end local path = require "path" local utils = require "utils" local LUA, ARGS = utils.lua_args(arg) local PATH = path.fullpath(".") local DATE_PAT = "%d...
mit
Elv13/awesome-1
tests/examples/awful/notification/notificationlist/bottombar.lua
4
4638
--DOC_GEN_IMAGE --DOC_NO_USAGE require("_date") --DOC_HIDE require("_default_look") --DOC_HIDE local awful = require("awful") --DOC_HIDE local gears = require("gears") --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE local naughty = require("naughty") ...
gpl-2.0
notcake/gcad
lua/gcad/space/partitioning/octree/octreerootnode.lua
1
1903
local self = {} GCAD.OctreeRootNode = GCAD.MakeConstructor (self, GCAD.OctreeNode) function self:ctor () self:SetBoundsUnpacked (-1, -1, -1, 1, 1, 1) end -- OctreeNode function self:Insert (octreeItemNode, aabb3d) aabb3d = aabb3d or octreeItemNode:GetAABB () local containsNaN = GCAD.A...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/chunk_of_hydra_meat.lua
11
1338
----------------------------------------- -- ID: 5564 -- Item: Chunk of Hydra Meat -- Effect: 5 Minutes, food effect, Galka Only ----------------------------------------- -- HP 10 -- MP -10 -- Strength +6 -- Intelligence -8 -- Demon Killer 10 ----------------------------------------- require("scripts/globals/status") r...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/bluemagic/radiant_breath.lua
12
2197
----------------------------------------- -- Spell: Radiant Breath -- Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence. -- Spell cost: 116 MP -- Monster Type: Wyverns -- Spell Type: Magical (Light) -- Blue Magic Points: 4 -- Stat Bonus: CH...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Altar_Room/npcs/Magicite.lua
3
1125
----------------------------------- -- Area: Altar Room -- NPC: Magicite -- Involved in Mission: Magicite -- !pos -344 25 43 152 ----------------------------------- require("scripts/globals/keyitems"); local ID = require("scripts/zones/Altar_Room/IDs"); ----------------------------------- function onTrade(player,npc,...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/tests/lua-tests/src/EffectsTest/EffectsTest.lua
11
11329
require "EffectsTest/EffectsName" local ActionIdx = -1 local size = cc.Director:getInstance():getWinSize() local kTagTextLayer = 1 local kTagBackground = 1 local kTagLabel = 2 local MAX_LAYER = 22 local testLayer = nil local titleLabel = nil local entry = nil local gridNodeTarget = nil local functi...
mit
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/RotateBy.lua
7
1214
-------------------------------- -- @module RotateBy -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @overload self, float, float, float -- @overload self, float, float -- @overload self, float, vec3_table -- @function [parent=#RotateBy] create -- @param s...
mit
TeoTwawki/darkstar
scripts/globals/items/garpike.lua
11
1046
----------------------------------------- -- ID: 5472 -- Item: Garpike -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------...
gpl-3.0
hardikk/newfies-dialer
lua/libs/tag_replace.lua
3
3024
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2013 Star2Billing S.L. -- --...
mpl-2.0
notcake/gcad
lua/gcad/math/eulerangle.lua
1
9576
local self = {} GCAD.EulerAngle = GCAD.MakeConstructor (self) local math_atan2 = math.atan2 local math_cos = math.cos local math_deg = math.deg local math_rad = math.rad local math_sin ...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Orias.lua
1
1276
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Marquis Orias ----------------------------------- local ID = require("scripts/zones/Dynamis-Xarcabard/IDs") mixins = { require("scripts/mixins/dynamis_beastmen"), require("scripts/mixins/job_special") } ----------------------------------- ...
gpl-3.0
Omar-moon/RealBot
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/PositionFrame.lua
18
1745
-------------------------------- -- @module PositionFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- -- @function [parent=#PositionFrame] getX -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=#PositionF...
mit
TeoTwawki/darkstar
scripts/globals/abilities/pets/aerial_blast.lua
11
1188
--------------------------------------------------- -- Aerial Blast --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/monstertpmoves") --------------------------------------------------- f...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Dynamis-Windurst/bcnms/dynamis_windurst.lua
1
1480
----------------------------------- -- Area: Dynamis Windurst -- Name: Dynamis Windurst require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldTick(battlefield, tick) dsp.battlefield.onBattlefieldTick(battlefield, tick) end -- After registering the BCNM via bcnmRegister(b...
gpl-3.0
sundream/skynet
test/testrediscluster.lua
19
3400
local skynet = require "skynet" local rediscluster = require "skynet.db.redis.cluster" local test_more = ... -- subscribe mode's callback local function onmessage(data,channel,pchannel) print("onmessage",data,channel,pchannel) end skynet.start(function () local db = rediscluster.new({ {host="127.0.0.1",port=7000...
mit
timduru/platform-external-skia
resources/test.lua
68
1921
local r = { left = 10, top = 10, right = 100, bottom = 80 } local x = 0; local paint = Sk.newPaint(); paint:setAntiAlias(true); local image -- = Sk.loadImage('/skia/sailboat.jpg'); function setImageFilename(filename) image = Sk.loadImage(filename) end local color = {a = 1, r = 1, g = 0, b = 0}; function r...
bsd-3-clause
TeoTwawki/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/IDs.lua
3
1802
----------------------------------- -- Area: Fort_Karugo-Narugo_[S] ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.FORT_KARUGO_NARUGO_S] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <i...
gpl-3.0
X-Coder/SBEP-Weapons
lua/entities/tfuelspray/cl_init.lua
1
3425
include('shared.lua') function ENT:Initialize() --self.Matt = Material( "particles/smokey" ) self.Matt2 = Material( "particles/flamelet"..math.random(1,5) ) self.Matt = Material( "effects/splash1" ) self.Matt3 = Material( "effects/splash1" ) --self.Matt2 = Material( "sprites/light_glow02_add" ) self.Emitter = P...
apache-2.0
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_apache/c20ce892d897f4f76d6130d428e5416b.lua
1
1166
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
Elv13/awesome-1
lib/awful/tag.lua
1
53049
--------------------------------------------------------------------------- --- Useful functions for tag manipulation. -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @module tag --------------------------------------------------------------------------- -- Grab environment w...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/items/poison_arrow.lua
12
1065
----------------------------------------- -- ID: 18157 -- Item: Poison Arrow -- Additional Effect: Poison ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(player,ta...
gpl-3.0
MHoroszowski/Automato-ATITD
scripts/onions_stable.lua
4
8001
dofile("Flax_stable.lua"); askText = singleLine([[ onions_stable v1.0 (by Tallow and Cegaiel) -- Plant onions and harvest them. -- Make sure the plant onions window and barrel/aqueduct is pinned and on the RIGHT side of the screen. Select the skills tab. Your Automato window should also be on the RIGHT side ...
mit
TeoTwawki/darkstar
scripts/zones/Northern_San_dOria/npcs/Pagisalis.lua
11
2642
----------------------------------- -- Area: Northern San d'Oria -- NPC: Pagisalis -- Involved In Quest: Enveloped in Darkness -- !zone 231 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/shop"); r...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Lebros_Cavern/mobs/Brittle_Rock.lua
2
1407
----------------------------------- -- Area: Lebros Cavern (Excavation Duty) -- MOB: Brittle Rock ----------------------------------- local ID = require("scripts/zones/Lebros_Cavern/IDs") require("scripts/globals/status") ----------------------------------- function onMobSpawn(mob) mob:addMod(dsp.mod.DMG,-98) ...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
11
3692
--[[ 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
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/tests/lua-tests/src/LightTest/LightTest.lua
11
8467
local LightTest = class("LightTest",function() return cc.Layer:create() end) function LightTest:ctor() local function onNodeEvent(event) if event == "enter" then self:init() elseif event == "exit" then self:unscheduleUpdate() end end self:registerScriptHandler(onNodeEv...
mit
Elv13/awesome-1
tests/examples/text/gears/object/properties.lua
6
1286
--DOC_GEN_OUTPUT --DOC_HIDE local gears = require("gears") --DOC_HIDE -- Create a class for this object. It will be used as a backup source for -- methods and accessors. It is also possible to set them directly on the -- object. local class = {} function class:get_foo() print("In get foo", self._foo or "bar") ...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua
12
1612
----------------------------------- -- Area: Mhaura -- NPC: Dieh Yamilsiah -- Reports the time remaining before boat arrival. -- !pos 7.057 -2.364 2.489 249 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) -- Each boat comes every 1152 seconds/8 game hou...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Caedarva_Mire/npcs/qm9.lua
2
1255
----------------------------------- -- Area: Caedarva Mire -- NPC: qm9 -- Involved in quest: The Wayward Automation -- !pos 129 1.396 -631 79 ----------------------------------- local ID = require("scripts/zones/Caedarva_Mire/IDs"); require("scripts/globals/quests"); function onTrade(player,npc,trade) end; function...
gpl-3.0
oeuftete/wx-xword
scripts/_filler/init.lua
1
13519
-- OneAcross -- Attemps to fill in the grid using oneacross require 'luacurl' local dlg -- Words and URLS local function make_pattern(word) local pattern = '' for _, square in ipairs(word) do if not square:IsBlank() then pattern = pattern .. square.Text else ...
gpl-3.0
X-Coder/SBEP-Weapons
lua/entities/epod2/init.lua
1
3073
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) function ENT:Initialize() self.Entity:SetModel( "models/SmallBridge/Station Parts/SBbayDPs.mdl" ) self.Entity:SetName("AmmoCrate") self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:...
apache-2.0
T4Larson/OpenTomb
scripts/trigger/flipeffects.lua
3
7190
-- OPENTOMB FLIPEFFECT TRIGGER FUNCTION SCRIPT -- by Lwmte, July 2015 -------------------------------------------------------------------------------- -- In this file you can put extra flipeffect functions which act in the same way -- as Flipeffect Editor in TREP - you write the code for each flipeffect -- yourself. C...
lgpl-3.0
ReWrite94/iLife
server/Manager/World/cPrestigeManager.lua
2
2435
-- ####################################### -- ## Project: MTA iLife ## -- ## Name: PrestigeManager.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local c...
mit
TeoTwawki/darkstar
scripts/zones/Windurst_Waters/npcs/Kipo-Opo.lua
12
1380
----------------------------------- -- Area: Windurst Waters -- NPC: Kipo-Opo -- Type: Cooking Adv. Image Support -- !pos -119.750 -5.239 64.500 238 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Windurst_Waters/IDs"); -----...
gpl-3.0
celophi/melia
system/scripts/npc/dungeon/p_catacomb_1.lua
1
1773
----- Statue of Goddess Vakarine ----- ----- npcselectdialog.ies | ClassName: STOUP_CAMP ----- ----- Enter | Dialog ----- ----- QuestIDs: JOB_KRIVI4_3 ----- addnpc(40120, "QUEST_20150317_000002", "p_catacomb_1", 64, 260, 9, -15, "npc_QUEST_20150317_000002") function npc_QUEST_20150317_000002() msg("GM_QUEST_MODIFY_PC_...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/break.lua
12
1181
----------------------------------------- -- Spell: Break -- Petrifies an enemy, preventing it from acting. ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") ----------------------------------------- function onMagicCastingCheck(...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/abilities/blitzers_roll.lua
12
2825
----------------------------------- -- Ability: Blitzer's Roll -- Reduces melee attack delay for party members within area of effect. -- Optimal Job: None -- Lucky Number: 4 -- Unlucky Number: 9 -- Level: 83 -- Phantom Roll +1 Value: 1 -- -- Die Roll | Delay Reduction % -- -------- ------- -- 1 |+2 -- 2...
gpl-3.0
celophi/melia
system/scripts/npc/dungeon/d_zachariel_36.lua
1
5632
----- Charged Royal Mausoleum Cube ----- ----- npcselectdialog.ies | ClassName: ----- ----- Dialog ----- addnpc(47261, "ETC_20150317_009313", "d_zachariel_36", -2495, 326, -3600, 45, "npc_ETC_20150317_009313") function npc_ETC_20150317_009313() msg("ZACHA5F_MQ_02_01") end ----- Charged Royal Mausoleum Cube ----- --...
gpl-3.0
Kurios/mudlet-dev
src/lua/mudlet-lua/lua/geyser/GeyserUtil.lua
1
1558
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- --- Generate a window name unique to this session. function Geyser.nameGen (type) local index = Geyser.i loca...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/items/cupid_chocolate.lua
11
1157
----------------------------------------- -- ID: 5681 -- Item: cupid_chocolate -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Accuracy +10 -- Ranged Accuracy +10 -- Attack 10 -- Ranged Attack 10 -- Store TP +25 ----------------------------------------- require("scripts/globals/status") req...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/The_Shrouded_Maw/bcnms/waking_dreams.lua
1
2098
----------------------------------- -- Area: The_Shrouded_Maw -- Name: waking_dreams ----------------------------------- local ID = require("scripts/zones/The_Shrouded_Maw/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/globals/battlefield") require("scripts/globals/sta...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua
9
4935
-------------------------------- -- @module AtlasNode -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- updates the Atlas (indexed vertex array).<br> -- Shall be overridden in subclasses. -- @function [parent=#AtlasNode] updateAtlasValues -- @param self -- @return AtlasNode#At...
mit
TeoTwawki/darkstar
scripts/globals/items/anglers_cassoulet.lua
11
1039
----------------------------------------- -- ID: 5704 -- Item: anglers_cassoulet -- Food Effect: 30, All Races ----------------------------------------- -- VIT -1 -- AGI +5 -- Ranged Accuracy +1 -- Regen +1 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/Scene.lua
3
2651
-------------------------------- -- @module Scene -- @extend Node -- @parent_module cc -------------------------------- -- -- @function [parent=#Scene] setCameraOrderDirty -- @param self -- @return Scene#Scene self (return value: cc.Scene) -------------------------------- -- Render the scene.<br> -- param...
mit
981213/luci-1
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
12
1053
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
oeuftete/wx-xword
lua/lxp/tests/test-lom.lua
18
1389
#!/usr/local/bin/lua local lom = require "lxp.lom" local tests = { [[<abc a1="A1" a2="A2">inside tag `abc'</abc>]], [[<qwerty q1="q1" q2="q2"> <asdf>some text</asdf> </qwerty>]], } function table._tostring (tab, indent, spacing) local s = {} spacing = spacing or "" indent = indent or "\t" table.insert (s, ...
gpl-3.0
czfshine/luagy
system/osinfo.lua
1
1093
--- osinfo.lua -- get Operating System INFOrmation -- @usage: -- in other file --~ require "osinfo" --~if os.islinux then -- some code --~elseif os.iswindows then -- smoe code --~else --other OS like Mac -- some code --~end os.iswindow = os.getenv('WINDIR') or (os.getenv('OS') or ''):match('[Ww]indows') os.isli...
mit
itsTheFae/Mudlet
src/mudlet-lua/lua/geyser/GeyserVBox.lua
1
2187
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -- VBox by Beliar -- -- -- -------------------------------------- Geyser.VBox = Geyser.Container:new({ name = "...
gpl-2.0
Kurios/mudlet-dev
src/mudlet-lua/lua/DebugTools.lua
7
6517
---------------------------------------------------------------------------------- --- Mudlet Debug Tools ---------------------------------------------------------------------------------- --- Function colorizes all matched regex capture groups on the screen. --- This is very handy if you make complex regex and want...
gpl-2.0
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_mysql/7c0e170e5e9fbeb078427baf25cc5142.lua
1
1164
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
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua
11
1380
-------------------------------- -- @module ParticleMeteor -- @extend ParticleSystemQuad -- @parent_module cc -------------------------------- -- -- @function [parent=#ParticleMeteor] init -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent...
mit
crafter2d/crafter2d
projects/proj-xml.lua
1
1202
-- Crafter 2D PreMake 5 configuration file -- Copyright 2010-2019, Jeroen Broekhuizen -- create the project project "Xml" kind "SharedLib" location "../build/xml" setDefaultProjectSettings() -- set project files files { "../src/xml/**.cpp", "../src/xml/**.h", "../src/xml/**.inl" } includedirs { "../src" } ...
lgpl-2.1
Elv13/awesome-1
tests/test-awful-client.lua
1
10827
local awful = require("awful") local test_client = require("_client") local has_spawned = false local steps = { function(count) if count <= 1 and not has_spawned and #client.get() < 2 then awful.spawn("xterm") awful.spawn("xterm") has_spawned = true elseif #clien...
gpl-2.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua
9
1478
-------------------------------- -- @module EaseQuarticActionInOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseQuarticActionInOut action. If creation fa...
mit
mahdib9/mah1
libs/mimetype.lua
40
2923
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
kooiot/GoIoT
shared/io/udp/init.lua
1
1770
--- UDP wrapper module -- Wrap the luasocket udp with copas for multiple-threading -- local socket = require 'socket' local copas = require 'copas' --- metatable class -- @type class local class = {} --- Open connection -- @tparam string host local binded ip (nil for "*") -- @tparam number port local binded port (nil...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/items/fried_popoto.lua
11
1257
----------------------------------------- -- ID: 6272 -- Item: fried_popoto -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +30 -- VIT +2 -- Fire resistance +20 -- DEF +20% (cap 145) -- Subtle Blow +8 ----------------------------------------- require("scripts/globals/status") require("s...
gpl-3.0
rgburke/wed
wedruntime/lua/lexers/asp.lua
5
1385
-- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE. -- ASP 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 = 'asp'} -- Embedded in HTML. local html = l.load('html') -- Embedded VB. local vb = l.load('vb...
gpl-2.0
rgburke/wed
wedruntime/lua/lexers/fish.lua
5
2177
-- Copyright 2015-2016 Jason Schindler. See LICENSE. -- Fish (http://fishshell.com/) script 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 = 'fish'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- shebang loc...
gpl-2.0
kooiot/GoIoT
shared/io/devs/prop.lua
2
1071
--- Properties class -- local pub = require 'shared.io.devs.pub' --- Properties Class -- @type class local class = {} --- Set the property value -- @param value Property value -- @tparam number timestamp Timestamp in ms -- @tparam number quality Quality of this value function class:set(value, timestamp, quality) i...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/items/carbuncles_pole.lua
12
1361
----------------------------------------- -- ID: 18581 -- Item: Carbuncle's Pole -- Item Effect: Restores 160-220 HP ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") function onAdditionalEffect(player,target,damage) local ch...
gpl-3.0
ADK-Rust-Oxide-Plugins/Oxide-Plugins
plugins/C4LocationLogr.lua
1
1596
PLUGIN.Title = "C4 Location Logging - LogR Extension" PLUGIN.Description = "A extension for LogR to Log C4 Locations" PLUGIN.Version = "1.0" PLUGIN.Author = "Big Wig" function PLUGIN:Init() logr_plugin = plugins.Find( "logr" ) if ( not logr_plugin ) then print( "RCON Command Logging couldn't be enabled. Plugin: L...
unlicense
TeoTwawki/darkstar
scripts/globals/mobskills/blade_metsu.lua
11
1094
--------------------------------------------- -- Blade Metsu -- -- Description: Additional effect: Paralysis Kikoku/Yoshimitsu: Temporarily enhances Subtle Blow dsp.effect. -- Type: Physical -- Range: Melee --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/s...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/dish_of_spaghetti_vongole_rosso.lua
11
1379
----------------------------------------- -- ID: 5189 -- Item: dish_of_spaghetti_vongole_rosso -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 20 -- Health Cap 90 -- Vitality 2 -- Mind -1 -- Defense % 25 -- Defense Cap 30 -- Store TP 6 ----------------------------------------- req...
gpl-3.0
Death15/SuperSwatch
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/mobskills/shield_strike.lua
11
1062
--------------------------------------------- -- Shield Strike -- -- Description: Attempts to Shield Bash players. Additional effect: Stun -- Type: Physical -- 1 shadow? -- Range: Melee front arc --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") re...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/core_meltdown.lua
11
1243
--------------------------------------------------- -- Core Meltdown (Ghrah) -- Reactor core fails and self-destructs, damaging any nearby targets. -- Note: Very rare, estimated 5% chance --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("...
gpl-3.0
Kurios/mudlet-dev
src/old_mudlet-lua/lua/geyser/GeyserTests.lua
22
5965
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- -- TESTS FOR GEYSER -- --- Test labels. Creates 101 Labels of varying hue and transparency. function Geyser.testLabels() ...
gpl-2.0
Blu3wolf/Treefarm-Lite
control.lua
1
34142
--require "defines" require "interfaces" local constIsInDebug = true local constFertilizerName = "tf-fertilizer" local constRobotFarmOverlayName = "tf-fieldmk2Overlay" local constRobotFarmName = "tf-fieldmk2" local constFarmName = "tf-field" local constMaxFarmRadius = 9 local constFarmTickRate = 60 -- maps the names ...
gpl-3.0
Nidhoggrr/bulcs
lights/genswitches.lua
1
1422
local switches = { { adress="00" , name="FNORDLICHT", state="0", oncommand="10", offcommand="00", module="rfmsend"} , { adress="02" , name="MONITOR", state="0", oncommand="10", offcommand="00", module="rfmsend"} , { adress="03" , name="CEILING", state="0", oncommand="12", offcommand="12", module="rfmsend"} ...
apache-2.0
X-Coder/SBEP-Weapons
lua/weapons/gmod_tool/stools/sbep_holopanel.lua
1
5310
TOOL.Name = "#HoloPanel" TOOL.Category = "SBEP" TOOL.Command = nil TOOL.ConfigName = "" TOOL.ClientConVar[ "model" ] = "models/Slyfo/util_tracker.mdl" TOOL.ClientConVar[ "R" ] = 200 TOOL.ClientConVar[ "G" ] = 200 TOOL.ClientConVar[ "B" ] = 230 TOOL.ClientConVar[ "bright" ] = 255 TOOL.ClientConVar[ "...
apache-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/TransitionScene.lua
7
1813
-------------------------------- -- @module TransitionScene -- @extend Scene -- @parent_module cc -------------------------------- -- -- @function [parent=#TransitionScene] getInScene -- @param self -- @return Scene#Scene ret (return value: cc.Scene) -------------------------------- -- Called after the tr...
mit
ChrisNolan/InspectorGadgetzan
libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
7
9849
local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local pairs, assert, type = pairs, assert, type -- WoW APIs local PlaySound = PlaySound local CreateFrame, UIParent = CreateFrame, UIParent -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded -- List them here for Mikk's FindGlobals...
mit
asqbtcupid/unreal.lua
Plugins/UnrealLua/LuaSource/util/sbcompletions.lua
1
2427
local m = {} local WorkingDir local function GetWorkingDir() if WorkingDir == nil then local p = io.popen("echo %cd%") if p then WorkingDir = p:read("*l").."\\" p:close() end end return WorkingDir end local function Normalize(path) path = path:gsub("/","\\") if path:find(":") == ...
mit
notcake/gcad
lua/gcad/luajit/jitinfo.lua
1
1955
local self = {} GCAD.JITInfo = GCAD.MakeConstructor (self) function self:ctor () self.Enabled = false self.FunctionTraceIds = GLib.WeakKeyTable () self.TraceCallback = function (eventType, traceId, func, pc, parentTraceIdOrAbortCode, parentTraceExitNumberOrAbortReason) end self.RecordCallback = function (trac...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/polar_blast.lua
11
1481
--------------------------------------------- -- Polar Blast -- -- Description: Deals Ice damage to enemies within a fan-shaped area. Additional effect: Paralyze -- Type: Breath -- Ignores Shadows -- Range: Unknown Cone --------------------------------------------- require("scripts/globals/settings") require("scri...
gpl-3.0
MulTi96/MTA
Aktiensystem/dxclass/client.class.lua
1
3193
Editbox = {} Editbox.__index = Editbox local fontsize = 1.0 local fonttype = "default-bold" function Editbox:New( x, y, w, h ) local data = {}; data.x = x; data.y = y; data.w = w; data.h = h; data.activ = true; data.r = 70; data.g = 70; data.b = 70; data.alpha = 255; data.text = ""; data.textactiv = f...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Windurst_Woods/npcs/Nanaa_Mihgo.lua
2
9322
----------------------------------- -- Area: Windurst Walls -- NPC: Nanaa Mihgo -- Starts and Finishes Quest: Mihgo's Amigo (R), The Tenshodo Showdown (start), Rock Racketeer (start) -- Involved In Quest: Crying Over Onions -- Involved in Mission 2-1 -- !pos 62 -4 240 241 ----------------------------------- require("s...
gpl-3.0
xxMRXxx/M-R-X
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
jozeff3/devill
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
notcake/gcad
lua/gcad/linearalgebra/vector3d.lua
1
7352
local self = {} GCAD.Vector3d = GCAD.MakeConstructor (self) local math = math local isnumber = isnumber local math_abs = math.abs local math_sqrt = math.sqrt local Vector = Vector local Vector___index = debug.getregistry ().Vector.__index local Vector___newindex = debug.getregistry ().Vector.__...
gpl-3.0
facebook/eyescream
cifar/utils/image.lua
1
1993
require 'torch' require 'image' local img = {} function img.normalize(data, mean_, std_) local mean = mean_ or data:mean(1) local std = std_ or data:std(1, true) local eps = 1e-7 for i=1,data:size(1) do data[i]:add(-1, mean) data[i]:cdiv(std + eps) end return mean, std end function img.normalizeG...
bsd-3-clause
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/EaseQuarticActionInOut.lua
7
1243
-------------------------------- -- @module EaseQuarticActionInOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseQuarticActionInOut action. If creation fa...
mit
TeoTwawki/darkstar
scripts/zones/Nashmau/npcs/Dnegan.lua
2
1751
----------------------------------- -- Area: Nashmau -- NPC: Dnegan -- Standard Info NPC -- Involved in quest: Wayward Automation -- !pos 29.89 -6 55.83 53 ----------------------------------- require("scripts/globals/quests"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) local TheWayw...
gpl-3.0
mhei/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
20
3272
local ubus = require "ubus" local bit = require "bit" local function get_wifi_hostapd_interfaces(u) local ubuslist = u:objects() local interfaces = {} for _,net in ipairs(ubuslist) do if net.find(net,"hostapd.") then table.insert(interfaces, net) end end return interfaces end local function ...
gpl-2.0
Rukinom/LG38
src/satellites.lua
1
4028
satellites = {} lg = love.graphics require "fixcolor" function satellites:load(args) satellitesheet = lg.newImage("assets/satellitesheet.png") -- load satellite sprite sheet into memory shockblast = lg.newImage("assets/shockblast.png") baseValues:loadSatellites(args) shockPulse = love.graphics.newParticleSys...
apache-2.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/script/framework/extends/MenuEx.lua
57
1228
--[[ 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, dis...
mit