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 |
|---|---|---|---|---|---|
liruqi/bigfoot | Interface/AddOns/Bagnon_VoidStorage/components/itemFrame.lua | 1 | 1350 | --[[
itemFrame.lua
A void storage item frame. Three kinds:
nil -> deposited items
DEPOSIT -> items to deposit
WITHDRAW -> items to withdraw
--]]
local ItemFrame = Bagnon:NewClass('VaultItemFrame', 'Button', Bagnon.ItemFrame)
ItemFrame.Button = Bagnon.VaultSlot
ItemFrame.TransposeLayout = true
function Ite... | mit |
Electrovirus/Griffin | plugins/rules.lua | 1 | 1610 |
local function set_rules_channel(msg, text)
local rules = text
local hash = 'channel:id:'..msg.to.id..':rules'
redis:set(hash, rules)
end
local function del_rules_channel(chat_id)
local hash = 'channel:id:'..chat_id..':rules'
redis:del(hash)
end
local function init_def_rules(chat_id)
local rules =... | gpl-2.0 |
br-lemes/stuff | smartlan/mime.lua | 118 | 2433 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $
-----------------------------------------------------------------------------
------... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 12 | 1085 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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: smap_devinfo_mini.lua 5448 20... | gpl-2.0 |
telegold/telespam | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Telewild/telewild | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
ozhanf/ozhanf----bot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
moderna/ShivaSensorRigging | shiva/SensorRigging/Resources/Scripts/SensorRigging_State_Save_onEnter.lua | 1 | 1035 | --------------------------------------------------------------------------------
-- State............ : Save
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
------------------------------------------------------------------------------... | gpl-3.0 |
codership/sysbench | src/lua/internal/sysbench.sql.lua | 1 | 14203 | -- Copyright (C) 2017 Alexey Kopytov <akopytov@gmail.com>
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
-- This ... | gpl-2.0 |
jheusala/freeciv | dependencies/tolua-5.1/src/bin/lua/verbatim.lua | 5 | 1614 | -- tolua: verbatim class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: verbatim.lua,v 1.3 2000/01/24 20:41:16 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to prov... | gpl-2.0 |
ingran/balzac | custom_feeds/teltonika_luci/libs/nixio/axTLS/samples/lua/axssl.lua | 176 | 19286 | #!/usr/local/bin/lua
--
-- Copyright (c) 2007, Cameron Rich
--
-- 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,
-... | gpl-2.0 |
gastrodia/awesome | lib/wibox/init.lua | 2 | 5252 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox
---------------------------------------------------------------------------
local capi = {
drawin = drawin,
root = root,
a... | gpl-2.0 |
codership/sysbench | tests/include/oltp_legacy/oltp.lua | 2 | 3004 | pathtest = string.match(test, "(.*/)")
if pathtest then
dofile(pathtest .. "common.lua")
else
require("common")
end
function thread_init()
set_vars()
if (((db_driver == "mysql") or (db_driver == "attachsql")) and mysql_table_engine == "myisam") then
local i
local tables = {}
for i=1, ol... | gpl-2.0 |
topameng/tolua_runtime | luajit-2.1/dynasm/dasm_ppc.lua | 3 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
shiprabehera/kong | kong/plugins/response-ratelimiting/schema.lua | 5 | 2953 | local Errors = require "kong.dao.errors"
local REDIS = "redis"
local function check_ordered_limits(limit_value)
local ordered_periods = { "second", "minute", "hour", "day", "month", "year"}
local has_value
local invalid_order
local invalid_value
for i, v in ipairs(ordered_periods) do
if limit_value[v] ... | apache-2.0 |
liruqi/bigfoot | Interface/AddOns/Mapster/FogClear.lua | 1 | 64277 | --[[
Copyright (c) 2009-2016, Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com >
All rights reserved.
]]
local Mapster = LibStub("AceAddon-3.0"):GetAddon("Mapster")
local L = LibStub("AceLocale-3.0"):GetLocale("Mapster")
local MODNAME = "FogClear"
local FogClear = Mapster:NewModule(MODNAME, "AceHook-3.0", ... | mit |
mehrpouya81/gamerbot | plugins/anti_spam.lua | 102 | 3744 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Party-MoP/ScarletCathedral/Durand.lua | 1 | 3983 | local mod = DBM:NewMod(674, "DBM-Party-MoP", 9, 316)
local L = mod:GetLocalizedStrings()
local sndWOP = mod:SoundMM("SoundWOP")
mod:SetRevision(("$Revision: 9656 $"):sub(12, -3))
mod:SetCreatureID(60040, 99999)--3977 is High Inquisitor Whitemane and 60040 is Commander Durand, we don't really need to add her ID,... | mit |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/AceGUI-3.0-Spell-EditBox/SpellLoader.lua | 1 | 3017 | local major = "AceGUI-3.0-SpellLoader"
local minor = 1
local SpellLoader = LibStub:NewLibrary(major, minor)
if( not SpellLoader ) then return end
SpellLoader.predictors = SpellLoader.predictors or {}
SpellLoader.spellList = SpellLoader.spellList or {}
SpellLoader.spellsLoaded = SpellLoader.spellsLoaded or 0
... | mit |
jessemillar/the-staff-of-lewis | src/classes/combination/enemy.lua | 1 | 2924 | Enemy =
Class.new(
{
__includes = {Animated, Follower, Alive, Solid, Entity, Drawable, Simple}
}
)
function Enemy:init(args)
Simple.init(
self,
{
pos = args.pos,
size = args.size,
tilemapLoad = args.tilemapLoad,
floatSpeed = args.f... | mit |
jessemillar/the-staff-of-lewis | lib/baton.lua | 1 | 7660 | local baton = {
_VERSION = "Baton v1.0",
_DESCRIPTION = "Input library for LÖVE.",
_URL = "https://github.com/tesselode/baton",
_LICENSE = [[
MIT License
Copyright (c) 2018 Andrew Minnich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documenta... | mit |
liruqi/bigfoot | Interface/AddOns/DBM-RaidLeadTools/DBM-AutoInvite/autoinvite.lua | 1 | 12954 | -- **********************************************************
-- ** Deadly Boss Mods - AutoInvite **
-- ** http://www.deadlybossmods.com **
-- **********************************************************
--
-- This addon is written and copyrighted by:
-- * Martin Ver... | mit |
mahdikord/nadi | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
aqasaeed/x | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
shiprabehera/kong | spec/03-plugins/09-galileo/01-alf_spec.lua | 3 | 23709 | _G.ngx = require "spec.03-plugins.09-galileo.ngx"
-- asserts if an array contains a given table
local function contains(state, args)
local entry, t = unpack(args)
for i = 1, #t do
if pcall(assert.same, entry, t[i]) then
return true
end
end
return false
end
local say = require "say"
local luasser... | apache-2.0 |
ProDataLab/veins-3a2-plus | tests/traci/init.lua | 3 | 10164 | --
-- TraCI Dissector for Wireshark
-- Copyright (C) 2013 Christoph Sommer <christoph.sommer@uibk.ac.at>
--
-- 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,... | gpl-2.0 |
google-code/betsynetpdf | sumatrapdf/luatest/t02.lua | 7 | 1207 | require'setupluafiles'
local winapi = require'winapi'
require'winapi.showcase'
require'winapi.icon'
require'winapi.buttonclass'
local window = winapi.ShowcaseWindow{w=300,h=300}
local b1 = winapi.Button{parent = window, default = true}
b1:focus()
function b1:on_click() print'b1 clicked' end
--b1:__inspect()
... | gpl-3.0 |
TechAtNYU/wiki | extensions/Scribunto/engines/LuaStandalone/MWServer.lua | 5 | 17191 | MWServer = {}
--- Create a new MWServer object
function MWServer:new( interpreterId )
interpreterId = tonumber( interpreterId )
if not interpreterId then
error( "bad argument #1 to 'MWServer:new' (must be a number or convertible to a number)", 2 )
end
obj = {
interpreterId = interpreterId,
nextChunkId = 1,
... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/BigFoot/Library/BigFootInfo.lua | 1 | 2985 | local BLInfo_dbdf11f5b07258936fb1c5a31eaa969c = 1; local BLInfo_1b5523f0adb45c4b8ee51f89ebf6f2b2 = 0; BInfo = {}; local function BLInfo_fbdc276aab70785831ced75c81d87eff(BLInfo_7739b813d90aed43ab9d0eb84ec1c1ae) if (type(BLInfo_7739b813d90aed43ab9d0eb84ec1c1ae) == "table" or type(BLInfo_7739b813d90aed43ab9d0eb84ec1c1ae)... | mit |
ingran/balzac | custom_feeds/teltonika_luci/libs/nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/dct_options/locals/tw_loc_options.lua | 1 | 20814 | if GetLocale() ~= "zhTW" then return;end
DCT_CHECK_ENABLE_LABEL = "啟動戰鬥指示器"
DCT_EVENT_OPTION = "受到的事件";
DCT_EVENT2_OPTION = "受到的事件2";
DCT_FRAME_OPTION = "動畫框架";
DCT_FONT_OPTION = "字體自定義";
DCT_SAVE_OPTION = "預設和配置檔"
DCT_MISC_OPTION = "其他設置"
DCT_SPEC_OPTION = "特定事件1"
DCT_SPEC_OPTION2 = "特定事件2"
DCT_BUTTON_... | mit |
LuaDist2/luaunit | test/legacy_example_with_luaunit.lua | 4 | 3229 | EXPORT_ASSERT_TO_GLOBALS = true
require('luaunit')
TestToto = {} --class
function TestToto:setUp()
-- set up tests
self.a = 1
self.s = 'hop'
self.t1 = {1,2,3}
self.t2 = {one=1,two=2,three=3}
self.t3 = {1,2,three=3}
end
function TestToto:test1_withFailure()... | bsd-2-clause |
shiprabehera/kong | spec/03-plugins/16-response-transformer/03-api_spec.lua | 2 | 3456 | local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Plugin: response-transformer (API)", function()
local admin_client
teardown(function()
if admin_client then
admin_client:close()
end
helpers.stop_kong()
end)
describe("POST", function()
setup(function()
... | apache-2.0 |
alijoooon/Psycho | plugins/plug.lua | 9 | 6396 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
zorbathut/lua-persistence | persistence.lua | 1 | 11467 | --[[
Copyright (c) 2010 The Color Black
Copyright (c) 2011-2014 Trion Worlds, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the right... | mit |
mahdikord/nadi | plugins/stats.lua | 35 | 4206 | 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 |
gastrodia/awesome | lib/gears/sort.lua | 11 | 1694 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.sort
---------------------------------------------------------------------------
local setmetatable = setmetatable
local ipairs = ipairs... | gpl-2.0 |
telegrambot81/supergrup | plugins/badword.lua | 1 | 2524 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "کلمه جدید به فیلتر کلمات اضافه شد\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
... | gpl-2.0 |
devm11/DEV_M1 | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Party-Legion/HallsOfValor/Hyrja.lua | 1 | 3986 | local mod = DBM:NewMod(1486, "DBM-Party-Legion", 4, 721)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17522 $"):sub(12, -3))
mod:SetCreatureID(95833)
mod:SetEncounterID(1806)
mod:SetZone()
mod:RegisterCombat("combat")
mod:SetWipeTime(120)
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 192048 1... | mit |
Necroskillz/StatWeightScore | src/SimulationCraft.lua | 1 | 3909 | local SWS_ADDON_NAME, StatWeightScore = ...;
local SimcModule = StatWeightScore:NewModule(SWS_ADDON_NAME.."Simc");
local ItemModule;
local Utils;
function SimcModule:OnInitialize()
ItemModule = StatWeightScore:GetModule(SWS_ADDON_NAME.."Item");
Utils = StatWeightScore.Utils;
end
local function getKey(link)
... | mit |
kaen/sutratman | mods/stm/character.lua | 1 | 9285 | --- Represents any character in the world (including players).
Character = serializable.define('Character', function()
return {
pos = vector.new(0,0,0),
yaw = 0,
name = "",
race = nil,
velocity = vector.new(0,0,0),
acceleration = vector.new(0,0,0),
municipality = nil,
materialized = fa... | mit |
jheusala/freeciv | dependencies/tolua-5.1/src/bin/lua/clean.lua | 5 | 1299 | -- mark up comments and strings
STR1 = "\001"
STR2 = "\002"
STR3 = "\003"
STR4 = "\004"
REM = "\005"
ANY = "([\001-\005])"
ESC1 = "\006"
ESC2 = "\007"
MASK = { -- the substitution order is important
{ESC1, "\\'"},
{ESC2, '\\"'},
{STR1, "'"},
{STR2, '"'},
{STR3, "%[%["},
{STR4, "%]%]"},
{REM , "%-%-"},
}
func... | gpl-2.0 |
whiver/ntui | zoetrope/init.lua | 4 | 3828 | -- copy references to existing globals so that
-- debug.reload() will have a correct initial starting point.
if DEBUG then
-- remember initial state
local _initialGlobals = {}
local _initialPackages = {}
for key, value in pairs(_G) do
_initialGlobals[key] = value
end
for key, value in pairs(package.loaded) ... | gpl-3.0 |
johannes-mueller/ardour | scripts/amp4.lua | 2 | 3296 | ardour {
["type"] = "dsp",
name = "a-Amplifier",
category = "Amplifier",
license = "MIT",
author = "Ardour Team",
description = [[Versatile +/- 20dB multichannel amplifier]]
}
function dsp_ioconfig ()
return
{
-- -1, -1 = any number of channels as long as input and output count matches
... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseGUI-2.0/Widget/DropMenu.lua | 1 | 9619 |
local WIDGET, VERSION = 'DropMenu', 10
local GUI = LibStub('NetEaseGUI-2.0')
local DropMenu = GUI:NewClass(WIDGET, GUI:GetClass('GridView'), VERSION, 'Owner')
if not DropMenu then
return
end
local Tooltip = GUI:GetClass('Tooltip')
DropMenu._Objects = DropMenu._Objects or {}
local function check(va... | mit |
jeancharles-roger/CloudModelExplorer | models/src/test/resources/cdl/test3/target.lua | 1 | 1713 | -- Copyright 2015 to CloudModelExplorer authors
--
-- 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 la... | apache-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Challenges/PGWhiteTiger.lua | 1 | 9867 | local mod = DBM:NewMod("d640", "DBM-Challenges", 1, nil, function(t)
if( GetLocale() == "deDE") then
return select(2, string.match(t, "(%S+): (%S+.%S+.%S+.%S+)")) -- "Feuerprobe: Tempel des Weißen Tigers QUEST nil"
else
return select(2, string.match(t, "(%S+.%S+): (%S+.%S+)")) or select(2, string.match(t, "(... | mit |
ingran/balzac | custom_feeds/teltonika_luci/modules/admin-mini/luasrc/model/cbi/mini/system.lua | 10 | 2336 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: system.lu... | gpl-2.0 |
ingran/balzac | custom_feeds/teltonika_luci/libs/core/luasrc/util.lua | 5 | 22087 | --[[
LuCI - Utility library
Description:
Several common useful Lua functions
FileId:
$Id: util.lua 6419 2010-11-13 12:16:51Z jow $
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-WorldEvents/Holidays/Ahune.lua | 1 | 1559 | local mod = DBM:NewMod("d286", "DBM-WorldEvents", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17257 $"):sub(12, -3))
mod:SetCreatureID(25740)--25740 Ahune, 25755, 25756 the two types of adds
mod:SetModelID(23447)--Frozen Core, ahunes looks pretty bad.
mod:SetZone()
mod:SetReCombatTime... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 8 | 2820 | --[[
Luci statistics - interface plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Party-WoD/IronDocks/Skulloc.lua | 1 | 3182 | local mod = DBM:NewMod(1238, "DBM-Party-WoD", 4, 558)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15007 $"):sub(12, -3))
mod:SetCreatureID(83612)
mod:SetEncounterID(1754)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 168398",
"SPELL_CAST_START 1689... | mit |
david-leal/nau | head/projects/path tracing/test.lua | 2 | 1560 | testCams = function()
local f = {0,0,250,1}
local f1= {0,0,0,0}
local g = {0,0,0,0}
local g1 = {0,0,0,0}
local k = {0}
getAttr("CAMERA", "MainCamera", "POSITION",0,f)
getAttr("CAMERA", "Slave", "POSITION", 0, f1)
getAttr("CAMERA", "MainCamera", "VIEW",0,g)
getAttr("CAMERA", "Slave", "VIEW",0, g1)
if (f[1]... | mit |
liruqi/bigfoot | Interface/AddOns/DBM-Party-Legion/VaultOfWarden/Ashgolm.lua | 1 | 1564 | local mod = DBM:NewMod(1468, "DBM-Party-Legion", 10, 707)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17095 $"):sub(12, -3))
mod:SetCreatureID(95886)
mod:SetEncounterID(1816)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 192522 192631 192621",
"SPELL... | mit |
SINGLECYBER/CyberSource | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | agpl-3.0 |
telegrambot81/supergrup | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Hosseiin138yz/sam | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
devm11/DEV_M1 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
ozhanf/ozhanf----bot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/Ace3/AceEvent-3.0/AceEvent-3.0.lua | 3 | 4887 | --- AceEvent-3.0 provides event registration and secure dispatching.
-- All dispatching is done using **CallbackHandler-1.0**. AceEvent is a simple wrapper around
-- CallbackHandler, and dispatches all game events or addon message to the registrees.
--
-- **AceEvent-3.0** can be embeded into your addon, either expl... | mit |
Nitroteam/a | plugins/ingroup.lua | 2 | 49366 | 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 |
devm11/DEV_M1 | plugins/supergroup.lua | 2 | 98280 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ orders : الاوامر ▀▄ ▄▀
▀... | gpl-2.0 |
klukonin/nodemcu-firmware | lua_examples/u8glib/u8g_rotation.lua | 43 | 2088 |
-- setup I2c and connect display
function init_i2c_display()
-- SDA and SCL can be assigned freely to available GPIOs
local sda = 5 -- GPIO14
local scl = 6 -- GPIO12
local sla = 0x3c
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
end
-- setup SPI and connect display
... | mit |
shiprabehera/kong | kong/plugins/galileo/migrations/postgres.lua | 12 | 1364 | return {
{
name = "2016-04-15_galileo-import-mashape-analytics",
up = function(_, _, dao)
local rows, err = dao.plugins:find_all {name = "mashape-analytics"}
if err then
return err
end
for i = 1, #rows do
local analytics = rows[i]
local host = analytics.config... | apache-2.0 |
shiprabehera/kong | kong/plugins/galileo/handler.lua | 3 | 1779 | -- Galileo plugin handler.
-- Buffers request/response bodies if asked so in the plugin's config.
-- Caches the server's address to avoid further syscalls.
--
-- Maintains one ALF Buffer per galileo plugin per worker.
local BasePlugin = require "kong.plugins.base_plugin"
local Buffer = require "kong.plugins.galileo.bu... | apache-2.0 |
Volker2014/ESP8266_weather | motor28byj.lua | 1 | 2328 | -- motor28byj.lua
-- simple stepper driver for controlling a stepper motor with a ULN2003 driver
local module = {}
local stepper_pins = nil
-- half or full stepping
local step_states4 = {
{1,0,0,1},
{1,1,0,0},
{0,1,1,0},
{0,0,1,1}
}
local step_states8 = {
{1,0,0,0},
{1,1,0,0},
{0,1,0,0},
{0,1,1,0},
{0,0,... | gpl-3.0 |
kaen/Zero-K | LuaUI/i18nlib/i18n/interpolate.lua | 27 | 1075 |
local unpack = unpack or table.unpack -- lua 5.2 compat
local bracketDummy = "@@@@@@@@@{@@@@@@@@@"
local ltDummy = "@@@@@@@@@<@@@@@@@@@"
-- matches a string of type %{age}
local function interpolateVariables(str, vars)
return str:gsub("%%{%s*(.-)%s*}", function(key) return tostring(vars[key]) end)
end
-- mat... | gpl-2.0 |
Brilliant-Minds/BMNBot-2 | configtemplate.lua | 1 | 1646 | permissions = {}
--insert host into permissions here
--example: permissions["Powder/Developer/cracker64"] = 101
--Owner should be 101
permissions["botters/wolfy1339"] = 101
permissions["/bot/"] = -1
--Get perm value for part of a hostmask (usually just host)
function getPerms(host)
if permissions[host] then return per... | mit |
sepehrpk/bot1 | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
marek-g/vlc-signio | share/lua/playlist/canalplus.lua | 113 | 3501 | --[[
$Id: $
Copyright (c) 2007 the VideoLAN 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; either version 2 of the License, or
(at your option) any later version.
This program is distr... | gpl-2.0 |
vvtam/vlc | share/lua/playlist/canalplus.lua | 113 | 3501 | --[[
$Id: $
Copyright (c) 2007 the VideoLAN 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; either version 2 of the License, or
(at your option) any later version.
This program is distr... | gpl-2.0 |
legend18/dragonbone_cocos2dx-3.x | demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/SceneReader.lua | 6 | 1218 |
--------------------------------
-- @module SceneReader
-- @parent_module ccs
--------------------------------
-- @function [parent=#SceneReader] setTarget
-- @param self
-- @param #function func
--------------------------------
-- @function [parent=#SceneReader] createNodeWithSceneFile
-- @param self
-- @... | mit |
famellad/oldschool-scroller | lua-snd/TEsound.lua | 1 | 8108 | --- TEsound v1.3, a simplified sound system for Love 2D
-- @author Ensayia (Ensayia@gmail.com) & Taehl (SelfMadeSpirit@gmail.com)
TEsound = {} -- Namespace
TEsound.channels = {} -- This holds the currently playing sound channels
TEsound.volumeLevels = {} -- Volume levels that multiply the volumes of sounds with tho... | gpl-2.0 |
geanux/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5ff.lua | 34 | 1109 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 88 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextID... | gpl-3.0 |
girishramnani/Algorithm-Implementations | Rabin_Karp/Lua/Yonaba/rabin_karp.lua | 26 | 1376 | -- Rabin-Karp string searching algorithm implementation
-- See: http://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_string_search_algorithm
-- Note: This implementation is based on the Python implementation of Shivam Bansal
-- See : https://github.com/kennyledet/Algorithm-Implementations/blob/master/Rabin_Karp/Python/shiv... | mit |
kaen/Zero-K | gamedata/modularcomms/weapons/sonicgun.lua | 4 | 1467 | local name = "commweapon_sonicgun"
local weaponDef = {
name = [[Sonic Blaster]],
areaOfEffect = 70,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 0,
craterMult = 0,
customParams = {... | gpl-2.0 |
mullikine/vlc | share/lua/playlist/metachannels.lua | 92 | 2096 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Rémi Duraffort <ivoire at videolan dot 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 y... | gpl-2.0 |
geanux/darkstar | scripts/zones/La_Theine_Plateau/npcs/Galaihaurat.lua | 17 | 2430 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Galaihaurat
-- Involved in Mission: The Rescue Drill
-- @pos -482 -7 222 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
geanux/darkstar | scripts/zones/Nashmau/npcs/Awaheen.lua | 17 | 1932 | -----------------------------------
-- Area: Nashmau
-- NPC: Awaheen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade A... | gpl-3.0 |
geanux/darkstar | scripts/zones/Windurst_Waters/npcs/HomePoint#1.lua | 17 | 1266 | -----------------------------------
-- Area: Windurst Waters
-- NPC: HomePoint#1
-- @pos -32.022 -5.000 131.741 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Waters/TextIDs");
requi... | gpl-3.0 |
geanux/darkstar | scripts/zones/Southern_San_dOria/npcs/Balasiel.lua | 17 | 6074 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Balasiel
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- @pos -136 -11 64
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
geanux/darkstar | scripts/globals/weaponskills/spinning_slash.lua | 30 | 1563 | -----------------------------------
-- Spinning Slash
-- Great Sword weapon skill
-- Skill level: 225
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:30% ; INT:30%
-- 100%TP 200%TP 300%TP
-- 2.5 3 3.5
-----------------------------------
require("scripts/globals/status");
require... | gpl-3.0 |
geanux/darkstar | scripts/commands/checkvar.lua | 38 | 1130 | ---------------------------------------------------------------------------------------------------
-- func: @checkvar <varType> <varName>
-- desc: checks player or server variable and returns result value.
---------------------------------------------------------------------------------------------------
cmdprops =
{... | gpl-3.0 |
Weol/URM | lua/ulx/modules/sh/communication.lua | 1 | 3282 |
if SERVER then
TIIP = TIIP or {}
TIIP.URM = TIIP.URM or {}
TIIP.URM.LoadTable = TIIP.URM.LoadTable or {}
if not TIIP.URM.Loaded then
table.insert(TIIP.URM.LoadTable,"ulx/modules/sh/communication.lua")
return
end
TIIP.URM.DATA = {
TIIPURMLimits = function() return TIIP.URM.Limits end,
TIIPURMRestricti... | mit |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/loop/collection/MapWithArrayOfKeys.lua | 12 | 2348 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | gpl-2.0 |
legend18/dragonbone_cocos2dx-3.x | demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/ComAttribute.lua | 7 | 2283 |
--------------------------------
-- @module ComAttribute
-- @extend Component
-- @parent_module ccs
--------------------------------
-- @function [parent=#ComAttribute] getFloat
-- @param self
-- @param #string str
-- @param #float float
-- @return float#float ret (return value: float)
---------------------... | mit |
geanux/darkstar | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 17 | 2216 | -----------------------------------
-- Area: Waughroon Shrine
-- NPC: Burning Circle
-- Waughroon Shrine Burning Circle
-- @pos -345 104 -260 144
-------------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
geanux/darkstar | scripts/zones/Valkurm_Dunes/npcs/Quanteilleron_RK.lua | 28 | 3133 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Quanteilleron, R.K.
-- Outpost Conquest Guards
-- @pos 144 -7 104 103
-------------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest")... | gpl-3.0 |
ExcelF/project-navel | smee/libs/jumper/core/assert.lua | 4 | 2517 | -- Various assertion function for API methods argument-checking
if (...) then
-- Dependancies
local _PATH = (...):gsub('%.core.assert$','')
local Utils = require (_PATH .. '.core.utils')
-- Local references
local lua_type = type
local floor = math.floor
local concat = table.concat
local next = next
local pa... | mit |
LiangMa/skynet | service/bootstrap.lua | 29 | 1191 | local skynet = require "skynet"
local harbor = require "skynet.harbor"
require "skynet.manager" -- import skynet.launch, ...
local memory = require "memory"
skynet.start(function()
local sharestring = tonumber(skynet.getenv "sharestring")
memory.ssexpand(sharestring or 4096)
local standalone = skynet.getenv "stand... | mit |
geanux/darkstar | scripts/zones/Al_Zahbi/Zone.lua | 28 | 1323 | -----------------------------------
--
-- Zone: Al_Zahbi (48)
--
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Al_Zahbi/TextIDs");
----------------------------------... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/loop/debug/Viewer.lua | 11 | 5744 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | gpl-2.0 |
geanux/darkstar | scripts/globals/abilities/sic.lua | 28 | 1058 | -----------------------------------
-- Ability: Sic
-- Commands the charmed Pet to make a random special attack.
-- Obtained: Beastmaster Level 25
-- Recast Time: 2 minutes
-- Duration: N/A
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Al_Zahbi/npcs/Yudi_Yolhbi.lua | 53 | 2326 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Yudi Yolhbi
-- Type: Woodworking Normal/Adv. Image Support
-- @pos -71.584 -7 -56.018 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
xXDarkBoyXx/Cloud_Tm | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
kaen/Zero-K | units/cormart.lua | 2 | 5654 | unitDef = {
unitname = [[cormart]],
name = [[Pillager]],
description = [[General-Purpose Artillery]],
acceleration = 0.0282,
brakeRate = 0.136,
buildCostEnergy = 700,
buildCostMetal = 700,
builder = false,
buildPic = [[... | gpl-2.0 |
kaen/Zero-K | LuaRules/Gadgets/lups_flame_jitter.lua | 17 | 6545 | -- $Id: lups_flame_jitter.lua 3643 2009-01-03 03:00:52Z jk $
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Lups Flamethrower Jitter",
d... | gpl-2.0 |
shayan-soft/virus | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
geanux/darkstar | scripts/zones/Lower_Jeuno/npcs/Teigero-Bangero.lua | 17 | 2935 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Teigero Bangero
-- Involved in Quests: Save the Clock Tower, The Lost Cardian
-- @zone 245
-- @pos -58 0 -143
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.