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
tahabaghshomalazar/CrystaL_bot
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
disslove/DJ-BOT
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
ashdnazg/Zero-K
LuaUI/Configs/tipconfig.lua
6
6803
local THRESHOLD_EXPENSIVE = 800 --seconds TIMER_EXPENSIVE_UNITS = 60 * 10 TIMER_ADV_FACTORY = 60 * 15 TIMER_SUPERWEAPON = 60 * 30 stringExpensiveUnits = "That <name> is particularly expensive; at this point, cheaper units offer far more flexibility. You should probably save that for later." stringAdvFactory = "That <...
gpl-2.0
Reda9991/dev-monster
plugins/save.lua
12
22997
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI CH > @lTSHAKEl_CH --]] d...
gpl-2.0
napcode/ardour
share/scripts/s_plugin_automation.lua
4
1400
ardour { ["type"] = "Snippet", name = "Plugin automation" } function factory () return function () -- query playhead position and session sample-rate local playhead = Session:transport_sample () local samplerate = Session:nominal_sample_rate () -- get Track/Bus with RID 3 local r = Session:get_remote_nth_route(3...
gpl-2.0
alech/libquvi-scripts
share/util/to_file_ext.lua
3
1765
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Free Sof...
agpl-3.0
ashdnazg/Zero-K
scripts/dynstrike.lua
8
24832
include "constants.lua" dyncomm = include('dynamicCommander.lua') local AntennaTip = piece('AntennaTip') local ArmLeft = piece('ArmLeft') local ArmRight = piece('ArmRight') local AssLeft = piece('AssLeft') local AssRight = piece('AssRight') local Breast = piece('Breast') local CalfLeft = piece('CalfLeft') local CalfR...
gpl-2.0
AlexeySa/rspamd
rules/mid.lua
3
4160
--[[ Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru> Copyright (c) 2016, Steve Freegard <steve@freegard.name> 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...
bsd-2-clause
ashdnazg/Zero-K
units/chickend.lua
2
3808
unitDef = { unitname = [[chickend]], name = [[Chicken Tube]], description = [[Defense and energy source]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildCostEnergy ...
gpl-2.0
iamii/MySSH
books/mysql/mysql_clusters.lua
1
2036
-- -- User: iaai -- Date: 17-4-25 -- Time: 上午11:40 -- require ("books/common") mysql_clusters = {} function mysql_clusters:new(o) o = o or { nodes = { sql1 = { ip = "192.168.18.201", port = 22, user = "root", auth = "pw", passwd= "123", keyfile = "test", timeout...
gpl-3.0
GiuseppeGorgoglione/mame
scripts/src/lib.lua
5
3550
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- lib.lua -- -- Rules for building lib cores -- --------------------------------------------------------------------------- project "utils" uuid "22489ad0-4cb2-4d91-ad81-24b0d...
gpl-2.0
lumidify/Lord-of-the-Test
mods/boats/init.lua
2
9925
-- -- Helper functions -- local function is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end local function get_sign(i) if i == 0 then return 0 else return i / math.abs(i) end end local function get_velocity(v, yaw, y) local x = -math.sin(yaw) * v local...
lgpl-2.1
Return-To-The-Roots/s25client
tests/testData/maps/LuaFunctions.lua
1
6921
-- Copyright (C) 2005 - 2021 Settlers Freaks <sf-team at siedler25.org> -- -- SPDX-License-Identifier: GPL-2.0-or-later gfCounter = 0 isSinglePlayer = false isSavegame = false rttr:Log("LUA: Test Log from Lua") function getRequiredLuaVersion() return 1 end function getAllowedAddons() return {ADDON_LIMIT_CATAPULTS...
gpl-2.0
telespead/telespeadgit
plugins/stats.lua
866
4001
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
mohammad8/hu
plugins/stats.lua
866
4001
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
sadikalknani/DEV_PRO
plugins/stats.lua
866
4001
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...
agpl-3.0
iamii/MySSH
books/zabbix/main.lua
1
1642
-- -- Created by IntelliJ IDEA. -- User: guang -- Date: 2016-12-13 -- Time: 20:54 -- 总超时时间 TIMEOUT = 3000 -- 所有服务器都连接上才可执行脚本 GO_WITH_ALL_DONE = true -- 初始化时等待SSH连接完成再返回 WAIT_CONN_INIT = false local zabbix={ host="192.168.18.200", web={ user = "Admin", pass = "zabbix", }, mysqlcfg = { ...
gpl-3.0
ashdnazg/Zero-K
scripts/shipaa.lua
5
2609
include "constants.lua" include "pieceControl.lua" local base, wakel, waker, hull, radar = piece ('base', 'wakel', 'waker', 'hull', 'radar') local turret = {piece('fturret'), piece('bturret')} local barrels = {piece('fbarrels'), piece('bbarrels')} local flare = {piece('fflare'), piece('bflare')} local SIG_Move = 1 lo...
gpl-2.0
chiyun1/wax
lib/stdlib/enums.lua
18
12158
-- UIViewContentMode UIViewContentModeScaleToFill = 0 UIViewContentModeScaleAspectFit = 1 UIViewContentModeScaleAspectFill = 2 UIViewContentModeRedraw = 3 UIViewContentModeCenter = 4 UIViewContentModeTop = 5 UIViewContentModeBottom = 6 UIViewContentModeLeft = 7 UIViewContentModeRight = 8 UIViewContentModeTopLeft = 9 UI...
mit
aaiijmrtt/nn
Max.lua
27
1520
local Max, parent = torch.class('nn.Max', 'nn.Module') function Max:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Max:_lazyInit() self._output = self._output or self.output.new() self._indices = self._indices or (torch.type(self.output) =...
bsd-3-clause
superopen/openwrt-luci
libs/core/luasrc/model/firewall.lua
84
11156
--[[ LuCI - Firewall model Copyright 2009 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 Unless required by applica...
apache-2.0
huailiang/GameEngineen
Assets/uLua/lua/System/Main.lua
2
1153
UpdateBeat = Event("Update", true) LateUpdateBeat = Event("LateUpdate", true) CoUpdateBeat = Event("CoUpdate", true) FixedUpdateBeat = Event("FixedUpdate", true) function TestCo2() local go = GameObject.Find("/Cube") local render = go.renderer local mat = render.material local i = 1 while true do mat.color = ...
mit
dfki-iui/oms
resources/scripts/heartbeat.lua
1
2429
-- This segment of code defines a function called checkTemperatures that expects three arguments. -- The function itself iterates over each block ID in the given table, retrieves its -- payload via the dfki.getPayload(id) function and compares it to the thresholds passed as -- second and third arguments. If the value i...
gpl-3.0
GiuseppeGorgoglione/mame
3rdparty/genie/scripts/genie.lua
19
3055
-- -- Premake 4.x build configuration script -- -- -- Define the project. Put the release configuration first so it will be the -- default when folks build using the makefile. That way they don't have to -- worry about the /scripts argument and all that. -- premake.make.override = { "TARGET" } solution "genie" co...
gpl-2.0
superopen/openwrt-luci
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua
141
1038
--[[ smap_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i18n") re...
apache-2.0
mgsergio/omim
3party/osrm/osrm-backend/profiles/testbot.lua
69
3444
-- Testbot profile -- Moves at fixed, well-known speeds, practical for testing speed and travel times: -- Primary road: 36km/h = 36000m/3600s = 100m/10s -- Secondary road: 18km/h = 18000m/3600s = 100m/20s -- Tertiary road: 12km/h = 12000m/3600s = 100m/30s -- modes: -- 1: normal -- 2: route -- 3: river downstream ...
apache-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Physics3DPointToPointConstraint.lua
9
2547
-------------------------------- -- @module Physics3DPointToPointConstraint -- @extend Physics3DConstraint -- @parent_module cc -------------------------------- -- get pivot point in A's local space -- @function [parent=#Physics3DPointToPointConstraint] getPivotPointInA -- @param self -- @return vec3_table#vec3_tabl...
bsd-3-clause
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Physics3DPointToPointConstraint.lua
9
2547
-------------------------------- -- @module Physics3DPointToPointConstraint -- @extend Physics3DConstraint -- @parent_module cc -------------------------------- -- get pivot point in A's local space -- @function [parent=#Physics3DPointToPointConstraint] getPivotPointInA -- @param self -- @return vec3_table#vec3_tabl...
mit
linuxmaniac/luacheck
spec/utils_spec.lua
1
6963
local utils = require "luacheck.utils" describe("utils", function() describe("read_file", function() it("returns contents of a file", function() assert.match("contents\r?\n", utils.read_file("spec/folder/foo")) end) it("removes UTF-8 BOM", function() assert.match("foo\r?\nbar\r?...
mit
rwygand/ngx_borderpatrol
src/sessionid.lua
1
7960
-- session_id module to issue and validate signed session ids local crypto = require("crypto") local module = {} -- record expiration time in memcached local EXPTIME = 60 * 60 local EXPTIME_TMP = 60 * 60 * 24 * 7 -- defines how often secrets will be rotated local SECRETS_EXP_INTERVAL = 60 * 60 * 24 -- internal sess...
mit
halilkaya/minetest-mods
plantlife/dryplants/reed.lua
3
12609
----------------------------------------------------------------------------------------------- -- Dry Plants - Reed 0.0.5 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Looked at code from: darkage, default, sta...
gpl-3.0
superopen/openwrt-luci
applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua
44
1102
--[[ LuCI hd-idle (c) 2008 Yanira <forum-2008@email.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 $Id$ ]]-- require("nixio.fs") m = Map...
apache-2.0
saeqe/telespark
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua
11
5089
-------------------------------- -- @module LayerGradient -- @extend LayerColor -- @parent_module cc -------------------------------- -- Returns the start color of the gradient.<br> -- return The start color. -- @function [parent=#LayerGradient] getStartColor -- @param self -- @return color3b_table#color3b_table re...
mit
lumidify/Lord-of-the-Test
mods/lottinventory/init.lua
3
3612
dofile(minetest.get_modpath("lottinventory") .. "/functions.lua") dofile(minetest.get_modpath("lottinventory") .. "/potions.lua") dofile(minetest.get_modpath("lottinventory") .. "/brewing.lua") dofile(minetest.get_modpath("lottinventory") .. "/guides.lua") --Inventory Plus inventory_plus = {} inventory_plus.set_inven...
lgpl-2.1
alech/libquvi-scripts
share/common/quvi/hash.lua
3
1522
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Free Sof...
agpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Material.lua
9
3797
-------------------------------- -- @module Material -- @extend RenderState -- @parent_module cc -------------------------------- -- returns a clone (deep-copy) of the material -- @function [parent=#Material] clone -- @param self -- @return Material#Material ret (return value: cc.Material) ---------------...
bsd-3-clause
ashdnazg/Zero-K
scripts/chicken_blimpy.lua
5
1793
include 'constants.lua' local base = piece 'base' local body = piece 'body' local head = piece 'head' local tail = piece 'tail' local lwing = piece 'lwing' local rwing = piece 'rwing' local rsack = piece 'rsack' local lsack = piece 'lsack' local dodobomb = piece 'dodobomb' -- Signal definitions --local SIG_A...
gpl-2.0
lxmx/prosody-ansible
files/modules/mod_blocking.lua
32
5669
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
gpl-3.0
LukaOo/Cervix2017
models/decoder_module.lua
1
8045
require 'nn' -----------------------RESNET COPYPASTE--------------------- local Convolution = nn.SpatialConvolution local Avg = nn.SpatialAveragePooling local ReLU = nn.ReLU local LeakyReLU = nn.LeakyReLU local Max = nn.SpatialMaxPooling local SBatchNorm = nn.SpatialBatchNormalization local iChannels -- The shortcu...
gpl-3.0
xunkutech/openwrt-extra
luci/applications/luci-chinadns/luasrc/model/cbi/chinadns.lua
1
1486
--[[ RA-MOD ]]-- local fs = require "nixio.fs" local running=(luci.sys.call("pidof chinadns > /dev/null") == 0) if running then m = Map("chinadns", translate("chinadns"), translate("chinadns is running")) else m = Map("chinadns", translate("chinadns"), translate("chinadns is not running")) end s = m:section(Typed...
gpl-2.0
WolfGaming/OpenRA
mods/d2k/maps/ordos-03a/ordos03a-AI.lua
8
1862
--[[ Copyright 2007-2019 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
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Liquid.lua
8
3106
-------------------------------- -- @module Liquid -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of the effect.<br> -- param amplitudeRate The value of amplitude rate will be set. -- @function [parent=#Liquid] setAmplitudeRate -- @param self -- @param #...
bsd-3-clause
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Liquid.lua
8
3106
-------------------------------- -- @module Liquid -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of the effect.<br> -- param amplitudeRate The value of amplitude rate will be set. -- @function [parent=#Liquid] setAmplitudeRate -- @param self -- @param #...
mit
ashdnazg/Zero-K
effects/unused_charlize.lua
25
30008
-- charlize_7 -- charlize_3 -- charlize_2 -- charlize_14 -- charlize_1 -- charlize_17 -- charlize_6 -- charlize_4 -- charlize_10 -- charlize_11 -- charlize_12 -- charlize_21 -- charlize -- charlize_18 -- charlize_8 -- charlize_19 -- charlize_ani -- charlize_9 -- charlize_15 -- charlize_13 -- charlize_5 -- charlize_16 -...
gpl-2.0
linuxmaniac/luacheck
install.lua
1
4134
#!/usr/bin/env lua local dirsep = package.config:sub(1, 1) local is_windows = dirsep == "\\" package.path = "src" .. dirsep .. "?.lua" local has_luacheck, luacheck = pcall(require, "luacheck.init") assert(has_luacheck, "couldn't find luacheck module") local has_argparse, argparse = pcall(require, "luacheck.argparse") a...
mit
xcjmine/skynet
lualib/skynet/require.lua
1
1233
-- skynet module two-step initialize . When you require a skynet module : -- 1. Run module main function as official lua module behavior. -- 2. Run the functions register by skynet.init() during the step 1, -- unless calling `require` in main thread . -- If you call `require` in main thread ( service main function...
mit
NicolBolas/New-Vulkan-XML-Format
_ConvCommandsToOld.lua
1
1798
local common = require "_ConvCommon" local types = require "_ConvCommonTypes" local convert = require "_ConvCommonConvert" local cmd_children = { { test = "param", element = { name = "param", verbatim = true, proc = types.OldWriteVariable, }, }, convert.cmdStructValidityTo...
mit
teleRoOt3r/RoOt3r08
plugins/fun.lua
7
31685
 do -------------------------- local function savefile(extra, success, result) local msg = extra.msg local name = extra.name local adress = extra.adress local receiver = get_receiver(msg) if success then local file = './'..adress..'/'..name..'' print('File saving to:', result) os.rename...
agpl-3.0
ashdnazg/Zero-K
gamedata/modularcomms/weapons/concussion.lua
5
1227
local name = "commweapon_concussion" local weaponDef = { name = [[Concussion Shell]], alphaDecay = 0.12, areaOfEffect = 192, --cegTag = [[gauss_tag_m]], commandfire = true, craterBoost = 1, craterMult = 2, customPa...
gpl-2.0
ashdnazg/Zero-K
units/jumparty.lua
5
5229
unitDef = { unitname = [[jumparty]], name = [[Firewalker]], description = [[Saturation Artillery Walker]], acceleration = 0.12, brakeRate = 0.24, buildCostMetal = 900, builder = false, buildPic = [[jum...
gpl-2.0
mitterdoo/wire
lua/wire/stools/plug.lua
9
5332
WireToolSetup.setCategory( "Input, Output/Data Transfer" ) WireToolSetup.open( "plug", "Plug", "gmod_wire_socket", nil, "Plugs" ) if (SERVER) then CreateConVar("sbox_maxwire_plugs",20) CreateConVar("sbox_maxwire_sockets",20) //resource.AddFile("models/bull/various/usb_socket.mdl") //resource.AddFile("materials/b...
apache-2.0
vhpham80/luci
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config.lua
80
1153
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.controller.l...
apache-2.0
GiuseppeGorgoglione/mame
scripts/src/3rdparty.lua
1
63225
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- 3rdparty.lua -- -- Library objects for all 3rdparty sources -- --------------------------------------------------------------------------- -----------------------------------...
gpl-2.0
halilkaya/minetest-mods
animals/animal_chicken/init.lua
1
11383
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file init.lua --! @brief chicken imple...
gpl-3.0
AlexeySa/rspamd
src/plugins/lua/fann_redis.lua
1
36025
--[[ Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
bsd-2-clause
RazielSun/juma-editor
editor/lib/lua/editor/core/helpers.lua
2
1341
-------------------------------------------------------------------------------- -- -------------------------------------------------------------------------------- function takeScreenshot() print("Take screenshot ...") Executors.callOnce( function () local buffer = MOAIFrameBufferTexture.new() local scree...
mit
superopen/openwrt-luci
modules/niu/luasrc/model/cbi/niu/network/ddns1.lua
37
1993
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
alech/libquvi-scripts
share/media/videa.lua
3
2672
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2011 Bastien Nocera <hadess@hadess.net> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Aff...
agpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua
2
30888
-------------------------------- -- @module ParticleSystem -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- Gets the start size variance in pixels of each particle.<br> -- return The start size variance in pixels of each particle. -- @function [parent=#ParticleSystem] getStart...
bsd-3-clause
goofanader/space-bar
states/gameOver.lua
1
5343
require("middleclass") require("middleclass-commons") GameOver = class("GameOver", State) GameOver.static.endTypingSound = love.sound.newSoundData("media/sound/Name_Entered.wav") GameOver.static.messages = { {"Game Over", 0, 49}, {"You are humanity's last hope", 50, 99}, {"If you cannot beat them, we will di...
gpl-2.0
npmaier/JuJuCast
mods/default/aliases.lua
5
3604
-- aliases (Minetest 0.4 mod) -- Provides alias for most default items minetest.register_alias("stone", "default:stone") minetest.register_alias("stone_with_coal", "default:stone_with_coal") minetest.register_alias("stone_with_iron", "default:stone_with_iron") minetest.register_alias("dirt_with_grass", "default:dirt_w...
gpl-2.0
superopen/openwrt-luci
contrib/luadoc/lua/luadoc/taglet/standard.lua
93
16319
------------------------------------------------------------------------------- -- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $ ------------------------------------------------------------------------------- local assert, pairs, tostring, type = assert, pairs, tostring, type local io = require "io...
apache-2.0
vhpham80/luci
contrib/luadoc/lua/luadoc/util.lua
93
5826
------------------------------------------------------------------------------- -- General utilities. -- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- local posix = require "nixio.fs" local type, table, string, io, as...
apache-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Twirl.lua
8
3896
-------------------------------- -- @module Twirl -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of the effect.<br> -- param amplitudeRate The value of amplitude rate will be set. -- @function [parent=#Twirl] setAmplitudeRate -- @param self -- @param #fl...
mit
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Pass.lua
5
2449
-------------------------------- -- @module Pass -- @extend RenderState -- @parent_module cc -------------------------------- -- Unbinds the Pass.<br> -- This method must be called AFTER calling the actuall draw call -- @function [parent=#Pass] unbind -- @param self -- @return Pass#Pass self (return value: cc.Pass)...
bsd-3-clause
ashdnazg/Zero-K
gamedata/modularcomms/moduledefs.lua
2
31228
-------------------------------------------------------------------------------- -- system functions -------------------------------------------------------------------------------- Spring.Utilities = Spring.Utilities or {} VFS.Include("LuaRules/Utilities/base64.lua") VFS.Include("LuaRules/Utilities/tablefunctions.lua"...
gpl-2.0
Chessnut/NutScript
plugins/storage/sh_plugin.lua
2
5684
PLUGIN.name = "Storage" PLUGIN.author = "Chessnut" PLUGIN.desc = "Provides the ability to store items." PLUGIN.definitions = PLUGIN.definitions or {} STORAGE_DEFINITIONS = PLUGIN.definitions nut.util.include("sh_definitions.lua") for k, v in pairs(PLUGIN.definitions) do if (v.name and v.width and v.height) then n...
mit
ashdnazg/Zero-K
LuaUI/Widgets/tipdispenser.lua
5
15986
local widgetName = "Automatic Tip Dispenser" local playerID = Spring.GetMyPlayerID() local rank = playerID and select(9, Spring.GetPlayerInfo(playerID)) function widget:GetInfo() return { name = widgetName, desc = "v0.4 Teach you to play the game, one tip at a time", author = "KingRaptor; original by zwzsg", ...
gpl-2.0
ashdnazg/Zero-K
scripts/gunshipheavytrans.lua
5
15406
local body = piece 'body' local LUpperClaw1 = piece 'LUpperClaw1' local LMidClaw1 = piece 'LMidClaw1' local LLowClaw1 = piece 'LLowClaw1' local LUpperClaw2 = piece 'LUpperClaw2' local LMidClaw2 = piece 'LMidClaw2' local LLowClaw2 = piece 'LLowClaw2' local LUpperClaw3 = piece 'LUpperClaw3' local LMidClaw3 = pi...
gpl-2.0
goofanader/space-bar
classes/bullet.lua
1
1435
require("middleclass") require("middleclass-commons") Bullet = class("Bullet") Bullet.static.image = love.graphics.newImage("media/images/lazr.png") Bullet.static.sound = love.sound.newSoundData("media/sound/Laser_Shoot.wav") function Bullet:initialize(x, y, worldX, worldY, owner, direction, index, image, movementSpe...
gpl-2.0
lumidify/Lord-of-the-Test
mods/lottblocks/palantiri.lua
2
8464
lottblocks.palantiri = {} local tmp local file = io.open(minetest.get_worldpath().."/"..SAVEDIR.."/palantiri", "r") if file then tmp = minetest.deserialize(file:read("*all")) file:close() end if tmp ~= nil then lottblocks.palantiri = tmp[1] end local function save_palantiri() minetest.mkdir(minetest.get_wo...
lgpl-2.1
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua
8
1997
-------------------------------- -- @module Shaky3D -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Initializes the action with a range, shake Z vertices, grid size and duration.<br> -- param duration Specify the duration of the Shaky3D action. It's a value in seconds.<br> -- pa...
bsd-3-clause
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua
8
1997
-------------------------------- -- @module Shaky3D -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Initializes the action with a range, shake Z vertices, grid size and duration.<br> -- param duration Specify the duration of the Shaky3D action. It's a value in seconds.<br> -- pa...
mit
tahabaghshomalazar/CrystaL_bot
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
TeleDALAD/n
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/FlipX.lua
11
1226
-------------------------------- -- @module FlipX -- @extend ActionInstant -- @parent_module cc -------------------------------- -- init the action -- @function [parent=#FlipX] initWithFlipX -- @param self -- @param #bool x -- @return bool#bool ret (return value: bool) -------------------------------- -- ...
bsd-3-clause
sjznxd/luci-0.11.1
applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
7
2809
--[[ Luci configuration model for statistics - collectd netlink plugin configuration (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 Licen...
apache-2.0
halilkaya/minetest-mods
ambiance/ambience/init17.lua
3
14914
-------------------------------------------------------------------------------------------------------- --Ambiance Configuration for version .17 local max_frequency_all = 1000 --the larger you make this number the lest frequent ALL sounds will happen recommended values between 100-2000. --for frequencies below use a...
gpl-3.0
ashdnazg/Zero-K
LuaUI/Widgets/camera_recorder.lua
17
8831
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "CameraRecorder", desc = "v0.011 Record positions of the camera to a file and repath those posi...
gpl-2.0
superopen/openwrt-luci
libs/lucid-rpc/luasrc/lucid/rpc.lua
52
1197
--[[ LuCI - Lua Development Framework Copyright 2009 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$ ]] local re...
apache-2.0
bromagosa/beetleCloud
api.lua
1
24445
-- API module -- ========== -- User creation, project uploading, project fetching and so on local app = require 'app' local app_helpers = require 'lapis.application' local validate = require 'lapis.validate' local md5 = require 'md5' local bcrypt = require 'bcrypt' local db = require 'lapis.db' local Model = require('...
gpl-3.0
kiba/Factorio-MagneticFloor
stdlib/area/area.lua
3
6856
--- Area module -- @module Area require 'stdlib/core' require 'stdlib/area/position' Area = {} --- Returns the size of the space contained in the 2d area -- @param area the area -- @return size of the area function Area.area(area) fail_if_missing(area, "missing area value") area = Area.to_table(area) lo...
mit
aaiijmrtt/nn
Copy.lua
18
1142
local Copy, parent = torch.class('nn.Copy', 'nn.Module') function Copy:__init(intype, outtype, forceCopy, dontCast) intype = intype or torch.Tensor.__typename outtype = outtype or torch.Tensor.__typename self.dontCast = dontCast parent.__init(self) self.gradInput = torch.getmetatable(intype).new() ...
bsd-3-clause
ashdnazg/Zero-K
LuaUI/Configs/sounds_noises.lua
5
21940
-- needs select[1] and ok[1] (and build for cons) local sounds = { -- Misc default = { ok = { [1] = "light_bot_move", }, select = { [1] = "light_bot_select", }, }, staticrearm = { select = { [1] = "building_select1", }, }, athena = { build = "builder_start", ok = { [1] = "gunship_move...
gpl-2.0
ashdnazg/Zero-K
lups/ParticleClasses/UnitPieceLight.lua
5
9908
-- $Id: UnitPieceLight.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local UnitPieceLight = {} UnitPi...
gpl-2.0
ashdnazg/Zero-K
LuaRules/Gadgets/weapon_projectile_retarget.lua
2
5435
function gadget:GetInfo() return { name = "Projectile Retarget", desc = "Retargets newly created projectiles and implements burnblow.", author = "Google Frog", date = "10 June 2014", license = "GNU GPL, v2 or later", layer = 0, enabled = true, } end -----------...
gpl-2.0
cedricporter/everlost
src/main.lua
1
1390
require "Cocos2d" require "Cocos2dConstants" -- for CCLuaEngine traceback function __G__TRACKBACK__(msg) log.error("----------------------------------------") log.error("LUA ERROR: " .. tostring(msg) .. "\n") log.error(debug.traceback()) log.error("----------------------------------------") end local ...
apache-2.0
atlimit8/OpenRA
mods/ra/maps/fort-lonestar/fort-lonestar.lua
7
7731
--[[ 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
ashdnazg/Zero-K
LuaUI/Widgets/gui_chili_highlight.lua
4
7295
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Highlight", desc = "Draws colored circles around specified Chili elements", author ...
gpl-2.0
superopen/openwrt-luci
libs/sys/luasrc/sys/iptparser.lua
60
10704
--[[ Iptables parser and query library (c) 2008-2009 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008-2009 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 ...
apache-2.0
vhpham80/luci
libs/sys/luasrc/sys/iptparser.lua
60
10704
--[[ Iptables parser and query library (c) 2008-2009 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008-2009 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 ...
apache-2.0
ofanoyi/sumatrapdf
luatest/t00.lua
7
1101
require'setupluafiles' local winapi = require'winapi' require'mywin' require'winapi.messageloop' local c = winapi.MyWindow{title = 'Main', help_button = false, maximize_button = true, minimize_button = true, autoquit = true, w = 500, h = 300, visible = false} c:show() function c:WM_GETDLGCODE() return D...
gpl-3.0
ashdnazg/Zero-K
effects/lrpc_trail.lua
25
2379
-- vulcanfx return { ["vulcanfx"] = { usedefaultexplosions = false, exhale = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag ...
gpl-2.0
TeleDALAD/n
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
ashdnazg/Zero-K
scripts/turretlaser.lua
5
2533
local base = piece 'base' local body = piece 'body' local barrel = piece 'barrel' local turret = piece 'turret' local flare = piece 'flare' --linear constant 163840 include "constants.lua" include "pieceControl.lua" include "aimPosTerraform.lua" -- Signal definitions local SIG_AIM = 2 local function RestoreAfte...
gpl-2.0
male-puppies/openwrt-packages-puppies
luci/luci-app-shadowsocks/files/luci/model/cbi/shadowsocks/servers-details.lua
1
2104
-- Copyright (C) 2016-2017 Jian Chang <aa65535@live.com> -- Licensed to the public under the GNU General Public License v3. local m, s, o local shadowsocks = "shadowsocks" local sid = arg[1] local encrypt_methods = { "rc4-md5", "aes-128-cfb", "aes-192-cfb", "aes-256-cfb", "aes-128-ctr", "aes-192-ctr", "aes-256-...
gpl-2.0
AlexeySa/rspamd
rules/html.lua
3
10162
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to you under the Apache License, Version 2.0 -- (the "License"); you may not...
bsd-2-clause
Ardour/ardour
share/scripts/_export_plugins_on_save.lua
4
1353
ardour { ["type"] = "EditorHook", name = "Save Extra Data (instruments)", author = "Ardour Team", description = "Export custom data when the session is saved", } -- subscribe to signals -- http://manual.ardour.org/lua-scripting/class_reference/#LuaSignal.LuaSignal function signals () s = LuaSignal....
gpl-2.0
napcode/ardour
tools/split_benchmark.lua
3
2658
-- cd gtk2_ardour; ./arlua < ../tools/split_benchmark.lua -- This script creates some tracks, records noise, -- and then splits recorded regions on all tracks on every -- timecode frame (30 regions/sec) reclen = 30 -- seconds to record n_tracks = 16 -- number of tracks to create backend = AudioEngine:set_backend("...
gpl-2.0