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 |
|---|---|---|---|---|---|
raymond-w-ko/vim-lua-indent | tests/nmap/drda.ok.lua | 2 | 24785 | ---
-- DRDA Library supporting a very limited subset of operations.
--
-- Summary
-- * The library currently provides functionality to: (1) Query the server for
-- basic settings using the <code>getServerInfo</code> function of the helper
-- class. (2) Authenticate to a DB2 server using a plain-text username and
-- pas... | mit |
immibis/wiremod | lua/wire/tool_loader.lua | 1 | 19599 | if SERVER then AddCSLuaFile() end
local function LoadTools()
-- load tools
for _, filename in pairs(file.Find("wire/stools/*.lua","LUA")) do
include("wire/stools/"..filename)
AddCSLuaFile("wire/stools/"..filename)
end
-- close last TOOL
if TOOL then WireToolSetup.close() end
end
-- prevent showing the ghos... | apache-2.0 |
b03605079/darkstar | scripts/zones/Al_Zahbi/npcs/Dehbi_Moshal.lua | 19 | 1157 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Dehbi Moshal
-- Guild Merchant NPC: Woodworking Guild
-- @pos -71.563 -5.999 -57.544 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
PicassoCT/Journeywar | units/gaia/blooddecalFactory.lua | 1 | 1202 | local unitName = "BlooddecalFactory"
local unitDef = {
name = "DecallFactory",
Description = "ThereForTheDecal",
objectName = "emptyObjectIsEmpty.s3o",
script = "decalFactory.lua",
buildPic = "placeholder.png",
--cost
buildCostMetal = 0,
buildCostEnergy = 0,
buildTime =1,
--Health
maxDamage = 1200,
idleAutoHeal = 0,
-... | gpl-3.0 |
felipeprov/premake-core | src/base/option.lua | 3 | 3391 | --
-- option.lua
-- Work with the list of registered options.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
premake.option = {}
local m = premake.option
--
-- We can't control how people will type in the command line arguments, or how
-- project scripts will define their custom options, so ca... | bsd-3-clause |
Timendainum/awesome-config | rc.lua | 1 | 19826 | -- ----------------------------------------------------------------------------
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
... | mit |
codedustgames/caress-framework | benchmarks/classes/derived_method_calling.lua | 1 | 1397 | -- Caress, a small framework for games in lua and love.
-- Copyright (C) 2016 Erivaldo Filho "desadoc@gmail.com"
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation, either version 3 of t... | gpl-3.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/LoadingBar.lua | 12 | 4333 |
--------------------------------
-- @module LoadingBar
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Changes the progress value of LoadingBar.<br>
-- param percent Percent value from 1 to 100.
-- @function [parent=#LoadingBar] setPercent
-- @param self
-- @param #float percent
-- @re... | mit |
b03605079/darkstar | scripts/zones/Misareaux_Coast/Zone.lua | 32 | 1650 | -----------------------------------
--
-- Zone: Misareaux_Coast (25)
--
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Misareaux_Coast/TextIDs");
-------------... | gpl-3.0 |
DI3HARD139/dcb-everamzah- | mods/creative/init.lua | 2 | 1825 | creative = {}
local creative_mode_cache = minetest.setting_getbool("creative_mode")
function creative.is_enabled_for(name)
return creative_mode_cache
end
dofile(minetest.get_modpath("creative") .. "/inventory.lua")
if creative_mode_cache then
-- Dig time is modified according to difference (leveldiff) between too... | gpl-3.0 |
MRMV2000/umbrage | plugins/invite.lua | 197 | 1336 | do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
local channel = 'channel#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'User is banned.')
send_large_msg(c... | gpl-2.0 |
Aquanim/Zero-K | units/factorycloak.lua | 2 | 2867 | return { factorycloak = {
unitname = [[factorycloak]],
name = [[Cloakbot Factory]],
description = [[Produces Cloaked, Mobile Robots]],
buildCostMetal = Shared.FACTORY_COST,
buildDistance = Shared.FACTORY_PLATE_RANGE... | gpl-2.0 |
MOSAVI17/idbot | plugins/chatter.lua | 20 | 1670 | -- Put this absolutely at the end, even after greetings.lua.
local triggers = {
'',
'^' .. bot.first_name .. ',',
'^@' .. bot.username .. ','
}
local action = function(msg)
if msg.text == '' then return end
-- This is awkward, but if you have a better way, please share.
if msg.text_lower:match('^' .. bot.fir... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/plate_of_dulcet_panettones.lua | 36 | 1338 | -----------------------------------------
-- 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 |
b03605079/darkstar | scripts/zones/Nashmau/npcs/Poporoon.lua | 34 | 1242 | -----------------------------------
-- Area: Nashmau
-- NPC: Poporoon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/West_Ronfaure/npcs/qm2.lua | 34 | 1498 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm2 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -550 -0 -542 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_grass_cutter.lua | 12 | 1382 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Port_Windurst/npcs/Shanruru.lua | 19 | 2756 | -----------------------------------
-- Area: Port Windurst
-- NPC: Shanruru
-- Involved in Quest: Riding on the Clouds
-- @zone 240
-- @pos -1 -6 187
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
node-wot/node-wot | lua_modules/http/http-example.lua | 88 | 1377 | ------------------------------------------------------------------------------
-- HTTP server Hello world example
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
require("http").createServer(80, ... | mit |
immibis/wiremod | lua/entities/gmod_wire_pixel.lua | 9 | 1526 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Pixel"
ENT.WireDebugName = "Pixel"
if CLIENT then
function ENT:Draw( )
self:DrawModel( )
end
return -- No more client
end
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
sel... | apache-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_fall_damage.lua | 6 | 12611 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Radseq/otclient | modules/gamelib/ui/uiminimap.lua | 5 | 8255 | function UIMinimap:onCreate()
self.autowalk = true
end
function UIMinimap:onSetup()
self.flagWindow = nil
self.floorUpWidget = self:getChildById('floorUp')
self.floorDownWidget = self:getChildById('floorDown')
self.zoomInWidget = self:getChildById('zoomIn')
self.zoomOutWidget = self:getChildById('zoomOut')... | mit |
Aquanim/Zero-K | LuaUI/Widgets/init_startup_info_selector.lua | 6 | 16133 | local versionNumber = "1.337"
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Startup Info and Selector",
desc = "[v" .. string.format("%s", versionNumber ) .... | gpl-2.0 |
Sakura-Winkey/LuCI | modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | 59 | 5943 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.freifunk", package.seeall)
function index()
local uci = require "luci.model.uci".cursor()
local page
-- Frontend
page = node()
page.lock = true
page.target ... | apache-2.0 |
b03605079/darkstar | scripts/zones/Gusgen_Mines/npcs/Grounds_Tome.lua | 34 | 1133 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(pl... | gpl-3.0 |
cosmy1/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/typedef.lua | 44 | 1696 | -- tolua: typedef 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,
-- enhancements... | mit |
thesrinivas/rakshak | rakshak-probe/userspace/sysdig/chisels/topprocs_errors.lua | 6 | 1631 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without e... | gpl-2.0 |
crazyboy11/crazyboy | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/gfx_highlight_api_gl4.lua | 1 | 10179 | function widget:GetInfo()
return {
name = "HighlightUnit GL4",
version = "v0.2",
desc = "Highlight any unit, feature, unitDef or FeatureDef via WG.HighlightUnitGL4",
author = "Beherith,ivand",
date = "2022.01.04",
license = "GPL",
layer = -60,
enabled = true... | gpl-2.0 |
just-another-one-timmy/wireshark | test/lua/acme_file.lua | 24 | 57421 | ------------------------------------------
-- acme_file_reader.lua
-- Author: Hadriel Kaplan (hadrielk at yahoo dot com)
-- version = 1.0
-- date = 3/3/2014
------------------------------------------
--[[
This is a Wireshark Lua-based capture file reader.
This "capture file" reader reads message logs from Acme ... | gpl-2.0 |
romain-intel/bcc | examples/lua/uprobe-readline-perf.lua | 8 | 1927 | #!/usr/bin/env bcc-lua
--[[
Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com>
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 app... | apache-2.0 |
b03605079/darkstar | scripts/globals/items/trail_cookie.lua | 36 | 1258 | -----------------------------------------
-- ID: 5940
-- Item: Trail Cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- MP Healing 5
-- Aquan Killer 12
-- Sleep Resist 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
dhlab-basel/Knora | sipi/scripts/util.lua | 1 | 1698 | -- * Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
-- * SPDX-License-Identifier: Apache-2.0
--- Checks whether a table contains a value.
-- @param table the table to be checked.
-- @param search_value the value to look for.
-- @param a boo... | agpl-3.0 |
b03605079/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Watchful_Pixie.lua | 38 | 1058 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Watchful Pixie
-- Type: Quest NPC
-- @zone: 136
-- @pos -56.000 -1.3 -392.000
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]/TextIDs"... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 12 | 2071 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available withou... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/vidohunir.lua | 12 | 4739 | -----------------------------------
-- Vidohunir
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP.
-- Reduces enemy's magic defense by 10%.
-- Available only after completing the Unlocking a Myth (Black Mage)... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 68 | 1416 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local mode = section:taboption("general", ListValue, "mode", translate("Category"))
mode:value("auto", translate("Automatic"))
mode:value("external", translate("External"))
mode:va... | gpl-2.0 |
Sakura-Winkey/LuCI | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 68 | 1416 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local mode = section:taboption("general", ListValue, "mode", translate("Category"))
mode:value("auto", translate("Automatic"))
mode:value("external", translate("External"))
mode:va... | apache-2.0 |
b03605079/darkstar | scripts/zones/FeiYin/npcs/HomePoint#1.lua | 12 | 1228 | -----------------------------------
-- Area: FeiYin
-- NPC: HomePoint#1
-- @pos 243 -24.5 62 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/homepoint");
-... | gpl-3.0 |
lualatex/luaotfload | src/fontloader/misc/fontloader-util-fil.lua | 3 | 5548 | if not modules then modules = { } end modules ['util-fil'] = {
version = 1.001,
comment = "companion to luat-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local byte = string.... | gpl-2.0 |
PicassoCT/Journeywar | gamedata/explosions/bg_bloodslay.lua | 1 | 1802 | -- blood_spray
return {
["bgbloodslay"] = {
bitmapmuzzleflame = {
air = true,
class = [[CBitmapMuzzleFlame]],
count = 3,
ground = true,
underwater = 1,
water = true,
... | gpl-3.0 |
immibis/wiremod | lua/wire/stools/spu.lua | 9 | 5971 | WireToolSetup.setCategory( "Chips, Gates", "Other/Sound", "Advanced" )
WireToolSetup.open( "spu", "SPU", "gmod_wire_spu", nil, "SPUs" )
if CLIENT then
language.Add("Tool.wire_spu.name", "SPU Tool (Wire)")
language.Add("Tool.wire_spu.desc", "Spawns a sound processing unit")
language.Add("Tool.wire_spu.0", "Pri... | apache-2.0 |
b03605079/darkstar | scripts/commands/jail.lua | 3 | 2148 | ---------------------------------------------------------------------------------------------------
-- func: jail
-- auth: Loraunt :: Modded by atom0s.
-- desc: Sends the target player to jail. (Mordion Gaol)
---------------------------------------------------------------------------------------------------
cmdp... | gpl-3.0 |
Aquanim/Zero-K | units/striderarty.lua | 2 | 4076 | return { striderarty = {
unitname = [[striderarty]],
name = [[Merlin]],
description = [[Heavy Saturation Artillery Strider]],
acceleration = 0.328,
brakeRate = 1.165,
buildCostMetal = 3500,
builder = false,
buildPic... | gpl-2.0 |
immibis/wiremod | lua/wire/gates/entity.lua | 9 | 25689 | --[[
Entity gates
]]
GateActions("Entity")
local function checkv( v )
return -math.huge < v.x and v.x < math.huge and
-math.huge < v.y and v.y < math.huge and
-math.huge < v.z and v.z < math.huge
end
local function checka( v )
return -math.huge < v.p and v.p < math.huge and
-math.huge < v.y and v.y < m... | apache-2.0 |
moteus/luacov-coveralls | src/luacov/reporter/coveralls.lua | 1 | 12676 |
local coveralls = {}
local luacov_reporter = require"luacov.reporter"
local utils = require"luacov.coveralls.utils"
local ci = require"luacov.coveralls.CiInfo"
local CiRepo = require"luacov.coveralls.CiRepo"
local json = utils.json
local unix_path = require"path".new(... | mit |
xpol/luarocks | src/luarocks/install.lua | 6 | 7272 | --- Module implementing the LuaRocks "install" command.
-- Installs binary rocks.
local install = {}
package.loaded["luarocks.install"] = install
local path = require("luarocks.path")
local repos = require("luarocks.repos")
local fetch = require("luarocks.fetch")
local util = require("luarocks.util")
local fs = requir... | mit |
b03605079/darkstar | scripts/zones/Chamber_of_Oracles/TextIDs.lua | 5 | 1386 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6382; -- Obtained: <item>
GIL_OBTAINED = 6383; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Obtain... | gpl-3.0 |
stars2014/quick-ng | quick/samples/touch/src/app/scenes/TestSingleTouch4Scene.lua | 8 | 1631 |
import("..includes.functions")
local TestSingleTouch2Scene = class("TestSingleTouch2Scene", function()
return display.newScene("TestSingleTouch2Scene")
end)
function TestSingleTouch2Scene:ctor()
-- touchableNode 是启用触摸的 Node
self.touchableNode = display.newNode()
self.touchableNode:setPosition(display... | mit |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Muyadah.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Muyadah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Rasdinice.lua | 36 | 1113 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rasdinice
-- @zone 80
-- @pos -8 1 35
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
--------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/calamity.lua | 30 | 1485 | -----------------------------------
-- Calamity
-- Axe weapon skill
-- Skill level: 200 (Beastmasters and Warriors only.)
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- El... | gpl-3.0 |
cs-willian-silva/vlc | share/lua/meta/fetcher/tvrage.lua | 66 | 2629 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 2010 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any l... | gpl-2.0 |
larsnorbergofficial/DiabolicUI | modules/blizzard/popups.lua | 2 | 4111 | local _, Engine = ...
local Module = Engine:NewModule("Blizzard: PopUps")
-- Lua API
local _G = _G
Module.StylePopUp = function(self, popup)
if not self.styled then
self.styled = {}
end
local config = self.config.popup
-- add a bigger backdrop frame with room for our larger buttons
if not popup.backdrop then
... | mit |
ld-test/objectlua | src/objectlua/bootstrap.lua | 4 | 3168 | local bootstrap = {}
----
-- Helper methods
local function delegated(table)
if nil == rawget(table, '__index') then
rawset(table, '__index', table)
rawset(table, '__metatable', 'private')
end
return setmetatable({}, table)
end
local function basicNew(self)
assert(nil ~= self.__prototype__)
... | mit |
GNOME/grilo-plugins | src/lua-factory/sources/grl-theaudiodb-cover.lua | 3 | 3483 | --[[
* Copyright © 2018 The Grilo Developers.
*
* Contact: Jean Felder <jfelder@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at y... | lgpl-2.1 |
b03605079/darkstar | scripts/globals/items/serving_of_mushroom_sautee.lua | 35 | 1309 | -----------------------------------------
-- ID: 5676
-- Item: serving_of_mushroom_sautee
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- MP 60
-- Mind 6
-- MP Recovered While Healing 6
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/dish_of_spaghetti_tonno_rosso_+1.lua | 36 | 1340 | -----------------------------------------
-- ID: 5624
-- Item: Dish of Spaghetti Tonno Rosso +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Health % 13
-- Health Cap 185
-- Dexterity 2
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
------... | gpl-3.0 |
felipeprov/premake-core | tests/project/test_getconfig.lua | 4 | 2465 | --
-- tests/project/test_getconfig.lua
-- Test the project object configuration accessor.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_getconfig")
--
-- Setup and teardown
--
local sln, prj, cfg
function suite.setup()
sln = solution("MySolution")
con... | bsd-3-clause |
Aquanim/Zero-K | LuaRules/Gadgets/unit_radar_wobble.lua | 6 | 1617 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
if (not gadgetHandler:IsSyncedCode()) then
return
end
-------------------------------------------------------------------------------------
----... | gpl-2.0 |
DI3HARD139/dcb-everamzah- | mods/server/namesperip.lua | 1 | 3014 | minetest.register_privilege("whois", {
description = "Allows player to see other player IPs"})
-- Created by Krock to stop mass-account-creators
-- License: WTFPL
ipnames = {}
ipnames.data = {}
ipnames.tmp_data = {}
ipnames.changes = false
ipnames.save_interval = 120
ipnames.save_time = 0
ipnames.file = minetest.... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/unit_smart_nanos.lua | 6 | 15806 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: unit_smart_nanos.lua
-- brief: Enables auto reclaim & repair for idle turrets
-- author: Owen Martindell
--
-- Copyright (C) 2008.
-- L... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/PhysicsJointGroove.lua | 18 | 2341 |
--------------------------------
-- @module PhysicsJointGroove
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
-- Set the anchor point on body b.
-- @function [parent=#PhysicsJointGroove] setAnchr2
-- @param self
-- @param #vec2_table anchr2
-- @return PhysicsJointGroove#PhysicsJointGr... | mit |
jsykes/million-tile-engine | src/DebugStats.lua | 1 | 5649 | local DebugStats = {}
local Camera = require("src.Camera")
local Map = require("src.Map")
-----------------------------------------------------------
local displayGroup = display.newGroup();
local prevTime = 0
local dbTog = 0
local dCount = 1
local memory = "0"
local mod
local rectCount
local debugX
local debugY
loca... | mit |
Aquanim/Zero-K | LuaRules/Utilities/debugFunctions.lua | 2 | 2275 | function Spring.Utilities.Traceback(condition)
if condition then
Spring.Echo(debug.traceback())
end
end
local cmdNames = {} -- [cmdID] = "NAME"
for key, value in pairs(CMD) do
if type(key) == "number" then -- also contains reverse mappings and stuff like OPT_CTRL, but those are strings
cmdNames[key] = value
e... | gpl-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/exp_nuke_effect_chooser.lua | 6 | 1184 | function gadget:GetInfo()
return {
name = "Nuke Explosion Chooser",
desc = "Chooses which nuke explosion to spawn based on altitude.",
author = "jK, Anarchid",
date = "Dec, 2007",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
local GetGround... | gpl-2.0 |
felipeprov/premake-core | tests/base/test_aliasing.lua | 22 | 1408 | --
-- tests/base/test_aliasing.lua
-- Verify handling of function aliases.
-- Copyright (c) 2015 Jason Perkins and the Premake project
--
local suite = test.declare("premake_alias")
local p = premake
function suite.setup()
suite.testfunc = function()
return 48
end
suite.aliased = nil
suite.aliased2 = ... | bsd-3-clause |
khemael/mysql-proxy-cache | mysql-proxy-cache.lua | 3 | 3104 | require('luarocks.require')
require('md5')
require('Memcached')
local memcache = Memcached.Connect()
cache_hits = 0
cache_misses = 0
cache_timeout = 30
function is_query(packet)
return packet:byte() == proxy.COM_QUERY
end
function is_cacheable(query)
return query:sub(1,6):lower() == 'select'
end
function to_h... | bsd-3-clause |
b03605079/darkstar | scripts/zones/Riverne-Site_A01/npcs/Spatial_Displacement.lua | 7 | 2971 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Spacial Displacement
-----------------------------------
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger
--------------... | gpl-3.0 |
Sakura-Winkey/LuCI | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-voice.lua | 68 | 1280 | -- 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", "")
voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
serveremail = voicegene... | apache-2.0 |
b03605079/darkstar | scripts/zones/Windurst_Walls/npcs/HomePoint#1.lua | 12 | 1262 | -----------------------------------
-- Area: Windurst Walls
-- NPC: HomePoint#1
-- @pos -72.069 -5.013 124.784 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
require(... | gpl-3.0 |
PicassoCT/Journeywar | units/centrail/cstrider.lua | 1 | 1324 | local unitName = "cstrider"
local unitDef = {
name = "Strider",
Description = "heavy Synth Tripod <Tank Unit>",
objectName = "strider.s3o",
script = "striderscript.lua",
buildPic = "cstrider.png",
--cost
buildCostMetal = 2500,
buildCostEnergy = 1200,
buildTime = 120,
--Health
maxDamage = 10500,
idleAutoHea... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Quicksand_Caves/npcs/Treasure_Coffer.lua | 12 | 3912 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Treasure Coffer
-- @zone 208
-- @pos 615 -6 -681
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
ZigzagAK/nginx-resty-auto-healthcheck-config | lua/initd/init.lua | 1 | 1705 | local _M = {
_VERSION = "2.1.0"
}
local load_modules = lib.load_modules
local process_modules = lib.process_modules
local module_type = lib.module_type()
local ngx_log = ngx.log
local INFO = ngx.INFO
local function init_globals()
ngx_log(INFO, "[", module_type ,"] globals")
local modules = load_modules("lua/... | bsd-2-clause |
PicassoCT/Journeywar | LuaUI/widgets/chili/controls/stackpanel.lua | 18 | 1115 | --//=============================================================================
--- StackPanel module
--- StackPanel fields.
-- Inherits from LayoutPanel.
-- @see layoutpanel.LayoutPanel
-- @table StackPanel
StackPanel = LayoutPanel:Inherit{
classname = "stackpanel",
orientation = "vertical",
resizeItems = tr... | gpl-3.0 |
geoffleyland/rima | lua/rima/lib/object.lua | 1 | 3023 | -- Copyright (c) 2009-2013 Incremental IP Limited
-- see LICENSE for license information
--- Yet *another* Lua type system.
-- This one uses the type system described in PiL, and adds a `__typename`
-- field to the metatable with the object's typename and a `__typeinfo`
-- field that's a set of all the object's an... | mit |
b03605079/darkstar | scripts/zones/Windurst_Waters_[S]/TextIDs.lua | 4 | 1261 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6382; -- Obtained: <item>
GIL_OBTAINED = 6383; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Ob... | gpl-3.0 |
samijon/online | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | gpl-2.0 |
arychen/GlobalCall | feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/dns.lua | 68 | 2109 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.dns", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
local traffic = {
title = "%H: DNS traffic", vlabel = "Bit/s",
data = {
sou... | gpl-2.0 |
morcmarc/blackstar | vendor/light_world/lib/anim8.lua | 40 | 8143 | local anim8 = {
_VERSION = 'anim8 v2.1.0',
_DESCRIPTION = 'An animation library for LÖVE',
_URL = 'https://github.com/kikito/anim8',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of ... | mit |
b03605079/darkstar | scripts/globals/spells/bluemagic/amplification.lua | 3 | 1118 | -----------------------------------------
-- Spell: Amplification
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
----------------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua | 17 | 1896 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Sewer Entrance
-- @pos 28 -12 44 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/m... | gpl-3.0 |
PicassoCT/Journeywar | units/gaia/blooddecalFactory1.lua | 1 | 1209 | local unitName = "blooddecalfactory1"
local unitDef = {
name = "DecallFactory",
Description = "ThereForTheDecal",
objectName = "emptyObjectIsEmpty.s3o",
script = "decalFactory.lua",
buildPic = "placeholder.png",
--cost
buildCostMetal = 0,
buildCostEnergy = 0,
buildTime =1,
--Health
maxDamage = 1200,
idleAutoHeal = 0,
... | gpl-3.0 |
shayanchabok007/antispam_teleseed | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | gpl-2.0 |
iiborn/M | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | gpl-2.0 |
b03605079/darkstar | scripts/zones/RuLude_Gardens/npcs/Maat.lua | 16 | 9404 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Maat
-- Starts and Finishes Quest: Limit Break Quest 1-5
-- Involved in Quests: Beat Around the Bushin
-- @zone 243
-- @pos 8 3 118
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loa... | gpl-3.0 |
damonkohler/cartographer_turtlebot | cartographer_turtlebot/configuration_files/turtlebot_urg_lidar_2d.lua | 1 | 1635 | -- Copyright 2016 The Cartographer Authors
--
-- 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... | apache-2.0 |
Sakura-Winkey/LuCI | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 68 | 1787 | -- 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", "")
iax = cbimap:section(TypedSection, "iax", "IAX Connection", "")
iax.addremove = true
alwaysinternational = iax:optio... | apache-2.0 |
DI3HARD139/dcb-everamzah- | mods/crops/potato.lua | 1 | 5817 |
--[[
Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org>
"crops" is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1
of the license, or (at your option) any later version.
--]]
minete... | gpl-3.0 |
crazyboy11/crazyboy | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | gpl-2.0 |
MPCTeam/SpiderBot | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | agpl-3.0 |
stars2014/quick-ng | quick/samples/tests/src/tests/framework/eventTest.lua | 8 | 2239 |
local EventTestScene = game.createSceneClass("EventTestScene")
function EventTestScene:ctor()
self:prepare({
description = "Please check console output"
})
local items = {
"addEventListener",
"removeEventListener",
"removeAllListener",
"removeCoin",
"sendEv... | mit |
redstormbot/rsbi | libs/dkjson.lua | 3282 | 26558 | -- 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.4*
In the default configuration this module writes no global values... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Horlais_Peak/npcs/Burning_Circle.lua | 12 | 1985 | -----------------------------------
-- Area: Horlais Peak
-- NPC: Burning Circle
-- Horlais Peak Burning Circle
-- @pos -509 158 -211 139
-------------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
r... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Gadgets/awards.lua | 3 | 22304 | function gadget:GetInfo()
return {
name = "Awards",
desc = "v1.002 Awards players at end of battle with shiny trophies.",
author = "CarRepairer",
date = "2008-10-15", --2013-09-05
license = "GNU GPL, v2 or later",
layer = 1000000, -- Must be after all other build steps and before unit_spawner.l... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Yhoator_Jungle/Zone.lua | 2 | 2430 | -----------------------------------
--
-- Zone: Yhoator_Jungle (124)
--
-----------------------------------
package.loaded[ "scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Yhoator_Jungle/TextIDs");
require("scripts/globals/icanheararainbow");
require(... | gpl-3.0 |
jsykes/million-tile-engine | legacy/Million Tile Engine 0v990/Sample Projects/Coronastein3D (Experimental)/Coronastein3D 48/main.lua | 1 | 4610 | --[[
Coronastein3D Build 48 is the furthest development build of CS3D. It supports animated walls,
walls of varying transparency and height, multiple map layers (of walls), and angled walls.
This build is incredibly demanding on hardware and will only run at about 9fps on an iPhone 5c.
Further optimizations might be p... | mit |
pwpiwi/proxmark3 | client/lualibs/default_toys.lua | 6 | 4577 | local _names = {
--[[
--]]
["0000"]="WHIRLWIND",
["0100"]="SONIC BOOM",
["0200"]="WARNADO",
["0300"]="LIGHTNINGROD",
["0400"]="BASH",
["0500"]="TERRAFIN",
["0600"]="DINORANG" ,
["0700"]="LIGHTCORE PRISM BREAK",
["0800"]="SUNBURN",
["0900"]="LIGHTCORE ERUPTOR",
["0A00"]="IGNITOR",
["0B00"]="FLAMESLIN... | gpl-2.0 |
Wiladams/LJIT2s2n | stuffer/s2n_stuffer.lua | 1 | 8275 | local ffi = require("ffi")
local s2n_blob = require ("utils.s2n_blob")
ffi.cdef[[
struct s2n_stuffer {
/* The data for the s2n_stuffer */
struct s2n_blob blob;
/* Cursors to the current read/write position in the s2n_stuffer */
uint32_t read_cursor;
uint32_t write_cursor;
/* The total size o... | mit |
b03605079/darkstar | scripts/zones/Horlais_Peak/bcnms/rank_2_mission.lua | 13 | 2316 | -----------------------------------
-- Area: Horlais Peak
-- Name: Mission Rank 2
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
requi... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.