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 |
|---|---|---|---|---|---|
openwrt-es/openwrt-luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-file.lua | 7 | 2303 | -- Licensed to the public under the Apache License 2.0.
local ip = require("luci.ip")
local fs = require("nixio.fs")
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
local cfg_file = uci:get("openvpn", arg[1], "config")
local auth_file = cfg_file:match("(.+)%..... | apache-2.0 |
Qwertymine/crafting | init.lua | 1 | 1328 | crafting = {}
crafting.type = {}
local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath .. "/config.lua")
dofile(modpath .. "/util.lua")
dofile(modpath .. "/guide.lua")
dofile(modpath .. "/legacy.lua")
dofile(modpath .. "/table.lua")
dofile(modpath .. "/furnace.lua")
if crafting.config... | mit |
RebootRevival/FFXI_Test | scripts/globals/spells/bluemagic/foot_kick.lua | 35 | 1687 | -----------------------------------------
-- Spell: Foot Kick
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+1
-- Level: 1
-- Casting Time: 0.5 seconds
-- Recast Time: 6.5 seconds
-... | gpl-3.0 |
jthomasbarry/aafmt | archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Orientation.lua | 3 | 7770 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/globals/spells/bluemagic/exuviation.lua | 27 | 1801 | -----------------------------------------
-- Spell: Exuviation
-- Restores HP and removes one detrimental magic effect
-- Spell cost: 40 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 4
-- Stat Bonus: HP+5 MP+5 CHR+1
-- Level: 75
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
--
... | gpl-3.0 |
rudolfmleziva/AdministratorTeritorial | cocos2d/cocos/scripting/lua-bindings/auto/api/Sprite.lua | 10 | 11854 |
--------------------------------
-- @module Sprite
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @overload self, cc.SpriteFrame
-- @overload self, string
-- @function [parent=#Sprite] setSpriteFrame
-- @param self
-- @param #string spriteFrameName
--------... | gpl-3.0 |
petoju/awesome | tests/examples/wibox/layout/grid/expand.lua | 6 | 3894 | --DOC_GEN_IMAGE
local generic_widget = ... --DOC_HIDE_ALL
local wibox = require("wibox")
local beautiful = require("beautiful")
local w = wibox.widget {
{
{
{
markup = "<b>expand</b> = <i>false</i>\n<b>homogeneous</b> = <i>false</i>",
widget = wibox.widget.te... | gpl-2.0 |
ashang/koreader | frontend/dbg.lua | 5 | 1043 | local dump = require("dump")
local isAndroid, android = pcall(require, "android")
local Dbg = {
is_on = false,
ev_log = nil,
}
local Dbg_mt = {}
local function LvDEBUG(lv, ...)
local line = ""
for i,v in ipairs({...}) do
if type(v) == "table" then
line = line .. " " .. dump(v, lv)... | agpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/abilities/pets/tidal_wave.lua | 34 | 1116 | ---------------------------------------------------
-- Tidal Wave
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------------... | gpl-3.0 |
DrZomgwtfbbq/Alewrap2Player | util/record_frames.lua | 2 | 2792 | --[[ Copyright 2014 Google Inc.
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 2
of the License, or (at your option) any later version.
This program is distributed in the hope that i... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/DBM-BlackrockFoundry/Kromog.lua | 1 | 16167 | local mod = DBM:NewMod(1162, "DBM-BlackrockFoundry", nil, 457)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 14994 $"):sub(12, -3))
mod:SetCreatureID(77692)
mod:SetEncounterID(1713)
mod:SetZone()
mod:SetHotfixNoticeRev(13105)
mod.respawnTime = 29.5
mod:RegisterCombat("combat")
mod:Reg... | mit |
liruqi/bigfoot | Interface/AddOns/DBM-EmeraldNightmare/NightmareDragons.lua | 1 | 17847 | local mod = DBM:NewMod(1704, "DBM-EmeraldNightmare", nil, 768)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17548 $"):sub(12, -3))
mod:SetCreatureID(102679)--Ysondre, 102683 (Emeriss), 102682 (Lethon), 102681 (Taerar)
mod:SetEncounterID(1854)
mod:SetZone()
mod:SetUsedIcons(8, 7, 6, 5, 4, 3,... | mit |
pancinteractive/Jumper | jumper/search/bfs.lua | 9 | 1419 | -- Breadth-First search algorithm
if (...) then
-- Internalization
local t_remove = table.remove
local function breadth_first_search(finder, openList, node, endNode, clearance, toClear)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel)
for i = 1... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-input-output-tlt/luasrc/model/cbi/input-output/output_scheduler.lua | 1 | 3373 | local sys = require "luci.sys"
local trap = false
m = Map( "output_control", translate( "Output Scheduler" ), translate( "" ) )
s = m:section( NamedSection, "scheduler", "scheduler", translate("Configure Scheduled Outputs"), translate("" ))
gpio = s:option(ListValue, "gpio", translate("Output"), translate("Select wh... | gpl-2.0 |
Ghor/LoveEngineCore | src/libraries/luasocket/libluasocket/ftp.lua | 144 | 9120 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $
-----------------------------------------------------------------------------
-------------------... | gpl-3.0 |
topameng/tolua_runtime | luajit-2.1/dynasm/dasm_x86.lua | 3 | 74407 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
johannes-mueller/ardour | scripts/_route_template_generic_audio.lua | 2 | 4116 | ardour {
["type"] = "EditorAction",
name = "Generic Audio Track",
description = [[Add Audio tracks, by default as many as there are physical inputs]]
}
-- If a route_setup function is present in an Editor Action Script
-- the script is also listed in the "add track/bus" dialog as meta-template
--
-- The f... | gpl-2.0 |
ld-test/bk-tree | bk-tree.lua | 1 | 6137 | ---------------------------
-- bk-tree datastructure
--
-- http://en.wikipedia.org/wiki/BK-tree
-- @module bk-tree
-- @author Robin Hübner
-- robinhubner@gmail.com
-- @release version 1.0
-- @license MIT
local bk_tree = {}
local function lazy_copy(t1)
local cp = {}
for k, v in pairs(t1) do
cp[k] = v
end
ret... | mit |
ckaotik/ESO-Midget | Midget.lua | 1 | 12081 | local addonName, addon, _ = 'Midget', {}
-- GLOBALS: ZO_SavedVars, Midget_Controller, COMPASS_PINS, BUFF_EFFECT_TYPE_BUFF, BUFF_EFFECT_TYPE_DEBUFF, LINK_STYLE_DEFAULT
-- GLOBALS: d, GetFrameTimeSeconds, GetNumBuffs, GetUnitBuffInfo, GetBagInfo, GetSlotStackSize, GetItemName, GetItemLink, GetGroupSize, GetGroupUnitTagB... | mit |
shiprabehera/kong | kong/api/routes/upstreams.lua | 2 | 6458 | local crud = require "kong.api.crud_helpers"
local app_helpers = require "lapis.application"
local responses = require "kong.tools.responses"
local cjson = require "cjson"
-- clean the target history for a given upstream
local function clean_history(upstream_id, dao_factory)
-- when to cleanup: invalid-entries > (v... | apache-2.0 |
liruqi/bigfoot | Interface/AddOns/Q-genius/WorldMap.lua | 1 | 4778 | --[[
WorldMap.lua
@Author : DengSir (tdaddon@163.com)
@Link : https://dengsir.github.io
]]
BuildEnv(...)
WorldMap = Addon:NewModule(CreateFrame('Frame', nil, WorldMapButton), 'WorldMap', 'AceEvent-3.0')
function WorldMap:OnInitialize()
GUI:Embed(self, 'Refresh')
self.freeBlips = {}
s... | mit |
jessemillar/the-staff-of-lewis | lib/sti/init.lua | 1 | 38414 | --- Simple and fast Tiled map loader and renderer.
-- @module sti
-- @author Landon Manning
-- @copyright 2016
-- @license MIT/X11
local STI = {
_LICENSE = "MIT/X11",
_URL = "https://github.com/karai17/Simple-Tiled-Implementation",
_VERSION = "0.18.2.1",
_DESCRIPTION = "Simple Tiled Implementation ... | mit |
liruqi/bigfoot | Interface/AddOns/MeetingStone/Memorize.lua | 1 | 1058 |
local setmetatable = setmetatable
local wipe = wipe
local unpack = unpack
local select = select
BuildModule('NetEaseMemorize-1.0')
function normal(fn)
local db = setmetatable({}, {
__mode = 'k',
__index = function(t, k)
local v = fn(k)
t[k] = v
re... | mit |
liruqi/bigfoot | Interface/AddOns/SexyMap/localization/zhCN.lua | 1 | 11420 |
if GetLocale() ~= "zhCN" then return end
local _, sm = ...
local L = sm.L
L["1. Background"] = "1、背景"
L["2. Border"] = "2、边框"
L["3. Artwork"] = "3、装饰"
L["4. Overlay"] = "4、覆盖"
L["5. Highlight"] = "5、高亮"
L["Add Blend (additive)"] = "添加混合(附加式)"
L["Addon Buttons"] = "插件按钮"
L["A global profile already exists. Y... | mit |
shiprabehera/kong | kong/api/init.lua | 4 | 3648 | local lapis = require "lapis"
local utils = require "kong.tools.utils"
local tablex = require "pl.tablex"
local responses = require "kong.tools.responses"
local singletons = require "kong.singletons"
local app_helpers = require "lapis.application"
local api_helpers = require "kong.api.api_helpers"
local find = string... | apache-2.0 |
nurv/lirec | scenarios/MyFriend/MyPleo/tags/version-1.05/workspace/viPleoShivaModule/Resources/Scripts/MyPleoAI_State_searchStick_onEnter.lua | 2 | 1060 | --------------------------------------------------------------------------------
-- State............ : searchStick
-- Author........... : Tiago Paiva
-- Description...... : (currently not being used)
--------------------------------------------------------------------------------
----------------------------------... | gpl-3.0 |
nurv/lirec | scenarios/MyFriend/MyPleo/workspace/viPleoShivaModule/Resources/Scripts/MyPleoAI_State_searchFood_onLoop.lua | 2 | 1527 | --------------------------------------------------------------------------------
-- State............ : searchFood
-- Author........... : Tiago Paiva
-- Description...... : Pleo moves to placed patch of leaves.
--------------------------------------------------------------------------------
------------------------... | gpl-3.0 |
ingran/balzac | custom_feeds/teltonika_luci/libs/json/luasrc/json.lua | 10 | 12644 | --[[
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
ht... | gpl-2.0 |
AngelBaltar/RenegadeKlingon | GameFrameWork/Weapons/MachineGunWeapon.lua | 1 | 1590 | -- /* RenegadeKlingon - LÖVE2D GAME
-- * MachineGunWeapon.lua
-- * Copyright (C) Angel Baltar Diaz
-- *
-- * 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 t... | gpl-3.0 |
topameng/tolua_runtime | luajit-2.1/dynasm/dasm_s390x.lua | 2 | 49643 | ------------------------------------------------------------------------------
-- DynASM s390x module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _... | mit |
Unknown8765/SpeedBot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
shiprabehera/kong | kong/plugins/ip-restriction/handler.lua | 5 | 2329 | local BasePlugin = require "kong.plugins.base_plugin"
local responses = require "kong.tools.responses"
local iputils = require "resty.iputils"
local new_tab
do
local ok
ok, new_tab = pcall(require, "table.new")
if not ok then
new_tab = function() return {} end
end
end
-- cache of parsed CIDR values
local... | apache-2.0 |
526avijitgupta/MozDef | examples/heka-lua-bro/bro_software.lua | 8 | 3715 | -- 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 |
liruqi/bigfoot | Interface/AddOns/Skada/modules/Healing.lua | 2 | 19135 | Skada:AddLoadableModule("Healing", nil, function(Skada, L)
if Skada.db.profile.modulesBlocked.Healing then return end
local mod = Skada:NewModule(L["Healing"])
local spellsmod = Skada:NewModule(L["Healing spell list"])
local healedmod = Skada:NewModule(L["Healed players"])
local healingtaken = Skada:NewModu... | mit |
liruqi/bigfoot | Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseGUI-2.0/Embed/Tab.lua | 1 | 1934 |
local GUI = LibStub('NetEaseGUI-2.0')
local View = GUI:NewEmbed('Tab', 1)
if not View then
return
end
View._Objects = View._Objects or {}
View._Owners = View._Owners or {}
local _Objects = View._Objects
local _Owners = View._Owners
local function GetNextInputBox(target, inputBox)
local index =... | mit |
ingran/balzac | custom_feeds/teltonika_luci/libs/lucid-rpc/luasrc/lucid/rpc/server.lua | 52 | 8197 | --[[
LuCI - Lua Development Framework
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$
]]
local ip... | gpl-2.0 |
whiver/ntui | gdBoss.lua | 2 | 10148 | --[[ NEVER TRUST USER'S INPUT non-released v0.1 alpha
--------------------------------------------------------------------
This file is part of N.T.U.I.
N.T.U.I. 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 Soft... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Party-Legion/EyeOfAzshara/Parjesh.lua | 1 | 2372 | local mod = DBM:NewMod(1480, "DBM-Party-Legion", 3, 716)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17077 $"):sub(12, -3))
mod:SetCreatureID(91784)
mod:SetEncounterID(1810)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 192094",
"SPELL_CAST_START 1... | mit |
DavidAlphaFox/wax | xcode-template/scripts/AppDelegate.lua | 18 | 1485 | waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}}
-- Well done! You are almost ready to run a lua app on your iPhone!
--
-- Just run the app (⌘↵) in the simulator or on a device!
-- You will see a dull, bland "hello world" app (it is your job to spice it up.)
--
-- If your prefer using TextMate to edit t... | mit |
metiscus/GlslGenie | tools/lua-5.1/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | gpl-2.0 |
kaushik94/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
Beagle/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
Beagle/wesnoth | data/ai/micro_ais/micro_ai_helper.lua | 26 | 7240 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local AH = wesnoth.require("ai/lua/ai_helper.lua")
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local micro_ai_helper = {}
function micro_ai_helper.add_CAs(side, CA_parms, CA_cfg)
-- Add the candidate ac... | gpl-2.0 |
klukonin/nodemcu-firmware | lua_examples/email/read_email_imap.lua | 82 | 4543 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner c... | mit |
liruqi/bigfoot | Interface/AddOns/WorldQuestTracker/libs/DF/split_bar.lua | 1 | 19778 |
local DF = _G ["DetailsFramework"]
if (not DF or not DetailsFrameworkCanLoad) then
return
end
local _
local _rawset = rawset --> lua local
local _rawget = rawget --> lua local
local _setmetatable = setmetatable --> lua local
local _unpack = unpack --> lua local
local _type = type --> lua local
local _ma... | mit |
pancinteractive/Jumper | jumper/search/astar.lua | 8 | 2527 | -- Astar algorithm
-- This actual implementation of A-star is based on
-- [Nash A. & al. pseudocode](http://aigamedev.com/open/tutorials/theta-star-any-angle-paths/)
if (...) then
-- Internalization
local ipairs = ipairs
local huge = math.huge
-- Dependancies
local _PATH = (...):match('(.+)%.search.astar$')
lo... | mit |
liruqi/bigfoot | Interface/AddOns/Bagnon/libs/Sushi-3.0/Classes/TextButton.lua | 1 | 1828 | --[[
Copyright 2008-2016 João Cardoso
Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL).
This file is part of Sushi.
Sushi 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 Found... | mit |
liruqi/bigfoot | Interface/AddOns/MiDKP/localize/tw.lua | 1 | 13013 | local L = MiDKP.Locale:NewLocale("zhTW")
--system
L.ADDON_VERSION_TEXT = "版權所有(C) 2010 178.com %s"
L.ADDON_ENABLE = "使用MiDKP插件"
L.ADDON_TITLE = "團隊DKP"
L.MESSAGE_INFO = "|cff20ff20<MiDKP 信息> |r"
L.MESSAGE_ERROR = "|cffe00000<MiDKP 錯誤> |r"
L.MESSAGE_DEBUG = "|cff00c0c0<MiDKP 調試> |r"
L.LDBTOOLTIP... | mit |
liruqi/bigfoot | Interface/AddOns/Clique/BindConfig.lua | 1 | 23426 | --[[-------------------------------------------------------------------------
-- BindConfig.lua
--
-- This file contains the definitions of the binding configuration panel.
--
-- Events registered:
-- None
-------------------------------------------------------------------------]]--
local addonName, addon =... | mit |
liruqi/bigfoot | Interface/AddOns/BFCastingBar/BFCastingbar.lua | 1 | 5305 | local BFCBEvent = BLibrary("BEvent"); local BFCastingBar_6c391f92e72d1c9b7434bca8947c5e2c = BLibrary("BSecureHook"); local SM = LibStub("LibSharedMedia-3.0") local _ BFCB={} BFCBConfig=BFCBConfig or { showText=true, showLatency=true, width=200, showUsedTime=true } BFCBEvent:Init{ name="BFCastingBar", func=function() l... | mit |
shiprabehera/kong | kong/plugins/rate-limiting/migrations/postgres.lua | 6 | 2277 | return {
{
name = "2015-08-03-132400_init_ratelimiting",
up = [[
CREATE TABLE IF NOT EXISTS ratelimiting_metrics(
api_id uuid,
identifier text,
period text,
period_date timestamp without time zone,
value integer,
PRIMARY KEY (api_id, identifier, period_dat... | apache-2.0 |
Yonaba/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
inTact700/VLCHotkey | share/lua/playlist/liveleak.lua | 91 | 1883 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: Ludovic Fauvet <etix@videolan.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 Software Foundation; either version 2 of the License, or
(at your optio... | gpl-2.0 |
shiprabehera/kong | spec/02-integration/03-dao/07-ttl_spec.lua | 2 | 3890 | local helpers = require "spec.02-integration.03-dao.helpers"
local spec_helpers = require "spec.helpers"
local Factory = require "kong.dao.factory"
helpers.for_each_dao(function(kong_config)
describe("TTL with #" .. kong_config.database, function()
local factory
setup(function()
factory = assert(Factor... | apache-2.0 |
MocoNinja/LinuxConfs | Archlabs/.config/awesome/vicious/widgets/mdir.lua | 8 | 1322 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) Maildir Biff Widget, Fredrik Ax
---------------------------------------------------
-- {{{ Grab environment
local io = { popen = io.popen }
local setmetatable... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/DBM-Nighthold/Trilliax.lua | 1 | 12581 | local mod = DBM:NewMod(1731, "DBM-Nighthold", nil, 786)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17471 $"):sub(12, -3))
mod:SetCreatureID(104288)
mod:SetEncounterID(1867)
mod:SetZone()
mod:SetUsedIcons(1)
mod:SetHotfixNoticeRev(15058)
mod:SetModelSound("Sound\\Creature\\Trilliax\\VO_7... | mit |
526avijitgupta/MozDef | examples/heka-lua-syslog/syslog_tab_delimited.lua | 10 | 1403 | -- 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
-- Mike Trinkala mtr... | mpl-2.0 |
Catlinman/LuaGameHelpers | lib/camera.lua | 2 | 2522 |
local camera = {} -- Camera module object.
local current = {} -- Stores the current default camera.
-- Screen size function is defined here. This allows the library to work with multiple engines without a lot of modifications.
local sizefunc = love.graphics.getDimensions() or video.getScreenSize()
-- Returns a new ... | mit |
Beagle/wesnoth | data/lua/wml/objectives.lua | 22 | 6719 | local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local game_events = wesnoth.game_events
local function color_prefix(r, g, b)
return string.format('<span foreground="#%02x%02x%02x">', r, g, b)
end
local function insert_before_nl(s, t)
return string.gsub(tostring(s), "[^\n]*", ... | gpl-2.0 |
MocoNinja/LinuxConfs | Archlabs/.config/awesome/vicious/widgets/net.lua | 1 | 2697 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local os = { t... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/WorldQuestTracker/locales/enUS.lua | 1 | 9091 | local L = LibStub("AceLocale-3.0"):NewLocale("WorldQuestTrackerAddon", "enUS", true)
if not L then return end
L["S_APOWER_AVAILABLE"] = "Available"
L["S_APOWER_NEXTLEVEL"] = "Next Level"
L["S_ENABLED"] = "Enabled"
L["S_ERROR_NOTIMELEFT"] = "This quest has no time left."
L["S_ERROR_NOTLOADEDYET"] = "This quest isn... | mit |
shiprabehera/kong | kong/plugins/jwt/asn_sequence.lua | 5 | 3506 | local error = error
local string_sub = string.sub
local string_byte = string.byte
local string_char = string.char
local table_sort = table.sort
local table_insert = table.insert
local _M = {}
_M.__index = _M
function _M.create_simple_sequence(input)
if type(input) ~= "table"
then error("Argument #1 must be a ta... | apache-2.0 |
mario0582/devenserver | data/talkactions/scripts/mccheck.lua | 40 | 1027 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:")
local ipList = {}
local players = Game.getPlayers()
for i = 1, ... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/Grail/Grail-NPCs-zhCN.lua | 1 | 185393 | --
--
-- UTF-8 file
--
if GetLocale() ~= "zhCN" then return end
local G = Grail.npc.name
local _, release, _, interface = GetBuildInfo()
release = tonumber(release)
interface = tonumber(interface)
if release >= 0 then
G[0]='自己'
G[114]='看守傀儡'
G[126]='滩行鱼人'
G[171]='鱼人战士'
G[197]='治安官玛克布莱德'
G[198]='凯尔登·布雷门'
G[210]='噬骨者'
... | mit |
Beagle/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua | 26 | 1557 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_location",
{
{ "filter", {... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/EventAlertMod/EventAlert_CreateFrames.lua | 1 | 57680 |
-- Prevent tainting global _.
local _
local _G = _G
--常用函數設為區域變數以提昇效能
local print = print
local pairs = pairs
local ipairs = ipairs
local tonumber = tonumber
local tostring = tostring
local type = type
local select = select
local format = format
local CreateFrame = CreateFrame
local UnitBuff = UnitBuff... | mit |
SharpWoW/KillTrack | Timer.lua | 1 | 3748 | --[[
* Copyright (c) 2011-2020 by Adam Hellberg.
*
* This file is part of KillTrack.
*
* KillTrack 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, o... | gpl-3.0 |
liruqi/bigfoot | Interface/AddOns/DBM-GUI/DBM-GUI_DropDown.lua | 1 | 11601 | -- *********************************************************
-- ** Deadly Boss Mods - GUI **
-- ** http://www.deadlybossmods.com **
-- *********************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich ... | mit |
liruqi/bigfoot | Interface/AddOns/DBM-BlackrockFoundry/IronMaidens.lua | 1 | 25920 | local mod = DBM:NewMod(1203, "DBM-BlackrockFoundry", nil, 457)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 14994 $"):sub(12, -3))
mod:SetCreatureID(77557, 77231, 77477)
mod:SetEncounterID(1695)
mod:SetZone()
mod:SetBossHPInfoToHighest()
mod:SetUsedIcons(5, 4, 3, 2, 1)
mod:SetModelSound("... | mit |
Steelcap/NSL-CompMod | NSLCompMod/source/lua/DPR/Post/NS2Utility.lua | 1 | 2652 | -- Alien supply limit is 50 + (50 * number of hives)
function GetMaxSupplyForTeam(teamNumber)
local maxSupply = 50
if Server then
local team = GetGamerules():GetTeam(teamNumber)
if team and team:GetIsAlienTeam() and team.GetNumCapturedTechPoints then
maxSupply = maxSupply + (team:G... | mit |
ingran/balzac | custom_feeds/teltonika_luci/applications/luci-input-output-tlt/luasrc/model/cbi/input-output/periodic_control.lua | 1 | 2569 | local ds = require "luci.dispatcher"
m = Map("output_control", translate("Periodic Output Control"),translate(""))
s = m:section(TypedSection, "rule", translate("Control Rules"))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s.extedit = ds.build_url("admin/services/input-output/output/periodi... | gpl-2.0 |
gastrodia/awesome | lib/wibox/layout/base.lua | 1 | 2713 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox.layout.base
---------------------------------------------------------------------------
local xpcall = xpcall
local print = print
loca... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/premade-filter/localization/zhTW.lua | 1 | 4145 | local _, L = ...;
if GetLocale() ~= "zhTW" then return end
L["Actions"] = "動作"
L["Alive"] = "存活"
L["Any"] = "任何"
L["Are you sure you want to delete filter set?"] = "您確定要刪除篩選設置嗎?"
L["At least one word"] = "至少一個字"
L["Attention! Update interval shorter than 15 seconds may cause the game to run slow and impact your g... | mit |
liruqi/bigfoot | Interface/AddOns/SexyMap/Borders.lua | 1 | 34639 |
local _, sm = ...
sm.borders = {}
local mod = sm.borders
local L = sm.L
local textures = {}
local texturePool = {}
local rotateTextures = {}
local defaultSize = 180
local customBackdrop
local media = LibStub("LibSharedMedia-3.0")
--获取所有小地图样式
local allBorders = {};
--获取所有小地图样式的名称数组
local borderPresetsSeq = {};
loca... | mit |
johannes-mueller/ardour | scripts/_convolv.lua | 1 | 1521 | ardour { ["type"] = "dsp", name = "Lua Convolver", license = "MIT", author = "Ardour Lua Task Force", description = [[Another simple DSP example]] }
function dsp_ioconfig () return
{
{ audio_in = 1, audio_out = 1},
{ audio_in = 1, audio_out = 2},
{ audio_in = 2, audio_out = 2},
}
end
local conv, mode, ir_file... | gpl-2.0 |
liruqi/bigfoot | Interface/AddOns/SexyMap/localization/enUS.lua | 1 | 12244 |
local _, sm = ...
sm.L = {}
local L = sm.L
-- ./Borders.lua
L["1. Background"] = "1. Background"
L["2. Border"] = "2. Border"
L["3. Artwork"] = "3. Artwork"
L["4. Overlay"] = "4. Overlay"
L["5. Highlight"] = "5. Highlight"
L["Blend (normal)"] = "Blend (normal)"
L["Disable (opaque)"] = "Disable (opaque)"... | mit |
liruqi/bigfoot | Interface/AddOns/Gladius/modules/castbar.lua | 1 | 35280 | local Gladius = _G.Gladius
if not Gladius then
DEFAULT_CHAT_FRAME:AddMessage(format("Module %s requires Gladius", "Cast Bar"))
end
local L = Gladius.L
local LSM
-- global functions
local pairs = pairs
local select = select
local strfind = string.find
local AceGUIWidgetLSMlists = AceGUIWidgetLSMlists
lo... | mit |
kaen/Zero-K | scripts/turrettorp.lua | 16 | 2934 | include "constants.lua"
local base = piece 'base'
local arm1 = piece 'arm1'
local arm2 = piece 'arm2'
local turret = piece 'turret'
local firepoint = piece 'firepoint'
local waterFire = false
local smokePiece = {base}
-- Signal definitions
local SIG_AIM = 2
local function Bob(rot)
while true do
Turn(base, ... | gpl-2.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/luaidl/sin.lua | 2 | 117945 | --
-- Project: LuaIDL
-- Author: Ricardo Cosme <rcosme@tecgraf.puc-rio.br>
-- Filename: sin.lua
--
-- OMG IDL Grammar (Corba v3.0)
-- LL(1)
--(1) <specification> := <import_l> <definition_l>
--(2) <import_l> := <import> <import_l>
--(3) | empty
--(4) <im... | gpl-2.0 |
h0tw1r3/mame | 3rdparty/genie/src/actions/codelite/codelite_project.lua | 3 | 5765 | --
-- codelite_project.lua
-- Generate a CodeLite C/C++ project file.
-- Copyright (c) 2009, 2011 Jason Perkins and the Premake project
--
local codelite = premake.codelite
local tree = premake.tree
--
-- Write out a list of the source code files in the project.
--
function codelite.files(prj)
local tr = prema... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/jar_of_remedy_ointment.lua | 18 | 1685 | -----------------------------------------
-- ID: 5356
-- Item: Remedy Ointment
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and plague.
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
jcjohnson/torch-rnn | test/TemporalCrossEntropyCriterion_test.lua | 18 | 2660 | require 'torch'
require 'nn'
require 'cutorch'
require 'cunn'
require 'TemporalCrossEntropyCriterion'
local tester = torch.Tester()
local tests = torch.TestSuite()
-- Run a nn.CrossEntropyCriterion explicitly over all minibatch elements
-- and timesteps, and make sure that we get the same results for both
-- loss ... | mit |
geanux/darkstar | scripts/zones/Eastern_Altepa_Desert/mobs/Cactrot_Rapido.lua | 16 | 12212 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NM: Cactrot Rapido
-----------------------------------
require("scripts/globals/titles");
local path = {
-45.214237, 0.059482, -204.244873,
-46.114422, 0.104212, -203.765884,
-47.013275, 0.149004, -203.285812,
-47.911877, 0.193759, -2... | gpl-3.0 |
pakozm/otto-kaggle | scripts/PREPROCESS/preprocess2.lua | 1 | 2258 | local common = require "scripts.common"
local add_clusters_similarity = common.add_clusters_similarity
local compute_center_scale = common.compute_center_scale
local compute_clusters = common.compute_clusters
local load_CSV = common.load_CSV
local preprocess = common.preprocess
local split = common.split
loc... | mit |
kaen/Zero-K | LuaUI/Widgets/chili_new/controls/multiprogressbar.lua | 7 | 4265 | --//=============================================================================
--- Multiprogressbar module
--- Multiprogressbar fields.
-- Inherits from Control.
-- @see control.Control
-- @table Multiprogressbar
-- @bool[opt=false] drawBorder should the border be drawn?
-- @tparam {r,g,b,a} borderColor specifies ... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/silken_sash.lua | 36 | 1212 | -----------------------------------------
-- ID: 5632
-- Item: Silken Sash
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +3
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
---... | gpl-3.0 |
kaen/Zero-K | lups/ParticleClasses/ShockWave.lua | 14 | 6389 | -- $Id: ShockWave.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local ShockWave = {}
ShockWave.__inde... | gpl-2.0 |
ExcelF/project-navel | libs/loveframes/libraries/templates.lua | 18 | 5499 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".templates"))
local loveframes... | mit |
kling-igor/particle-designer | loveframes/libraries/templates.lua | 18 | 5499 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".templates"))
local loveframes... | mit |
forward619/luci | applications/luci-app-privoxy/luasrc/controller/privoxy.lua | 33 | 4608 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.privoxy", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local HTTP = require "luci.http"
local UCI = require "luci.model.uci"
l... | apache-2.0 |
geanux/darkstar | scripts/globals/spells/foe_requiem_v.lua | 18 | 1624 | -----------------------------------------
-- Spell: Foe Requiem V
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
forward619/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/startup.lua | 74 | 2567 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local inits = { }
for _, name ... | apache-2.0 |
olszak94/forgottenserver | data/npc/lib/npc.lua | 21 | 3182 | -- Including the Advanced NPC System
dofile('data/npc/lib/npcsystem/npcsystem.lua')
function msgcontains(message, keyword)
local message, keyword = message:lower(), keyword:lower()
if message == keyword then
return true
end
return message:find(keyword) and not message:find('(%w+)' .. keyword)
end
function doNp... | gpl-2.0 |
PhearNet/scanner | bin/nmap-openshift/nselib/vuzedht.lua | 5 | 17050 | ---
-- A Vuze DHT protocol implementation based on the following documentation:
-- o http://wiki.vuze.com/w/Distributed_hash_table
--
-- It currently supports the PING and FIND_NODE requests and parses the
-- responses. The following main classes are used by the library:
--
-- o Request - the request class containing ... | mit |
PhearNet/scanner | bin/nmap-openshift/nselib/ssh1.lua | 3 | 9097 | ---
-- Functions for the SSH-1 protocol. This module also contains functions for
-- formatting key fingerprints.
--
-- @author Sven Klemm <sven@c3d2.de>
-- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html
local bin = require "bin"
local bit = require "bit"
local io = require "io"
local math = require... | mit |
mirkix/ardupilot | libraries/AP_Scripting/drivers/EFI_HFE.lua | 2 | 9241 | --[[
EFI Scripting backend driver for HFE based on HFEDCN0191 Rev E
--]]
-- Check Script uses a miniumum firmware version
local SCRIPT_AP_VERSION = 4.4
local SCRIPT_NAME = "EFI: HFE CAN"
local VERSION = FWVersion:major() + (FWVersion:minor() * 0.1)
assert(VERSION >= SCRIPT_AP_VERSION, string.format('%s Requ... | gpl-3.0 |
geanux/darkstar | scripts/globals/spells/bluemagic/bad_breath.lua | 18 | 3509 | -----------------------------------------
-- Spell: Bad Breath
-- Deals earth damage that inflicts multiple status ailments on enemies within a fan-shaped area originating from the caster
-- Spell cost: 212 MP
-- Monster Type: Plantoids
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 5
-- Stat Bonus: INT+2,... | gpl-3.0 |
geanux/darkstar | scripts/globals/abilities/drachen_roll.lua | 8 | 2242 | -----------------------------------
-- Ability: Drachen Roll
-- Enhances pet accuracy for party members within area of effect
-- Optimal Job: Dragoon
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 23
--
-- Die Roll |No DRG |With DRG
-- -------- ------- -----------
-- 1 |+10 |+25
-- 2... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/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... | gpl-2.0 |
Pritchy96/OpenRA | mods/cnc/maps/gdi04c/gdi04c.lua | 8 | 4569 | LoseTriggerHouses = { TrigLos2Farm1, TrigLos2Farm2, TrigLos2Farm3, TrigLos2Farm4 }
TownAttackTrigger = { CPos.New(54, 38), CPos.New(55, 38), CPos.New(56, 38), CPos.New(57, 38) }
GDIReinforcementsTrigger = { CPos.New(32, 51), CPos.New(32, 52), CPos.New(33, 52) }
GDIReinforcementsPart1 = { "jeep", "jeep" }
GDIReinforcem... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.