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 |
|---|---|---|---|---|---|
KevinGuarnati/controllore | plugins/get.lua | 3 | 1151 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'channel' then
return 'channel:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_va... | mit |
kidaa/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 38 | 1026 | -----------------------------------
-- 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 |
Yhgenomics/premake-core | tests/actions/vstudio/vc200x/test_compiler_block.lua | 9 | 13247 | --
-- tests/actions/vstudio/vc200x/test_compiler_block.lua
-- Validate generation the VCCLCompiler element in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs200x_compiler_block")
local vc200x = premake.vstudio.vc200x
--... | bsd-3-clause |
kidaa/FFXIOrgins | scripts/zones/The_Eldieme_Necropolis/npcs/_5fb.lua | 4 | 1066 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 249 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Norg/npcs/Home_Point.lua | 3 | 1165 | -----------------------------------
-- Area: Norg
-- NPC: Home Point
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/zones/Norg/TextIDs");
-----------------------------------
-- onTrade Action
--------------------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 2 | 5256 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tosuka-Porika
-- Involved in Quests: Hat in Hand
-- Involved in Mission 2-1
-- @pos -26 -6 103 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
package.loaded["scripts/globals/missions"]... | gpl-3.0 |
e1d1s1/OpenRA | mods/cnc/maps/nod06b/nod06b.lua | 25 | 7008 | NodUnitsVehicle1 = { 'bggy', 'bggy', 'bike', 'bike', 'bike' }
NodUnitsVehicle2 = { 'ltnk', 'ltnk', 'ltnk' }
NodUnitsGunner = { 'e1', 'e1', 'e1', 'e1', 'e1', 'e1' }
NodUnitsRocket = { 'e3', 'e3', 'e3', 'e3', 'e3', 'e3' }
Gdi1Units = { 'e1', 'e1', 'e2', 'e2', 'e2' }
HuntCellTriggerActivator = { CPos.New(61,34), CPos.New... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Port_Bastok/npcs/Mokop-Sankop.lua | 2 | 1064 | -----------------------------------
-- Area: Port Bastok
-- NPC: Mokop-sankop
-- Type: Conquest Troupe
-- @zone 236
-- @pos 104.232, 8.499, -63.834
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Ba... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Jugner_Forest/npcs/Logging_Point.lua | 4 | 1057 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Jugner_Forest/TextIDs");
---------------... | gpl-3.0 |
AntonioModer/shine | scanlines.lua | 8 | 4107 | --[[
The MIT License (MIT)
Copyright (c) 2015 Daniel Oaks
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,... | mit |
capr/fbclient-alien | lua/fbclient/module.lua | 2 | 2062 | --[[
Since you opened this file, you might want to know how modules work in fbclient.
A typical fbclient module starts with the line:
module(...,require'fbclient.module')
This does two things:
1) loads this module if it's not loaded already (so the initialization code only happens once)
2) calls the value re... | mit |
kidaa/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Icoua.lua | 4 | 1038 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Icoua
-- Type: Standard NPC
-- @zone: 231
-- @pos 87.719 -1 9.256
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
FilthyPeasantDEV/PokeBot | BizHawk-1.11.6/Lua/Genesis/Splatterhouse 2 (USA).lua | 7 | 1863 | --Splatterhouse 2 (USA) Collision box viewer
--Author Pasky
--For use with Bizhawk
local cx = 0
local player = false
local attack = false
local weapon = false
local function camera()
cx = mainmemory.read_u16_be(0x9E)
end
local function drawAxis(x1,y1,x2,y2)
local x = ((x2 - x1) / 2) + x1
local y = ((y2 - y1) / 2... | mit |
mohammadjkh/PowerTeam | plugins/about.lua | 1 | 2317 | local action = function(msg, blocks, ln)
--ignore if via pm
if msg.chat.type == 'private' then
return
end
local hash = 'chat:'..msg.chat.id..':about'
if blocks[1] == 'about' then
local out = cross.getAbout(msg.chat.id, ln)
if is_locked(msg, 'About') and not is_mod(msg) then
api.s... | gpl-2.0 |
simon-wh/PAYDAY-2-BeardLib-Editor | mods/BeardLib-Editor/Classes/Map/Elements/lasertriggerelement.lua | 1 | 13159 | EditorLaserTrigger = EditorLaserTrigger or class(MissionScriptEditor)
EditorLaserTrigger.CLOSE_DISTANCE = 25
EditorLaserTrigger.SAVE_UNIT_POSITION = false
EditorLaserTrigger.SAVE_UNIT_ROTATION = false
EditorLaserTrigger.USES_INSTIGATOR_RULES = true
EditorLaserTrigger.COLORS = {red = {1,0,0}, green = {0, 1, 0}, blue = {... | mit |
Fatalerror66/ffxi-a | scripts/zones/Metalworks/npcs/_6ld.lua | 2 | 1358 | -----------------------------------
-- Area: Metalworks
-- Door: President's Office
-- @pos 92 -19 0 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/West_Sarutabaruta_[S]/npcs/Cavernous_Maw.lua | 4 | 1332 | -----------------------------------
-- Cavernous Maw
-- Teleports Players to West Sarutabaruta
-- @pos 0 0 -165 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/t... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua | 4 | 1336 | -----------------------------------
-- Cavernous Maw
-- Teleports Players to Pashhow_Marshlands
-- @pos 418 25 27 90
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/abilities/ice_shot.lua | 2 | 2357 | -----------------------------------
-- Ability: Ice Shot
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player... | gpl-3.0 |
nenau/naev | dat/missions/empire/shipping/es00.lua | 2 | 6499 | --[[
Empire Shipping Prisoner Exchange
Author: bobbens
minor edits by Infiltrator
]]--
include "dat/scripts/numstring.lua"
bar_desc = _("You see an Empire Commander. He seems to have noticed you.")
misn_title = _("Prisoner Exchange")
misn_reward = _("%s credits")
misn_desc = {}
misn_desc[1] = _("Go to ... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Sih_Gates/Zone.lua | 2 | 1104 | -----------------------------------
--
-- Zone: Sih Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Sih_Gates/TextIDs"] = nil;
require("scripts/zones/Sih_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------... | gpl-3.0 |
TeleMafia/mafia | plugins/PL (5).lua | 3 | 1634 | -----my_name_is_ehsan*#@mafia_boy
-----@ENERGY_TEAM FOR UPDATE
-----لطفا پیام بالا رو پاک نکنید
function run(msg,matches)
if matches[1] == 'id' or 'ایدی' and msg.reply_to_message_id_ == 0 then
if is_sudo(msg) then
rank = 'صاحب ربات'
elseif is_owner(msg) then
rank = 'صاحب گروه'
elseif is_mod(msg) then
ra... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Riverne-Site_A01/mobs/Hippogryph.lua | 5 | 1331 | -----------------------------------
-- Area: Riverne Site A01
-- MOB: Hippogryph
-----------------------------------
-----------------------------------
function OnMobRoam(mob)
local Heliodromos_Table =
{
16900110,
16900111,
16900112
};
local Heliodromos_PH_Table =
{
16900107,
16900108,
16900109
... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/lizard_egg.lua | 1 | 1134 | -----------------------------------------
-- ID: 4362
-- Item: lizard_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 5
-- Magic 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
Wedge009/wesnoth | data/lua/core/units.lua | 5 | 5792 | --[========[Units module]========]
if wesnoth.kernel_type() == "Game Lua Kernel" then
print("Loading units module...")
wesnoth.units.scroll_to = wesnoth.interface.scroll_to_hex
---Modifies all the units satisfying the given filter.
---@param filter WML A filter to select the units to modify
---@param vars table... | gpl-2.0 |
Fatalerror66/ffxi-a | scripts/zones/North_Gustaberg/Zone.lua | 2 | 1647 | -----------------------------------
--
-- Zone: North_Gustaberg (106)
--
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
require("scripts/zones/North_Gustaberg/TextIDs");
require( "scripts/globals/icanheararainbow");
-----------------------------------
-... | gpl-3.0 |
lordporya/lord-dark | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
infernal1200/infernal | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
RockySeven3161/Unknown. | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
Fatalerror66/ffxi-a | scripts/zones/Windurst_Walls/npcs/Zayhi-Bauhi.lua | 19 | 5249 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-91 Y:-9 Z:109
-- NPC: Zayhi-Bauhi
-- Working 100%
-- Starts and Finishes Quest: To Bee or Not to Bee?
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Wedge009/wesnoth | utils/emmylua/builtin.lua | 5 | 3168 | ---@meta
-- This file covers the built-in OS and debug modules, or rather, the parts of them
-- that exist in Wesnoth.
std_print = print
wesnoth.require = require
os = {}
debug = {}
--[========[OS library - truncated]========]
--(copy-pasted from the plugin's internal meta files)
---
---Returns an approximation of ... | gpl-2.0 |
kidaa/FFXIOrgins | scripts/globals/mobskills/Nullifying_Dropkick.lua | 5 | 1050 | ---------------------------------------------
-- Nullifying Dropkick
--
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/zones/Empyreal_Paradox/TextIDs");
-------------------------------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/mobskills/Numbshroom.lua | 8 | 1148 | ---------------------------------------------------
-- Queasyshroom
-- Additional effect: Fires a mushroom cap, dealing damage to a single target. Additional effect: paralysis.
-- Range is 14.7 yalms.
-- Piercing damage Ranged Attack.
-- Secondary modifiers: INT: 20%.
---------------------------------------------------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Norg/npcs/Colleraie.lua | 4 | 1029 | -----------------------------------
-- Area: Norg
-- NPC: Colleraie
-- Type: Event Scene Replayer
-- @zone: 252
-- @pos: -24.684 0.097 -39.409
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
--------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/pear_crepe.lua | 36 | 1325 | -----------------------------------------
-- ID: 5777
-- Item: Pear Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +2
-- Magic Accuracy +5
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Amimi.lua | 2 | 1523 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Amimi
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
require("scripts/globals/quests");
-----------------------------------
-- onTrade... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Phomiuna_Aqueducts/npcs/_0rq.lua | 2 | 1390 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Southern_San_dOria/npcs/Nokkhi_Jinjahl.lua | 4 | 9824 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Nokkhi Jinjahl
-- Type: NPC Quiver Maker/ Sandy 1st Place
-- @zone: 230
-- @pos: 24.829 0.978 -13.110
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Southern_... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/items/tortilla_bueno.lua | 2 | 1132 | -----------------------------------------
-- ID: 5181
-- Item: tortilla_bueno
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 8
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
actionless/awesome | tests/examples/wibox/awidget/tasklist/rounded.lua | 5 | 2718 | --DOC_GEN_IMAGE --DOC_HIDE
local parent = ... --DOC_NO_USAGE --DOC_HIDE
local awful = { --DOC_HIDE
tag = require("awful.tag"), --DOC_HIDE
placement = require("awful.placement"), --DOC_HIDE
widget = {tasklist = require("awful.widget.tasklist")} --DOC_HIDE
} --DOC_HIDE
local gears = { shape = require("gears.s... | gpl-2.0 |
Fatalerror66/ffxi-a | scripts/zones/Dangruf_Wadi/Zone.lua | 2 | 2484 | -----------------------------------
--
-- Zone: Dangruf_Wadi (191)
--
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
require("scripts/zones/Dangruf_Wad... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/cluster_of_paprika.lua | 36 | 1233 | -----------------------------------------
-- ID: 5740
-- Item: Cluster of Paprika
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-- Defense -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Norg/npcs/Paito-Maito.lua | 2 | 2604 | -----------------------------------
-- Area: Norg
-- NPC: Paito-Maito
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
path = {
-71.189713, -9.413510, 74.024879,
-71.674171, -9.317029, 73.054794,
-72.516525, -9.298064, 72.363213,
-73.432983, -9.220915, 71.77385... | gpl-3.0 |
pocarist/mal | lua/step7_quote.lua | 40 | 4344 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local core = require('core')
local List, Vector, HashMap = types.List, typ... | mpl-2.0 |
pavouk/lgi | samples/gstplaystream.lua | 2 | 1174 | #! /usr/bin/env lua
--
-- Sample GStreamer application, port of public Vala GStreamer Audio
-- Stream Example (http://live.gnome.org/Vala/GStreamerSample)
--
local lgi = require 'lgi'
local GLib = lgi.GLib
local Gst = lgi.Gst
local main_loop = GLib.MainLoop()
local function bus_callback(bus, message)
if message.... | mit |
belolap/guild-taxes | GuildTaxesGUI.lua | 1 | 5144 | --
-- GuildTaxes - keep your guild bank full
-- Author: Неогик@Галакронд
--
local AceGUI = LibStub("AceGUI-3.0")
-- Settings
local TABLE_UPDATE_THRESHOLD = 5
-- GUI
local GUI = {
frame = nil,
status = "-",
data = {},
updated = nil,
}
GuildTaxes.GUI = GUI
-- Register fake layout
AceGUI:RegisterLayout("Static", ... | bsd-3-clause |
Fatalerror66/ffxi-a | scripts/globals/items/two-leaf_mandragora_bud.lua | 2 | 1131 | -----------------------------------------
-- ID: 4368
-- Two-Leaf Mandragora Bud
-- 5 Minutes, food effect, All Races
-----------------------------------------
-- Agility +2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Palborough_Mines/npcs/Old_Toolbox.lua | 4 | 1353 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Old Toolbox
-- Continues Quest: The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/items/enthralling_brocade_obi.lua | 2 | 1091 | -----------------------------------------
-- ID: 15862
-- Item: Enthralling Brocade Obi
-- Enchantment: CHR 10
-- Charges: 30 Reuse Delay: 600 Secs
-- Duration: 60 Secs
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
------------------------... | gpl-3.0 |
evil-morfar/RCLootCouncil2 | Libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua | 3 | 6441 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
-- Widget created by Yssaril
local AceGUI = LibStub("AceGUI-3.0")
local Media = LibStub("LibSharedMedia-3.0")
local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
do
local widgetType = "LSM30_Statusbar"
local widgetVersion = 12
local c... | lgpl-3.0 |
LuaDist2/xlsxwriter | test/unit/worksheet/test_write_sheet_view.lua | 2 | 2602 | ----
-- Tests for the xlsxwriter.lua Worksheet class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
plan(6)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require "xlsxwriter.worksheet"
local worksheet
----
-- Test the _write_sheet_view() method. Ta... | mit |
kidaa/FFXIOrgins | scripts/zones/Davoi/npcs/_45j.lua | 19 | 2044 | -----------------------------------
-- Area: Davoi
-- NPC: Screaming Pond
-- Used In Quest: Whence Blows the Wind
-- @pos -219 0.1 -101 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
bygreencn/DIGITS | digits/tools/torch/data.lua | 3 | 31462 | -- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
require 'torch' -- torch
require 'nn' -- provides a normalization operator
require 'utils' -- various utility functions
require 'hdf5' -- import HDF5 now as it is unsafe to do it from a worker thread
local threads = require 'threads' -- for multi-thre... | bsd-3-clause |
MOSAVI17/Security1 | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
lordporya/lord-dark | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Fatalerror66/ffxi-a | scripts/globals/items/remedy.lua | 19 | 1251 | -----------------------------------------
-- ID: 4155
-- Item: Remedy
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and disease.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
tltneon/nsplugins | plugins/notiboard/entities/entities/nut_notiboard.lua | 2 | 4383 | ENT.Type = "anim"
ENT.PrintName = "Noti-Board"
ENT.Author = "Black Tea"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.Category = "NutScript"
ENT.RenderGroup = RENDERGROUP_BOTH
if CLIENT then
local ftbl = {
font = mainFont,
size = 27,
weight = 500,
antialias = true,
}
surface.CreateFont("nut_NotiBoardFont... | gpl-2.0 |
MOSAVI17/Security1 | 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 |
Puccio7/bot-telegram | 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... | apache-2.0 |
MikePetullo/grilo-plugins | src/lua-factory/sources/grl-euronews.lua | 1 | 3124 | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | lgpl-2.1 |
Fatalerror66/ffxi-a | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 2 | 2331 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- @pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/keen_zaghnal.lua | 4 | 1077 | -----------------------------------------
-- ID: 18067
-- Equip: Keen Zaghnal
-- Enchantment: Accuracy +3
-- Enchantment will wear off if weapon is unequipped.
-- Effect lasts for 30 minutes
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/roast_mushroom.lua | 1 | 1407 | -----------------------------------------
-- ID: 4410
-- Item: witch_kabob
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- Magic Points 10
-- Strength -1
-- Mind 3
-- Enmity -1
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
shahabsaf1/arabic | plugins/google.lua | 5 | 1040 | 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 |
Fatalerror66/ffxi-a | scripts/globals/items/bowl_of_loach_soup.lua | 3 | 1478 | -----------------------------------------
-- ID: 5671
-- Item: Bowl of Loach Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Dexterity 4
-- Agility 4
-- Accuracy 7% Cap 50
-- HP 7% Cap 50
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----... | gpl-3.0 |
nenau/naev | dat/factions/spawn/frontier.lua | 4 | 1978 | include("dat/factions/spawn/common.lua")
include("dat/factions/spawn/mercenary_helper.lua")
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < pbm then
pilots = spawnLtMerc("Frontier")
elseif r < 0.5 then
scom.addPilot( pilots, "... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Fort_Ghelsba/npcs/Treasure_Chest.lua | 7 | 2558 | -----------------------------------
-- Area: Fort Ghelsba
-- NPC: Treasure Chest
-- @zone 141
-----------------------------------
package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/z... | gpl-3.0 |
zhangshiqian1214/skynet | lualib/http/httpc.lua | 12 | 3629 | local skynet = require "skynet"
local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local dns = require "skynet.dns"
local string = string
local table = table
local httpc = {}
local function request(fd, method, host, url, recvheader, header, content)
loc... | mit |
Fatalerror66/ffxi-a | scripts/globals/items/porcupine_pie.lua | 2 | 1884 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
-- Ranged Attack % ... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/mobskills/Digest.lua | 10 | 1059 | ---------------------------------------------------
-- Drainkiss
-- Deals dark damage to a single target. Additional effect: Drain
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
--------------------------------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Rabao/TextIDs.lua | 3 | 1888 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6392; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6395; -- Obtained: <item>
GIL_OBTAINED = 6396; -- Obtained <number> gil
KEYITEM_OBTAINED = 6398; -- Obt... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/globals/spells/curaga_iii.lua | 2 | 1191 | -----------------------------------------
-- Spell: Curaga III
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------------------... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Rumoie.lua | 4 | 1426 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rumoie
-- Type: Map Marker NPC
-- @zone: 230
-- @pos 149.696 -2.000 151.631
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Wajaom_Woodlands/npcs/qm1.lua | 15 | 1188 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Vulpangue(ZNM T1))
-- @pos -697 -7 -123 51
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Lower_Jeuno/TextIDs.lua | 2 | 2222 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6622; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6378; -- Obtained: <item>
GIL_OBTAINED = 6379; -- Obtained <number> gil
KEYITEM_OBTAINED = 6381; -- Obtain... | gpl-3.0 |
alikineh/ali_kineh | plugins/spam.lua | 25 | 207170 | function run(msg, matches)
return 'SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM... | gpl-2.0 |
kidaa/FFXIOrgins | scripts/zones/Castle_Oztroja/npcs/_47m.lua | 2 | 1512 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47m (Torch Stand)
-- Notes: Opens door _471 near password #3
-- @pos -45.230 -17.832 17.668 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/bowl_of_vegetable_soup.lua | 1 | 1344 | -----------------------------------------
-- ID: 4560
-- Item: bowl_of_vegetable_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 4
-- Ranged Accuracy 5
-- HP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
murdemon/domoticz_codesys | scripts/lua/dzVents/tests/testDevice.lua | 1 | 7810 | local _ = require 'lodash'
package.path = package.path .. ";../?.lua"
local LOG_INFO = 2
local LOG_DEBUG = 3
local LOG_ERROR = 1
describe('device', function()
local Device
local commandArray = {}
local cmd
local device
local domoticz = {
sendCommand = function(command, value)
table.insert(commandArray, {[... | gpl-3.0 |
Wedge009/wesnoth | utils/emmylua/ai.lua | 4 | 4666 | ---@meta
---@class ailib
---@field read_only boolean
---@field side integer
ai = {}
---@alias ai_aspects_recruitment_more string|integer
---@class ai.aspects
---@field aggression number
---@field caution number
---@field grouping string
---@field leader_aggression number
---@field leader_ignores_keep boolean|string
... | gpl-2.0 |
sapohl/data-pipeline | reports/derived_streams/derived_streams/run/input/prune_input.lua | 4 | 2480 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[[
Hindsight input log file pruner
Deletes the log files generated by the input plugins, when all the analysis and... | mpl-2.0 |
belolap/guild-taxes | Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 35 | 8804 | --[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 6
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | bsd-3-clause |
Fatalerror66/ffxi-a | scripts/globals/items/serving_of_emperor_roe.lua | 2 | 1293 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
Fatalerror66/ffxi-a | scripts/zones/Meriphataud_Mountains/npcs/Mushosho.lua | 2 | 1834 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Mushosho
-- @pos -290 16 415 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/co... | gpl-3.0 |
flyzjhz/openwrt-bb | feeds/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... | gpl-2.0 |
actionless/awesome | tests/test-benchmark.lua | 6 | 2477 | -- Some benchmarks that aren't really tests, but are included here anyway so
-- that we notice if they break.
local runner = require("_runner")
local awful = require("awful")
local GLib = require("lgi").GLib
local create_wibox = require("_wibox_helper").create_wibox
local BENCHMARK_EXACT = os.getenv("BENCHMARK_EXACT"... | gpl-2.0 |
aliafshar250/b | plugins/plugins.lua | 35 | 5971 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
oralius/gto | plugins/plugins.lua | 35 | 5971 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
kidaa/FFXIOrgins | scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua | 2 | 1630 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Narvecaint
-- Involved in Mission: The Rescue Drill
-- @pos -263 22 129 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions"... | gpl-3.0 |
LipkeGu/OpenRA | mods/ra/maps/soviet-04a/soviet04a-reinforcements_teams.lua | 7 | 3111 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Sacrarium/mobs/Old_Professor_Mariselle.lua | 2 | 2171 | -----------------------------------
-- Area: Sacrarium
-- NPC: Old Professor Mariselle
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- onMobSpawn
-----------------------------------
function OnMobSpawn(mob)
end;
--... | gpl-3.0 |
jiang42/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning_test.lua | 26 | 1062 | -- Tests for alpha_beta_pruning.lua
local ABP = require 'alpha_beta_pruning'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pa... | mit |
kidaa/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Hortense.lua | 16 | 1909 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Hortense
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/globals/items/bowl_of_jack-o-soup.lua | 1 | 1510 | -----------------------------------------
-- ID: 4522
-- Item: Bowl of Jack-o'-Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 2
-- Agility 3
-- Vitality -1
-- Health Regen While Healing 5
-- Ranged ACC % 8
-- Ranged ACC Cap 25
-----------------------------------------
requ... | gpl-3.0 |
kidaa/FFXIOrgins | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cc.lua | 4 | 1030 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cc (Gate of Ice)
-- @pos -228 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs");
------... | gpl-3.0 |
smogpill/core | premakeUtils.lua | 1 | 6868 |
function coInitParams(_params)
co_baseAbsPath = os.getcwd()
print("co_baseAbsPath: "..co_baseAbsPath)
co_externalAbsPath = co_baseAbsPath .. "/external"
co_buildPath = "build/" .. _ACTION
local coreRelativePath = "."
if _params.coreRelativePath then
coreRelativePath = _params.coreRelativePath
end
local coreA... | mit |
LipkeGu/OpenRA | mods/d2k/maps/atreides-02a/atreides02a-AI.lua | 4 | 1137 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
paintdream/DontStarveLuaJIT | src/luajit/dynasm/dasm_ppc.lua | 33 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
LipkeGu/OpenRA | mods/ra/maps/fort-lonestar/fort-lonestar.lua | 7 | 7769 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
simon-wh/PAYDAY-2-BeardLib-Editor | mods/BeardLib-Editor/Classes/MapEditor.lua | 1 | 32156 | MapEditor = MapEditor or class()
core:import("CoreEditorWidgets")
local Editor = MapEditor
local Utils = BLE.Utils
local m = {}
function Editor:init()
managers.editor = self
if not PackageManager:loaded("core/packages/editor") then
PackageManager:load("core/packages/editor")
end
se... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.