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
CYBORGAN/antispam
plugins/time.lua
94
3004
-- 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
judos/robotMiningSite
source/prototypes/miningRobotSpeedTechnology.lua
1
2776
local function robotSpeedUpgrade(lvl) if lvl < 5 then return { type = "nothing", effect_description = {"modifier-description.mining-robot-speed", tostring(40)}, } else return { type = "nothing", effect_description = {"modifier-description.mining-robot-speed", tostring(25)}, } end ...
gpl-3.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/technic/technic/tools/mining_drill.lua
1
12370
local max_charge = {50000, 200000, 650000} local power_usage_per_node = {200, 500, 800} local S = technic.getter minetest.register_craft({ output = 'technic:mining_drill', recipe = { {'default:tin_ingot', 'technic:diamond_drill_head', 'default:tin_ingot'}, {'technic:stainless_steel_ingot', 'basic_ma...
gpl-3.0
auslin45/openwrt
package/my_package/openwrt-dist-luci/files/luci/model/cbi/chinadns.lua
2
1594
--[[ openwrt-dist-luci: ChinaDNS ]]-- local m, s, o if luci.sys.call("pidof chinadns >/dev/null") == 0 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(TypedSection, "chinadns", ...
gpl-2.0
Shayan123456/shayanhhallaji
plugins/sudoers.lua
86
2292
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
pydsigner/naev
dat/missions/sirius/heretic/heretic2.lua
9
7850
--[[misn title - the patrol]] --[[in this mission, the player will be guarding the "high command" of the nasin, the wringer/suna. house sirius is sending in recon parties. the players job is to take out any and all sirius in the system.]] include "dat/scripts/numstring.lua" lang = naev.lang() bmsg = {} --beginning...
gpl-3.0
Natsirtt/superArena
controllers/TouchScreenController.lua
1
6082
local mt = {} mt.__index = mt function newTouchScreenController() local this = {} this.player = nil this.minStickRadius = 50 this.maxStickRadius = 150 this.stickX = this.maxStickRadius this.stickY = love.graphics.getHeight() - this.maxStickRadius this.movePressed = false this.lastMoveTouchX = this...
mit
ExtraTabTeam/ExtraTab
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
fucksooN/tabchi
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
unlicense
emoon/sico
bin/win32/scripts/tundra/decl.lua
28
2152
module(..., package.seeall) local nodegen = require "tundra.nodegen" local functions = {} local _decl_meta = {} _decl_meta.__index = _decl_meta local current = nil local function new_parser() local obj = { Functions = {}, Results = {}, DefaultTargets = {}, AlwaysTargets = {}, } local outer_en...
mit
Errc27/ReStrat
profiles/Genetic Archives/phagemaw.lua
2
1898
----------------------------------------------------------------------------- --Phagemaw, Reglitch's Profile ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --Encounter Logic ------------------------------------...
gpl-2.0
logzero/ValyriaTear
dat/effects/particles/water_circle.lua
3
2795
-- Water circle particle effect -- Author: Bertram systems = {} systems[0] = { enabled = true, emitter = { x = 0, y = 0, x2 = 0, --useless when using a circle shape y2 = 0, --useless when using a circle shape center_x = 0, --useless when using a circle shape ...
gpl-2.0
rgujju/NexIDE
firmware/lua_examples/ucglib/GT_cross.lua
31
1442
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component cross...") local mx, my disp:setColor(0, 250, 0, 0) disp:setColor(1, 255, 255, 30) disp:setColor(2, 220, 235, 10) disp:setColor(3, 205, 0, 30...
gpl-3.0
rgujju/NexIDE
firmware/lua_modules/lm92/lm92.lua
19
5241
-- ****************************************************** -- LM92 module for ESP8266 with nodeMCU -- -- Written by Levente Tamas <levente.tamas@navicron.com> -- -- modify by Garberoglio Leonardo <leogarberoglio@gmail.com> -- -- GNU LGPL, see https://www.gnu.org/copyleft/lesser.html -- *********************************...
gpl-3.0
emadni/launcherlord
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
xdel/snabbswitch
src/apps/intel/intel10g.lua
7
54048
--- Device driver for the Intel 82599 10-Gigabit Ethernet controller. --- This is one of the most popular production 10G Ethernet --- controllers on the market and it is readily available in --- affordable (~$400) network cards made by Intel and others. --- --- You will need to familiarize yourself with the excellent [...
apache-2.0
adan830/wicker
kernel_extensions.lua
5
3547
----- --[[ Wicker ]] VERSION="3.0" -- -- Last updated: 2013-11-29 ----- --[[ -- Called by init.lua after bootstrapping. --]] --[[ Copyright (C) 2013 simplex 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 Fou...
gpl-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/hudbars/default_settings.lua
1
2567
-- (Hardcoded) default settings hb.settings.max_bar_length = 160 hb.settings.statbar_length = 20 -- Statbar positions hb.settings.pos_left = {} hb.settings.pos_right = {} hb.settings.start_offset_left = {} hb.settings.start_offset_right= {} hb.settings.pos_left.x = hb.load_setting("hudbars_pos_left_x", "number", 0.5)...
gpl-3.0
xuqiongkai/GraphBasedRNN
main/LogisticModel.lua
1
5046
-------------------------------------------------------------------------------- -- -- Graph-Based Recursive Neural Network for Vertex Classification -- Copyright (C) 2016-2017 Qiongkai Xu, Chenchen Xu -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of t...
gpl-3.0
drdownload/prosody-modules
mod_component_client/mod_component_client.lua
31
8204
--[[ mod_component_client.lua This module turns Prosody hosts into components of other XMPP servers. Config: VirtualHost "component.example.com" component_client = { host = "localhost"; port = 5347; secret = "hunter2"; } ]] local socket = require "socket" local logger = require "util.logger"; local sha...
mit
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PointLight.lua
11
1236
-------------------------------- -- @module PointLight -- @extend BaseLight -- @parent_module cc -------------------------------- -- get or set range -- @function [parent=#PointLight] getRange -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function...
gpl-3.0
BrunoMine/hardtorch
content/xdecor_candle.lua
1
2063
--[[ Mod HardTorch for Minetest Copyright (C) 2017-2019 BrunoMine (https://github.com/BrunoMine) You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Candle from xdecor mod ]] if minetest.registered_nodes["xdecor:candle"] ==...
lgpl-3.0
aguadev/aguadev
apps/node/node-v0.10.15/deps/v8/tools/gcmole/gccause.lua
157
2313
-- Copyright 2011 the V8 project authors. All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
mit
Djabbz/nn
init.lua
11
3390
require('torch') require('libnn') include('utils.lua') include('ErrorMessages.lua') include('Module.lua') include('Container.lua') include('Concat.lua') include('Parallel.lua') include('Sequential.lua') include('DepthConcat.lua') include('Linear.lua') include('SparseLinear.lua') include('Reshape.lua') include('View...
bsd-3-clause
TgHelperTM/tghelper
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-3.0
spixi/wesnoth
data/lua/wml-flow.lua
4
7769
local helper = wesnoth.require "helper" local utils = wesnoth.require "wml-utils" local wml_actions = wesnoth.wml_actions function wml_actions.command(cfg) utils.handle_event_commands(cfg, "plain") end -- we can't create functions with names that are Lua keywords (eg if, while) -- instead, we store the following ano...
gpl-2.0
salorium/awesome
lib/naughty/dbus.lua
3
9873
--------------------------------------------------------------------------- -- DBUS/Notification support -- Notify -- -- @author koniu &lt;gkusnierz@gmail.com&gt; -- @copyright 2008 koniu -- @release @AWESOME_VERSION@ -- @module naughty.dbus --------------------------------------------------------------------------- a...
gpl-2.0
T3hArco/skeyler-gamemodes
Sassilization/gamemode/client/cl_fix_emitters.lua
1
1171
-- Author: Jetboom AddCSLuaFile() if _FIXEDEMITTERS_ or not CLIENT then return end _FIXEDEMITTERS_ = true local OldParticleEmitter = ParticleEmitter local function ForwardFunc(from, funcname) from[funcname] = function(me, a, b, c, d, e, f) if not me.Emitter and me.EmitterVars then me.Emitter = Old...
bsd-3-clause
Reborn-org/tablighchi
lua-redis.lua
1
35605
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-3.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/RotateTo.lua
11
1689
-------------------------------- -- @module RotateTo -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @overload self, float, vec3_table -- @overload self, float, float, float -- @function [parent=#RotateTo] initWithDuration -- @param self -- @param #float duration -...
gpl-3.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua
11
1653
-------------------------------- -- @module TransitionFadeTR -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- -- @function [parent=#TransitionFadeTR] easeActionWithAction -- @param self -- @param #cc.ActionInterval action -- @return ActionInterval#ActionInterva...
gpl-3.0
rgujju/NexIDE
firmware/lua_modules/bh1750/bh1750.lua
89
1372
-- *************************************************************************** -- BH1750 module for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-22 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** loca...
gpl-3.0
McGlaspie/mvm
lua/mvm/Player.lua
1
30966
Script.Load("lua/mvm/TechTreeConstants.lua") Script.Load("lua/mvm/TechData.lua") Script.Load("lua/mvm/MvMUtility.lua") Script.Load("lua/mvm/AFKMixin.lua") Script.Load("lua/mvm/LiveMixin.lua") Script.Load("lua/mvm/TeamMixin.lua") Script.Load("lua/mvm/WeaponOwnerMixin.lua") if Client then Script.Load("lua/mvm/Colore...
gpl-3.0
ld-test/luse
doc/fwfs.lua
2
5682
#!/usr/bin/env lua local fuse = require 'luse' local udata = require 'luse.userdata' local errno = require 'luse.errno' local pio = require 'luse.posixio' local red = "\27[31m" local green = "\27[32m" local yellow = "\27[33m" local clean = "\27[0m" local verbose = false function info(msg) if verbose then print(gr...
mit
neg-serg/notion
example_cfg/rofi.lua
1
8062
dopath("rofi_handlers") local width = nil rofi = {} rofi.fontsz = 17 function rofi.font(t) local font_size = rofi.fontsz local font_name = neg.font if t ~= nil then if t.sz ~= nil and t.sz > 4 then font_size = t.sz end if t.font ~= nil and t.font ~= "" then ...
lgpl-2.1
LuaDist2/luacheck
src/luacheck/fs.lua
4
4291
local fs = {} local utils = require "luacheck.utils" fs.has_lfs = pcall(require, "lfs") local base_fs if fs.has_lfs then base_fs = require "luacheck.lfs_fs" else base_fs = require "luacheck.lua_fs" end local function ensure_dir_sep(path) if path:sub(-1) ~= utils.dir_sep then return path .. utils.dir...
mit
Armin041/Tele-Dam0
plugins/admin.lua
230
6382
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua
8
2076
-------------------------------- -- @module ProgressTo -- @extend ActionInterval -- @parent_module cc -------------------------------- -- brief Initializes with a duration and destination percentage. <br> -- param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br> -- param percent Sp...
gpl-3.0
pixeltailgames/gm-mediaplayer
lua/mediaplayer/players/components/vote.lua
1
4552
--[[-------------------------------------------- Vote object ----------------------------------------------]] local VOTE = {} VOTE.__index = VOTE function VOTE:New( ply, value ) local obj = setmetatable( {}, self ) obj.player = ply obj.value = value or 1 return obj end function VOTE:IsValid() return IsValid(...
mit
val-kulkov/openwrt-packages
net/wifidog-ng/files/wifidog-ng.lua
22
1178
#!/usr/bin/env lua --[[ Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your op...
gpl-2.0
wangtianhang/UnityLuaTest
toluaSnapshotTest/toluaRuntime/luajit-2.1/src/jit/dump.lua
43
20112
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
mit
ld-test/lua-nucleo
test/cases/0210-timed_queue.lua
3
6235
-------------------------------------------------------------------------------- -- 0210-timed_queue.lua: tests for timed queue -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ------------------------------------------------------------------------...
mit
ld-test/ldoc
ldoc/html/_reset_css.lua
3
1198
return [[ /* BEGIN RESET Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.8.2r1 */ html { color: #000; background: #FFF; } body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,text...
mit
DustinMorado/tomoauto
src/lib/tomoauto/settings/ctfphaseflip.lua
1
3417
--[[ Copyright (c) 2015 Dustin Reed Morado Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
mit
nobie/sesame_fw
feeds/luci/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
81
1335
--[[ 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...
gpl-2.0
ld-test/llui
testy/screen-test.lua
3
1687
package.path = package.path..";../src/?.lua" local ffi = require("ffi") local bit = require("bit") local band = bit.band local lshift, rshift = bit.lshift, bit.rshift local pixman = require("pixman")() local save_image = require("utils").save_image; local libc = require("libc")() local function main (argc, argv) ...
mit
CodeAnxiety/premake-core
src/actions/make/_make.lua
3
7063
-- -- _make.lua -- Define the makefile action(s). -- Copyright (c) 2002-2015 Jason Perkins and the Premake project -- premake.make = {} local p = premake local make = p.make local project = p.project --- -- The GNU make action, with support for the new platforms API --- newaction { trigger = "gmake"...
bsd-3-clause
jzbontar/nn
CosineDistance.lua
26
2154
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function CosineDistance:updateOutput(input) local input1, input2 = input[1], input[2] if input1:dim() == 1 then i...
bsd-3-clause
gajop/Zero-K
LuaRules/Utilities/base64.lua
12
3111
-- $Id: api_base64.lua 3171 2008-11-06 09:06:29Z det $ -- Author: Alex Kloss -- Contact: http://www.it-rfc.de -- Date: 2006-2008 -- License: LGPL2 -- Public functions: -- * Spring.Utilities.Base64Encode(string data) -> string -- * Spring.Utilities.Base64Decode(string data) -> string -- bitshift functions (<<, >> eq...
gpl-2.0
damoguyan8844/ABTestingGateway
admin/policy/del.lua
22
4156
local runtimeModule = require('abtesting.adapter.runtime') local policyModule = require('abtesting.adapter.policy') local redisModule = require('abtesting.utils.redis') local systemConf = require('abtesting.utils.init') local handler = require('abtesting.error.handler').handler local utils = require...
mit
AnsonSmith/kong
kong/dao/cassandra/consumers.lua
7
1141
local BaseDao = require "kong.dao.cassandra.base_dao" local query_builder = require "kong.dao.cassandra.query_builder" local consumers_schema = require "kong.dao.schemas.consumers" local Consumers = BaseDao:extend() function Consumers:new(properties) self._table = "consumers" self._schema = consumers_schema Co...
apache-2.0
nobie/sesame_fw
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua
80
3097
--[[ 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...
gpl-2.0
nobie/sesame_fw
feeds/luci/applications/luci-asterisk/dist/usr/lib/lua/luci/model/cbi/asterisk-mod-res.lua
80
3097
--[[ 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...
gpl-2.0
nobie/sesame_fw
feeds/luci/applications/luci-polipo/dist/usr/lib/lua/luci/model/cbi/polipo.lua
79
5961
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
gpl-2.0
mt246/mt246
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
KayMD/Illarion-Content
npc/base/consequence/gemcraft.lua
3
1051
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
kooiot/kooweb
apps/cloud/model/device/status.lua
1
1539
local redis = require 'resty.redis' local logger = require 'lwf.logger' local cjson = require 'cjson' local _M = {} local class = {} _M.new = function(m) local obj = { lwf = m.lwf, app = m.app, con = con } return setmetatable(obj, {__index=class}) end function class:init() if self.con then return true...
gpl-2.0
Mutos/NAEV-StarsOfCall
dat/events/tutorial/tutorial-planet.lua
11
6486
-- This is tutorial: the planetary screen. include("dat/events/tutorial/tutorial-common.lua") -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english title1 = "Tutorial: The Planetary Screen" message1 = [[Welcome to the planetary screen tutorial. In ...
gpl-3.0
gajop/Zero-K
scripts/attackdrone.lua
17
1428
include "constants.lua" --pieces local base, fan, barrel, flare, thrust1, thrust2 = piece('base', 'fan', 'barrel', 'flare', 'thrust1', 'thrust2') local blades = {piece('b1', 'b2', 'b3', 'b4', 'b5', 'b6')} local smokePiece = {base} --constants local rotorSpeed = math.rad(1080) local rotorAccel = math.rad(240) --varia...
gpl-2.0
duk3luk3/MoonGen
lua/include/lock.lua
4
1759
--------------------------------- --- @file lock.lua --- @brief Lock ... --- @todo TODO docu --------------------------------- local mod = {} local ffi = require "ffi" local stp = require "StackTracePlus" local log = require "log" ffi.cdef [[ struct lock { }; struct lock* make_lock(); void lock_lock(struct lock*...
mit
nobie/sesame_fw
feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
55
8246
--[[ 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
feserr/CrossEngine
Pong/scripts/genie.lua
1
1693
-- Copyright 2020 Elías Serrano. All rights reserved. -- License: https://github.com/feserr/crossengine#license solution "pong" configurations { "Debug", "Release", } if _ACTION == "xcode4" then platforms { "Universal", } else platforms { "x64", } end language "C++" startproject "pong" MODU...
bsd-2-clause
amir32002/feedback-networks
opts.lua
1
6326
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- local M = { } f...
mit
Duinrahaic/Garry-s-Mod
iplogger/lua/autorun/server/ip_tbl.lua
1
11334
if SERVER then AddCSLuaFile() Msg("Iplogger : Hooks initialized \n") //CONN hook hook.Add("PlayerInitialSpawn", "SaveIPCONN", function( ply ) if ply:IPAddress() != nil then local Action = "CONN" local NN = ply:Nick() local ID = ply:SteamID() local IP = ply:IPAddress() insert_log(Action,NN,ID,IP) ...
gpl-3.0
KayMD/Illarion-Content
triggerfield/aquestionofhonour_3.lua
3
3108
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope th...
agpl-3.0
gajop/Zero-K
units/heavyturret.lua
8
5320
unitDef = { unitname = [[heavyturret]], name = [[Sunlance]], description = [[Anti-Tank Turret - Requires 25 Power]], activateWhenBuilt = true, buildCostEnergy = 700, buildCostMetal = 700, builder ...
gpl-2.0
hacker44-h44/teleguard
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
mt246/mt246
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
mehdisadeghi/mehdix.ir
src/assets/instead/fs/stead/stead3/ext/sound.lua
2
4508
-- raw interface to sound local std = stead local instead = std.ref '@instead' -- luacheck: globals instead_sound_load -- luacheck: globals instead_sound_free -- luacheck: globals instead_sounds_free -- luacheck: globals instead_sound_channel -- luacheck: globals instead_sound_volume -- luacheck: globals instead_sou...
cc0-1.0
tryller/crystalserver
data/actions/scripts/map/quests/cities/Premium_Quests.lua
1
1063
local t = { [5045] = {5045, "a knight axe", 2430, 1}, [5046] = {5046, "a fire axe", 2432, 1}, [5047] = {5047, "a vampire shield", 2534, 1}, [5048] = {5048, "an obsidian lance", 2425, 1}, [5058] = {5058, "a piece of ancient helmet", 2338, 1}, [5059] = {5059, "a black shield", 2529, 1}, [5060] = {5060, "a winged h...
gpl-3.0
Mistranger/OpenRA
mods/d2k/maps/ordos-03a/ordos03a.lua
2
5806
HarkonnenBase = { HBarracks, HWindTrap1, HWindTrap2, HLightFactory, HOutpost, HConyard, HRefinery, HSilo1, HSilo2, HSilo3, HSilo4 } HarkonnenBaseAreaTrigger = { CPos.New(2, 58), CPos.New(3, 58), CPos.New(4, 58), CPos.New(5, 58), CPos.New(6, 58), CPos.New(7, 58), CPos.New(8, 58), CPos.New(9, 58), CPos.New(10, 58), CPos....
gpl-3.0
adel8268adelad/Bot-thebest
plugins/lock_bots.lua
2
3385
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot...
agpl-3.0
Mutos/NAEV-StarsOfCall
dat/missions/empire/es_cargo.lua
5
5501
--[[ Handles the randomly generated Empire cargo missions. ]]-- include "dat/scripts/cargo_common.lua" include "dat/scripts/numstring.lua" lang = naev.lang() if lang == "es" then -- not translated atm else -- default english misn_desc = "The Empire needs to ship %d tonnes of %s to %s in the %s system by %s...
gpl-3.0
jayman39tx/naev
dat/missions/neutral/sightseeing.lua
4
8893
--[[ Sightseeing author:micahmumper 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...
gpl-3.0
casseveritt/premake
src/base/io.lua
12
1545
-- -- io.lua -- Additions to the I/O namespace. -- Copyright (c) 2008-2009 Jason Perkins and the Premake project -- -- -- Prepare to capture the output from all subsequent calls to io.printf(), -- used for automated testing of the generators. -- function io.capture() io.captured = '' end -- -- Returns the...
bsd-3-clause
wangtianhang/UnityLuaTest
protoBufTest/UnityLuaTest2018/Assets/ToLua/Lua/socket/http.lua
15
13200
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ---------------------------------------------------------------------...
mit
torhve/ivar2
modules/spotify.lua
1
5306
-- OLD: http://developer.spotify.com/en/metadata-api/overview/ -- NEW: https://developer.spotify.com/web-api/migration-guide/ -- NEW: https://api.spotify.com/v1/tracks/3tLAA1LA06ecIaRSRbMFbi local util = ivar2.util local simplehttp = util.simplehttp local json = util.json local base64 = require'base64' local spotify =...
mit
nobie/sesame_fw
feeds/luci/applications/luci-statistics/luasrc/statistics/rrdtool.lua
69
15320
--[[ Luci statistics - rrdtool interface library / diagram model interpreter (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 ...
gpl-2.0
flike/Atlas
lib/admin-bak.lua
37
3379
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
yang2507366/Savanna
Savanna.bundle/UIKit/UIButton.lua
1
3711
require "UIView" require "UILabel" require "AppContext" require "CommonUtils" require "UITargetEvent" class(UIButton, UIView); -- constructor function UIButton:create(title--[[option]], buttonType--[[option]]) if title == nil then title = ""; end if buttonType == nil then buttonType = 1; ...
apache-2.0
mahdib77/bot
plugins/rules.lua
1
2361
local action = function(msg, blocks, ln) --ignore if via pm if msg.chat.type == 'private' then api.sendMessage(msg.from.id, lang[ln].pv) return nil end local hash = 'chat:'..msg.chat.id..':rules' if blocks[1] == 'rules' then --ignore if rules are locked and not is a mod if is_...
gpl-2.0
AnsonSmith/kong
spec/plugins/oauth2/schema_spec.lua
20
1863
local validate_entity = require("kong.dao.schemas_validation").validate_entity local oauth2_schema = require "kong.plugins.oauth2.schema" require "kong.tools.ngx_stub" describe("OAuth2 Entities Schemas", function() describe("OAuth2 Configuration", function() it("should not require a `scopes` when `mandatory_s...
apache-2.0
wxguidesigner/wxGUIDesigner
build/premake/4.3/src/actions/vstudio/vs2005_solution.lua
7
3222
-- -- vs2005_solution.lua -- Generate a Visual Studio 2005 or 2008 solution. -- Copyright (c) 2009 Jason Perkins and the Premake project -- function premake.vs2005_solution(sln) io.eol = '\r\n' -- Precompute Visual Studio configurations sln.vstudio_configs = premake.vstudio_buildconfigs(sln) -- Mark the ...
gpl-3.0
pixeltailgames/gm-mediaplayer
lua/mediaplayer/sh_mediaplayer.lua
1
5303
if SERVER then include "players/components/vote.lua" include "players/components/voteskip.lua" end --[[--------------------------------------------------------- Media Player Types -----------------------------------------------------------]] MediaPlayer.Type = {} local function setBaseClass( name, tbl ) local cl...
mit
Mutos/NAEV-StarsOfCall
dat/missions/pirate/pir_empbounty.lua
11
5592
--[[ empire bounty Random pirate hitman mission to kill a unique empire patrolman. Author: nloewen --]] include "dat/scripts/numstring.lua" -- Localization, choosing a language if naev is translated for non-english-speaking locales. lang = naev.lang() if lang == "es" then else -- Default to English --...
gpl-3.0
KayMD/Illarion-Content
triggerfield/northernislands_spirit_661.lua
4
1265
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
gajop/Zero-K
LuaUI/Configs/startup_info_selector.lua
7
3916
--all these will be used in LuaUI\Widgets\gui_startup_info_selector.lua -- Changelog -- -- versus666 (30oct2010) : Added selector to remplace tooltip which is now shown by chili_selection. -- Added long description of commanders strengths et weakness to tooltip. -- Commented a lot for easier modification....
gpl-2.0
gajop/Zero-K
LuaRules/Gadgets/mission_orbital_drop.lua
6
14122
function gadget:GetInfo() return { name = "Orbital Drop", desc = "Makes units spawned with GG.DropUnit fall from the sky.", author = "quantum, msafwan", --msafwan add dynamic/configurable orbital drop date = "November 2010", --7 April 2013 license = "GNU GPL, v2 or later", ...
gpl-2.0
mardraze/prosody-modules
mod_onhold/mod_onhold.lua
32
2253
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- Copyright (C) 2009 Jeff Mitchell -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local datamanager = require "util.datamanager"; local jid_bare = requi...
mit
CodeAnxiety/premake-core
contrib/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
pedigree/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
gajop/Zero-K
LuaRules/Gadgets/unit_morph.lua
3
39724
-- $Id: unit_morph.lua 4651 2009-05-23 17:04:46Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_morph.lua -- brief: Adds unit morphing command -- author: Dave Rodgers (imp...
gpl-2.0
ld-test/lua-nucleo
test/cases/0020-args.lua
2
11029
-------------------------------------------------------------------------------- -- 0020-args.lua: tests for various utilities related to function arguments -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -------------------------------------------...
mit
Tarfand-pro/BDReborn
plugins/info.lua
1
8311
--Begin info.lua local Solid = 987654321 local function setrank(msg, user_id, value,chat_id) local hash = nil hash = 'rank:'..msg.to.id..':variables' if hash then redis:hset(hash, user_id, value) return tdcli.sendMessage(chat_id, '', 0, '_set_ *Rank* _for_ *[ '..user_id..' ]* _To :_ *'..value..'*', 0, "...
gpl-3.0
Sweet-kid/Algorithm-Implementations
Convex_hull/Lua/Yonaba/convex_hull_test.lua
26
1259
-- Tests for convex_hull.lua local hull = require 'convex_hull' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end ...
mit
ld-test/llui
src/linux_input.lua
4
26016
local ffi = require("ffi") local libc = require("libc")() ffi.cdef[[ struct input_event { struct timeval time; uint16_t type; uint16_t code; int32_t value; }; ]] ffi.cdef[[ struct input_id { uint16_t bustype; uint16_t vendor; uint16_t product; uint16_t version; }; struct input_absinfo { int32_t value; in...
mit
nobie/sesame_fw
feeds/luci/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
30
5877
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- f...
gpl-2.0
gajop/Zero-K
LuaRules/Gadgets/unit_bomber_command.lua
2
26498
------------------------------------------------------------------------------ -- HOW IT WORKS: -- After firing, set ammo to 0 and look for a pad -- Find first combat order and queue rearm order before it -- If bomber idle and out of ammo (UnitIdle), give it rearm order -- When bomber is in range of airpad (GameFrame...
gpl-2.0
gajop/Zero-K
LuaUI/Widgets/unit_building_starter.lua
12
2690
-- $Id$ function widget:GetInfo() return { name = "Building Starter", desc = "v2 Hold Q to queue a building to be started and not continued.", author = "Google Frog", date = "Dec 13, 2008", license = "GNU GPL, v2 or later", layer = 5, enabled = true -- loaded b...
gpl-2.0
KayMD/Illarion-Content
base/townTreasure.lua
4
4883
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0