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 |
|---|---|---|---|---|---|
omidtarh/wezardbot | 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 |
swiftgeek/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 80 | 4829 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | gpl-2.0 |
swiftgeek/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua | 74 | 7228 | -- ------ extra functions ------ --
function interfaceCheck()
metricValue = ut.trim(sys.exec("uci -p /var/state get network." .. arg[1] .. ".metric"))
if metricValue == "" then -- no metric
errorNoMetric = 1
else -- if metric exists create list of interface metrics to compare against for duplicates
uci.cursor()... | gpl-2.0 |
coderpunch/evolvemod | lua/evolve/plugins/sh_cexec.lua | 1 | 1304 | --[[-----------------------------------------------------------------------------------------------------------------------
Run a console command on someone
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Cli... | apache-2.0 |
Marcelo-Mk/StarWats-Api | bot/bot.lua | 1 | 7279 | 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'
bot_token = "TOKEN" --هنا تخلي التوكن
send_api = "https://api.telegram.org/bot"..bot_token
sudo_id = 370996919 --هنا تخلي الايدي
http = require('socket.http')
htt... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Gulmama.lua | 19 | 5104 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gulmama
-- Starts and Finishes Quest: Trial by Ice
-- Involved in Quest: Class Reunion
-- @pos -186 0 107 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Sickle_Slash.lua | 12 | 1266 | ---------------------------------------------------
-- Sickle Slash
-- Deals critical damage. Chance of critical hit varies with TP.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------... | gpl-3.0 |
dmccuskey/dmc-netstream | examples/dmc-netstream-basic/dmc_corona/lib/dmc_lua/lua_bytearray/pack_bytearray.lua | 7 | 6402 | --====================================================================--
-- dmc_lua/lua_bytearray/pack_bytearray.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permissi... | mit |
n0xus/darkstar | scripts/zones/Provenance/Zone.lua | 17 | 1256 | -----------------------------------
--
-- Zone: Provenance (222)
--
-----------------------------------
package.loaded["scripts/zones/Provenance/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Provenance/TextIDs");
-----------------------------------
-- onInitialize
-----------... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Root/Fonts.lua | 1 | 4243 | do
SetFontString = function(parent, fontName, fontHeight, fontStyle)
local fs = parent:CreateFontString(nil, "OVERLAY")
fs:SetFont(Qulight["media"].font, fontHeight, fontStyle)
fs:SetJustifyH("LEFT")
fs:SetShadowColor(0, 0, 0)
fs:SetShadowOffset(1.25, -1.25)
return fs
end
end
---------------------
-- Fon... | gpl-2.0 |
doublec/ponyc | premake5.lua | 1 | 6608 | local force_cpp = { }
function cppforce(inFiles)
for _, val in ipairs(inFiles) do
for _, fname in ipairs(os.matchfiles(val)) do
table.insert(force_cpp, path.getabsolute(fname))
end
end
end
-- gmake
premake.override(path, "iscfile", function(base, fname)
if table.cont... | bsd-2-clause |
n0xus/darkstar | scripts/zones/PsoXja/npcs/Treasure_Chest.lua | 19 | 2932 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Treasure Chest
-- @zone 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/treasu... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 80 | 2561 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Fantarviont.lua | 36 | 1430 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Fantarviont
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/que... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/src/actions/vstudio/_vstudio.lua | 4 | 7679 | --
-- _vstudio.lua
-- Define the Visual Studio 200x actions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
premake.vstudio = { }
--
-- Set default toolset
--
local toolsets = {
vs2010 = "v100",
vs2012 = "v110",
vs2013 = "v120",
vs2015 = "v140",
vs15 = "v140",
}
premake.vstudio.t... | gpl-2.0 |
ianchia/gideros-untar | untar.lua | 1 | 4757 | --[[
-- Extract TAR files without compression for Gideros Mobile
--
-- This module is based on tar.lua file on Kepler Project
-- https://github.com/keplerproject/luarocks/blob/master/src/luarocks/tools/tar.lua
--
-- @author decocaribe [at] gmail [dot] com
--]]
local blocksize = 512
local _ceil = math.ceil
local _tonu... | mit |
Python1320/wire | lua/entities/gmod_wire_gpu/cl_gpuvm.lua | 3 | 83679 | --------------------------------------------------------------------------------
-- Override virtual machine functions and features
--------------------------------------------------------------------------------
local VM = {}
surface.CreateFont( "WireGPU_ErrorFont",{
font="Coolvetica",
size = 26,
weight = 200,
an... | apache-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Wyatt.lua | 17 | 1982 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Wyatt
-- @zone 80
-- @pos 124 0 84
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Highmaul/localization.kr.lua | 1 | 2753 | if GetLocale() ~= "koKR" then return end
local L
---------------
-- Kargath Bladefist --
---------------
L= DBM:GetModLocalization(1128)
L:SetTimerLocalization({
timerSweeperCD = DBM_CORE_AUTO_TIMER_TEXTS.next:format("높은망치 난동꾼")
})
L:SetOptionLocalization({
timerSweeperCD = "다음 높은망치 난동꾼 바 보기",
countdownSweep... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Lower_Jeuno/npcs/Gurdern.lua | 34 | 1374 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Gurdern
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/quests");
-... | gpl-3.0 |
n0xus/darkstar | scripts/zones/South_Gustaberg/npcs/Cavernous_Maw.lua | 58 | 1907 | -----------------------------------
-- Area: South Gustaberg
-- NPC: Cavernous Maw
-- @pos 340 -0.5 -680
-- Teleports Players to Abyssea - Altepa
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/dish_of_hydra_kofte.lua | 21 | 1942 | -----------------------------------------
-- ID: 5602
-- Item: dish_of_hydra_kofte
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 7
-- Intelligence -3
-- Attack % 20
-- Attack Cap 150
-- Defense % 25
-- Defense Cap 70
-- Ranged ATT % 20
-- Ranged ATT Cap 150
-- Pois... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Broker_Garrison/config.lua | 1 | 47685 | local ADDON_NAME, private = ...
local Garrison = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local AceDBOptions = LibStub("AceDBOptions-3.0")
local LSM = LibStub:GetLibrary("LibSharedMedia-3.0")
local L... | gpl-2.0 |
xjdrew/levent | levent/http/client.lua | 1 | 1296 | local socketUtil = require "levent.socket_util"
local c = require "levent.http.c"
local response = require "levent.http.response"
local util = require "levent.http.util"
local client = {}
client.__index = client
function client.new(host, port)
local obj = {
host = host,
port = por... | mit |
n0xus/darkstar | scripts/globals/items/dragon_fruit.lua | 36 | 1148 | -----------------------------------------
-- ID: 5662
-- Item: Dragon Fruit
-- Food Effect: 5 Mins, All Races
-----------------------------------------
-- Intelligence 4
-- Agility -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
linmajia/dlbench | tools/torch/Data.lua | 2 | 4996 | local DataProvider = require 'DataProvider'
local opt = opt or {}
local Dataset = opt.dataset or 'Cifar10'
local PreProcDir = opt.preProcDir or './'
local Whiten = opt.whiten or false
local DataPath = os.getenv("HOME").."/data/torch/"
local normalization = opt.normalization or 'channel'
local format = opt.format or 'r... | mit |
janlou2/TeleA | plugins/stats.lua | 43 | 4082 | 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 |
davymai/CN-QulightUI | Interface/AddOns/MBB/localization-deDE.lua | 1 | 1120 | if( GetLocale() == "deDE" ) then
MBB_TOOLTIP1 = "Strg + Rechtsklick auf einen Button, um ihn aus der Leiste zu lösen.";
MBB_OPTIONS_HEADER = "Einstellungen";
MBB_OPTIONS_OKBUTTON = "Ok";
MBB_OPTIONS_CANCELBUTTON = "Abbrechen";
MBB_OPTIONS_SLIDEROFF = "Aus";
MBB_OPTIONS_SLIDERSEK = "Sek.";
MBB_OPTIONS_SLIDERLABEL... | gpl-2.0 |
n0xus/darkstar | scripts/globals/mobskills/Tourbillion.lua | 13 | 1381 | ---------------------------------------------
-- Tourbillion
--
-- Description: Delivers an area attack. Additional effect duration varies with TP. Additional effect: Weakens defense.
-- Type: Physical
-- Shadow per hit
-- Range: Unknown range
---------------------------------------------
require("scripts/globals/... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/mk/src/mk/routes.lua | 2 | 4539 |
local lpeg = require "lpeg"
local re = require "re"
local util = require "wsapi.util"
local _M = {}
_M._NAME = "mk.routes"
_M._VERSION = "0.1"
_M._COPYRIGHT = "Copyright (C) 2010 Kepler Project"
_M._DESCRIPTION = "Default route parser/builder for MK"
local function foldr(t, f, acc)
for i = #t, 1, -1 do
acc... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/spells/aspir.lua | 18 | 1509 | -----------------------------------------
-- Spell: Aspir
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------... | gpl-3.0 |
kbehafarin/newfies-dialer | lua/libs/lfs_cache.lua | 7 | 4040 | --
-- Easily power a caching system based on Filesystem
-- It's recommended to use ramdisk to get better performances
-- @ mkdir -p /tmp/ram
-- @ sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/
-- Set the CACHE_DIRECTORY setting to this directory
--
--
-- Copyright (C) 2013 Arezqui Belaid <areski@gmail.com>
--
-- Perm... | mpl-2.0 |
italovieira/dotfiles | nvim/.config/nvim/lua/plugins/treesitter.lua | 1 | 1065 | require('nvim-treesitter.configs').setup {
highlight = {
enable = true,
},
indent = {
enable = true
},
incremental_selection = {
enable = true,
},
textobjects = {
select = {
enable = true,
lookahead = true,
keymaps = {
['aa'] = '@parameter.outer',
['ia']... | mit |
n0xus/darkstar | scripts/zones/Ilrusi_Atoll/Zone.lua | 36 | 1453 | -----------------------------------
--
-- Zone: Ilrusi_Atoll
-- zone 55
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
require("scripts/zones/Ilrusi_Atoll/TextIDs");
require("scripts/globals/settings");
------------------... | gpl-3.0 |
n0xus/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 |
n0xus/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5e9.lua | 17 | 1734 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: The Heart of the Matter
-- @pos 584 0 -660 194
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Al_Zahbi/npcs/Iphaaf.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Iphaaf
-- Type: Mihli's Attendant
-- @zone: 48
-- @pos -28.014 -7 64.371
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
misterdustinface/gamelib-common-polyglot | src/param-adjuster/layout-partials/color-editor.lua | 1 | 14110 | local datastore = require 'datastore'
local constants = require 'constants'
local widgets = require 'widgets'
local style = require 'style'
local fonts = require 'fonts'
local rects = require 'rects'
local icons = require 'icons'
local new_action = require 'touch-action'
local txtfield = require 'layout-partials.txt-fi... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/silkworm_egg.lua | 36 | 1132 | -----------------------------------------
-- ID: 4526
-- Item: Silkworm Egg
-- Food Effect: 5 Mins, All Races
-----------------------------------------
-- HP 12
-- MP 12
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------... | gpl-3.0 |
n0xus/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 |
kurthuwig/faces | Watchfaces/mak_mark/x_ray/face.lua | 1 | 1424 | -- This file is part of the Watchfaces project.
-- Read the file README.md for copyright and other information
function about()
local result = {}
result.author = "Mak Mark"
result.name = "X-Ray"
return result
end
function init()
local atlas = face:loadAtlas('all.atlas')
face:add(atlas:create... | apache-2.0 |
tossp/lede-k3 | package/lean/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua | 2 | 3362 | --[[
--N2N VPN(V2) configuration page. Made by 981213
--
]] --
local fs = require "nixio.fs"
function get_mask(v)
v:value("16", "255.255.0.0(16)")
v:value("17", "255.255.128.0(17)")
v:value("18", "255.255.192.0(18)")
v:value("19", "255.255.224.0(19)")
v:value("20", "255.255.240.0(20)")
v:value(... | gpl-2.0 |
ppriest/mame | 3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua | 21 | 1664 | --
-- tests/actions/codeblocks/codeblocks_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_files = { }
local suite = T.codeblocks_files
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
f... | gpl-2.0 |
Python1320/wire | lua/entities/gmod_wire_screen.lua | 4 | 6177 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Screen"
ENT.WireDebugName = "Screen"
function ENT:SetDisplayA( float )
self:SetNetworkedBeamFloat( 1, float, true )
end
function ENT:SetDisplayB( float )
self:SetNetworkedBeamFloat( 2, float, true )
end
function ENT:GetDisplayA( )
r... | apache-2.0 |
n0xus/darkstar | scripts/globals/spells/hojo_ni.lua | 18 | 1160 | -----------------------------------------
-- Spell: Hojo:Ni
-- Description: Inflicts Slow on target.
-- Edited from slow.lua
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/West_Sarutabaruta_[S]/Zone.lua | 28 | 1343 | -----------------------------------
--
-- Zone: West_Sarutabaruta_[S] (95)
--
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/West_Sarutabaruta_[S]/TextIDs")... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wsapi/src/wsapi/mock.lua | 2 | 4329 | -----------------------------------------------------------------------------
-- Mock WSAPI handler for Unit testing
--
-- Author: Norman Clarke
-- Copyright (c) 2010 Kepler Project
--
-----------------------------------------------------------------------------
module(..., package.seeall)
local common = require "ws... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Tahmasp.lua | 17 | 1877 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Tahmasp
-- Type: Outpost Vendor
-- @pos 464 24 416 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("s... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kubhe_Ijyuhla.lua | 17 | 2433 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kubhe Ijyuhla
-- Standard Info NPC
-- @pos 23.257 0.000 21.532 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quest... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Cloister_of_Frost/mobs/Shiva_Prime.lua | 18 | 1818 | -----------------------------------
-- Area: Cloister of Frost
-- NPC: Shiva Prime
-- Involved in Quest: Trial by Ice
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
-... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Port_San_dOria/npcs/_6g7.lua | 17 | 1145 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Door: Arrivals Entrance
-- @zone 232
-- @pos -24 -8 15
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Dynamis-Beaucedine/bcnms/dynamis_beaucedine.lua | 16 | 1101 | -----------------------------------
-- Area: Dynamis Beaucedine
-- Name: Dynamis Beaucedine
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaBeaucedine]UniqueID",player:getDynamisUniqueID(1284));
SetServerVar... | gpl-3.0 |
jwngr/rusticcitrus | corona_rc/gameList.lua | 1 | 12528 | -----------------------------------------------------------------------------------------
--
-- gameList.lua
--
-- A list of all the logged in user's multiplayer games
--
-----------------------------------------------------------------------------------------
-- Include the necessary modules
local storyboard = requ... | mit |
n0xus/darkstar | scripts/globals/items/dhalmel_pie_+1.lua | 35 | 1882 | -----------------------------------------
-- ID: 4322
-- Item: dhalmel_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 25
-- Strength 4
-- Agility 2
-- Vitality 1
-- Intelligence -2
-- Mind 1
-- Attack % 25
-- Attack Cap 50
-- Ranged ATT % 25
-- Ranged ATT Cap 5... | gpl-3.0 |
n0xus/darkstar | scripts/globals/weaponskills/vidohunir.lua | 18 | 4742 | -----------------------------------
-- Vidohunir
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP.
-- Reduces enemy's magic defense by 10%.
-- Available only after completing the Unlocking a Myth (Black Mage)... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Mhaura/npcs/Lacia.lua | 17 | 3143 | -----------------------------------
-- Area: Mhaura
-- NPC: Lacia
-- Starts Quest: Trial Size Trial By Lightning
-- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
... | gpl-3.0 |
ArmanIr/loloamad | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/Skins/skins/Omen.lua | 1 | 2232 | if IsAddOnLoaded("Omen") and Qulight["addonskins"].Omen then
local Omen = LibStub("AceAddon-3.0"):GetAddon("Omen")
Mod_AddonSkins:RegisterSkin("Omen",function(Skin, skin, Layout, layout, config)
-- Skin Bar Texture
Omen.UpdateBarTextureSettings_ = Omen.UpdateBarTextureSettings
Omen.UpdateBarTextureSettings = func... | gpl-2.0 |
Primordus/lua-quickcheck | spec/generators/string_spec.lua | 2 | 3343 | local random = require 'lqc.random'
local str = require 'lqc.generators.string'
local r = require 'lqc.report'
local property = require 'lqc.property'
local lqc = require 'lqc.quickcheck'
local reduce = require 'lqc.helpers.reduce'
local function is_string(s)
return type(s) == 'string'
end
local function string_sum... | mit |
n0xus/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua | 38 | 1044 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Chemioue
-- Type: NPC Quest
-- @zone: 26
-- @pos 82.041 -34.964 67.636
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Serpentshrine/localization.kr.lua | 1 | 4570 | if GetLocale() ~= "koKR" then return end
local L
---------------------------
-- Hydross the Unstable --
---------------------------
L = DBM:GetModLocalization("Hydross")
L:SetGeneralLocalization{
name = "불안정한 히드로스"
}
L:SetWarningLocalization{
WarnMark = "%s : %s",
WarnPhase = "%s 단계",
SpecWarnMark = "%s : %s... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Parukoko.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Parukoko
-- Type: Standard NPC
-- @zone: 94
-- @pos -32.400 -3.5 -103.666
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Firelands/Rhyolith.lua | 1 | 5373 | local mod = DBM:NewMod(193, "DBM-Firelands", nil, 78)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 145 $"):sub(12, -3))
mod:SetCreatureID(52558)--or does 53772 die instead?didn't actually varify this fires right unit_died event yet so we'll see tonight
mod:SetEncounterID(1204)
mod:DisableEEKillDet... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm3.lua | 16 | 1199 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Armed Gears(ZNM T3))
-- @pos -42 -4 -169 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ru... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Nogga.lua | 34 | 1203 | -----------------------------------
-- Area: Metalworks
-- NPC: Nogga
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Metalworks/TextIDs");
---... | gpl-3.0 |
omidtarh/wezardbot | plugins/plugins.lua | 325 | 6164 | 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 |
n0xus/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 |
n0xus/darkstar | scripts/zones/Attohwa_Chasm/mobs/Sekhmet.lua | 13 | 1842 | -----------------------------------
-- Area: Attohwa Chasm
-- NM: Sekhmet
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------... | gpl-3.0 |
GhoulofGSG9/BadgesPlus | lua/BadgesPlus/Badges_Server.lua | 1 | 6830 | Script.Load("lua/Badges_Shared.lua")
--Queue for clients that still wait for their hive response
local gBadgeClientRequestQueue = {}
--Cache for changed badge names
local gBadgeNameCache = {}
--stores all badges each client owns
local userId2OwnedBadges = {}
--cache dev ids for the achievement
local gClientIdDevs =... | mit |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/LootRoll.lua | 1 | 12785 | if Qulight["loot"].rolllootframe ~= true then return end
local backdrop = {
bgFile = Qulight["media"].texture, tile = true, tileSize = 0,
edgeFile = "Interface\\Buttons\\WHITE8x8", edgeSize = 1,
insets = {left = -1, right = -1, top = -1, bottom = -1},
}
local function ClickRoll(frame)
RollOnLoot(frame.parent.rol... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua | 17 | 3319 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
mwgoldsmith/vlc | 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 |
Primordus/lua-quickcheck | spec/quickcheck_spec.lua | 2 | 4007 | local lqc = require 'lqc.quickcheck'
local r = require 'lqc.report'
local property = require 'lqc.property'
local function clear_properties()
lqc.init(100, 100)
lqc.properties = {}
r.report = function(_) end
end
local function failing_gen()
local gen = {}
function gen.pick(_)
return -2
end
function ... | mit |
n0xus/darkstar | scripts/zones/RuLude_Gardens/npcs/relic.lua | 41 | 1848 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: <this space intentionally left blank>
-- @pos 0 8 -40 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
--------... | gpl-3.0 |
aasare/aaku | nvim/lua/plugins/cmp.lua | 1 | 3196 | local require_safe = require("utils").require_safe
local cmp = require_safe("cmp")
local luasnip = require_safe("luasnip")
require("luasnip/loaders/from_vscode").lazy_load()
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_l... | mit |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Villion.lua | 14 | 1386 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Villion
-- Type: Adventurer's Assistant NPC
-- Involved in Quest: Flyers for Regine
-- @zone: 231
-- @pos -157.524 4.000 263.818
--
-----------------------------------
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Abbudin.lua | 34 | 1045 | -----------------------------------
-- Area: Metalworks
-- NPC: Abbudin
-- Type: Standard Info NPC
-- @pos -56.338 2.777 -31.446 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 16 | 1711 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Franziska.lua | 17 | 1172 | -----------------------------------
-- Area: Metalworks
-- NPC: Franziska
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
-------------------------------... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 80 | 1397 | --[[
Luci configuration model for statistics - collectd ping plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Ship_bound_for_Mhaura/Zone.lua | 34 | 1464 | -----------------------------------
--
-- Zone: Ship_bound_for_Mhaura (221)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ship_bound_for_Mhaura/TextID... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Open_sea_route_to_Mhaura/npcs/Pashi_Maccaleh.lua | 17 | 1246 | -----------------------------------
-- Area: Open sea route to Mhaura
-- NPC: Pashi Maccaleh
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Cloister_of_Storms/bcnms/carbuncle_debacle.lua | 19 | 1480 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Carbuncle Debacle
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Cloister_of_Storms/TextIDs");
require("scripts/globals/settings")... | gpl-3.0 |
n0xus/darkstar | scripts/zones/RuLude_Gardens/npcs/Pakh_Jatalfih.lua | 17 | 2737 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Pakh Jatalfih
-- @pos 34 8 -35 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
sam1i/Turres-Monacorum | love2d/layer/hud.lua | 1 | 8556 | energyColour = {255,127,0}
energyLevelFillColour = {255,127,0,15}
massColour ={ 0, 255, 127}
massLevelFillColour ={ 0, 127, 255,15}
laserColour = {0,127,255}
alarmColour = {255,0,0}
function love.turris.newHudLayer(player)
local o = {}
o.iconMass = G.newImage("gfx/hud/mass_icon.png")
o.iconEnergy = G.newImage... | mit |
n0xus/darkstar | scripts/zones/Lower_Jeuno/TextIDs.lua | 9 | 5200 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
n0xus/darkstar | scripts/zones/VeLugannon_Palace/TextIDs.lua | 9 | 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 = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 17 | 3962 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Garlai... | gpl-3.0 |
goblinor/BomBus1 | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
Marcelo-Mk/StarWats-Api | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
LuffyPan/skynet | lualib/sharedata/corelib.lua | 64 | 2453 | local core = require "sharedata.core"
local type = type
local next = next
local rawget = rawget
local conf = {}
conf.host = {
new = core.new,
delete = core.delete,
getref = core.getref,
markdirty = core.markdirty,
incref = core.incref,
decref = core.decref,
}
local meta = {}
local isdirty = core.isdirty
local... | mit |
kaltura/nginx-vod-module | tools/persist_proxy/status.lua | 1 | 1330 |
--[[
outputs nginx stub status metrics in prom format
--]]
local log = ngx.log
local ERR = ngx.ERR
local capture = ngx.location.capture
local gmatch = ngx.re.gmatch
local say = ngx.say
local _M = { _VERSION = '0.1' }
-- order matching nginx stub status output
local metrics = {
'nginx_connections_current{sta... | agpl-3.0 |
RockySeven3161/Unknown.. | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Primordus/lua-quickcheck | spec/fsm/state_spec.lua | 2 | 1705 | local state = require 'lqc.fsm.state'
-- Helper function to make a state
local function make_state(state_name, precond, next_state, postcond)
local state_helper = state(state_name)
local function do_make_state()
return state_helper {
precondition = precond,
next_state = next_state,
postcondit... | mit |
n0xus/darkstar | scripts/globals/items/chocolate_cake.lua | 36 | 1186 | -----------------------------------------
-- ID: 5633
-- Item: Chocolate Cake
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP +3%
-- MP Recovered while healing +6
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
notcake/quicktool | lua/quicktool/ui/imagecacheentry.lua | 3 | 1135 | local self = {}
QuickTool.ImageCacheEntry = QuickTool.MakeConstructor (self)
function self:ctor (image)
self.Image = image
self.Material = Material (image)
if string.find (self.Material:GetShader (), "VertexLitGeneric") or
string.find (self.Material:GetShader (), "Cable") then
local baseTexture = sel... | gpl-3.0 |
n0xus/darkstar | scripts/globals/weaponskills/stringing_pummel.lua | 18 | 4579 | -----------------------------------
-- Stringing Pummel
-- Sword weapon skill
-- Skill Level: N/A
-- Delivers a sixfold attack. Damage varies with TP. Kenkonken: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Puppetmaster) quest.
-- Aligned with the Shadow Gorget, Soil ... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/tests/actions/vstudio/cs2005/projectsettings.lua | 47 | 3943 | --
-- tests/actions/vstudio/cs2005/projectsettings.lua
-- Validate generation of root <PropertyGroup/> in Visual Studio 2005+ .csproj
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_cs2005_projectsettings = { }
local suite = T.vstudio_cs2005_projectsettings
local cs2005 = premake.vstud... | gpl-2.0 |
adamlerer/nn | SpatialAveragePooling.lua | 37 | 1063 | local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module')
function SpatialAveragePooling:__init(kW, kH, dW, dH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or 1
self.dH = dH or 1
self.divide = true
end
function SpatialAveragePooling:updateOutput(input... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.