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 |
|---|---|---|---|---|---|
UserXYZ/nodemcu-httpserver | http/node_info.lua | 1 | 1316 | local function sendHeader(connection)
connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n")
end
local function sendAttr(connection, attr, val)
connection:send("<li><b>".. attr .. ":</b> " .. val .. "<br></li>\n")
end
return function (connection, args)
coll... | gpl-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/methods.lua | 18 | 7907 | -- this creates types with methods
-- cannot do this in types as the functions have not been defined yet (as they depend on types)
-- well we could, by passing in the empty table for S, but this is more modular
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall... | apache-2.0 |
xToken/CompMod | lua/CompMod/Damage/shared.lua | 1 | 2923 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Damage\shared.lua
-- - Dragon
-- DAMAGE TYPE NOTES
-- Only these are in play anymore
-- Normal (Normal? :D)
-- HalfStructural (Half to Structures)
-- Structural (Double to Structures)
-- TripleStructural (Tri... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua | 4 | 1481 | -----------------------------------
-- 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/gl... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Charmealaut.lua | 38 | 1045 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Charmealaut
-- Type: Merchant
-- @zone: 231
-- @pos 0.000 -0.501 29.303
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Tilala.lua | 17 | 1188 | -----------------------------------
-- Area: Selbina
-- NPC: Tilala
-- Guild Merchant NPC: Clothcrafting Guild
-- @pos 14.344 -7.912 10.276 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
satreix/awesome | vicious/widgets/volume.lua | 6 | 1380 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
... | mit |
sjznxd/luci-0.11-aa | applications/luci-asterisk/luasrc/asterisk.lua | 12 | 18089 | --[[
LuCI - Lua Configuration Interface
Asterisk PBX interface library
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/licen... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/pipeworks/wielder.lua | 8 | 17203 | local assumed_eye_pos = vector.new(0, 1.5, 0)
local function vector_copy(v)
return { x = v.x, y = v.y, z = v.z }
end
local function delay(x)
return (function() return x end)
end
local function set_wielder_formspec(data, meta)
meta:set_string("formspec",
"invsize[8,"..(6+data.wield_inv_height)..";]"..
"item_... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Arrapago_Remnants/Zone.lua | 36 | 1128 | -----------------------------------
--
-- Zone: Arrapago_Remnants
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Arrapago_Remnants/TextIDs"] = nil;
require("scripts/zones/Arrapago_Remnants/TextIDs");
-----------------------------------
-- onInit... | gpl-3.0 |
Godfather021/seed | plugins/banhammer.lua | 1 | 11866 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if siked user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local siked = ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temple_of_Uggalepih/npcs/qm1.lua | 19 | 1074 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ??? (Tonberry Rattle ITEM)
-- @pos 269 0 91 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Temple_of_Uggalepih/TextIDs... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Jugner_Forest/npcs/Pure_Heart_IM.lua | 8 | 2940 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Pure Heart, I.M.
-- Type: Border Conquest Guards
-- @pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest"... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Troglodyte_Dhalmel.lua | 17 | 1279 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Troglodyte Dhalmel
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------... | gpl-3.0 |
JulianVolodia/awesome | lib/wibox/init.lua | 3 | 5297 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox
---------------------------------------------------------------------------
local capi = {
drawin = drawin,
root = root,
a... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/emerald_quiche.lua | 35 | 1399 | -----------------------------------------
-- ID: 5171
-- Item: emerald_quiche
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 15
-- Agility 1
-- Ranged ACC % 7
-- Ranged ACC Cap 20
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
Aethaeryn/wesnoth-umc | Aethaeryns_Mod/lua/fire.lua | 1 | 1722 | #define MOD_LUA_FIRE
<<
-- Wrapper over the firing of Wesnoth events so it's more concise than
-- calling wesnoth.fire directly.
fire = {}
function fire.end_scenario(new_scenario)
local scenario = string.format('aeth_mod_%s', new_scenario)
wesnoth.fire("endlevel", {
result = "victory",
... | gpl-2.0 |
togolwb/skynet | lualib/socketchannel.lua | 11 | 8178 | local skynet = require "skynet"
local socket = require "socket"
local socketdriver = require "socketdriver"
-- channel support auto reconnect , and capture socket error in request/response transaction
-- { host = "", port = , auth = function(so) , response = function(so) session, data }
local socket_channel = {}
loca... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/treasurer/init.lua | 9 | 13176 | --[==[
Treasurer
- A mod for Minetest
version 0.2.0
]==]
--[=[
TABLE OF CONTENTS
part 1: Initialization
part 2: Treasure API
part 3: Treasure spawning mod handling
part 4: Internal functions
]=]
--[=[
part 1: Initialization
]=]
-- This creates the main table; all functions of this mod are stored in this ta... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Castle_Oztroja/MobIDs.lua | 65 | 1606 | -----------------------------------
-- Area: Castle Oztroja (151)
-- Comments: -- posX, posY, posZ
-- (Taken from 'mob_spawn_points' table)
-----------------------------------
-- Mee_Deggi_the_Punisher
Mee_Deggi_the_Punisher=17395800;
Mee_Deggi_the_Punisher_PH={
[17395798] = '1', -- -207.840, -0.498, 109.939
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Explorer_Moogle.lua | 4 | 1765 | -----------------------------------
-- Area: Selbina
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/t... | gpl-3.0 |
wectoreya/alahvaz.bot | plugins/rere.lua | 3 | 1273 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Team name : ( 🌐 @C9_pro 🌐 )▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ File name : ( run ) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Guenat team: ( @C9_pro ) ▀▄ ▄▀... | gpl-3.0 |
sjznxd/lc-20130127 | modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 85 | 2658 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 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://w... | apache-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/npcs/druggy.lua | 1 | 17241 |
local NPC = {};
NPC.Name = "Druggy";
NPC.ID = 16;
NPC.Model = Model("models/players/perp2/m_9_02.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = Vector( -9377.741211, -9595.868164, 74.0313);
NPC.Angles = Angle(0, 130, 0);
NPC.ShowChatBubble = "Normal";
NPC.Sequence = 22... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Valkurm_Dunes/npcs/Fighting_Ant_IM.lua | 8 | 2940 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Fighting Ant, I.M.
-- Border Conquest Guards
-- @pos 908.245 -1.171 -411.504 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/rpcc/luasrc/rpcc.lua | 93 | 2227 | --[[
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 |
shahabsaf1/DaLTon-bot-test2 | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
subzrk/BadRotations | Rotations/Druid/Guardian/GuardianCuteOne.lua | 3 | 33675 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Hilkomu-Makimu.lua | 36 | 1972 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hilkomu-Makimu
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst... | gpl-3.0 |
Arashbrsh/copyuz | plugins/channels.lua | 356 | 1732 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
xToken/CompMod | lua/CompMod/TechTreeConstants/post.lua | 1 | 1123 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\TechTreeConstants\post.lua
-- - Dragon
Script.Load("lua/CompMod/Utilities/Elixer/shared.lua")
Elixer.UseVersion( 1.8 )
-- Load the file with our new tech names
Script.Load("lua/CompMod/TechTreeConstants/NewT... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/sh_npcs.lua | 1 | 2257 |
NPC_DATABASE = {};
if SERVER then
function GM.NPCUsed ( Player, ID )
umsg.Start("perp_npc_used", Player);
umsg.Short(ID);
umsg.End();
end
function GM:LoadNPC ( NPCTable )
Msg("\t-> Loaded " .. NPCTable.Name .. " [ID: " .. NPCTable.ID .. "]\n");
local locationsTable = NPCTable.Location;
local an... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/pumpkin_pie.lua | 35 | 1347 | -----------------------------------------
-- ID: 4446
-- Item: pumpkin_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 40
-- Agility -1
-- Intelligence 3
-- Charisma -2
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
shahabsaf1/DaLTon-bot-test2 | plugins/service_entergroup.lua | 355 | 3585 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
cyph84/mpv | TOOLS/lua/status-line.lua | 22 | 1634 | -- Rebuild the terminal status line as a lua script
-- Be aware that this will require more cpu power!
-- Also, this is based on a rather old version of the
-- builtin mpv status line.
-- Add a string to the status line
function atsl(s)
newStatus = newStatus .. s
end
function update_status_line()
-- Reset the... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Beaucedine/bcnms/dynamis_beaucedine.lua | 10 | 1046 | -----------------------------------
-- Area: Dynamis Beaucedine
-- Name: Dynamis Beaucedine
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function OnBcnmRegister(player,instance)
SetServerVariable("[DynaBeaucedine]UniqueID",player:getDynamisUniqueID(1284));
SetServerVar... | gpl-3.0 |
suchipi/pac3 | lua/pac3/editor/client/config.lua | 1 | 13570 | pace.PropertySheets = {
orientation =
{
position = true,
angles = true,
positionoffset = true,
angleoffset = true,
size = true,
scale = true,
eyeangles = true,
aimpartname = true,
alternativescaling = true,
bone = true,
bonemerge = true,
fov = true,
nearz = true,
farz = tru... | gpl-3.0 |
suchipi/pac3 | lua/pac3/core/client/parts/holdtype.lua | 1 | 2728 | local PART = {}
PART.ClassName = "holdtype"
PART.NonPhysical = true
PART.ThinkTime = 0
local act_mods =
{
"ACT_MP_STAND_IDLE",
"ACT_MP_WALK",
"ACT_MP_RUN",
"ACT_MP_CROUCH_IDLE",
"ACT_MP_CROUCHWALK",
"ACT_MP_ATTACK_STAND_PRIMARYFIRE",
"ACT_MP_ATTACK_CROUCH_PRIMARYFIRE",
"ACT_MP_RELOAD_STAND",
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Gregale_Wing_Air.lua | 4 | 1092 | ---------------------------------------------
-- Gregale Wing
--
-- Description: An icy wind deals Ice damage to enemies within a very wide area of effect. Additional effect: Paralyze
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only Jormungand and Isgebind
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/tricolored_carp.lua | 17 | 1324 | -----------------------------------------
-- ID: 4426
-- Item: tricolored_carp
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/blind.lua | 4 | 1539 | -----------------------------------------
-- Spell: Blind
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,ta... | gpl-3.0 |
m2mselect/owrt | feeds/luci/protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua | 63 | 1066 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local _, p
for _, p in ipairs({"6in4", "6to4", "6rd"}) do
local proto = netmod:register_protocol(p)
function proto.get_i18n(self)
if p == "6in4" then
return luci.i18n.... | gpl-2.0 |
clementlee/neuron-boundary | CustomCriterion.lua | 1 | 3168 | local BCECriterionA, parent = torch.class('nn.BCECriterionA', 'nn.Criterion')
local eps = 1e-12
local beta = 0.80
local temp = torch.FloatTensor()
function BCECriterionA:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.s... | apache-2.0 |
geektophe/blingbling | config_example/graphs_test/default/theme.lua | 2 | 8112 | ---------------------------
-- Default awesome theme --
---------------------------
local home_dir = os.getenv("HOME")
local config_dir = home_dir .. "/.config/awesome"
local themes_dir = config_dir .. "/themes"
local current_theme = themes_dir .. "/default"
theme = {}
theme.font = "Cantarell 9"
alpha = "55"... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_bass_meuniere_+1.lua | 35 | 1562 | -----------------------------------------
-- ID: 4346
-- Item: serving_of_bass_meuniere_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 3
-- Dexterity 3
-- Agility 3
-- Mind -3
-- Ranged ACC % 6
-- Ranged ACC Cap 20
-----------------------------------------
requi... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_goblin_stir-fry.lua | 35 | 1286 | -----------------------------------------
-- ID: 5143
-- Item: serving_of_goblin_stir-fry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 5
-- Vitality 2
-- Charisma -5
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 80 | 1455 | --[[
Luci configuration model for statistics - collectd unixsock 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 Lice... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/death_blossom.lua | 4 | 4861 | -----------------------------------
-- Death Blossom
-- Sword weapon skill
-- Skill level: ??? (RDM ONRY!)
-- Delivers a three-hit attack. MEva down chance varies with TP.
-- Modifiers: STR:30% ; MND:50%
-- 100%TP 200%TP 300%TP
-- 1.50 1.50 1.50
-----------------------------------
require("/scripts/gl... | gpl-3.0 |
satreix/awesome | vicious/widgets/os.lua | 15 | 2143 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local pairs = pairs
local tonumber = tonumber
local io = { popen = io.popen }
local math = {... | mit |
elt11bot/seed-sup | plugins/Robot.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/gauges/init.lua | 8 | 1525 | -- Adds health bars above players.
-- Code by 4aiman, textures by Calinou. Licensed under CC0.
local hp_bar = {
physical = false,
collisionbox = {x = 0, y = 0, z = 0},
visual = "sprite",
textures = {"20.png"}, -- The texture is changed later in the code.
visual_size = {x = 1.5, y = 0.09375, z = 1.5}, -- Y value i... | unlicense |
sjznxd/lc-20130127 | applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 52 | 3896 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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: init.lua... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Vobo.lua | 17 | 1505 | -----------------------------------
-- Area: Selbina
-- NPC: Vobo
-- Involved in Quest: Riding on the Clouds
-- @pos 37 -14 81 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
requir... | gpl-3.0 |
subzrk/BadRotations | Libs/DiesalGUI-1.0/Objects/AccordianSection.lua | 6 | 7577 | local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local DiesalStyle = LibStub("DiesalStyle-1.0")
-- ~~| Diesal Upvalues ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua | 19 | 1721 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Spacial Displacement
-- Entrance to Riverne Site #A01 and #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("sc... | gpl-3.0 |
unknownssassss/sudo_meti | tg/msg_checks.lua | 4 | 9306 | local function run(msg, matches)
local group = load_data('bot/group.json')
local addgroup = group[tostring(msg.chat_id)]
if addgroup then
if is_momod(msg) or is_robot(msg) then
return false
else
local group_mute_all = group[tostring(msg.chat_id)]['settings']['mute_all']
if group_mute_all == 'yes' then
tg.deleteMessage... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_egg_soup.lua | 35 | 1409 | -----------------------------------------
-- ID: 4417
-- Item: Bowl of Egg Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 30
-- Magic 5
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/cop_car_vip.lua | 1 | 1725 |
VEHICLE = {};
VEHICLE.ID = 'z';
VEHICLE.Name = "Police Mustang";
VEHICLE.Make = "Ford";
VEHICLE.Model = "GT500 Mustang";
VEHICLE.Script = "gt500";
VEHICLE.Cost = 0;
VEHICLE.PaintJobCost = 0;
VEHICLE.DF = false;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs = {
{model = 'mo... | mit |
krmarien/Proxmark | client/scripts/14araw.lua | 20 | 4521 | local cmds = require('commands')
local getopt = require('getopt')
local lib14a = require('read14a')
example = "script run 14araw -x 6000F57b"
author = "Martin Holst Swende"
desc =
[[
This is a script to allow raw 1444a commands to be sent and received.
Arguments:
-o do not connect - use this only if you previ... | gpl-2.0 |
dmccuskey/lua-files | dmc_lua/lua_class.lua | 34 | 14185 | --====================================================================--
-- dmc_lua/lua_class.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fr... | mit |
tullamods/OmniCC | OmniCC_Config/localization/enUS.lua | 1 | 4661 | -- OmniCC configuration localization - English
local L = LibStub('AceLocale-3.0'):NewLocale('OmniCC', 'enUS', true)
L.Anchor = 'Anchor'
L.Anchor_BOTTOM = 'Bottom'
L.Anchor_BOTTOMLEFT = 'Bottom Left'
L.Anchor_BOTTOMRIGHT = 'Bottom Right'
L.Anchor_CENTER = 'Center'
L.Anchor_LEFT = 'Left'
L.Anchor_RIGHT = 'Right'
L.Ancho... | mit |
mihacooper/luacc | bin/luacc.lua | 1 | 50073 | #!/usr/bin/env lua
---------------------------------------------------------
----------------Auto generated code block----------------
---------------------------------------------------------
do
local searchers = package.searchers or package.loaders
local origin_seacher = searchers[2]
searchers[2] = funct... | mit |
daofeng2015/luci | modules/luci-base/luasrc/sgi/cgi.lua | 81 | 1688 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
exectime = os.clock()
module("luci.sgi.cgi", package.seeall)
local ltn12 = require("luci.ltn12")
require("nixio.util")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
-- Limited source to av... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Gajaad.lua | 19 | 2129 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gajaad
-- Type: Donation Taker
-- @zone: 48
-- @pos 40.781 -1.398 116.261
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bhaflau_Thickets/npcs/Runic_Portal.lua | 17 | 1861 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Runic Portal
-- Mamook Ja Teleporter Back to Aht Urgan Whitegate
-- @pos -211 -11 -818 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
shahabsaf1/DaLTon-bot-test2 | 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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Fulchia.lua | 37 | 1069 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Fulchia
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southern... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Eldieme_Necropolis/npcs/_5fh.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 110 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
luzexi/slua-3rd-lib | build/android/jni/luajit/dynasm/dasm_mips.lua | 62 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/food/food_basic/init.lua | 8 | 7426 | -- FOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> food_basic/init.lua
-- Some basic foods
-- =====================================
minetest.log("action", "Food Mod - Version 2.3")
dofile(minetest.get_modpath("food_basic").."/support.lua")
... | unlicense |
jonm/lxUnit | src/main/lxUnit/framework/assert.lua | 1 | 1188 | Assert = {}
function Assert.assertTrue(condition, message)
if not condition then Assert.fail(message) end
end
function Assert.assertFalse(condition, message)
Assert.assertTrue(not condition, message)
end
function Assert.fail(message)
if message == nil then error("AssertionFailedError") end
error("Asserti... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/_6g9.lua | 19 | 1500 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Door: Departures Exit
-- @zone 232
-- @pos -19 -8 27
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Davoi/npcs/!.lua | 19 | 2440 | -----------------------------------
-- Area: Davoi
-- NPC: !
-- Involved in Mission: The Davoi Report
-- @pos 164 0.1 -21 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyit... | gpl-3.0 |
soroushwilson/wilson1 | plugins/welcome.lua | 9 | 3512 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_ratatouille.lua | 35 | 1408 | -----------------------------------------
-- ID: 5731
-- Item: plate_of_ratatouille
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Agility 5
-- Evasion 5
-- HP recovered while healing 2
-- Undead Killer 5
-----------------------------------------
require("scripts/globals/status... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Misareaux_Coast/npcs/qm1.lua | 9 | 1323 | -----------------------------------
-- Area: Misareaux_Coast
-- NPC: ??? (Spawn Gration)
-- @pos 113.563 -16.302 38.912 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
... | gpl-3.0 |
punisherbot/test | plugins/channels.lua | 300 | 1680 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
subzrk/BadRotations | System/Core.lua | 1 | 11545 | local brMainThread = nil
deadPet = false
function br:Engine()
-- Hidden Frame
if Pulse_Engine == nil then
Pulse_Engine = CreateFrame("Frame", nil, UIParent)
-- Pulse_Engine:SetScript("OnUpdate", ThreadHelper)
Pulse_Engine:SetScript("OnUpdate", BadRotationsUpdate)
Pulse_Engine:Show()
end
end
--[[-----------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Sleeping_Lizard.lua | 34 | 1087 | -----------------------------------
-- Area: Selbina
-- NPC: Sleeping Lizard
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- o... | gpl-3.0 |
pax2you4now/wesnoth | data/ai/lua/generic_recruit_engine.lua | 26 | 48661 | return {
-- init parameters:
-- ai: a reference to the ai engine so recruit has access to ai functions
-- It is also possible to pass an ai table directly to the execution function, which will then override the value passed here
-- ai_cas: an object reference to store the CAs and associated data
-... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vgui/loading.lua | 1 | 5024 |
local PANEL = {}
local PELogo = surface.GetTextureID("PERP2/intro/pe");
local PERPLogo = surface.GetTextureID("PERP2/intro/perp");
local Loading_Vars = surface.GetTextureID("PERP2/intro/loading_vars");
local Loading_SMFID = surface.GetTextureID("PERP2/intro/loading_user_info");
local Loading_RP = surface.GetTexture... | mit |
waywardcoder/small_programs | casthex/lua/casthex.lua | 3 | 2056 | -- --------------------------------------------------------------------
-- lua C A S T H E X
-- --------------------------------------------------------------------
-- casting takes a function 'm', and generates a casting with it.
-- 'm()' will either return a casting, or a number which is 1 line
-- of a casting. Ca... | gpl-2.0 |
fartoverflow/naev | dat/missions/neutral/drunkard.lua | 6 | 9006 | --[[
Drunkard
Author: geekt
A drunkard at the bar has gambled his ship into hock, and needs you to do a mission for him.
]]--
include "dat/scripts/numstring.lua"
-- Bar Description
bar_desc = "You see a drunkard at the bar mumbling about how he was so close to getting his break."
-- Mission Details
misn_tit... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/anglers_cassoulet.lua | 19 | 1198 | -----------------------------------------
-- ID: 5704
-- Item: Anglers Cassoulet
-- Item Effect: Restores 60 HP over 1 hour, / 3600 seconds.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------------------------... | gpl-3.0 |
elt11bot/seed-sup | plugins/anti-bot-super.lua | 7 | 3530 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot... | gpl-2.0 |
marcovr/T-Bot | modules/history.lua | 1 | 5282 | -- History Module
local upperlimit = 100000 --muss irgendwann erhöht werden
local topusers
local msgcount_cb
local get_msgcount
local get_msgcount_cb
commands.add("history", function(msg,args)
local cb_extra = {}
if #args == 2 then
cb_extra.target = msg.to.print_name
cb_extra.count = tonumber(args[2])
g... | gpl-2.0 |
willwhitehouse/ULX-Passive-Mode | ULXPASSIVE/ulx_passive/lua/ulx/modules/sh/passivemode.lua | 1 | 3930 | local buildmode = 0
local passivecost = 1000 -- Change Price Here And On Line 13 -- Set To 0 If Not On DarkRP
function ulx.build( calling_ply )
if buildmode == 1 then
calling_ply:ChatPrint("You Are Already In Passive Mode Or Your Passive Mode Is Cooling Down!") -- So People Cant Go Into Passive Mode If ... | bsd-2-clause |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/select.lua | 1 | 8440 | local L = pace.LanguageString
pace.selectControl = {}
local selectControl = pace.selectControl
function selectControl.VecToScreen(vec)
return vec:ToScreen()
end
function selectControl.GetMousePos()
return input.GetCursorPos()
end
function selectControl.GUIMousePressed(mcode) end
function selectControl.GUIMouseRel... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Boyahda_Tree/npcs/qm2.lua | 6 | 2310 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: qm2 (???)
-- Involved in Quest: Searching for the Right Words
-- @pos 34.651 -20.183 -61.647 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/final_heaven.lua | 4 | 2213 | -------------------------------
-- Auth : Thief
-- Skill: Final Heaven
-- Class: H2H Weapon Skill
-- Level: MNK Relic Only
-- Mods : VIT:60%
-- 100%TP 200%TP 300%TP
-- 3.0x 3.0x 3.0x
-- Caestus/Spharai: Temporarily enhances Subtle Blow effect. * +10 Subtle Blow for a short duration after using the weapon ski... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/AlTaieu/npcs/Dimensional_Portal.lua | 5 | 1611 | -----------------------------------
-- Area: AlTaieu
-- NPC: Dimensional Portal
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
-----------------------------------
-- onTrade Action
---... | gpl-3.0 |
aosee1h1/AOSEE_2H2 | plugin/TH3BOSS4.lua | 1 | 1788 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ مساعدة4 ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Arzizah.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Arzizah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
mpeterv/luassert | src/spy.lua | 1 | 6009 | -- module will return spy table, and register its assertions with the main assert engine
local assert = require('luassert.assert')
local util = require('luassert.util')
-- Spy metatable
local spy_mt = {
__call = function(self, ...)
local arguments = {...}
arguments.n = select('#',...) -- add argument count ... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/water_shot.lua | 4 | 2284 | -----------------------------------
-- Ability: Water Shot
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbili... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/RuLude_Gardens/npcs/Goggehn.lua | 19 | 2985 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Goggehn
-- Involved in Mission: Bastok 3-3, 4-1
-- @zone 243
-- @pos 3 9 -76
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
----------------... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Maximum_Subarray/Lua/Yonaba/maximum_subarray.lua | 26 | 2823 | -- Greatest subsequential sum finding algorithms implementation
-- See: http://en.wikipedia.org/wiki/Maximum_subarray_problem
-- Computes the largest sub-sequential sum using kadanes algorithm
-- s : a given sequence
-- returns : the sum of the largest subsequence found
-- returns : the starting index of the lar... | mit |
m2mselect/owrt | feeds/luci/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 18 | 3631 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local username, password, ac, service
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
username = section:taboption("gener... | gpl-2.0 |
moj69/m | plugins/anti_bot.lua | 29 | 3063 | local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, cha... | agpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Heavy_Stomp.lua | 6 | 1081 | ---------------------------------------------
-- Heavy Stomp
--
-- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Paralysis effect has a very long duration.
-------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.