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 |
|---|---|---|---|---|---|
AttacqueSuperior/Engine | mods/ra/maps/soviet-08a/soviet08a-AI.lua | 2 | 4601 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Mleaf/mleaf_luci | protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua | 74 | 4349 | --[[
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... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ColorFrame.lua | 10 | 1295 |
--------------------------------
-- @module ColorFrame
-- @extend Frame
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ColorFrame] getAlpha
-- @param self
-- @return unsigned char#unsigned char ret (return value: unsigned char)
--------------------------------
--
-- @funct... | mit |
telbbs/luci-0.12 | contrib/luadoc/lua/luadoc/doclet/debug.lua | 175 | 1048 | -----------------------------------------------------------------
-- LuaDoc debugging facilities.
-- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $
-----------------------------------------------------------------
module "luadoc.doclet.debug"
function printline()
print(string.rep('-', 79))
end
------... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Gusgen_Mines/npcs/qm2.lua | 11 | 2177 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm2 (???)
-- Involved In Mission: Bastok 3-2
-- @pos 206 -60 -101 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
requi... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Catalia.lua | 38 | 1037 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Catalia
-- Type: Standard NPC
-- @zone: 241
-- @pos -46.160 -0.501 -32.698
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/North_Gustaberg/npcs/Kuleo.lua | 17 | 1862 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Kuleo
-- Type: Outpost Vendor
-- @pos -586 39 61 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/g... | gpl-3.0 |
amenophis1er/prosody-modules | mod_webpresence/mod_webpresence.lua | 32 | 3926 | module:depends("http");
local jid_split = require "util.jid".prepped_split;
local b64 = require "util.encodings".base64.encode;
local sha1 = require "util.hashes".sha1;
local stanza = require "util.stanza".stanza;
local json = require "util.json".encode_ordered;
local function require_resource(name)
local icon_pa... | mit |
xvaara/kong | kong/kong.lua | 1 | 5181 | -- Kong, the biggest ape in town
--
-- /\ ____
-- <> ( oo )
-- <>_| ^^ |_
-- <> @ \
-- /~~\ . . _ |
-- /~~~~\ | |
-- /~~~~~~\/ _| |
-- |[][][]/ / [m]
-- |[][][[m]
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[][][]|
-- |[|--|]|
-- |[|... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_freya/modifier_freya_pain_reflection.lua | 1 | 1206 | modifier_freya_pain_reflection = class({})
function modifier_freya_pain_reflection:IsPurgable()
return false
end
function modifier_freya_pain_reflection:GetEffectName()
return "particles/arena/units/heroes/hero_freya/pain_reflection.vpcf"
end
function modifier_freya_pain_reflection:GetEffectAttachType()
return PA... | mit |
risteaandrei/price_checker | lib/civetweb/test/page_keep_alive.lua | 11 | 1089 | -- Set keep_alive. The return value specifies if this is possible at all.
canKeepAlive = mg.keep_alive(true)
if canKeepAlive then
-- Create the entire response in a string variable first. Content-Length will be set to the length of this string.
reply = [[
<html><body>
<p>This is a Lua script su... | lgpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Chester Kahs.lua | 3 | 1704 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCr... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Ajax.lua | 1 | 2417 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
funct... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/buttered_nebimonite.lua | 35 | 1401 | -----------------------------------------
-- ID: 4267
-- Item: Buttered Nebimonite
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- defense % 25
-- defense Cap 75
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
scorpiovn/dotfiles | config/awesome/rc.lua | 2 | 18011 | -- 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
local beautiful = require("beautiful")
-- Notification library
local naughty = r... | mit |
BooM-amour/test | plugins/portuguese_lang.lua | 18 | 17374 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/qm2.lua | 9 | 1842 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: qm2
-- Type: Quest NPC
-- @pos 143 9 -219 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Maze_of_Shakhrami/TextIDs");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h2.lua | 36 | 1319 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
---------... | gpl-3.0 |
dpino/snabb | src/apps/ipv6/ns_responder.lua | 14 | 3509 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- This app acts as a responder for neighbor solicitaions for a
-- specific target address and as a relay for all other packets. It
-- has two ports, north and south. The south port attaches to a port
-- on which NS messages are expected.... | apache-2.0 |
ToxicFrog/luautil | flags.lua | 2 | 8744 | --[[
flags.register("v", "verbose")
flags.register("x", "extract") {
key = "mode";
}
flags.register("l", "list") {
key = "mode";
}
flags.register("r", "res") {
type = flags.list;
}
Default type is boolean, meaning that -f --foo (set) +f --no-foo (unset) are
valid.
If type is anything other than boolean, it requ... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 36 | 1859 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Wat... | gpl-3.0 |
Mleaf/mleaf_luci | modules/base/luasrc/template.lua | 68 | 3061 | --[[
LuCI - Template Parser
Description:
A template parser supporting includes, translations, Lua code blocks
and more. It can be used either as a compiler or as an interpreter.
FileId: $Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you... | apache-2.0 |
dpino/snabb | lib/ljsyscall/syscall/linux/syscalls.lua | 3 | 29488 | -- This is the actual system calls for Linux
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = requi... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h1.lua | 17 | 2271 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Prince Regent's Rm
-- Starts and Finishes Quest: Prelude of Black and White (Start), Pieuje's Decision (Start)
-- @pos -37 -3 31 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
----... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_containers_errors.lua | 3 | 4686 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
dpino/snabb | lib/ljsyscall/syscall/linux/netfilter.lua | 24 | 1233 | -- module for netfilter code
-- will cover iptables, ip6tables, ebtables, arptables eventually
-- even less documentation than for netlink but it does not look too bad...
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error,... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/La_Theine_Plateau/npcs/Coumaine.lua | 28 | 1756 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Coumaine
-- Type: Chocobo Vendor
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------... | gpl-3.0 |
naader1380/n2 | bot/bot.lua | 1 | 7396 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
require("./bot/permissions")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:... | gpl-2.0 |
Velkon/DarkRP | gamemode/modules/afk/sv_interface.lua | 7 | 1386 | DarkRP.hookStub{
name = "playerAFKDemoted",
description = "When a player is demoted for being AFK.",
parameters = {
{
name = "ply",
description = "The player being demoted.",
type = "Player"
}
},
returns = {
{
name = "shouldDemo... | mit |
Kthulupwns/darkstar | scripts/globals/items/walnut.lua | 36 | 1072 | -----------------------------------------
-- ID: 5661
-- Item: Walnut
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------------------------... | gpl-3.0 |
WidgetInteractive/Scholar | libs/LibAddonMenu-2.0/controls/colorpicker.lua | 6 | 4630 | --[[colorpickerData = {
type = "colorpicker",
name = "My Color Picker", -- or string id or function returning a string
getFunc = function() return db.r, db.g, db.b, db.a end, --(alpha is optional)
setFunc = function(r,g,b,a) db.r=r, db.g=g, db.b=b, db.a=a end, --(alpha is optional)
tooltip = "C... | gpl-2.0 |
AttacqueSuperior/Engine | mods/d2k/maps/ordos-01b/ordos01b.lua | 2 | 5019 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
murven/malmo | Malmo/test/LuaTests/test_ALE_built.lua | 2 | 2835 | -- --------------------------------------------------------------------------------------------------
-- Copyright (c) 2016 Microsoft Corporation
--
-- 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 th... | mit |
Kthulupwns/darkstar | scripts/zones/Horlais_Peak/bcnms/contaminated_colosseum.lua | 13 | 1776 | -----------------------------------
-- Area: Horlias peak
-- Name: contaminated_colosseum
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/... | gpl-3.0 |
xvaara/kong | spec/integration/cli/cmds/start_spec.lua | 1 | 6439 | local spec_helper = require "spec.spec_helpers"
local yaml = require "yaml"
local IO = require "kong.tools.io"
local http_client = require "kong.tools.http_client"
local TEST_CONF = spec_helper.get_env().conf_file
local SERVER_CONF = "kong_TEST_SERVER.yml"
local API_URL = spec_helper.API_URL
local function replace_c... | apache-2.0 |
daurnimator/luasodium | sodium/crypto_generichash.lua | 2 | 4523 | local ffi = require "ffi"
local lib = ffi.load "sodium"
ffi.cdef [[
#pragma pack(push, 1)
__attribute__((aligned(64))) typedef struct crypto_generichash_blake2b_state {
uint64_t h[8];
uint64_t t[2];
uint64_t f[2];
uint8_t buf[2 * 128U];
size_t buflen;
uint8_t last_node;
} crypto_generichash_bla... | mit |
mlody1039/ModernOts | data/npc/scripts/Walter, The Guard.lua | 1 | 2009 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/kurayami_ichi.lua | 11 | 1059 | -----------------------------------------
-- Spell: Kurayami:Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(c... | gpl-3.0 |
morteza1185/tele-red-bot | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
fegimanam/phw | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Raqtibahl.lua | 34 | 1377 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Raqtibahl
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Tex... | gpl-3.0 |
a-wortman/blingbling | value_text_box.lua | 2 | 12188 | -- @author cedlemo
local setmetatable = setmetatable
local ipairs = ipairs
local math = math
local table = table
local type = type
local string = string
local color = require("gears.color")
local base = require("wibox.widget.base")
local helpers = require("blingbling.helpers")
local superproperties = require("blingb... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/asuran_fists.lua | 30 | 1676 | -----------------------------------
-- Asuran Fists
-- Hand-to-Hand weapon skill
-- Skill Level: 250
-- Delivers an eightfold attack. params.accuracy varies with TP.
-- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed.
-- Due to the 95% params.accuracy cap there is only a 66% ch... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/logging/cl_init.lua | 5 | 1114 | /*---------------------------------------------------------------------------
Log a message to console
---------------------------------------------------------------------------*/
local function AdminLog(um)
local colour = Color(um:ReadShort(), um:ReadShort(), um:ReadShort())
local text = DarkRP.deLocalise(um:... | mit |
Kthulupwns/darkstar | scripts/zones/Sacrificial_Chamber/Zone.lua | 9 | 2087 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/miss... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/modifiers/modifier_arena_hero.lua | 1 | 9462 | modifier_arena_hero = class({
IsPurgable = function() return false end,
IsHidden = function() return true end,
RemoveOnDeath = function() return false end,
GetAttributes = function() return MODIFIER_ATTRIBUTE_PERMANENT end,
})
function modifier_arena_hero:DeclareFunctions()
return {
MODIFIER_EVENT_ON_AB... | mit |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Grounds_Tome.lua | 34 | 1155 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function ... | gpl-3.0 |
amenophis1er/prosody-modules | mod_pubsub_feeds/mod_pubsub_feeds.lua | 31 | 8246 | -- Fetches Atom feeds and publishes to PubSub nodes
--
-- Depends: http://code.matthewwild.co.uk/lua-feeds
--
-- Config:
-- Component "pubsub.example.com" "pubsub"
-- modules_enabled = {
-- "pubsub_feeds";
-- }
-- feeds = { -- node -> url
-- prosody_blog = "http://blog.prosody.im/feed/atom.xml";
-- }
-- feed_pull_i... | mit |
ASHRAF97/ASHRAFKASPERV3 | DevProx/DevProx.lua | 1 | 8116 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./DevProx/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function... | gpl-2.0 |
ark120202/aabs | game/scripts/vscripts/modules/console/console.lua | 1 | 3487 | Console = Console or {}
Events:Register("activate", function ()
CustomGameEventManager:RegisterListener("console-evaluate", Dynamic_Wrap(Console, "ConsoleEvaluate"))
Convars:RegisterCommand("arena_console", function()
local player = Convars:GetCommandClient()
Console:SetVisible(player)
end, "Toggle Angel Arena... | mit |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/1000_needles.lua | 3 | 1147 | -----------------------------------------
-- 1000 Needles
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
f... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua | 13 | 1701 | -----------------------------------
-- Area: Horlias peak
-- Name: Hostile Herbivores
-- BCNM50
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAM... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rn.lua | 17 | 1624 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rn (Oil lamp)
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua | 9 | 1983 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Hume Bones
-- Involved in Quests: Blue Ribbon Blues
-- @pos 299 0.1 19 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Dedden_IM.lua | 30 | 3067 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Dedden, I.M.
-- Border Conquest Guards
-- @pos -252.454 -1.958 624.366 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/cure_vi.lua | 13 | 3520 | -----------------------------------------
-- Spell: Cure VI
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
dpino/snabb | src/program/config/common.lua | 3 | 6904 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local lib = require("core.lib")
local shm = require("core.shm")
local rpc = require("lib.yang.rpc")
local yang = require("lib.yang.yang")
local data = requi... | apache-2.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/email.lua | 73 | 1673 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("E-Mail Plugin Configuration"),
translate(
"The email plugin creates a unix socket which can be used " ..
"to transmit email-statistics to a running ... | apache-2.0 |
manamkasibodam/kdonsnke | plugins/anti_spam.lua | 417 | 3978 |
--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 |
ningg/Atlas | lib/proxy/charset.lua | 41 | 2873 | module("proxy.charset", package.seeall)
local config_file = string.format("proxy.conf.config_%s", proxy.global.config.instance)
local config = require(config_file)
local log = require("proxy.log")
local level = log.level
local write_log = log.write_log
function modify_charset(tokens, c, s)
write_log(level.DEBUG, "... | gpl-2.0 |
dpino/snabb | lib/ljsyscall/syscall/linux/arm64/nr.lua | 24 | 5171 | -- arm64 syscall numbers are the new architecture defaults
-- so we could reuse this file for other architectures
-- note that there are some name differences for new 32 bit architectures
local nr = {
SYS = {
io_setup = 0,
io_destroy = 1,
io_submit = 2,
io_cancel = 3,
io_getevents = 4,
setxattr = 5,
ls... | apache-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/main.lua | 8 | 2125 |
cc.FileUtils:getInstance():addSearchPath("src")
cc.FileUtils:getInstance():addSearchPath("src/actors")
cc.FileUtils:getInstance():addSearchPath("res")
-- CC_USE_DEPRECATED_API = true
require "cocos.init"
-- cclog
local cclog = function(...)
print(string.format(...))
end
-- for CCLuaEngine traceback
function __G... | mit |
TheRowanA/DarkRPSk-MoneyPrinters | lua/entities/iron_printer/init.lua | 1 | 6186 |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
-- [ ALTER THESE VALUES ] ----
local printTime = 240 -- How long the printer takes to generate money.
local minPrint = 1400 -- The minimum amount the printer can generate.
local maxPrint = 2100 -- The maximum amou... | gpl-2.0 |
FPtje/DarkRP | gamemode/modules/workarounds/sh_workarounds.lua | 1 | 15097 | -- Shared part
function DarkRP.getAvailableVehicles()
local vehicles = list.Get("Vehicles")
for _, v in pairs(list.Get("SCarsList")) do
vehicles[v.PrintName] = {
Name = v.PrintName,
Class = v.ClassName,
Model = v.CarModel
}
end
return vehicles
end
l... | mit |
kuoruan/luci | applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua | 18 | 2039 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
local nixio = require "nixio"
m = Map("pppoe", translate("Roaring Penguin PPPoE Server"),
translate("PPPoE Server Configuration"))
s = m:section(TypedSection, "pppoe_server", tran... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Zeruhn_Mines/Zone.lua | 30 | 2566 | -----------------------------------
--
-- Zone: Zeruhn_Mines (172)
--
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/zone");
require("scripts/zones/Zeruhn_Mines/Tex... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/infernal_scythe.lua | 12 | 1520 | -----------------------------------
-- Infernal Scythe
-- Scythe weapon skill
-- Skill Level: 300
-- Deals darkness elemental damage and lowers target's attack. Duration of effect varies with TP.
-- Attack Down effect is -25% attack.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Bel... | gpl-3.0 |
rohanp/Algorithm-Implementations | Pi_Algorithms/Lua/Yonaba/pi.lua | 26 | 3259 | -- Pi approximation algorithms implementation
-- See: http://en.wikipedia.org/wiki/Pi
-- Utility functions
-- Computes the factorial of a given number
local function fact(n)
return n == 0 and 1 or n * fact(n - 1)
end
-- Evaluates Pi using a random and statistical approach
-- (Monte-Carlo method) to evaluate pi
-... | mit |
Kthulupwns/darkstar | scripts/zones/Beadeaux/npcs/Treasure_Chest.lua | 12 | 2555 | -----------------------------------
-- Area: Beadeaux
-- NPC: Treasure Chest
-- @zone 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Bea... | gpl-3.0 |
dpino/snabb | src/apps/intel_mp/intel_mp.lua | 3 | 61231 | -- intel_mp: Device driver app for Intel 1G and 10G network cards
-- It supports
-- - Intel1G i210 and i350 based 1G network cards
-- - Intel82599 82599 based 10G network cards
-- The driver supports multiple processes connecting to the same physical nic.
-- Per process RX / TX queues are available via RSS. Stati... | apache-2.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/farming/init.lua | 1 | 1442 | -- Global farming namespace
farming = {}
farming.path = minetest.get_modpath("farming")
-- Load files
dofile(farming.path .. "/api.lua")
dofile(farming.path .. "/nodes.lua")
dofile(farming.path .. "/hoes.lua")
-- WHEAT
farming.register_plant("farming:wheat", {
description = "Wheat seed",
inventory_image = "farming_... | lgpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Spire_of_Mea/npcs/_0l0.lua | 12 | 1455 | -----------------------------------
-- Area: Spire of Mea
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/global... | gpl-3.0 |
AttacqueSuperior/Engine | mods/ra/maps/allies-06a/allies06a.lua | 2 | 6900 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Castle_Oztroja/npcs/_479.lua | 17 | 1655 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _479 (Brass Door)
-- Involved in Mission "Saintly Invitation"
-- @pos -99 -59 84 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
kuoruan/luci | applications/luci-app-asterisk/luasrc/controller/asterisk.lua | 68 | 7285 | -- 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.
module("luci.controller.asterisk", package.seeall)
function index()
entry({"admin", "services", "asterisk"}, cbi("asterisk"), "Asterisk", 80)
... | apache-2.0 |
jlopenwrtluci/luci | modules/luci-mod-admin-full/luasrc/controller/admin/index.lua | 1 | 1094 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.index", package.seeall)
function index()
local root = node()
if not root.target then
root.target = alias("admin")
root.index = true
end
local page = node("admin")
page.... | apache-2.0 |
AttacqueSuperior/Engine | mods/cnc/maps/gdi04b/gdi04b.lua | 2 | 5294 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/effects/aftermath_lv1.lua | 17 | 1099 | -----------------------------------
--
-- EFFECT_AFTERMATH_LV1
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if... | gpl-3.0 |
aa65535/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 15 | 3780 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have
local pss... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Shey_Wayatih.lua | 12 | 1379 | -----------------------------------
-- Area: Kazham
-- NPC: Shey Wayatih
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/pets/healing_breath_ii.lua | 6 | 1273 | ---------------------------------------------------
-- Healing Breath II
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function onA... | gpl-3.0 |
Alig96/nzombies | nzombies3/gamemode/interfaces/sh_int_zombielinks.lua | 1 | 1777 | //
if SERVER then
function nz.Interfaces.Functions.ZombLinkHandler( ply, data )
if ply:IsSuperAdmin() then
data.ent.link = data.link
//For the link displayer
data.ent:SetLink(data.link)
end
end
end
if CLIENT then
function nz.Interfaces.Functions.ZombLink( data )
PrintTable(data)
local name = "Add ... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_traces_list.lua | 3 | 2484 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
ark120202/aabs | game/scripts/vscripts/modules/panorama_shop/panorama_shop.lua | 1 | 19122 | ModuleRequire(..., "data")
if PanoramaShop == nil then
_G.PanoramaShop = class({})
PanoramaShop._RawItemData = {}
PanoramaShop._ItemData = {}
PanoramaShop.FormattedData = {}
PanoramaShop.StocksTable = {
[DOTA_TEAM_GOODGUYS] = {},
[DOTA_TEAM_BADGUYS] = {},
[DOTA_TEAM_CUSTOM_1] = {},
[DOTA_TEAM_CUSTOM_2] = ... | mit |
dpino/snabb | lib/ljsyscall/include/lfs-tests/test.lua | 23 | 6377 | #!/usr/bin/env luajit
-- very slightly modified version of tests from https://github.com/keplerproject/luafilesystem
--[[
Copyright © 2003 Kepler Project.
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 S... | apache-2.0 |
mlody1039/ModernOts | data/npc/lib/npcsystem/keywordhandler.lua | 3 | 7144 | -- Advanced NPC System (Created by Jiddo),
-- Modified by Talaturen.
if(KeywordHandler == nil) then
BEHAVIOR_SIMPLE = 1 -- Does not support nested keywords. If you choose this setting you must use a variable such as 'talkState' to keep track of how to handle keywords.
BEHAVIOR_NORMAL = 2 -- Default behvaior. If a su... | gpl-3.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/minetest-mod-digilines-master/digilines_rtc/init.lua | 3 | 1270 | local GET_COMMAND = "GET"
local rtc_nodebox =
{
type = "fixed",
fixed = {
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
{ -7/16, -7/16, -7/16, 7/16, -5/16, 7/16 },
}
}
local rtc_selbox =
{
type = "fixed",
fixed = {{ -8/16, -8/16, -8/16, 8/16, -3/16, 8/16 }}
}
local on_digiline_receive = funct... | lgpl-3.0 |
pengzj/skynet | service/cdummy.lua | 12 | 1722 | local skynet = require "skynet"
local globalname = {}
local queryname = {}
local harbor = {}
skynet.register_protocol {
name = "harbor",
id = skynet.PTYPE_HARBOR,
pack = function(...) return ... end,
unpack = skynet.tostring,
}
skynet.register_protocol {
name = "text",
id = skynet.PTYPE_TEXT,
pack = function(... | mit |
cratejoy/RetroArch | libretro-db/tests.lua | 44 | 2401 | local testlib = require 'testlib'
local DB_FILE = "/tmp/tmp.rdb"
local function create_db(data)
local i = 1;
testlib.create_db(DB_FILE, function()
if i > #data then
return
end
res = data[i]
i = i + 1
return res
end)
local db, err = testlib.RarchDB(DB... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/GUIReader.lua | 10 | 1253 |
--------------------------------
-- @module GUIReader
-- @extend Ref
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#GUIReader] setFilePath
-- @param self
-- @param #string strFilePath
--------------------------------
--
-- @function [parent=#GUIReader] widgetFromJsonFile
... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua | 10 | 4234 |
--------------------------------
-- @module ProtectedNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- @overload self, cc.Node, int
-- @overload self, cc.Node
-- @overload self, cc.Node, int, int
-- @function [parent=#ProtectedNode] addProtectedChild
-- @param se... | mit |
murven/malmo | Malmo/test/LuaTests/test_parameter_set.lua | 2 | 2028 | -- --------------------------------------------------------------------------------------------------
-- Copyright (c) 2016 Microsoft Corporation
--
-- 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 th... | mit |
telbbs/luci-0.12 | modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | 57 | 3205 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
lo... | apache-2.0 |
gitpan/Redland | lua/test.lua | 5 | 3241 | --[[
* test.lua - Redland Lua Interface test program
*
* Joe Presbrey - http://presbrey.mit.edu/
* 2010-09-20
*
* This package is Free Software and part of Redland http://librdf.org/
*
* It is licensed under the following three licenses as alternatives:
* 1. GNU Lesser General Public License (LGPL) V2... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Tremors/npcs/Earth_Protocrystal.lua | 12 | 1761 | -----------------------------------
-- Area: Cloister of Tremors
-- NPC: Earth Protocrystal
-- Involved in Quest: Trial by Earth
-- @pos -539 1 -493 209
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/k... | gpl-3.0 |
risteaandrei/price_checker | lib/civetweb/test/1000images.lua | 11 | 8259 | mg.write("HTTP/1.1 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("Content-Type: text/html; charset=utf-8\r\n")
mg.write("\r\n")
t = os.time()
if not mg.request_info.query_string then
cnt = 1000
else
cnt = tonumber(mg.get_var(mg.request_info.query_string, "cnt"))
end
cnt = 100*math.floor(cn... | lgpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/npcs/Garnev.lua | 17 | 2220 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Garnev
-- Starts and Finishes Quest: Deal with Tenshodo
-- @zone 245
-- @pos 30 4 -36
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Numa.lua | 36 | 1824 | -----------------------------------
-- Area: Port Bastok
-- NPC: Numa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Dynamis-Valkurm/mobs/Adamantking_Effigy.lua | 17 | 2265 | -----------------------------------
-- Area: Dynamis Valkurm
-- NPC: Adamantking_Effigy
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Heumila.lua | 38 | 1030 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Heumila
-- Type: Past Event Watcher
-- @zone: 87
-- @pos
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.