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
dkorolev/tarantool
test/app/console.test.lua
1
5288
#!/usr/bin/env tarantool local tap = require('tap') local console = require('console') local socket = require('socket') local yaml = require('yaml') local fiber = require('fiber') local ffi = require('ffi') -- Supress console log messages ffi.C.box_set_log_level(4) local CONSOLE_SOCKET = '/tmp/tarantool-test-console...
bsd-2-clause
ind9/kong
kong/cli/migrations.lua
8
4368
#!/usr/bin/env lua local Migrations = require "kong.tools.migrations" local constants = require "kong.constants" local cutils = require "kong.cli.utils" local utils = require "kong.tools.utils" local input = require "kong.cli.utils.input" local IO = require "kong.tools.io" local lapp = require "lapp" local args = lapp...
apache-2.0
mosy210/fast-spam
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
HeavensSword/darkstar
scripts/zones/La_Theine_Plateau/Zone.lua
4
7031
----------------------------------- -- -- Zone: La_Theine_Plateau (102) -- ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/La_Theine_Plateau/TextIDs"); require("scripts/globals/icanheararainbow"); require("sc...
gpl-3.0
Wedmer/luci
applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua
10
7885
-- Copyright (c) 2016, prpl Foundation -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without -- fee is hereby granted, provided that the above copyright notice and this permission notice appear -- in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
apache-2.0
mahdib9/99
plugins/inrealm.lua
2
25560
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Rotih_Moalghett.lua
5
1051
---------------------------------- -- Area: Fort Karugo Narugo [S] -- NPC: Rotih_Moalghett -- Type: Quest -- @zone 96 -- !pos 280 -20 85 -- ----------------------------------- package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Fort_Karugo-N...
gpl-3.0
EMCTeamIR/bot
plugins/arabic_lock.lua
56
1093
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id...
gpl-2.0
Deiz/naev
dat/missions/empire/emp_cargo00.lua
11
3772
--[[ Simple cargo mission that opens up the Empire cargo missions. Author: bobbens minor edits by Infiltrator ]]-- include "dat/scripts/numstring.lua" include "dat/scripts/jumpdist.lua" lang = naev.lang() if lang == "es" then -- not translated atm else -- default english bar_desc = "You see an Em...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/plate_of_dulcet_panettones.lua
3
1026
----------------------------------------- -- ID: 5979 -- Item: Plate of Dulcet Panettones -- Food Effect: 240 Min, All Races ----------------------------------------- -- MP % 6 Cap 105 -- Intelligence +8 -- MP Healing +4 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
boundary/boundary-plugin-mysql
modules/mysqlinfo.lua
4
3759
-------------------------------------------------------------------------- -- Module to extract Mysql Process Information for Boundary Lua Mysql Plugin -- -- Author: Yegor Dia -- Email: yegordia at gmail.com -- -------------------------------------------------------------------------- local object = require('core').Ob...
apache-2.0
qwook/dpsht
assets/maps/noo.lua
2
437468
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 200, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "collision", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
mit
shahifaqeer/my-luci-bismark-0.11
libs/web/luasrc/i18n.lua
6
3223
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id: i18n.lua 9558 2012-12-18 13:58:22Z jow $ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
apache-2.0
HeavensSword/darkstar
scripts/zones/Gusgen_Mines/TextIDs.lua
5
1809
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6389; -- Obtained...
gpl-3.0
mukunda-/Delleren
indicator.lua
1
8695
------------------------------------------------------------------------------- -- Delleren -- External CD caller. -- (C) 2015 Mukunda Johnson (mukunda@mukunda.com) -- -- See LICENSE-DELLEREN.TXT ------------------------------------------------------------------------------- local Delleren = DellerenAddon local L = De...
mit
HeavensSword/darkstar
scripts/globals/regimereward.lua
36
9093
------------------------------------------------- -- Regime Reward Database(s) ------------------------------------------------- -- ------------------------------------ -- FoV rewards -- ------------------------------------ function getFoVregimeReward(regimeid) local reward = { [1] = 270, [2] = 285...
gpl-3.0
HeavensSword/darkstar
scripts/zones/North_Gustaberg/npcs/Waterfall_Base.lua
5
1073
----------------------------------- -- Area: North Gustaberg -- NPC: Waterfall Base -- Involved In Quest: Drachenfall -- !pos -217.594 98.644 464.722 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
GPUOpen-LibrariesAndSDKs/MLAA11
dxut/Optional/premake5.lua
8
1158
dofile ("../../premake/amd_premake_util.lua") workspace "DXUTOpt" configurations { "Debug", "Release" } platforms { "x64" } filename ("DXUTOpt" .. _AMD_VS_SUFFIX) startproject "DXUTOpt" filter "platforms:x64" system "Windows" architecture "x64" project "DXUTOpt" kind "StaticLib" lang...
mit
HeavensSword/darkstar
scripts/globals/spells/maidens_virelai.lua
3
1732
----------------------------------------- -- Spell: Maiden's Virelai -- Charms pet ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/pets"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCa...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
applications/luci-upnp/luasrc/controller/upnp.lua
66
2082
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
rahmalik/trafficserver
plugins/experimental/ts_lua/example/test_transform.lua
17
1440
-- 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
HeavensSword/darkstar
scripts/globals/keyitems.lua
2
144259
--------------------------------------------- -- -- KEYITEMS IDS -- --------------------------------------------- ZERUHN_REPORT = 1; PALBOROUGH_MINES_LOGS = 2; BLUE_ACIDITY_TESTER = 3; RED_ACIDITY_TESTER = 4; LETTER_TO_THE_CONSUL...
gpl-3.0
HeavensSword/darkstar
scripts/globals/bluemagic.lua
3
14918
require("scripts/globals/status") require("scripts/globals/magic") BLUE_SKILL = 43; -- The type of spell. SPELLTYPE_PHYSICAL = 0; SPELLTYPE_MAGICAL = 1; SPELLTYPE_RANGED = 2; SPELLTYPE_BREATH = 3; SPELLTYPE_DRAIN = 4; SPELLTYPE_SPECIAL = 5; -- The TP modifier TPMOD_NONE = 0; TPMOD_CRITICAL = 1; TPMOD_DAMAGE = 2; TPM...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/stick_of_pepperoni.lua
3
1237
----------------------------------------- -- ID: 5660 -- Item: stick_of_pepperoni -- Food Effect: 30Min, All Races ----------------------------------------- -- HP % 3 (assuming 3% from testing, no known cap) -- Strength 3 -- Intelligence -1 -- Attack % 60 (assuming 60%, cap 30) -----------------------------------------...
gpl-3.0
Openarl/PathOfBuilding
Data/3_0/Bases/bow.lua
1
8819
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Crude Bow"] = { type = "Bow", socketLimit = 6, tags = { default = true, weapon = true, twohand = true, bow = true, ranged = true, two_hand_weapon = true, }, weapon = { PhysicalMin = 5, Physic...
mit
HeavensSword/darkstar
scripts/globals/spells/bluemagic/hydro_shot.lua
36
1765
----------------------------------------- -- Spell: Hydro Shot -- Additional effect: Enmity Down. Chance of effect varies with TP -- Spell cost: 55 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 3 -- Stat Bonus: MND+2 -- Level: 63 -- Casting Time: 0.5 seconds -- Recast Time: 26 secon...
gpl-3.0
haolly/slua_source_note
build/luajit-2.1.0-beta3/dynasm/dasm_mips.lua
27
30354
------------------------------------------------------------------------------ -- DynASM MIPS32/MIPS64 module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local mips64 = mips64 ...
mit
icrazyboy/-
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
ZhouYzzz/cqui
UI/Screens/TechTree.lua
1
72632
-- =========================================================================== -- TechTree -- Tabs set to 4 spaces retaining tab. -- -- The tech "Index" is the internal ID the gamecore used to track the tech. -- This value is essentially the database (db) row id minus 1 since it's 0 based. -- (e.g., TECH_MINING h...
mit
LuaDist2/luasec
samples/sni/server.lua
11
1063
local socket = require("socket") local ssl = require("ssl") local params01 = { mode = "server", protocol = "any", key = "../certs/serverAkey.pem", certificate = "../certs/serverA.pem", cafile = "../certs/rootA.pem", verify = "none", options = "all", ciphers = "ALL:!ADH:@STRENGTH", } local params02 ...
mit
Openarl/PathOfBuilding
Classes/GemSelectControl.lua
1
21824
-- Path of Building -- -- Class: Gem Select -- Gem selection combobox -- local t_insert = table.insert local t_sort = table.sort local m_min = math.min local m_max = math.max local m_floor = math.floor local GemSelectClass = newClass("GemSelectControl", "EditControl", function(self, anchor, x, y, width, height, skill...
mit
natuan241/Algorithm-Implementations
Move_To_Front_Transform/Lua/Yonaba/mtf.lua
26
1532
-- Move-To-Front Transform implementation -- See : http://en.wikipedia.org/wiki/Move-to-front_transform -- Finds and returns the index of a value in a table local function table_find(t, v) for k,_v in ipairs(t) do if _v == v then return k end end end -- Moves the value at index to a new index local function t...
mit
HeavensSword/darkstar
scripts/zones/Dynamis-Qufim/mobs/Antaeus.lua
5
1824
----------------------------------- -- Area: Dynamis Qufim -- MOB: Antaeus ----------------------------------- package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Dynamis-Qufim/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/d...
gpl-3.0
CestusMagnus/go-qt5
make/make.lua
2
3363
--[[ // Copyright 2012 visualfc <visualfc@gmail.com>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. --]] require "ui.app" require "ui.timer" require "ui.font" require "ui.icon" require "ui.pixmap" require "ui.image" require "ui.widget" re...
bsd-2-clause
matthiasdiener/spack
share/spack/templates/modules/modulefile.lua
4
2653
-- -*- lua -*- -- Module file created by spack (https://github.com/spack/spack) on {{ timestamp }} -- -- {{ spec.short_spec }} -- {% block header %} {% if short_description %} whatis([[Name : {{ spec.name }}]]) whatis([[Version : {{ spec.version }}]]) whatis([[Short description : {{ short_description }}]]) {% endif %}...
lgpl-2.1
christakahashi/nodemcu-firmware
lua_examples/mqtt/mqtt_file.lua
68
1667
-- test transfer files over mqtt. m_dis={} function dispatch(m,t,pl) if pl~=nil and m_dis[t] then m_dis[t](m,pl) end end function pubfile(m,filename) file.close() file.open(filename) repeat local pl=file.read(1024) if pl then m:publish("/topic2",pl,0,0) end until not pl file.close() end -- payload...
mit
HeavensSword/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Shield.lua
7
1144
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Animated Shield ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() == 3) then...
gpl-3.0
HeavensSword/darkstar
scripts/globals/spells/voidstorm.lua
32
1182
-------------------------------------- -- Spell: Voidstorm -- Changes the weather around target party member to "gloomy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- ...
gpl-3.0
hfjgjfg/yagop54
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
ryangmor/lolsh
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Temenos/bcnms/central_temenos_2nd_floor.lua
35
1502
----------------------------------- -- Area: Temenos -- Name: ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) if (GetMobAction(16929039) > 0) then DespawnMob(16929039);end if (GetMobAction(16929040) > 0) then DespawnMob(16929040);en...
gpl-3.0
natuan241/Algorithm-Implementations
A_Star_Search/Lua/Yonaba/handlers/point_graph_handler.lua
182
2492
-- A point graph handler -- This handler is devised for waypoints graphs. -- Waypoints are locations represented via labelled nodes -- and are connected with edges having a positive weight. -- It assumes edges are symmetric, that is if an edge exists -- between a and b, weight(a -> b) == weight(b -> a) local PATH = ...
mit
HeavensSword/darkstar
scripts/globals/effects/auspice.lua
33
1882
-------------------------------------- -- -- EFFECT_AUSPICE -- -- Power: Used for Enspell Effect -- SubPower: Tracks Subtle Blow Bonus -- Tier: Used for Enspell Calculation -- -------------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/bowl_of_pea_soup.lua
3
1121
----------------------------------------- -- ID: 4416 -- Item: bowl_of_pea_soup -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Vitality -1 -- Agility 1 -- Ranged Accuracy 5 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); --------...
gpl-3.0
HeavensSword/darkstar
scripts/globals/abilities/angon.lua
5
1184
----------------------------------- -- Ability: Angon -- Expends an Angon to lower an enemy's defense. -- Obtained: Dragoon Level 75 -- Recast Time: 0:03:00 -- Duration: 0:00:30 (+0:00:15 for each merit, cap is 0:01:30) -- Effect: Physical defense of target approximately -20% (51/256). -- Range: 10.0 yalms -- Notes: On...
gpl-3.0
rpotor/LeeroyHillCatsPowerRevived
LeeroyHillCatsPower.lua
1
50049
-- The Amazing Sound Effect Addon -- Inspired by the LeeroyHillCatsPower addon originally written by Barogio <Victory or Valhalla> of Thunderhorn with help from Moomin! -- Benny sample from Benny Hill mod by Catalyst + Springbeard of Thunderhorn -- Addon updated and expanded by Larenon <Order of Watchers> of Ragnaros-E...
mit
HeavensSword/darkstar
scripts/zones/Windurst_Woods/npcs/Terude-Harude.lua
3
1566
----------------------------------- -- Area: Windurst Woods -- NPC: Terude-Harude -- Type: Clothcraft Adv. Image Support -- !pos -32.350 -2.679 -116.450 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sta...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Yhoator_Jungle/TextIDs.lua
5
1559
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6...
gpl-3.0
captain-mayhem/captainsengine
heroquest/HQEditor/basic/legacyOrcWarlord.lua
1
4399
function intro() local text = "Ulag's foul offspring, Grak, has sworn revenge on those who ".. "killed his father. Altough is has taken him several month, he has ".. "finally tracked you down and captured you in an ambush. Now you are all ".. "held prisoner in his dungeons while he decides when and how yo...
lgpl-2.1
HeavensSword/darkstar
scripts/globals/spells/flood.lua
4
1042
----------------------------------------- -- Spell: Flood -- Deals water damage to an enemy and lowers its resistance against lightning. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
botsazn/Management-Group
libs/mimetype.lua
1
2966
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua
5
1818
----------------------------------- -- Area: Sauromugue Champaign [S] -- NPC: Cavernous Maw -- !pos 369 8 -227 98 -- Teleports Players to Sauromugue_Champaign ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign_[S]/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
jcadduono/kali-nethunter
nethunter-installer/update/system/bin/scripts/ndef_dump.lua
15
7083
-- Ability to read what card is there local getopt = require('getopt') local cmds = require('commands') local taglib = require('taglib') local desc = [[This script will automatically recognize and dump full content of a NFC NDEF Initialized tag; non-initialized tags will be ignored. It also write the dump to an eml...
gpl-2.0
Dota-2-5v5v5v5/GameFolder
scripts/vscripts/itemfunctions.lua
1
2450
if itemFunctions == nil then print ( '[ItemFunctions] creating itemFunctions' ) itemFunctions = {} -- Creates an array to let us beable to index itemFunctions when creating new functions itemFunctions.__index = itemFunctions end function itemFunctions:new() -- Creates the new class print ( '[ItemFunctions]...
gpl-3.0
LuaDevelopmentTools/luadocumentor
template/usage.lua
4
1118
-------------------------------------------------------------------------------- -- Copyright (c) 2012 Sierra Wireless. -- All rights reserved. This program and the accompanying materials -- are made available under the terms of the Eclipse Public License v1.0 -- which accompanies this distribution, and is availabl...
epl-1.0
HeavensSword/darkstar
scripts/zones/Ship_bound_for_Selbina/Zone.lua
5
1125
----------------------------------- -- -- Zone: Ship_bound_for_Selbina (220) -- ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ship_bound_for_Selbina/TextIDs"); require("scripts/zones/Ship_bound_for_S...
gpl-3.0
HeavensSword/darkstar
scripts/globals/abilities/pets/arcuballista.lua
2
1168
--------------------------------------------------- -- Arcuballista --------------------------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/globals/automatonweaponskills"); --------------------------------------------------- function onMobSkillCheck...
gpl-3.0
dkorolev/tarantool
test/box/ipc.test.lua
7
3405
fiber = require('fiber') ch = fiber.channel() ch:size() ch:count() ch:is_full() ch:is_empty() ch:get(.1) ch:put() ch:count() ch:put('test') ch:get() ch:get('wrong timeout') ch:get(-10) ch:put(234) ch:put(345, .5) ch:count() ch:is_full() ch:is_empty() buffer = {} --# setopt delimiter ';' tfbr = fiber.create( functi...
bsd-2-clause
olhodedeus/Redlol
plugins/warn.lua
2
6646
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function doKeyboard_warn(user_id) local keyboard = {} keyboard.inline_keyboard = {{{text = _("Remove warn"), callback_data = 'removewarn:'..user_id}}} return keyboard end local function f...
gpl-2.0
klokane/loxy
spec/spec_object.lua
1
5482
require 'busted' require 'loxy' --tostring = require 'ml'.tstring describe("object basic concepts", function() it('should handle inheritance concept', function() local shape = object({ -- create obj w/o inheritance name = 'shape', draw = function(self) return 'draw '..self.name end }) local...
mit
cogwerkz/gUI4
gUI4/libs/GP_oUF/elements/qicon.lua
7
1865
--[[ Element: Quest Icon Handles updating and toggles visibility based upon the units connection to a quest. Widget QuestIcon - Any UI widget. Notes The default quest icon will be used if the UI widget is a texture and doesn't have a texture or color defined. Examples -- Position and size local Que...
mit
dlannan/webdruino
release/turbo/epoll_ffi.lua
2
3443
--- Turbo.lua Linux Epoll module -- -- Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.com > -- -- "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, includin...
mit
HeavensSword/darkstar
scripts/zones/Northern_San_dOria/npcs/Yevgeny_IM.lua
5
2536
----------------------------------- -- Area: Northern Sandoria -- NPC: Yevgeny, I.M. -- !pos 45 -1 0 231 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Sup...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Garlaige_Citadel/npcs/_5ki.lua
5
1069
----------------------------------- -- Area: Garlaige Citadel -- NPC: _5ki (Banishing Gate #3) -- !pos -100 -3.008 359 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Garlaige_Citadel/TextIDs"); ---------...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
modules/niu/luasrc/model/cbi/niu/wireless/apdevice.lua
51
1625
--[[ LuCI - Lua Configuration Interface Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loca...
apache-2.0
HeavensSword/darkstar
scripts/globals/abilities/drain_samba_ii.lua
2
1319
----------------------------------- -- Ability: Drain Samba II -- Inflicts the next target you strike with Drain Daze, allowing all those engaged in battle with it to drain its HP. -- Obtained: Dancer Level 35 -- TP Required: 25% -- Recast Time: 1:00 -- Duration: 1:30 ----------------------------------- require("script...
gpl-3.0
ZhouYzzz/cqui
URS/UnitPromotionPopup.lua
7
20625
-- =========================================================================== -- Popups when a Tech or Civic are completed -- =========================================================================== include("Civ6Common"); include("InstanceManager"); -- =============================================================...
mit
HeavensSword/darkstar
scripts/globals/weaponskills/leaden_salute.lua
5
1451
----------------------------------- -- Leaden Salute -- Sword weapon skill -- Skill Level: N/A -- Delivers a Twofold attack. Damage varies with TP. Death Penalty: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Corsair) quest. -- Aligned with the Shadow Gorget, Soil Gorget & Li...
gpl-3.0
Deiz/naev
dat/events/tutorial/tutorial-basic.lua
11
7139
-- This is the first tutorial: basic operation. 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 = "Tutorial: Basic Operation" message1 = [[Welcome to the basic ...
gpl-3.0
stsydow/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/advanced_hotplugscript.lua
111
2018
-- ------ hotplug script configuration ------ -- fs = require "nixio.fs" sys = require "luci.sys" ut = require "luci.util" script = "/etc/hotplug.d/iface/16-mwancustom" scriptBackup = "/etc/hotplug.d/iface/16-mwancustombak" if luci.http.formvalue("cbid.luci.1._restorebak") then -- restore button has been clicked lu...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Castle_Oztroja/npcs/_47h.lua
5
1560
----------------------------------- -- Area: Castle Oztroja -- NPC: _47h (Handle) -- Notes: Opens door _471 -- !pos -182 -15 -19 151 ----------------------------------- require("scripts/zones/Castle_Oztroja/MobIDs"); require("scripts/globals/settings"); require("scripts/globals/status"); function onTrigger(player,n...
gpl-3.0
gwx/tome-grayswandir-illusion
data/libs/callback-position-seen-0.lua
1
1175
-- Gray's Illusions, for Tales of Maj'Eyal. -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Southern_San_dOria/npcs/Well.lua
5
1074
----------------------------------- -- Area: Southern San d'Oria -- NPC: Well -- Involved in Quest: Grave Concerns -- @zone 230 -- !pos -129 -6 92 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/setting...
gpl-3.0
hasammm/hossam
libs/url.lua
567
9183
--[[ Copyright 2004-2007 Diego Nehab. 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,...
gpl-2.0
xtao/ntopng
scripts/lua/host_sflow_distro.lua
2
5576
-- -- (C) 2013-14 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "flow_utils" local json = require ("dkjson") sendHTTPHeader('text/html; charset=iso-8859-1') local debug = false ----------------------------------- fu...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Western_Adoulin/npcs/Shipilolo.lua
5
3000
----------------------------------- -- Area: Western Adoulin -- NPC: Shipilolo -- Type: Standard NPC and Quest NPC -- Involved with Quests: 'A Certain Substitute Patrolman' -- 'Fertile Ground' -- 'The Old Man and the Harpoon' -- 'Wayward Waypoints' ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/mobskills/megaflare.lua
37
1832
--------------------------------------------- -- Megaflare -- Family: Bahamut -- Description: Deals heavy Fire damage to enemies within a fan-shaped area. -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: -- Notes: Used by Bahamut every 10% of its HP (except at 10%), but can use at will when u...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Southern_San_dOria/npcs/Glenne.lua
5
3586
------------------------------------- -- Area: Southern San d'Oria -- NPC: Glenne -- Starts and Finishes Quest: A Sentry's Peril -- @zone 230 -- !pos -122 -2 15 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
pd2-linux/tina
feeds/luci/libs/nixio/docsrc/nixio.fs.lua
156
7907
--- Low-level and high-level filesystem manipulation library. module "nixio.fs" --- Check user's permission on a file. -- @class function -- @name nixio.fs.access -- @param path Path -- @param mode1 First Mode to check ["f", "r", "w", "x"] -- @param ... More Modes to check [-"-] -- @return true --- Strip the dire...
gpl-2.0
rcherrueau/kolla-g5k
results/files/heka/lua_decoders/os_rabbitmq_log.lua
3
2427
-- Copyright 2015-2016 Mirantis, Inc. -- -- 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 -- -- Unless required by applicable law or agree...
gpl-3.0
HeavensSword/darkstar
scripts/globals/weaponskills/mandalic_stab.lua
5
1630
----------------------------------- -- Mandalic Stab -- Dagger weapon skill -- Skill Level: N/A -- Damage Varies with TP. Vajra: Aftermath effect varies with TP. -- Multiplies attack by 1.66 -- Available only after completing the Unlocking a Myth (Thief) quest. -- Will stack with Sneak Attack. -- Aligned with the Shado...
gpl-3.0
arrayfire/arrayfire-lua
examples/machine_learning/logistic_regression.lua
4
5776
--[[ /******************************************************* * 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
shahifaqeer/my-luci-bismark-0.11
applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua
45
2111
--[[ LuCI - Lua Configuration Interface Copyright 2012 Christian Gagneraud <chris@techworks.ie> 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$ ]]...
apache-2.0
gwx/tome-grayswandir-illusion
overload/data/chats/grayswandir-illusory-woods-3.lua
1
1207
-- Gray's Illusions, for Tales of Maj'Eyal. -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is...
gpl-3.0
Wedmer/luci
applications/luci-app-ahcp/luasrc/model/cbi/ahcp.lua
78
3645
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("ahcpd", translate("AHCP Server"), translate("AHCP is an autoconfiguration protocol " .. "for IPv6 and dual-stack IPv6/IPv4 networks designed to be used in place of router " .. "discovery or DHCP on ne...
apache-2.0
HeavensSword/darkstar
scripts/globals/weaponskills/catastrophe.lua
7
1819
----------------------------------- -- Catastrophe -- Scythe weapon skill -- Skill Level: N/A -- Drain target's HP. Bec de Faucon/Apocalypse: Additional effect: Haste -- This weapon skill is available with the stage 5 relic Scythe Apocalypse or within Dynamis with the stage 4 Bec de Faucon. -- Also available without Af...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Sacrificial_Chamber/npcs/_4j3.lua
8
1405
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- !pos 19 -1 -4 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missions"...
gpl-3.0
jesboat/fbthrift
thrift/lib/lua/TBufferedTransport.lua
72
2288
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
HeavensSword/darkstar
scripts/zones/Riverne-Site_A01/mobs/Carmine_Dobsonfly.lua
5
1270
----------------------------------- -- Area: Riverne Site A01 -- MOB: Carmine Dobsonfly ----------------------------------- require("scripts/zones/Riverne-Site_A01/MobIDs"); require("scripts/globals/status"); ----------------------------------- function onMobSpawn(mob) mob:setMobMod(MOBMOD_SUPERLINK, CARMINE_DOBS...
gpl-3.0
kimonline/PGE
lua/samples/net/postform/script.lua
1
2658
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.net") then error("Error loading module.") end if not pge.require("pge.utils") then error("Error loading module.") end if not pge.require("pge.contr...
gpl-3.0
botsazn/Management-Group
plugins/banhammer-fa.lua
1
37097
local function pre_process(msg) chat = msg.chat_id_ user = msg.sender_user_id_ local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.type_.ID == "UserTy...
gpl-3.0
269724033/lor
lib/lor/lib/router/router.lua
1
8716
local tinsert = table.insert local pairs = pairs local ipairs = ipairs local type = type local setmetatable = setmetatable local getmetatable = getmetatable local utils = require("lor.lib.utils.utils") local is_table_empty = utils.is_table_empty local random = utils.random local mixin = utils.mixin local supported_ht...
mit
HeavensSword/darkstar
scripts/globals/weaponskills/trueflight.lua
5
1623
----------------------------------- -- Trueflight -- Skill Level: N/A -- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Ranger) quest. -- Does not work with Flashy Shot. -- Does not work with Steal...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/Treasure_Chest.lua
5
2614
----------------------------------- -- Area: Horutoto Ruins -- NPC: Treasure Chest -- @zone 194 ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require("...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/bowl_of_turtle_soup.lua
3
1288
----------------------------------------- -- ID: 4418 -- Item: Turtle Soup -- Food Effect: 3hours, All Races ----------------------------------------- -- HP + 10% (200 Cap) -- Dexterity +4 -- Vitality +6 -- Mind -3 -- HP Recovered While Healing +5 ----------------------------------------- require("scripts/globals/statu...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Den_of_Rancor/npcs/_4g3.lua
5
2208
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (SW) -- !pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Den_of_Rancor/TextIDs"); require("scripts/globals/settings");...
gpl-3.0
dkorolev/tarantool
test/box/bsdsocket.test.lua
1
12534
json = require 'json' yaml = require 'yaml' pickle = require 'pickle' socket = require 'socket' fiber = require 'fiber' msgpack = require 'msgpack' log = require 'log' errno = require 'errno' fio = require 'fio' type(socket) socket('PF_INET', 'SOCK_STREAM', 'tcp121222'); s = socket('PF_INET', 'SOCK_STREAM', 'tcp') s:...
bsd-2-clause
qwook/dpsht
libs/loveframes/objects/base.lua
1
27584
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- base object local newobject = loveframes.NewObject("base", "loveframes_object_base") --[[-------------------------------...
mit
typcn/mpv
player/lua/assdraw.lua
33
2378
local ass_mt = {} ass_mt.__index = ass_mt local function ass_new() return setmetatable({ scale = 4, text = "" }, ass_mt) end function ass_mt.new_event(ass) -- osd_libass.c adds an event per line if #ass.text > 0 then ass.text = ass.text .. "\n" end end function ass_mt.draw_start(ass) ass....
gpl-2.0
shahifaqeer/my-luci-bismark-0.11
modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
12
3313
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: leds.lua ...
apache-2.0