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
jshackley/darkstar
scripts/zones/Northern_San_dOria/npcs/Miaux.lua
19
6494
----------------------------------- -- Area: Northern San d'Oria -- NPC: Miaux -- Type: Quest Giver -- @pos -169.127 2.999 158.677 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
Victek/wrt1900ac-aa
veriksystems/luci-0.11/applications/luci-pbx/luasrc/model/cbi/pbx-users.lua
146
5623
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
gpl-2.0
jshackley/darkstar
scripts/zones/Cloister_of_Tides/Zone.lua
32
1658
----------------------------------- -- -- Zone: Cloister_of_Tides (211) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Tides/TextIDs"); ------...
gpl-3.0
BeyondTeam/TeleBeyond
plugins/inpm.lua
1
9366
local function pre_process(msg) local to = msg.to.type local service = msg.service if to == 'user' and msg.fwd_from then if not is_support(msg.from.id) and not is_admin1(msg) then return end local user = 'user#id'..msg.from.id local from_id = msg.fwd_from.peer_id if msg.fwd_from.first_name then from_f...
agpl-3.0
jan0sch/Ion3
mod_query/mod_query_chdir.lua
7
1311
-- -- ion/query/mod_query_chdir.lua -- -- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- local function simplify_path(path) local npath=string.gsub(path, "([^/]+)/+%.%./+", "") if npath~=path then return simplify_path(npath) else return string....
lgpl-2.1
jshackley/darkstar
scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua
19
1200
----------------------------------- -- Area: Ifrit's Cauldron -- NPC: HomePoint#1 -- @pos -63 50 81 205 ----------------------------------- package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Ifrits_Cauldron/TextIDs"); require("scripts/globals/ho...
gpl-3.0
jshackley/darkstar
scripts/zones/Norg/npcs/Ryoma.lua
17
3886
----------------------------------- -- Area: Norg -- NPC: Ryoma -- Start and Finish Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- Involved in Quest: Ayame and Kaede -- @pos -23 0 -9 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; --------------------...
gpl-3.0
LiberatorUSA/GUCEF
projects/premake5/targets/GUCEF_exe_MyGUI.FontViewer/premake5.lua
1
1754
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
apache-2.0
jshackley/darkstar
scripts/globals/spells/esuna.lua
33
4143
----------------------------------------- -- Spell: Esuna -- ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spel...
gpl-3.0
knipferrc/dotfiles
nvim/lua/user/nvim-tree.lua
1
2349
local status_ok, nvim_tree = pcall(require, "nvim-tree") if not status_ok then return end local config_status_ok = pcall(require, "nvim-tree.config") if not config_status_ok then return end nvim_tree.setup { auto_reload_on_write = true, disable_netrw = false, hijack_cursor = false, hijack_netrw = true, ...
mit
goksie/newfies-dialer
lua/callcenter_conf.lua
4
4806
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2014 Star2Billing S.L. -- --...
mpl-2.0
jshackley/darkstar
scripts/globals/mobskills/Hexidiscs.lua
18
1123
--------------------------------------------- -- Hexidiscs -- -- Description: A sixfold attack damages targets in a fan-shaped area of effect. -- Type: Physical -- Utsusemi/Blink absorb: 6 shadows -- Range: Unknown cone -- Notes: Only used in "ball" form. --------------------------------------------- req...
gpl-3.0
LuaDist/lua-uri
test/_util.lua
1
2963
require "uri-test" local Util = require "uri._util" local testcase = TestCase("Test utility functions in 'uri._util' module") function testcase:test_metadata () is("uri._util", Util._NAME) end function testcase:test_uri_encode () is("%7Cabc%E5", Util.uri_encode("|abc\229")) is("a%62%63", Util.uri_encode("...
mit
coderczp/luajava
test/testMemory.lua
8
1169
------------------------------------------------------ -- Creates a lot of objects to check if the -- used memory keeps stable ------------------------------------------------------ local runtime = luajava.bindClass("java.lang.Runtime"):getRuntime() function doGc(event, lineNumber) if event == "count" then...
mit
jshackley/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rs.lua
17
1623
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: Oil lamp -- @pos -60 -23 60 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Phomiuna...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/quests/temple-of-creation.lua
3
4420
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Windurst_Woods/npcs/Sariale.lua
1
1262
----------------------------------- -- Area: Windurst Woods -- NPC: Sariale -- Chocobo Vendor ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action ----------------------------------- function...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/World2In1/NotItemPage.lua
1
2024
--[[ Title: NotItemPage Author(s): yangguiyi Date: 2021/6/18 Desc: Use Lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/World2In1/NotItemPage.lua").Show(); --]] local NotItemPage = NPL.export(); NPL.load("(gl)script/apps/Aries/Creator/Game/Commands/Comman...
gpl-2.0
JonasJurczok/faketorio
spec/build_spec.lua
1
4595
describe("Test the build functionality #build", function() lazy_setup(function() require("faketorio.lib") faketorio.lfs.mkdir("src/for_test") local file = io.open("src/for_test/blub.lua", "w") file:write("asdasd") file:close() faketorio.lfs.mkdir("locale") ...
mit
Joshalexjacobs/fantastic-guacamole
levels/levelsDictionary.lua
1
11048
-- levelsDictionary.lua -- fairies = {} local dictionary = { { name = "1-2", playerSkinV = "img/player/marine2BIG.png", -- vertical playerSkinH = "img/player/marineHorizontalBIG.png", -- horizontal tilemap = "tiled/New Level2.lua", startPos = 140, -- player's starting posit...
mit
pakoito/ToME---t-engine4
game/modules/tome/data/general/objects/egos/gloves.lua
2
23124
-- 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 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful...
gpl-3.0
Grocel/wire-extras
lua/entities/gmod_wire_rfid_reader_act/init.lua
4
4118
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "RFID User Reader" local MODEL = Model("models/jaanus/wiretool/wiretool_siren.mdl") function ENT:Initialize() self:SetModel( MODEL ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPH...
apache-2.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/contrib/luasrcdiet/lua/optlex.lua
125
31588
--[[-------------------------------------------------------------------- optlex.lua: does lexer-based optimizations This file is part of LuaSrcDiet. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the Chan...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/West_Ronfaure/npcs/qm1.lua
1
1571
----------------------------------- -- Area: West Ronfaure -- NPC: ??? -- NPC for Quest "The Dismayed Customer" ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); packag...
gpl-3.0
RyMarq/Zero-K
units/cloakskirm.lua
1
3784
return { cloakskirm = { unitname = [[cloakskirm]], name = [[Ronin]], description = [[Skirmisher Bot (Direct-Fire)]], acceleration = 0.9, brakeRate = 1.2, buildCostMetal = 90, buildPic = [[cloakskirm.png]], canGuard ...
gpl-2.0
derkling/dotfiles
awesome/lain/widgets/borderbox.lua
6
1624
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2010-2012, Peter Hofmann --]] local wibox = require("awful.wibox") local se...
mit
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/resistance_torso_heavy_gtm_1.meta.lua
2
2771
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 0.40000000596046448, amplification = 100, light_colors = { "223 113 38 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, generate_desaturation = fals...
agpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Tavnazian_Safehold/npcs/Migran.lua
37
1542
----------------------------------- -- Area: Tavnasian Safehold -- NPC: Migran -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs"); ----------------...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/TeleportPlayerTask.lua
1
8579
--[[ Title: Teleport the player Author(s): LiXizhi Date: 2013/1/20 Desc: Teleport the player to a given position. use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/TeleportPlayerTask.lua"); local task = MyCompany.Aries.Game.Tasks.TeleportPlayer...
gpl-2.0
TerminalShell/zombiesurvival
gamemode/zombieclasses/boss_blaze.lua
1
1909
CLASS.Name = "Blaze Cadaver" CLASS.Base = "boss_nightmare" CLASS.Description = "Flaming and filled with rage, the Blaze Cadaver chases its prey outside of barricades with swift speed.\nIt wields the ability to fling fire and surge through the air." CLASS.Help = "> PRIMARY: Throw Fire\n> SECONDARY: Surge" CLASS.Health ...
gpl-3.0
eXhausted/Ovale
Scripts.lua
1
10285
--[[-------------------------------------------------------------------- Copyright (C) 2013, 2014 Johnny C. Lam. See the file LICENSE.txt for copying permission. --]]-------------------------------------------------------------------- -- This addon is a script repository. local OVALE, Ovale = ... local OvaleS...
mit
fyrchik/xlua
exercises/rectangles/example.lua
3
2138
local combinations local function generate_combinations(a, n, offset) if n > (#a - offset) then return end if n == 0 then coroutine.yield({}) return end for v in combinations(a, n - 1, offset + 1) do table.insert(v, 1, a[1 + offset]) coroutine.yield(v) end for v in combinations(a, ...
mit
pakoito/ToME---t-engine4
game/modules/tome/data/texts/unlock-mage_pyromancer.lua
3
1656
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
purebn/ShadowBot
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
Aminrezaa/megareborn
plugins/report.lua
4
1671
-- Begin report.lua local function run(msg, matches) local ldata = load_data(_config.moderation.data) if matches[1]:lower() == 'setmaster' and is_admin(msg) then local idmas = matches[2] local chk = ldata[tostring(msg.chat_id_)]["master"] if chk then ldata[tostring(msg.chat_id_)]["master"]["id"] = idmas ...
gpl-3.0
SammyJames/LootDrop
Libs/UTF8/utf8.lua
2
8486
-- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ -- -- Provides UTF-8 aware string functions implemented in pure lua: -- * string.utf8len(s) -- * string.utf8sub(s, i, j) -- * string.utf8reverse(s) -- -- If utf8data.lua (containing the lower<->upper case mappings) is loaded, these -- additional functions are av...
mit
RyMarq/Zero-K
units/subraider.lua
1
5527
return { subraider = { unitname = [[subraider]], name = [[Seawolf]], description = [[Attack Submarine (Stealth Raider)]], acceleration = 0.3, activateWhenBuilt = true, brakeRate = 2.0, buildCostMetal = 220, builder ...
gpl-2.0
madpilot78/ntopng
scripts/lua/modules/fingerprint_utils.lua
1
3654
-- -- (C) 2013-21 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" -- ##################################################################### local fingerprint_utils = {} -- ###################################################...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Southern_San_dOria/npcs/Rumoie.lua
1
1498
----------------------------------- -- Area: Southern San d'Oria -- NPC: Rumoie -- Type: Map Marker NPC -- @zone: 230 -- @pos: 149.696 -2.000 151.631 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
knixeur/notion
contrib/scripts/query_url.lua
6
2456
-- Authors: Reuben Thomas <rrt@sc3d.org> -- License: GPL, version 2 -- Last Changed: 2005 -- -- Prompt for a URL and open it -- Use Opera bookmarks for completion -- (c) Reuben Thomas 2005 (rrt@sc3d.org); released under the GPL -- -- Completes on full URL, name of bookmark, or URL with initial http[s]://[www.] stripped...
lgpl-2.1
mysql/mysql-proxy
tests/suite/base/t/bug_35669-test.lua
4
2155
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2012, 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
RyMarq/Zero-K
effects/sonic.lua
1
3995
local fx = { ['sonic'] = { groundflash = { air = true, underwater = true, circlealpha = 0.6, circlegrowth = 2, flashalpha = 0.9, flashsize = 20, ground = true, ttl = 10, unit ...
gpl-2.0
jsj2008/ValyriaTear
img/sprites/map/npcs/story/carson_walk.lua
4
1988
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; local ANIM_WEST = vt_map.MapMode.ANI...
gpl-2.0
crazyboy11/spol
plugins/setsticker.lua
3
1255
do local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'sticker.webp' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_document(get_receiver(msg), file, ok_cb, false) send_large_msg(receive...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/hedgehog_pie.lua
1
1902
----------------------------------------- -- ID: 5146 -- Item: hedgehog_pie -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 55 -- Strength 6 -- Vitality 2 -- Intelligence -3 -- Mind 3 -- Magic Regen While Healing 2 -- Attack % 18 -- Attack Cap 90 -- Accuracy 5 -- Rang...
gpl-3.0
lyzardiar/seal2d
libs/lua-socket/test/urltest.lua
30
17349
local socket = require("socket") socket.url = require("socket.url") dofile("testsupport.lua") local check_build_url = function(parsed) local built = socket.url.build(parsed) if built ~= parsed.url then print("built is different from expected") print(built) print(expected) os.exi...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Port_Windurst/npcs/Jack_of_Clubs.lua
35
1236
----------------------------------- -- Area: Port Windurst -- NPC: Jack of Clubs -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/TextIDs"); ...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/example/data/rooms/simple.lua
7
1395
-- ToME - Tales of Middle-Earth -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any la...
gpl-3.0
rubenvb/skia
tools/lua/paths.lua
92
3129
-- -- Copyright 2014 Google Inc. -- -- Use of this source code is governed by a BSD-style license that can be -- found in the LICENSE file. -- -- Path scraping script. -- This script is designed to count the number of times we fall back to software -- rendering for a path in a given SKP. However, this script does not ...
bsd-3-clause
matin-igdery/og
plugins/plugins.lua
25
6122
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
RyMarq/Zero-K
LuaUI/Configs/tipconfig.lua
1
6812
local THRESHOLD_EXPENSIVE = 800 --seconds TIMER_EXPENSIVE_UNITS = 60 * 10 TIMER_ADV_FACTORY = 60 * 15 TIMER_SUPERWEAPON = 60 * 30 stringExpensiveUnits = "That <name> is particularly expensive; at this point, cheaper units offer far more flexibility. You should probably save that for later." stringAdvFactory = "That <...
gpl-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/chats/keepsake-kyless-death.lua
3
1849
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
Grocel/wire-extras
lua/entities/gmod_wire_rtcam/cl_init.lua
4
2003
/******************************* Wired RT Camera for Wiremod (C) Sebastian J. ********************************/ local cl_drawcameras = CreateConVar( "cl_drawcameras", "1" ) ENT.Spawnable = false ENT.AdminSpawnable = false local E_PLAYER = 0 local E_TRACK = 1 local V_TRACK = 0 /*--...
apache-2.0
abasshacker/abbasgh
plugins/inpm.lua
243
3007
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
DashingStrike/Automato-ATITD
scripts/ToxinKitchen.lua
1
18671
-- Ashen's improved Toxin Kitchen macro -- Make All The Toxins -- TODO: Support making EoG Serum with alternative ingredients -- TODO: Support multiple kitchens dofile("common.inc"); -- Names of products to list in menu AUTOMENU = { "Eye of God Serum", "Nut's Essence", "Milky Solvent", "Clear Solvent", "Glass So...
mit
kellabyte/snabbswitch
src/core/shm.lua
7
6493
-- shm.lua -- shared memory alternative to ffi.new() -- API: -- shm.map(name, type[, readonly]) => ptr -- Map a shared object into memory via a heirarchical name. -- shm.unmap(ptr) -- Delete a memory mapping. -- shm.unlink(path) -- Unlink a subtree of objects from the filesystem. -- -- (See NAME SYNT...
apache-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/zones/unhallowed-morass/objects.lua
6
1628
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
RyMarq/Zero-K
LuaUI/Widgets/gfx_projectile_lights.lua
1
16799
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Projectile Lights", version = 3, desc = "Collects projectiles and sends them to the deferred re...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Northern_San_dOria/npcs/Olbergieut.lua
1
2070
----------------------------------- -- Area: Northern San d'Oria -- NPC: Olbergieut -- Quest NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); r...
gpl-3.0
SlNPacifist/ProDBG
bin/macosx/tundra/scripts/tundra/boot.lua
25
4138
module(..., package.seeall) -- Use "strict" when developing to flag accesses to nil global variables -- This has very low perf impact (<0.1%), so always leave it on. require "strict" local os = require "os" local platform = require "tundra.platform" local util = require "tundra.util" local depgraph = re...
mit
vince06fr/prosody-modules
mod_tcpproxy/mod_tcpproxy.lua
31
3923
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
mit
mdombroski/libui-lua
examples/control-gallery.lua
1
6521
local ui = require "libui" local menu = ui.NewMenu( "File" ) menu:AppendItem( "Open" ) :OnClicked( function( m, w ) local filename = ui.OpenFile( w ) w:SetTitle( filename or "" ) if not filename then ui.MsgBoxError( w, "No file selected", "Don't be alarmed!" ...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Aht_Urhgan_Whitegate/npcs/Riyadahf.lua
1
1941
----------------------------------- -- Area: Aht'Urhgan Whitegate -- NPC: Riyadahf -- Map Seller NPC ----------------------------------- package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Aht_Urhgan_Whitegate/textids")...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/loaf_of_pumpernickel.lua
1
1136
----------------------------------------- -- ID: 4591 -- Item: loaf_of_pumpernickel -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 10 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
TerminalShell/zombiesurvival
entities/entities/prop_weapon/init.lua
1
2313
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") AddCSLuaFile("animations.lua") include("shared.lua") ENT.CleanupPriority = 1 function ENT:SetClip1(ammo) self.m_Clip1 = tonumber(ammo) or self:GetClip1() end function ENT:GetClip1() return self.m_Clip1 or 0 end function ENT:SetClip2(ammo) self.m_Clip2 = ton...
gpl-3.0
salehvw0011/stfbot
plugins/Anti_Spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
RyMarq/Zero-K
LuaRules/Gadgets/unit_turn.lua
3
3937
function gadget:GetInfo() return { name = "Turn Command", desc = "Implements Turn command for vehicles", author = "FLOZi, yuritch", -- yuritch is magical date = "5/02/10", license = "PD", layer = -5, enabled = false -- loaded by default? } end include("LuaRules/Configs/custo...
gpl-2.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/orange_fish_5.meta.lua
16
1592
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 80, light_colors = { "255 102 0 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = {...
agpl-3.0
vince06fr/prosody-modules
mod_s2s_idle_timeout/mod_s2s_idle_timeout.lua
32
1590
local now = os.time; local s2smanager = require "core.s2smanager"; local timer = require "util.timer"; local s2s_sessions = setmetatable({}, { __mode = "kv" }); local idle_timeout = module:get_option("s2s_idle_timeout") or 300; local check_interval = math.ceil(idle_timeout * 0.75); local function install_checks(ses...
mit
pakoito/ToME---t-engine4
game/modules/tome/data/gfx/shaders/healing.lua
3
1390
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any ...
gpl-3.0
flyzjhz/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua
78
1344
--[[ Luci configuration model for statistics - collectd dns plugin configuration (c) 2008 Freifunk Leipzig / 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 a...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/CreatorNodeProcessor.lua
1
2028
--[[ Title: Author(s): Leio Date: 2009/11/8 use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/CreatorNodeProcessor.lua"); ------------------------------------------------------- ]] NPL.load("(gl)script/ide/commonlib.lua"); NPL.load("(gl)script/ide/Display...
gpl-2.0
madpilot78/ntopng
attic/scripts/callbacks/interface/flow.lua
2
17118
-- -- (C) 2019-21 - ntop.org -- -- The functions below are called with a LuaC "flow" context set. -- See user_scripts.load() documentation for information -- on adding custom scripts. -- -- NOTE: this script is loaded once and cached into the vm and then invoked -- multiple times. The setup() function is only called wi...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Sound/SoundManager.lua
1
16491
--[[ Title: Sound Manager Author(s): LiXizhi Date: 2014/6/20 Desc: Sound Manager for 3D (Moving) Entities use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Sound/SoundManager.lua"); local SoundManager = commonlib.gettable("MyCompany.Aries.Game.Sound.S...
gpl-2.0
NPLPackages/paracraft
script/kids/3DMapSystemUI/Desktop/Cursor.lua
1
4476
--[[ Title: cursor functions Author(s): LiXizhi Date: 2011.9.5 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/kids/3DMapSystemUI/Desktop/Cursor.lua"); local Cursor = commonlib.gettable("Map3DSystem.UI.Cursor"); Cursor.ApplyCursor(cursor_name, filename, hot_x, hot_y...
gpl-2.0
adde88/Nerdpack-Zylla
rotations/hunter/survival.lua
1
10384
local _, Zylla = ... local unpack = _G.unpack local NeP = _G.NeP local Mythic_Plus = _G.Zylla.Mythic_Plus local GUI = { unpack(Zylla.Logo_GUI), -- Header {type = 'header', size = 16, text = 'Keybinds', align = 'center'}, {type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..'Pause|...
mit
chentz78/LuaTools
tests/testSet.lua
1
3314
local Set = require("Set") context("Basic Set tests", function() test("Basic properties of Empty Set", function() local s1, s2, s3 = Set.new{}, Set.new(), Set.new() assert_equal(s1:card(), 0) assert_equal(s2:card(), 0) assert_equal(#s1, #s2) assert_true(s1 == s2) --Equality assert_tr...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/general/objects/elixir-ingredients.lua
3
18918
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Rabao/npcs/Ashu_Bolkhomo.lua
1
1815
----------------------------------- -- Area: Rabao -- NPC: Ashu Bolkhomo -- Map Seller NPC ----------------------------------- package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Rabao/textids"); require("scripts/globa...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/talents/chronomancy/guardian.lua
2
8175
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
DashingStrike/Automato-ATITD
scripts/wood.lua
2
2791
-- Updated by Manon for T8 beta -- Updated by Huggz for T8 proper -- dofile("screen_reader_common.inc"); dofile("ui_utils.inc"); delay_time = 3000; total_delay_time = 300000; carrot_delay_time = 10*60*1000; function doit() carrot_timer = lsGetTimer(); askForWindow("Pin 5-10 tree windows, will click them VERTICALLY...
mit
pakoito/ToME---t-engine4
game/modules/example_realtime/init.lua
3
1227
-- ToME - Tales of Middle-Earth -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any la...
gpl-3.0
SlNPacifist/ProDBG
units.plugins.lua
2
8756
require "tundra.syntax.glob" require "tundra.path" require "tundra.util" require "tundra.syntax.rust-cargo" local native = require('tundra.native') ----------------------------------------------------------------------------------------------------------------------- local function get_rs_src(dir) return Glob { D...
mit
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/datum_gun_magazine.meta.lua
2
2239
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 130, light_colors = { "0 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, generate_desaturation = false }, offsets = ...
agpl-3.0
ramin65/ub-ub
plugins/chatbot.lua
21
2121
local function run(msg) if msg.text == "یاقی" then return "کی اسم سازندمو صدا زد؟" end if msg.text == "Umbrella" then return "کیر نود32 هم نی" end if msg.text == "umbrella" then return "کیر نود32 هم نی" end if msg.text == "نود32" then return "hum?" end if msg.text == "اسپم" then return "کس ننت میذارم بخای اسپم کن...
gpl-2.0
Grocel/wire-extras
lua/entities/gmod_wire_rfid_reader_beam/init.lua
4
3181
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "RFID Beam Reader" local MODEL = Model("models/jaanus/wiretool/wiretool_range.mdl") function ENT:Initialize() self:SetModel( MODEL ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPH...
apache-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/gfx/particles/dust_trail.lua
3
1830
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later ...
gpl-3.0
RyMarq/Zero-K
scripts/shieldscout.lua
2
6348
include 'constants.lua' include "JumpRetreat.lua" local pelvis = piece 'pelvis' local pole = piece 'pole' local aimpitch = piece 'aimpitch' local aimyaw = piece 'aimyaw' local lthigh, lcalf, lfoot = piece('lthigh', 'lcalf', 'lfoot') local rthigh, rcalf, rfoot = piece('rthigh', 'rcalf', 'rfoot') local leftLeg = { thigh...
gpl-2.0
pakoito/ToME---t-engine4
src/lzlib/test_gzip.lua
3
1540
local gzip = require 'gzip' local function line(header, c) header = header or '' c = c or '-' print(string.rep(string.sub(c, 1, 1), 78 - string.len(header))..header) end line(' gzip', '=') line(' gzip writing') local loops = 1000 local testfile = "test.gz" local of = gzip.open(testfile, "wb9") if (no...
gpl-3.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/pixel_thunder_2.meta.lua
10
1900
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 500, light_colors = { "255 255 255 255" }, radius = { x = 50, y = 50 }, standard_deviation = 5 }, generate_desaturation = false }, offsets ...
agpl-3.0
DashingStrike/Automato-ATITD
scripts/apiary.lua
1
4138
-- apiary.lua v1.12 -- by Cegaiel. Credits to Tallow for bits of code taken from simon.lua -- -- Checks and Takes everything, from all of your apiaries. -- It sends the 'C' (Check) key over each one, waits for the OK box to disappear, then sends the 'T' to take. -- Make sure chat is minimized! -- dofile("common.inc")...
mit
pixeljetstream/luajit_gfx_sandbox
runtime/lua/socket/headers.lua
133
3698
----------------------------------------------------------------------------- -- Canonic header field capitalization -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- local socket = require("socket") socket.headers = {} local _M = socket.headers ...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Metalworks/npcs/Mighty_Fist.lua
1
2211
----------------------------------- -- Area: Metalworks -- NPC: Mighty Fist -- Starts & Finishes Repeatable Quest: The Darksmith ----------------------------------- package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); package.loaded["scripts/z...
gpl-3.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool.lua
69
15320
--[[ Luci statistics - rrdtool interface library / diagram model interpreter (c) 2008 Freifunk Leipzig / 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 ...
gpl-2.0
madpilot78/ntopng
scripts/callbacks/system/minute.lua
1
1397
-- -- (C) 2013-21 - 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 local scripts_triggers = require "scripts_triggers" local prefs_dump_utils = require "prefs_...
gpl-3.0
RyMarq/Zero-K
units/jumpassault.lua
1
3663
return { jumpassault = { unitname = [[jumpassault]], name = [[Jack]], description = [[Melee Assault Jumper]], acceleration = 0.48, brakeRate = 1.2, buildCostMetal = 600, builder = false, buildPic = [[jumpassault.png]], canG...
gpl-2.0
RyMarq/Zero-K
lups/ParticleClasses/NanoParticles.lua
8
14239
-- $Id: NanoParticles.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local NanoParticles = {} NanoPart...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Commands/CommandTerrain.lua
1
3501
--[[ Title: Command Terrain Author(s): LiXizhi Date: 2021/4/29 Desc: use the lib: ------------------------------------------------------------ ------------------------------------------------------- ]] NPL.load("(gl)script/ide/STL.lua"); NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/UndoManager.lua"); NPL.load("(...
gpl-2.0
eriche2016/nn
SpatialConvolution.lua
2
5080
local THNN = require 'nn.THNN' local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane =...
bsd-3-clause
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Areas/BlockMinimap.lua
1
8301
--[[ Title: Block Minimap Author(s): LiXizhi Date: 2013/6/22 Desc: block minimap Use Lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Areas/BlockMinimap.lua"); local BlockMinimap = commonlib.gettable("MyCompany.Aries.Creator.Game.Desktop.BlockMinimap"); BlockMi...
gpl-2.0