repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
HeavensSword/darkstar | scripts/globals/mobskills/soothing_aroma.lua | 5 | 1036 | ---------------------------------------------
-- Soothing Aroma
-- Family: Rafflesia
-- Description: Charms nearby players.
-- Type:
-- Utsusemi/Blink absorb:
-- Range:
-- Notes:
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("script... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/death_penalty.lua | 3 | 4296 | -----------------------------------------
-- ID: 19007
-- Item: Death Penalty
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_W... | gpl-3.0 |
mahdib9/99 | plugins/owners.lua | 94 | 12617 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
Openarl/PathOfBuilding | Export/Classes/RowListControl.lua | 1 | 2246 | -- Dat View
--
-- Class: Row List
-- Row list control.
--
local ipairs = ipairs
local t_insert = table.insert
local t_remove = table.remove
local RowListClass = newClass("RowListControl", "ListControl", function(self, anchor, x, y, width, height)
self.ListControl(anchor, x, y, width, height, 14, true, false, { })
se... | mit |
HeavensSword/darkstar | scripts/globals/items/vongola_clam.lua | 3 | 1329 | -----------------------------------------
-- ID: 5131
-- Item: Vongola Clam
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defense +17% - 50 Cap
-- HP 5% - 50 Cap
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
kimonline/PGE | lua/samples/zip/script.lua | 1 | 2333 | if not pge.require("pge.font") then
error("Error loading module.")
end
if not pge.require("pge.gfx") then
error("Error loading module.")
end
if not pge.require("pge.controls") then
error("Error loading module.")
end
if not pge.require("pge.zip") then
error("Error loading module.")
end
-- Create a color
white = ... | gpl-3.0 |
birdbrainswagtrain/microcosm | gamemodes/microcosm/gamemode/shared.lua | 1 | 2526 | GM.Name = "Microcosm"
GM.Author = "Adam Coggeshall"
GM.Email = ""
GM.Website = "http://cogg.rocks"
DeriveGamemode( "base" )
-- Constants and team related stuff.
MICRO_SCALE = 1/32
MICRO_TEAM_NAMES = {"Red","Green","Blue","Yellow",[0]="None"}
MICRO_TEAM_COLORS = {
Color(255,0,0),
Color(0,255,0),
Color(0,0,255),
... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/mandibular_bite.lua | 33 | 1716 | -----------------------------------------
-- Spell: Mandibular Bite
-- Damage varies with TP
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: INT+1
-- Level: 44
-- Casting Time: 0.5 seconds
-- Recast Time: 19.25 seconds
-- Skillchain property(ies): I... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Tavnazia/Zone.lua | 5 | 2047 | -----------------------------------
--
-- Zone: Dynamis-Tavnazia
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
----------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/dragon_steak.lua | 3 | 1711 | -----------------------------------------
-- ID: 4350
-- Item: dragon_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Intelligence -3
-- Health Regen While Healing 2
-- MP recovered while healing +2
-- Attack % 20
-- Attack Cap 150
-- Ranged ATT % 20
-- Ra... | gpl-3.0 |
Openarl/PathOfBuilding | Export/browse.lua | 1 | 3127 | #@
dofile("_common.lua")
loadDat("SkillGems")
loadDat("ActiveSkills")
loadDat("GemTags")
loadDat("Stats")
loadDat("Mods")
loadDat("GrantedEffects")
loadDat("GrantedEffectsPerLevel")
loadDat("MonsterVarieties")
loadDat("MonsterTypes")
loadDat("MonsterResistances")
loadDat("ItemClasses")
function actWithType(skillType... | mit |
thetanil/thetasynth-pi | lua/pl/lexer.lua | 7 | 14594 | --- Lexical scanner for creating a sequence of tokens from text.
-- `lexer.scan(s)` returns an iterator over all tokens found in the
-- string `s`. This iterator returns two values, a token type string
-- (such as 'string' for quoted string, 'iden' for identifier) and the value of the
-- token.
--
-- Versions specializ... | apache-2.0 |
Wedmer/luci | applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua | 1 | 12572 | -- Copyright 2017 Stan Grishin <stangri@melmac.net>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.advanced_reboot", package.seeall)
-- device_name, board_name, part1, part2, offset, env_var_1, value_1_1, value_1_2, env_var_2, value_2_1, value_2_2
devices = {
{"Linksys EA3500", "lin... | apache-2.0 |
natuan241/Algorithm-Implementations | Newton_Raphson/Lua/Yonaba/newtonraphson_test.lua | 26 | 1041 | -- Tests for derivative.lua
local nrsolver = require 'newtonraphson'
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 e... | mit |
hasammm/hossam | tg/test.lua | 210 | 2571 | started = 0
our_id = 0
function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
if key ~= nil then
linePrefix = "["..key.."] = "
end
if depth == nil then
depth = 0
else
depth = depth + 1
for i=1, depth do spaces = spaces .. " " end
end
if type(value) == 'tab... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Cloister_of_Gales/bcnms/trial_by_wind.lua | 5 | 1855 | -----------------------------------
-- Area: Cloister of Gales
-- BCNM: Trial by Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests"... | gpl-3.0 |
qwook/dpsht | libs/loveframes/objects/multichoice.lua | 7 | 10857 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- multichoice object
local newobject = loveframes.NewObject("multichoice", "loveframes_object_multichoice", true)
--[[----... | mit |
HeavensSword/darkstar | scripts/globals/spells/cure_iv.lua | 3 | 4842 | -----------------------------------------
-- Spell: Cure IV
-- Restores target's HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function on... | gpl-3.0 |
lu-zero/vlc | share/lua/sd/jamendo.lua | 58 | 6732 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
Rémi Duraffort <ivoire at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free So... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Rabao/npcs/Scamplix.lua | 5 | 1264 | -----------------------------------
-- Area: Rabao
-- NPC: Scamplix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Rabao/TextIDs");
----------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Helaku.lua | 5 | 2820 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Helaku
-- Involved in Missions 2-3
-- @zone 231
-- !pos 49 -2 -12
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/... | gpl-3.0 |
zlm2012/h2o | deps/brotli/premake5.lua | 14 | 1706 | -- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
platforms { "x64", "x86" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
includedirs { "c/include" }
filter "configurations:Release"
optimize "Speed"
flags { "StaticRuntim... | mit |
ZhouYzzz/cqui | BTS/TradeOverview.lua | 3 | 116779 | print("Better Trade Screen loaded")
-- ===========================================================================
-- SETTINGS
-- ===========================================================================
local alignTradeYields = true
local showNoBenefitsString = false
local showSortOrdersPermanently = false
local h... | mit |
HeavensSword/darkstar | scripts/globals/spells/dia_ii.lua | 2 | 2399 | -----------------------------------------
-- Spell: Dia II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
--------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Cavernous_Maw.lua | 4 | 1555 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Cavernous Maw
-- !pos -334 -24 52
-- Teleports Players to Abyssea - Attohwa
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
forivall-mirrors/orxonox-game-code | src/external/tolua/lua/compat.lua | 1 | 4201 | -------------------------------------------------------------------
-- Real globals
-- _ALERT
-- _ERRORMESSAGE
-- _VERSION
-- _G
-- assert
-- error
-- metatable
-- next
-- print
-- require
-- tonumber
-- tostring
-- type
-- unpack
-------------------------------------------------------------------
-- collectgarbage
--... | gpl-2.0 |
163140/minetest-mod-digilines | digilines_lightsensor/init.lua | 3 | 1505 | local GET_COMMAND = "GET"
local lsensor_nodebox =
{
type = "fixed",
fixed = {
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
{ -7/16, -7/16, -7/16, -4/16, -5/16, 7/16 }, -- bonds
{ 4/16, -7/16, -7/16, 7/16, -5/16, 7/16 },
{ -7/16, -7/16, -7/16, 7/16, -5/16, -4/16 },
{ -7/16, -7/16, 4/16,... | lgpl-3.0 |
1ec5/osm2pgsql | style.lua | 2 | 8322 | -- For documentation of Lua tag transformations, see docs/lua.md.
-- Objects with any of the following keys will be treated as polygon
polygon_keys = { 'building', 'landuse', 'amenity', 'harbour', 'historic', 'leisure',
'man_made', 'military', 'natural', 'office', 'place', 'power',
'public_transport', 'sho... | gpl-2.0 |
lhsazevedo/LIKO-12 | Peripherals/RAM.lua | 1 | 11426 | --[[
Layout (96 KB)
--------------
0x0000 Meta Data (736 Bytes)
0x02E0 SpriteMap (12 KB)
0x32E0 Flags Data (288 Bytes)
0x3400 MapData (18 KB)
0x7C00 Sound Tracks (13 KB)
0xB000 Compressed Lua Code (20 KB)
0x10000 Persistant Data (2 KB)
0x10800 GPIO (128 Bytes)
0x10880 Reserved (768 Bytes)
0x10B80 Draw State (64 Bytes)
... | mit |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Oggbi.lua | 5 | 3051 | -----------------------------------
-- Area: Port Bastok
-- NPC: Oggbi
-- Starts and Finishes: Ghosts of the Past, The First Meeting
-- @zone 236
-- !pos -159 -7 5
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
dkorolev/tarantool | test/box/access_misc.test.lua | 9 | 5391 | session = box.session
--
-- Check a double create space
--
s = box.schema.space.create('test')
s = box.schema.space.create('test')
--
-- Check a double drop space
--
s:drop()
s:drop()
--
-- Check double create user
--
box.schema.user.create('testus')
box.schema.user.create('testus')
s = box.schema.space.create('admin_... | bsd-2-clause |
dani-sj/komil | plugins/banhammer.lua | 106 | 11894 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
qwook/dpsht | libs/loveframes/objects/collapsiblecategory.lua | 6 | 8487 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- collapsiblecategory object
local newobject = loveframes.NewObject("collapsiblecategory", "loveframes_object_collapsibleca... | mit |
HeavensSword/darkstar | scripts/zones/Kazham/npcs/Kakapp.lua | 5 | 2951 | -----------------------------------
-- Area: Kazham
-- NPC: Kakapp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
function onTrade(player,npc... | gpl-3.0 |
ArmanIr/TgClinewbot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Arashbrsh/lifesking | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/serving_of_herb_quus.lua | 3 | 1032 | -----------------------------------------
-- ID: 4559
-- Item: serving_of_herb_quus
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Monarch_Linn/Zone.lua | 5 | 1057 | -----------------------------------
--
-- Zone: Monarch_Linn
--
-----------------------------------
package.loaded["scripts/zones/Monarch_Linn/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Monarch_Linn/TextIDs");
require("scripts/globals/settings");
-----------------------------------
fun... | gpl-3.0 |
ignacio/LuaNode | test/simple/test-net-connect-buffer.lua | 2 | 1061 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local net = require("luanode.net")
function test()
local tcpPort = common.PORT
local tcp
tcp = net.Server(function (self, s)
tcp:close()
console.log("tcp server connection")
local buf = "";
s:on('data', function (self, d)
buf = b... | mit |
pd2-linux/tina | feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
netdiscover_devinfo - SIP Device Information
(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
$Id$
]]--
require("luci.i1... | gpl-2.0 |
Dota-2-5v5v5v5/GameFolder | scripts/vscripts/libraries/projectiles.lua | 1 | 27326 | PROJECTILES_VERSION = "1.00"
PROJECTILES_THINK = 0.01
PROJECTILES_NOTHING = 0
PROJECTILES_DESTROY = 1
PROJECTILES_BOUNCE = 2
PROJECTILES_FOLLOW = 3
if Projectiles == nil then
print ( '[PROJECTILES] creating Projectiles' )
Projectiles = {}
Projectiles.__index = Projectiles
end
function Projectil... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/kenkonken.lua | 3 | 4657 | -----------------------------------------
-- ID: 19008
-- Item: Kenkonken
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPO... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/dish_of_spaghetti_melanzane.lua | 3 | 1128 | -----------------------------------------
-- ID: 5213
-- Item: dish_of_spaghetti_melanzane
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 25
-- Health Cap 100
-- Vitality 2
-- Store TP 6
-- Resist sleep 10
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
hfjgjfg/yagop54 | plugins/media.lua | 297 | 1590 | 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 |
lu-zero/vlc | share/lua/modules/dkjson.lua | 95 | 25741 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | gpl-2.0 |
hfjgjfg/yagop54 | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Amarefice.lua | 3 | 1552 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Amarefice
-- Type: Woodworking Synthesis Image Support
-- !pos -181.506 10.15 259.905 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/RuAun_Gardens/Zone.lua | 5 | 2617 | -----------------------------------
--
-- Zone: RuAun_Gardens (130)
--
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/zones/RuAun_Gardens/MobIDs");
require("scripts/glob... | gpl-3.0 |
Deiz/naev | dat/missions/tutorial/tutmis.lua | 11 | 5313 | -- This is the mission used in tutorial: missions and events.
include("proximity.lua")
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Mission"
message1 = [[ "Hello there guv," th... | gpl-3.0 |
Florastamine/Hotland | Herbal/BuildTool/debux.lua | 1 | 1341 | --[[
Copyright (c) 2016, Florastamine
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute,... | mit |
siktirmirza/selfbot | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
dlannan/webdruino | deps/luasys-master/test/event/test_evq.lua | 2 | 3369 | #!/usr/bin/env lua
local sys = require("sys")
local sock = require"sys.sock"
print"-- Directory Watch"
do
local evq = assert(sys.event_queue())
local filename = "test.tmp"
local fd = sys.handle()
local function on_change(evq, evid, path, ev)
fd:close()
sys.remove(filename)
assert(ev == 'r', "fi... | mit |
MarcoQin/QBilibili | src/lua/libs/luasocket/libluasocket/mbox.lua | 51 | 2654 | local _M = {}
if module then
mbox = _M
end
function _M.split_message(message_s)
local message = {}
message_s = string.gsub(message_s, "\r\n", "\n")
string.gsub(message_s, "^(.-\n)\n", function (h) message.headers = h end)
string.gsub(message_s, "^.-\n\n(.*)", function (b) message.body = b end)
... | mit |
natuan241/Algorithm-Implementations | Golden_Ratio_Algorithms/Lua/Yonaba/lib/newtonraphson.lua | 52 | 1091 | -- Newton (Raphson) root finding algorithm implementation
-- See : http://en.wikipedia.org/wiki/Newton%27s_method
-- Fuzzy equality test
local function fuzzyEqual(a, b, eps)
local eps = eps or 1e-4
return (math.abs(a - b) < eps)
end
-- Evaluates the derivative of function f at x0
-- Uses Newton's centered slope a... | mit |
qwook/dpsht | libs/loveframes/objects/numberbox.lua | 1 | 12916 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- numberbox object
local newobject = loveframes.NewObject("numberbox", "loveframes_object_numberbox", true)
--[[----------... | mit |
JustAPerson/lbi | src/lbi.lua | 1 | 18213 | local lua_opcode_types = {
"ABC", "ABx", "ABC", "ABC",
"ABC", "ABx", "ABC", "ABx",
"ABC", "ABC", "ABC", "ABC",
"ABC", "ABC", "ABC", "ABC",
"ABC", "ABC", "ABC", "ABC",
"ABC", "ABC", "AsBx", "ABC",
"ABC", "ABC", "ABC", "ABC",
"ABC", "ABC", "ABC", "AsBx",
"AsBx", "ABC", "ABC", "ABC",
"ABx", "ABC"... | mit |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Bki_Tbujhja.lua | 5 | 4105 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Bki Tbujhja
-- Involved in Quest: The Old Monument
-- Starts and Finishes Quests: Path of the Bard (just start), The Requiem (BARD AF2)
-- !pos -22 0 -60 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Yhoator_Jungle/npcs/Guddal_IM.lua | 3 | 2963 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Guddal, I.M.
-- Border Conquest Guards
-- !pos -84.113 -0.449 224.902 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/addendum_white.lua | 2 | 1498 | -----------------------------------
-- Ability: Addendum: White
-- Allows access to additional White Magic spells while using Light Arts.
-- Obtained: Scholar Level 10
-- Recast Time: Stratagem Charge
-- Duration: 2 hours
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ---------------
-- 10 |1... | gpl-3.0 |
haolly/slua_source_note | jit/jit/dis_arm.lua | 59 | 19344 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
arrayfire/arrayfire-lua | examples/machine_learning/kmeans.lua | 4 | 5132 | --[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/maelstrom.lua | 3 | 1968 | -----------------------------------------
-- Spell: Maelstrom
-- Deals water damage to enemies within range. Additional effect: STR Down
-- Spell cost: 162 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 5
-- Stat Bonus: Mind +2
-- Level: 61
-- Casting Time: 6 seconds
-- Recast Time: 39 ... | gpl-3.0 |
Dzhekson6000/capitalism | cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Waters/npcs/Gantineux.lua | 5 | 2183 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Gantineux
-- Starts Quest: Acting in Good Faith
-- @zone 238
-- !pos -83 -9 3
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
xtao/ntopng | scripts/lua/host_details_ndpi.lua | 1 | 2037 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "graph_utils"
host_ip = _GET["hostip"]
ifid = _GET["ifid"]
sendHTTPHeader('text/html; charset=iso-8859-1')
host_info = hostkey2hostinfo(host_ip)
host_vla... | gpl-3.0 |
rahmalik/trafficserver | plugins/experimental/ts_lua/business/mediaslice.lua | 12 | 4863 | -- 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"); y... | apache-2.0 |
Openarl/PathOfBuilding | Modules/ItemTools.lua | 1 | 2163 | -- Path of Building
--
-- Module: Item Tools
-- Various functions for dealing with items.
--
local t_insert = table.insert
local t_remove = table.remove
local m_min = math.min
local m_max = math.max
local m_floor = math.floor
itemLib = { }
-- Apply range value (0 to 1) to a modifier that has a range: (x to x) or (x-x... | mit |
qwook/dpsht | entities_/misterf.lua | 1 | 3845 |
BaseEntity = require("entities.core.baseentity")
Coconut = require("entities.coconut")
MisterF = class("MisterF", BaseEntity)
MisterF.spritesheet = SpriteSheet:new("sprites/misterf.png", 64, 32)
function MisterF:initialize()
BaseEntity.initialize(self)
self.type = "TYPE"
self.collisiongroup = "shared"
... | mit |
HeavensSword/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua | 5 | 4147 | -----------------------------------
-- Area: Periqia
-- NPC: Excaliace
-----------------------------------
require("scripts/zones/Periqia/IDs");
require("scripts/globals/pathfind");
local start = {-322,-16.5,380};
local startToChoice1 = {
-320.349548, -16.046591, 379.684570
-318.312317, -16.046591, 379.57986... | gpl-3.0 |
pd2-linux/tina | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/xwrt/cgi_env.lua | 18 | 2555 | require("lua-xwrt.addon.string")
cgi = require("lua-xwrt.xwrt.cgi")
--[[
function get_env()
local t = {}
local myenv = io.popen("env")
for line in myenv:lines() do
_, _, key, value = string.find(line, "([A-Z_0-9a-z]+)[%=]+(.*)")
--print(line, key, value)
t[key] = value
end
--print("--------------------------... | gpl-2.0 |
yongkangchen/slua | build/luajit-2.1.0/src/host/genlibbc.lua | 51 | 4965 | ----------------------------------------------------------------------------
-- Lua script to dump the bytecode of the library functions written in Lua.
-- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (... | mit |
HeavensSword/darkstar | scripts/globals/mobskills/numbshroom.lua | 50 | 1146 | ---------------------------------------------------
-- 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 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Vavegallet.lua | 5 | 1122 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vavegallet
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/global... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Horlais_Peak/mobs/Maat.lua | 6 | 1031 | -----------------------------------
-- Area: Horlais Peak
-- MOB: Maat
-- Genkai 5 Fight
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
function onMob... | gpl-3.0 |
mahdib9/99 | plugins/inpm.lua | 19 | 3147 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
pd2-linux/tina | feeds/luci/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 50 | 6053 | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2012 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 o... | gpl-2.0 |
xtao/ntopng | scripts/lua/host_details.lua | 1 | 84016 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "graph_utils"
require "alert_utils"
debug_hosts = false
page = _GET["page"]
protocol_id = _GET["protocol"]
host_info = url2hostinfo(_GET)
host_ip ... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWvehicles/vehicle_server.lua | 2 | 15821 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/developmen... | bsd-2-clause |
ZhouYzzz/cqui | UI/Panels/UnitPanel.lua | 1 | 158731 | -- ===========================================================================
-- Unit Panel Screen
-- ===========================================================================
include( "InstanceManager" );
include( "SupportFunctions" );
include( "Colors" );
include( "CombatInfo" );
include( "PopupDialogSupport" )... | mit |
jcai1/WowCoding | archived/raid-interrupts/table.lua | 1 | 25883 | {
d = {
actions = {
init = {
custom = "local t = GetTime()\nlocal A = aura_env\nlocal F = WeakAuras.regions[A.id].region\n\n-- Set constants here\nA.nrow = 5\nA.font = \"Fonts\\\\FRIZQT__.TTF\"\nA.headerHeightRel = 0.09\nA.headerLengthLimit = 25\nA.nameHeightRel = 0.25\nA.nameLengthLimit = 5\nA.bord... | mit |
Invertika/data | scripts/maps/ow-p0010-p0012-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/premake-core | modules/vstudio/vs2010.lua | 1 | 5599 | --
-- actions/vstudio/vs2010.lua
-- Add support for the Visual Studio 2010 project formats.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vs2010 = {}
local vs2010 = p.vstudio.vs2010
local vstudio = p.vstudio
local project = p.project
local tree = p.tree
---
--... | bsd-3-clause |
zjohn4/PD2-lua-src | core/lib/utils/dev/editor/ews_classes/selectgroupbyname.lua | 1 | 6587 | SelectGroupByName = SelectGroupByName or class( CoreEditorEwsDialog )
function SelectGroupByName:init( ... )
CoreEditorEwsDialog.init( self, nil, "Select group by name", "", Vector3( 300, 150, 0 ), Vector3( 350, 500, 0 ), "DEFAULT_DIALOG_STYLE,RESIZE_BORDER,STAY_ON_TOP", ... )
self:create_panel( "VERTICAL" )
... | gpl-2.0 |
mendsley/premake-core | modules/vstudio/tests/cs2005/test_files.lua | 1 | 9174 | --
-- tests/actions/vstudio/cs2005/test_files.lua
-- Validate generation of <Files/> block in Visual Studio 2005 .csproj
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_files")
local cs2005 = p.vstudio.cs2005
--
-- Setup
--
local w... | bsd-3-clause |
MeteoricGames/pioneer | data/ui/InfoView/CrewRoster.lua | 1 | 10964 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local Format = import("Format")
local ShipDef = import("ShipDef")
local Comms = import("Comm... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0002-n0004-o0000.lua | 1 | 1629 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | daemon/src/lua/modules/test-cjson.lua | 2 | 3109 | --Benchmark json's encode/decode
misc=require"splay.misc"
json=require"cjson"
json.decode_max_depth(1024*1000)
json.encode_max_depth(1024*1000)
function test_encode(data)
return json.encode(data)
end
-- FUNCTIONAL TESTS
-- PRIMITIVE TYPES
t1=nil --expected JSON: null
t1_enc=json.encode(t1)
print("Expected=\"nil\", g... | gpl-3.0 |
nightcj/mmo | lualib/skynet.lua | 6 | 15532 | local c = require "skynet.core"
local tostring = tostring
local tonumber = tonumber
local coroutine = coroutine
local assert = assert
local pairs = pairs
local pcall = pcall
local profile = require "profile"
local coroutine_resume = profile.resume
local coroutine_yield = profile.yield
local proto = {}
local skynet =... | mit |
hackpascal/luci | modules/luci-base/luasrc/tools/webadmin.lua | 59 | 2301 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.webadmin", package.seeall)
local util = require "luci.util"
local uci = require "luci.model.uci"
local ip = require "luci.ip"
func... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/mex_placement.lua | 1 | 4763 | --------------------------------------------------------------------------------
-- SYNCED
--------------------------------------------------------------------------------
if (not gadgetHandler:IsSyncedCode()) then
return
end
function gadget:GetInfo()
return {
name = "Mex Placement",
desc = "Cont... | gpl-2.0 |
seanstermonstr/test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/strict.lua | 12 | 1573 | --- Checks uses of undeclared global variables.
-- All global variables must be 'declared' through a regular assignment
-- (even assigning nil will do) in a main chunk before being used
-- anywhere or assigned to inside a function.
-- @module pl.strict
require 'debug'
local getinfo, error, rawset, rawget = debug.getin... | bsd-3-clause |
techiejohn/SimTools | GoFlight/GoFlightJS41.lua | 2 | 5878 | function SetMain(vel, state)
if (state == 1) then
ipc.writeLvar("LeftBatSwitch", 0)
ipc.writeLvar("RightBatSwitch", 0)
ipc.writeLvar("LeftAvionicsMaster", 0)
ipc.writeLvar("RightAvionicsMaster", 0)
ipc.writeLvar("LeftAvionicsMasterGuard", 0)
ipc.writeLvar("RightAvionicsMasterGuard", 0)
LightsOff()
elsei... | mit |
sinavafa/priv8 | 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 |
linxiulei/sysdig | userspace/sysdig/chisels/v_sports.lua | 2 | 2308 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
splay-project/splay | src/rpc_client/sample_splaynet.lua | 1 | 2431 | log=require"splay.log"
dns=require"splay.async_dns"
dns.l_o.level=5
socket = require"socket.core"
ts = require"splay.topo_socket" --MUST BE DONE BEFORE SPLAY.BASE
ts.l_o.level=3
tb = require"splay.token_bucket"
tb.l_o.level = 3
local ts_settings={}
--modify these settings if you know what you're doing..otherwise, keep... | gpl-3.0 |
JTriggerFish/protoplug | ProtoplugFiles/effects/classic-filter.lua | 2 | 1572 | --[[
name: Classic Filter
description: >
Straightforward application of RBJ's cookbook filters. Formulae by
Robert Bristow-Johnson, implementation from Worp by Ico Doornekamp.
author: osar.fr
--]]
require "include/protoplug"
local cbFilter = require "include/dsp/cookbook filters"
local filters = {}
stereoFx.ini... | mit |
gnosek/sysdig | userspace/sysdig/chisels/v_page_faults.lua | 3 | 2656 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
metakermit/vlc | share/lua/playlist/dailymotion.lua | 19 | 3036 | --[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
$Id$
Copyright © 2007-2011 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 versio... | gpl-2.0 |
strukturag/vlc | share/lua/intf/cli.lua | 35 | 31833 | --[==========================================================================[
cli.lua: CLI module for VLC
--[==========================================================================[
Copyright (C) 2007-2011 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Pierre Ynard
... | gpl-2.0 |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/AceGUI-3.0/widgets/AceGUIWidget-TabGroup.lua | 1 | 9289 | local AceGUI = LibStub("AceGUI-3.0")
-------------
-- Widgets --
-------------
--[[
Widgets must provide the following functions
Acquire() - Called when the object is aquired, should set everything to a default hidden state
Release() - Called when the object is Released, should remove any anchors and hide the Wid... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.