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 |
|---|---|---|---|---|---|
Grocel/wire-extras | lua/weapons/gmod_tool/stools/wire_field_device.lua | 3 | 6244 | TOOL.Category = "Wire Extras/Physics"
TOOL.Name = "Field Generator"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.ClientConVar[ "type" ] = ""
TOOL.ClientConVar[ "workonplayers" ] = "1"
TOOL.ClientConVar[ "ignoreself" ] = "1"
TOOL.ClientConVar[ "arc" ] = "360"
TOOL.Tab = "Wire"
if ( CLIENT ) then
... | apache-2.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_spotlamp/init.lua | 1 | 1720 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function SWEP:Deploy()
gamemode.Call("WeaponDeployed", self.Owner, self)
self:SpawnGhost()
return true
end
function SWEP:OnRemove()
self:RemoveGhost()
end
function SWEP:Holster()
self:RemoveGhost()
return true
end
function SWEP:Sp... | gpl-3.0 |
RyMarq/Zero-K | LuaRules/Gadgets/start_waterlevel.lua | 6 | 1485 | if not gadgetHandler:IsSyncedCode() then return end
function gadget:GetInfo() return {
name = "Water level modoption",
layer = 1, -- after terraform whence GG.Terraform_RaiseWater comes
enabled = true,
} end
local DRY_WATERLEVEL = -50
local FLOODED_AREA = 0.5 -- (0; 1]
local FLOOD_OFFSET = -72 -- often the m... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/WorldKey/WorldKeyManager.lua | 1 | 7937 | --[[
Title: WorldKeyManager
Author(s): yangguiyi
Date: 2021/4/28
Desc:
Use Lib:
-------------------------------------------------------
local WorldKeyManager = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/WorldKey/WorldKeyManager.lua")
--]]
local KeepworkServiceProject = NPL.load("(gl)Mod/WorldShare/service/Kee... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/temple-of-creation/npcs.lua | 3 | 4212 | -- 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/Commands/CommandManager.lua | 1 | 21723 | --[[
Title: Command Manager
Author(s): LiXizhi
Date: 2013/2/9
Desc: slash command manager
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Commands/CommandManager.lua");
local CommandManager = commonlib.gettable("MyCompany.Aries.Game.CommandManager")... | gpl-2.0 |
Grocel/wire-extras | lua/entities/gmod_wire_wireless_recv/init.lua | 4 | 3455 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "BT_Recv"
local MODEL = Model( "models/props_lab/binderblue.mdl" )
local Recvs = {}
function GetWirelessRecv()
return Recvs;
end
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
sel... | apache-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/techniques/unarmed-discipline.lua | 2 | 10360 | -- 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 |
hfjgjfg/PERSIANGUARD10 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/The_Eldieme_Necropolis_[S]/Zone.lua | 1 | 1159 | -----------------------------------
--
-- Zone: The_Eldieme_Necropolis_[S]
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
require("scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs");
--------------------... | gpl-3.0 |
DashingStrike/Automato-ATITD | scripts/bricks_auto.lua | 2 | 3349 | dofile("ui_utils.inc");
dofile("settings.inc");
dofile("constants.inc");
dofile("screen_reader_common.inc");
dofile("common.inc");
imgTake = "Take.png";
imgEverything = "Everything.png";
imgToMake = "toMake.png";
brickNames = { "Bricks", "Clay Bricks", "Firebricks" };
brickImages = { "makeBricks.png", "makeClayBricks.... | mit |
KenPowers/dotfiles | home/config/nvim/lua/keymaps.lua | 1 | 2324 | --
-- Global Keymaps
--
local cmd = vim.cmd
local nvim_set_keymap = vim.api.nvim_set_keymap
local wk = require('which-key')
-- Close quickfix if in quickfix
nvim_set_keymap('n', '<C-d>', '&bt ==# "quickfix" ? ":ccl<Cr>" : "<C-d>"', { noremap = true, expr = true })
-- Use <C-d> as escape sequence
nvim_set_keymap('i',... | mit |
purebn/ShadowBot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Abdhaljs_Isle-Purgonorgo/Zone.lua | 1 | 1153 | -----------------------------------
--
-- Zone: Abdhaljs_Isle-Purgonorgo
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Abdhaljs_Isle-Purgonorgo/TextIDs"] = nil;
require("scripts/zones/Abdhaljs_Isle-Purgonorgo/TextIDs");
--------------------------... | gpl-3.0 |
matin-igdery/og | plugins/leaders.lua | 51 | 12502 |
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 |
8devices/carambola2-new-packages | net/luci-app-e2guardian/files/e2guardian-cbi.lua | 39 | 18596 | --[[
LuCI E2Guardian module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj... | gpl-2.0 |
catch222/neural-style | neural_style.lua | 5 | 11576 | require 'torch'
require 'nn'
require 'image'
require 'optim'
local loadcaffe_wrap = require 'loadcaffe_wrapper'
--------------------------------------------------------------------------------
local cmd = torch.CmdLine()
-- Basic options
cmd:option('-style_image', 'examples/inputs/seated-nude.jpg',
'Styl... | mit |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | 79 | 3356 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
artynet/openwrt-packages | net/prosody/files/prosody.cfg.lua | 65 | 9428 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at https://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running this command:
-- prosodyctl check config
-- If there are any errors,... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_3.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_33.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_31.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_25.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_12.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_15.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/water_surface_7.meta.lua | 66 | 1953 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"122 171 252 255",
"118 168 252 255",
"103 159 251 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
... | agpl-3.0 |
RyMarq/Zero-K | effects/zombie.lua | 24 | 1480 | return {
["zombie"] = {
light = {
air = true,
class = [[CSimpleGroundFlash]],
count = 1,
ground = true,
water = true,
properties = {
colormap = [[0 0.75 0 0.33 0 0 0 0.01]],
size ... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/hash_table_details.lua | 1 | 2899 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
if(ntop.isPro()) then
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
local snmp_utils = require "snmp_utils"
end
require "lua_utils"
l... | gpl-3.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_electrohammer/cl_init.lua | 1 | 1258 | include("shared.lua")
SWEP.PrintName = "Electrohammer"
SWEP.ViewModelFOV = 75
function SWEP:DrawHUD()
if GetGlobalBool("classicmode") then return end
surface.SetFont("ZSHUDFontSmall")
local nails = self:GetPrimaryAmmoCount()
local nTEXW, nTEXH = surface.GetTextSize("Right Click to hammer in a nail.")
if 0 < n... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v2/get/host/fingerprint/ja3.lua | 1 | 1846 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local graph_utils = require "graph_utils"
require "flow_utils"
require "historical_utils"
local fingerprint_utils = require "fingerprint_utils"
local rest_ut... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 80 | 3813 | --[[
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 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Alib-Mufalib.lua | 3 | 1033 | -----------------------------------
-- Area: Port Bastok
-- NPC: Alib-Mufalib
-- Type: Warp NPC
-- @zone: 236
-- @pos: 116.080 7.372 -31.820
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
----------------... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/SummerCamp/SummerCampAskView.lua | 1 | 5895 | --[[
author:yangguiyi
date:
Desc:
use lib:
local SummerCampAskView = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/SummerCamp/SummerCampAskView.lua")
SummerCampAskView.ShowView()
]]
local HttpWrapper = NPL.load("(gl)script/apps/Aries/Creator/HttpAPI/HttpWrapper.lua");
local QuestAction = commonlib.gettable("MyCom... | gpl-2.0 |
DashingStrike/Automato-ATITD | scripts/gather_resources.lua | 1 | 5714 | -- Gather_Resources.lua v1.0 -- by Darkfyre
--
--
dofile("common.inc");
button_names = {"Grass","Grass Small Icon","Slate","Slate Small Icon","Clay","Clay Small Icon"};
counter = 0;
postClickDelay = 500;
function checkOK()
while 1 do
checkBreak();
srReadScreen();
OK = srFindImage("OK.png");
if OK then
... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Orlaine.lua | 1 | 1262 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Orlaine
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function... | gpl-3.0 |
premek/brick-script | test/runtime.lua | 1 | 1040 | local luaunit = require('test.luaunit')
local parser = require('brickscript.parser')
local Runtime = require('brickscript.runtime')
function testAssign() doTest('assign') end
function testUpdate() doTest('update') end
function testBind() doTest('bind') end
function testList() doTest('list') end
function testCall() doT... | apache-2.0 |
TerminalShell/zombiesurvival | entities/effects/gib_player.lua | 1 | 2328 | util.PrecacheSound("physics/flesh/flesh_bloody_break.wav")
local function CollideCallback(oldparticle, hitpos, hitnormal)
oldparticle:SetDieTime(0)
local pos = hitpos + hitnormal
if math.random(3) == 3 then
sound.Play("physics/flesh/flesh_squishy_impact_hard"..math.random(4)..".wav", hitpos, 50, math.Rand(95, 1... | gpl-3.0 |
jamesofarrell/TheFatController | control.lua | 1 | 51629 | require "defines"
require "util"
MOD_NAME = "TheFatController"
local function init_global()
global = global or {}
global.guiSettings = global.guiSettings or {}
global.trainsByForce = global.trainsByForce or {}
global.character = global.charactor or {}
global.unlocked = global.unlocked or false
global.unlo... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/texts/tutorial/stats/stats3.lua | 3 | 1161 | -- 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 |
MessageSystems/momentum-scriptlets | dkimsign/dkimsign.lua | 1 | 1193 | require("msys.core");
require("msys.validate.opendkim");
require("msys.extended.message");
require("dkimsign_config");
local mod = {};
local function table_merge(defaults, specifics)
local new_t = {};
if !specifics then
return defaults;
end
for k, v in pairs(defaults) do
if specifics and !specifics[... | apache-2.0 |
vince06fr/prosody-modules | mod_muc_log_http/muc_log_http/mod_muc_log_http.lua | 32 | 22311 | module:depends("http");
local prosody = prosody;
local hosts = prosody.hosts;
local my_host = module:get_host();
local strchar = string.char;
local strformat = string.format;
local split_jid = require "util.jid".split;
local config_get = require "core.configmanager".get;
local urldecode = require "net.http".urldecode;... | mit |
metal-bot/metal | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
terinux/ahhhh | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Lower_Jeuno/npcs/Miladi-Nildi.lua | 5 | 1035 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Miladi-Nildi
-- Type: Standard NPC
-- @zone: 245
-- @pos: 39.898 -5.999 77.190
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
--------------... | gpl-3.0 |
Lleafll/sws-lleaf | libs/LibBabble-Inventory-3.0/LibBabble-Inventory-3.0.lua | 1 | 52946 | --[[
Name: LibBabble-Inventory-3.0
Revision: $Rev: 191 $
Maintainers: ckknight, nevcairiel, Ackis
Website: http://www.wowace.com/projects/libbabble-inventory-3-0/
Dependencies: None
License: MIT
]]
local MAJOR_VERSION = "LibBabble-Inventory-3.0"
local MINOR_VERSION = 90000 + tonumber(("$Rev: 191 $"):match("%d+"))
if ... | mit |
TerminalShell/zombiesurvival | entities/entities/projectile_poisonspit/init.lua | 1 | 1755 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self.DeathTime = CurTime() + 30
self:SetModel("models/props/cs_italy/orange.mdl")
self:PhysicsInitSphere(1)
self:SetSolid(SOLID_VPHYSICS)
self:SetCollisionGroup(COLLISION_GROUP_PROJECTILE)
self:SetColor(Color... | gpl-3.0 |
RyMarq/Zero-K | scripts/planeheavyfighter.lua | 1 | 3803 | include "constants.lua"
--pieces
local base = piece "base"
local wingR, wingL, wingtipR, wingtipL = piece("wingr", "wingl", "wingtip1", "wingtip2")
local engineR, engineL, thrust1, thrust2, thrust3 = piece("jetr", "jetl", "thrust1", "thrust2", "thrust3")
local missR, missL = piece("m1", "m2")
local smokePiece = {base... | gpl-2.0 |
NPLPackages/paracraft | script/kids/3DMapSystemData/Item_App.lua | 1 | 2383 | --[[
Title: an unknown item
Author(s): LiXizhi
Date: 2009/2/3
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemData/Item_App.lua");
local dummyItem = Map3DSystem.Item.Item_App:new({appkey=Map3DSystem.App.appkeys["Creator"]});
Map3DSystem.Item.ItemMana... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/ui/List.lua | 3 | 6958 | -- 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 |
RyMarq/Zero-K | units/shipheavyarty.lua | 1 | 4080 | return { shipheavyarty = {
unitname = [[shipheavyarty]],
name = [[Shogun]],
description = [[Battleship (Heavy Artillery)]],
acceleration = 0.195,
activateWhenBuilt = true,
brakeRate = 0.475,
buildCostMetal = 5000,
builder ... | gpl-2.0 |
kellabyte/snabbswitch | src/lib/protocol/icmp/nd/na.lua | 7 | 1235 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local bitfield = require("core.lib").bitfield
local nd_header = require("lib.protocol.icmp.nd.header")
local na = subClass(nd_header)
local na_t = ffi.typeof[[
struct {
uint32_t flags;
uint8_t target[16];
} __attribu... | apache-2.0 |
adde88/Nerdpack-Zylla | rotations/rogue/assassination.lua | 1 | 10009 | local _, Zylla = ...
local unpack = _G.unpack
local NeP = _G.NeP
local Mythic_Plus = _G.Zylla.Mythic_Plus
local GUI = {
unpack(Zylla.Logo_GUI),
-- Header
{type = 'header', size = 16, text = 'Keybinds', align = 'center'},
{type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..'Pause|r', al... | mit |
rigeirani/sss | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
knixeur/notion | contrib/styles/look_cleanwhite.lua | 7 | 1963 | -- Authors: René van Bevern <rvb@debian.org>
-- License: Unknown
-- Last Changed: Unknown
--
-- look_cleanwhite.lua a bright theme fitting white terminals
--
-- uses Terminus fonts
--
-- -- René van Bevern <rvb@debian.org>
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colo... | lgpl-2.1 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/BlockFileMonitorTask.lua | 1 | 7246 | --[[
Title: For files from blue tooth.
Author(s): LiXizhi
Date: 2013/1/26
Desc: Drag and drop *.block.xml block template file to game to create blocks where it is.
when the file changes, the block is automatically updated.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/wizard-hat.lua | 3 | 1883 | -- 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/weapons/weapon_zs_handyman.lua | 1 | 2815 | -- Read the weapon_real_base if you really want to know what each action does
if (CLIENT) then
SWEP.PrintName = "'Handyman' Handgun"
SWEP.Description = "A very cheap weapon designed for caders as a sidearm."
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.HUD3DBone = "slide"
SWEP.HUD3DPos =... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/leremieu_taco.lua | 1 | 1802 | -----------------------------------------
-- ID: 5175
-- Item: leremieu_taco
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Health Regen While Healing 1
-- Magic Regen While Healing 1
-- Defense ... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua | 76 | 1905 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Manuel Munz <freifunk at somakoma de>
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... | gpl-2.0 |
CerNerCompany/Anti-Spam | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | lgpl-2.1 |
sirnuke/soup-kitchen-the-game | soup-kitchen/state/map.lua | 1 | 5339 | -- Soup Kitchen
-- Bryan DeGrendel (c) 2014
MapClass = {}
function MapClass.new()
local structure = {
{ 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'T', 'X' },
{ ' ', ' ', ' ', ' ', 'X', 'C', 'C', 'C', ' ', ' ', ' ', 'X' },
{ ' ', ' ', ' ', ' ', 'C', ' ', ' ', ' ', ' ', ' ', ' ', 'X' },
{ ' ',... | mit |
madpilot78/ntopng | scripts/lua/iface_flows_sankey.lua | 1 | 6816 | --
-- (C) 2013-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('application/json')
tracked_host = _GET["host"]
interface.select(ifname)
max_num_peers = 10
max_num_links = 32
peers = getTopFlowPeers(tracked_ho... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/reproach.lua | 3 | 2003 | -- 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/engines/default/engine/CharacterVaultSave.lua | 3 | 2173 | -- 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/Bastok_Mines/npcs/Elki.lua | 1 | 2443 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Elki
-- Starts Quests: Hearts of Mythril, The Eleventh's Hour
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/t... | gpl-3.0 |
RyMarq/Zero-K | LuaRules/Gadgets/cmd_factory_stop_production.lua | 1 | 2978 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Factory Stop Production",
desc = "Adds a command to clear the factory queue",
author = "Google... | gpl-2.0 |
OpenMusicKontrollers/chimaera_tjost | plumber.lua | 1 | 2325 | #!/usr/bin/env tjost
--[[
* Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be use... | artistic-2.0 |
RyMarq/Zero-K | lups/headers/nanoupdate.lua | 8 | 5407 | -- $Id: general.lua 3171 2008-11-06 09:06:29Z det $
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--
-- file: nanoupdate.lua
-- brief: shared code between all nano particl... | gpl-2.0 |
RyMarq/Zero-K | units/factoryship.lua | 1 | 2657 | return { factoryship = {
unitname = [[factoryship]],
name = [[Shipyard]],
description = [[Produces Naval Units, Builds at 10 m/s]],
acceleration = 0,
brakeRate = 0,
buildCostMetal = Shared.FACTORY_COST,
builder = true... | gpl-2.0 |
vince06fr/prosody-modules | mod_idlecompat/mod_idlecompat.lua | 35 | 1149 | -- Last User Interaction in Presence via Last Activity compatibility module
-- http://xmpp.org/extensions/xep-0319.html
-- http://xmpp.org/extensions/xep-0012.html
-- Copyright (C) 2014 Tobias Markmann
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local datetime = require "util.datetime";
loc... | mit |
pyxenium/EasyAutoLoot | Libs/AceConfig-3.0/AceConfig-3.0.lua | 43 | 2183 | --- AceConfig-3.0 wrapper library.
-- Provides an API to register an options table with the config registry,
-- as well as associate it with a slash command.
-- @class file
-- @name AceConfig-3.0
-- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $
--[[
AceConfig-3.0
Very light wrapper library that co... | mit |
RyMarq/Zero-K | LuaRules/Gadgets/start_teamnames.lua | 1 | 1097 | if not gadgetHandler:IsSyncedCode() then return end
function gadget:GetInfo()
return {
name = "Backup allyteam names",
layer = math.huge, -- last so that we only cover up holes; actual names are set by startbox handler (MP) or mission handlers (SP)
enabled = true,
}
end
local PUBLIC_VISIBLE = {public ... | gpl-2.0 |
matin-igdery/og | plugins/Feedback.lua | 1 | 1068 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\n🆔 : ' .. msg.from.id .. '\n\nNAME▶️ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿♏ ️️ :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
lo... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Mod/ModManager.lua | 1 | 2909 | --[[
Title: plugin manager
Author(s): LiXizhi
Date: 2015/4/9
Desc: mod is a special type of plugin that can be dynamically loaded.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Mod/ModManager.lua");
local ModManager = commonlib.gettable("Mod.ModM... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Monastic_Cavern/npcs/qm1.lua | 1 | 1376 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: ???
-- Used In Quest: Whence Blows the Wind
-- @zone 150
-- @pos 168 -1 -22
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
RyMarq/Zero-K | units/zenith.lua | 1 | 10817 | return { zenith = {
unitname = [[zenith]],
name = [[Zenith]],
description = [[Meteor Controller]],
acceleration = 0,
activateWhenBuilt = true,
buildCostMetal = 40000,
builder =... | gpl-2.0 |
james2doyle/lit | libs/handlers.lua | 4 | 6708 | --[[
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 |
gleachkr/luakit | lib/select_wm.lua | 2 | 19685 | --- Select a page element with a visual interface.
--
-- This web module allows other Lua modules to select page elements with the
-- same interface as that used by the follow mode plugin: a visual overlay is
-- shown that allows the users to type to filter visible hints. For example,
-- this module is used by the `for... | gpl-3.0 |
llX8Xll/DEVKEEPER1 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v1/get/host/l7/stats.lua | 2 | 1965 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local rest_utils = require("rest_utils")
local stats_utils = require("stats_utils")
--
-- Read statistics about nDPI application protocols for a hsot
-- Exam... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/NplCad/NplCadDef/NplCadDef_Data.lua | 1 | 12592 | --[[
Title: NplCadDef_Data
Author(s): leio
Date: 2018/9/10
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/NplCad/NplCadDef/NplCadDef_Data.lua");
local NplCadDef_Data = commonlib.gettable("MyCompany.Aries.Game.Code.NplCad.NplCadDef_Data");
--... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Mines/npcs/Davyad.lua | 1 | 1200 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Davyad
-- Standard Info NPC
-- Involved in Mission: Bastok 3-2
-----------------------------------
require("scripts/globals/missions");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/temple-of-creation/objects.lua | 3 | 4176 | -- 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 |
RyMarq/Zero-K | LuaRules/Configs/StartBoxes/Blindside_v2.lua | 7 | 2698 | local suported_playercounts = {5, 11, 16}
--[[ The 16 startpoints form a planar graph where each vertex is a 3-mex startpoint and has 3 edges, which
are veh-pathable passages to other vertices with 2 mexes in between. The lack of connection means there
are mountains in between (there are some mexes and geospo... | gpl-2.0 |
JonasJurczok/faketorio | spec/copy_spec.lua | 1 | 2590 | describe("Test the copy functionality #copy", function()
lazy_setup(function()
require("faketorio.lib")
faketorio.lfs.mkdir("locale")
faketorio.lfs.mkdir("locale/de")
faketorio.lfs.mkdir("locale/en")
local file = io.open("locale/de/blub.cfg", "w")
file:write("asdasd... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/Zone.lua | 1 | 1921 | -----------------------------------
--
-- Zone: Windurst_Woods
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/server");
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woo... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/prides.lua | 3 | 6960 | -- 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 |
groupforspeed/API-WaderTG | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
fegimanam/s | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Ali-2h/hackerbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 78 | 2041 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
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
]]--
l... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/lore/slazish.lua | 3 | 4796 | -- 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 |
RyMarq/Zero-K | units/striderdetriment.lua | 1 | 10668 | return { striderdetriment = {
unitname = [[striderdetriment]],
name = [[Detriment]],
description = [[Ultimate Assault Strider]],
acceleration = 0.328,
activateWhenBuilt = true,
autoheal = 30,
brakeRate = 1.435,
buildCos... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_AA_overkill_control.lua | 2 | 5815 | local versionNumber = "v0.1"
function gadget:GetInfo()
return {
name = "AA overkill control",
desc = versionNumber .. " Managed Allowed Weapon Target for Defender, Hacksaw, Chainsaw and Artemis to prevent overkill",
author = "Jseah",
date = "03/05/13",
license = "GNU GPL, v2 o... | gpl-2.0 |
RyMarq/Zero-K | units/staticrearm.lua | 1 | 2062 | return { staticrearm = {
unitname = [[staticrearm]],
name = [[Airpad]],
description = [[Repairs and Rearms Aircraft, repairs at 2.5 e/s per pad]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildCostMetal = 350,
buildDistance ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/bibiki_slug.lua | 1 | 1279 | -----------------------------------------
-- ID: 5122
-- Item: Bibiki Slug
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- defense % 16
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/voip_utils.lua | 1 | 32489 | --
-- (C) 2013-21 - ntop.org
--
-- ########################################################
-- require "flow_utils"
local payload_type = 0
function isVoip(key,value)
key_label = getFlowKey(key)
if (key_label == "Total number of exported flows") then return 1 end
if (key_label =='Rtp Voice Quality') then
... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/mcml/keepwork/KpUserTag.lua | 1 | 1716 | --[[
Title: icon tag for user
Author(s): leio
Date: 2020/8/10
Desc:
Use Lib:
-------------------------------------------------------
local KpUserTag = NPL.load("(gl)script/apps/Aries/Creator/Game/mcml/keepwork/KpUserTag.lua");
--]]
local KpUserTag = NPL.export();
function KpUserTag.Is_crown(user_info)
return use... | gpl-2.0 |
abasshacker/abbasgh | plugins/spammer.lua | 86 | 65983 | local function run(msg)
if msg.text == "[!/]killwili" then
return "".. [[
kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh... | gpl-2.0 |
LuaDist2/zee | zee/main.lua | 1 | 4772 | -- Program invocation, startup and shutdown
--
-- Copyright (c) 2010-2015 Free Software Foundation, Inc.
--
-- This file is part of Zee.
--
-- 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; eit... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.