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 |
|---|---|---|---|---|---|
keplerproject/luarocks | src/luarocks/core/vers.lua | 1 | 6925 |
local vers = {}
local util = require("luarocks.core.util")
local require = nil
--------------------------------------------------------------------------------
local deltas = {
dev = 120000000,
scm = 110000000,
cvs = 100000000,
rc = -1000,
pre = -10000,
beta = -100000,
alpha = -10... | mit |
Craige/prosody-modules | mod_s2s_auth_monkeysphere/mod_s2s_auth_monkeysphere.lua | 32 | 1870 | module:set_global();
local http_request = require"socket.http".request;
local ltn12 = require"ltn12";
local json = require"util.json";
local json_encode, json_decode = json.encode, json.decode;
local gettime = require"socket".gettime;
local serialize = require"util.serialization".serialize;
local msva_url = assert(os... | mit |
p00ria/RedStorm | plugins/rules.lua | 28 | 2270 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
starlightknight/darkstar | scripts/globals/spells/absorb-vit.lua | 12 | 1565 | --------------------------------------
-- Spell: Absorb-VIT
-- Steals an enemy's vitality.
--------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMa... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/virus.lua | 12 | 1184 | -----------------------------------------
-- Spell: Virus
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
function... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/regen.lua | 12 | 1129 | -----------------------------------------
-- Spell: Regen
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target,... | gpl-3.0 |
noname007/vanilla | spec/helper.lua | 2 | 1065 | package.loaded['config.routes'] = { }
package.loaded['config.application'] = {}
_G['ngx'] = {
HTTP_NOT_FOUND = 404,
exit = function(code) return end,
print = function(print) return end,
status = 200,
location = {},
say = print,
eof = os.exit,
header = {},
req = {
read_body =... | mit |
gedads/Neodynamis | scripts/globals/weaponskills/tachi_shoha.lua | 22 | 1782 | -----------------------------------
-- Tachi: Shoha
-- Great Katana weapon skill
-- Skill Level: 357
-- Delivers a two-hit attack. Damage varies with TP.
-- To obtain Tachi: Shoha, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu.
-- Suspected to have an Attack Bonus simil... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/mobskills/typhoon.lua | 34 | 1116 | ---------------------------------------------
-- Typhoon
--
-- Description: Spins around dealing damage to targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-4 shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
mishin/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs_test.lua | 26 | 2339 | -- Tests for bfs.lua
local BFS = require 'bfs'
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 same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true
end
... | mit |
pravsingh/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs_test.lua | 26 | 2339 | -- Tests for bfs.lua
local BFS = require 'bfs'
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 same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true
end
... | mit |
telergybot/zspam | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
focusworld/ghost-bot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
uziins/uzzbot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Temple_of_Uggalepih/npcs/Stone_Picture_Frame.lua | 3 | 3762 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Stone Picture Frame
-- Notes: Opens door to Den of Rancor using Painbrush of Souls
-- !pos -52.239 -2.089 10.000 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
------------------------... | gpl-3.0 |
tommy3/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/function.lua | 25 | 14265 | -- tolua: function class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancement... | mit |
gedads/Neodynamis | scripts/zones/Windurst_Waters_[S]/npcs/Ranna-Brunna.lua | 3 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ranna-Brunna
-- Type: Standard NPC
-- @zone 94
-- !pos 123.085 -8.874 223.734
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/moon_carrot.lua | 12 | 1181 | -----------------------------------------
-- ID: 4567
-- Item: moon_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Open_sea_route_to_Mhaura/npcs/Sheadon.lua | 3 | 1144 | -----------------------------------
-- Area: Open_sea_route_to_Mhaura
-- NPC: Sheadon
-- Notes: Tells ship ETA time
-- !pos 0.340 -12.232 -4.120 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/O... | gpl-3.0 |
tst2005/lua-penlight | tests/test-xml.lua | 8 | 10800 | local xml = require 'pl.xml'
local asserteq = require 'pl.test'.asserteq
local dump = require 'pl.pretty'.dump
-- Prosody stanza.lua style XML building
d = xml.new 'top' : addtag 'child' : text 'alice' : up() : addtag 'child' : text 'bob'
d = xml.new 'children' :
addtag 'child' :
addtag 'name' : text 'alice' : up(... | mit |
starlightknight/darkstar | scripts/globals/mobskills/head_butt_turtle.lua | 11 | 1053 | ---------------------------------------------------
-- Head Butt (Adamantoise)
-- Deals damage to single target. Additional effects: Accuracy Down and large knockback
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monst... | gpl-3.0 |
zzzaaiidd/TCHUKY | plugins/zzaiddd6.lua | 2 | 1076 |
do
function run(msg, matches)
return [[
▫️الـبـوت الـذي يـعـمـل عـلـى مـجـمـوعـات الـسـوبـر
▫️يـعـمـل الـبـوت عـلـى مـجـمـوعـات سـوبـر تـصـل الـى 5 K عـضـو
≪ تـم صـنـع الـبـوت بـواسـطـه الـمـطـور ≫
『 @zzaiddd 』
▫️الـمـطـور : زيـــــد > @zzaiddd
... | gpl-2.0 |
sudosurootdev/external_skia | tools/lua/bitmap_statistics.lua | 207 | 1862 | function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
starlightknight/darkstar | scripts/zones/Windurst_Waters/npcs/Fuepepe.lua | 9 | 3465 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fuepepe
-- Starts and Finishes Quest: Teacher's Pet
-- Involved in Quest: Making the grade, Class Reunion
-- !pos 161 -2 161 238
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs");
require("scripts/globals/set... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Abyssea-Misareaux/npcs/qm3.lua | 3 | 1352 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm3 (???)
-- Spawns Funeral Apkallu
-- !pos ? ? ? 216
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Bastok_Mines/npcs/Titus.lua | 12 | 1194 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Titus
-- Alchemy Synthesis Image Support
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Bastok_Mines/IDs");
-----------------------------------
function onTr... | gpl-3.0 |
soulgame/slua | build/luajit-2.1.0-beta3/src/jit/p.lua | 55 | 9135 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | mit |
devnexen/h2o | deps/klib/lua/klib.lua | 42 | 20155 | --[[
The MIT License
Copyright (c) 2011, Attractive Chaos <attractor@live.co.uk>
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 th... | mit |
gedads/Neodynamis | scripts/zones/Southern_San_dOria/npcs/Lanqueron.lua | 3 | 1608 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Lanqueron
-- Type: Item Deliverer NPC
-- Involved in Quest: Lost Chick
-- @zone 230
-- !pos 0.335 1.199 -28.404
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/blackened_toad.lua | 11 | 1052 | -----------------------------------------
-- ID: 4599
-- Item: Blackened Toad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -1
-- Poison Resist 4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Windurst_Waters/npcs/Aramu-Paramu.lua | 3 | 1659 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Aramu-Paramu
-- Involved In Quest: Wondering Minstrel
-- !pos -63 -4 27 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Waters/... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Abyssea-Uleguerand/npcs/qm2.lua | 3 | 1423 | -----------------------------------
-- Zone: Abyssea-Uleguerand
-- NPC: qm2 (???)
-- Spawns Dhorme Khimaira
-- !pos ? ? ? 253
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Upper_Jeuno/npcs/Rouliette.lua | 11 | 1737 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rouliette
-- Starts and Finishes Quest: Candle-making
-- !pos -24 -2 11 244
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Metalworks/npcs/Grohm.lua | 9 | 2582 | -----------------------------------
-- Area: Metalworks
-- NPC: Grohm
-- Involved In Mission: Journey Abroad
-- !pos -18 -11 -27 237
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Metalworks/IDs");
-----------------------------------
function onTrade(player,... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/bluemagic/venom_shell.lua | 12 | 1482 | -----------------------------------------
-- Spell: Venom Shell
-- Poisons enemies within range and gradually reduces their HP
-- Spell cost: 86 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 3
-- Stat Bonus: MND+2
-- Level: 42
-- Casting Time: 3 seconds
-- Recast Time: 45 seconds
-- Ma... | gpl-3.0 |
laino/luakit | lib/lousy/signal.lua | 7 | 3274 | --------------------------------------------------------------
-- Mimic the luakit signal api functions for tables --
-- @author Fabian Streitel <karottenreibe@gmail.com> --
-- @author Mason Larobina <mason.larobina@gmail.com> --
-- @copyright 2010 Fabian Streitel, Mason Larobina --
-----... | gpl-3.0 |
bigrpg/skynet | lualib/skynet/datasheet/dump.lua | 20 | 6547 | --[[ file format
document :
int32 strtbloffset
int32 n
int32*n index table
table*n
strings
table:
int32 array
int32 dict
int8*(array+dict) type (align 4)
value*array
kvpair*dict
kvpair:
string k
value v
value: (union)
int32 integer
float real
int32 boolean
int32 table index
int32 st... | mit |
jarzofjam/tenshi | vm/lua/tenshi-runtime/src/lua/units.lua | 11 | 1128 | -- Licensed to Pioneers in Engineering under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. Pioneers in Engineering licenses
-- this file to you under the Apache License, Version 2.0 (the
-- "License"); you ... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Port_Bastok/Zone.lua | 26 | 3589 | -----------------------------------
--
-- Zone: Port_Bastok (236)
--
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/zone");
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scr... | gpl-3.0 |
telergybot/zspam | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Amorph/premake-stable | tests/actions/vstudio/vc2010/test_files.lua | 31 | 1551 | --
-- tests/actions/vstudio/vc2010/test_files.lua
-- Validate generation of files block in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_files = { }
local suite = T.vstudio_vs2010_files
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
loc... | bsd-3-clause |
telergybot/zspam | plugins/stats.lua | 33 | 3680 | do
local NUM_MSG_MAX = 6
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
pedro-andrade-inpe/terrame | packages/luadoc/lua/main/config.lua | 3 | 1480 | -------------------------------------------------------------------------------
-- LuaDoc configuration file. This file contains the default options for
-- luadoc operation. These options can be overriden by the command line tool
-- @see luadoc.print_help
-- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp... | lgpl-3.0 |
starlightknight/darkstar | scripts/globals/items/nebimonite.lua | 11 | 1246 | -----------------------------------------
-- ID: 4361
-- Item: nebimonite
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 2
-- Defense % 13 (cap 50)
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
--------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Beaucedine_Glacier_[S]/IDs.lua | 9 | 1071 | -----------------------------------
-- Area: Beaucedine_Glacier_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.BEAUCEDINE_GLACIER_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <it... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/weaponskills/knights_of_round.lua | 19 | 1904 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available without after... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Southern_San_dOria/npcs/Fulchia.lua | 17 | 1048 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Fulchia
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOri... | gpl-3.0 |
hwhw/kindlevncviewer | ffi/linux_fb_h.lua | 1 | 1493 | local ffi = require("ffi")
ffi.cdef[[
static const int FBIOGET_FSCREENINFO = 17922;
static const int FBIOGET_VSCREENINFO = 17920;
static const int FB_TYPE_PACKED_PIXELS = 0;
struct fb_bitfield {
unsigned int offset;
unsigned int length;
unsigned int msb_right;
};
struct fb_fix_screeninfo {
char id[16];
long u... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/spells/thunderstorm.lua | 32 | 1193 | --------------------------------------
-- 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 |
gedads/Neodynamis | scripts/zones/Norg/npcs/Vishwas.lua | 3 | 1029 | -----------------------------------
-- Area: Norg
-- NPC: Vishwas
-- Type: Standard NPC
-- @zone 252
-- !pos 44.028 -7.282 13.663
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Abyssea-Attohwa/npcs/qm10.lua | 3 | 1342 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm10 (???)
-- Spawns Maahes
-- !pos ? ? ? 215
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
taschemann/kq-lives | scripts/bridge2.lua | 2 | 3727 | -- bridge2 - "On Brayden river Randen and Andra, complete"
-- /*
-- {
-- Which globals should we have for the (incomplete) bridge?
--
-- P_FIGHTONBRIDGE
-- (0)..(4) [Not calculated]: when this is <=4, we will not use bridge2
-- (5) Slept at the inn, bridge is pretty close to being done
-- (6) [Not calculated]: w... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Windurst_Walls/npcs/Burute-Sorute.lua | 9 | 5285 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Burute-Sorute
-- Type: Title Change NPC
-- !pos 0.080 -10.765 5.394 239
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
local eventId = 10004
local titleInfo =
{
{
cost = 200,
... | gpl-3.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 80 | 2561 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Windurst_Waters/npcs/Yung_Yaam.lua | 11 | 1123 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Yung Yaam
-- Involved In Quest: Wondering Minstrel
-- !pos -63 -4 27 238
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/titles"... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/base/tests/functional/alternative/Agent.lua | 3 | 18755 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
janlou/AdvanSource | system/libs/lua-redis.lua | 40 | 35598 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Selbina/npcs/Chutarmire.lua | 17 | 1765 | -----------------------------------
-- Area: Selbina
-- NPC: Chutarmire
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
-------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Castle_Zvahl_Keep/mobs/Viscount_Morax.lua | 3 | 1053 | -----------------------------------
-- Area:
-- MOB: Viscount_Morax
-----------------------------------
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Bastok/npcs/Otto.lua | 3 | 1147 | -----------------------------------
-- Area: Port Bastok
-- NPC: Otto
-- Standard Info NPC
-- Involved in Quest: The Siren's Tear
-- @zone 236
-- !pos -145.929 -7.48 -13.701
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade
-------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/plate_of_tentacle_sushi_+1.lua | 12 | 1747 | -----------------------------------------
-- ID: 5216
-- Item: plate_of_tentacle_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Accuracy % 20 (cap 20)
-- Ranged Accuracy % 20 (cap 20)
-- Double Attack 1
----------------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/danceshroom.lua | 12 | 1190 | -----------------------------------------
-- ID: 4375
-- Item: danceshroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -5
-- Mind 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/abilities/pets/shock_absorber.lua | 12 | 1926 | ---------------------------------------------
-- Shock Absorber
---------------------------------------------
require("scripts/globals/automatonweaponskills")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------------------
function onMo... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/abilities/pets/tail_whip.lua | 11 | 1358 | ---------------------------------------------------
-- Tail Whip M=5
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/summon")
---------------------------------------------------
... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/North_Gustaberg/npcs/Monument.lua | 3 | 1484 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Monument
-- Involved in Quest "Hearts of Mythril"
-- !pos 300.000 -62.803 498.200 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/que... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Davoi/npcs/_451.lua | 17 | 1190 | -----------------------------------
-- Area: Davoi
-- NPC: _451 (Elevator Lever)
-- Notes: Used to operate Elevator @450 (actual npc script is _454)
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Castilchat.lua | 9 | 3083 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Castilchat
-- Starts Quest: Trial Size Trial by Ice
-- !pos -186 0 107 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs");
require("scripts/globals/teleports");
require("scripts/globals/status");
re... | gpl-3.0 |
mishin/Algorithm-Implementations | Binary_Search/Lua/Yonaba/binary_search_test.lua | 53 | 1896 | -- Tests for binary_search.lua
local binary_search = require 'binary_search'
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 = pass + 1... | mit |
beraldoleal/config | .config/awesome/lain/widget/fs.lua | 3 | 5266 | --[[
Licensed under GNU General Public License v2
* (c) 2018, Uli Schlacter
* (c) 2018, Otto Modinos
* (c) 2013, Luca CPZ
--]]
local helpers = require("lain.helpers")
local Gio = require("lgi").Gio
local focused = require("awful.screen").focused
local wibox = require("wibox")... | mit |
nyaki-HUN/DESIRE | DESIRE-Modules/UI-HorusUI/project/premake5.lua | 1 | 3165 | project "UI-HorusUI"
AddModuleConfig()
uuid "BE777A47-193E-4B77-83E1-FAF6A383C236"
pchheader "stdafx_HorusUI.h"
pchsource "../src/stdafx_HorusUI.cpp"
removeflags { "FatalCompileWarnings" }
defines
{
"HORUS_STATIC",
"FT2_BUILD_LIBRARY",
"FT_CONFIG_OPTION_SYSTEM_ZLIB",
}
includedirs
{
"../Externals/... | bsd-2-clause |
gedads/Neodynamis | scripts/zones/Nashmau/npcs/Pyopyoroon.lua | 28 | 2129 | -----------------------------------
-- Area: Nashmau
-- NPC: Pyopyoroon
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
ptbrown/rexxparse-lua | src/rexxparse/template.lua | 1 | 5270 | local coroutine,yield = coroutine,coroutine.yield
local sub,gsub,find = string.sub,string.gsub,string.find
local tonumber = tonumber
local function parse_template(template)
local position, reset
local matches, matchstart, matchend
local function collectmatches(mstart, mend, ...)
if not mstart then... | mit |
gedads/Neodynamis | scripts/globals/abilities/pets/eraser.lua | 5 | 1752 | ---------------------------------------------
-- Eraser
---------------------------------------------
require("scripts/globals/automatonweaponskills")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg");
---------------------------------------------
function onMobSkillC... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Bastok_Markets/npcs/Zaira.lua | 12 | 1150 | -----------------------------------
-- Area: Batok Markets
-- NPC: Zaira
-- Standard Merchant NPC
-- !pos -217.316 -2.824 49.235 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs")
require("scripts/globals/shop")
function onTrigger(player,npc)
local stock =
{
... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Southern_San_dOria/npcs/Phamelise.lua | 11 | 1471 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Phamelise
-- Zulkheim Regional Merchant
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
require("scripts/global... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Sealions_Den/bcnms/warriors_path.lua | 3 | 2390 | -----------------------------------
-- Area: Sealion's Den
-- Name: warriors_path
-- bcnmID : 993
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/mobskills/necropurge.lua | 43 | 1080 | ---------------------------------------------
-- Necropurge
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
if(m... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Castle_Oztroja_[S]/mobs/Suu_Xicu_the_Cantabile.lua | 9 | 2324 | -----------------------------------
-- Area: Castle Oztroja [S]
-- NM: Suu Xicu the Cantabile
-- TODO:
-- Summoning of pets should be tied to Soul Voice usage.
-- Gains a hidden regen from Army's Paeon V. Even if it is dispelled, it will gain several HP%.
-----------------------------------
mixins = {require("scrip... | gpl-3.0 |
focusworld/ghost-bot | bot/bot.lua | 10 | 7114 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/items/cutlet_sandwich.lua | 12 | 1739 | -----------------------------------------
-- ID: 6396
-- Item: cutlet_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +40
-- STR +7
-- INT -7
-- Fire resistance +20
-- Attack +20% (cap 120)
-- Ranged Attack +20% (cap 120)
-----------------------------------------
require("scri... | gpl-3.0 |
RememberTheAir/GroupButler | lua/groupbutler/chatmember.lua | 1 | 2752 | local log = require("groupbutler.logging")
local User = require("groupbutler.user")
local StorageUtil = require("groupbutler.storage.util")
local ChatMember = {}
local function p(self)
return getmetatable(self).__private
end
function ChatMember:new(obj, private)
assert(obj.chat, "ChatMember: Missing obj.chat")
as... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/abilities/pets/bone_crusher.lua | 4 | 1729 | ---------------------------------------------------
-- Bone Crusher
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(t... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Nashmau/npcs/Yoyoroon.lua | 8 | 1554 | -----------------------------------
-- Area: Nashmau
-- NPC: Yoyoroon
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Nashmau/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
2239... | gpl-3.0 |
BillardDRP/nathaniel-rp-addons | addons/billard_ents/lua/entities/billard_weed_harvested/init.lua | 2 | 1139 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/props/cs_office/trash_can_p5.mdl") //Once again, custom models are overrated
self:SetColor(Color(0, 255, 0, 255))
self:SetMaterial("models/props_c17/furniturefabric_002a")
self:Phy... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Bibiki_Bay/npcs/Toh_Zonikki.lua | 9 | 4702 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Toh Zonikki
-- Type: Clamming NPC
-- !pos -371 -1 -421 4
-----------------------------------
local ID = require("scripts/zones/Bibiki_Bay/IDs");
require("scripts/globals/keyitems");
-----------------------------------
-- Local Variables
------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua | 17 | 1382 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Sibila-Mobla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
-------... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/Simulation.lua | 1 | 2891 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/12/05 14:47:20 $
$RCSfile: Simulation.lua,v $
$Revision: 1.2 $
$Id: Simulation.lua,v 1.2 2004/12/05 14:47:20 brpreiss Exp $
--]]
require "LeftistHeap"
require "Association"
require "Expon... | apache-2.0 |
pospanet/nodemcu-httpserver | httpserver-request.lua | 1 | 2020 | -- httpserver-request
-- Part of nodemcu-httpserver, parses incoming client requests.
-- Author: Marcos Kirsch
local function validateMethod(method)
local httpMethods = {GET=true, HEAD=true, POST=true, PUT=true, DELETE=true, TRACE=true, OPTIONS=true, CONNECT=true, PATCH=true}
-- default for non-existent at... | gpl-2.0 |
starlightknight/darkstar | scripts/globals/items/istiridye.lua | 11 | 1149 | -----------------------------------------
-- ID: 5456
-- Item: Istiridye
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defense +17.07%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Southern_San_dOria/npcs/Faulpie.lua | 3 | 2889 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Faulpie
-- Type: Leathercraft Guild Master
-- !pos -178.882 -2 9.891 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San... | gpl-3.0 |
libmoon/libmoon | lua/driver/igb.lua | 3 | 3021 | --- igb-specific code
local dev = {}
local dpdkc = require "dpdkc"
local ffi = require "ffi"
local log = require "log"
-- the igb driver actually reports stats almost as expected
dev.txStatsIgnoreCrc = true
dev.rxStatsIgnoreCrc = true
-- timestamping
local TSAUXC = 0x0000B640
local TIMINCA = 0x0000B608
lo... | mit |
Achain-Dev/Achain | src/Chain/libraries/glua/tests_typed/full_demo.lua | 1 | 3862 | type Person = {
id: string default '123',
name: string default "hi",
age: int default 24,
age2: number,
age3 ?: int default 1,
fn: (number, number) => number default function (a: number, b: number) return a + b; end
}
let p11: Person = Person()
local as1, as2
as1, as2, as2, as1 = 1, 'abc', 'd'
as3[p11]
... | mit |
gedads/Neodynamis | scripts/zones/Spire_of_Dem/npcs/_0j3.lua | 66 | 1350 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
-------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Metalworks/npcs/Naji.lua | 3 | 5236 | -----------------------------------
-- Area: Metalworks
-- NPC: Naji
-- Involved in Quests: The doorman (finish), Riding on the Clouds
-- Involved in Mission: Bastok 6-2
-- !pos 64 -14 -4 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
noname007/vanilla | vanilla/sys/vanilla.lua | 2 | 2910 | -- dep
local ansicolors = require 'ansicolors'
-- perf
local error = error
local sgmatch = string.gmatch
-- vanilla
local va_conf = require 'vanilla.sys.config'
local ngx_handle = require 'vanilla.sys.nginx.handle'
local ngx_config = require 'vanilla.sys.nginx.config'
local helpers = require 'vanilla.v.libs.utils'
-... | mit |
gedads/Neodynamis | scripts/zones/Behemoths_Dominion/mobs/King_Behemoth.lua | 3 | 2483 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: King Behemoth
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobSpawn Action
------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 17 | 1310 | -----------------------------------
-- 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 |
gedads/Neodynamis | scripts/zones/Jugner_Forest_[S]/Zone.lua | 12 | 1694 | -----------------------------------
--
-- Zone: Jugner_Forest_[S] (82)
--
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jugner_Forest_[S]/TextIDs");
------------------... | gpl-3.0 |
mishin/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
raymondtfr/forgottenserver | data/lib/core/creature.lua | 1 | 3913 | function Creature.getClosestFreePosition(self, position, maxRadius, mustBeReachable)
maxRadius = maxRadius or 1
-- backward compatability (extended)
if maxRadius == true then
maxRadius = 2
end
local checkPosition = Position(position)
for radius = 0, maxRadius do
checkPosition.x = checkPosition.x - math.min(... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.