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 |
|---|---|---|---|---|---|
RyMarq/Zero-K | LuaRules/Configs/StartBoxes/Claymore_v2.lua | 8 | 6410 | local supported_teamcounts = {2, 5, 6, 10, 11, 15, 16}
local L5 = {
{
{3479, 4688},
{3560, 4599},
{3712, 4559},
{3936, 4486},
{4159, 4434},
{4433, 4457},
{4606, 4586},
{4717, 4755},
{4792, 4941},
{4813, 5085},
{4751, 5208},
{4547, 5376},
{4386, 5554},
{4231, 5659},
{3974, 5669},
{3739,... | gpl-2.0 |
8devices/carambola2-new-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/memberconfig.lua | 110 | 1317 | -- ------ extra functions ------ --
function cbi_add_interface(field)
uci.cursor():foreach("mwan3", "interface",
function (section)
field:value(section[".name"])
end
)
end
-- ------ member configuration ------ --
dsp = require "luci.dispatcher"
arg[1] = arg[1] or ""
m5 = Map("mwan3", translate("MWAN Membe... | gpl-2.0 |
zhutaorun/2DPlatformer-SLua | Assets/StreamingAssets/Lua/Base/YwCodeTemplate_Helper.lua | 1 | 1287 | --
-- $(Class) class.
--
-- @filename $(Class).lua
-- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved.
-- @license The MIT License (MIT)
-- @author $(Author) @(AuthorName)@$(Mail).com
-- @date 2015-xx-xx
--
local YwRegisterObject = require "Base/YwRegiste... | mit |
Har1eyquinn/Watch_Dog | plugins/help.lua | 337 | 5009 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/demon-plane/npcs.lua | 3 | 2973 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/demon_teleport.lua | 3 | 1741 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
madpilot78/ntopng | scripts/locales/cz.lua | 1 | 237713 | local lang = {
["abort"] = "Přerušit",
["actions"] = "Akce",
["activities"] = "Aktivity",
["activity"] = "Aktivita",
["advanced"] = "Pokročilé",
["aggregation"] = "Agregace",
["alias"] = "Alias",
["all"] = "Vše",
["allowed"] = "Povoleno",
["any"] = "Jakýkoliv",
["app_name"] = "Název Aplikace",
[... | gpl-3.0 |
TerminalShell/zombiesurvival | gamemode/cl_targetid.lua | 1 | 2224 | local trace = {mask = MASK_SHOT, mins = Vector(-2, -2, -2), maxs = Vector(2, 2, 2), filter = {}}
local entitylist = {}
local colTemp = Color(255, 255, 255)
function GM:DrawTargetID(ent, fade)
fade = fade or 1
local ts = ent:GetPos():ToScreen()
local x, y = ts.x, math.Clamp(ts.y, 0, ScrH() * 0.95)
colTemp.a = fade... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/boss-artifacts-far-east.lua | 2 | 18668 | -- ToME - Tales of Middle-Earth
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any la... | gpl-3.0 |
kk580kk/docker-kk | kong/Postgres/nginx_kong.lua | 1 | 6136 | return [[
charset UTF-8;
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
error_log ${{PROXY_ERROR_LOG}} ${{LOG_LEVEL}};
> if nginx_optimizations then
>-- send_timeout 60s; # default value
>-- keepalive_timeout 75s; # default value
>-- client_body_timeout 60s; # default value
>-- client_header_ti... | lgpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/VisualScene/SceneNode.lua | 1 | 7022 | --[[
Title: SceneNode
Author(s): leio
Date: 2021/1/7
Desc:
use the lib:
------------------------------------------------------------
local SceneNode = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/VisualScene/SceneNode.lua");
------------------------------------------------------------
--]]
local VisualSceneLogi... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/resistance_torso_heavy_gtm_5.meta.lua | 2 | 2789 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
lubyk/dub | test/lua_memory_test.lua | 4 | 6072 | --[[------------------------------------------------------
dub.LuaBinder
-------------
Test binding with the 'memory' group of classes:
* no gc optimization
--]]------------------------------------------------------
local lub = require 'lub'
local lut = require 'lut'
local dub = require 'dub'
local shoul... | mit |
pixeljetstream/luajit_gfx_sandbox | runtime/lua/csvfile.lua | 2 | 6417 | -- copyright 2009-2016 Christoph Kubisch
-- Released under MIT license
local csv = {}
local CSVFile = {}
csv.CSVFile = CSVFile
function CSVFile.new(class)
local self = {}
setmetatable(self,{
__index = class,
})
return self
end
function CSVFile:read(filePath)
local handle = io.open(filePath, "rb")
... | mit |
RyMarq/Zero-K | LuaRules/Gadgets/unit_priority.lua | 1 | 26257 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--
-- Copyright (C) 2009.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
-----------------------------------------------------------... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/GameMarket/GameShop.lua | 1 | 4017 | --[[
Title: Game Market Place
Author(s): LiXizhi
Date: 2013/7/14
Desc: the game portal page.
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/GameMarket/GameShopPage.lua");
local GameShopPage = commonlib.gettable("MyCompany.Aries.Creator.Game.Desktop.GameSh... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/elon_hrl.meta.lua | 2 | 3696 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 120,
light_colors = {
"66 228 207 255",
"228 20 206 255",
"250 0 0 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
... | agpl-3.0 |
eXhausted/Ovale | WoWMock.lua | 1 | 30363 | --[[--------------------------------------------------------------------
Copyright (c) 2013, 2014 Johnny C. Lam.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction... | mit |
RyMarq/Zero-K | scripts/bomberstrike.lua | 2 | 3484 | include "constants.lua"
include "bombers.lua"
local fuselage = piece 'fuselage'
local wingl = piece 'wingl'
local wingr = piece 'wingr'
local enginel = piece 'enginel'
local enginer = piece 'enginer'
local head = piece 'head'
local turretbase = piece 'turretbase'
local turret = piece 'turret'
local sleevel = piece 'sl... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/vaults/spider-den.lua | 3 | 1935 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
TerminalShell/zombiesurvival | entities/effects/floatingscore.lua | 1 | 1377 | EFFECT.LifeTime = 3
function EFFECT:Init(data)
self:SetRenderBounds(Vector(-64, -64, -64), Vector(64, 64, 64))
self.Seed = math.Rand(0, 10)
local pos = data:GetOrigin()
local amount = math.Round(data:GetMagnitude())
self.Pos = pos
local flag = math.Round(data:GetScale()) or 0
if flag == FM_LOCALKILLOTHERASSI... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v1/delete/ntopng/user.lua | 1 | 1238 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
require "lua_utils"
local json = require ("dkjson")
local rest_utils = require("rest_utils")... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Mines/npcs/Ranpi-Pappi.lua | 5 | 1048 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Ranpi-Pappi
-- Type: Standard NPC
-- @zone: 234
-- @pos: -4.535 -1.044 49.881
--
-- Auto-Script: Requires Verification (Verified by Brando)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scr... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/alert_definitions/other/alert_attack_mitigation_via_snmp.lua | 1 | 3580 | --
-- (C) 2019-21 - ntop.org
--
-- ##############################################
local other_alert_keys = require "other_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
local alert_entities = require "alert_entities"
-... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Items/ItemTimeSeriesLight.lua | 1 | 2060 | --[[
Title: ItemTimeSeriesLight
Author(s): LiXizhi
Date: 2016/1/3
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Items/ItemTimeSeriesLight.lua");
local ItemTimeSeriesLight = commonlib.gettable("MyCompany.Aries.Game.Items.ItemTimeSeriesLight"... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/APISandbox/CreatorAPISandbox.lua | 1 | 7970 | --[[
Title: sandbox api environment for the creator
Author(s): LiXizhi
Date: 2013/8/19
Desc: moved from NeuronAPISandbox.lua to here for easy file location and extension management.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/APISandbox/Creator... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/egos/heavy-armor.lua | 3 | 3363 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
tempbottle/openlua | src/testset.lua | 2 | 4440 | --[[----------------------------------------------
Õë¶Ôset.luaµÄ²âÊÔ´úÂë
--]]----------------------------------------------
dofile("set.lua")
local empty = Set{}
assert(empty:Count() == 0)
assert(empty:Empty())
local number1 = Set{1979}
assert(number1:Count() == 1)
assert(number1:Contains(1979))
local string1 = Set{"... | mit |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/flower_pink_4.meta.lua | 18 | 2002 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 80,
light_colors = {
"140 57 181 255",
"255 74 231 255",
"148 33 132 255",
"123 49 156 255",
"140 57 181 255"
},
radius = {
x = 80,
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/flower_pink_5.meta.lua | 18 | 2002 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 80,
light_colors = {
"140 57 181 255",
"255 74 231 255",
"148 33 132 255",
"123 49 156 255",
"140 57 181 255"
},
radius = {
x = 80,
... | agpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Neuron/Templates/example_movie.lua | 1 | 1101 | -- 示例文件: NPL script file
local count = 0;
-- 触发函数
function main(msg)
count = (count + 1);
if(count > 3) then
count = 1
end
-- 轮流播放3个音乐
if(count == 1) then
-- 积木坐标转到实数坐标
local x, y, z = real(this.x, this.y, this.z);
-- 官方定义过的声音
audio.play("portal", x, y, z);
audio.stop("fire");
movie.text("带上你的耳机... | gpl-2.0 |
mysql/mysql-proxy | examples/tutorial-union.lua | 6 | 1614 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/contrib/luasrcdiet/lua/llex.lua | 122 | 12449 | --[[--------------------------------------------------------------------
llex.lua: Lua 5.1 lexical analyzer in Lua
This file is part of LuaSrcDiet, based on Yueliang material.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be d... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Rabao/npcs/Nomad_Moogle.lua | 37 | 1063 | -----------------------------------
--
-- Nomad Moogle
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onTrade Action
---------------------------... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Attohwa_Chasm/Zone.lua | 1 | 1120 | -----------------------------------
--
-- Zone: Attohwa_Chasm
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
require("scripts/zones/Attohwa_Chasm/TextIDs");
-----------------------------------
-- onInitialize
----... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/texts/unlock-mage_necromancer.lua | 3 | 2170 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
8devices/carambola2-new-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/member.lua | 111 | 1535 | -- ------ member configuration ------ --
ds = require "luci.dispatcher"
m5 = Map("mwan3", translate("MWAN Member Configuration"))
m5:append(Template("mwan/config_css"))
mwan_member = m5:section(TypedSection, "member", translate("Members"),
translate("Members are profiles attaching a metric and weight to an MWAN ... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Operators.lua | 1 | 9721 | --[[
Title: NplMicrobitDef_Operators
Author(s): leio
Date: 2019/11/29
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Operators.lua");
-------------------------------------------------------
]]
NPL.ex... | gpl-2.0 |
tarantool/luarocks | src/luarocks/cmd/make.lua | 1 | 5211 |
--- Module implementing the LuaRocks "make" command.
-- Builds sources in the current directory, but unlike "build",
-- it does not fetch sources, etc., assuming everything is
-- available in the current directory.
local make = {}
local build = require("luarocks.build")
local fs = require("luarocks.fs")
local util =... | mit |
RyMarq/Zero-K | LuaUI/Configs/zk_keys.lua | 2 | 5918 | return {
-- yyyymmdd
-- if newer than user's, overwrite ALL zir zk_keys
-- else just add any that are missing from local config
["date"] = 20130630,
-- all default ZK keybinds.
["keybinds"] = {
{ "togglecammode", "Ctrl+backspace",},
{ "togglecammode", "Shift+backspace",},
{ "edit_backspace", "Any+backspa... | gpl-2.0 |
soheil22222222/mm | plugins/msg_checks.lua | 2 | 11174 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-2.0 |
purebn/ShadowBot | plugins/Google.lua | 46 | 1048 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
gleachkr/luakit | lib/lousy/widget/common.lua | 4 | 1167 | --- Common functions for implementing widgets.
--
-- @module lousy.widget.common
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
local window = require("window")
local lousy = require("lousy")
local _M = {}
--- Add `widget` to `widgets`, and automatically remove it when `widget` is
-- destroyed.
-- @tparam table... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Entity/EntitySnowEffect.lua | 1 | 2442 | --[[
Title: Snow Drop Effect
Author(s): LiPeng, LiXizhi
Date: 2014/5/12
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Entity/EntitySnowEffect.lua");
local EntitySnowEffect = commonlib.gettable("MyCompany.Aries.Game.EntityManager.EntitySnowE... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | 78 | 2188 | --[[
Luci statistics - processes plugin diagram definition
(c) 2008 Freifunk Leipzig / 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
http://www.... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v1/acknowledge/network/alerts.lua | 1 | 1088 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path
local alert_utils = require "alert_utils"
local alert_consts = require "alert_consts"
... | gpl-3.0 |
h4mu/bstone | com.github.h4mu.bstone/jni/SDL/premake/projects/testshape.lua | 4 | 1153 | -- Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for an... | gpl-2.0 |
gleachkr/luakit | lib/select.lua | 3 | 4828 | --- Select a page element with a visual interface.
--
-- This module allows you to change the style of hints used to hint elements for
-- selection in `follow` mode, as well as other modes that use the visual hint
-- overlay.
--
-- # Using a custom character set for hint labels
--
-- To customize the characters used in... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/misc/inscriptions.lua | 2 | 45059 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
llX8Xll/DEVKEEPER1 | plugins/help.lua | 1 | 1078 | do
function run(msg, matches)
return [[
سہؤرسہ كہيہبہر_نہيہؤ KEEPER_NEW
قہنہآهہ آلسہؤرسہ @DEV_KEEPER_NEW
""""""""""""""""""""""""""""
آلآؤآمہر ثہلآثہ🏰 ؤهہيہ كہآلتہآليہ:-👇🏾
___________________________________
🏧حہمہآيہهہ📍لآضہهہآر آؤآمہر آلحہمآيهہ فہيہ آلمہجہمہؤعہهہ
🏧آدآرهہ📍لآضہهہآر آؤآمہر آلآدآرهہ فہيہ... | gpl-2.0 |
madpilot78/ntopng | scripts/callbacks/system/discover.lua | 1 | 1691 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local discover_utils = require "discover_utils"
local callback_utils = require "callback_utils"
local ifnames = interface.getIfNames()
local periodic_discover... | gpl-3.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 38 | 17398 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/TransformBlocksTask.lua | 1 | 18886 | --[[
Title: Transform a given block set
Author(s): LiXizhi
Date: 2013/2/11
Desc: Current translation, rotation and scaling are supported.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/TransformBlocksTask.lua");
-- translation
local task = ... | gpl-2.0 |
kellabyte/snabbswitch | src/lib/hardware/pci.lua | 6 | 4660 | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
require("lib.hardware.pci_h")
--- ### Hardware device information
devices = {}
--- Array of all supported hardware devices.
---
--- Each entry is a "device info" table with these attributes:
---
--- * `pciaddress... | apache-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Commands/CommandTemplate.lua | 1 | 19269 | --[[
Title: CommandTemplate
Author(s): LiXizhi
Date: 2014/2/23
Desc: template related command
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Commands/CommandTime.lua");
-------------------------------------------------------
]]
NPL.load("(gl)script/ide/... | gpl-2.0 |
DuFF14/OSVR-Unity | unity-generate.lua | 4 | 1258 |
template = [[
public void RegisterCallback($WrappedCallback callback) {
Start(); // make sure the interface is initialized.
if (null == $WrappedList) {
$WrappedList = callback;
raw$WrappedCallback = new OSVR.ClientKit.$RawCallbackType($RawCallback);
iface.registerCallback (raw$WrappedCallback... | apache-2.0 |
polymonster/pmtech | core/pen/project.lua | 1 | 2830 | local function setup_win32()
if renderer_dir == "vulkan" then
includedirs
{
"$(VK_SDK_PATH)/Include"
}
elseif renderer_dir == "opengl" then
includedirs
{
"../../third_party/glew/include",
"../../third_party/glew/src"
}
... | mit |
Lleafll/sws-lleaf | libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua | 42 | 3995 | --[[-----------------------------------------------------------------------------
Icon Widget
-------------------------------------------------------------------------------]]
local Type, Version = "Icon", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >=... | mit |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk/phones.lua | 80 | 2946 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
l... | gpl-2.0 |
Guard13007/LuaFuck | old/spec.lua | 1 | 1656 | -- NOTE: This file is kept for historical reasons of I like looking at my
-- original design. No other reason for its existence here.
--[[ Brainfuck spec:
> move pointer right
< move pointer left
+ increment memory at pointer
- decrement memory at pointer
. output character of memory at point... | mit |
james2doyle/lit | main.lua | 2 | 1921 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | apache-2.0 |
RyMarq/Zero-K | scripts/pw_wormhole.lua | 8 | 1862 | include "constants.lua"
local base = piece('base')
local panel1, panel2 = piece('pannel1', 'pannel2')
local slider1, slider2, focal1, focal2 = piece('slider1', 'slider2', 'focal1', 'focal2')
local wheel1, wheel2 = piece('wheel1', 'wheel2')
local turret, cylinder, cannon, cannonbase = piece('turret', 'cylinder', 'canon... | gpl-2.0 |
ghostry/openwrt-gmod | luci/luci-app-v2ray/luasrc/model/cbi/v2ray/policy-level-detail.lua | 1 | 1426 | -- Copyright 2019-2020 Xingwang Liao <kuoruan@gmail.com>
-- Licensed to the public under the MIT License.
local dsp = require "luci.dispatcher"
local m, s, o
local sid = arg[1]
m = Map("v2ray", "%s - %s" % { translate("V2Ray"), translate("Edit Policy Level") },
translatef("Details: %s", "<a href=\"https://www.v2ra... | apache-2.0 |
LuaDist2/zee | zee/emacs_bindings.lua | 1 | 2803 | -- Emacs key bindings
-- Command execution
key_bind ("Alt-x", "execute-command")
key_bind ("Alt-!", "edit-shell-command")
-- Navigation. Mostly arrows and things.
-- Character/line
key_bind ("Left", "move-previous-character")
key_bind ("Ctrl-b", "move-previous-character")
key_bind ("Right", "move-next-character")
ke... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Papo-Hopo.lua | 1 | 2912 | -----------------------------------
-- Area: Port Windurst
-- NPC: Papo-Hopo
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
hfjgjfg/eli25 | plugins/xkcd.lua | 628 | 1374 | do
function get_last_id()
local res,code = https.request("http://xkcd.com/info.0.json")
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res)
return data.num
end
function get_xkcd(id)
local res,code = http.request("http://xkcd.com/"..id.."/info.0.json")
if code ~= 200 then return "HT... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/admin/host_pools.lua | 1 | 39385 | --
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local host_pools_utils = require "host_pools_utils"
local discover = require "discover_utils"
local template = require "template_utils"
local graph_utils = req... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_San_dOria/npcs/Solgierte.lua | 1 | 1398 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Solgierte
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_S... | gpl-3.0 |
RyMarq/Zero-K | effects/vindicator.lua | 7 | 7720 | -- vindimuzzle
-- vindiback
-- uw_vindiback
-- uw_amphlift
return {
["vindimuzzle"] = {
fluffy = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
ai... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/UserChat.lua | 2 | 28883 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Southern_San_dOria/npcs/Miogique.lua | 1 | 2145 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Miogique
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sho... | gpl-3.0 |
mojab/.files | .config/awesome/vicious/contrib/rss.lua | 5 | 1725 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2009, olcc
--
-- This is now a standalone RSS reader for awesome:
-- * http://github.com/olcc/aware
---------------------------------------------------
-- {{{ Grab environment
local pairs = pairs
local io... | gpl-3.0 |
kellabyte/snabbswitch | src/program/snabbnfv/neutron2snabb/neutron2snabb_schema.lua | 15 | 1953 | -- neutron2snabb_schema: Scan mysqldump SQL files for schema informaion
module(..., package.seeall)
local lib = require("core.lib")
function read (directory, tables)
local schema = {}
for _, t in ipairs(tables) do
schema[t] = columns(("%s/%s.sql"):format(directory, t))
end
return schema
end
-- Scan... | apache-2.0 |
madpilot78/ntopng | scripts/lua/modules/plugins_utils.lua | 1 | 36003 | --
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/notifications/?.lua;" .. package.path
local plugins_utils = {}
local os_utils = require("os_utils")
local persistence = require("persistence")
local file_utils = require("file_utils")
local template_ut... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/MacroCodeCamp/MacroCodeCampAward.lua | 1 | 3492 | --[[
author:pbb
date:2021/02/04
Desc:冬令营第一名学校活动
use lib:
local MacroCodeCampAward = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/MacroCodeCamp/MacroCodeCampAward.lua");
MacroCodeCampAward.ShowView()
]]
local QREncode = commonlib.gettable("MyCompany.Aries.Game.Movie.QREncode")
local KeepW... | gpl-2.0 |
jsj2008/ValyriaTear | dat/effects/particles/wave_spell.lua | 3 | 7267 | --Wave particle effect
-- Author: Bertram
systems = {}
systems[0] =
{
enabled = true,
emitter =
{
x = 0,
y = -64,
x2 = 0, --useless when using a circle shape
y2 = 0, --useless when using a circle shape
center_x = 0, --useless when using a circle shape
cent... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_headcrab/shared.lua | 1 | 6068 | SWEP.ZombieOnly = true
SWEP.IsMelee = true
SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
SWEP.WorldModel = "models/weapons/w_crowbar.mdl"
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "none"
SWEP.Primary.Delay = 0.4
SWEP.Secondary.ClipSize = -1
SWEP.Seco... | gpl-3.0 |
purebn/ShadowBot | plugins/antilink.1.lua | 1 | 1474 | -- By mohamed_devt { @MH_IQ19 }
-- only enable one of them
local Kick = true;
local Warn = false;
do
local function run(msg, matches)
if ( kick == true ) then
Warn = false;
elseif ( Warn == true ) then
Kick = false;
end
-- check if the user is owner
if ( is_realm(msg) a... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Brita.lua | 5 | 1029 | -----------------------------------
-- Area: Port Bastok
-- NPC: Brita
-- Type: Standard NPC
-- @zone: 236
-- @pos: 58.161 -3.101 -6.695
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
--------------------... | gpl-3.0 |
devFRIND/M.F.I_BOT | plugins/ingroup.lua | 156 | 60323 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Partners/keepwork/KeepWorkLogin.lua | 1 | 12232 | --[[
Title: keepwork login page
Author(s): leio
Date: 2017/7/20
Desc:
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Partners/keepwork/KeepWorkLogin.lua");
local KeepWorkLogin = commonlib.gettable("MyCompany.Aries.Partners.keepwork.KeepWorkLogin");
KeepWorkLogin.ShowPa... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/eidolon-plane/npcs.lua | 3 | 1330 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/LobbyService/LobbyMessageType.lua | 1 | 1062 | --[[
Title: LobbyServer
Author(s): LanZhihong
Date: 2018/12/19
Desc: all LobbyServer
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Network/LobbyService/LobbyMessageType.lua");
local LobbyMessageType = commonlib.gettable("MyCompany.Aries.Game.Network.Lo... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_rifle_shot_5.meta.lua | 2 | 2790 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.43000000715255737,
amplification = 140,
light_colors = {
"89 31 168 255",
"48 42 88 255",
"61 16 123 0"
},
radius = {
x = 80,
y = 80
},
standard_deviati... | agpl-3.0 |
mysql/mysql-proxy | lib/auditing.lua | 6 | 1694 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
dwindow/dwindow | oem-3dvstar/dwindow/dwindow_UI/dwindow.lua | 1 | 9966 | local rect = {0,0,99999,99999,0,0}
local rects = {}
local bitmapcache = {}
-- helper functions
function GetPath(pathname)
if pathname == nil then return end
local t = string.reverse(pathname)
t = string.sub(t, string.find(t, "\\") or string.find(t, "/") or 1)
return string.reverse(t)
end
function GetName(pathnam... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/blocks/BlockVine.lua | 1 | 2710 | --[[
Title: Vine and half vine
Author(s): LiXizhi
Date: 2015/7/18
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/blocks/BlockVine.lua");
local block = commonlib.gettable("MyCompany.Aries.Game.blocks.BlockVine");
-----------------------------... | gpl-2.0 |
vince06fr/prosody-modules | mod_adhoc_account_management/mod_adhoc_account_management.lua | 32 | 3961 | local dataforms_new = require "util.dataforms".new;
local usermanager_set_password = require "core.usermanager".set_password;
local usermanager_test_password = require "core.usermanager".test_password;
local jid_split = require"util.jid".split;
local close_others = module:get_option_boolean("close_sessions_on_password_... | mit |
Lawmuse/apeonsburden | tekKonfig/LibStub.lua | 17 | 1362 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | mit |
RyMarq/Zero-K | units/turretaafar.lua | 1 | 4406 | return { turretaafar = {
unitname = [[turretaafar]],
name = [[Chainsaw]],
description = [[Long-Range Anti-Air Missile Battery]],
acceleration = 0,
brakeRate = 0,
buildCostMetal = 900,
builde... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/entities/status_human_holding/init.lua | 1 | 5941 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local oldRenderMode = nil
local oldColor = nil
function ENT:Initialize()
self:DrawShadow(false)
self:SetModel("models/weapons/v_hands.mdl")
local owner = self:GetOwner()
if owner:IsValid() then
owner.status_human_holding = self
own... | gpl-3.0 |
pixeljetstream/luajit_gfx_sandbox | runtime/lua/devil.lua | 2 | 17979 | -- Original Author: Dimiter "malkia" Stanev
-- https://github.com/malkia/luajit-opencl
local ffi = require( "ffi" )
ffi.cdef[[
// devil il | DevIL Image Library
enum {
IL_FALSE = 0
, IL_TRUE = 1
// Matches OpenGL's right now.
//! Data formats \link Formats Formats\endlink
, IL_COLOUR_INDEX = 0x1900
, IL_COLOR_... | mit |
lgeek/koreader | frontend/ui/widget/container/underlinecontainer.lua | 2 | 1386 | --[[--
An UnderlineContainer is a WidgetContainer that is able to paint
a line under its child node.
--]]
local Blitbuffer = require("ffi/blitbuffer")
local Geom = require("ui/geometry")
local Size = require("ui/size")
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local UnderlineContainer = ... | agpl-3.0 |
nyczducky/darkstar | scripts/zones/Abyssea-La_Theine/mobs/Lusion.lua | 17 | 1817 | -----------------------------------
-- Area: Abyssea - La Theine
-- MOB: Luison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
setLocalVar("transformTime", os.time())
end;
--------------------------------... | gpl-3.0 |
Tanmoytkd/vlc | share/lua/playlist/mpora.lua | 97 | 2565 | --[[
$Id$
Copyright © 2009 the VideoLAN team
Authors: Konstantin Pavlov (thresh@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 opt... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/GM_Home/npcs/Trader.lua | 32 | 1090 | -----------------------------------
-- Area: GM Home
-- NPC: Trader
-- Type: Debug NPC for testing trades.
-----------------------------------
package.loaded["scripts/zones/GM_Home/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/GM_Home/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
cornernote/minetest-skyblock | skyblock_levels/skyblock.craft_guide.lua | 1 | 5685 | --[[
Skyblock for Minetest
Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-skyblock
License: GPLv3
]]--
skyblock.craft_guide = {}
-- some common groups
local group_placeholder = {}
group_placeholder['group:wood'] = 'default:wood'
group_placehol... | gpl-3.0 |
nyczducky/darkstar | scripts/globals/items/ear_of_grilled_corn.lua | 12 | 1288 | -----------------------------------------
-- ID: 4334
-- Item: ear_of_grilled_corn
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 10
-- Vitality 4
-- Health Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
AquariaOSE/Aquaria | files/scripts/entities/creatorform1.lua | 5 | 14063 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
abcdefg30/OpenRA | mods/ra/maps/soviet-soldier-volkov-n-chitzkoi/soviet-soldier-volkov-n-chitzkoi-AI.lua | 7 | 3093 | --[[
Copyright 2007-2022 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.