repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
CtopCsUtahEdu/chill-dev | examples/cuda-chill/tmv.lua | 3 | 1585 | init("tmv.c","normalMV",0)
dofile("cudaize.lua") --defines custom tile_by_index, copy_to_registers,
--copy_to_shared methods
N=1024
--N= 8209
--N=129
TI=64
N=1024
TI=32
--tile, "k" for the control loop for the "j" tile, with the final order
--of {"ii", "k", "i", "j"}
tile_by_index({"i","j"}, {TI,... | gpl-3.0 |
slowglass/Restacker | libs/LibAddonMenu-2.0/controls/divider.lua | 7 | 1437 | --[[dividerData = {
type = "divider",
width = "full", --or "half" (optional)
height = 10, (optional)
alpha = 0.25, (optional)
reference = "MyAddonDivider" -- unique global reference to control (optional)
} ]]
local widgetVersion = 2
local LAM = LibStub("LibAddonMenu-2.0")
if not LAM:RegisterWidget... | mit |
alinfrat/nefratrobot | bot/seedbot.lua | 1 | 8430 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
masterweb121/telegram-bot | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
deepak78/new-luci | libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua | 173 | 1393 | --- Transport Layer Security Context Object.
-- @cstyle instance
module "nixio.TLSContext"
--- Create a TLS Socket from a socket descriptor.
-- @class function
-- @name TLSContext.create
-- @param socket Socket Object
-- @return TLSSocket Object
--- Assign a PEM certificate to this context.
-- @class function
-- @nam... | apache-2.0 |
InkblotAdmirer/packages | utils/yunbridge/files/usr/lib/lua/luci/sha256.lua | 106 | 5170 | --
-- Code merged by gravityscore at http://pastebin.com/gsFrNjbt
--
-- Adaptation of the Secure Hashing Algorithm (SHA-244/256)
-- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm
--
-- Using an adapted version of the bit library
-- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit.... | gpl-2.0 |
ProtectionTeam/PCT | plugins/Lucas.lua | 1 | 243867 | local function modadd(msg)
local hash = "gp_lang:"..msg.to.id
local lang = redis:get(hash)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return 'شما مدیر ربات نمیباشید'
end
end
local d... | gpl-3.0 |
mamaddeveloper/uzz | plugins/channels.lua | 356 | 1732 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
MmxBoy/mmxanti2 | plugins/channels.lua | 356 | 1732 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
Murfalo/game-off-2016 | hump/signal.lua | 15 | 2736 | --[[
Copyright (c) 2012-2013 Matthias Richter
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 rights
to use, copy, modify, merge, publish, dis... | mit |
osgcc/ryzom | ryzom/common/data_common/r2/r2_ui_features_tree.lua | 3 | 8690 |
r2.FeatureTree =
{
Path = "ui:interface:r2ed_palette:content:feature_tree_panel:feature_enclosing:tree_list",
}
local featureTree = r2.FeatureTree
function featureTree.buildFeatureTreeUI()
local tree = getUI(r2.FeatureTree.Path)
if not tree then return end
local rootNode = SNode()
rootNode.Text = "Features"
... | agpl-3.0 |
paulmarsy/Console | Libraries/nmap/App/nselib/upnp.lua | 5 | 11442 | --- A UPNP library based on code from upnp-info initially written by
-- Thomas Buchanan. The code was factored out from upnp-info and partly
-- re-written by Patrik Karlsson <patrik@cqure.net> in order to support
-- multicast requests.
--
-- The library supports sending UPnP requests and decoding the responses
--
-- Th... | mit |
deepak78/new-luci | protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua | 63 | 1066 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local _, p
for _, p in ipairs({"6in4", "6to4", "6rd"}) do
local proto = netmod:register_protocol(p)
function proto.get_i18n(self)
if p == "6in4" then
return luci.i18n.... | apache-2.0 |
xinjuncoding/skynet | service/service_mgr.lua | 19 | 3853 | local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle
else
... | mit |
Murfalo/game-off-2016 | state/Dialog.lua | 1 | 3552 |
local Gamestate = require "hump.gamestate"
local TextEngine = require "xl.TextEngine"
local Keymap = require "xl.Keymap"
local TextBox = require "xl.TextBox"
local EMPTY = {}
local Dialog = {
fgcolor = { 100, 100, 100 },
selcolor = { 0, 0, 0 },
}
local font = xl.getFont( 20 )
local TB_Size
do
local inset = 5
TB_Si... | mit |
benignoc/ear-training-chord-creation | Classes/Class - Checklist.lua | 1 | 6455 | --[[ Lokasenna_GUI - Checklist class
Adapted from eugen2777's simple GUI template.
---- User parameters ----
(name, z, x, y, w, h, caption, opts[, dir, pad])
Required:
z Element depth, used for hiding and disabling layers. 1 is the highest.
x, y Coordinates of top-left corner
caption Checklist title. F... | mit |
fegimanam/a | plugins/Robot.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
emptyrivers/WeakAuras2 | WeakAurasOptions/AceGUI-Widgets/AceGUIWidget-WeakAurasMultiLineEditBox.lua | 1 | 12124 | if not WeakAuras.IsCorrectVersion() then return end
local Type, Version = "WeakAurasMultiLineEditBox", 35
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
-- Lua APIs
local pairs = pairs
-- WoW APIs
local GetCursorInfo, GetSpellIn... | gpl-2.0 |
Multi01/Arducopter-clone | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 182 | 29665 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
topkecleon/otouto | otouto/plugins/admin/filter.lua | 1 | 1476 | --[[
filter.lua
Copyright 2018 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3. See /LICENSE for details.
]]--
local utilities = require('otouto.utilities')
local P = {}
function P:init(bot)
self.triggers = utilities.triggers(bot.info.username, bot.config.cmd_pat)
:t('fil... | agpl-3.0 |
vzaramel/kong | kong/constants.lua | 5 | 1493 | local VERSION = "0.5.0"
return {
NAME = "kong",
VERSION = VERSION,
ROCK_VERSION = VERSION.."-1",
SYSLOG = {
ADDRESS = "kong-hf.mashape.com",
PORT = 61828,
API = "api"
},
CLI = {
GLOBAL_KONG_CONF = "/etc/kong/kong.yml",
NGINX_CONFIG = "nginx.conf",
NGINX_PID = "kong.pid",
DNSMASQ... | apache-2.0 |
iamliqiang/prosody-modules | mod_storage_ldap/mod_storage_ldap.lua | 32 | 4728 | -- vim:sts=4 sw=4
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2012 Rob Hoelz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
----------------------------------------
-- Constants a... | mit |
ferstar/openwrt-dreambox | feeds/luci/luci/luci/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua | 3 | 5869 | --[[
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: fstab.lua... | gpl-2.0 |
loringmoore/The-Forgotten-Server | data/migrations/7.lua | 58 | 2518 | function onUpdateDatabase()
print("> Updating database to version 8 (account viplist with description, icon and notify server side)")
db.query("RENAME TABLE `player_viplist` TO `account_viplist`")
db.query("ALTER TABLE `account_viplist` DROP FOREIGN KEY `account_viplist_ibfk_1`")
db.query("UPDATE `account_viplist` ... | gpl-2.0 |
Murfalo/game-off-2016 | hump/gamestate.lua | 1 | 3117 | --[[
Copyright (c) 2010-2013 Matthias Richter
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 rights
to use, copy, modify, merge, publish, dis... | mit |
deepak78/new-luci | modules/luci-base/luasrc/sgi/cgi.lua | 81 | 1688 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
exectime = os.clock()
module("luci.sgi.cgi", package.seeall)
local ltn12 = require("luci.ltn12")
require("nixio.util")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
-- Limited source to av... | apache-2.0 |
alexd2580/igjam2016 | src/lib/suit/slider.lua | 9 | 1608 | -- This file is part of SUIT, copyright (c) 2016 Matthias Richter
local BASE = (...):match('(.-)[^%.]+$')
return function(core, info, ...)
local opt, x,y,w,h = core.getOptionsAndSize(...)
opt.id = opt.id or info
info.min = info.min or math.min(info.value, 0)
info.max = info.max or math.max(info.value, 1)
info.... | mit |
spark51/spark_robot | plugins/pokedex.lua | 626 | 1668 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text, ok_cb, false)
end
lo... | gpl-2.0 |
Native-Software/Krea | CoronaGameEditor/bin/Debug/lua/radar.lua | 4 | 5549 | --- This module is provided as it by Native-Software for use into a Krea project.
-- @author Frederic Raimondi
-- @copyright Native-Software 2012- All Rights Reserved.
-- @release 1.0
-- @see object
-- @description Provides a Radar Object allowing to see the position of referenced displayObject into the scene
-- <br>... | gpl-2.0 |
KNIGHTTH0R/uzz | plugins/channels.lua | 300 | 1680 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
kaumanns/DeepKaspar | src/lua/deprecated/model/FastLSTM.lua | 6 | 2630 | local FastLSTM, parent = torch.class("nn.FastLSTM", "nn.LSTM")
function FastLSTM:__init(inputSize, outputSize, rho)
parent.__init(self, inputSize, outputSize, rho, false)
end
function FastLSTM:buildModel()
-- input : {input, prevOutput, prevCell}
-- output : {output, cell}
-- Calculate all four gates ... | mit |
shadog/mdo_th_boos | plugins/plugins/zrfa_en.lua | 5 | 8133 | local function run(msg, matches)
if #matches < 2 then
return "بعد هذا الأمر، من خلال تحديد كلمة المسافة أو العبارة التي تريد إدخال الكتابة الجميلة"
end
if string.len(matches[2]) > 44 then
return "الحد الأقصى المسموح به 40 حرفاالأحرف الإنجليزية والأرقام"
end
local font_base = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,... | gpl-2.0 |
greasydeal/darkstar | scripts/globals/abilities/pets/healing_breath_ii.lua | 3 | 1466 | ---------------------------------------------------
-- Healing Breath II
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbil... | gpl-3.0 |
pleonex/telegram-bot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
jguluarte/StoreFront | Events.lua | 1 | 1110 | -- This is where we register all of the events
-- This file should be loaded *last*
if not StoreFront then return end
-- this is to wrap the registering and unregistering
local function register_once(name, event, callback)
local handler = function(...)
callback(arg)
EVENT_MANAGER:UnregisterForEven... | mit |
naclander/tome | game/modules/example_realtime/init.lua | 3 | 1227 | -- ToME - Tales of Middle-Earth
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any la... | gpl-3.0 |
RezaShell32/robot2 | libs/redis.lua | 32 | 1129 | local Redis = (loadfile "./libs/lua-redis.lua")()
local FakeRedis = (loadfile "./libs/fakeredis.lua")()
local params = {
host = '127.0.0.1',
port = 6379,
}
-- Overwrite HGETALL
Redis.commands.hgetall = Redis.command('hgetall', {
response = function(reply, command, ...)
local new_reply = { }
for i = 1, #... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Bastok_Mines/npcs/Tibelda.lua | 36 | 1405 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Tibelda
-- Only sells when Bastok controlls Valdeaunia Region
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 14 | 1039 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Eumoa-Tajimoa
-- Type: Standard NPC
-- @zone 48
-- @pos 19.275 -1 55.182
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/weaponskills/vorpal_blade.lua | 30 | 1435 | -----------------------------------
-- Vorpal Blade
-- Sword weapon skill
-- Skill Level: 200
-- Delivers a four-hit attack. Chance of params.critical varies with TP.
-- Stacks with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: None
--... | gpl-3.0 |
naclander/tome | game/modules/tome/data/gfx/particles/dust_trail.lua | 3 | 1830 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
ricker75/Global-Server | data/movements/scripts/gnomebase/warzone3.lua | 2 | 1525 | --- [[ Warzone 3 feito por Yuri Lagrotta ]] ---
local kickposs = {x=33000, y=31899, z=9}
local function deAbyssador()
if(getGlobalStorageValue(91159) < 1) then
TOP_LEFT_CORNER = {x = 33074, y = 31896, z = 12, stackpos=253}
BOTTOM_RIGHT_CORNER = {x = 33103, y = 31925, z = 12, stackpos=253}
for Py = TOP_LEFT... | gpl-2.0 |
xingchch/AndroLua | assets/import.lua | 1 | 18862 | local require=require
local table=require "table"
local string=require "string"
local packages = {}
local loaded = {}
luajava.package=packages
luajava.loaded=loaded
local _G=_G
local insert = table.insert
local new = luajava.new
local bindClass = luajava.bindClass
local function append(t,v)
for _,_v in ipairs(t) d... | mit |
LegionXI/darkstar | scripts/zones/Bastok_Mines/npcs/Deadly_Spider.lua | 33 | 1388 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Deadly Spider
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Bastok_Mines/Tex... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/mobskills/Sickle_Slash.lua | 34 | 1178 | ---------------------------------------------------
-- 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 |
lache/RacingKingLee | crazyclient/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua | 6 | 2739 |
--------------------------------
-- @module AssetsManagerEx
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @brief Gets the current update state.
-- @function [parent=#AssetsManagerEx] getState
-- @param self
-- @return int#int ret (return value: int)
-------------------------------... | mit |
greasydeal/darkstar | scripts/zones/Ifrits_Cauldron/npcs/relic.lua | 38 | 1848 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: <this space intentionally left blank>
-- @pos -18 40 20 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ifrits_Cauldron/TextIDs");
--... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/weaponskills/nightmare_scythe.lua | 10 | 1683 | -----------------------------------
-- Nightmare Scythe
-- Scythe weapon skill
-- Skill Level: 100
-- Blinds enemy. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers: STR:60% MN... | gpl-3.0 |
evrooije/beerarchy | mods/00_bt_nodes/travelnet/config.lua | 1 | 3120 |
travelnet.MAX_STATIONS_PER_NETWORK = 24;
-- set this to true if you want a simulated beam effect
travelnet.travelnet_effect_enabled = false;
-- set this to true if you want a sound to be played when the travelnet is used
travelnet.travelnet_sound_enabled = true;
-- if you set this to false, travelnets cannot be cre... | lgpl-2.1 |
naclander/tome | game/engines/default/engine/PlayerProfile.lua | 1 | 29057 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Silver_Sea_route_to_Nashmau/Zone.lua | 17 | 1405 | -----------------------------------
--
-- Zone: Silver_Sea_route_to_Nashmau
--
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs");
require("scripts/globals/sett... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/North_Gustaberg/MobIDs.lua | 36 | 1422 | -----------------------------------
-- Area: North Gustaberg
-- Comments: -- posX, posY, posZ
--(Taken from 'mob_spawn_points' table)
-----------------------------------
-- Stinging Sophie
Stinging_Sophie=17211561;
Stinging_Sophie_PH={
[17211532] = '1', -- 352.974, -40.359, 472.914
[17211534] = '1', -- ... | gpl-3.0 |
naclander/tome | game/modules/tome/data/general/objects/egos/wands-powers.lua | 1 | 5637 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f2.lua | 34 | 1104 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 180 -34 55 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
... | gpl-3.0 |
bittorf/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua | 68 | 2536 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Exec Plugin Configuration"),
translate(
"The exec plugin starts external commands to read values " ..
"from or to notify external processes when cer... | apache-2.0 |
herrbrave/RTS_Engine | RTS/RTS/Games/Delza/PlayerMoveState.lua | 1 | 1225 | include("Games/behaviors/State.lua")
BasicWASDMoveState = {}
BasicWASDMoveState.new = function(context)
local self = State.new()
self.context = context
self.context.input = Vector2f.new(0, 0)
function self.setup()
end
function self.update(dt)
step = dt / 1000.0
characterPos = getPosition(entityId)
... | mit |
ibm2431/darkstar | scripts/globals/weaponskills/cross_reaper.lua | 10 | 1806 | -----------------------------------
-- Cross Reaper
-- Scythe weapon skill
-- Skill level: 225
-- Delivers a two-hit attack. Damage varies with TP.
-- Modifiers: STR:30% MND:30%
-- 100%TP 200%TP 300%TP
-- 2.0 2.25 2.5
-----------------------------------
require("scripts/globals/status")
require("scr... | gpl-3.0 |
danjia/GameForMom | Resources/extern.lua | 14 | 2587 | function clone(object)
local lookup_table = {}
local function _copy(object)
if type(object) ~= "table" then
return object
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {}
lookup_table[object] = new_table
... | mit |
greasydeal/darkstar | scripts/zones/Windurst_Woods/npcs/Nikkoko.lua | 53 | 1835 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nikkoko
-- Type: Clothcraft Image Support
-- @pos -32.810 -3.25 -113.680 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
lbthomsen/openwrt-luci | applications/luci-app-olsr/luasrc/controller/olsr.lua | 5 | 10055 | module("luci.controller.olsr", package.seeall)
local neigh_table = nil
local ifaddr_table = nil
function index()
local ipv4,ipv6
if nixio.fs.access("/etc/config/olsrd") then
ipv4 = 1
end
if nixio.fs.access("/etc/config/olsrd6") then
ipv6 = 1
end
if not ipv4 and not ipv6 then
return
end
require("luci.mo... | apache-2.0 |
ibm2431/darkstar | scripts/globals/items/bowl_of_witch_soup.lua | 11 | 1149 | -----------------------------------------
-- ID: 4333
-- Item: witch_soup
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Magic Points 25
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-- Enmity -2
-----------------------------------------
require("scripts/globals/status")
requi... | gpl-3.0 |
naclander/tome | game/modules/tome/data/general/objects/mindstars.lua | 3 | 3693 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
srijan/ntopng | scripts/lua/iface_ndpi_stats.lua | 1 | 1421 | --
-- (C) 2013 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html')
interface.find(ifname)
if(_GET["mode"] == "sinceStartup") then
stats = interface.getStats()
elseif(_GET["host"] == nil) then
stats... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua | 14 | 1208 | -----------------------------------
-- Area: Ship bound for Selbina
-- NPC: Rajmonda
-- Type: Guild Merchant: Fishing Guild
-- @pos 1.841 -2.101 -9.000 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Geigerkind/DPSMateTBC | DPSMate_DamageTaken/DPSMate_DTPS.lua | 1 | 5216 | -- Global Variables
DPSMate.Modules.DTPS = {}
DPSMate.Modules.DTPS.Hist = "DMGTaken"
DPSMate.Options.Options[1]["args"]["dtps"] = {
order = 35,
type = 'toggle',
name = DPSMate.L["dtps"],
desc = DPSMate.L["show"].." "..DPSMate.L["dtps"]..".",
get = function() return DPSMateSettings["windows"][DPSMate.Options.Dewdro... | gpl-3.0 |
wanliming11/MurlocAlgorithms | Last/OpenSource/redis-stable/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
ibm2431/darkstar | scripts/globals/items/sis_kebabi.lua | 11 | 1375 | -----------------------------------------
-- ID: 5598
-- Item: sis_kebabi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -2
-- Intelligence -2
-- Attack % 20
-- Attack Cap 70
-- Ranged ATT % 20
-- Ranged ATT Cap 70
-----------------------------------------
require("... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Selbina/npcs/Oswald.lua | 17 | 4682 | -----------------------------------
-- Area: Selbina
-- NPC: Oswald
-- Starts and Finishes Quest: Under the sea (finish), The gift, The real gift
-- @pos 48 -15 9 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
aginor/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
TheFlyingFiddle/TIER | tier/meta.lua | 1 | 12404 | local tags = require"tier.tags"
local core = require"tier.core"
local format = require"format"
local pack = format.packvarint
local unpack = format.unpackvarint
local meta = { }
local meta_types = { }
local function newmetatype(tag)
assert(tag)
local mt = {} mt.__index = mt
mt.tag = tag
meta_types[tag] = m... | mit |
LegionXI/darkstar | scripts/zones/Dynamis-Windurst/npcs/qm1.lua | 17 | 1325 | -----------------------------------
-- Area: Dynamis Windurst
-- NPC: qm1 (???)
-- Notes: Spawns when Megaboss is defeated
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/serving_of_squirrels_delight.lua | 35 | 1341 | -----------------------------------------
-- ID: 5554
-- Item: serving_of_squirrels_delight
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP % 13 (cap 95)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
Igalia/snabbswitch | src/core/lib.lua | 1 | 19599 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local getopt = require("lib.lua.alt_getopt")
local syscall = require("syscall")
require("core.clib_h")
local bit = require("bit")
local band, bor, bnot, lshift, rshift, ... | apache-2.0 |
LegionXI/darkstar | scripts/globals/abilities/repair.lua | 26 | 4408 | -----------------------------------
-- Ability: Repair
-- Uses oil to restore pet's HP.
-- Obtained: Puppetmaster Level 15
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
------------... | gpl-3.0 |
naclander/tome | game/modules/tome/data/zones/slime-tunnels/zone.lua | 3 | 3307 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Throne_Room/mobs/Zeid.lua | 7 | 1872 | -----------------------------------
-- Area: Throne Room
-- NPC: Zeid
-- Mission 9-2 BASTOK BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/globals/settings");
require("scripts/globals/monstertpm... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/kalamar.lua | 18 | 1255 | -----------------------------------------
-- ID: 5448
-- Item: Kalamar
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/magma_steak.lua | 11 | 1298 | -----------------------------------------
-- ID: 6071
-- Item: Magma Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- Strength +8
-- Attack +23% Cap 180
-- Ranged Attack +23% Cap 180
-- Vermin Killer +5
-----------------------------------------
require("scripts/globals/status")
requ... | gpl-3.0 |
naclander/tome | game/modules/tome/data/talents/psionic/focus.lua | 1 | 7445 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
gwlim/luci | applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(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
]]--
module("luci.cont... | apache-2.0 |
greasydeal/darkstar | scripts/globals/effects/teleport.lua | 23 | 2889 | -----------------------------------
--
-- EFFECT_TELEPORT
--
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/teleports");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
e... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/weaponskills/victory_smite.lua | 30 | 1634 | -----------------------------------
-- Victory Smite
-- Hand-to-Hand Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a fourfold attack. Chance of params.critical hit varies with TP.
-- Must have Verethragna (85)/(90)/(95)/(99)/(99-2) or Revenant Fists +1/+2/+3 equipped.
-- Aligned with the Light Gorget,... | gpl-3.0 |
naclander/tome | game/modules/tome/data/maps/zones/valley-moon.lua | 3 | 4063 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Heptachiond.lua | 11 | 1771 | -----------------------------------
-- Area: The_Eldieme_Necropolis_[S]
-- NPC: Heptachiond
-- Starts and Finishes Quest: REQUIEM_FOR_THE_DEPARTED
-- !pos 256 -32 20 175
-----------------------------------
require("scripts/globals/npc_util")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
-------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Metalworks/npcs/Franziska.lua | 17 | 1138 | -----------------------------------
-- Area: Metalworks
-- NPC: Franziska
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 14 | 2281 | -----------------------------------
-- 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/globals/bcnm");... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Quicksand_Caves/mobs/Antican_Triarius.lua | 9 | 1147 | -----------------------------------
-- Area: Quicksand Caves
-- Mob: Antican Triarius
-- Note: PH for Triarius X-XV and Hastatus XI-XII
-----------------------------------
local ID = require("scripts/zones/Quicksand_Caves/IDs")
require("scripts/globals/regimes")
require("scripts/globals/mobs")
------------------------... | gpl-3.0 |
lbthomsen/openwrt-luci | applications/luci-app-ocserv/luasrc/controller/ocserv.lua | 5 | 1850 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ocserv", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ocserv") then
return
end
local page
page = entry({"admin", "vpn", "ocserv"}, a... | apache-2.0 |
ibm2431/darkstar | scripts/globals/items/slice_of_buffalo_meat.lua | 11 | 1148 | -----------------------------------------
-- ID: 5152
-- Item: slice_of_buffalo_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 4
-- Agility -5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
------... | gpl-3.0 |
softer/prosody-modules | mod_support_contact/mod_support_contact.lua | 32 | 1757 | -- mod_support_contact.lua
--
-- Config options:
-- support_contact = "support@hostname"; -- a JID
-- support_contact_nick = "Support!"; -- roster nick
-- support_contact_group = "Users being supported!"; -- the roster group in the support contact's roster
local host = module:get_host();
local support_contact =... | mit |
LegionXI/darkstar | scripts/commands/send.lua | 14 | 14235 | ---------------------------------------------------------------------------------------------------
-- func: send <player1> (<player2) or zone)
-- desc: Teleport a player to:
-- A) The given zone
-- B) another player
---------------------------------------------------------------------------------------------------
cm... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Port_Bastok/npcs/Yazan.lua | 11 | 1696 | -----------------------------------
-- Area: Port Bastok
-- NPC: Yazan
-- Starts Quests: Bite the Dust (100%)
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/quests");
local ID = require("scripts/zones/Port_Bastok/IDs");
-------------... | gpl-3.0 |
Geigerkind/DPSMateTBC | DPSMate/libs/GraphLib/Graph-1.0/Graph-1.0.lua | 1 | 64569 | --[[
Name: GraphLib-1.0
Revision: $Rev: 36224 $
Author(s): Cryect (cryect@gmail.com)
Website: http://www.wowace.com/
Documentation: http://www.wowace.com/wiki/GraphLib
SVN: http://svn.wowace.com/root/trunk/GraphLib/
Description: Allows for easy creation of graphs
]]
--Thanks to Nelson Minar for catching several errors... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Southern_San_dOria/npcs/Adaunel.lua | 17 | 1598 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Adaunel
-- General Info NPC
-- @zone 230
-- @pos 80 -7 -22
------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
gilzoide/hell | src/lua/hell.lua | 1 | 5286 | #!/usr/bin/env lua
--- @file hell.lua
-- The hell script executable
--[[
-- Copyright (C) 2015 Gil Barbosa Reis
-- This file is part of Hell.
--
-- Hell 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, eith... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Waoud.lua | 9 | 7704 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Waoud
-- Standard Info NPC
-- Involved in quests: An Empty Vessel (BLU flag), Beginnings (BLU AF1)
-- !pos 65 -6 -78 50
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/gl... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Newton_Movalpolos/Zone.lua | 13 | 1778 | -----------------------------------
--
-- Zone: Newton_Movalpolos (12)
--
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Newton_Movalpolos/TextIDs");
------------------... | gpl-3.0 |
bittorf/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
ibm2431/darkstar | scripts/globals/spells/bluemagic/feather_barrier.lua | 12 | 1203 | -----------------------------------------
-- Spell: Feather Barrier
-- Enhances evasion
-- Spell cost: 29 MP
-- Monster Type: Birds
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: None
-- Level: 56
-- Casting Time: 2 seconds
-- Recast Time: 120 seconds
-- Duration: 30 Seconds
--
-- Combos: Resist G... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Stellar_Fulcrum/mobs/Kamlanaut.lua | 9 | 1220 | -----------------------------------
-- Area: Stellar Fulcrum
-- Mob: Kam'lanaut
-- Zilart Mission 8 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
local blades = {823, 826, 828, 825, 824, 827};
--------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.