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 |
|---|---|---|---|---|---|
BlockMen/minetest_next | mods/default/mapgenv57.lua | 1 | 14501 | --
-- Register biomes
--
minetest.clear_registered_biomes()
-- Permanent ice
minetest.register_biome({
name = "glacier",
node_dust = "default:snowblock",
node_top = "default:snowblock",
depth_top = 1,
node_filler = "default:snowblock",
depth_filler = 3,
node_stone = "default:ice",
node_water_top = "default:ic... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/boiled_crayfish.lua | 12 | 1235 | -----------------------------------------
-- ID: 4535
-- Item: Boiled Crayfish
-- Food Effect: 30Min, All Races
-----------------------------------------
-- defense % 30
-- defense % 25
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/hovers.lua | 17 | 3180 | -- hovers_on_ground
-- heavyhovers_on_ground
-- transport_hovers_on_ground
return {
["hovers_on_ground"] = {
clouds0 = {
air = false,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 0,
water... | gpl-2.0 |
Arczuch/ttt-scoreboard-colors | tttscoreboadcolors/lua/autorun/tttscoreboadcolors.lua | 1 | 2470 | /*
AUTHOR: Arczi
(STEAM_0:1:55136945)
*/
if SERVER then
AddCSLuaFile("tttscoreboadcolors.lua")
end
if CLIENT then
CreateConVar("ttt_scoreboardcolors_user_r", "255", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE )
CreateConVar("ttt_scoreboardcolors_user_g", "255", FCVAR_REPLICATED + FCVAR_... | mit |
endlessm/chromium-browser | third_party/skia/tools/lua/classify_rrect_clips.lua | 160 | 3346 |
function sk_scrape_startcanvas(c, fileName) end
function sk_scrape_endcanvas(c, fileName) end
function classify_rrect(rrect)
if (rrect:type() == "simple") then
local x, y = rrect:radii(0)
if (x == y) then
return "simple_circle"
else
return "simple_oval"
end... | bsd-3-clause |
k0nserv/dotfiles | files/nvim/lua/utils.lua | 1 | 1682 | -- Merge two tables, overwriting values in `t1` for keys that exists in `t2.
-- Borrowed from https://stackoverflow.com/questions/1283388/how-to-merge-two-tables-overwriting-the-elements-which-are-in-both
function merge_tables_inplace(t1, t2)
for k,v in pairs(t2) do
if type(v) == "table" then
if... | mit |
Zero-K-Experiments/Zero-K-Experiments | lups/ParticleClasses/UnitPieceLight.lua | 4 | 10310 | -- $Id: UnitPieceLight.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitPieceLight = {}
UnitPi... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/spells/kurayami_san.lua | 27 | 1145 | -----------------------------------------
-- Spell: Kurayami: San
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Caedarva_Mire/npcs/Runic_Portal.lua | 25 | 2671 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Runic Portal
-- Caedarva Mire Teleporter Back to Aht Urhgan Whitegate
-- @pos -264 -6 -28 79 (Dvucca)
-- @pos 524 -28 -503 79 (Azouph)
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
--------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/coeurl_sub.lua | 12 | 1928 | -----------------------------------------
-- ID: 5166
-- Item: coeurl_sub
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
-- Resist... | gpl-3.0 |
phi-gamma/lualibs | lualibs-io.lua | 3 | 10014 | if not modules then modules = { } end modules ['l-io'] = {
version = 1.001,
comment = "companion to luat-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local io = io
local open, f... | gpl-2.0 |
flux-framework/flux-core | src/bindings/lua/Test/Builder/Tester/File.lua | 8 | 1245 |
--
-- lua-TestMore : <http://fperrad.github.com/lua-TestMore/>
--
local tconcat = require 'table'.concat
local setmetatable = setmetatable
local tb = require 'Test.Builder'.new()
_ENV = nil
local m = {}
function m.new (_type)
local o = setmetatable({ type = _type }, { __index = m })
o:reset()
return o
... | lgpl-3.0 |
DebugClub/slua | build/luajit-2.0.4/src/jit/bc.lua | 88 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
Scavenge/darkstar | scripts/zones/Promyvion-Dem/Zone.lua | 15 | 7732 | -----------------------------------
--
-- Zone: Promyvion-Dem (18)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Dem/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/mission... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Yughott_Grotto/TextIDs.lua | 7 | 1096 | -- 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 |
smanolache/kong | kong/plugins/response-transformer/body_transformer.lua | 1 | 2808 | local stringy = require "stringy"
local cjson = require "cjson"
local table_insert = table.insert
local pcall = pcall
local string_find = string.find
local unpack = unpack
local type = type
local _M = {}
local function read_json_body(body)
if body then
local status, res = pcall(cjson.decode, body)
if statu... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Abyssea-La_Theine/mobs/Piasa.lua | 12 | 1376 | -----------------------------------
-- Area: Abyssea - La Theine
-- MOB: Piasa
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
m... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-asterisk/luasrc/model/cbi/asterisk.lua | 80 | 5333 | --[[
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 |
ArchonTeam/Soft_TG | plugins/azan.lua | 7 | 3160 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
do
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"
function get_latlong(area)
local api = base_api .. "/geocode/json?"
loc... | gpl-2.0 |
1yvT0s/luvit | deps/https.lua | 6 | 2406 | --[[
Copyright 2015 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/globals/items/dolphin_staff.lua | 41 | 1077 | -----------------------------------------
-- ID: 17134
-- Item: Dolphin Staff
-- Additional Effect: Water Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------... | gpl-3.0 |
smanolache/kong | kong/dao/dao.lua | 1 | 11386 | --- Operates over entities of a given type in a database table.
-- An instance of this class is to be instanciated for each entity, and can interact
-- with the table representing the entity in the database.
--
-- Instanciations of this class are managed by the DAO Factory.
--
-- This class provides an abstraction for ... | apache-2.0 |
Scavenge/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_1.lua | 29 | 2253 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_1)
-- @pos -245.000 -18.100 660.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/que... | gpl-3.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/libraries/animations.lua | 10 | 16024 | ANIMATIONS_VERSION = "1.00"
--[[
Lua-controlled Animations Library by BMD
Installation
-"require" this file inside your code in order to gain access to the StartAnmiation and EndAnimation global.
-Additionally, ensure that this file is placed in the vscripts/libraries path and that the vscripts/libraries/modi... | apache-2.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/screamer.lua | 16 | 1987 | include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base, turret, barrel, flare = piece('base', 'turret', 'barrel', 'flare')
local smokePiece = {turret, barrel}
------... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/abilities/choral_roll.lua | 19 | 2717 | -----------------------------------
-- Ability: Choral Roll
-- Decreases spell interruption rate for party members within area of effect
-- Optimal Job: Bard
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 26
--
-- Die Roll |No BRD |With BRD
-- -------- -------- -------
-- 1 |-13 |-38... | gpl-3.0 |
Arashbrsh/lifemaic | plugins/Fake.lua | 45 | 6690 | 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, ok_cb, true)
end
local function ban_user(user_id, chat_id)
-- Save to redis
local hash = 'banned:'..chat_id..':'..user_id
redis:set(hash, true)
-- Kick from chat
kick_us... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/chili_new/controls/progressbar.lua | 10 | 3388 | --//=============================================================================
--- Progressbar module
--- Progressbar fields.
-- Inherits from Control.
-- @see control.Control
-- @table Progressbar
-- @int[opt=0] min minimum value of the Progressbar
-- @int[opt=100] max maximum value of the Progressbar
-- @int[opt... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm3.lua | 14 | 2473 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm3 (???) (Tower 3)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 417.121 15.598 -137.466 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
Crystalwarrior/ZombieDefence | zombie.lua | 1 | 3689 | function init_zombie_director()
local z = {}
z.timer = 10
z.wave = 0
z.wave_period = 30 --A single wave lasts 30 seconds
z.grace_period = 15 --Time until next wave
z.zombie_per_second = 2 --Spawn a zombie every second
z.spawn_timer = 0 --timer itself
z.state = 0 --What state of director are we in? 0 = Grace Per... | unlicense |
Scavenge/darkstar | scripts/globals/items/weavers_belt.lua | 12 | 1185 | -----------------------------------------
-- ID: 15447
-- Item: Weaver's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Clothcraft Skill +3
-----------------------------------------
require("scripts/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Cermet_Headstone.lua | 11 | 4417 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Fire Fragment)
-- @pos 491 20 301 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
tempbottle/tundra | scripts/tundra/tools/generic-asm.lua | 28 | 2495 | module(..., package.seeall)
local path = require "tundra.path"
local util = require "tundra.util"
local boot = require "tundra.boot"
local scanner = require "tundra.scanner"
local depgraph = require "tundra.depgraph"
local default_keywords = { "include" }
local default_bin_keywords = { "incbin" }
local ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/The_Shrouded_Maw/bcnms/darkness_named.lua | 30 | 2857 | -----------------------------------
-- Area: The_Shrouded_Maw
-- Name: darkness_named
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/zones/Th... | gpl-3.0 |
flux-framework/flux-core | src/shell/lua.d/mvapich.lua | 3 | 1511 | -------------------------------------------------------------
-- Copyright 2020 Lawrence Livermore National Security, LLC
-- (c.f. AUTHORS, NOTICE.LLNS, COPYING)
--
-- This file is part of the Flux resource manager framework.
-- For details, see https://github.com/flux-framework.
--
-- SPDX-License-Identifier: LGPL-3.0... | lgpl-3.0 |
Scavenge/darkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#4.lua | 27 | 1258 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#4
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/cegtags.lua | 12 | 5801 | -- heatray_scorcher
-- redlaser_ak
-- yellowlaser_hlt
-- yellowlaser_can
-- orangelaser
-- stormtag
-- redlaser_llt
-- samtag
-- slashtag
return {
["heatray_scorcher"] = {
greenlaser = {
air = true,
class = [[CSimpleGroundFlash]],
count = 1,
ground... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/lups_nano_spray.lua | 7 | 12924 | -- $Id: lups_nano_spray.lua 3171 2008-11-06 09:06:29Z det $
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "LupsNanoSpray",
desc = "... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n2.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Grauberg/npcs/qm8.lua | 14 | 1343 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm8 (???)
-- Spawns Ika-Roa
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
ld-test/dromozoa-chunk | dromozoa/chunk/opcodes_5_1.lua | 3 | 2177 | return {
{ 0x00, "MOVE", false, true, "R", "N", "ABC" };
{ 0x01, "LOADK", false, true, "K", "N", "ABx" };
{ 0x02, "LOADBOOL", false, true, "U", "U", "ABC" };
{ 0x03, "LOADNIL", false, true, "R", "N", "ABC" };
{ 0x04, "GETUPVAL", false, true, "U", "N", "ABC" };
{ 0x05, "GETGLOBAL", fal... | gpl-3.0 |
1yvT0s/luvit | deps/fs.lua | 6 | 18282 | --[[
Copyright 2014-2015 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 o... | apache-2.0 |
Scavenge/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm2.lua | 17 | 2234 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Exits)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/titles");
req... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 6 | 20068 | --[[
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$
]]--
req... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Spire_of_Vahzl/Zone.lua | 30 | 1673 | -----------------------------------
--
-- Zone: Spire_of_Vahzl (23)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
require("scripts/globals/mis... | gpl-3.0 |
Zomis/FactorioMods | search-engine_0.0.1/v2/plugins/loops/loops.lua | 1 | 2814 | local loop_plugins = {
entities = {
provides = "entity",
controls = function()
return {
{
type = "drop-down",
ref = { "entity_type" },
items = {
"container", "storage-tank",
... | mit |
kjc88/sl4a | lua/luasocket/etc/qp.lua | 59 | 1025 | -----------------------------------------------------------------------------
-- Little program to convert to and from Quoted-Printable
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $Id: qp.lua,v 1.5 2004/06/17 21:46:22 diego Exp $
--------------------------------------------------------------------------... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm13.lua | 42 | 1872 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns Chloris
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
function... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Nti_Badolsoma.lua | 17 | 1071 | -----------------------------------
-- Area: Kazham
-- NPC: Nti Badolsoma
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
kankaristo/premake-core | src/actions/vstudio/vs2010_rules_xml.lua | 12 | 8363 | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.vs2010.rules.xml = {}
local m = premake.vstudio.vs2010.rules.xml
m.elements = {}
local p = premake
---
-- Entry point; generate the root <ProjectSch... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Talacca_Cove/npcs/_1l0.lua | 9 | 1865 | -----------------------------------
-- Area: Talacca_Cove
-- NPC: rock slab (corsair job flag quest)
-- @pos -99 -7 -91 57
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/RuLude_Gardens/npcs/Trail_Markings.lua | 7 | 3062 | -----------------------------------
-- Area: Rulude Gardens
-- NPC: Trail Markings
-- Dynamis-Jeuno Enter
-- @pos 35 9 -51 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
kankaristo/premake-core | tests/actions/make/cs/test_flags.lua | 16 | 1106 | --
-- tests/actions/make/cs/test_flags.lua
-- Tests compiler and linker flags for C# Makefiles.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_cs_flags")
local make = premake.make
local cs = premake.make.cs
local project = premake.project
--
-- Setup
--
local wk... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Empyreal_Paradox/mobs/Prishe.lua | 23 | 2622 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Prishe
-- Chains of Promathia 8-4 BCNM Fight
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-----------------------------------
-- onMobIn... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/m&p_dumpling.lua | 12 | 1257 | -----------------------------------------
-- ID: 5641
-- Item: M&P Dumpling
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Intelligence 5
-- Agility -5
-- MP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Misareaux/npcs/qm6.lua | 14 | 1354 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm6 (???)
-- Spawns Ironclad Observer
-- @pos ? ? ? 216
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,t... | gpl-3.0 |
flux-framework/flux-core | src/bindings/lua/Test/Builder.lua | 8 | 9606 |
--
-- lua-TestMore : <http://fperrad.github.com/lua-TestMore/>
--
local debug = require 'debug'
local io = require 'io'
local os = require 'os'
local error = error
local gsub = require 'string'.gsub
local match = require 'string'.match
local pairs = pairs
local pcall = pcall
local print = print
local rawget = rawget
... | lgpl-3.0 |
Scavenge/darkstar | scripts/zones/East_Ronfaure/mobs/Carrion_Worm.lua | 14 | 1036 | -----------------------------------
-- Area: East Ronfaure
-- MOB: Carrion Worm
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/East_Ronfaure/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, ... | gpl-3.0 |
yriveiro/nvim-files | lua/plugins/configs/cmp.lua | 1 | 4178 | local ok, cmp = pcall(require, 'cmp')
if not ok then
local u = require 'utils'
u.nok_plugin 'cmp'
return
end
local ok, luasnip = pcall(require, 'luasnip')
if not ok then
local u = require 'utils'
u.nok_plugin 'luasnip'
return
end
local ok, lspkind = pcall(require, 'lspkind')
if not ok then
local u = ... | mit |
Kyklas/luci-proto-hso | modules/base/luasrc/cbi/datatypes.lua | 62 | 6006 | --[[
LuCI - Configuration Bind Interface - Datatype Tests
(c) 2010 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... | apache-2.0 |
Scavenge/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm0_3.lua | 17 | 1169 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-... | gpl-3.0 |
Kyklas/luci-proto-hso | libs/rpcc/luasrc/rpcc/ruci.lua | 93 | 1432 | --[[
LuCIRPCc
(c) 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 util = require "luci.ut... | apache-2.0 |
sil3ntboyy/TGuard1.0.0 | plugins/arabic_lock.lua | 4 | 1379 | antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id)... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/chili/Controls/screen.lua | 2 | 7238 | Screen = Object:Inherit{
--Screen = Control:Inherit{
classname = 'screen',
x = 0,
y = 0,
width = 0,
height = 0,
preserveChildrenOrder = true,
activeControl = nil,
focusedControl = nil,
hoveredControl = nil,
currentTooltip = nil,
_lastHoveredControl = nil,
_lastClicked =... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/gfx_commands_fx.lua | 6 | 15810 | function widget:GetInfo()
return {
name = "Commands FX",
desc = "Adds glow-pulses wherever commands are queued. Including mapmarks.",
author = "Floris",
date = "14.04.2014",
license = "GNU GPL, v2 or later",
layer = 2,
enabled = true,
}
end
----... | gpl-2.0 |
xincun/nginx-openresty-windows | luajit-root/luajit/share/luajit-2.1.0-alpha/jit/dis_mips.lua | 17 | 13221 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | bsd-2-clause |
vahidazizi/golbarg | libs/lua-redis.lua | 1 | 35689 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
xincun/nginx-openresty-windows | lua-resty-core-0.1.1/lib/resty/core/ctx.lua | 9 | 1870 | -- Copyright (C) Yichun Zhang (agentzh)
local ffi = require 'ffi'
local debug = require 'debug'
local base = require "resty.core.base"
local misc = require "resty.core.misc"
local register_getter = misc.register_ngx_magic_key_getter
local register_setter = misc.register_ngx_magic_key_setter
local registry = debug.g... | bsd-2-clause |
Kyklas/luci-proto-hso | modules/base/luasrc/dispatcher.lua | 6 | 23596 | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | apache-2.0 |
devwawi/VIP-TEAM_Wawi8 | plugins/Welcome.lua | 1 | 2301 | do
local function vipteam1(msg,matches)
if matches[1] == "chat_add_user" then
local vipteam = 'Welcome 😊👋 in the group👥🔕'..'\n'..'\n'
..'⚜ψøuƦ ภค๓є🔰:'..msg.action.user.first_name..'\n'
..'⚜ψøuƦ ยรєгภค๓є🔰:: @'..(msg.action.user.username or "Not")..'\n'
..'⚜ψøuƦ 🆔 : '..msg.action.user... | agpl-3.0 |
LORDMEHDI/testertard | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
tempbottle/tundra | examples/static-shared/tundra.lua | 7 | 1119 | Build {
Env = {
CPPDEFS = {
{ "SHARED"; Config = "*-*-*-shared" }
},
},
Units = function ()
local lib_static = StaticLibrary {
Name = "foo_static",
Config = "*-*-*-static",
Sources = { "lib.c" },
}
local lib_shared = SharedLibrary {
Name = "foo_shared",
Con... | gpl-3.0 |
rucas/derpfiles | neovim/lua/plugins/nvim-dap/init.lua | 1 | 1587 | local utils = require("utils")
local present, dap = pcall(require, "dap")
if not present then
return
end
require("nvim-dap-virtual-text").setup()
dap.adapters.python = {
type = "executable",
command = "/Users/lucas.rondenet/.pyenv/versions/neovim0.5/bin/python",
args = { "-m", "debugpy.adapter" },
}
-- TODO mak... | mit |
Scavenge/darkstar | scripts/globals/items/piece_of_kusamochi_+1.lua | 12 | 2086 | -----------------------------------------
-- ID: 6263
-- Item: kusamochi+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP + 30 (Pet & Master)
-- Vitality + 4 (Pet & Master)
-- Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-- Ranged Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-... | gpl-3.0 |
seblindfors/ConsolePort | ConsolePort_Keyboard/Components/Suggester.lua | 1 | 1818 | local Suggester, _, env = ConsolePortKeyboard.WordSuggester, ...;
local widgetPool, suggestions = CreateFramePool('Button', Suggester, 'ConsolePortKeyboardWordButton'), {};
---------------------------------------------------------------
local MAX_DISPLAY_ENTRIES, WIDGET_HEIGHT = 8, 20;
---------------------------------... | artistic-2.0 |
MicroTrustRepos/microkernel | src/l4/pkg/ankh/doc/ankh.lua | 2 | 3925 | -- vi: set et
package.path = "rom/?.lua";
require ("Aw");
local ldr = L4.default_loader;
local ankh_vbus;
local shm_morpork, shm_morping, shm_morpong;
function ankh_channels()
ankh_vbus = ldr:new_channel();
shm_morpork = ldr:create_namespace({});
shm_morping = ldr:create_namespace({});
shm_morpong = ... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/weaponskills/heavy_shot.lua | 15 | 1354 | -----------------------------------
-- Heavy Shot
-- Marksmanship weapon skill
-- Skill Level: 225
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:30%
-- 100%TP ... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/silence.lua | 6 | 1269 | -----------------------------------------
-- Spell: Silence
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
BibakBangTeam/Tabchi | tdcli.lua | 12 | 80423 | --[[
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 later version.
This program is distributed in the hope that it wi... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/homura_+1.lua | 41 | 1068 | -----------------------------------------
-- ID: 16986
-- Item: Homura +1
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
----------------------------------... | gpl-3.0 |
caranicas/ThreeJS-Boilerplate | components/ammo.js/bullet/Demos/premake4.lua | 5 | 3084 |
function createDemos( demos, incdirs, linknames)
for _, name in ipairs(demos) do
project ( "App_" .. name )
kind "ConsoleApp"
targetdir ".."
includedirs {incdirs}
configuration { "Windows" }
defines { "GLEW_STATIC"}
links { "opengl32" }
includedirs{ "../... | mit |
Scavenge/darkstar | scripts/zones/Nashmau/npcs/HomePoint#1.lua | 27 | 1255 | -----------------------------------
-- Area: Nashmau
-- NPC: HomePoint#1
-- @pos -19.860 0.001 -25.441 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/homepoint");
--... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/plate_of_ratatouille.lua | 12 | 1501 | -----------------------------------------
-- ID: 5731
-- Item: plate_of_ratatouille
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Agility 5
-- Evasion 5
-- HP recovered while healing 2
-- MP recovered while healing 2
-- Undead Killer 5
-----------------------------------------
require("s... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | gamedata/modularcomms/weapons/shotgun.lua | 6 | 1494 | local name = "commweapon_shotgun"
local weaponDef = {
name = [[Shotgun]],
areaOfEffect = 32,
burst = 3,
burstRate = 0.03,
coreThickness = 0.5,
craterBoost = 0,
craterMult = 0,
customParams = {
slot = [... | gpl-2.0 |
roboplus12/roboplus | plugins/translate.lua | 674 | 1637 |
--[[
-- 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 |
purebn/secure | plugins/translate.lua | 674 | 1637 |
--[[
-- 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 |
Zero-K-Experiments/Zero-K-Experiments | scripts/panther.lua | 9 | 5949 | -- linear constant 65536
include "constants.lua"
local main, nose, nosefan1, nosefan2,
turret, sleeve, barrel1, flare1, barrel2, flare2,
sparkcenter, sparkcenter2,
door1, door2, rud1, rud2, mainfan1, mainfan2,
wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7,
tracks1, tracks2, tracks3, tracks4 =
piece('m... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/rolanberry.lua | 12 | 1184 | -----------------------------------------
-- ID: 4365
-- Item: rolanberry
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -4
-- Intelligence 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
OpenPrograms/mpmxyz-Programs | usr/lib/mpm/values.lua | 3 | 4526 | -----------------------------------------------------
--name : lib/mpm/hashset.lua
--description: allows using raw values or getters for the same property
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : none
-----------------------------------------------------
local valu... | mit |
Scavenge/darkstar | scripts/zones/Yorcia_Weald_U/Zone.lua | 17 | 1097 | -----------------------------------
--
-- Zone: Yorcia Weald U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald_U/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald_U/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Western_Adoulin/npcs/Oka_Qhantari.lua | 14 | 1311 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Oka Qhantari
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'Order Up'
-- @zone 256
-- @pos -30 3 -6
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Lower_Jeuno/npcs/Guttrix.lua | 13 | 4107 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Guttrix
-- Starts and Finishes Quest: The Goblin Tailor
-- @zone 245
-- @pos -36.010 4.499 -139.714
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Temenos/mobs/Earth_Elemental.lua | 28 | 1790 | -----------------------------------
-- Area: Temenos E T
-- NPC: Earth_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#2.lua | 27 | 1266 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#2
-- @pos 107 -5 -56 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
rm-code/lofivi | src/graph/File.lua | 1 | 4597 | local File = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local ANIM_TIMER = 3.5;
-- ------------------------------------------------
-- Constructor
-- ------------------------------------------------
---
-- Creates a new File object.
-- @p... | mit |
Zero-K-Experiments/Zero-K-Experiments | scripts/amphfloater.lua | 9 | 8887 | --linear constant 65536
include "constants.lua"
local base, head, body, barrel, firepoint = piece('base', 'head', 'body', 'barrel', 'firepoint')
local rthigh, rshin, rfoot, lthigh, lshin, lfoot = piece('rthigh', 'rshin', 'rfoot', 'lthigh', 'lshin', 'lfoot')
local vent1, vent2, vent3 = piece('vent1', 'vent2', 'vent3')... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Hilda.lua | 26 | 5026 | -----------------------------------
-- Area: Port Bastok
-- NPC: Hilda
-- Involved in Quest: Cid's Secret, Riding on the Clouds
-- Starts & Finishes: The Usual
-- @pos -163 -8 13 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/beef_stewpot.lua | 12 | 1752 | -----------------------------------------
-- ID: 5547
-- Item: Beef Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Attack +18% Cap 40
-- Evasion +5
--------------------... | gpl-3.0 |
TingPing/plugins | HexChat/zncbuffer.lua | 1 | 1348 | -- SPDX-License-Identifier: MIT
hexchat.register('ZNC Buffers', '1', 'Add menu options to manage ZNC buffers')
-- Add menus
hexchat.command('menu -p4 add "$TAB/ZNC"')
hexchat.command('menu add "$TAB/ZNC/Clear Buffer" ".zncclearbuffer %s"')
hexchat.command('menu add "$TAB/ZNC/Play Buffer" "znc playbuffer %s"')
hexchat.... | mit |
Scavenge/darkstar | scripts/zones/Cloister_of_Tides/npcs/Water_Protocrystal.lua | 14 | 1950 | -----------------------------------
-- Area: Cloister of Tides
-- NPC: Water Protocrystal
-- Involved in Quests: Trial by Water, Trial Size Trial by Water
-- @pos 560 36 560 211
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-------------------------------------
r... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.