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
Scavenge/darkstar
scripts/zones/Aht_Urhgan_Whitegate/Shared.lua
12
5555
----------------------------------- -- Tables and Functions Used at Multiple Places within Aht Urgan Whitegate ----------------------------------- require("scripts/globals/settings"); -- Lua Set Initializer http://www.lua.org/pil/11.5.html function Set (list) local set = {} for _, l in ipairs(list) do set[l] ...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/plate_of_patlican_salata.lua
12
1352
----------------------------------------- -- ID: 5582 -- Item: plate_of_patlican_salata -- Food Effect: 180Min, All Races ----------------------------------------- -- Agility 4 -- Vitality -1 -- Evasion +6 -- hHP +2 ----------------------------------------- require("scripts/globals/status"); -------------------------...
gpl-3.0
PredatorMF/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dasm_x86.lua
24
71256
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
mit
lingmann/dcos
packages/adminrouter/extra/src/lib/url.lua
16
11957
-- neturl.lua - a robust url parser and builder -- https://raw.githubusercontent.com/golgote/neturl/master/lib/net/url.lua -- -- Bertrand Mansion, 2011-2013; License MIT -- Copyright (c) 2011-2013 Bertrand Mansion -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and...
apache-2.0
Scavenge/darkstar
scripts/zones/Dynamis-Windurst/mobs/Tzee_Xicu_Idol.lua
22
1314
----------------------------------- -- Area: Dynamis Windurst -- MOB: Tzee Xicu Idol ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/dynamis"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ...
gpl-3.0
Yuijam/forsync
utils.lua
1
11314
require(".const") local Card = require('.card') local M = {} --所有的find方法,数据结构是{name = CARD_TYPE.XXX, {}, {}} --里面保存的是索引,而不是牌面值 function M:findDan(cards) if #cards < 1 then return nil end local dan = {name = CARD_TYPE.DAN} local preCard = -1 for i, v in ipairs(cards) do if v ~= preCard then ...
apache-2.0
Scavenge/darkstar
scripts/zones/Southern_San_dOria/npcs/Nokkhi_Jinjahl.lua
9
13235
----------------------------------- -- Area: Southern San d'Oria -- NPC: Nokkhi Jinjahl -- Type: Travelling Merchant NPC / NPC Quiver Maker / San d'Oria 1st Place -- @zone 230 -- @pos 24.829 0.978 -13.110 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ---------...
gpl-3.0
Scavenge/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Lennart.lua
14
1105
---------------------------------- -- Area: The Eldieme Necropolis [S] -- NPC: Lennart -- Type: Item Deliverer -- @pos 378.783 -36 61.805 175 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_...
gpl-3.0
Scavenge/darkstar
scripts/globals/events/harvest_festivals.lua
16
11444
--------------------------------------------------------- --------------------------------------------------------- ------------ Harvest Festivals -------------------- --------------------------------------------------------- --------------------------------------------------------- require("scripts/globals/stat...
gpl-3.0
JanRavn/google-diff-match-patch
lua/diff_match_patch_test.lua
264
39109
--[[ * Test Harness for Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser * Ported to Lua by Duncan Cross * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
apache-2.0
Scavenge/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5e9.lua
14
1772
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Gate: Magical Gizmo -- Involved In Mission: The Heart of the Matter -- @pos 584 0 -660 194 ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scri...
gpl-3.0
Scavenge/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Renadile.lua
16
4338
----------------------------------- -- Area: Southern San d'Oria [S] -- NPC: Renadile -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstora...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Nazar.lua
30
1317
----------------------------------- -- Area: Port San d'Oria -- NPC: Nazar -- Type: Standard NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/zones/Port_San_dOria/TextIDs"); ----------------------------------- -- onTrade Action ---------------...
gpl-3.0
devwawi/VIP-TEAM_Wawi8
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...
agpl-3.0
Zero-K-Experiments/Zero-K-Experiments
lups/headers/nanoupdate.lua
13
5026
-- $Id: general.lua 3171 2008-11-06 09:06:29Z det $ --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- -- -- file: nanoupdate.lua -- brief: shared code between all nano particl...
gpl-2.0
Scavenge/darkstar
scripts/zones/Port_Bastok/npcs/Valah_Molkot.lua
26
3641
----------------------------------- -- Area: Port Bastok -- NPC: Valah Molkot -- Starts and Finishes Quest: A Lady's Heart -- @zone 236 -- @pos 59 8 -221 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones/Port_Bastok/TextIDs"); ---------...
gpl-3.0
shengnoah/hilua
bin/scaffold/nginx/handle.lua
2
2255
-- most code is from https://github.com/ostinelli/gin/blob/master/gin/cli/base_launcher.lua local function create_dirs(necessary_dirs) for _, dir in pairs(necessary_dirs) do os.execute("mkdir -p " .. dir .. " > /dev/null") end end local function create_nginx_conf(nginx_conf_file_path, nginx_conf_conten...
bsd-2-clause
Joker-Developer/jokersuper
plugins/short2.lua
4
1631
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] local function run(msg, matches) local yon = http.request('http://api.yon.ir/?url='..URL.escape(matches[1])) local jdat = json:decode(yon) local bitly = https.request('https://api-ssl.bitly.com/v3/shorten?a...
gpl-2.0
Scavenge/darkstar
scripts/zones/Ordelles_Caves/TextIDs.lua
7
1991
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6544; -- Obtained: <item>. GIL_OBTAINED = 6545; -- Obtained <number> gil. KEYITEM_OBTAINED = 6547; -- Obtained...
gpl-3.0
Scavenge/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5cf.lua
14
1068
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5cf (Gate of Wind) -- @pos -332 0 99 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs"); ------...
gpl-3.0
Joker-Developer/jokersuper
plugins/invite.lua
4
1420
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] do local function callbackres(extra, success, result) --vardump(result) local user = 'user#id'..result.peer_id local chat = 'chat#id'..extra.chatid local channel = 'channel#id'..extra.chatid if is_banned(res...
gpl-2.0
Scavenge/darkstar
scripts/zones/Mhaura/npcs/Runito-Monito.lua
17
1508
----------------------------------- -- Area: Mhaura -- NPC: Runito-Monito -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/shop"); -------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/bcnm.lua
8
44063
require("scripts/globals/status"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/globals/quests"); -- NEW SYSTEM BCNM NOTES -- The "core" functions TradeBCNM EventUpdateBCNM EventTriggerBCNM EventFinishBCNM all return TRUE if the action performed is covered by the function....
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/unit_regeneration.lua
2
2926
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Regeneration", desc = "Handles idle regeneration for air units", author = "Sprung", date = "2015-05-22", license = "PD", layer = 0, enabled = true, } end local spGetUnitIsStunned = Spring.GetUnitIsStunne...
gpl-2.0
Scavenge/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua
14
2530
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Dkhaaya -- Type: Standard NPC -- @pos -73.212 -1 -5.842 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requi...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/sandfish.lua
12
1323
----------------------------------------- -- ID: 4291 -- Item: sandfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Den_of_Rancor/Zone.lua
12
1639
----------------------------------- -- -- Zone: Den_of_Rancor (160) -- ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Den_of_Rancor/TextIDs"...
gpl-3.0
Scavenge/darkstar
scripts/zones/The_Shrine_of_RuAvitau/npcs/blank_4.lua
14
4986
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: ??? divine might mission -- @pos -40 0 -151 178 ----------------------------------- package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Shrine_of_RuAvitau/TextI...
gpl-3.0
Scavenge/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/Hurr_the_Betrayer.lua
14
3619
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: Hurr the Betrayer -- Type: Involved in the "Sahagin Key Quest" -- @zone 176 -- @pos 305.882 26.768 234.279 -- ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; -------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/bowl_of_ocean_soup.lua
12
1839
----------------------------------------- -- ID: 4285 -- Item: bowl_of_ocean_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP +5% (cap 150) -- MP +5 -- DEX +4 -- Attack +14% (cap 90) -- Ranged Attack +14% (cap 90) -- HP recovered while healing +9 -------------------------------------...
gpl-3.0
Zomis/FactorioMods
search-engine_0.0.1/v2/gui/step_1_search_spec.lua
1
4307
local gui = require("__flib__.gui-beta") --Buttons: Entities / Recipes / ... -- On-click, change subsection --Subsection: Depending on button active -- Entities: belts, pipes, decider combinator, arithmetic combinator local loop_plugins = require("v2/plugins/loops/loops") local filter_plugins = require("v2/plugins/...
mit
smanolache/kong
kong/dao/factory.lua
1
6193
local DAO = require "kong.dao.dao" local utils = require "kong.tools.utils" local Object = require "classic" local stringy = require "stringy" local ModelFactory = require "kong.dao.model_factory" local CORE_MODELS = {"apis", "consumers", "plugins", "nodes"} local _db local Factory = Object:extend() function Factory...
apache-2.0
Scavenge/darkstar
scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua
22
1534
----------------------------------- -- Area: Spire of Vahzl -- NPC: Web of Recollection ----------------------------------- package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/mis...
gpl-3.0
LuaDist2/lualibrarytemplate
luacmodule.lua
2
2496
#!/usr/bin/env lua local lfs = require("lfs") local datafile = require("lualibrarytemplate.dummy") --local datafile = require("datafile") -- luarocks agnostic resource loader local windows = (package.config:sub(1,1) == "\\") -- copies a file, each line with a match for 'pattern' will be handed to 'handler' -- ...
mit
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/unit_snipers.lua
2
6698
function widget:GetInfo() return { name = "Sniper Finder 2", desc = "sniper on the roof!", license = "PD", layer = -2, enabled = false, } end local sniperDefID = WeaponDefNames.armsnipe_shockrifle.id local sniperRange = WeaponDefNames.armsnipe_shockrifle.range local basicTacnuke = {b = 900, r = 300, l = ...
gpl-2.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Themes/default/Graphics/ScreenSelectMusic DifficultyDisplay/default.lua
1
2551
local t = Def.ActorFrame {}; local function GetEdits( in_Song, in_StepsType ) if in_Song then local sSong = in_Song; local sCurrentStyle = GAMESTATE:GetCurrentStyle(); local sStepsType = in_StepsType; local iNumEdits = 0; if sSong:HasEdits( sStepsType ) then local tAllSteps = sSong:GetAllSteps(); for i...
mit
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/dbg_ballisticcalculator.lua
17
19308
function widget:GetInfo() return { name = "Ballistic Calculator", desc = "Simulate and plot weapon's ballistic range & calculate Spring's weapon range modification. For weapon setting testing. \n\nInstruction: select any unit, press attack (trajectory will be drawn), follow on-screen helptext, BLUE ...
gpl-2.0
BlockMen/minetest_next
mods/default/items/books.lua
1
3152
local function book_on_use(itemstack, user, pointed_thing) local player_name = user:get_player_name() local data = minetest.deserialize(itemstack:get_metadata()) local title, text, owner = "", "", player_name if data then title, text, owner = data.title, data.text, data.owner end local formspec if owner == pla...
gpl-3.0
Scavenge/darkstar
scripts/commands/addquest.lua
12
1546
--------------------------------------------------------------------------------------------------- -- func: addquest <logID> <questID> <player> -- desc: Adds a quest to the given targets log. --------------------------------------------------------------------------------------------------- require("scripts/globals/q...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
units/armspy.lua
3
4904
unitDef = { unitname = [[armspy]], name = [[Infiltrator]], description = [[Cloaked Scout/Anti-Heavy]], acceleration = 0.3, activateWhenBuilt = true, brakeRate = 0.9, buildCostEnergy = 280, buildCostMetal = 280, buildPic ...
gpl-2.0
MOSAVI17/ABCD
plugins/join.lua
26
1488
--[[ Bot can join into a group by replying a message contain an invite link or by typing !join [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local fun...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
effects/riot.lua
25
2909
-- riot_shell_m -- riot_shell_l -- riot_shell_h return { ["riot_shell_m"] = { usedefaultexplosions = false, shell = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, pr...
gpl-2.0
DEVSEIKO/seikodev
plugins/lock_fwd.lua
2
1656
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI CH > @lTSHAKEl_CH --]] d...
gpl-2.0
Scavenge/darkstar
scripts/zones/Rabao/npcs/Irmilant.lua
12
3934
----------------------------------- -- Area: Rabao -- NPC: Irmilant -- Starts and Ends Quests: The Immortal Lu Shang and Indomitable Spirit ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; require("scripts/globals/titles"); require("scripts/globals/settings"); require("scripts/g...
gpl-3.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/modifiers/modifier_tree.lua
1
1364
modifier_tree = class({}) function modifier_tree:OnCreated(event) self.disable_turning = event.disable_turning == 1 and 1 or 1 self.magic_immune = event.magic_immune == 1 self.deniable = event.deniable == 1 end function modifier_tree:GetModifierDisableTurning() return self.disable_turning end functi...
apache-2.0
Crystalwarrior/ZombieDefence
lib/HardonCollider/init.lua
10
4573
--[[ Copyright (c) 2011 Matthias Richter 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, distribu...
unlicense
Zero-K-Experiments/Zero-K-Experiments
gamedata/sounds.lua
2
3522
-- see http://springrts.com/wiki/Sounds.lua for help local Sounds = { SoundItems = { default = { }, IncomingChat = { --file = "sounds/talk.wav", file = nil, }, --MultiSelect = { -- file = "sounds/button9.wav", --}, MapPoint = { file = "sounds/beep4_decrackled.wav", maxconcurrent = 3, },...
gpl-2.0
Scavenge/darkstar
scripts/zones/Abyssea-Uleguerand/npcs/qm10.lua
14
1347
----------------------------------- -- Zone: Abyssea-Uleguerand -- NPC: qm10 (???) -- Spawns Audumbla -- @pos ? ? ? 253 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) -...
gpl-3.0
kirubz/Penlight
tests/test-strict.lua
8
1149
local strict = require 'pl.strict' local test = require 'pl.test' local app = require 'pl.app' -- in strict mode, you must assign to a global first, even if just nil. test.assertraise(function() print(x) print 'ok?' end,"variable 'x' is not declared") -- can assign to globals in main (or from C extens...
mit
Scavenge/darkstar
scripts/globals/items/plate_of_sublime_sushi.lua
12
1962
----------------------------------------- -- ID: 6468 -- Item: plate_of_sublime_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +40 -- MP +20 -- STR +6 -- DEX +7 -- MND -3 -- CHR +6 -- Accuracy +10% (cap 100) -- Ranged Accuracy +10% (cap 100) -- Resist Sleep +1 -------------------...
gpl-3.0
tonyli71/kolla
docker/heka/plugins/decoders/os_swift_log.lua
4
1578
-- Copyright 2016 Mirantis, Inc. -- -- 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 agreed to ...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
effects/gundam_bluegreennovaexplode.lua
25
2601
-- bluegreennovaexplo return { ["bluegreennovaexplo"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 0.2, circlegrowth = 4, flashalpha = 0.5, flashsize = 50, ground = true, ttl ...
gpl-2.0
peaking-development/peak
common/buffer.lua
1
1401
local Promise = require 'common/promise' return function(h, data, write) local buffer local pos = 1 local function read(len) local res = buffer:sub(pos, pos + len - 1) pos = pos + len if pos > #buffer + 1 then pos = #buffer + 1 end return res end function h.read(len) buffer = data() local res if len...
mit
google/guetzli
premake5.lua
3
1475
workspace "guetzli" configurations { "Release", "Debug" } language "C++" flags { "C++11" } includedirs { ".", "third_party/butteraugli" } filter "action:vs*" platforms { "x86_64", "x86" } filter "platforms:x86" architecture "x86" filter "platforms:x86_64" architecture "x86_64" -- workarou...
apache-2.0
Scavenge/darkstar
scripts/zones/Windurst_Woods/npcs/Spare_Two.lua
17
1505
----------------------------------- -- Area: Windurst Woods -- NPC: Spare Two -- Working 100% -- Involved in quest: A Greeting Cardian ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); package.loaded["scripts/zo...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_Windurst/npcs/Ohruru.lua
14
5022
----------------------------------- -- Area: Windurst Waters -- NPC: Ohruru -- Starts & Finishes Repeatable Quest: Catch me if you can -- Working 90% -- Involved in Quest: Wonder Wands -- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyways. -...
gpl-3.0
Scavenge/darkstar
scripts/zones/Sauromugue_Champaign/npcs/Tiger_Bones.lua
14
1914
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Tiger Bones -- Involed in Quest: The Fanged One. -- @pos 666 -8 -379 120 ------------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------------------------------- require("scripts/globals/se...
gpl-3.0
jchuang1977/openwrt
package/diy/luci-app-dockerman/luasrc/model/cbi/dockerman/images.lua
2
9332
--[[ LuCI - Lua Configuration Interface Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman> ]]-- require "luci.util" local uci = luci.model.uci.cursor() local docker = require "luci.model.docker" local dk = docker.new() local containers, images local res = dk.images:list() if res.code <300 then image...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/unit_jumper_jumpOverObstacle.lua
5
20451
local version = "v0.507" function widget:GetInfo() return { name = "Auto Jump Over Terrain", desc = version .. " Jumper automatically jump over terrain or buildings if it shorten walk time.", author = "Msafwan", date = "4 February 2014", license = "GNU GPL, v2 or later", layer...
gpl-2.0
1yvT0s/luvit
tests/test-tls-client-openssl-server.lua
12
2320
--[[ 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
Scavenge/darkstar
scripts/zones/Windurst_Woods/npcs/Bopa_Greso.lua
14
1855
----------------------------------- -- Area: Windurst Woods -- NPC: Bopa Greso -- Type: Standard NPC -- @zone 241 -- @pos 59.773 -6.249 216.766 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Tehf_Kimasnahya.lua
14
3139
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Tehf Kimasnahya -- Type: Standard NPC -- @pos -89.897 -1 6.199 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems");...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Leonora.lua
14
1532
----------------------------------- -- Area: Port San d'Oria -- NPC: Leonora -- Involved in Quest: -- @zone 232 -- @pos -24 -8 15 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); requi...
gpl-3.0
endlessm/chromium-browser
third_party/flatbuffers/src/tests/MyGame/Example/TestSimpleTableWithEnum.lua
10
1204
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: Example local flatbuffers = require('flatbuffers') local TestSimpleTableWithEnum = {} -- the module local TestSimpleTableWithEnum_mt = {} -- the class metatable function TestSimpleTableWithEnum.New() local o = {} setmetatabl...
bsd-3-clause
omidtarh/wezard
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
Scavenge/darkstar
scripts/zones/Cirdas_Caverns/Zone.lua
17
1223
----------------------------------- -- -- Zone: Cirdas Caverns -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Cirdas_Caverns/TextIDs"] = nil; require("scripts/zones/Cirdas_Caverns/TextIDs"); ----------------------------------- -- onInitialize -------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/weaponskills/spirits_within.lua
9
2186
----------------------------------- -- Spirits Within -- Sword weapon skill -- Spirits Within Sword Weapon Skill -- TrolandAdded by Troland -- Skill Level: 175 -- Delivers an unavoidable attack. Damage varies with HP and TP. -- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillch...
gpl-3.0
Scavenge/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Mortimer.lua
14
1077
---------------------------------- -- Area: Fort Karugo Narugo [S] -- NPC: Mortimer -- Type: Item Deliverer -- @zone 96 -- @pos -24.08 -68.508 93.88 -- ----------------------------------- package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil; require("scripts/zones/Fort_Karugo-Narugo_[S]/TextI...
gpl-3.0
1yvT0s/luvit
tests/test-tls-connect-simple-twice.lua
11
1173
require('tap')(function (test) local fixture = require('./fixture-tls') local tls = require('tls') local options = { cert = fixture.certPem, key = fixture.keyPem } local serverConnected = 0 local clientConnected = 0 test("tls connect simple twice", function() local server server = tls.c...
apache-2.0
Necktrox/mta-discord-bot
mta/discord/util.lua
4
2093
function utf8.split(self, separator) assert(type(self) == "string", "expected string at argument 1, got ".. type(self)) assert(type(separator) == "string", "expected string at argument 2, got ".. type(separator)) local rows = {} local position, startpoint = false, 1 local sepLength = utf8.len(sepa...
isc
Kyklas/luci-proto-hso
applications/luci-olsr/luasrc/controller/olsr.lua
35
9709
module("luci.controller.olsr", package.seeall) function index() local ipv4,ipv6 if nixio.fs.access("/etc/config/olsrd") then ipv4 = 1 end if nixio.fs.access("/etc/config/olsrd6") then ipv6 = 1 end if not ipv4 and not ipv6 then return end require("luci.model.uci") local uci = luci.model.uci.cursor_state...
apache-2.0
xincun/nginx-openresty-windows
lua-resty-mysql-0.15/t/lib/ljson.lua
76
1871
local ngx_null = ngx.null local tostring = tostring local byte = string.byte local gsub = string.gsub local sort = table.sort local pairs = pairs local ipairs = ipairs local concat = table.concat local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local...
bsd-2-clause
Dyaxler/SpartanUI
Modules/RaidFrames/scripts/Options.lua
1
5384
local SUI = SUI local L = SUI.L local RaidFrames = SUI.RaidFrames ---------------------------------------------------------------------------------------------------- function RaidFrames:OnInitialize() SUI.opt.args['RaidFrames'].args['DisplayOpts'] = { name = L['DisplayOpts'], type = 'group', order = 100, inl...
gpl-3.0
Scavenge/darkstar
scripts/zones/Cloister_of_Frost/npcs/Ice_Protocrystal.lua
14
1920
----------------------------------- -- Area: Cloister of Frost -- NPC: Ice Protocrystal -- Involved in Quests: Trial by Ice, Trial Size Trial by Ice -- @pos 558 0 596 203 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ------------------------------------- require(...
gpl-3.0
BlockMen/minetest_next
mods/default/environment.lua
2
6086
-- -- Lavacooling -- default.cool_lava_source = function(pos) minetest.set_node(pos, {name = "default:obsidian"}) minetest.sound_play("default_cool_lava", {pos = pos, max_hear_distance = 16, gain = 0.25}) end default.cool_lava_flowing = function(pos) minetest.set_node(pos, {name = "default:stone"}) minetest.sou...
gpl-3.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Themes/_fallback/Graphics/ScreenHighScores ScrollerItem/default.lua
1
2703
local t = Def.ActorFrame { InitCommand=cmd(runcommandsonleaves,cmd(ztest,true)); }; t[#t+1] = LoadActor("frame") .. { InitCommand=cmd(diffusealpha,0.1;); }; t[#t+1] = Def.TextBanner { InitCommand=cmd(x,-196;y,0;Load,"TextBannerHighScores"); SetCommand=function(self, params) if params.Song then self:SetFromS...
mit
Kyklas/luci-proto-hso
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
35
5096
--[[ LuCI - Lua Configuration Interface Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
apache-2.0
Scavenge/darkstar
scripts/globals/items/yellow_globe.lua
12
1327
----------------------------------------- -- ID: 4403 -- Item: yellow_globe -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------...
gpl-3.0
taxler/radish
lua/parse/char/utf8/set/Diacritic.lua
1
2402
local make_set = require 'parse.char.utf8.make.set' return make_set { S = '^`' .. '\u{a8}\u{af}\u{b4}\u{b7}\u{b8}' .. '\u{374}\u{375}\u{37a}\u{384}\u{385}\u{559}\u{5bf}\u{5c1}\u{5c2}\u{5c4}' .. '\u{657}\u{658}\u{6df}\u{6e0}\u{6e5}\u{6e6}\u{7f4}\u{7f5}\u{818}\u{819}' .. '\u{93c}\u{94d}\u{971}\u{9bc}\u{9cd}\u{a...
mit
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Auvare.lua
17
1656
----------------------------------- -- Area: Port San d'Oria -- NPC: Auvare -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); ----...
gpl-3.0
Scavenge/darkstar
scripts/zones/Metalworks/npcs/Udine_AMAN.lua
33
1311
----------------------------------- -- Area: Metalworks -- NPC: Udine A.M.A.N -- Type: Mentor Recruiter ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); ----------------------------------- --...
gpl-3.0
mohammad2016mr/seed
bot/seedbot.lua
180
10314
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
agpl-3.0
omidtarh/wbot
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
smanolache/kong
spec/integration/02-cli/cmds/status_spec.lua
3
1055
local spec_helper = require "spec.spec_helpers" describe("CLI", function() setup(function() pcall(spec_helper.stop_kong) end) teardown(function() pcall(spec_helper.stop_kong) end) it("the status check should fail when Kong is not running", function() assert.error_matches(function() spec_...
apache-2.0
tarikgwa/nfd
lua/libs/lfs_cache.lua
5
3388
-- -- Easily power a caching system based on Filesystem -- It's recommended to use ramdisk to get better performances -- @ mkdir -p /tmp/ram -- @ sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/ -- Set the CACHE_DIRECTORY setting to this directory -- -- -- Copyright (C) 2013-2014 Arezqui Belaid <areski@gmail.com> -- --...
mpl-2.0
Scavenge/darkstar
scripts/zones/Nashmau/npcs/Leleroon.lua
6
3492
----------------------------------- -- Area: Nashmau -- NPC: Leleroon -- Corsair AF2 and AF3 quests -- @pos -14.687 0.000 25.114 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/g...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/crepe_belle_helene.lua
12
1493
----------------------------------------- -- ID: 5778 -- Item: Crepe Belle Helene -- Food Effect: 30 Min, All Races ----------------------------------------- -- Intelligence +2 -- MP Healing +3 -- Magic Accuracy +21% (cap 50) -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Answald.lua
17
1672
----------------------------------- -- Area: Port San d'Oria -- NPC: Answald -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/quests...
gpl-3.0
Scavenge/darkstar
scripts/zones/Selbina/npcs/HomePoint#1.lua
27
1256
----------------------------------- -- Area: Selbina -- NPC: HomePoint#1 -- @pos 36.117 -10.729 34.635 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Selbina/TextIDs"); require("scripts/globals/homepoint"); -...
gpl-3.0
Scavenge/darkstar
scripts/globals/spells/bluemagic/asuran_claws.lua
33
1769
----------------------------------------- -- Spell: Asuran Claws -- Delivers a sixfold attack. Accuracy varies with TP -- Spell cost: 81 MP -- Monster Type: Beasts -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: AGI +3 -- Level: 70 -- Casting Time: 3 seconds -- Recast Time: 60 seconds -- Skillcha...
gpl-3.0
Scavenge/darkstar
scripts/zones/Rabao/npcs/Maryoh_Comyujah.lua
14
2106
----------------------------------- -- Area: Rabao -- NPC: Maryoh Comyujah -- Involved in Mission: The Mithra and the Crystal (Zilart 12) -- @pos 0 8 73 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems");...
gpl-3.0
Scavenge/darkstar
scripts/zones/Abyssea-Konschtat/npcs/qm4.lua
4
1344
----------------------------------- -- Zone: Abyssea-Konschtat -- NPC: qm4 (???) -- Spawns Hexenpilz -- @pos ? ? ? 15 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --[...
gpl-3.0
smanolache/kong
spec/plugins/key-auth/hooks_spec.lua
1
4967
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" local cache = require "kong.tools.database_cache" local STUB_GET_URL = spec_helper.STUB_GET_URL local API_URL = spec_helper.API_URL describe("Key Authentication Hooks", function() setup...
apache-2.0
Scavenge/darkstar
scripts/globals/spells/bluemagic/reactor_cool.lua
26
2059
----------------------------------------- -- Spell: Reactor Cool -- Enhances defense and covers you with magical ice spikes. Enemies that hit you take ice damage -- Spell cost: 28 MP -- Monster Type: Luminions -- Spell Type: Magical (Ice) -- Blue Magic Points: 5 -- Stat Bonus: INT+3 MND+3 -- Level: 74 -- Casting Time: ...
gpl-3.0
LuaDist2/vida
test/demo.lua
3
3552
local ffi = require('ffi') local vida = require('vida') local os = require('os') local bench = require('bench') local fast = vida.compile( vida.interface [[ int func(int a, int b); ]], vida.code [[ EXPORT int func(int a, int b) { return a + b; } ]]) local vector = vida.compile( vida.interf...
mit
Scavenge/darkstar
scripts/zones/Temenos/mobs/Dark_Elemental.lua
23
1253
----------------------------------- -- Area: Temenos E T -- NPC: Dark_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ------------------------------...
gpl-3.0
DebugClub/slua
build/luajit-2.1.0/src/jit/bcsave.lua
26
18244
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
Scavenge/darkstar
scripts/globals/spells/absorb-acc.lua
9
1334
-------------------------------------- -- Spell: Absorb-ACC -- Steals an enemy's accuracy. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -----------------...
gpl-3.0
cyclonetm/XmakanX
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
Scavenge/darkstar
scripts/globals/weaponskills/trueflight.lua
19
1978
----------------------------------- -- Trueflight -- Skill Level: N/A -- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Ranger) quest. -- Does not work with Flashy Shot. -- Does not work with Steal...
gpl-3.0