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
Pedals2Paddles/ardupilot
Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua
96
29666
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
Kthulupwns/master
scripts/globals/items/coffeecake_muffin_+1.lua
35
1377
----------------------------------------- -- ID: 5656 -- Item: coffeecake_muffin_+1 -- Food Effect: 1Hr, All Races ----------------------------------------- -- Mind 2 -- Strength -1 -- MP % 10 (cap 90) ----------------------------------------- require("scripts/globals/status"); ---------------------------...
gpl-3.0
UltronTG/UltronTG
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
horizonrz/test
system/libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
Kthulupwns/master
scripts/commands/addcurrency.lua
26
1362
--------------------------------------------------------------------------------------------------- -- func: @addcurrency <currency type> <amount> <target player> -- desc: Adds the specified currency to the player --------------------------------------------------------------------------------------------------- ...
gpl-3.0
Kthulupwns/master
scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua
36
1886
----------------------------------- -- Area: Windurst_Woods -- NPC: Bin Stejihna -- Only sells when Windurst controlls Zulkheim Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Wi...
gpl-3.0
Kthulupwns/master
scripts/zones/Port_Bastok/npcs/Silver_Owl.lua
34
1328
----------------------------------- -- Area: Port Bastok -- NPC: Silver Owl -- Type: Tenshodo Merchant -- @pos -99.155 4.649 23.292 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0
Kthulupwns/master
scripts/commands/reloadglobal.lua
26
1230
--------------------------------------------------------------------------------------------------- -- func: @reloadglobal -- desc: Attempt to reload specified global lua without a restart. -- -- Use with caution, some files ( like player.lua ) -- can cause you problems if you reload them using this. -- This comm...
gpl-3.0
aayushKumarJarvis/Algorithm-Implementations
Successive_Over_Relaxation/Lua/Yonaba/sor.lua
26
1264
-- Successive Over Relaxation algorithm implementation -- See : http://en.wikipedia.org/wiki/Successive_over-relaxation -- Creates a vector of values local function vector(len, v) local x = {} for i = 1, len do x[i] = v end return x end -- Computes the norm of a given vector local function norm(v) local n = 0...
mit
cnsuperx/Cocos2d-x-2.2.5
samples/Lua/TestLua/Resources/luaScript/TouchesTest/Paddle.lua
4
1493
require "extern" require "luaScript/VisibleRect" Paddle = class("Paddle", function(texture) return CCSprite:createWithTexture(texture) end) Paddle.__index = Paddle local kPaddleStateGrabbed = 0 local kPaddleStateUngrabbed = 1 Paddle.m_state = kPaddleStateGrabbed function Paddle:rect() local s = self:getT...
mit
Kthulupwns/master
scripts/globals/mobskills/Floodlight.lua
7
1222
--------------------------------------------------- -- Floodlight -- -- Description: ~300 magic damage, Flash, Blind and Silence, ignores Utsusemi -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/glob...
gpl-3.0
Kthulupwns/master
scripts/globals/items/senroh_skewer.lua
36
1404
----------------------------------------- -- ID: 5982 -- Item: Senroh Skewer -- Food Effect: 30 Mins, All Races ----------------------------------------- -- Dexterity 2 -- Vitality 3 -- Mind -1 -- Defense % 25 Cap 150 ----------------------------------------- require("scripts/globals/status"); -----------------------...
gpl-3.0
UB12/ub1
plugins/Feedback.lua
49
1048
do function run(msg, matches) local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id lo...
gpl-2.0
Kthulupwns/master
scripts/zones/Walk_of_Echoes/Zone.lua
36
1119
----------------------------------- -- -- Zone: Walk_of_Echoes -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Walk_of_Echoes/TextIDs"] = nil; require("scripts/zones/Walk_of_Echoes/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
magicmonty/dotfiles_dotbot
editors/nvim/lua/plugins/trouble/config.lua
1
2830
local installed, trouble = pcall(require, 'trouble') if not installed then return end local icons = require('magicmonty.theme').icons.diagnostics trouble.setup({ position = "bottom", -- position of the list can be: bottom, top, left, right height = 10, -- height of the trouble list when position is top or bottom ...
unlicense
ItalyToast/wcg
entities/weapons/weapon_base/sh_anim.lua
2
2951
local ActIndex = { [ "pistol" ] = ACT_HL2MP_IDLE_PISTOL, [ "smg" ] = ACT_HL2MP_IDLE_SMG1, [ "grenade" ] = ACT_HL2MP_IDLE_GRENADE, [ "ar2" ] = ACT_HL2MP_IDLE_AR2, [ "shotgun" ] = ACT_HL2MP_IDLE_SHOTGUN, [ "rpg" ] = ACT_HL2MP_IDLE_RPG, [ "physgun" ] = ACT_HL2MP_IDLE_PHYSGUN, [ "crossbow" ] = A...
mit
Kthulupwns/master
scripts/zones/Sealions_Den/npcs/Sueleen.lua
17
1980
----------------------------------- -- Area: Sealion's Den -- NPC: Sueleen -- @pos 612 132 774 32 ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Sealions_Den/TextID...
gpl-3.0
Abedzadeh5928/alireza5928
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
padrinoo1/telelock
plugins/welcome.lua
190
3526
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
CCAAHH/mer
plugins/welcome.lua
190
3526
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
dnc40085/nodemcu-firmware
lua_examples/email/send_email_smtp.lua
82
4640
--- -- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU -- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access. -- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access. -- To o...
mit
samanhtm/zero
plugins/info.lua
1
8115
--Begin info.lua By @SoLiD local Solid = 185906807 local function setrank(msg, user_id, value,chat_id) local hash = nil hash = 'rank:'..msg.to.id..':variables' if hash then redis:hset(hash, user_id, value) return tdcli.sendMessage(chat_id, '', 0, '_set_ *Rank* _for_ *[ '..user_id..' ]* _To :_ *'..value....
gpl-3.0
Kthulupwns/master
scripts/zones/Horlais_Peak/bcnms/the_secret_weapon.lua
13
2277
----------------------------------- -- Area: Horlais Peak -- Name: Mission Rank 7 -- @pos -509 158 -211 139 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions...
gpl-3.0
Kthulupwns/master
scripts/globals/items/crepe_belle_helene.lua
36
1333
----------------------------------------- -- ID: 5778 -- Item: Crepe Belle Helene -- Food Effect: 60 Min, All Races ----------------------------------------- -- Intelligence +2 -- MP Healing +3 -- Magic Accuracy +6 -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
demontefacto/LedePackages
net/prosody/files/prosody.cfg.lua
147
7257
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at http://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running: luac -p prosody.cfg.lua -- If there are any errors, it will let you know...
gpl-2.0
antispambot2/sersbot
plugins/filterworld.lua
15
4162
local function save_filter(msg, name, value) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':filters' end if msg.to.type == 'user' then return 'فقط در گروه ممکن است' end if hash then redis:hset(hash, name, value) return "انجام شد" end end local function get_fil...
gpl-2.0
hmis-interop/logical-model
src/class-diagram-files/Plugins/OWLGrEd_UserFields/parseStyle.lua
1
8775
module(..., package.seeall) require "lpeg" function aaa() return true end --nolasa compartment stilus no style atributa vertibas (styleAttibute-style atributa tekstuala vertiba) function createCompartStyleFromAttribute(styleAttibute) local newStyle = lQuery.create("CompartStyle") --sadalam style atri...
cc0-1.0
Kthulupwns/master
scripts/zones/Sauromugue_Champaign/npcs/qm1.lua
25
1568
----------------------------------- -- Area: Sauromugue Champaign -- NPC: qm1 (???) -- @pos 203.939 0.000 -238.811 120 -- Notes: Spawns Dribblix Greasemaw for ACP mission "Gatherer of Light (I)" ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------...
gpl-3.0
DeltaF1/Lua-MUD
menus.lua
1
5098
return { char_gender = { "What gender is your character? (m(ale)/f(emale)/n(eutral)/o(ther)): ", function(p,d,i) obj = p._editing_obj if i == 1 then obj.pronouns = PRONOUNS.male elseif i == 2 then obj.pronouns = PRONOUNS.female elseif i == 3 then obj.pronouns = PRONOUNS.neutral ...
mit
Abedzadeh5928/alireza5928
plugins/Time.lua
2
2804
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
MinoaveDev/EccoDev
scripts/portals/timeQuest.lua
1
2576
--[[ Copyright (C) 2008-2011 Vana Development Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHO...
gpl-2.0
nekulin/arangodb
3rdParty/V8-4.3.61/tools/gcmole/gccause.lua
157
2313
-- Copyright 2011 the V8 project authors. All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
apache-2.0
Kthulupwns/master
scripts/globals/abilities/call_wyvern.lua
10
1038
----------------------------------- -- Ability: Call Wyvern -- Summons a Wyvern to fight by your side. -- Obtained: Dragoon Level 1 -- Recast Time: 20:00 -- Duration: Instant -- Special: Only available if Dragoon is your main class. ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/cyclone.lua
30
1416
----------------------------------- -- Cyclone -- Dagger weapon skill -- Skill level: 125 -- Delivers an area attack that deals wind elemental damage. Damage varies with TP. -- This weapon skill is ranged and can be used from a distance (Up to 15'). -- Directly affected by Magic Attack Bonus. -- Aligned with the...
gpl-3.0
Kthulupwns/master
scripts/zones/East_Sarutabaruta/npcs/Signpost.lua
38
2029
----------------------------------- -- Area: East Sarutabaruta -- NPC: Signpost ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/zones/East_Sarutabaruta/TextIDs"); ----------------------------------- -- onTrade A...
gpl-3.0
antispambot2/sersbot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
Kthulupwns/master
scripts/globals/items/butter_crepe.lua
36
1239
----------------------------------------- -- ID: 5766 -- Item: Butter Crepe -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP +10 -- Magic Accuracy +2 -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
Kthulupwns/master
scripts/zones/Port_San_dOria/npcs/Sheridan.lua
19
1770
----------------------------------- -- Area: Port San d'Oria -- NPC: Sheridan -- Involved in Quests: Riding on the Clouds -- @zone 232 -- @pos -19 -8 -129 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
Kthulupwns/master
scripts/zones/Windurst_Waters/npcs/Baehu-Faehu.lua
36
1615
----------------------------------- -- Area: Windurst Waters -- NPC: Baehu-Faehu -- Only sells when Windurst has control of Sarutabaruta -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones...
gpl-3.0
MinoaveDev/EccoDev
scripts/portals/q2073.lua
1
1089
--[[ Copyright (C) 2008-2011 Vana Development Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHO...
gpl-2.0
Kthulupwns/master
scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua
7
5502
----------------------------------- -- -- Zone: Alzadaal_Undersea_Ruins (72) -- ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Alzadaal_Undersea_Ruins/Tex...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/tachi_ageha.lua
30
1716
----------------------------------- -- Tachi Ageha -- Great Katana weapon skill -- Skill Level: 300 -- Lowers target's defense. Chance of lowering target's defense varies with TP. -- 30% Defense Down -- Duration of effect is exactly 3 minutes. -- Aligned with the Shadow Gorget, Soil Gorget. -- Aligned with the ...
gpl-3.0
Kthulupwns/master
scripts/zones/Mount_Zhayolm/npcs/_1p6.lua
23
1050
----------------------------------- -- Area: Mount Zhayolm -- NPC: Engraved Tablet -- @pos 320 -15.35 -379 61 ----------------------------------- require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; --...
gpl-3.0
antinet/cjdns
contrib/lua/cjdns/config.lua
34
1851
-- Cjdns admin module for Lua -- Written by Philip Horger common = require 'cjdns/common' ConfigFile = {} ConfigFile.__index = ConfigFile common.ConfigFile = ConfigFile function ConfigFile.new(path, no_init) local values = { path = path, text = "", contents = {}, } setmeta...
gpl-3.0
ca25nada/spawncamping-wallhack
BGAnimations/ScreenDownload overlay/default.lua
1
21995
local top local initpacklist = PackList:new() local packlist = initpacklist:GetPackTable() local downloading = DLMAN:GetDownloadingPacks() -- make lookup table for installed packs local installedPacks = {} local function refreshInstalledPacks() for k,v in pairs(SONGMAN:GetSongGroupNames()) do installedPacks[v] = t...
mit
Kthulupwns/master
scripts/zones/VeLugannon_Palace/TextIDs.lua
5
1036
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
Kthulupwns/master
scripts/globals/mobskills/Mow.lua
25
1073
--------------------------------------------- -- Mow -- -- Description: Deals damage in an area of effect. Additional effect: Poison -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown radial -- Notes: Poison can take around 10HP/tick --------------------------------------------- re...
gpl-3.0
Kthulupwns/master
scripts/zones/Spire_of_Dem/npcs/_0j2.lua
36
1313
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); ---------------...
gpl-3.0
fhanik/snabbswitch
src/lib/protocol/datagram.lua
7
7735
-- This class provides basic mechanisms for parsing, building and -- manipulating a hierarchy of protocol headers and associated payload -- contained in a data packet. In particular, it supports -- -- Parsing and in-place manipulation of protocol headers in a -- received packet -- -- In-place decapsulation by re...
apache-2.0
Kthulupwns/master
scripts/zones/Throne_Room/npcs/_4l4.lua
36
1164
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if(TradeBCNM(player,player:get...
gpl-3.0
Kthulupwns/master
scripts/zones/Throne_Room/npcs/_4l2.lua
36
1164
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if(TradeBCNM(player,player:get...
gpl-3.0
Kthulupwns/master
scripts/zones/Tavnazian_Safehold/Zone.lua
7
3137
----------------------------------- -- -- Zone: Tavnazian_Safehold (26) -- ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions"); require("scripts/zones/Tavnazian...
gpl-3.0
ChrisBird/ardupilot
libraries/AP_Scripting/examples/ahrs-source.lua
4
10188
-- switches between AHRS/EKF sources based on the pilot's source selection switch or using an automatic source selection algorithm -- this script is intended to help vehicles move between GPS and Non-GPS environments -- -- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=primary, middle=secondary, high=...
gpl-3.0
pablojmartinez/theatreofpain
theatreofpain/plugins/notes/sh_plugin.lua
1
2587
local PLUGIN = PLUGIN PLUGIN.name = "Note Writings" PLUGIN.author = "Black Tea" PLUGIN.desc = "You can write stuffs." NOTELIMIT = 1000 WRITINGDATA = WRITINGDATA or {} nut.util.include("cl_vgui.lua") if (CLIENT) then netstream.Hook("receiveNote", function(id, contents, write) local note = vgui.Create("noteRead") ...
mit
Kthulupwns/master
scripts/zones/Port_Jeuno/npcs/Imasuke.lua
10
3143
----------------------------------- -- Area: Port Jeuno -- NPC: Imasuke -- Starts and Finishes Quest: The Antique Collector -- @zone 246 -- @pos -165 11 94 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; -----------...
gpl-3.0
Kthulupwns/master
scripts/zones/Bastok_Mines/npcs/Mariadok.lua
59
1037
----------------------------------- -- Area: Bastok Mines -- NPC: Mariadok -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bastok_Mines/TextIDs"); -...
gpl-3.0
pablojmartinez/theatreofpain
theatreofpain/schema/sh_hooks.lua
1
1341
--[[ *************************************************************************************************************************************************************************** --]] --[[ Developed by Pablo J. Martínez (2016). You are free to use this and my plugins as long as you credit me. Thanks ^_^ ...
mit
Kthulupwns/master
scripts/globals/effects/dark_arts.lua
74
1952
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:recalculateAbilitiesTable(); local bonus = effect:getPower(); local helix = effect...
gpl-3.0
Kthulupwns/master
scripts/zones/Selbina/npcs/Graegham.lua
7
1182
----------------------------------- -- Area: Selbina -- NPC: Graegham -- Guild Merchant NPC: Fishing Guild -- @pos -12.423 -7.287 8.665 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
xiangyu123/nginx-rtmp-xes
lua/resty/http.lua
2
18024
local ngx_socket_tcp = ngx.socket.tcp local ngx_req = ngx.req local ngx_req_socket = ngx_req.socket local ngx_req_get_headers = ngx_req.get_headers local str_gmatch = string.gmatch local str_lower = string.lower local str_upper = string.upper local str_find = string.find local str_sub = string.sub local tbl_concat = ta...
apache-2.0
devyte/nodemcu-platform
http/httpgui-validate.lua
1
1068
return function(rd) local function validateRange(arg, min, max) return arg >= min and arg <= max end local function validateRealm(arg) return validateRange(#arg, 5, 64) end local function validateUser(arg) return validateRange(#arg, 5, 32) end local function valida...
mit
excessive/ldex
src/systems/render.lua
1
8349
return function() local lvfx = require "lvfx" local tiny = require "tiny" local cpml = require "cpml" local l3d = require "love3d" local load = require "utils.load-files" local render = tiny.system { filter = tiny.requireAny( tiny.requireAll("visible", "mesh"), tiny.requireAll("capsules") ) } funct...
mit
Kthulupwns/master
scripts/zones/Giddeus/npcs/Treasure_Chest.lua
12
2757
----------------------------------- -- Area: Giddeus -- NPC: Treasure Chest -- -- @pos -158.563 0.999 -226.058 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/key...
gpl-3.0
Kthulupwns/master
scripts/zones/Bastok_Mines/npcs/Vaghron.lua
38
1396
----------------------------------- -- Area: Bastok Mines -- NPC: Vaghron -- Type: Adventurer's Assistant -- @pos -39.162 -1 -92.147 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("s...
gpl-3.0
Mojtaba-mp/telemp
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
Kthulupwns/master
scripts/globals/items/mercanbaligi.lua
18
1261
----------------------------------------- -- ID: 5454 -- Item: Mercanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 4 -- Mind -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
hacker44-h44/sasan
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
gamedev2/cocos2d-x-2.2
scripting/lua/luajit/LuaJIT-2.0.1/src/jit/dis_x86.lua
99
29330
---------------------------------------------------------------------------- -- LuaJIT x86/x64 disassembler module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------------------...
mit
HajiMokh/hajimokh
plugins/lock_fosh.lua
6
1423
local function run(msg, matches) if is_owner(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['lock_fosh'] then l...
agpl-3.0
Kthulupwns/master
scripts/zones/Sacrarium/Zone.lua
28
3727
----------------------------------- -- -- Zone: Sacrarium (28) -- ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/zones/Sacrarium/TextIDs")...
gpl-3.0
cnsuperx/Cocos2d-x-2.2.5
scripting/lua/script/CocoStudio.lua
11
8563
require "json" require "extern" function sendTriggerEvent(event) local triggerObjArr = TriggerMng.getInstance():get(event) if nil == triggerObjArr then return end for i = 1, table.getn(triggerObjArr) do local triObj = triggerObjArr[i] if nil ~= triObj and triObj:detect() t...
mit
tectronics/microlua-sim
scripts/compile.lua
2
9664
------------------------------------------------------------------------------- -- compile.lua : compiles Micro Lua Simulator into one unique big file -- -- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com> ------------------------------------------------------------------------------- -- Copyright (C) 2009-2011 Cé...
gpl-3.0
padrinoo1/telelock
plugins/anti_fosh.lua
4
1106
@Dawsh_iman local function run(msg) local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['antifosh'] == 'yes' then if not is_momod(msg) then chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true) local msgads = 'Dont s...
gpl-2.0
Kthulupwns/master
scripts/zones/Cape_Teriggan/npcs/HomePoint#1.lua
12
1195
----------------------------------- -- Area: Cape Teriggan -- NPC: HomePoint#1 -- @pos -303 -8 526 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Cape_Teriggan/TextIDs"); require("scripts/globals/homepo...
gpl-3.0
Kthulupwns/master
scripts/zones/Valkurm_Dunes/npcs/Prunilla_RK.lua
30
3052
----------------------------------- -- Area: Valkurm Dunes -- NPC: Prunilla, R.K. -- Type: 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
Kthulupwns/master
scripts/globals/abilities/earth_shot.lua
22
2949
----------------------------------- -- Ability: Earth Shot -- Consumes a Earth Card to enhance earth-based debuffs. Deals earth-based magic damage -- Rasp Effect: Enhanced DoT and DEX-, Slow Effect +10% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ...
gpl-3.0
Kthulupwns/master
scripts/globals/items/flame_sword.lua
16
1029
----------------------------------------- -- ID: 16621 -- Item: Flame Sword -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action --------------------------------...
gpl-3.0
Daedeross/Subterra
src/scripts/events/updates/update_power.lua
1
2102
require("__subterra__.scripts.utils") -- based on transfer_power(from, to) from: https://github.com/MagmaMcFry/Factorissimo2 local function equalize_power(proxy, max_level, do_print) local inputs = proxy.inputs local outputs = proxy.outputs local input_energy = 0 local output_energy = 0 local n = 0 ...
mit
Kthulupwns/master
scripts/zones/Port_Bastok/npcs/Powhatan.lua
36
3269
----------------------------------- -- Area: Port Bastok -- NPC: Powhatan -- Starts & Ends Quest: Welcome to Bastok, Guest of Hauteur ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
Kthulupwns/master
scripts/zones/Apollyon/mobs/Dark_Elemental.lua
17
2413
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); --------------------------...
gpl-3.0
kingnitrooo/nitroooking
bot/seedbot.lua
1
10234
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
Kthulupwns/master
scripts/zones/Kuftal_Tunnel/TextIDs.lua
5
1264
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
Kthulupwns/master
scripts/zones/Temenos/mobs/Kindred_Summoner.lua
17
1155
----------------------------------- -- Area: Temenos N T -- NPC: Kindred_Summoner. ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -------------------...
gpl-3.0
Kthulupwns/master
scripts/globals/spells/bluemagic/Yawn.lua
7
1454
----------------------------------------- -- Spell: Yawn -- Puts all enemies within range to sleep -- Spell cost: 55 MP -- Monster Type: Birds -- Spell Type: Magical (Light) -- Blue Magic Points: 3 -- Stat Bonus: CHR+1, HP+5 -- Level: 64 -- Casting Time: 3 seconds -- Recast Time: 60 seconds -- Duration: 90 s...
gpl-3.0
Kthulupwns/master
scripts/zones/Port_Bastok/npcs/Galvin.lua
36
1464
----------------------------------- -- Area: Port Bastok -- NPC: Galvin -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); ...
gpl-3.0
MinoaveDev/EccoDev
scripts/instances/papulatus.lua
1
1790
--[[ Copyright (C) 2008-2011 Vana Development Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHO...
gpl-2.0
Kthulupwns/master
scripts/zones/Windurst_Woods/npcs/Manyny.lua
36
1453
----------------------------------- -- Area: Windurst Woods -- NPC: Manyny -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/Tex...
gpl-3.0
pixlar/starbound-crafter-mod
objects/crafting/gov_desk/deskgui.lua
1
2533
function init() --world.logInfo("console activated") thedesk = console.sourceEntity() display = 0 end function update() console.canvasDrawText( "The Governor's Desk", {position={15, 200}, horizontalAnchor="left", verticalAnchor="top"}, 12, {255, 255, 255}) if display == 0 then crafting = {"Smelting", ...
gpl-2.0
ashhher3/koreader
frontend/apps/filemanager/filemanagersearch.lua
4
26481
local CenterContainer = require("ui/widget/container/centercontainer") local InputContainer = require("ui/widget/container/inputcontainer") local DocumentRegistry = require("document/documentregistry") local InputDialog = require("ui/widget/inputdialog") local InfoMessage = require("ui/widget/infomessage") local lfs = ...
agpl-3.0
gamedev2/cocos2d-x-2.2
scripting/lua/luajit/LuaJIT-2.0.1/dynasm/dasm_arm.lua
74
34483
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
mit
Kthulupwns/master
scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua
13
1434
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Cavernous Maw -- @pos -198 8 360 91 -- Teleports Players to Rolanberry Fields ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
aayushKumarJarvis/Algorithm-Implementations
Euclidean_algorithm/Lua/Yonaba/euclidian.lua
27
1312
-- Checks if a is an integer value local function isInt(a) return math.floor(a) == a end -- Performs checks and provides early exit -- a, b must be positive integers -- handles GCD(a,0) = a, GCD(0,b) = b -- GCD(0,0) do not exist -- See: http://en.wikipedia.org/wiki/Binary_GCD_algorithm#Algorithm local function checkA...
mit
Kthulupwns/master
scripts/zones/Lower_Jeuno/npcs/Harnek.lua
17
2365
----------------------------------- -- Area: Lower Jeuno -- NPC: Harnek -- Starts and Finishes Quest: The Tenshodo Showdown (finish) -- @zone 245 -- @pos 44 0 -19 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --...
gpl-3.0
Kthulupwns/master
scripts/globals/abilities/call_beast.lua
10
1072
----------------------------------- -- Ability: Call Beast -- Calls a beast to fight by your side. -- Obtained: Beastmaster Level 23 -- Recast Time: 5:00 -- Duration: Dependent on jug pet used. ----------------------------------- require("scripts/globals/common"); require("scripts/globals/status"); ---------...
gpl-3.0
Kthulupwns/master
scripts/zones/Temenos/mobs/Goblin_Slaughterman.lua
17
1068
----------------------------------- -- Area: Temenos N T -- NPC: Goblin_Slaughterman ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------...
gpl-3.0
Kthulupwns/master
scripts/zones/Aht_Urhgan_Whitegate/npcs/Shajaf.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Shajaf -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
Kthulupwns/master
scripts/zones/Throne_Room/Zone.lua
32
1638
----------------------------------- -- -- Zone: Throne_Room (165) -- ----------------------------------- package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Throne_Room/TextIDs"); ------------------------...
gpl-3.0
alicybery/123bot
plugins/bot_manager.lua
89
6427
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
Kthulupwns/master
scripts/zones/The_Eldieme_Necropolis/npcs/_5fd.lua
34
1106
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Shiva's Gate -- @pos 110 -34 -60 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs")...
gpl-3.0
pablojmartinez/theatreofpain
nutscript/plugins/spawns.lua
5
3010
local PLUGIN = PLUGIN PLUGIN.name = "Spawns" PLUGIN.desc = "Spawn points for factions and classes." PLUGIN.author = "Chessnut" PLUGIN.spawns = PLUGIN.spawns or {} function PLUGIN:PostPlayerLoadout(client) if (self.spawns and table.Count(self.spawns) > 0 and client:getChar()) then local class = client:getChar():get...
mit