repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
padrinoo/padrino
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
edumntg/forgottenserver
data/talkactions/scripts/kills.lua
43
1370
function onSay(player, words, param) local fragTime = configManager.getNumber(configKeys.FRAG_TIME) if fragTime <= 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.") return false end local skullTime = player:getSkullTime() if skullTime <= 0 then player:sendTe...
gpl-2.0
ashdnazg/Zero-K
effects/nota_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
mabako/mta-paradise
resources/job-bus/routes.lua
1
4644
--[[ Copyright (c) 2010 MTA: Paradise 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. This program is distributed in the hope ...
gpl-3.0
Phoib/truewar
mods/cnc/maps/nod06a/nod06a.lua
25
7746
NodStartUnitsRight = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3' } NodStartUnitsLeft = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' } Chn1Units = { 'e1', 'e1', 'e1', 'e1', 'e1' } Chn2Units = { 'e2', 'e2', 'e2', 'e2', 'e2' } Obj2Units = { 'ltnk', 'bike', 'e1', 'e1', 'e1' } Chn3CellTriggerActiva...
gpl-3.0
IRANBOT/IRANBOT
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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 function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
mitterdoo/wire
lua/entities/info_wiremapinterface/entityoverride.lua
17
4526
-- Stuff that the entity gets for its wire stuff. local WIREENT = {} -- Trigger wire input function WIREENT:TriggerInput(name, value, ...) if (!name or (name == "") or !value) then return end local Entity = self._WireMapInterfaceEnt if (!IsValid(Entity)) then return end if (!Entity.TriggerWireInput) then return e...
apache-2.0
WolfGaming/OpenRA
mods/d2k/maps/harkonnen-07/harkonnen07.lua
4
9979
--[[ 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
mitterdoo/wire
lua/entities/gmod_wire_expression2/core/angle.lua
10
10065
/******************************************************************************\ Angle support \******************************************************************************/ // wow... this is basically just vector-support, but renamed angle-support :P // pitch, yaw, roll registerType("angle", "a", { 0, 0, 0 }, func...
apache-2.0
adminerror/ERROR-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
telebot2/telebot
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
kiba/Factorio-MagneticFloor
src/test.lua
1
1252
remote.add_interface("mag", { getItems = function() game.players[1].insert{name = "hoverboard", count = 1} game.players[1].insert{name = "copper-floor3", count = 200} game.players[1].insert{name = "accelerator", count = 20} game.players[1].insert{name = "left", count = 5} game.players[1].insert{na...
mit
atlimit8/OpenRA
mods/ra/maps/soviet-03/soviet03.lua
7
14349
--[[ 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
SlownLS/Car-Trunk
car_trunk/lua/autorun/sh_car_trunk_config.lua
1
1446
/*----------------------------------------------------------------- Author = SlownLS Addon = Car Trunk -----------------------------------------------------------------*/ CarTrunk = {} CarTrunk.Config = {} // Addon language CarTrunk.Config.Language = 'fr' // Key To Open Inventory CarTrunk.Config.Key...
gpl-3.0
fuhongxue/CocosWidget
Lua/Resources/luaScript/test_layout.lua
2
4410
require "base" local func_next_CLayout_test_scene = nil; local func_back_CLayout_test_scene = nil; local func_ref_CLayout_test_scene = nil; -- createCLayoutBasicTest -- ===================================================== -- ===================================================== -- ===================================...
mit
IRANBOT/IRANBOT
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
fegimanam/sg1
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
kinotrip/HelloRuby
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/BaseLight.lua
10
1196
-------------------------------- -- @module BaseLight -- @extend Node -- @parent_module cc -------------------------------- -- light enabled getter and setter. -- @function [parent=#BaseLight] setEnabled -- @param self -- @param #bool enabled -------------------------------- -- intensity getter and setter ...
gpl-2.0
ashdnazg/Zero-K
scripts/jumparty.lua
5
9019
include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local pelvis = piece 'pelvis' local torso = piece 'torso' local rgun = piece 'rgun' local lgu...
gpl-2.0
anoidgit/Torch-nn-ext
test/tGRU.lua
1
9630
require 'paths' require 'rnn' local dl = require 'dataload' version = 2 --[[ command line arguments ]]-- cmd = torch.CmdLine() cmd:text() cmd:text('Train a Language Model on PennTreeBank dataset using RNN or LSTM or GRU') cmd:text('Example:') cmd:text('th recurrent-language-model.lua --cuda --device 2 --progress --cu...
gpl-3.0
AlexeySa/rspamd
contrib/torch/nn/MapTable.lua
5
3255
local MapTable, parent = torch.class('nn.MapTable', 'nn.Container') function MapTable:__init(module, shared) parent.__init(self) self.shared = (shared == nil) and true or shared self.sharedparams = {'weight', 'bias', 'gradWeight', 'gradBias'} self.output = {} self.gradInput = {} self:add(module) end ...
bsd-2-clause
qweru/Dilan
plugins/Id2.lua
11
2967
local function usernameinfo (user) if user.username then return '@'..user.username end if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_n...
gpl-2.0
qweru/Dilan
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
facebokiii/UHproject
plugins/moderation.lua
336
9979
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 local username = v.username data[tostring(m...
gpl-2.0
ashdnazg/Zero-K
LuaRules/Gadgets/ai_CAI2.lua
5
5244
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "CAI 2", desc = "Another AI that plays normal ZK", author = "Google Frog", date = "12 Ma...
gpl-2.0
AlexeySa/rspamd
rules/forwarding.lua
3
4877
--[[ Copyright (c) 2011-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...
bsd-2-clause
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua
11
2060
-------------------------------- -- @module OrbitCamera -- @extend ActionCamera -- @parent_module cc -------------------------------- -- Initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. -- @function [parent=#OrbitCamera] initWithDuration -- @param self -- @param #float t -- @param...
mit
hall-lab/speedseq
src/samtools-1.3.1/misc/r2plot.lua
28
2877
#!/usr/bin/env luajit function string:split(sep, n) local a, start = {}, 1; sep = sep or "%s+"; repeat local b, e = self:find(sep, start); if b == nil then table.insert(a, self:sub(start)); break end a[#a+1] = self:sub(start, b - 1); start = e...
mit
mitterdoo/wire
lua/entities/gmod_wire_egp/lib/objects/linestrip.lua
12
1267
-- Author: sk8 (& Divran) local Obj = EGP:NewObject( "LineStrip" ) Obj.w = nil Obj.h = nil Obj.x = nil Obj.y = nil Obj.vertices = {} Obj.verticesindex = "vertices" Obj.size = 1 Obj.Draw = function( self ) local n = #self.vertices if (self.a>0 and n>0 and self.size>0) then surface.SetDrawColor( self.r, self.g, self....
apache-2.0
lumidify/Lord-of-the-Test
mods/lottpotion/brewing.lua
3
12440
lottpotion.make_pipe = function( pipes, horizontal ) local result = {}; for i, v in pairs( pipes ) do local f = v.f; local h1 = v.h1; local h2 = v.h2; if( not( v.b ) or v.b == 0 ) then table.insert( result, {-0.37*f, h1,-0.37*f, -0.28*f, h2,-0.28*f}); table.insert( re...
lgpl-2.1
sdlowrey/sysbench
sysbench/tests/db/select_random_points.lua
13
3996
-- This test is designed for testing MariaDB's key_cache_segments for MyISAM, -- and should work with other storage engines as well. -- -- For details about key_cache_segments please refer to: -- http://kb.askmonty.org/v/segmented-key-cache -- function prepare() local query local i set_vars() db_connect()...
gpl-2.0
GiuseppeGorgoglione/mame
scripts/target/mame/mess.lua
1
101647
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- mess.lua -- -- MESS target makefile -- --------------------------------------------------------------------------- -------------------------------------------------- -- speci...
gpl-2.0
dannywu19910524/ChubbyMango
main.lua
1
8725
function init() panel_n = lcutils.integer(lovecat.number.Panel.n, 5, 50) panel_size = lcutils.integer(lovecat.number.Panel.size, 1, 10) panel_move_delay = lovecat.number.Panel.move_delay * 0.03 panel_y = love.window.getHeight() - lovecat.number.Panel.from_bottom * 50 panel_thick = lovecat.number.Panel.thick * ...
mit
Ali-2h/linux_w
plugins/cpu.lua
244
1893
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
kinotrip/HelloRuby
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua
10
1885
-------------------------------- -- @module SkeletonAnimation -- @extend SkeletonRenderer -- @parent_module sp -------------------------------- -- -- @function [parent=#SkeletonAnimation] setStartListener -- @param self -- @param #function listener -------------------------------- -- -- @function [parent=...
gpl-2.0
minaka1412/Cocos3DEditor
cocos2d/external/lua/luasocket/script/socket/url.lua
31
11037
----------------------------------------------------------------------------- -- URI parsing, composition and relative URL resolution -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- --------------------------------------------------------------...
mit
caldweln/nn
TemporalSubSampling.lua
19
1710
local TemporalSubSampling, parent = torch.class('nn.TemporalSubSampling', 'nn.Module') function TemporalSubSampling:__init(inputFrameSize, kW, dW) parent.__init(self) dW = dW or 1 self.inputFrameSize = inputFrameSize self.kW = kW self.dW = dW self.weight = torch.Tensor(inputFrameSize) self.bias...
bsd-3-clause
meepdarknessmeep/gmod-csweapons
lua/weapons/weapon_p90.lua
1
3106
AddCSLuaFile() DEFINE_BASECLASS( "weapon_csbasegun" ) CSParseWeaponInfo( SWEP , [[WeaponData { "MaxPlayerSpeed" "245" "WeaponType" "SubMachinegun" "FullAuto" 1 "WeaponPrice" "2350" "WeaponArmorRatio" "1.5" "CrosshairMinDistance" "7" "CrosshairDeltaDistance" "3" "Team" "ANY" "BuiltRightHanded" "0...
unlicense
halilkaya/minetest-mods
animals/mobf/mgen_jordan4ibanez/mgen_jordan4ibanez.lua
1
6158
------------------------------------------------------------------------------- -- 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 main_follow.lua --! @brief comp...
gpl-3.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Properties.lua
11
14144
-------------------------------- -- @module Properties -- @parent_module cc -------------------------------- -- Returns the value of a variable that is set in this Properties object.<br> -- Variables take on the format ${name} and are inherited from parent Property objects.<br> -- param name Name of the variable to g...
mit
rodamaral/amaraticando-tas
Tools/lsnes/customfont-from-charset-image.lua
1
4196
--------------------------------------------------------------------------- -- lsnes - CUSTOMFONT creator from char-set image -- This creates a font file that lsnes can understand. -- For instance, this image http://uzebox.org/wiki/index.php?title=File:Font6x8.png -- is transformed into this font: https://mega.nz/#...
mit
halilkaya/minetest-mods
homedecor/homedecor/shutters.lua
13
1774
-- Various kinds of window shutters local S = homedecor.gettext local shutters = { {"oak", "Unpainted oak", "#bf8a51:200" }, {"mahogany", "Mahogany", "#822606:200" }, {"red", "Red", "#d00000:150" }, {"yellow", "Yellow", "#ffff00:150" }, {"forest_green", "Forest g...
gpl-3.0
ashdnazg/Zero-K
lups/headers/vectors.lua
5
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
AlexeySa/rspamd
src/plugins/lua/once_received.lua
1
5364
--[[ Copyright (c) 2011-2015, 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...
bsd-2-clause
cedricporter/everlost
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Twirl.lua
2
1471
-------------------------------- -- @module Twirl -- @extend Grid3DAction -------------------------------- -- @function [parent=#Twirl] setAmplitudeRate -- @param self -- @param #float float -------------------------------- -- @function [parent=#Twirl] getAmplitudeRate -- @param self -- @return float#float...
apache-2.0
Chessnut/NutScript
gamemode/languages/sh_dutch.lua
5
8129
-- DUTCH TRANSLATION - http://steamcommunity.com/profiles/76561198084653538/ NAME = "Nederlands" LANGUAGE = { loading = "Laden", dbError = "Database verbinding gefaald", unknown = "Onbekend", noDesc = "Geen beschrijving beschikbaar", create = "Creëer", createTip = "Maak ...
mit
caldweln/nn
BinaryConnectLayer.lua
1
4090
local BinaryConnectLayer, Parent = torch.class('nn.BinaryConnectLayer', 'nn.Linear') function BinaryConnectLayer:__init(inputSize, outputSize, powerGlorot, opt) Parent.__init(self, inputSize, outputSize) self.verbose = opt.run.verbose -- binarized parameters for propagation self.rvWeight = torch.Tensor(outputS...
bsd-3-clause
halilkaya/minetest-mods
animals/animal_vombie/flame.lua
2
1821
--! @class vombie_flame --! @ingroup weapons --! @brief a plasmaball weapon entity vombie_flame = { physical = false, textures = {"animal_vombie_flames.png"}, visual = "sprite", collisionbox = {0,0,0,0,0,0}, spritediv = {x=1,y=16}, --vizual_size = {x=0.1,y=0.1}, velocity = 1.0, gravity = -0.1, damag...
gpl-3.0
GiuseppeGorgoglione/mame
3rdparty/genie/tests/base/test_config_bug.lua
9
3732
T.config_bug_report = { } local config_bug = T.config_bug_report local vs10_helpers = premake.vstudio.vs10_helpers local sln, prjA,prjB,prjC,prjD function config_bug.teardown() sln = nil prjA = nil prjB = nil prjC = nil prjD = nil end function config_bug.setup() end local config_bug_updated ...
gpl-2.0
Ardour/ardour
share/scripts/delete_xrun_markers.lua
6
1092
ardour { ["type"] = "EditorAction", name = "Delete xrun markers", author = "Ardour Team", description = [[Delete all xrun markers in the current session]] } function factory () return function () for l in Session:locations():list():iter() do if l:is_mark() and string.find (l:name(), "^xrun%d*$") then Session:loc...
gpl-2.0
sjznxd/luci-0.11.1
protocols/ipv6/luasrc/model/network/proto_4x6.lua
63
1522
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 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 ...
apache-2.0
mitterdoo/wire
lua/effects/thruster_ring_grow.lua
10
1652
EFFECT.Mat = Material( "effects/select_ring" ) /*--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------*/ function EFFECT:Init( data ) local size = 16 self:SetCol...
apache-2.0
halilkaya/minetest-mods
animals/animal_cow/init.lua
1
11700
------------------------------------------------------------------------------- -- 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 cow implement...
gpl-3.0
GiuseppeGorgoglione/mame
plugins/hiscore/init.lua
3
8061
-- hiscore.lua -- by borgar@borgar.net, WTFPL license -- -- This uses MAME's built-in Lua scripting to implment -- high-score saving with hiscore.dat infom just as older -- builds did in the past. -- local exports = {} exports.name = "hiscore" exports.version = "1.0.0" exports.description = "Hiscore" exports.license = ...
gpl-2.0
ashdnazg/Zero-K
LuaUI/Widgets/gui_chili_chicken.lua
4
18989
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Chicken Panel", desc = "Indian cuisine", author = "quantum, KingRaptor", date = "...
gpl-2.0
GiuseppeGorgoglione/mame
3rdparty/genie/tests/base/test_tree.lua
63
2786
-- -- tests/base/test_tree.lua -- Automated test suite source code tree handling. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.tree = { } local suite = T.tree local tree = premake.tree -- -- Setup/teardown -- local tr, nodes function suite.setup() tr = tree.new() nodes = { } end ...
gpl-2.0
xcjmine/skynet
service/gate.lua
16
2079
local skynet = require "skynet" local gateserver = require "snax.gateserver" local watchdog local connection = {} -- fd -> connection : { fd , client, agent , ip, mode } local forwarding = {} -- agent -> connection skynet.register_protocol { name = "client", id = skynet.PTYPE_CLIENT, } local handler = {} function...
mit
mitterdoo/wire
lua/entities/gmod_wire_latch.lua
10
5504
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Constraint Latch" ENT.Purpose = "Controllable weld and nocollide between two selected entities" ENT.WireDebugName = "Latch" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) se...
apache-2.0
ashdnazg/Zero-K
LuaRules/Gadgets/CustomUnitShaders/UnitMaterials/1_normalmapping.lua
17
4460
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local materials = { normalMappedS3o = { shaderDefinitions = { "#define use_perspective_correct_shadows", "#define use_nor...
gpl-2.0
stevedonovan/AndroLua
assets/main.lua
1
1426
-- main.lua -- This is an AndroLua activity which uses a traditional layout defined -- in XML. In this case, the `create` function does not return a view, -- but must set the content view explicitly. -- Note that `ctrls` is a cunning lazy table for accessing named -- controls in the layout! main = require 'andr...
mit
kinotrip/HelloRuby
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TargetedAction.lua
10
1593
-------------------------------- -- @module TargetedAction -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @overload self -- @overload self -- @function [parent=#TargetedAction] getForcedTarget -- @param self -- @return Node#Node ret (return value: cc.Node) ------...
gpl-2.0
male-puppies/openwrt-packages-puppies
luci/luci-app-shadowsocks/files/luci/model/cbi/shadowsocks/servers.lua
4
1191
-- 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" m = Map(shadowsocks, "%s - %s" %{translate("ShadowSocks"), translate("Servers Manage")}) -- [[ Servers Manage ]]-- s = m:section(TypedSection, "s...
gpl-2.0
interhui/httpdns
config.lua
1
3380
local cjson = require 'cjson' local global = require 'global' local nsf = require 'resty.nsf' local cache_srv = require 'service.cache' local log_srv = require 'service.log' local redis_srv = require 'service.redis' function publish_dns() local params = ngx.req.get_uri_args() local domain_name = params['domain']...
apache-2.0
edumntg/forgottenserver
data/actions/scripts/quests/annihilator.lua
14
1200
local playerPosition = { {x = 247, y = 659, z = 13}, {x = 247, y = 660, z = 13}, {x = 247, y = 661, z = 13}, {x = 247, y = 662, z = 13} } local newPosition = { {x = 189, y = 650, z = 13}, {x = 189, y = 651, z = 13}, {x = 189, y = 652, z = 13}, {x = 189, y = 653, z = 13} } function onUse(player, item, fromPosit...
gpl-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/RichElementImage.lua
13
1490
-------------------------------- -- @module RichElementImage -- @extend RichElement -- @parent_module ccui -------------------------------- -- brief Initialize a RichElementImage with various arguments.<br> -- param tag A integer tag value.<br> -- param color A color in Color3B.<br> -- param opacity A opacity in GLub...
bsd-3-clause
tahabaghshomalazar/CrystaL_bot
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
superopen/openwrt-luci
libs/sys/luasrc/sys/zoneinfo/tzoffset.lua
72
3904
--[[ LuCI - Autogenerated Zoneinfo Module 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 ]]-- module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt =...
apache-2.0
ashdnazg/Zero-K
units/vehcon.lua
5
2197
unitDef = { unitname = [[vehcon]], name = [[Mason]], description = [[Construction Rover, Builds at 5 m/s]], acceleration = 0.066, brakeRate = 1.5, buildCostMetal = 140, buildDistance = 180, builder = true, ...
gpl-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Terrain.lua
2
6011
-------------------------------- -- @module Terrain -- @extend Node -- @parent_module cc -------------------------------- -- initialize heightMap data -- @function [parent=#Terrain] initHeightMap -- @param self -- @param #char heightMap -- @return bool#bool ret (return value: bool) ------------------------...
bsd-3-clause
ashdnazg/Zero-K
LuaUI/Widgets/gui_selectkeys.lua
5
6802
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Select Keys", desc = "v0.035 Common SelectKey Hotkeys for EPIC Menu.", author = "CarRep...
gpl-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua
6
7890
-------------------------------- -- @module TMXLayer -- @extend Node -- @parent_module ccexp -------------------------------- -- Returns the position in points of a given tile coordinate.<br> -- param tileCoordinate The tile Coordinate.<br> -- return The position in points of a given tile coordinate. -- @function [p...
mit
alech/libquvi-scripts
share/media/soundcloud.lua
3
2953
-- libquvi-scripts -- Copyright (C) 2012-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 GN...
agpl-3.0
ashdnazg/Zero-K
scripts/staticheavyarty.lua
5
1972
local ground = piece 'ground' local base = piece 'base' local flare = piece 'flare' local muzzle = piece 'muzzle' local turret = piece 'turret' local barrel = piece 'barrel' local barrel_back = piece 'barrel_back' local sleeve = piece 'sleeve' local query = piece 'query' include "constants.lua" include "piece...
gpl-2.0
halilkaya/minetest-mods
technic/technic/machines/register/grinder_recipes.lua
2
5735
local S = technic.getter technic.register_recipe_type("grinding", { description = S("Grinding") }) function technic.register_grinder_recipe(data) data.time = data.time or 3 technic.register_recipe("grinding", data) end local recipes = { -- Dusts {"default:coal_lump", "technic:coal_dust 2"}, {"default:cop...
gpl-3.0
Evane-S-cencE/mrx
plugins/ar-info.lua
2
9526
do local Arian = 1059821358 --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, 'set Ran...
gpl-2.0
sjznxd/luci-0.11.1
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
8
2234
--[[ Luci statistics - processes plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
apache-2.0
sjznxd/luci-0.11.1
libs/sgi-cgi/luasrc/sgi/cgi.lua
13
2301
--[[ LuCI - SGI-Module for CGI Description: Server Gateway Interface for CGI FileId: $Id: cgi.lua 6535 2010-11-23 01:02:21Z soma $ License: 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...
apache-2.0
Steffen-Engel/XCSoar
Data/Lua/init.lua
18
1849
require("gestures"); require("gce"); -- Custom --------------------------------------------------------------------- xcsoar.replay.start("/home/jmw/.xcsoar/logs/2016-04-03-XFL-A4N-01.igc"); ttarget = 17900.0; dt = -1; record = false; xcsoar.timer.new(10, function(t) -- check for...
gpl-2.0
mitterdoo/wire
lua/entities/gmod_wire_expression2/core/timer.lua
8
4992
/******************************************************************************\ Timer support \******************************************************************************/ local timerid = 0 local runner local function Execute(self, name) runner = name self.data['timer'].timers[name] = nil if(self.entity an...
apache-2.0
fegimanam/sg1
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
superopen/openwrt-luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua
86
1449
--[[ Luci statistics - df plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
apache-2.0
xcjmine/skynet
service/service_provider.lua
10
2242
local skynet = require "skynet" local provider = {} local function new_service(svr, name) local s = {} svr[name] = s s.queue = {} return s end local svr = setmetatable({}, { __index = new_service }) function provider.query(name) local s = svr[name] if s.queue then table.insert(s.queue, skynet.response()) ...
mit
mitterdoo/wire
lua/entities/gmod_wire_dataport.lua
10
1402
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Data Port" ENT.WireDebugName = "DataPort" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE...
apache-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/TMXObjectGroup.lua
18
3248
-------------------------------- -- @module TMXObjectGroup -- @extend Ref -- @parent_module cc -------------------------------- -- Sets the offset position of child objects. <br> -- param offset The offset position of child objects. -- @function [parent=#TMXObjectGroup] setPositionOffset -- @param self -- @param #v...
bsd-3-clause
IRANBOT/IRANBOT
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
disslove/DJ-BOT
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
mitterdoo/wire
lua/entities/gmod_wire_radio.lua
10
3642
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Radio" ENT.WireDebugName = "Radio" if CLIENT then return end -- No more client local MODEL = Model( "models/props_lab/binderblue.mdl" ) function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ...
apache-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Animation.lua
11
6377
-------------------------------- -- @module Animation -- @extend Ref -- @parent_module cc -------------------------------- -- Gets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br> -- return The times the animation is going to loop. -- @function ...
mit
mabako/mta-paradise
resources/gui/hint_c.lua
1
2455
--[[ Copyright (c) 2010 MTA: Paradise 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. This program is distributed in the hope ...
gpl-3.0
AlexeySa/rspamd
contrib/torch/nn/Jacobian.lua
7
13755
nn.Jacobian = {} function nn.Jacobian.backward(module, input, param, dparam) local doparam = 0 if param then doparam = 1 end param = param or input -- output deriv module:forward(input) local dout = module.output.new():resizeAs(module.output) -- 1D view local sdout = module.output.new(...
bsd-2-clause
ConstellationGuild/EsoCraftOrdering
CraftOrdering/libs/LibAddonMenu-2.0/controls/colorpicker.lua
2
4158
--[[colorpickerData = { type = "colorpicker", name = "My Color Picker", -- or string id or function returning a string getFunc = function() return db.r, db.g, db.b, db.a end, --(alpha is optional) setFunc = function(r,g,b,a) db.r=r, db.g=g, db.b=b, db.a=a end, --(alpha is optional) tooltip = "Color ...
mit
ashdnazg/Zero-K
LuaUI/Configs/zk_keys.lua
2
5864
return { -- yyyymmdd -- if newer than user's, overwrite ALL zir zk_keys -- else just add any that are missing from local config ["date"] = 20130630, -- all default ZK keybinds. ["keybinds"] = { { "togglecammode", "Ctrl+backspace",}, { "togglecammode", "Shift+backspace",}, { "edit_backspace", "Any+backspa...
gpl-2.0
AlexeySa/rspamd
contrib/torch/nn/WeightedMSECriterion.lua
22
1259
local WeightedMSECriterion, parent = torch.class('nn.WeightedMSECriterion','nn.MSECriterion') function WeightedMSECriterion:__init(w) parent.__init(self) self.weight = w:clone() end function WeightedMSECriterion:updateOutput(input,target) self.buffer = self.buffer or input.new() self.buffer:resizeAs(input...
bsd-2-clause
Ardour/ardour
share/scripts/s_plugin_automation.lua
2
1464
ardour { ["type"] = "Snippet", name = "Plugin automation" } function factory () return function () -- query playhead position and session sample-rate local playhead = Temporal.timepos_t (Session:transport_sample ()) local samplerate = Temporal.timecnt_t (Session:nominal_sample_rate ()) -- get Track/Bus with RID 3...
gpl-2.0
lumidify/Lord-of-the-Test
mods/darkage/init.lua
3
5188
darkage = {}; -- Create darkage namespace local MODPATH = minetest.get_modpath("darkage") dofile(MODPATH.."/nodes.lua") dofile(MODPATH.."/mapgen.lua") dofile(MODPATH.."/building.lua") dofile(MODPATH.."/furniture.lua") dofile(MODPATH.."/aliases.lua") dofile(MODPATH.."/walls.lua") dofile(MODPATH.."/stairs_functions.lu...
lgpl-2.1
aaiijmrtt/nn
SpatialFullConvolution.lua
42
1589
local SpatialFullConvolution, parent = torch.class('nn.SpatialFullConvolution','nn.Module') function SpatialFullConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self.kW = kW ...
bsd-3-clause
GABEROON/jeuGit
classes/classe_obstacle.lua
1
2360
----------------------------------------------------------------------------------------- -- MADE BY GABRIEL CLOUTIER ON 6TH APRIL 2017 -- classe_obstacle.lua --------------------------------------------------------------------------------------------- local mObstacle={} function mObstacle:new() local obstacle = d...
mit
halilkaya/minetest-mods
animals/mobf/fighting.lua
1
42465
------------------------------------------------------------------------------- -- 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 fighting.lua --! @brief component...
gpl-3.0
mmosavi/tm
plugins/help.lua
5
3609
do function run(msg, matches) if is_momod(msg) then return [[ مشخصات گروه و فرد! #info —------------------------------ لیست ادمین های گروه! #admins —------------------------------ بلاک کردن و کیک کردن فرد از گروه! #kick [reply|id] —------------------------------ لیست بات های موجود تو گروه! #bots —-----...
gpl-2.0
ashdnazg/Zero-K
LuaUI/Widgets/chili_new/handlers/skinhandler.lua
9
4798
--//============================================================================= --// Theme SkinHandler = {} --//============================================================================= --// load shared skin utils local SkinUtilsEnv = {} setmetatable(SkinUtilsEnv,{__index = getfenv()}) VFS.Include(CHILI_DIRNAM...
gpl-2.0