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 |
|---|---|---|---|---|---|
Fatalerror66/ffxi-a | scripts/globals/items/buttered_nebimonite.lua | 2 | 1340 | -----------------------------------------
-- ID: 4267
-- Item: Buttered Nebimonite
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- defense % 25
-- defense Cap 75
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
roboxt/ss | plugins/rae.lua | 2 | 1063 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
kidaa/FFXIOrgins | scripts/globals/items/bowl_of_medicinal_gruel.lua | 1 | 1449 | -----------------------------------------
-- ID: 4534
-- Item: bowl_of_medicinal_gruel
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 2
-- Ranged Accuracy % 15 (cap 15)
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/global... | gpl-3.0 |
exochron/mount-journal-enhanced | Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua | 1 | 20150 | --[[-----------------------------------------------------------------------------
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 44
local AceGUI = LibStub and LibStub("A... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Valeriano.lua | 4 | 1945 | -----------------------------------
-- Area: Southern_San_dOria
-- NPC: Valeriano
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
requ... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/items/czars_belt.lua | 2 | 1042 | -----------------------------------------
-- ID: 15868
-- Item: Czar's Belt
-- Enchantment: VIT +10
-- Durration: 60 Secs
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
githubmereza/rezajack | bot/seedbot.lua | 24 | 10036 | 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 |
Fatalerror66/ffxi-a | scripts/zones/Uleguerand_Range/npcs/Chamneat_Spring.lua | 2 | 1281 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Chamneat Spring
-- Quest: ENM Quest
-- @zone 5
-- @pos -305, 4, 18
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Uleguerand_... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 6 | 1262 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Caiphimonride
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-------------------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/RuLude_Gardens/npcs/_6r6.lua | 2 | 1071 | -----------------------------------
-- Area: Ru'Lude Gardens
-- Door: Windurstian Embassy
-- @zone 243
-- @pos 25.378, 7.371, -35.994
-- cutscenes 0x002B
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/items/cream_puff.lua | 2 | 1252 | -----------------------------------------
-- ID: 5718
-- Item: Cream Puff
-- Food Effect: 30 mintutes, All Races
-----------------------------------------
-- Intelligence +7
-- HP -10
-- Resist Slow
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Yudi_Yolhbi.lua | 12 | 2278 | -----------------------------------
-- 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/zones/Al_Zahbi/Tex... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Dynamis-Windurst/Zone.lua | 1 | 2161 | -----------------------------------
--
-- Zone: Dynamis-Windurst
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Windurst/TextIDs");
------------------------... | gpl-3.0 |
FilthyPeasantDEV/PokeBot | ai/strategies.lua | 1 | 59985 | local Strategies = {}
local Combat = require "ai.combat"
local Control = require "ai.control"
local Battle = require "action.battle"
local Textbox = require "action.textbox"
local Walk = require "action.walk"
local Data = require "data.data"
local Bridge = require "util.bridge"
local Input = require "util.input"
lo... | mit |
kidaa/FFXIOrgins | scripts/globals/items/crepe_belle_helene.lua | 36 | 1333 | -----------------------------------------
-- ID: 5778
-- Item: Crepe Belle Helene
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +3
-- Magic Accuracy +6
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
------... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/dialogs/orders/Talents.lua | 1 | 4423 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2016 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 |
tdubourg/geobombing | mobileapp/corona/lib/ecusson/internal/EcussonDisplayObject.lua | 1 | 6877 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- EcussonDisplayObject.lua
--
-- The parent of all Ecusson display object classes.
--
--------------------------------------------------------------... | lgpl-3.0 |
AmyBSOD/ToME-SX | lib/scpt/s_aule.lua | 1 | 5730 | -- Spells for Aule school
AULE_FIREBRAND = add_spell
{
["name"] = "Firebrand",
["school"] = {SCHOOL_AULE},
["level"] = 1,
["mana"] = 10,
["mana_max"] = 100,
["fail"] = 20,
["piety"] = TRUE,
["stat"] = A_WIS,
["random"] = SKILL_SPIRITUALITY,
["spell"] = function()
local type, rad
local level =... | gpl-2.0 |
LuaDist2/lua-nucleo | lua-nucleo/testing/decorators.lua | 3 | 5953 | --------------------------------------------------------------------------------
--- Decorators validation helper
-- @module lua-nucleo.testing.decorator
-- This file is a part of lua-nucleo library
-- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license)
-------------------------------------------------... | mit |
saraedum/luci-packages-old | modules/admin-full/luasrc/controller/admin/index.lua | 79 | 1245 | --[[
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$
]]--
mod... | apache-2.0 |
mar-kolya/NetworkManager | examples/lua/lgi/deactivate-all.lua | 7 | 2793 | #!/usr/bin/env lua
-- -*- Mode: Lua; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
-- vim: ft=lua ts=2 sts=2 sw=2 et ai
--
-- 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 ... | gpl-2.0 |
Blackdutchie/Zero-K | units/turrettorp.lua | 7 | 5270 | unitDef = {
unitname = [[turrettorp]],
name = [[Urchin]],
description = [[Torpedo Launcher]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle = 16384,
buildCostEnergy = 120,
buildCostMetal = 120,
builder = false,
... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/class/World.lua | 1 | 3437 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
deepankarsharma/likwid | examples/Lua-likwidAPI.lua | 7 | 1932 | #!/usr/local/bin/likwid-lua
--[[
=======================================================================================
Filename: Lua-markerAPI.lua
Description: Example how to use the LIKWID API in Lua scripts
Version: <VERSION>
Released: <DATE>
Author: Thomas Roehl (tr), thoma... | gpl-3.0 |
rigeirani/emc1 | plugins/all.lua | 54 | 4746 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
sleepingwit/premake-core | modules/gmake/tests/cs/test_links.lua | 15 | 1041 | --
-- tests/actions/make/cs/test_links.lua
-- Tests linking for C# Makefiles.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_cs_links")
local make = p.make
local cs = p.make.cs
local project = p.project
--
-- Setup
--
local wks, prj
function ... | bsd-3-clause |
crazyboy11/Sbss12 | plugins/time.lua | 38 | 2898 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
alexames/flatbuffers | tests/MyGame/Example/Vec3.lua | 1 | 1468 | --[[ MyGame.Example.Vec3
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 22.10.26
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
--]]
local flatbuffers = require('flatbuffers')
local Vec... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/zones/eruan-last.lua | 1 | 4286 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
Apprehentice/silicone | skins/default.lua | 1 | 5058 | default = {}
default.Label = {
font = love.graphics.newFont(12),
color = {255, 255, 255},
focusColor = {255, 0, 0}
}
function default.Label.draw(self)
if self:hasFocus() then
love.graphics.setColor(unpack(self._compiled_skin.Label.focusColor))
else
love.graphics.setColor(unpack(self._compiled_skin.L... | mit |
Blackdutchie/Zero-K | LuaRules/Gadgets/unit_dgun_aim.lua | 17 | 1026 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "D-Gun Aim Fix",
desc = 'Makes d-guns aim at units instead of the ground',
author = "Kin... | gpl-2.0 |
sleepingwit/premake-core | modules/vstudio/tests/sln2005/test_sections.lua | 16 | 1081 | --
-- tests/actions/vstudio/sln2005/test_sections.lua
-- Validate generation of Visual Studio 2005+ solution section entries.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_sln2005_sections")
local sln2005 = p.vstudio.sln2005
--
-- Setup
-... | bsd-3-clause |
sorblack-x/gold_bot | plugins/chat.lua | 32 | 1697 | local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text == "salam" then
return "va al... | gpl-2.0 |
wilbefast/snowman-ludumdare31 | src/conf.lua | 2 | 2544 | function love.conf(t)
t.identity = nil -- The name of the save directory (string)
t.version = "0.9.1" -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)
t.window.title = "Boat Peeps" -- The w... | mit |
Blackdutchie/Zero-K | LuaUI/Widgets/chili/Controls/scrollpanel.lua | 12 | 10871 | --//=============================================================================
ScrollPanel = Control:Inherit{
classname = "scrollpanel",
padding = {0,0,0,0},
backgroundColor = {0,0,0,0},
scrollbarSize = 12,
scrollPosX = 0,
scrollPosY = 0,
verticalScrollbar = true,
horizontalScrollb... | gpl-2.0 |
Blackdutchie/Zero-K | scripts/spiderriot.lua | 16 | 4531 | include "spider_walking.lua"
include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local turret = piece 'turret'
local barrel = piece 'barrel'
local... | gpl-2.0 |
sleepingwit/premake-core | tests/pepperfish_profiler.lua | 10 | 19596 | --[[
== Introduction ==
Note that this requires os.clock(), debug.sethook(),
and debug.getinfo() or your equivalent replacements to
be available if this is an embedded application.
Example usage:
profiler = newProfiler()
profiler:start()
< call some functions that take time >
profiler:stop... | bsd-3-clause |
afds/thrift | lib/lua/TCompactProtocol.lua | 30 | 13135 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Cat5TV/tps_skyblock | mods/skyblock/skyblock_levels/register_abm.lua | 4 | 1330 | --[[
Skyblock for Minetest
Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-skyblock
License: GPLv3
]]--
-- flora spawns on dirt_with_grass
minetest.register_abm({
nodenames = {'default:dirt_with_grass'},
interval = 300,
chance = 100,
act... | lgpl-2.1 |
aliasIsolation/aliasIsolation | tools/tundra2/scripts/tundra/tools/msvc-vscommon.lua | 13 | 10620 | -- msvc-vscommon.lua - utility code for all versions of Visual Studio
module(..., package.seeall)
local native = require "tundra.native"
local os = require "os"
-- Visual Studio tooling layout
local vc_bin_map = {
["x86"] = {
["x86"] = "",
["x64"] = "x86_amd64",
["arm"] = "x86_arm",
},
["x64"] = {... | unlicense |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/vaults/snow-giant-camp.lua | 1 | 2430 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/grids/forest.lua | 1 | 8424 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/chronomancy/stasis.lua | 1 | 6051 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
kuoruan/lede-luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 4 | 16721 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ut = require "luci.util"
local pt = require "luci.tools.proto"
local nw = require "luci.model.network"
local fw = requ... | apache-2.0 |
tdubourg/geobombing | mobileapp/corona/deque.lua | 1 | 1454 | -- Taken from http://stackoverflow.com/questions/18843610/fast-implementation-of-queues-in-lua
local Deque = {}
function Deque.new ()
return {first = 0, last = -1, length = 0}
end
function Deque.pushleft (deque, value)
local first = deque.first - 1
deque.first = first
deque[first] = value
deque.length = deque.l... | lgpl-3.0 |
vaughamhong/vlc | share/lua/meta/art/01_googleimage.lua | 74 | 1764 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 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 la... | gpl-2.0 |
Blackdutchie/Zero-K | LuaUI/Widgets/chili/simple examples/Widgets/gui_chiliguidemo.lua | 17 | 8506 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "chiliGUIDemo",
desc = "GUI demo for robocracy",
author = "quantum",
date = "WI... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/elisa-shop.lua | 1 | 2829 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/slime-tunnels/zone.lua | 1 | 3307 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
Blackdutchie/Zero-K | units/amphcon.lua | 4 | 2830 | unitDef = {
unitname = [[amphcon]],
name = [[Conch]],
description = [[Amphibious Construction Bot, Builds at 7.5 m/s]],
acceleration = 0.4,
activateWhenBuilt = true,
brakeRate = 0.25,
buildCostEnergy = 180,
buildCostMetal = 180,
buildDistan... | gpl-2.0 |
mahdibagheri/aqa-mp3 | 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 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/rooms/hollow_cross.lua | 1 | 1033 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 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 |
Blackdutchie/Zero-K | LuaUI/Fonts/FreeSansBold_16.lua | 26 | 33900 | -- $Id: FreeSansBold_16.lua 3171 2008-11-06 09:06:29Z det $
local fontSpecs = {
srcFile = [[FreeSansBold.ttf]],
family = [[FreeSans]],
style = [[Bold]],
yStep = 17,
height = 16,
xTexSize = 512,
yTexSize = 256,
outlineRadius = 2,
outlineWeight = 100,
}
local glyphs = {}
glyphs[32] = { --'... | gpl-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlButton.lua | 6 | 8151 |
--------------------------------
-- @module ControlButton
-- @extend Control
-- @parent_module cc
--------------------------------
-- @function [parent=#ControlButton] isPushed
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ControlButton] ... | gpl-2.0 |
crazyboy11/Sbss12 | plugins/chat.lua | 1 | 1848 | local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text == "salam" then
return "va al... | gpl-2.0 |
kuoruan/lede-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 |
IcedCoffeee/Propkill-Revival | Gamemodes/propkill-base/gamemode/server/base.lua | 1 | 1055 | cwhite = Color(255,255,255)
cgrey = Color(200,200,200)
function ChatMsg(message)
net.Start("pk_chatmsg")
net.WriteTable(message)
net.Broadcast()
end
function NotifyAll(message)
for k,v in pairs(player.GetAll()) do
net.Start("pk_notify")
net.WriteString(message)
net.Send(v)
end
end
function GameNotify(m... | mit |
lmangani/ntopng | scripts/lua/hosts_geomap.lua | 8 | 1482 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
active_page = "hosts"
dofile(dirs.installdir .. "/sc... | gpl-3.0 |
froggatt/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | 86 | 2540 | --[[
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$
]]--
req... | apache-2.0 |
jjimenezg93/ai-behaviours | moai/3rdparty/lua-5.1.3/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 |
MSOpenTech/redis | 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... | bsd-3-clause |
saraedum/luci-packages-old | applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua | 80 | 3431 | --[[
Luci configuration model for statistics - collectd rrdtool 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 Licen... | apache-2.0 |
xAleXXX007x/Witcher-RolePlay | nutscript/plugins/ammosave.lua | 3 | 1943 | PLUGIN.name = "Ammo Saver"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "Saves the ammo of a character."
PLUGIN.ammoList = {}
nut.ammo = nut.ammo or {}
function nut.ammo.register(name)
table.insert(PLUGIN.ammoList, name)
end
-- Register Default HL2 Ammunition.
nut.ammo.register("ar2")
nut.ammo.register("pistol")
nut.a... | mit |
aliasIsolation/aliasIsolation | tools/tundra2/scripts/tundra/dagsave.lua | 25 | 10957 | module(..., package.seeall)
local depgraph = require "tundra.depgraph"
local util = require "tundra.util"
local scanner = require "tundra.scanner"
local dirwalk = require "tundra.dirwalk"
local platform = require "tundra.platform"
local native = require "tundra.native"
local njson = require "tundra.native.j... | unlicense |
Cat5TV/tps_skyblock | mods/protect/tool.lua | 3 | 3455 |
-- protector placement tool (thanks to Shara for code and idea)
minetest.register_craftitem("protector:tool", {
description = "Protector Placer Tool (stand on protector, face direction and use)",
inventory_image = "protector_display.png",
stack_max = 1,
on_use = function(itemstack, user, pointed_thing)
... | lgpl-2.1 |
virgo-agent-toolkit/luvit-stream | lib/stream_duplex.lua | 1 | 1243 | local utils = require('utils')
local Readable = require('./stream_readable').Readable
local Writable = require('./stream_writable').Writable
local Duplex = Readable:extend()
for k,v in pairs(Writable) do
if not Duplex[k] and k ~= 'meta' then
Duplex[k] = v
end
end
function Duplex:initialize(options)
--[[
... | apache-2.0 |
3scale/apicast | spec/resty/http_ng_spec.lua | 2 | 9032 | local http_ng = require 'resty.http_ng'
local fake_backend = require 'fake_backend_helper'
local resty_backend = require 'resty.http_ng.backend.resty'
describe('http_ng', function()
local http, backend
before_each(function()
backend = fake_backend.new()
http = http_ng.new{ backend = backend }
end)
for... | apache-2.0 |
AlexandreCA/darkstar | scripts/zones/Giddeus/npcs/Altar_of_Offerings.lua | 13 | 1712 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Alter Of Offering
-- Involved in Quest: A Crisis in the Making
-- Working 100%
-- @zone = 145
-- @pos = -137 17 177
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
heptal/hammerspoon | extensions/milight/init.lua | 9 | 5073 | --- === hs.milight ===
---
--- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
local milight = require "hs.milight.internal"
milight.cmd = milight._cacheCommands()
local milightObject = hs.getObjectMetatable("hs.milight")
--- hs.milight.minBrightness
--- Constant
--- Specifie... | mit |
mosavy/leaderbottg | plugins/rmsg.lua | 2 | 1241 | local function delmsg (i,data)
msgs = i.msgs
for k,v in pairs(data.messages_) do
msgs = msgs - 1
tg.deleteMessages(v.chat_id_,{[0] = v.id_}, dl_cb, cmd)
if msgs == 1 then
tg.deleteMessages(data.messages_[0].chat_id_,{[0] = data.messages_[0].id_}, dl_cb, cmd)
retu... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Palborough_Mines/npcs/_3za.lua | 17 | 1506 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lid
-- Involved In Mission: Journey Abroad
-- @zone 143
-- @pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/jar_of_remedy_ointment.lua | 18 | 1685 | -----------------------------------------
-- ID: 5356
-- Item: Remedy Ointment
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and plague.
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua | 13 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Cattah Pamjah
-- Type: Title Changer
-- @zone: 94
-- @pos -13.564 -2 10.673
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
AlexandreCA/darkstar | scripts/commands/addeffect.lua | 20 | 2389 | ---------------------------------------------------------------------------------------------------
-- func: addeffect
-- desc: Adds the given effect to the given player.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
require("scri... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Northern_San_dOria/npcs/Maurinne.lua | 13 | 1041 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maurinne
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -127.185 0.000 179.193
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Port_San_dOria/npcs/Vounebariont.lua | 17 | 2024 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Vounebariont
-- Starts and Finishes Quest: Thick Shells
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tsih_Kolgimih.lua | 38 | 1045 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tsih Kolgimih
-- Type: Event Scene Replayer
-- @pos -143.000 0.999 11.000 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/... | gpl-3.0 |
wtfbbqhax/tremulous-installer | lua/lib/string.lua | 31 | 1025 | --
-- string.lua
-- Additions to Lua's built-in string functions.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
--
-- Returns an array of strings, each of which is a substring of s
-- formed by splitting on boundaries formed by `pattern`.
--
function string.explode(s, pattern, plain)
if (pa... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/items/serving_of_menemen.lua | 18 | 1528 | -----------------------------------------
-- ID: 5586
-- Item: serving_of_menemen
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 30
-- MP 30
-- Agility 1
-- Intelligence -1
-- HP recovered while healing 1
-- MP recovered while healing 1
-----------------------------------------
require... | gpl-3.0 |
Kwisats/JAH | book/tex/setup/fontspec.lua | 11 | 3076 | --
-- This is file `fontspec.lua',
-- generated with the docstrip utility.
--
-- The original source files were:
--
-- fontspec-lua.dtx (with options: `lua')
-- ------------------------------------------------
-- The FONTSPEC package for XeLaTeX/LuaLaTeX
-- (C) 2004--2016 Will Robertson and Khaled Hosny
--... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Crawlers_Nest/npcs/qm12.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm12 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 99.326 -0.126 -188.869 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Crawlers_Nest/npcs/qm12.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm12 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 99.326 -0.126 -188.869 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
ahothan/wrk2 | deps/luajit/dynasm/dynasm.lua | 60 | 30989 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | apache-2.0 |
AlexandreCA/update | scripts/globals/spells/thunderstorm.lua | 31 | 1165 | --------------------------------------
-- Spell: Thunderstorm
-- Changes the weather around target party member to "thundery."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------... | gpl-3.0 |
virgo-agent-toolkit/rackspace-monitoring-agent | tests/check/windows.lua | 4 | 5020 | local math = require('math')
local os = require('os')
local string = require('string')
local helper = require('../helper')
local fixtures = require('/tests/fixtures').checks
local WindowsChecks = require('/check/windows').checks
local exports = {}
exports['test_windowsperfos_check'] = function(test, asserts)
local ... | apache-2.0 |
TeamEOS/external_chromium_org_third_party_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
asce1062/MAHDI-ROM_external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
jstewart-amd/premake-core | tests/actions/vstudio/cs2005/test_platform_groups.lua | 7 | 2276 | --
-- tests/actions/vstudio/cs2005/test_platform_groups.lua
-- Check creation of per-platform property groups in VS2005+ C# projects.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_cs2005_platform_groups")
local cs2005 = premake.vstudio.cs2005
--
-- Setup
--
... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Tundra_Tiger.lua | 6 | 1389 | -----------------------------------
-- Area: Beaucedine Glacier
-- MOB: Tundra Tiger
-- Note: PH for Nue, Kirata
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Beaucedine_Glacier/MobIDs");
-----------------------------------
-- onMobDeath
------------------------... | gpl-3.0 |
FOS-Games/moai-pixel-runner | external/middleclass.lua | 63 | 6117 | local middleclass = {
_VERSION = 'middleclass v3.0.1',
_DESCRIPTION = 'Object Orientation for Lua',
_URL = 'https://github.com/kikito/middleclass',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining... | apache-2.0 |
AlexandreCA/update | scripts/globals/items/coffeecake_muffin.lua | 35 | 1376 | -----------------------------------------
-- ID: 5655
-- Item: coffeecake_muffin
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-- Strength -1
-- MP % 10 (cap 85)
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
bmharper/tundra | scripts/tundra/syntax/dotnet.lua | 28 | 3090 | module(..., package.seeall)
local util = require "tundra.util"
local nodegen = require "tundra.nodegen"
local depgraph = require "tundra.depgraph"
local _csbase_mt = nodegen.create_eval_subclass {
DeclToEnvMappings = {
References = "CSLIBS",
RefPaths = "CSLIBPATH",
},
}
local _csexe_mt = nodegen.cre... | mit |
AlexandreCA/update | scripts/zones/Periqia/IDs.lua | 49 | 3842 | Periqia = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6381, -- Obtained: <item>
GIL_OBTAINED = 6384, -- Obtained <number> gil
KEYITEM_OBTAINED = 6384, -- Obtaine... | gpl-3.0 |
me4488/TechFoundry | TechFoundry/objects/wired/energy/battery4/battery4.lua | 1 | 1614 | function init(virtual)
if not virtual then
energy.init()
self.particleCooldown = 0.2
self.particleTimer = 0
self.acceptCharge = entity.configParameter("acceptCharge") or true
entity.setParticleEmitterActive("charging", false)
updateAnimationState()
end
end
function die()
local position... | mit |
simas0/Livro-Aberto-de-Matematica-texto-do-projeto- | LPeg/dw2tex.lua | 1 | 12552 | file = io.open (arg[1], "r")
doc = file:read("*a")
io.close(file)
if arg[3] == "aluno" then
livrodoaluno = 1
end
inspect = require"inspect"
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" ... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/spells/earth_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Earth Carol
-- Increases earth resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/jacknife.lua | 18 | 1429 | -----------------------------------------
-- ID: 5123
-- Item: Jacknife
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defence 16% Cap 50
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/salmon_rice_ball.lua | 21 | 1567 | -----------------------------------------
-- ID: 4590
-- Item: Salmon Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +25
-- Dex +2
-- Vit +2
-- Mnd -1
-- hHP +1
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +40
-- Def ... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/effects/sigil.lua | 32 | 3008 | -----------------------------------
--
-- EFFECT_SIGIL
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower(); -- Tracks which bonus effects are in use.
local sub... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Gusgen_Mines/npcs/qm4.lua | 13 | 1429 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm4 (???)
-- Involved In Quest: Ghosts of the Past
-- @pos -174 0 369 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.