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
ArduPilot/ardupilot
libraries/AP_Scripting/examples/LED_matrix_image.lua
27
12280
--[[ Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate the LED interface for WS2812 LEDs --]] --[[ for this demo we will use a single strip with 30 LEDs --]] local matrix_x = 7 local matrix_y = 7 -- matrix to convert from x y pos to location in the strip local id = {} -...
gpl-3.0
patrikrm13/AVENGERS_ANTISPAMEER
plugins/ingroup.lua
13
57917
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
ivanceras/iup-mirror
srclua5/bin2c.lua
7
1968
local description = [=[ Usage: lua bin2c.lua [+]filename [status] Write a C source file to standard output. When this C source file is included in another C source file, it has the effect of loading and running the specified file at that point in the program. The file named by 'filename' contains either Lua byte cod...
mit
AresTao/darkstar
scripts/zones/King_Ranperres_Tomb/npcs/Strange_Apparatus.lua
31
1146
----------------------------------- -- Area: King_Ranperre's Tomb -- NPC: Strange Apparatus -- @pos -260 7 -142 190 ----------------------------------- package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil; require("scripts/zones/King_Ranperres_Tomb/TextIDs"); require("scripts/globals/strangeapparatus");...
gpl-3.0
AresTao/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/_6eo.lua
31
1367
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Door:House -- @zone 80 -- @pos 148 0 27 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); ---------------------------...
gpl-3.0
AresTao/darkstar
scripts/globals/items/flame_claymore.lua
42
1072
----------------------------------------- -- ID: 16588 -- Item: Flame Claymore -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action -----------------------------...
gpl-3.0
DeinFreund/Zero-K
LuaRules/Configs/MetalSpots/Altored_Arctic.lua
17
3564
return { spots = { {x = 7832, z = 3208, metal = 1.1840000152588}, {x = 6152, z = 3816, metal = 1.9776002168655}, {x = 1128, z = 6520, metal = 1.1296001672745}, {x = 1928, z = 6312, metal = 1.8752002716064}, {x = 7256, z = 2984, metal = 1.4048000574112}, {x = 6296, z = 6936, metal = 1.1055999994278}, {x = 3256, ...
gpl-2.0
AresTao/darkstar
scripts/zones/Mount_Zhayolm/npcs/_1p3.lua
31
3553
----------------------------------- -- Area: Mount Zhayolm -- Door: Runic Seal -- @pos 703 -18 382 61 ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("...
gpl-3.0
DeinFreund/Zero-K
LuaUI/Widgets/gui_attrition_counter.lua
5
18337
local version = 2.131 function widget:GetInfo() return { name = "Attrition Counter", desc = "Shows a counter that keeps track of player/team kills/losses", author = "Anarchid, Klon", date = "Dec 2012, Aug 2015", license = "GPL", layer = -10, enabled = false -- l...
gpl-2.0
ld-test/prosody
plugins/mod_storage_xep0227.lua
3
4525
local ipairs, pairs = ipairs, pairs; local setmetatable = setmetatable; local tostring = tostring; local next = next; local t_remove = table.remove; local os_remove = os.remove; local io_open = io.open; local paths = require"util.paths"; local st = require "util.stanza"; local parse_xml_real = require "util.xml".pars...
mit
AresTao/darkstar
scripts/zones/Southern_San_dOria/npcs/Nenne.lua
17
2111
----------------------------------- -- Area: Northern San d'Oria -- NPC: Nenne -- Starts and Finishes Quest: To Cure a Cough -- @zone 230 -- @pos -114 -6 102 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
padrinoo1/telespam
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
AresTao/darkstar
scripts/zones/Port_Windurst/npcs/Newlyn.lua
38
1034
----------------------------------- -- Area: Port Windurst -- NPC: Newlyn -- Type: Standard NPC -- @zone: 240 -- @pos 200.673 -6.601 108.665 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ---------------...
gpl-3.0
pinterest/thrift
lib/lua/Thrift.lua
1
7062
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
matthewbauer/wesnoth
data/ai/micro_ais/cas/ca_wolves_move.lua
26
3428
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local function get_wolves(cfg) local wolves = AH.get_units_with_moves { side = wesnoth.current.side, { "and", cfg.filter } } return wolves end l...
gpl-2.0
NeoRaider/luci
modules/luci-base/luasrc/sys.lua
14
15363
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local io = require "io" local os = require "os" local table = require "table" local nixio = require "nixio" local fs = require "nixio.fs" local uci = require "luci.model.uci" local luci = {} l...
apache-2.0
mikymod/crown
3rdparty/luajit/dynasm/dasm_arm64.lua
4
34807
------------------------------------------------------------------------------ -- DynASM ARM64 module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _...
mit
rex64/unnamed-dungeon-crawler
data/base/scripts/game/MessageLog.lua
1
2007
--////////////////////////////////////////////////////////////////////// --************************ --MessageLog --************************ MessageLog = {} MessageLog.__index = MessageLog function MessageLog.new() self = setmetatable({}, MessageLog) self.messageQueue = {} self.messageActive = {} self.timer =...
mit
yinjun322/skynet
service/launcher.lua
51
3199
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local function handle_to_address(handle) retu...
mit
DeinFreund/Zero-K
LuaRules/Gadgets/CAI/UnitListHandler.lua
9
7357
--[[ Handles Lists of Units * Create as a list of unit with some local functions. * Can get total unit cost, a random unit, units in area etc.. * Elements can have custom data. == CreateUnitList(losCheckAllyTeamID) losCheckAllyTeamID is the point of view that the return functions should take regarding LOS. A non...
gpl-2.0
wizardbottttt/X
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
nicesource/PS
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
agpl-3.0
AresTao/darkstar
scripts/zones/Windurst_Woods/npcs/Hae_Jakkya.lua
17
1334
----------------------------------- -- Area: Windurst Woods -- NPC: Hae Jakkya -- Working 100% ----------------------------------- require("scripts/globals/settings"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; --...
gpl-3.0
AresTao/darkstar
scripts/zones/Southern_San_dOria/npcs/Rouva.lua
17
1713
----------------------------------- -- Area: Southern San d'Oria -- NPC: Rouva -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -17 2 10 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
Jmainguy/docker_images
prosody/prosody/share/lua/5.1/luarocks/build/cmake.lua
5
1956
--- Build back-end for CMake-based modules. --module("luarocks.build.cmake", package.seeall) local cmake = {} local fs = require("luarocks.fs") local util = require("luarocks.util") local cfg = require("luarocks.cfg") --- Driver function for the "cmake" build back-end. -- @param rockspec table: the loaded rockspec. ...
gpl-2.0
AresTao/darkstar
scripts/zones/Northern_San_dOria/npcs/Jufaue.lua
38
1052
----------------------------------- -- Area: Northern San d'Oria -- NPC: Jufaue -- Type: Past Event Watcher -- @zone: 231 -- @pos 13.221 -1.199 -19.231 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = ni...
gpl-3.0
AresTao/darkstar
scripts/globals/spells/lightning_carol.lua
18
1517
----------------------------------------- -- Spell: Lightning Carol -- Increases lightning resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ---...
gpl-3.0
AresTao/darkstar
scripts/zones/Kazham/npcs/Ronta-Onta.lua
19
4061
----------------------------------- -- Area: Kazham -- NPC: Ronta-Onta -- Starts and Finishes Quest: Trial by Fire -- @pos 100 -15 -97 250 ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts...
gpl-3.0
AresTao/darkstar
scripts/globals/items/loaf_of_black_bread.lua
35
1287
----------------------------------------- -- ID: 4364 -- Item: loaf_of_black_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 8 -- Dexterity -1 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); -----------------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Gustav_Tunnel/Zone.lua
29
1841
----------------------------------- -- -- Zone: Gustav_Tunnel (212) -- ----------------------------------- package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Gustav_Tunne...
gpl-3.0
AresTao/darkstar
scripts/zones/Cloister_of_Flames/Zone.lua
32
1663
----------------------------------- -- -- Zone: Cloister_of_Flames (207) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Flames/TextIDs"); ---...
gpl-3.0
AresTao/darkstar
scripts/globals/effects/vit_down.lua
18
1094
----------------------------------- -- -- EFFECT_VIT_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_VIT) - effec...
gpl-3.0
ruohoruotsi/Wavelet-Tree-Synth
nnet/keeper_johnglover-sound-rnn-MDN-torch/sample.lua
1
1644
local torch = require 'torch' local nn = require 'nn' require 'nngraph' local MDN = require 'mdn' local model = require 'model' local model_utils = require 'model_utils' local data = require 'data' cmd = torch.CmdLine() cmd:option('-model', 'model.t7','path to the input model file') cmd:option('-seed', 123, 'random nu...
gpl-2.0
trishume/hammerspoon
extensions/hotkey/init.lua
1
6278
--- === hs.hotkey === --- --- Create and manage global keyboard shortcuts local hotkey = require "hs.hotkey.internal" local keycodes = require "hs.keycodes" --- hs.hotkey.new(mods, key, pressedfn[, releasedfn, repeatfn]) -> hotkeyObject or nil --- Constructor --- Creates a new hotkey --- --- Parameters: --- * mods -...
mit
AresTao/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Rytaal.lua
19
4562
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Rytaal -- Type: Standard NPC -- @pos 112.002 -1.338 -45.038 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); ...
gpl-3.0
resetnow/premake-core
tests/project/test_config_maps.lua
32
3971
-- -- tests/project/test_config_maps.lua -- Test mapping from workspace to project configurations. -- Copyright (c) 2012-2014 Jason Perkins and the Premake project -- local suite = test.declare("project_config_maps") -- -- Setup and teardown -- local wks, prj, cfg function suite.setup() wks = workspace("MyWor...
bsd-3-clause
mcd1992/hash.js
plugins/lua/env.lua
1
2590
-- -- Returns a copy of a table with all current members read-only -- If target is defined, the returned result will be equal to target -- local function ProtectTable( tab, target, fakefunction ) fakefunction = fakefunction or {} local index = {} local ret = target or {} -- -- Copy new variables in to our table...
cc0-1.0
AresTao/darkstar
scripts/zones/GM_Home/Zone.lua
25
1251
----------------------------------- -- -- Zone: GM Home (210) -- -- Some cs event info: -- 0 = Abyssea Debug -- 1 = Mogsack Debug -- ... -- 139 = Janken challenges player to "Rock, Paper, Scissors" -- ... -- 140 = Camera test. -- 141 = "Press confirm button to proceed" nonworking test. -- -----------------...
gpl-3.0
AdiAddons/AdiButtonAuras
config/Theme.lua
1
5789
--[[ AdiButtonAuras - Display auras on action buttons. Copyright 2013-2022 Adirelle (adirelle@gmail.com) All rights reserved. This file is part of AdiButtonAuras. AdiButtonAuras 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 Softwa...
gpl-3.0
AresTao/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Churacoco.lua
38
1049
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Churacoco -- Type: Standard NPC -- @zone: 94 -- @pos -76.139 -4.499 20.986 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ...
gpl-3.0
kidaa/luvit
examples/broken/static-file-server.lua
9
1228
local mime = require('mime') local http = require('http') local url = require('url') local fs = require('fs') local Response = require('http').Response -- Monkey patch in a helper function Response:notFound(reason) self:writeHead(404, { ["Content-Type"] = "text/plain", ["Content-Length"] = #reason }) sel...
apache-2.0
Bulat-Ziganshin/FAM
fam.lua
1
1572
require 'iuplua' require 'iupluacontrols' require 'lfs' function get_dir (dir_path) local files = {} local dirs = {} for f in lfs.dir(dir_path) do if f ~= '.' and f ~= '..' then if lfs.attributes(dir_path..'/'..f,'mode') == 'file' then table.insert(files,f) else table.insert(dirs,...
mit
druckson/fuckthisjam-june2014
src/utils/sort.lua
1
1735
local function checkSorted(list, valueFunction) local last = nil for _, item in pairs(list) do value = valueFunction(item) if last and last >= value then return false end last = value end return true end local function merge(l1, l2, valueFunction) l...
mit
ivanceras/iup-mirror
html/examples/Lua/label.lua
3
1783
-- IupLabel Example in IupLua -- Creates three labels, one using all attributes except for image, other -- with normal text and the last one with an image.. require( "iuplua" ) -- Defines a star image img_star = iup.image { { 1,1,1,1,1,1,2,1,1,1,1,1,1 }, { 1,1,1,1,1,1,2,1,1,1,1,1,1 }, { 1,1,1,1,1,2,2,2,1,1,1...
mit
AresTao/darkstar
scripts/globals/items/shining_trout.lua
18
1323
----------------------------------------- -- ID: 5791 -- Item: shining_trout -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
AresTao/darkstar
scripts/zones/Yughott_Grotto/Zone.lua
28
1638
----------------------------------- -- -- Zone: Yughott_Grotto (142) -- ----------------------------------- package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Yughott_Grotto/TextIDs"); ----------------------------------- -- onInitialize...
gpl-3.0
soroushwilson/soroush
plugins/stats.lua
13
4010
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
AresTao/darkstar
scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua
17
1908
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Sewer Entrance -- @pos 28 -12 44 26 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/m...
gpl-3.0
DeinFreund/Zero-K
LuaUI/Widgets/gfx_lups_units_on_fire.lua
5
3025
-- $Id: gfx_lups_units_on_fire.lua 3171 2008-11-06 09:06:29Z det $ function widget:GetInfo() return { name = "Units on Fire", desc = "Graphical effect for burning units", author = "jK/quantum", date = "Sep, 2008", license = "GNU GPL, v2 or later", layer = 10, enabl...
gpl-2.0
gsage/engine
resources/scripts/lib/eal/common.lua
1
1907
require 'lib.class' -- base class for all engine entities -- contains only general functions local common = {} function common.base() local CoreEntity = class(function(self, entity) self.entity = entity if not self.entity then error("Nil entity provided") end self.id = entity.id end) loca...
mit
AdiAddons/AdiButtonAuras
core/Items.lua
1
3848
--[[ AdiButtonAuras - Display auras on action buttons. Copyright 2013-2022 Adirelle (adirelle@gmail.com) All rights reserved. This file is part of AdiButtonAuras. AdiButtonAuras 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 Softwa...
gpl-3.0
AresTao/darkstar
scripts/globals/items/ca_cuong.lua
18
1329
----------------------------------------- -- ID: 5474 -- Item: Ca Cuong -- Food Effect: 5 Min, Mithra only ----------------------------------------- -- Dexterity +2 -- Mind -4 -- Agility +2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
balaam/dinodeck
lib/LuaJIT/src/jit/v.lua
17
5614
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
AresTao/darkstar
scripts/zones/Upper_Jeuno/npcs/Emitt.lua
28
3228
----------------------------------- -- Area: Upper Jeuno -- NPC: Emitt -- @pos -95 0 160 244 ------------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("s...
gpl-3.0
AresTao/darkstar
scripts/globals/weaponskills/jishnus_radiance.lua
30
1308
----------------------------------- -- Jishnu's Radiance -- Archery weapon skill -- Skill level: 357 -- Empyrean Weapon Skill -- RNG Main Job Required -- Aligned with the Thunder & Breeze Gorget. -- Aligned with the Thunder Belt & Breeze Belt. -- Element: -- Modifiers: DEX:60% -- 100%TP 200%TP 300%TP -...
gpl-3.0
AresTao/darkstar
scripts/globals/spells/bluemagic/poison_breath.lua
18
2069
----------------------------------------- -- Spell: Poison Breath -- Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Poison -- Spell cost: 22 MP -- Monster Type: Hound -- Spell Type: Magical (Water) -- Blue Magic Points: 1 -- Stat Bonus: MND+1 -- Level: 22 ...
gpl-3.0
mkschreder/orangerpcd
lualib/orange/netstat.lua
1
1032
-- JUCI Lua Backend Server API -- Copyright (c) 2016 Martin Schröder <mkschreder.uk@gmail.com>. All rights reserved. -- This module is distributed under JUCI Genereal Public License as published -- at https://github.com/mkschreder/orangerpcd/COPYING. See COPYING file for details. local orange = require("orange/core"...
gpl-3.0
AresTao/darkstar
scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua
17
2294
----------------------------------- -- Area: Balga's Dais -- NPC: Burning Circle -- Balga's Dais Burning Circle -- @pos 299 -123 345 146 ------------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); ...
gpl-3.0
AresTao/darkstar
scripts/zones/Gusgen_Mines/npcs/Treasure_Chest.lua
19
3229
----------------------------------- -- Area: Gusgen Mines -- NPC: Treasure Chest -- Involved In Quest: The Goblin Tailor -- @zone 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("script...
gpl-3.0
AresTao/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/Sahgygy_WW.lua
30
3067
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Sahgygy, W.W. -- Border Conquest Guards -- @pos 226.493 -12.231 260.194 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/globals/c...
gpl-3.0
mirbitbit/teleseed
plugins/all.lua
264
4202
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
DeinFreund/Zero-K
gamedata/weapondefs_post.lua
2
13458
-- $Id: weapondefs_post.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: weapondefs_post.lua -- brief: weaponDef post processing -- author: Dave Rodge...
gpl-2.0
Jmainguy/docker_images
prosody/prosody/lib/prosody/modules/mod_auth_cyrus.lua
7
2424
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local log = require "util.logger".init("auth_cyrus"); local usermanager_user_exists = require "core.userm...
gpl-2.0
AresTao/darkstar
scripts/globals/spells/cure.lua
18
3963
----------------------------------------- -- Spell: Cure -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/ma...
gpl-3.0
Y33XY/Team
bot/devpoint.lua
21
15057
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
AresTao/darkstar
scripts/zones/Castle_Oztroja/npcs/qm2.lua
19
1374
----------------------------------- -- Area: Castle Oztroja -- NPC: qm2 (???) -- Used In Quest: Whence Blows the Wind -- @pos -100 -63 58 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
AresTao/darkstar
scripts/globals/spells/huton_ichi.lua
17
1245
----------------------------------------- -- Spell: Huton: Ichi -- Deals wind damage to an enemy and lowers its resistance against ice. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----...
gpl-3.0
DeinFreund/Zero-K
effects/gundam_burnteal.lua
25
3400
-- burnteal return { ["burnteal"] = { groundflash = { alwaysvisible = true, circlealpha = 1, circlegrowth = 3, flashalpha = 1, flashsize = 25, ttl = 8, color = { [1] = 0, [2] = 0.5, [3] = 0.5, ...
gpl-2.0
TeleDALAD/007
plugins/inpm.lua
1114
3008
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
resetnow/premake-core
tests/actions/vstudio/vc2010/test_debug_settings.lua
2
2364
-- -- tests/actions/vstudio/vc2010/test_debug_settings.lua -- Validate handling of the working directory for debugging. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vs2010_debug_settings") local vc2010 = premake.vstudio.vc2010 local project = premak...
bsd-3-clause
AresTao/darkstar
scripts/zones/Nashmau/npcs/Chichiroon.lua
34
1300
----------------------------------- -- Area: Nashmau -- NPC: Chichiroon -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/globals/shop"); --------...
gpl-3.0
DeinFreund/Zero-K
LuaUI/Widgets/gui_chili_facbar.lua
5
19680
------------------------------------------------------------------------------- local version = "v0.053" function widget:GetInfo() return { name = "Chili FactoryBar", desc = version .. " - Chili buildmenu for factories.", author = "CarRepairer (converted from jK's Buildbar)", date ...
gpl-2.0
AresTao/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Teteroon.lua
34
1033
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Teteroon -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---------...
gpl-3.0
kidaa/luvit
bench/http-cluster/worker.lua
14
2257
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
mamaddeveloper/Testmamo
plugins/invite.lua
5
1221
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
prosody-modules/import
mod_storage_multi/mod_storage_multi.lua
32
2258
-- mod_storage_multi local storagemanager = require"core.storagemanager"; local backends = module:get_option_array(module.name); -- TODO better name? -- TODO migrate data "upwards" -- one → one successful write is success -- all → all backends must report success -- majority → majority of backends must report succes...
mit
markandgo/LOVEly-tiles
ext/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
mit
AresTao/darkstar
scripts/zones/Port_San_dOria/npcs/Anton.lua
17
1776
----------------------------------- -- Area: Port San d'Oria -- NPC: Anton -- @zone 232 -- @pos -19 -8 27 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
AresTao/darkstar
scripts/zones/Promyvion-Dem/Zone.lua
25
6495
----------------------------------- -- -- Zone: Promyvion-Dem (18) -- ----------------------------------- package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/missions"...
gpl-3.0
Shayan123456/bottttttt1
plugins/spamgroup.lua
96
28863
do function run(msg, matches) return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack...
gpl-2.0
ashhher3/treelstm
relatedness/TreeLSTMSim.lua
10
7240
--[[ Semantic relatedness prediction using Tree-LSTMs. --]] local TreeLSTMSim = torch.class('treelstm.TreeLSTMSim') function TreeLSTMSim:__init(config) self.mem_dim = config.mem_dim or 150 self.learning_rate = config.learning_rate or 0.05 self.emb_learning_rate = config.emb_learning_rate or 0.0 ...
gpl-2.0
AresTao/darkstar
scripts/globals/mobskills/Benthic_Typhoon.lua
25
1031
--------------------------------------------- -- Benthic Typhoon -- -- Description: Delivers an area attack that lowers target's defense and magic defense. Damage varies with TP. -- Type: Physical (Piercing) -- -- --------------------------------------------- require("scripts/globals/settings"); require("sc...
gpl-3.0
AresTao/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kamnahb.lua
34
1032
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kamnahb -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ----------...
gpl-3.0
AresTao/darkstar
scripts/zones/Port_Jeuno/npcs/Narsha.lua
28
1796
----------------------------------- -- Area: Port Jeuno -- NPC: Narsha -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ------------------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Sealions_Den/npcs/_0w0.lua
12
1945
----------------------------------- -- Area: Sealion's Den -- NPC: Iron Gate -- @pos 612 132 774 32 ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missions"); requir...
gpl-3.0
AresTao/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahnid.lua
19
1180
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Wahnid -- Type: Guild Merchant: Fishing Guild -- @pos -31.720 -6.000 -94.919 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
Jmainguy/docker_images
prosody/prosody/lib/prosody/util/dependencies.lua
2
5794
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module("dependencies", package.seeall) function softreq(...) local ok, lib = pcall(require, ...); if ok...
gpl-2.0
AresTao/darkstar
scripts/globals/weaponskills/trueflight.lua
18
4616
----------------------------------- -- Skill Level: N/A -- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Ranger) quest. -- Does not work with Flashy Shot. -- Does not work with Stealth Shot. ...
gpl-3.0
DeinFreund/Zero-K
scripts/subraider.lua
8
1224
--by Chris Mackey local wake = piece "wake" local base = piece "base" local firepoint = piece "firepoint" function script.QueryWeapon(num) return firepoint end function script.AimFromWeapon(num) return base end function script.AimWeapon(num, heading, pitch) return num == 2 end function script.BlockShot(num, target...
gpl-2.0
yinqiwen/ardb
test/commands/list_test.lua
1
4242
--[[ --]] ardb.call("del", "mylist") local s = ardb.call("lpush", "mylist", "world") ardb.assert2(s == 1, s) s = ardb.call("lpushx", "notexist_list", "world") ardb.assert2(s == 0, s) s = ardb.call("rpushx", "notexist_list", "world") ardb.assert2(s == 0, s) s = ardb.call("lpush", "mylist", "hello") ardb.asser...
bsd-3-clause
AresTao/darkstar
scripts/globals/spells/rasp.lua
18
1584
----------------------------------------- -- Spell: Rasp -- Deals earth damage that lowers an enemy's dexterity and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Gueriette.lua
17
1815
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Gueriette -- Type: Outpost Vendor -- @pos -24 -59 -120 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("script...
gpl-3.0
AresTao/darkstar
scripts/zones/Windurst_Walls/npcs/_6n8.lua
17
1309
----------------------------------- -- Area: Windurst Walls -- Door: Priming Gate -- Involved in quest: Toraimarai Turmoil ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Windurst_Walls/TextIDs"); -----------------------------...
gpl-3.0
tysonliddell/OpenRA
mods/ra/maps/survival01/survival01.lua
1
14949
--[[ Copyright 2007-2020 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
Jmainguy/docker_images
prosody/prosody/lib/prosody/util/datetime.lua
4
1470
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- XEP-0082: XMPP Date and Time Profiles local os_date = os.date; local os_time = os.time; local os_dif...
gpl-2.0
bluebarnacles/vlc-2.1
share/lua/playlist/pinkbike.lua
97
2080
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
gpl-2.0
AresTao/darkstar
scripts/globals/weaponskills/flat_blade.lua
18
1513
----------------------------------- -- Flat Blade -- Sword weapon skill -- Skill Level: 75 -- Stuns enemy. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300...
gpl-3.0
prasadvagdargi/med_image_analysis
Examples/DicomSeriesReader/DicomSeriesReader.lua
2
1274
--========================================================================= -- -- Copyright Insight Software Consortium -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- h...
apache-2.0
dreamsxin/manaserv
example/scripts/npcs/debugger.lua
4
3758
---------------------------------------------------------- -- Seller Function Sample -- ---------------------------------------------------------------------------------- -- Copyright 2009-2010 The Mana World Development Team -- -- ...
gpl-2.0
ld-test/prosody
core/hostmanager.lua
1
5275
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local configmanager = require "core.configmanager"; local modulemanager = require "core.modulemanager"; lo...
mit