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
dualface/cocos2dx_luatests
scripts/luaScript/ExtensionTest/CocosBuilderTest.lua
1
12238
require "CCBReaderLoad" HelloCocosBuilderLayer = HelloCocosBuilderLayer or {} ccb["HelloCocosBuilderLayer"] = HelloCocosBuilderLayer TestMenusLayer = TestMenusLayer or {} ccb["TestMenusLayer"] = TestMenusLayer TestButtonsLayer = TestButtonsLayer or {} ccb["TestButtonsLayer"] = TestButtonsLayer TestHeaderLayer = T...
mit
ffxiphoenix/darkstar
scripts/globals/weaponskills/upheaval.lua
30
1538
----------------------------------- -- Upheaval -- Great Axe weapon skill -- Skill Level: 357 -- Delivers a four-hit attack. Damage varies with TP. -- In order to obtain Upheaval, the quest Martial Mastery must be completed. -- Aligned with Flame Gorget, Light Gorget & Shadow Gorget. -- Aligned with Flame Belt, ...
gpl-3.0
mahdikord/mahdib0
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
0x0mar/ettercap
src/lua/share/third-party/stdlib/src/mbox.lua
12
1370
--- mbox parser. -- Based on code by Diego Nahab. local function headers (s) local header = {} s = "\n" .. s .. "$$$:\n" local i, j = 1, 1 while true do j = string.find (s, "\n%S-:", i + 1) if not j then break end local _, _, name, val = string.find (string.sub (s, i + 1, j - 1), ...
gpl-2.0
AfuSensi/Mr.Green-MTA-Resources
resources/[race]/race_delay_indicator/delayindicator_server.lua
1
8049
local g_Root = getRootElement() local g_ResRoot = getResourceRootElement(getThisResource()) local debug = false local mapName local topTimeInterims --topTimeInterims[checkpointNum] = time local topTimeRankPlayer = {10} --topTimeRankPlayer[1] = rank, topTimeRankPlayer[2] = playername local lastPlayer = {} --lastP...
mit
nicodinh/cuberite
MCServer/Plugins/APIDump/Hooks/OnUpdatedSign.lua
44
1592
return { HOOK_UPDATED_SIGN = { CalledWhen = "After the sign text is updated. Notification only.", DefaultFnName = "OnUpdatedSign", -- also used as pagename Desc = [[ This hook is called after a sign has had its text updated. The text is already updated at this point.</p> <p>The update may have been ca...
apache-2.0
jamores/eth-ws-someip
someip.lua
1
7430
-- File : someip.lua -- Who : Jose Amores -- What : SOMEIP dissector -- bitwise ops helpers local band,bor = bit.band,bit.bor local lshift, rshift = bit.lshift,bit.rshift local tohex = bit.tohex -- SOME/IP protocol local SOMEIP_HDR_LENGTH = 16 p_someip = Proto("someip","Scalable service-Oriented MiddlewarE over IP"...
mit
kitala1/darkstar
scripts/globals/spells/earth_carol.lua
13
1504
----------------------------------------- -- Spell: Earth Carol -- Increases earth resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -----------...
gpl-3.0
dangerrr/dangerrr
plugins/help.lua
337
5009
do 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
kitala1/darkstar
scripts/globals/abilities/pets/glittering_ruby.lua
7
1108
--------------------------------------------------- -- Glittering Ruby --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbilit...
gpl-3.0
king98tm/mohammadking98
plugins/fun.lua
1
14498
local function run_bash(str) local cmd = io.popen(str) local result = cmd:read('*all') return result end -------------------------------- local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" -------------------------------- local function get_latlong(area) local api = base_ap...
gpl-3.0
minetest-australopithecus/minetest-australopithecus-utils
mods/utils/entityutil.lua
2
2998
--[[ Copyright (c) 2015, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
bsd-2-clause
kitala1/darkstar
scripts/zones/Bearclaw_Pinnacle/bcnms/flames_for_the_dead.lua
13
1781
----------------------------------- -- Area: Bearclaw_Pinnacle -- Name: flames_for_the_dead -- bcnmID : 640 -- enemy: Snoll_Tzar 16801793 16801794 16801795 group 176 ----------------------------------- package.loaded["scripts/zones/Bearclaw_Pinnacle/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
fqrouter/luci
modules/niu/luasrc/model/cbi/niu/system/general1.lua
49
1145
--[[ 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$ ]]-- loc...
apache-2.0
amirkingred/nod2
plugins/banhammer.lua
60
11556
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
njligames/NJLIGameEngine
projects/YappyBirds/_archive/_OLD/scripts/worlds/worldYappyGameState.lua
2
24177
local drawTimeAttackTime = function(self, milliseconds) local ms = (milliseconds % 1000) local seconds = (milliseconds / 1000) % 60 local minutes = (milliseconds / 1000) / 60 local msString = string.format("%.4d", tostring(ms)) local secondsString = string.format("%.2d", tostring(seconds)) local minutesString =...
mit
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/commands/saber2hSweep1.lua
2
2557
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
agpl-3.0
DailyShana/ygopro-scripts
c31383545.lua
3
1419
--XX-セイバー ダークソウル function c31383545.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_TO_GRAVE) e1:SetOperation(c31383545.regop) c:RegisterEffect(e1) end function c31383545.regop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:...
gpl-2.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/booster/bst_incom_enhanced_mynock.lua
3
2320
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
njligames/NJLIGameEngine
projects/ELIA/_archive/scripts_9.16.2016/levels/country/_arcade_country_04.lua
2
94984
return { version = "1.1", luaversion = "5.1", tiledversion = "0.16.0", orientation = "orthogonal", renderorder = "right-down", width = 64, height = 64, tilewidth = 32, tileheight = 32, nextobjectid = 77, backgroundcolor = { 158, 206, 239 }, properties = {}, tilesets = { { name = "Tiles", firstgid = 1, ...
mit
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/poi/lok_imperial_medium2.lua
2
2242
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
Whitechaser/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Count_Zaebos.lua
7
1332
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Count Zaebos ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) end; ...
gpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_s5.lua
1
6208
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/lair/sarlacc/serverobjects.lua
3
2163
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
Zefiros-Software/premake-core
tests/tools/test_snc.lua
16
3491
-- -- tests/test_snc.lua -- Automated test suite for the SNC toolset interface. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("tools_snc") local snc = p.tools.snc -- -- Setup/teardown -- local wks, prj, cfg function suite.setup() wks, prj =...
bsd-3-clause
DailyShana/ygopro-scripts
c84932271.lua
3
1289
--ワーム・ジェートリクプス function c84932271.initial_effect(c) --flip effect local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_FLIP) e1:SetOperation(c84932271.flipop) c:RegisterEffect(e1) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(8...
gpl-2.0
KingRaptor/Zero-K
units/corsumo.lua
1
13961
unitDef = { unitname = [[corsumo]], name = [[Sumo]], description = [[Heavy Riot Jumper - On to Repulse, Off to Attract]], acceleration = 0.1, activateWhenBuilt = true, brakeRate = 0.3, buildCostMetal = 1700, builder = false, buildPi...
gpl-2.0
sjznxd/lc-20130116
applications/luci-upnp/luasrc/controller/upnp.lua
6
1943
--[[ 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...
apache-2.0
njligames/NJLIGameEngine
projects/ELIA/gameplay_scripts/yappybirds_game/scripts/NJLI/STATEMACHINE/UI/BUTTON/STATES/Focused.lua
4
5884
local BaseClass = require "NJLI.STATEMACHINE.NodeEntityState" local Focused = {} Focused.__index = Focused --############################################################################# --DO NOT EDIT ABOVE --############################################################################# --############################...
mit
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/poi/naboo_impswamp_large2.lua
2
2246
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/commands/diagnose.lua
4
2117
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/reactor/rct_seinar_level3.lua
3
2288
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
Whitechaser/darkstar
scripts/zones/LaLoff_Amphitheater/npcs/qm1_5.lua
5
2444
----------------------------------- -- Area: LaLoff_Amphitheater -- NPC: Shimmering Circle (BCNM Entrances) ------------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ------------------------------------- require("scripts/glob...
gpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/faction/rebel/rebel_major_general.lua
2
1831
rebel_major_general = Creature:new { objectName = "@mob/creature_names:rebel_major_general", randomNameType = NAME_GENERIC_TAG, socialGroup = "rebel", faction = "rebel", level = 26, chanceHit = 0.36, damageMin = 250, damageMax = 260, baseXp = 2730, baseHAM = 7700, baseHAMmax = 9400, armor = 0, resists = {0...
agpl-3.0
DailyShana/ygopro-scripts
c29590752.lua
3
2439
--剣闘獣オクタビウス function c29590752.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(29590752,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(...
gpl-2.0
sjznxd/lc-20130116
libs/nixio/lua/nixio/util.lua
179
5824
--[[ nixio - Linux I/O library for lua Copyright 2009 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$ ]]-- local...
apache-2.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/painting/bestine_quest_painting.lua
3
2248
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
DailyShana/ygopro-scripts
c96907086.lua
3
1093
--地縛旋風 function c96907086.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c96907086.condition) e1:SetTarget(c96907086.target) e1:SetOperation(c96907086.activate) c:RegisterEffect(e1) end ...
gpl-2.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/structure/general/streetlamp_medium_red_style_01_on.lua
3
2320
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
Whitechaser/darkstar
scripts/zones/PsoXja/npcs/_i98.lua
7
1178
----------------------------------- -- Area: Pso'Xja -- NPC: Stone Gate ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/TextIDs"); require("scripts/zones/PsoXja/MobIDs"); require("scripts/globals/missions"); ---...
gpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/hutt_heavy_weapon2_s04.lua
3
2304
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/structure/general/cave_stalagmite_tato_s02_med.lua
3
2300
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/poi/naboo_gunrunners_small1.lua
2
2254
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/loot/misc/loot_krayt_leg1.lua
3
2224
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_ith_belt_formal_16.lua
3
2296
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/screenplays/poi/corellia_rebel_hideout.lua
1
17290
local ObjectManager = require("managers.object.object_manager") RebelHideoutScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "RebelHideoutScreenPlay", turrets = { { template = "object/installation/turret/turret_tower_large.iff", x = -6559.3, z = 404, y = 5965.1 }, { template = "object/installa...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/commands/stopBleeding.lua
3
2129
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
agpl-3.0
Whitechaser/darkstar
scripts/zones/Jugner_Forest/npcs/Mionie.lua
5
1509
----------------------------------- -- Area: Jugner Forest -- NPC: Mionie -- Type: Outpost Vendor -- !pos 54 0 -11 104 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"...
gpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/commands/flushingShot1.lua
2
2750
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/lok/objects.lua
3
7535
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_belt_formal_13.lua
2
3418
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
lasko2112/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/player/city/garden_dantooine_med_01.lua
3
2812
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
agpl-3.0
graydon/monotone
tests/test_the_help_command/__driver__.lua
1
1948
mtn_setup() -- The 'help' command behaves exactly as the '--help' option. check(mtn("help", "mv"), 0, true, 0) rename("stdout", "out") check(mtn("--help", "mv"), 0, true, 0) check(samefile("stdout", "out")) -- Help on a top-level group. check(mtn("help", "review"), 0, true, "") output = readfile("stdout") check(stri...
gpl-2.0
drandell/btmn
rope.lua
1
1629
--[[ -- Rope objects class -- Functions dealing with ropes & btmn -- Created 7:48pm, 24th April 2014 -- Dan ]]-- -- Rope object rope = {} --[[ Local Function ]]-- -- Is btmn at the top of a rope? function AtTopOfRope() if (btmn.collidingWithRope) then if (btmn.collisionRect.y <= rope.drawInfo.top) then...
gpl-3.0
phpgao/Atlas
examples/tutorial-monitor.lua
40
5362
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
vikas17a/Algorithm-Implementations
Breadth_First_Search/Lua/Yonaba/bfs.lua
26
3153
-- Generic Breadth-First search algorithm implementation -- See : http://en.wikipedia.org/wiki/Breadth-first_search -- Notes : this is a generic implementation of Breadth-First search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized with...
mit
ntop/ntopng
scripts/lua/rest/v2/get/am_host/list.lua
1
3614
-- -- (C) 2019-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local rest_utils = require "rest_utils" local json = require("dkjson") local script_manager = require("script_manager") local am_utils = require "am_utils" ...
gpl-3.0
v1993/cocos2d-x-lua-i18n
cocos2d-x-test/src/cocos/cocos2d/OpenglConstants.lua
100
27127
if not gl then return end gl.GCCSO_SHADER_BINARY_FJ = 0x9260 gl._3DC_XY_AMD = 0x87fa gl._3DC_X_AMD = 0x87f9 gl.ACTIVE_ATTRIBUTES = 0x8b89 gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a gl.ACTIVE_PROGRAM_EXT = 0x8259 gl.ACTIVE_TEXTURE = 0x84e0 gl.ACTIVE_UNIFORMS = 0x8b86 gl.ACTIVE_UNIFORM_MAX_LENGTH = 0x8b87...
mit
Miigon/luvit
tests/test-tcp.lua
11
1799
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
spam2017/delete_tg
plugins/kickme.lua
1
1177
local function run(msg, matches) if matches[1] == 'kickme' then local hash = 'kick:'..msg.to.id..':'..msg.from.id redis:set(hash, "waite") return '🔖کاربر عزیز ('..msg.from.username..')\nشما درخواست اخراج خود از گروه را ارسال کردید\nاگر با این درخواست موافقت دارید عبارت yes را ارسال کنید' end if msg...
gpl-3.0
Miigon/luvit
examples/http-static-file-server.lua
8
6482
local http = require('http') local url = require('url') local fs = require('fs') local Response = require('http').ServerResponse local mimes = { ["3gp"] = "video/3gpp", a = "application/octet-stream", ai = "application/postscript", aif = "audio/x-aiff", aiff = "audio/x-aiff", asc = "application/pgp-signatu...
apache-2.0
ntop/ntopng
scripts/lua/modules/tls_consts.lua
1
12465
-- -- (C) 2020-22 - ntop.org -- -- This file contains TLS constants local tls_consts = {} -- ################################################################################ tls_consts.tls_cipher_suites = { TLS_NULL_WITH_NULL_NULL=0x000000, TLS_RSA_WITH_NULL_MD5=0x000001, TLS_RSA_WITH_NULL_SHA=0x000002, ...
gpl-3.0
lizh06/premake-4.x
src/actions/vstudio/vs2005_solution.lua
3
3762
-- -- vs2005_solution.lua -- Generate a Visual Studio 2005-2010 solution. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- premake.vstudio.sln2005 = { } local vstudio = premake.vstudio local sln2005 = premake.vstudio.sln2005 function sln2005.generate(sln) io.indent = nil -- back to default ...
bsd-3-clause
ntop/ntopng
scripts/lua/admin/change_user_prefs.lua
1
2778
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') local username = _POST["username"] local host_role = _POST["user_role"] local networks = _POST["allowed_networks"] local...
gpl-3.0
mamadtnt/um
plugins/Dictionary.lua
58
1663
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
RobLoach/love
src/libraries/luasocket/libluasocket/ltn12.lua
127
8177
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- -------...
gpl-3.0
Planimeter/lgameframework
lib/ltn12.lua
127
8177
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- -------...
mit
vikas17a/Algorithm-Implementations
Best_First_Search/Lua/Yonaba/bfs.lua
26
3928
-- Generic Best First Search algorithm implementation -- See : http://en.wikipedia.org/wiki/Best-first_search -- Notes : this is a generic implementation of BFS graph search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized with a handler...
mit
Banderi/OpenTomb
scripts/staticmesh/staticmesh_script.lua
2
1941
-- OPENTOMB STATIC PROPERTY SCRIPT -- By Lwmte, Apr 2015 -------------------------------------------------------------------------------- -- This script defines static mesh property table, as well as functions related -- to this table processing. -- Please note that static mesh properties may vary from level to level,...
lgpl-3.0
ntop/ntopng
scripts/lua/info_portal.lua
1
2943
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path -- io.write ("Session:".._SESSION["session"].."\n") require "lua_utils" local page_utils = require("page_utils") local template = require("template_utils") sendHTTPContentTypeHea...
gpl-3.0
ntop/ntopng
scripts/lua/unknown_devices.lua
1
6409
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path require "lua_utils" local ui_utils = require "ui_utils" local graph_utils = require "graph_u...
gpl-3.0
ntop/ntopng
scripts/lua/rest/v2/import/notifications/config.lua
2
1291
-- -- (C) 2019-22 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path require "lua_utils" local notifications_import_export = require "notifications_import_expo...
gpl-3.0
Yonaba/pimp-my-name
src/print.lua
1
1225
file = io.open("ms0:/PSP/GAME/PMN/fonts/font.txt","r") font_name = file:read() file:close() font = Font.load("ms0:/PSP/GAME/PMN/fonts/"..font_name) font:setPixelSizes(95,110) file = io.open("ms0:/PSP/GAME/PMN/NAME.TXT", "r") name = file:read() file:close() --Setting Variables x=100 y=100 t=1 pos=1 Text = {} Text[1]=...
mit
ophal/core
modules/lorem_ipsum/init.lua
2
3120
local route_register_alias, url, theme = route_register_alias, url, theme local page_set_title, l = page_set_title, l local _SESSION, format, tonumber = _SESSION, string.format, tonumber module 'ophal.modules.lorem_ipsum' --[[ Implementation of hook init(). ]] function init() route_register_alias('lorem_ipsum', 'lo...
agpl-3.0
ntop/ntopng
scripts/lua/macs_stats.lua
1
8680
-- -- (C) 2013-22 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local discover = require("discover_utils") local page_utils = require("page_utils") sendHTTPContentTypeHeader('text/html') page_utils.set_active_menu_entry(page_...
gpl-3.0
FelixMaxwell/ReDead
entities/entities/npc_nb_common/shared.lua
1
2247
AddCSLuaFile() ENT.Base = "npc_nb_base" // Moddable ENT.Skins = 22 ENT.AttackAnims = { "attack01", "attack02", "attack03", "attack04" } ENT.AnimSpeed = 0.8 ENT.AttackTime = 0.5 ENT.MeleeDistance = 64 ENT.BreakableDistance = 96 ENT.Damage = 30 ENT.BaseHealth = 90 ENT.MoveSpeed = 225 ENT.MoveAnim = ACT_RUN ENT.Model...
mit
Banderi/OpenTomb
scripts/config/control_constants.lua
2
7176
-- OPENTOMB CONTROL CONSTANTS LIST -- by Lwmte, Aug 2013 -------------------------------------------------------------------------------- -- Defines key and action names used with key bindings. -------------------------------------------------------------------------------- KEY_BACKSPACE = 0x08; KEY_TAB = 0x09; KEY_R...
lgpl-3.0
Scoth42/rfkasm
fceux-2.2.2-win32/luaScripts/Machrider.lua
3
6985
--Machrider - Speedometer --Written by XKeeper require("x_functions"); if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000"); end; gui.text( 10, 32, string.for...
gpl-2.0
lizh06/premake-4.x
src/actions/vstudio/vs2003_solution.lua
3
1942
-- -- vs2003_solution.lua -- Generate a Visual Studio 2003 solution. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- premake.vstudio.sln2003 = { } local vstudio = premake.vstudio local sln2003 = premake.vstudio.sln2003 function sln2003.generate(sln) io.indent = nil -- back to default io.e...
bsd-3-clause
ntop/ntopng
scripts/callbacks/minute/system/system_checks.lua
1
1330
-- -- (C) 2019-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local ts_dump = require "ts_min_dump_utils" local checks = require "checks" -- ################################################################# -- Just like for local_network_c...
gpl-3.0
eaufavor/AwesomeWM-powerarrow-dark
customMenu/places.lua
1
4986
local setmetatable = setmetatable local string = string local io = io local print = print local os = os local table = table local button = require( "awful.button" ) local beautiful = require( "beautiful" ) local util = require( "awf...
apache-2.0
strukturag/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
cere-bro/telegram-bot
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
ntop/ntopng
scripts/lua/modules/alert_definitions/other/alert_threshold_cross.lua
1
2901
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local other_alert_keys = require "other_alert_keys" local json = require("dkjson") local alert_creators = require "alert_creators" local format_utils = require "format_utils" -- Import the classes library. local classes = require "clas...
gpl-3.0
ophal/core
includes/server/cgi.lua
2
2282
local io_write, buffer = io.write, env.output_buffer local time, date, exit = os.time, os.date, os.exit local tinsert, explode = table.insert, seawolf.text.explode local empty, ltrim = seawolf.variable.empty, seawolf.text.ltrim local trim, dirname = seawolf.text.trim, seawolf.fs.dirname local basename = seawolf.fs.base...
agpl-3.0
pinghe/nginx-openresty-windows
lua-resty-string-0.09/lib/resty/sha224.lua
13
1058
-- Copyright (C) by Yichun Zhang (agentzh) local sha256 = require "resty.sha256" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error local _M = { _VERSION = '0.09' } local mt = { __index = _M } ffi.cdef[[ int SHA224_I...
bsd-2-clause
ntop/ntopng
scripts/lua/admin/edit_check.lua
1
2922
-- -- (C) 2021 - ntop.org -- -- TODO: reset custom callback -- TODO: /scripts/lua/module/checks/templates local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local page_utils = require("page_utils") local ui_utils = require("ui_utils") local template = require(...
gpl-3.0
maikerumine/aftermath
mods/mobs_futuremobs/weapons.lua
2
7504
--Weapons! -- Light Steel Stuffs: minetest.register_tool("mobs_futuremobs:sword_lightsteel_blue", { description = "Blue LightSteel Sword", inventory_image = "sword_lightsteel_blue.png", tool_capabilities = { full_punch_interval = 0.4, max_drop_level=1, groupcaps={ choppy={times={[1]=3.75, [2]=2.75, [3]=2....
lgpl-2.1
shadowmourne/vicious
widgets/thermal.lua
12
1527
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local type = type local tonumber = tonumber local setmetatable = setmetatable local string =...
gpl-2.0
v1993/cocos2d-x-lua-i18n
cocos2d-x-test/src/cocos/framework/extends/UIScrollView.lua
5
2210
--[[ Copyright (c) 2014-2017 Chukong Technologies Inc. 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, p...
mit
Fawk/CleanUI
modules/general/reskins.lua
1
29067
local A, L = unpack(select(2, ...)) local _G, E, media = _G, A.enum, LibStub("LibSharedMedia-3.0") local iconLib = LibStub("LibDBIcon-1.0", true) local Tools = A.Tools local buildText = A.TextBuilder local backdrops = { "DropDownList1MenuBackdrop", "DropDownList2MenuBackdrop", "GameTooltip", "GameMenuFrame" } local s...
gpl-3.0
phpgao/Atlas
lib/admin-bak.lua
37
3379
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
ntop/ntopng
scripts/lua/modules/alert_definitions/flow/alert_longlived.lua
1
2274
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local flow_alert_keys = require "flow_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" local json = require "dkjson" -- ##################...
gpl-3.0
graydon/monotone
tests/db_kill_rev_locally/__driver__.lua
1
1131
mtn_setup() -- This tests the db kill_rev_locally command -- Prepare a db with two revisions addfile("testfile", "blah blah") commit() ancestor = base_revision() writefile("testfile", "stuff stuff") commit() child = base_revision() check(mtn("update", "-r", ancestor), 0, false, false) -- trying to kill the ancesto...
gpl-2.0
bernardolm/TecladoVirtualGingaNCL
libTecladoAlfa.lua
1
5402
local teclas = {'1','2','3','4','5','6','7','8','9','0','q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m',',','.','?','\\','!','@','#','$','[',']','(',')','{','}','=','/','*','-','+','%','<','>','ENTER','ENTER_PEQ','SPACE','EXIT','DELETE'} local arquivo = {'1','2',...
gpl-3.0
sparrow8332/CQUI_Community-Edition
Integrations/BES/UI/espionagesupport.lua
2
7662
-- =========================================================================== function GetFormattedOperationDetailText(operation:table, spy:table, city:table) local outputString:string = ""; local eOperation:number = GameInfo.UnitOperations[operation.Hash].Index; local sOperationDetails:string = UnitManager.GetO...
mit
ntop/ntopng
scripts/lua/update_prefs.lua
1
1285
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local json = require "dkjson" local res = {success = false} sendHTTPHeader('application/json') if _POST["action"] == "toggle_theme" then -- does the use...
gpl-3.0
focusworld/focus
plugins/spam.lua
25
207170
function run(msg, matches) return 'SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM...
gpl-2.0
onlymellb/redis-2.8.21
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
ayyucedemirbas/Minix-Source-Code
minix-master/external/mit/lua/dist/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
apache-2.0