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 |
|---|---|---|---|---|---|
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_rifle_gtm_5.meta.lua | 2 | 2805 | 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 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_vertical_swarm.lua | 15 | 3385 | function gadget:GetInfo()
return {
name = "Vertical Swarm",
desc = "Causes chickens to pop out of dense swarms.",
author = "Google Frog",
date = "15 April 2013",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false
}
end
------------------------------------------------... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/modules/admin-mini/luasrc/model/cbi/mini/system.lua | 49 | 2293 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | gpl-2.0 |
tarantool/luarocks | src/luarocks/cmd/pack.lua | 1 | 1649 |
--- Module implementing the LuaRocks "pack" command.
-- Creates a rock, packing sources or binaries.
local cmd_pack = {}
local util = require("luarocks.util")
local pack = require("luarocks.pack")
local signing = require("luarocks.signing")
local queries = require("luarocks.queries")
cmd_pack.help_summary = "Create ... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Commands/CommandSelect.lua | 1 | 5203 | --[[
Title: CommandSelect
Author(s): LiXizhi
Date: 2014/7/5
Desc: selection related command
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Commands/CommandSelect.lua");
-------------------------------------------------------
]]
local SlashCommand = comm... | gpl-2.0 |
jsj2008/ValyriaTear | img/sprites/map/characters/thanis_run.lua | 4 | 1980 | -- Sprite animation file descriptor
-- This file will describe the frames used to load the sprite animations
-- This files is following a special format compared to other animation scripts.
local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH;
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH;
local ANIM_WEST = vt_map.MapMode.ANI... | gpl-2.0 |
groupforspeed/API-WaderTG | plugins/qrcode.lua | 18 | 1675 | local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors) do
if color == str then
return value
end
end
return str
end
loc... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Selbina/npcs/Chutarmire.lua | 1 | 1680 | -----------------------------------
-- Area: Selbina
-- NPC: Chutarmire
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
amirhooo/teleim | plugins/help.lua | 1 | 1779 | local function run(msg, matches)
if is_chat_msg(msg) then
local text = [[✅Commands to lock|unlock
💭/close|open link
💭/close|open member
💭/close|open name
💭/close|open bot
💭/close|open image
💭/close|open sticker
💭/close|open file
💭/close|open audio
➕
✅Commands for control member
💭/kick @UserName
💭/ban... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystemUI/MsgProc_AutoAction.lua | 1 | 9868 | --[[
Title: Auto action timer handler
Author(s): LiXizhi
Date: 2007/10/16
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemUI/MsgProc_AutoAction.lua");
Map3DSystem.EnableAutoActionMarker(true);
------------------------------------------------------------
]]
... | gpl-2.0 |
monkoose/neovim-setup | lua/custom/term.lua | 1 | 1715 | local utils = require("custom.utils")
local statusline = require("statusline")
local default_size = math.floor((vim.o.lines * (2 / 5)))
local augroup = vim.api.nvim_create_augroup("termresize", {})
local term = {
shell = "/bin/fish",
bufnr = 0,
pos = "split",
size = default_size,
}
local function set_win_opt... | mit |
vince06fr/prosody-modules | mod_pubsub_post/mod_pubsub_post.lua | 32 | 1139 | module:depends("http");
local st = require "util.stanza";
local json = require "util.json";
local formdecode = require "net.http".formdecode;
local uuid_generate = require "util.uuid".generate;
local timestamp_generate = require "util.datetime".datetime;
local pubsub_service = module:depends("pubsub").service;
funct... | mit |
fyrchik/xlua | exercises/gigasecond/gigasecond_spec.lua | 3 | 1176 | local gigasecond = require('gigasecond')
describe('gigasecond', function()
it('test 1', function()
local actual = gigasecond.anniversary(os.time({ year = 2011, month = 3, day = 25, hour = 0, min = 0, sec = 0 }))
local expectedDate = os.date('%x', os.time({ year = 2042, month = 12, day = 1, hour = 0, min = 0,... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Markets/npcs/Olwyn.lua | 1 | 1235 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Olwyn
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
-----------------------------... | gpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_pistol_ptm_2.meta.lua | 2 | 2835 | 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 |
RyMarq/Zero-K | lups/headers/vectors.lua | 8 | 2720 | -- $Id: vectors.lua 3171 2008-11-06 09:06:29Z det $
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--
-- file: vectors.h.lua
-- brief: collection of some usefull vector fun... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Configs/MetalSpots/RustyDelta_Final.lua | 8 | 2895 | return {
spots = {
{x = 9960, z = 3576, metal = 2.011},
{x = 1576, z = 1768, metal = 2.011},
{x = 9272, z = 2696, metal = 2.011},
{x = 3256, z = 1864, metal = 2.011},
{x = 1704, z = 2808, metal = 2.011},
{x = 984, z = 2696, metal = 2.011},
{x = 10136, z = 3720, metal = 2.011},
{x = 4728, z = 38... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/wild_melon.lua | 1 | 1131 | -----------------------------------------
-- ID: 4597
-- Item: wild_melon
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/farportal_vortex.lua | 3 | 1272 | -- 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/Tasks/Dock/DockAssetsPreloader.lua | 1 | 14422 | --[[
Title: DockAssetsPreloader
Author(s): leio
Date: 2020/10/29
Desc:
Use Lib:
-------------------------------------------------------
local DockAssetsPreloader = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/Dock/DockAssetsPreloader.lua");
DockAssetsPreloader.Start();
--]]
NPL.load("(gl)script/ide/FileLoader.l... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v1/get/flow/alert/list.lua | 1 | 1589 | --
-- (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 rest_utils = require("rest_utils")
local flow_alert_store = require "flow_alert_... | gpl-3.0 |
gmagnotta/packages | net/luci-app-e2guardian/files/e2guardian-cbi.lua | 55 | 18594 | --[[
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 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_base/cl_init.lua | 1 | 6624 | include("shared.lua")
include("animations.lua")
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.ViewModelFOV = 60
SWEP.ViewModelFlip = true
SWEP.BobScale = 1.5
SWEP.SwayScale = 1.5
SWEP.Slot = 0
SWEP.IronsightsMultiplier = 0.6
SWEP.HUD3DScale = 0.01
SWEP.HUD3DBone = "base"
SWEP.HUD3DAng = Angle(180, 0, 0)
func... | gpl-3.0 |
matin-igdery/og | plugins/stats.lua | 4 | 4003 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
joostlek/Cryonite | otouto/bindings.lua | 1 | 2245 | --[[
bindings.lua (rev. 2016/05/28)
otouto's bindings for the Telegram bot API.
https://core.telegram.org/bots/api
Copyright 2016 topkecleon. Published under the AGPLv3.
See the "Bindings" section of README.md for usage information.
]]--
local bindings = {}
local HTTPS = require('ssl.https')
local JSON = requir... | agpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Mhaura/npcs/Blandine.lua | 1 | 2178 | -----------------------------------
-- Area: Mhaura
-- NPC: Blandine
-- Start Quest: The Sand Charm
-- @zone 249
-- @pos 23 -7 41
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["scrip... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Agent/AgentWorld.lua | 1 | 6460 | --[[
Title: Agent World
Author(s): LiXizhi
Date: 2021/3/8
Desc: a simulated world in memory, in which we can add code blocks and movie block.
Entities from agent world are created into the real world, however, the agent world itself does not take any real world space.
We can load agent world from agent file (template... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Movie/BoneController.lua | 1 | 2717 | --[[
Title: Bone controllers
Author(s): LiXizhi
Date: 2015/9/25
Desc: Bone controllers are transforms vectors into multiple bones's parameters, it is mostly used in facial expression.
Controllers in animation files(such as bmax, fbx, x) can be specified in an xml file using same model filename.
for example, if model ... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/birth/sexes.lua | 3 | 1173 | -- 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/NplBrowser/NplBrowserLoaderPage.lua | 1 | 14284 | --[[
Title: NplBrowserLoaderPage
Author(s): leio
Date: 2019.3.26
Desc:
This is a background loader to download the resources of cefclient.exe automatically.
Deployed on cdn server, the resources are download by AssetsManager which is configured by configs/nplbrowser.xml.
use the lib:
---------------------------------... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/MapEffect.lua | 3 | 1100 | -- 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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/shertul_fortress_engine.lua | 3 | 1407 | -- 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 | plugins/groupsetting.lua | 23 | 31508 | do
local function check_member(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.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/cloth-armors.lua | 3 | 2189 | -- 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 |
Darvame/teateatea | test.lua | 1 | 14394 | local tea = require "teateatea";
local crunning;
local tosmeta = {
__tostring = function(self)
return self[1];
end
};
local check = function(this, tothis, opt, safe)
if not (this == nil or this ~= tothis) then
return true;
end
print(crunning or "Test", "OPT::" .. (opt or ""),"FAILED");
print("1>" .. (tostr... | mit |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/flower_pink_2.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_8.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 |
jkassman/wesnoth | data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua | 26 | 5870 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local LS = wesnoth.require "lua/location_set.lua"
local WMPF = wesnoth.require "ai/micro_ais/cas/ca_wolves_multipacks_functions.lua"
local ca_wolves_mult... | gpl-2.0 |
koesie10/LuaSerializer | tests/advanced-test.lua | 1 | 17669 | -- From https://github.com/cuberite/WorldEdit/blob/master/Info.lua
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "WorldEdit",
Version = 7,
DisplayVersion = "0.1.6",
Date = "2016-02-02", -- yyyy-mm-dd
SourceLocation = "https://github.com/cuberite/WorldEdit",
Desc... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Mhaura/npcs/Vera.lua | 1 | 2852 | -----------------------------------
-- Area: Mhaura
-- NPC: Vera
-- Finishes Quest: The Old Lady
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
re... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Southern_San_dOria/npcs/Home_Point.lua | 8 | 1209 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Home Point
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria/TextIDs");
---------------------------------... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Abeaule.lua | 1 | 4011 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Abeaule
-- Starts and Finishes Quest: The Trader in the Forest, The Medicine Woman
-- @zone 231
-- @pos -136 -2 56
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------------... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/WorldKey/InvalidKeyPage.lua | 1 | 2088 | --[[
Title: InvalidKeyPage
Author(s): yangguiyi
Date: 2020/9/2
Desc:
Use Lib:
-------------------------------------------------------
local InvalidKeyPage = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/WorldKey/InvalidKeyPage.lua");
InvalidKeyPage.Show();
--]]
local WorldKeyManager = NPL.load("(gl)script/apps/A... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/loaf_of_steel_bread.lua | 1 | 1132 | -----------------------------------------
-- ID: 4573
-- Item: loaf_of_steel_bread
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 6
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/en-lock-fwd.lua | 1 | 1557 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OSAMA ▀▄ ▄▀
▀▄ ▄▀ BY OSAMA (@OS_AA23) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OSAMA ▀▄ ▄▀
▀▄ ▄▀ broadcast : lock fwd ▀▄ ▄▀
▀▄▀▀▄▄▀... | gpl-2.0 |
wmAndym/lua-csv | lua/test.lua | 2 | 2423 | pcall(require, "strict")
local csv = require"csv"
local errors = 0
local function testhandle(handle, correct_result)
local result = {}
for r in handle:lines() do
if not r[1] then
local r2 = {}
for k, v in pairs(r) do r2[#r2+1] = k..":"..tostring(v) end
table.sort(r2)
r = r2
end
... | mit |
gleachkr/luakit | lib/follow_selected_wm.lua | 4 | 1741 | -- Add {A,C,S,}-Return binds to follow selected link (or link in selection) - web module.
--
-- @submodule follow_selected_wm
-- @copyright 2016 Aidan Holm <aidanholm@gmail.com>
-- @copyright 2010 Chris van Dijk <quigybo@hotmail.com>
-- @copyright 2010 Mason Larobina <mason.larobina@gmail.com>
-- @copyright 2010 Paweł ... | gpl-3.0 |
gmagnotta/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 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/defuse_kit.meta.lua | 2 | 2654 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"255 0 0 255",
"0 255 255 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = f... | agpl-3.0 |
Aminrezaa/megareborn | libs/dateparser.lua | 502 | 6212 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-3.0 |
mysql/mysql-proxy | tests/suite/base/t/ignore-resultset-mock.lua | 12 | 1519 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 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 distribut... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/http_status_code.lua | 2 | 1728 | --
-- (C) 2020 - ntop.org
--
-- This page shows the HTTP errors that a user can get
-- example: 404, 403, ...
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require("lua_utils")
local page_utils = require("page_utils")
local message = _GET["message"] or "... | gpl-3.0 |
RyMarq/Zero-K | units/factorytank.lua | 1 | 3239 | return { factorytank = {
unitname = [[factorytank]],
name = [[Tank Foundry]],
description = [[Produces Heavy Tracked Vehicles, Builds at 10 m/s]],
acceleration = 0,
brakeRate = 0,
buildCostMetal ... | gpl-2.0 |
10iii/synbank-com | api/lua/base.lua | 2 | 1303 | local redis = require "resty.redis"
local cjson = require "cjson"
local red = redis:new()
red:set_timeout(1000) -- 1 sec
local config = ngx.shared.config;
local the_key = ''
-- or connect to a unix domain socket file listened
-- by a redis server:
-- local ok, err = red:connect("unix:/path/to/redis.sock")
local ok, er... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Commands/CommandMenu.lua | 1 | 15879 | --[[
Title: menu command
Author(s): LiXizhi
Date: 2014/11/14
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Commands/CommandMenu.lua");
-------------------------------------------------------
]]
NPL.load("(gl)script/apps/Aries/Creator/Game/C... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/CodeAPI.lua | 1 | 7618 | --[[
Title: CodeAPI
Author(s): LiXizhi
Date: 2018/5/16
Desc: sandbox API environment, see also CodeGlobals for shared API and globals.
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/CodeAPI.lua");
local CodeAPI = commonlib.gettable("MyCompany.Aries... | gpl-2.0 |
ramin65/ub-ub | plugins/info.lua | 12 | 2022 | do
local function action_by_reply(extra, success, result)
local user_info = {}
local uhash = 'user:'..result.from.id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..result.from.id..':'..result.to.id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['.... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/techniques/pugilism.lua | 2 | 11936 | -- 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 |
rubenvb/skia | tools/lua/glyph-usage.lua | 207 | 4034 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
tarantool/luarocks | src/luarocks/core/cfg.lua | 1 | 29230 |
--- Configuration for LuaRocks.
-- Tries to load the user's configuration file and
-- defines defaults for unset values. See the
-- <a href="http://luarocks.org/en/Config_file_format">config
-- file format documentation</a> for details.
--
-- End-users shouldn't edit this file. They can override any defaults
-- set in... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/ice_vapour.lua | 3 | 1454 | -- 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/Packets/PacketBlockChange.lua | 1 | 1202 | --[[
Title: PacketBlockChange
Author(s): LiXizhi
Date: 2014/7/17
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Network/Packets/PacketBlockChange.lua");
local Packets = commonlib.gettable("MyCompany.Aries.Game.Network.Packets");
local packet = Pa... | gpl-2.0 |
eriche2016/nn | MultiCriterion.lua | 28 | 1216 | local MultiCriterion, parent = torch.class('nn.MultiCriterion', 'nn.Criterion')
function MultiCriterion:__init()
parent.__init(self)
self.criterions = {}
self.weights = torch.DoubleStorage()
end
function MultiCriterion:add(criterion, weight)
assert(criterion, 'no criterion provided')
weight = weight or... | bsd-3-clause |
madpilot78/ntopng | scripts/lua/rest/v1/get/host/fingerprint/data.lua | 2 | 1843 | --
-- (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 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Entity/EntityCmdTextureReplacer.lua | 1 | 3991 | --[[
Title: CmdTextureReplacer Entity
Author(s): LiXizhi
Date: 2014/2/12
Desc: replace the first block with second block in bag.
try the block below this block if second inventory slot does not exist.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Gam... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Yhoator_Jungle/Zone.lua | 1 | 2235 | -----------------------------------
--
-- Zone: Yhoator_Jungle
--
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
require("scripts/zones/Yh... | gpl-3.0 |
RyMarq/Zero-K | lups/ParticleClasses/ShieldJitter.lua | 8 | 5118 | -- $Id: ShieldJitter.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local ShieldJitter = {}
ShieldJitt... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | 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/kids/3DMapSystemUI/Desktop/DesktopWnd.lua | 1 | 26087 | --[[
Title: Desktop window for 3d map system
Author(s): WangTian,
Date: 2008/1/23
Revised:
* 2008/1/28 exposed to external apps via Desktop.icons by LiXizhi.
* 2008.3.18 login page is now from a local MCML file. by LiXizhi.
* 2008.6.17 mcml url icon is supported. LiXizhi.
Desc:
---++ Add desktop icons
One... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Markets/npcs/Shamarhaan.lua | 1 | 1087 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Shamarhaan
-- Type: Quest Starter
-- @zone: 235
-- @pos: -285.382 -13.021 -84.743
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_... | gpl-3.0 |
Aminrezaa/megareborn | plugins/lock_fosh.lua | 3 | 2340 | local function pre_process(msg)
local chkfosh = redis:hget('settings:fosh',msg.chat_id_)
if not chkfosh then
redis:hset('settings:fosh',msg.chat_id_,'off')
end
end
local function run(msg, matches)
--Commands --دستورات فعال و غیرفعال کردن فحش
if matches[1]:lower() == 'unlock' then
if matches[2]:lower() == 'fo... | gpl-3.0 |
kamran2222/Blackeagles | bot/utils.lua | 309 | 23029 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
james2doyle/lit | libs/calculate-deps.lua | 6 | 2942 | --[[
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 | LuaRules/Gadgets/unit_is_on_fire.lua | 2 | 7691 | -- $Id: unit_is_on_fire.lua 3309 2008-11-28 04:25:20Z google frog $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Units on fire",
desc = "Aa... | gpl-2.0 |
rigeirani/sss | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
pixeljetstream/luajit_gfx_sandbox | runtime/lua/socket/ftp.lua | 60 | 9243 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- D... | mit |
fegimanam/teshep | plugins/ingroup.lua | 3 | 38187 | do
local function check_member(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.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cs.lua | 1 | 2887 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Magical Gizmo #4 (S out of P, Q, R, S, T, U)
-- Involved In Mission: The Horutoto Ruins Experiment
-- Working ???%
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/settings.lua | 1 | 9697 | -----------------------------------------------
------------- GLOBAL SETTINGS -------------
-----------------------------------------------
--This is to allow server operators to further customize their servers. As more features are added to pXI, the list will surely expand.
--Anything scripted can be cust... | gpl-3.0 |
RyMarq/Zero-K | effects/janus.lua | 25 | 4668 | -- janusmuzzle
-- janusback
return {
["janusmuzzle"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
properties = {
airdrag = 0.6,
... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/quests/tutorial.lua | 3 | 1357 | -- 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 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | 37 | 6267 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-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
htt... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/undeads/undeads.lua | 3 | 2277 | -- 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/lua/rest/v2/get/datasource/datasource.lua | 1 | 4788 | --
-- (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/datasources/?.lua;" .. package.path
local json = require "dkjson"
local rest_utils = require "rest_utils"
local template =... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystem_Misc.lua | 1 | 4820 | --[[
Title: Misc functions for 3D Map system
Author(s): WangTian
Date: 2007/8/31
Desc: 3D Map system misc functions
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystem_Misc.lua");
Map3DSystem.Misc.xxx();
--------------------------------------------------------... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/admin/get_device_protocols.lua | 1 | 5515 | --
-- (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/pro/modules/?.lua;" .. package.path
require "lua_utils"
local presets_utils = require "presets_utils"
local json = require("dkjso... | gpl-3.0 |
crazyboy11/spol | plugins/info.lua | 1 | 8124 | do
local ali_ghoghnoos = 172178919 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, '... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/rooms/nine_chambers.lua | 3 | 1033 | -- 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/planeheavyfighter.lua | 1 | 4100 | return { planeheavyfighter = {
unitname = [[planeheavyfighter]],
name = [[Raptor]],
description = [[Air Superiority Fighter]],
brakerate = 0.4,
buildCostMetal = 300,
buildPic = [[planeheavyfighter.png]],
canFly =... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/interface/GameTargeting.lua | 2 | 16054 | -- 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 | LuaUI/Fonts/Skrawl_40.lua | 26 | 34023 | -- $Id: Skrawl_40.lua 3171 2008-11-06 09:06:29Z det $
local fontSpecs = {
srcFile = [[Skrawl.ttf]],
family = [[Skrawl]],
style = [[Regular]],
yStep = 45,
height = 40,
xTexSize = 512,
yTexSize = 1024,
outlineRadius = 1,
outlineWeight = 100,
}
local glyphs = {}
glyphs[32] = { --' '--
num... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/texts/unlock-afflicted_cursed.lua | 3 | 1849 | -- 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/talents/spells/advanced-golemancy.lua | 3 | 6410 | -- 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 |
crazyboy11/spol | plugins/music.lua | 3 | 2458 | --[[
#
# Music Downloader
#
# @Dragon_Born
# @GPMod
#
#
]]
local function musiclink(msg, musicid)
local value = redis:hget('music:'..msg.to.id, musicid)
if not value then
return
else
value = value..'\n\n@SpheroCh'
return value
end
end
------------------ Seconds To Minutes alg ------------------
function... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v2/get/user/alert/list.lua | 1 | 1466 | --
-- (C) 2021-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 rest_utils = require("rest_utils")
local user_alert_store = require "user_alert_... | gpl-3.0 |
eriche2016/nn | SpatialDilatedConvolution.lua | 3 | 3277 | local THNN = require 'nn.THNN'
local SpatialDilatedConvolution, parent = torch.class('nn.SpatialDilatedConvolution', 'nn.SpatialConvolution')
function SpatialDilatedConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH, dilationW, dilationH)
parent.__init(self, nInputPlane, nOutputPlane, kW, kH, ... | bsd-3-clause |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/rhaloren-camp-last.lua | 3 | 4213 | -- 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 |
jsj2008/ValyriaTear | img/sprites/map/enemies/lord_idle.lua | 4 | 1150 | -- Sprite animation file descriptor
-- This file will describe the frames used to load the sprite animations
-- This files is following a special format compared to other animation scripts.
local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH;
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH;
local ANIM_WEST = vt_map.MapMode.ANI... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/npcs/multihued-drake.lua | 3 | 8834 | -- 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/lua/rest/v2/charts/time/data.lua | 2 | 1238 | --
-- (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 epoch_begin = tonumber(_GET["epoch_begin"])
local epoch_end = tonumber(_GET["epoch_end"])
local num_rec... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.