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 |
|---|---|---|---|---|---|
lulersoft/ME_NLua | Assets/Data/lua/json/dkjson.lua | 154 | 22416 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
Version 2.5
For the documentation see the corresponding readme.txt or visit
<http://dkolf.de/src/dkjson-lua.fsl/>.
You can contact the ... | mit |
mohammadclashclash/uzzbot | plugins/help.lua | 337 | 5009 | do
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 |
ryangmor/lolsh | plugins/help.lua | 337 | 5009 | do
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 |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/npcs/Rugiette.lua | 5 | 2072 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Rugiette
-- Involved in Quests: Riding on the Clouds, Lure of the Wildcat (San d'Oria)
-- !pos 71 -9 -73 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
kieselsteini/legato | examples/ex_transform.lua | 1 | 4831 | local al = legato.al
--[[ main ]]--
local filename = '/data/mysha.pcx'
local display = al.create_display(640, 480)
local subbitmap = al.create_sub_bitmap(al.get_backbuffer(display), 50, 50, 640 - 50, 480 - 50)
local overlay = al.create_sub_bitmap(al.get_backbuffer(display), 100, 100, 300, 50)
al.set_window_title(dis... | unlicense |
wsmith323/hammerspoon | extensions/doc/init.lua | 8 | 14263 |
--- === hs.doc ===
---
--- Create documentation objects for interactive help within Hammerspoon
---
--- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created.
---
--- From the Ham... | mit |
Deiz/naev | dat/missions/neutral/drunkard.lua | 6 | 9006 | --[[
Drunkard
Author: geekt
A drunkard at the bar has gambled his ship into hock, and needs you to do a mission for him.
]]--
include "dat/scripts/numstring.lua"
-- Bar Description
bar_desc = "You see a drunkard at the bar mumbling about how he was so close to getting his break."
-- Mission Details
misn_tit... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/PsoXja/npcs/_09c.lua | 5 | 1047 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09c (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 290.000 -1.925 -18.400 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/globals");... | gpl-3.0 |
forivall-mirrors/orxonox-game-code | src/external/tolua/lua/container.lua | 1 | 20365 | -- tolua: container abstract 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,
-- e... | gpl-2.0 |
yongkangchen/slua | build/luajit-2.0.4/src/jit/dis_arm.lua | 88 | 19364 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
LOVE-Party/Love-LD18 | states/intro.lua | 1 | 1698 | Gamestate.intro = Gamestate.new()
local state = Gamestate.intro
state.dt = 0
state.played = {}
state.bombCue = 3
state.explodeCue = 5
state.yayCue = 6.6
state.menuCue = 10
function state:update(dt)
soundmanager:update(dt)
state.dt = state.dt + dt
if state.dt >= 1 and not state.played.chirp then
soundmanage... | mit |
qwook/dpsht | entities/baseentity.lua | 1 | 1026 |
local Entity = class("BaseEntity")
Entity.x = 0
Entity.y = 0
Entity.w = 20
Entity.h = 20
Entity.ang = 0
-- the initialize function needs to follow a strict rule
-- of only initializing instance variables
-- calling functions inside here will possibily break it
function Entity:initialize(...)
end
function Entity:spaw... | mit |
forivall-mirrors/orxonox-game-code | data/gui/scripts/SingleplayerConfigMenu.lua | 1 | 8148 | -- SingleplayerMenu.lua
local P = createMenuSheet("SingleplayerConfigMenu")
P.commandList = {}
P.nameList = {}
P.linesList = {}
P.sampleWindow = nil
P.lineHeight = 0
P.commandWidth = 0
P.editboxWidth = 0
P.resetWidth = 0
P.spaceWidth = 0
function P.onLoad()
P.sampleWindow = winMgr:createWindow("MenuWidgets/Sta... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Bastok_Markets/npcs/Zaira.lua | 5 | 1297 | -----------------------------------
-- Area: Batok Markets
-- NPC: Zaira
-- Standard Merchant NPC
-- !pos -217.316 -2.824 49.235 235
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
----------------------... | gpl-3.0 |
vmercierfr/kong | spec/plugins/keyauth/daos_spec.lua | 13 | 2376 | local spec_helper = require "spec.spec_helpers"
local uuid = require "uuid"
local env = spec_helper.get_env()
local dao_factory = env.dao_factory
local faker = env.faker
describe("DAO keyauth Credentials", function()
setup(function()
spec_helper.prepare_db()
end)
it("should not insert in DB if consumer do... | mit |
HeavensSword/darkstar | scripts/zones/Buburimu_Peninsula/TextIDs.lua | 5 | 2131 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6416; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6422; -- Obtained: <item>.
GIL_OBTAINED = 6423; -- Obtained <number> gil.
KEYITEM_... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills.lua | 2 | 42746 | -- Contains all common weaponskill calculations including but not limited to:
-- fSTR
-- Alpha
-- Ratio -> cRatio
-- min/max cRatio
-- applications of fTP
-- applications of critical hits ('Critical hit rate varies with TP.')
-- applications of accuracy mods ('Accuracy varies with TP.')
-- applications of damage mods (... | gpl-3.0 |
HeavensSword/darkstar | scripts/commands/hastitle.lua | 7 | 1375 | ---------------------------------------------------------------------------------------------------
-- func: hastitle
-- desc: Check if player already has a title.
---------------------------------------------------------------------------------------------------
require("scripts/globals/titles");
cmdprops =
{
pe... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Tucker.lua | 5 | 3227 | ----------------------------------
-- Area: Crawlers' Nest [S]
-- NPC: Tucker
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Crawlers_Nest_[S]/TextIDs");
require("scripts/globals/quests");
-----------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/salmon_rice_ball.lua | 3 | 1149 | -----------------------------------------
-- ID: 4590
-- Item: Salmon Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +10
-- Dex +2
-- Vit +2
-- Mnd -1
-- hHP +1
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +40
-- Def +40
--------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua | 5 | 1508 | -----------------------------------
-- Area: Dynamis Beaucedine
-- MOB: Adamantking Effigy
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/globals/status");
requir... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/crepe_caprice.lua | 3 | 1312 | -----------------------------------------
-- ID: 5776
-- Item: Crepe Caprice
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +5% (cap20)
-- MP Healing 3
-- Magic Accuracy +21% (cap 40)
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Zalsuhm.lua | 5 | 4209 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zalsuhm
-- Standard Info NPC
-----------------------------------
require("scripts/globals/equipment");
require("scripts/globals/quests");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Lageegee.lua | 4 | 3251 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Lageegee
-- Type: Assault Mission Giver
-- !pos 120.808 0.161 -30.435
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
xtao/ntopng | third-party/LuaJIT-2.0.3/src/jit/dis_arm.lua | 74 | 19364 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/magic_maps.lua | 35 | 9801 | ---------------------------------------------
--
-- Function that all map NPCS use.
-- SE updated the map NPCs to sell maps from the normal areas, RoZ, and CoP areas (Update was in Nov 5, 2013)
---------------------------------------------
require("scripts/globals/keyitems");
local Maps = {MAP_OF_THE_SAN_DORIA_... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/tail_slap.lua | 33 | 1096 | ---------------------------------------------
-- Tail Slap
--
-- Description: Delivers an area attack. Additional effect: "Stun." Damage varies with TP.
-- Type: Physical (Blunt)
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/gl... | gpl-3.0 |
Wedmer/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua | 12 | 2836 | -- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local ss = require "luci.model.shadowsocks-libev"
local ut = require "luci.util"
local m, s, o
m = Map("shadowsocks-libev",
translate("Local Instances"),
translate("Ins... | apache-2.0 |
Ablu/manaserv | example/scripts/monster/basic_ai.lua | 3 | 5360 | --[[
Basic stroll ai
--]]
local STROLL_TIMEOUT = 20
local STROLL_TIMEOUT_RANDOMNESS = 10
local TARGET_SEARCH_DELAY = 10
local mob_stati = {}
local angerlist = {}
local function create_mob_status()
return {
angerlist = {},
}
end
function Entity:change_anger(target, amount)
local mob_status = ... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/teleports.lua | 5 | 40678 | -----------------------------------
-- A collection of frequently needed teleport shortcuts.
-----------------------------------
-----------------------------------
-- TELEPORT NAMES
-----------------------------------
TELEPORT_DEM = 1;
TELEPORT_HOLLA = 2;
TELEPORT_YHOAT = 3;
TELEPORT_VAHZL ... | gpl-3.0 |
pdxmeshnet/openwrt-packages | utils/yunbridge/files/usr/lib/lua/luci/controller/arduino/index.lua | 103 | 12089 | --[[
This file is part of YunWebUI.
YunWebUI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that i... | gpl-2.0 |
shahifaqeer/my-luci-bismark-0.11 | libs/sys/luasrc/sys/iptparser.lua | 11 | 10709 | --[[
Iptables parser and query library
(c) 2008-2009 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008-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
... | apache-2.0 |
CodeStepper/trinity | trinity/Signal.lua | 1 | 18670 | --
-- Trinity Widget Library >>> http://trinity.aculo.pl
-- _____ _ _ _
-- |_ _|___|_|___|_| |_ _ _
-- | | | _| | | | _| | |
-- |_| |_| |_|_|_|_|_| |_ |
-- |___|
--
-- This file is part of Trinity Widget Library for AwesomeWM
-- Copyright (c) by sobiemir <sobiem... | gpl-2.0 |
kimonline/PGE | lua/samples/file/script.lua | 1 | 8313 | 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.file") then
error("Error loading module.")
end
if not pge.require("pge.u... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Bastok/TextIDs.lua | 5 | 6038 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the item (item>. Try trading again after sorting your inventory.
ITEM_OBTAINED ... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Upper_Jeuno/npcs/Luto_Mewrilah.lua | 5 | 1517 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Luto Mewrilah
-- @zone 244
-- !pos -53 0 45
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require... | gpl-3.0 |
nsuke/thrift | lib/lua/TProtocol.lua | 15 | 5155 | --
-- 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 |
arrayfire/arrayfire-lua | examples/image_processing/adaptive_thresholding.lua | 4 | 3548 | --[[
/*******************************************************
* Copyright (c) 2015, 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 |
serbyy/MozDef | examples/heka-lua-bro/bro_smtp.lua | 10 | 4056 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Jeff Bryner jbryn... | mpl-2.0 |
astrellon/Rouge | data/maps/village1_map.lua | 1 | 6678 | -- Saved map file: The first village.
do local map = am.map.new("village1_map", 30, 20)
:full_name("The first village.")
am.engine.clear_using_tile_set()
am.engine.using_tile_set("nature:nature")
map:tiles({
"grass:6", "grass:0", "grass:1", "grass:3", "grass:6", "grass:8", "grass:4", "grass:5", "grass:3", "gras... | mit |
frango9000/PokeBotBad | util/settings.lua | 1 | 2310 | local Settings = {}
local Textbox = require "action.textbox"
local Strategies = require "ai.strategies"
local Data = require "data.data"
local Bridge = require "util.bridge"
local Input = require "util.input"
local Memory = require "util.memory"
local Menu = require "util.menu"
local START_WAIT = 99
local settings... | mit |
HeavensSword/darkstar | scripts/zones/Eastern_Altepa_Desert/mobs/Cactrot_Rapido.lua | 4 | 13053 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NM: Cactrot Rapido
-----------------------------------
require("scripts/globals/pathfind");
require("scripts/globals/titles");
local path =
{
-45.214237, 0.059482, -204.244873,
-46.114422, 0.104212, -203.765884,
-47.013275, 0.149004, ... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/La_Theine_Plateau/mobs/Battering_Ram.lua | 4 | 1365 | -----------------------------------
-- Area: La Theine Plateau
-- MOB: Battering Ram
-----------------------------------
require("scripts/zones/La_Theine_Plateau/MobIDs");
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local mobID = mob:getID();
... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWchat/chat_c.lua | 3 | 5108 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
HeavensSword/darkstar | scripts/zones/Promyvion-Mea/MobIDs.lua | 7 | 1748 | -- [receptacle] = {group, numStrays, portal}
MEA_MEMORY_RECEPTACLES = {
[16859151] = {1, 3, 16859451},
[16859198] = {2, 5, 16859454},
[16859205] = {2, 5, 16859458},
[16859212] = {2, 5, 16859459},
[16859219] = {2, 5, 16859460},
[16859271] = {3, 7, 16859452},
[16859280] = {3, 7, 16859453},
... | gpl-3.0 |
Wedmer/luci | libs/luci-lib-nixio/docsrc/nixio.UnifiedIO.lua | 157 | 5891 | --- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets.
-- These functions are added to the object function tables by doing <strong>
-- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and
-- are based on the shared low-level read() and write() functions.
-- @cstyle instance
mo... | apache-2.0 |
pd2-linux/tina | feeds/luci/libs/nixio/docsrc/nixio.UnifiedIO.lua | 157 | 5891 | --- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets.
-- These functions are added to the object function tables by doing <strong>
-- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and
-- are based on the shared low-level read() and write() functions.
-- @cstyle instance
mo... | gpl-2.0 |
HeavensSword/darkstar | scripts/commands/addmission.lua | 10 | 1563 | ---------------------------------------------------------------------------------------------------
-- func: addmission <logID> <missionID> <player>
-- desc: Adds a mission to the GM or target players log.
---------------------------------------------------------------------------------------------------
require("scri... | gpl-3.0 |
forivall-mirrors/orxonox-game-code | data/levels/includes/asteroidField.lua | 1 | 3198 | --[[ fog generator
generates fog
posX, posY, posZ - position in space
size - size of billboard
brightness - [0,1] fog brightness
--]]
function generateFog(posX, posY, posZ, size, brightness)
print("<Billboard ")
print("position = \"")
print(posX) print(",")
print(posY) pr... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Castle_Zvahl_Keep/npcs/_4i5.lua | 5 | 1230 | -----------------------------------
-- Area: Castle Zvahl Keep
-- NPC: Ore door
-- Involved In Quest: Recollections
-- !pos -14 0 69 162
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
rahmalik/trafficserver | lib/luajit/dynasm/dasm_ppc.lua | 78 | 37064 | ------------------------------------------------------------------------------
-- DynASM PPC module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Selbina/npcs/Melyon.lua | 5 | 3237 | -----------------------------------
-- Area: Selbina
-- NPC: Melyon
-- Starts and Finishes Quest: Only the Best (R)
-- Involved in Quest: Riding on the Clouds
-- !pos 25 -6 6 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/pets/spring_water.lua | 5 | 1154 | ---------------------------------------------
-- Spring Water
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
---------------------------------------------
function onAbility... | gpl-3.0 |
xtao/ntopng | scripts/lua/iface_ports_list.lua | 2 | 1952 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
interface.find(ifname)
host = _GET["host"]
flows_stats = interface.getFlowsInfo()
client_ports = { }
server_por... | gpl-3.0 |
Wedmer/luci | protocols/luci-proto-vpnc/luasrc/model/cbi/admin_network/proto_vpnc.lua | 8 | 3251 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password, hexpassword
local authgroup, interface, passgroup, hexpassgroup
local domain, vendor, natt_mode, dh_group
local pfs, enable_single_d... | apache-2.0 |
o-lim/busted | spec/cl_filter.lua | 12 | 1083 | -- supporting testfile; belongs to 'cl_spec.lua'
describe('Tests the busted command-line options', function()
it('is a test with pattern1', function()
-- works by counting failure
error('error 1 on pattern1')
end)
it('is another test with pattern1', function()
-- works by counting failure
error... | mit |
HeavensSword/darkstar | scripts/commands/giveitem.lua | 23 | 1587 | ---------------------------------------------------------------------------------------------------
-- func: giveitem <player> <itemId> <amount> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4>
-- desc: Gives an item to the target player.
----------------------------------------------------------------------------------... | gpl-3.0 |
dlannan/webdruino | deps/turbo-1.0.0/turbo/signal.lua | 2 | 3674 | --- Turbo.lua Signal 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, including wit... | mit |
269724033/lor | test/group_router_2.test.lua | 1 | 1930 | expose("expose modules", function()
package.path = '../lib/?.lua;' .. '../?.lua;'.. './lib/?.lua;' .. package.path
_G.lor = require("lor.index")
_G.request = require("test.mock_request")
_G.response = require("test.mock_response")
end)
describe("group router middleware test 2", function()
setup(f... | mit |
Openarl/PathOfBuilding | Data/2_6/Skills/act_dex.lua | 1 | 280681 | -- This file is automatically generated, do not edit!
-- Path of Building
--
-- Active Dexterity skill gems
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
skills["AnimateWeapon"] = {
name = "Animate Weapon",
color = 2,
description = "Animates a melee weapon to fight by your side. You ... | mit |
typcn/mpv | TOOLS/lua/drc-control.lua | 21 | 2806 | -- This script enables live control of the dynamic range compression
-- (drc) audio filter while the video is playing back. This can be
-- useful to avoid having to stop and restart mpv to adjust filter
-- parameters. See the entry for "drc" under the "AUDIO FILTERS"
-- section of the man page for a complete descriptio... | gpl-2.0 |
ind9/kong | kong/plugins/ratelimiting/access.lua | 1 | 2795 | local constants = require "kong.constants"
local timestamp = require "kong.tools.timestamp"
local responses = require "kong.tools.responses"
local _M = {}
local function get_identifier()
local identifier
-- Consumer is identified by ip address or authenticated_entity id
if ngx.ctx.authenticated_entity then
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Beadeaux/npcs/Haggleblix.lua | 5 | 6665 | -----------------------------------
-- Area: Beadeaux
-- NPC: Haggleblix
-- Type: Dynamis NPC
-- !pos -255.847 0.595 106.485 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/gl... | gpl-3.0 |
BlueBrain/Tuvok | LuaScripting/regression/iv3d/mathMetamethods.lua | 1 | 7360 | -- The following code tests the mathematical metamethods that are supplied
-- in Lua.
header = 'Metamethods test: '
-- Test vector metamethods
v1 = math.v4(1.0, 1.0, 1.0, 1.0)
v2 = math.v4(0.0, 1.0, 2.0, 4.0)
a = 10
b = 100
print('Contents of v1.')
print('Using ipairs.')
for i,v in ipairs(v1) do print(i .. ': ' .. v... | mit |
ArmanIr/TgClinewbot | plugins/start.lua | 2 | 1588 | do
function run(msg, matches)
return "توجهـ داشتهـ باشید قبلـ از همهـ ی دستــورات باید علامتـ تعجبـ باشد و حروف کلمات با حرف کوچک باشدot\nsupport:\n/feedback\nساختـ گروهـ:\n!creategroup gpname\nمثال\n!creategroup persian\n------------------\n!loc\n برایـ دیدنـ نقشهـ شهر هـا مثال:\n!loc iran\n------------------\n!cal... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/abilities/elemental_siphon.lua | 4 | 2688 | -----------------------------------
-- Ability: Elemental Siphon
-- Drains MP from your summoned spirit.
-- Obtained: Summoner level 50
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
r... | gpl-3.0 |
vmercierfr/kong | spec/integration/proxy/dns_resolver_spec.lua | 7 | 1219 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local TCP_PORT = 7771
describe("DNS", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
{ name = "tests dns 1", public_dns = "dns1.com", target_url = "... | mit |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/_l07.lua | 3 | 2485 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -51 0 -59 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
PierrotLC/optim | adam.lua | 9 | 2042 | --[[ An implementation of Adam http://arxiv.org/pdf/1412.6980.pdf
ARGS:
- 'opfunc' : a function that takes a single input (X), the point
of a evaluation, and returns f(X) and df/dX
- 'x' : the initial point
- 'config` : a table with configuration parameters for the optimizer
- 'config.learningRate' ... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/effects/agi_boost.lua | 34 | 1026 | -----------------------------------
--
-- EFFECT_AGI_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_AGI,effect:getPower());
end;
... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/pets.lua | 20 | 35107 | -----------------------------------
--
-- PETS ID
--
-----------------------------------
-----------------------------------
-- PETTYPE
-----------------------------------
PETTYPE_AVATAR = 0;
PETTYPE_WYVERN = 1;
PETTYPE_JUGPET = 2;
PETTYPE_CHARMED_MOB = 3;
PETTYPE_AUTOMATON ... | gpl-3.0 |
xtao/ntopng | third-party/LuaJIT-2.0.3/src/jit/dis_x86.lua | 74 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-3.0 |
msva/LDoc | ldoc/builtin/global.lua | 7 | 13311 | --- Lua global functions.
module 'global'
---
-- Issues an error when the value of its argument `v` is false (i.e.,
-- nil or false); otherwise, returns all its arguments. `message` is an error
-- message; when absent, it defaults to "assertion failed!"
function assert(v , message) end
---
-- This function is a gene... | mit |
natuan241/Algorithm-Implementations | Negamax/Lua/Yonaba/handlers/tree_handler.lua | 78 | 1131 | -- Search tree class handler implementation
local PATH = (...):gsub('handlers.tree_handler$','')
local class = require (PATH .. '.utils.class')
local tree = class ()
-- Tree initialization
function tree:initialize()
self.nodes = {}
end
-- Adds a node in the tree
function tree:addNode(name, parent, value)
asser... | mit |
404rq/GTW-RPG | [maps]/GTWsapdbase/sapd_base.lua | 2 | 5938 | --[[
********************************************************************************
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/deve... | bsd-2-clause |
shahifaqeer/my-luci-bismark-0.11 | contrib/luadoc/lua/luadoc/doclet/html.lua | 171 | 8795 | -------------------------------------------------------------------------------
-- Doclet that generates HTML output. This doclet generates a set of html files
-- based on a group of templates. The main templates are:
-- <ul>
-- <li>index.lp: index of modules and files;</li>
-- <li>file.lp: documentation for a lua file... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua | 5 | 1213 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Apocalyptic_Beast
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dynamis-Buburimu/TextIDs");
require("scripts/globals/keyitems");
require... | gpl-3.0 |
alexazhou/VeryNginx | verynginx/lua_script/module/browser_verify.lua | 1 | 3813 | -- -*- coding: utf-8 -*-
-- @Date : 2016-02-24
-- @Author : Alexa (AlexaZhou@163.com)
-- @Link :
-- @Disc : verify that the remote client is a browser
local _M = {}
local VeryNginxConfig = require "VeryNginxConfig"
local request_tester = require "request_tester"
local encrypt_seed = require "encrypt_seed"... | lgpl-3.0 |
HeavensSword/darkstar | scripts/zones/Mhaura/npcs/Tya_Padolih.lua | 4 | 1212 | -----------------------------------
-- Area: Mhaura
-- NPC: Tya Padolih
-- Standard Merchant NPC
-- !pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/shop");
... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-pbx/luasrc/model/cbi/pbx-voip.lua | 128 | 4540 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | gpl-2.0 |
hjl2626/springside | modules/redis/src/main/resources/redis/dispatch.lua | 71 | 1534 | -- KEYS: [1]job:scheduled, [2]job:ready, [3]job:dispatch.counter, [4]job:lock, [5]job:retry.counter
-- ARGV: [1]currentTime, [2]reliable, [3]timeoutSeconds
local batchsize = 64
local function batchAddReadyJob(jobs, count)
local i = 1
while i<=count do
local j = 1
local batchJobs={}
while i<=count and j<=batch... | apache-2.0 |
marcoag/awesome-config | themes/byte/rc.lua | 2 | 17866 | -- Awesome config (~/.config/awesome/rc.lua)
-- mu @ freenode
require("awful")
require("awful.autofocus")
require("awful.rules")
require("beautiful")
require("naughty")
require("vicious")
-- {{{ Variables
beautiful.init(awful.util.getdir("config") .. "/themes/byte/theme.lua")
terminal = "urxvtc"
editor = "vim"
edito... | gpl-3.0 |
deepmind/torch-totem | examples/test_table.lua | 2 | 1530 | #!/usr/bin/env th
require 'totem'
local test = totem.TestSuite()
local tester = totem.Tester()
function test.size()
local a = {1}
local b = {1, 2}
tester:assertTableEq(a, b, 1e-16, 'a == b')
tester:assertTableNe(a, b, 1e-16, 'a ~= b')
end
function test.sameValues()
local a = {1, 2, 3}
local... | bsd-3-clause |
HeavensSword/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Ryunchi-Pauchi_WW.lua | 3 | 2992 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Ryunchi-Pauchi, W.W.
-- Type: Outpost Conquest Guards
-- !pos -24.351 -60.421 -114.215 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/base/luasrc/model/cbi/admin_network/proto_static.lua | 60 | 2663 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Cahaurme.lua | 5 | 1631 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Cahaurme
-- Involved in Quest: A Knight's Test, Lost Chick
-- @zone 230
-- !pos 55.749 -8.601 -29.354
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
botsazn/Management-Group | libs/dateparser.lua | 1 | 6256 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/raiton_ni.lua | 7 | 1082 | -----------------------------------------
-- Spell: Raiton: Ni
-- Deals lightning damage to an enemy and lowers its resistance against earth.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------... | gpl-3.0 |
jcadduono/kali-nethunter | nethunter-installer/update/system/bin/scripts/test_t55x7_ask.lua | 5 | 2649 | local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local utils = require('utils')
local format=string.format
local floor=math.floor
example =[[
1. script run test_t55x7_ask
]]
author = "Iceman"
usage = "script run test_t55x7_ask"
desc =[[
This script will program a T55x7 TAG... | gpl-2.0 |
Deiz/naev | dat/events/tutorial/tutorial-combat2.lua | 11 | 8855 | -- This is the tutorial: missile combat.
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: Missile Combat"
message1 = [[Welcome to the missile combat tutorial.
Guided missil... | gpl-3.0 |
ld-test/lunamark | lunamark/writer/html.lua | 2 | 5070 | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- HTML writer for lunamark.
-- Extends [lunamark.writer.xml].
local M = {}
local xml = require("lunamark.writer.xml")
local util = require("lunamark.util")
local gsub = string.gsub
local flatten, inters... | mit |
HeavensSword/darkstar | scripts/globals/spells/katon_ichi.lua | 7 | 1078 | -----------------------------------------
-- Spell: Katon: Ichi
-- Deals fire damage to an enemy and lowers its resistance against water.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------... | gpl-3.0 |
vmercierfr/kong | kong/dao/cassandra/base_dao.lua | 6 | 19792 | -- Kong's Cassandra base DAO entity. Provides basic functionnalities on top of
-- lua-resty-cassandra (https://github.com/jbochi/lua-resty-cassandra)
local query_builder = require "kong.dao.cassandra.query_builder"
local validations = require "kong.dao.schemas_validation"
local constants = require "kong.constants"
loc... | mit |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/npcs/Anton.lua | 5 | 1498 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Anton
-- @zone 232
-- !pos -19 -8 27
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/setti... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | contrib/luasrcdiet/lua/optparser.lua | 122 | 23598 | --[[--------------------------------------------------------------------
optparser.lua: does parser-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the ... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/shining_strike.lua | 23 | 1337 | -----------------------------------
-- Shining Strike
-- Club weapon skill
-- Skill level: 5
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- 1.625 ... | gpl-3.0 |
Wedmer/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 68 | 3423 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
format_au = module:option(Lis... | apache-2.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/niu/luasrc/model/cbi/niu/network/assign1.lua | 48 | 2518 | --[[
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$
]]--
loc... | apache-2.0 |
ryangmor/lolsh | plugins/exchange.lua | 352 | 2076 | 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 function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Al_Zahbi/npcs/Kahah_Hobichai.lua | 5 | 1092 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Kahah Hobichai
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Al_Zahbi/TextIDs");
-------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.