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
PixelCraft3D/PixelCraft_game
files/default/formspec.lua
1
11486
default.ui = {} default.ui.core = {} default.ui.core.colors = "listcolors[#00000000;#00000010;#00000000;#68B259;#FFF]" default.ui.core.bg = "bgcolor[#00000000;false]" function default.ui.get_itemslot_bg(x, y, w, h) local out = "" for i = 0, w - 1, 1 do for j = 0, h - 1, 1 do out = out .."image["..x+i.....
cc0-1.0
DavidIngraham/ardupilot
libraries/AP_Scripting/examples/rangefinder_test.lua
24
1193
-- This script checks RangeFinder local rotation_downward = 25 local rotation_forward = 0 function update() local sensor_count = rangefinder:num_sensors() gcs:send_text(0, string.format("%d rangefinder sensors found.", sensor_count)) for i = 0, rangefinder:num_sensors() do if rangefinder:has_data_orient(ro...
gpl-3.0
pablo93/TrinityCore
Data/Interface/FrameXML/TabardFrame.lua
1
3778
function TabardFrame_OnLoad(self) self:RegisterEvent("OPEN_TABARD_FRAME"); self:RegisterEvent("CLOSE_TABARD_FRAME"); self:RegisterEvent("TABARD_CANSAVE_CHANGED"); self:RegisterEvent("TABARD_SAVE_PENDING"); self:RegisterEvent("UNIT_MODEL_CHANGED"); TabardFrameCostFrame:SetBackdropBorderColor(0.4, 0.4, 0.4); Taba...
gpl-2.0
xponen/Zero-K
LuaUI/Widgets/cmd_unit_mover.lua
12
3001
-- $Id: cmd_unit_mover.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: cmd_unit_mover.lua -- brief: Allows combat engineers to use repeat when building...
gpl-2.0
lambd0x/Awesome-wm-Funtoo-GreenInfinity
awesome/vicious/widgets/cpu_linux.lua
4
2069
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2011, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> -- * (c) 2011, Jörg Thalheim <jthalheim@gmail.com> --------------------------------------------------- -- {{{ Grab ...
gpl-2.0
Canaan-Creative/luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
78
1844
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
gpedro/forgottenserver
data/creaturescripts/scripts/droploot.lua
10
1176
function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) if getPlayerFlagValue(player, PlayerFlag_NotGenerateLoot) or player:getVocation():getId() == VOCATION_NONE then return true end local amulet = player:getSlotItem(CONST_SLOT_NECKLACE) if amulet and amulet.itemid == ITEM_AMUL...
gpl-2.0
nexusstar/dotfiles
neovim/.config/nvim/lua/config/gitsigns.lua
6
1658
local status_ok, gitsigns = pcall(require, "gitsigns") if not status_ok then return end gitsigns.setup { signs = { add = { hl = "GitSignsAdd", text = "▎", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" }, change = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeL...
unlicense
Canaan-Creative/luci
applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
74
2324
--[[ 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$ ]]-- lo...
apache-2.0
enoposix/mpv
TOOLS/lua/autodeint.lua
20
5073
-- This script uses the lavfi idet filter to automatically insert the -- appropriate deinterlacing filter based on a short section of the -- currently playing video. -- -- It registers the key-binding ctrl+d, which when pressed, inserts the filters -- ``vf=lavfi=idet,pullup,vf=lavfi=idet``. After 4 seconds, it removes ...
gpl-2.0
alexandergall/snabbswitch
src/lib/pmu_cpu.lua
15
475439
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- AUTOMATICALLY GENERATED FILE -- Date: Fri Aug 14 14:34:23 CEST 2015 -- Cmd: scripts/generate-pmu.sh return { {"GenuineIntel-6-2E", "V1", "core", { -- source: NHM-EX/NehalemEX_core_V1.tsv ["arith.cycles_div_busy"] = 0x011...
apache-2.0
alexandergall/snabbswitch
src/program/l2vpn/pseudowire.lua
6
30676
-- Simplified implementation of a pseudowire based on RFC 4664, -- providing a L2 point-to-point VPN on top of IPv6. -- -- This app has two connections, ac (Attachment Circuit) and uplink. -- The former transports Ethernet frames while the latter transports -- Ethernet frames encapsulated in IPv6 and a suitable tunneli...
apache-2.0
xponen/Zero-K
LuaRules/Gadgets/ai_testing_functions.lua
8
8090
function gadget:GetInfo() return { name = "AI testing functions", desc = "Test small parts of AI.", author = "Google Frog", date = "April 20 2014", license = "GNU GPL, v2 or later", layer = 0, enabled = false -- loaded by default? } end local ceil = math.ceil...
gpl-2.0
DigitalVeer/Lua-Snippets
RobloxConcepts/CustomCamera.lua
2
3592
repeat wait() until game.Players.LocalPlayer; local player = game.Players.LocalPlayer; repeat wait() until player.Character; repeat wait() until player.Character:FindFirstChild("Humanoid"); local character = player.Character; local currentArm = character:FindFirstChild("Right Arm"); workspace.CurrentCamera:Destroy() ...
mit
Schaka/gladdy
Libs/AceGUI-3.0/widgets/AceGUIWidget-ScrollFrame.lua
7
6348
local AceGUI = LibStub("AceGUI-3.0") ------------- -- Widgets -- ------------- --[[ Widgets must provide the following functions Acquire() - Called when the object is aquired, should set everything to a default hidden state Release() - Called when the object is Released, should remove any anchors and hide the Wid...
mit
anvilvapre/OpenRA
mods/ra/maps/soviet-04b/soviet04b-AI.lua
19
3108
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = Greece.GetGroundAttackers() Utils.Do(lazyUnits, function(unit) Trigger.OnDamaged(unit, function() Trigger.ClearAll(unit) Trigger.AfterDelay(0, function() IdleHunt(unit) end) ...
gpl-3.0
xponen/Zero-K
units/factorytank.lua
1
4768
unitDef = { unitname = [[factorytank]], name = [[Heavy Tank Factory]], description = [[Produces Heavy and Specialized Vehicles, Builds at 10 m/s]], acceleration = 0, bmcode = [[0]], brakeRate ...
gpl-2.0
qskycolor/wax
lib/stdlib/helpers/frame.lua
19
2670
-- This is weird code... I'm just playing with an idea function wax.frame(object) return wax.dimensions(object, "frame") end function wax.bounds(object) return wax.dimensions(object, "bounds") end function wax.dimensions(object, varName) return setmetatable({ object = object, center = function(self) ...
mit
4aiman/MineClone
mods/head/init.lua
3
1194
-- head system function addhead(node, desc) minetest.register_node("head:"..node, { description = ""..desc, drawtype = "nodebox", node_box = { type = "fixed", fixed = { { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, }, }, }, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,he...
lgpl-2.1
m2fan/cc
plugins/inrealm1.lua
1
16761
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_group_ch...
gpl-2.0
PixelCraft3D/PixelCraft_game
files/craftingguide/init.lua
1
5793
-- -- Crafting guide mod -- By Kaadmy, for Pixture -- craftingguide = {} craftingguide.items = {} craftingguide.itemlist = {} craftingguide.users = {} -- {item = selected item, itemno = recipe no., page = page no.} local page_size = 8 * 4 function craftingguide.get_formspec(name) local user = craftingguide.users[...
cc0-1.0
DreamHacks/dreamdota
DreamWarcraft/Build Tools/MPQFixEngine/lua/loop/thread/SocketScheduler.lua
12
3473
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
medoo3131/NEW-BOTT
plugins/su.lua
2
103853
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] --...
gpl-2.0
alexandergall/snabbswitch
src/lib/protocol/ipv6.lua
7
5307
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local htons, ntohs = lib.htons, lib.ntohs local AF_INET6 = 10 local INET6_ADDRSTRLEN = 48 ...
apache-2.0
Canaan-Creative/luci
modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua
79
3091
--[[ LuCI - Lua Configuration Interface Copyright 2009-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$ ]]...
apache-2.0
rogerpueyo/luci
modules/luci-compat/luasrc/model/network/proto_relay.lua
11
3063
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local device = luci.util.class(netmod.interface) netmod:register_pattern_virtual("^relay%-%w") local proto = netmod:register_protocol("relay") function proto.get_i18n(self) ...
apache-2.0
jackywgw/ntopng_test
scripts/lua/get_system_hosts_interaction.lua
2
5405
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/json') interface.select(ifname) flows_stats,total = aggregateFlowsStats(flows_stats = interface.getFlowsInfo()) local debug = false local ht...
gpl-3.0
nwf/nodemcu-firmware
app/lua53/host/tests/attrib.lua
7
12047
-- $Id: attrib.lua,v 1.65 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print "testing require" assert(require"string" == string) assert(require"math" == math) assert(require"table" == table) assert(require"io" == io) assert(require"os" == os) assert(require"coroutine" == coroutine) asser...
mit
xponen/Zero-K
effects/yellow_lightning.lua
8
19026
-- yellow_lightning_bomb -- yellow_lightning_bluebolts -- yellow_lightning_groundflash -- yellow_lightning_bomb_yellowbolts -- yellow_lightning_muzzle -- yellow_lightning_yellowbolts -- yellow_lightning_bomb_bluebolts -- yellow_lightningplosion -- yellow_lightning_stormbolt return { ["mixed_white_lightning_bomb_smal...
gpl-2.0
pokorj18/vlc
share/lua/playlist/koreus.lua
4
2055
--[[ Copyright © 2009 the VideoLAN team 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 2 of the License, or (at your option) any later version. This program is distributed in ...
gpl-2.0
iresty/gin
spec/core/response_spec.lua
4
1063
require 'spec.spec_helper' -- gin local Response = require 'gin.core.response' describe("Response", function() describe(".new", function() describe("when no options are passed in", function() it("initializes an instance with defaults", function() local response = Response.new(...
mit
xuejian1354/barrier_breaker
feeds/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua
69
2769
--[[ Luci statistics - interface 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....
gpl-2.0
Schaka/gladdy
Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
4
16945
--[[ $Id: AceGUIWidget-DropDown.lua 81438 2008-09-06 13:44:36Z nevcairiel $ ]]-- local min, max, floor = math.min, math.max, math.floor local AceGUI = LibStub("AceGUI-3.0") local function fixlevels(parent,...) local i = 1 local child = select(i, ...) while child do child:SetFrameLevel(parent:GetFrameLevel()+1) ...
mit
D3vMa3sTrO/superbot
plugins/replay.lua
2
40096
--[[ _ _ _ _____ _____ ____ ____ / \ / \ / \ | ____|___|_ _| /_\ \ / __ \ Đєⱴ 💀: @MaEsTrO_0 / / \/ / \ / _ \ | _| / __| | | | |_\_/| | | | Đєⱴ 💀: @devmaestr0 / / \ \/ \ \ / ___ \| |___\__ \ | | | | \ \| |__| | Đєⱴ ฿๏ͳ💀: @iqMaestroBot /_/ \/ ...
gpl-2.0
Vermeille/kong
kong/plugins/runscope/handler.lua
6
2213
local runscope_serializer = require "kong.plugins.log-serializers.runscope" local BasePlugin = require "kong.plugins.base_plugin" local log = require "kong.plugins.runscope.log" local ngx_log = ngx.log local ngx_log_ERR = ngx.ERR local string_find = string.find local req_read_body = ngx.req.read_body local req_get_hea...
apache-2.0
Schaka/gladdy
Modules/Clicks.lua
1
8361
local tinsert = table.insert local pairs = pairs local tonumber = tonumber local InCombatLockdown = InCombatLockdown local GetBindingKey = GetBindingKey local ClearOverrideBindings = ClearOverrideBindings local SetOverrideBindingClick = SetOverrideBindingClick local MACRO, TARGET, FOCUS, ADDON_DISABLED = MACRO, TARGET...
mit
pablo93/TrinityCore
Data/Interface/FrameXML/SkillFrame.lua
1
15630
SKILLS_TO_DISPLAY = 12; SKILLFRAME_SKILL_HEIGHT = 15; function SkillFrame_OnShow (self) SkillFrame_UpdateSkills(self); end function SkillFrame_OnLoad (self) self:RegisterEvent("SKILL_LINES_CHANGED"); self:RegisterEvent("CHARACTER_POINTS_CHANGED"); SkillListScrollFrameScrollBar:SetValue(0); SetSelectedSkill(0); ...
gpl-2.0
SirNate0/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/module.lua
44
1479
-- tolua: module class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements,...
mit
mortezamosavy999/monster
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
vnm-interactive/Cinder-KinectSDK
premake5.lua
2
2397
-- https://github.com/premake/premake-core/wiki local action = _ACTION or "" solution "OpenDepthSensor" location (action) configurations { "Debug", "Release" } language "C++" configuration "vs*" platforms {"x64"} defines { "_CRT_SECURE_NO_WARNINGS", ...
mit
xuejian1354/barrier_breaker
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/tunnels.lua
18
2336
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> 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 2 of the License, or (at your option) any later version. Th...
gpl-2.0
nickhen/muforth
mu/target/PIC18/device/chipdefs.lua
1
17832
-- This file is part of muFORTH: http://muforth.nimblemachines.com/ -- Copyright (c) 2002-2015 David Frech. (Read the LICENSE for details.) -- Equates for several PIC18 variants, "scraped" from Microchip datasheets. -- From here we generate muFORTH code! -- Be careful of pasted in endashes and ligatures! -- To conve...
bsd-3-clause
xponen/Zero-K
units/corak.lua
1
6375
unitDef = { unitname = [[corak]], name = [[Bandit]], description = [[Medium-Light Raider Bot]], acceleration = 0.5, brakeRate = 0.4, buildCostEnergy = 75, buildCostMetal = 75, buildPic = [[CORAK.png]], build...
gpl-2.0
rogerpueyo/luci
applications/luci-app-mwan3/luasrc/model/cbi/mwan/notify.lua
7
1813
-- Copyright 2014 Aedan Renner <chipdankly@gmail.com> -- Copyright 2018 Florian Eckert <fe@dev.tdt.de> -- Licensed to the public under the GNU General Public License v2. local fs = require "nixio.fs" local ut = require "luci.util" local script = "/etc/mwan3.user" local m, f, t m = SimpleForm("luci", translate("MWAN ...
apache-2.0
Zephruz/citadelshock
gamemode/core/cl_chatcommands.lua
1
1246
--[[----------------------------------- CHAT COMMANDS - Chat command registration - Also adds a console command --------------------------------------]] CitadelShock.CMDS = {} function CitadelShock:RegisterCommand(cmd, func, desc) self.CMDS[cmd] = {func = func, desc = (desc or false)} concommand...
mit
xponen/Zero-K
units/armsolar.lua
1
3932
unitDef = { unitname = [[armsolar]], name = [[Solar Collector]], description = [[Produces Energy (2)]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildAngle ...
gpl-2.0
Danteoriginal/pvpgn-lua
lua/include/file.lua
7
1528
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- Read file line by line -- callback 2 is optional -- You can process line with function callback1(line, callback2) function file_load(filename, call...
gpl-2.0
Vermeille/kong
kong/kong.lua
2
4908
-- Kong, the biggest ape in town -- -- /\ ____ -- <> ( oo ) -- <>_| ^^ |_ -- <> @ \ -- /~~\ . . _ | -- /~~~~\ | | -- /~~~~~~\/ _| | -- |[][][]/ / [m] -- |[][][[m] -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[|--|]| -- |[|...
apache-2.0
Elanis/SciFi-Pack-Addon-Gamemode
gamemodes/scifipack/entities/entities/gmod_cameraprop.lua
3
4393
AddCSLuaFile() if ( CLIENT ) then CreateConVar( "cl_drawcameras", "1", 0, "Should the cameras be visible?" ) end ENT.Type = "anim" ENT.Spawnable = false ENT.RenderGroup = RENDERGROUP_BOTH local CAMERA_MODEL = Model( "models/dav0r/camera.mdl" ) function ENT:SetupDataTables() self:NetworkVar( "Int", 0, "Key" ...
gpl-2.0
alexandergall/snabbswitch
lib/luajit/testsuite/test/lib/bit.lua
6
2716
local bit = require"bit" local byte, ipairs, tostring, pcall = string.byte, ipairs, tostring, pcall local vb = { 0, 1, -1, 2, -2, 0x12345678, 0x87654321, 0x33333333, 0x77777777, 0x55aa55aa, 0xaa55aa55, 0x7fffffff, 0x80000000, 0xffffffff } local function cksum(name, s, r) local z = 0 for i=1,#s do z = (z + b...
apache-2.0
Ali021s/Ali021
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
agpl-3.0
lambd0x/Awesome-wm-Funtoo-GreenInfinity
awesome/treetile/bintree.lua
2
4052
-- bintree.lua -- Class representing the binary tree local Bintree = {} Bintree.__index = Bintree function Bintree.new(data, left, right) local node = { data = data, left = left, right = right, } return setmetatable(node,Bintree) end function Bintree:addLeft(child) if self ~= nil th...
gpl-2.0
Paradokz/BadRotations
System/Libs/LibSpellRange-1.0/libs/LibStub/tests/test.lua
86
2013
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
gpl-3.0
Vermeille/kong
kong/plugins/request-size-limiting/handler.lua
6
1373
-- Copyright (C) Mashape, Inc. local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local strip = require("pl.stringx").strip local tonumber = tonumber local MB = 2^20 local RequestSizeLimitingHandler = BasePlugin:extend() RequestSizeLimitingHandler.PRIORITY = 950 ...
apache-2.0
nwf/nodemcu-firmware
app/lua53/host/tests/coroutine.lua
9
22765
-- $Id: coroutine.lua,v 1.42 2016/11/07 13:03:20 roberto Exp $ -- See Copyright Notice in file all.lua print "testing coroutines" local debug = require'debug' local f local main, ismain = coroutine.running() assert(type(main) == "thread" and ismain) assert(not coroutine.resume(main)) assert(not coroutine.isyieldabl...
mit
lambd0x/Awesome-wm-Funtoo-GreenInfinity
awesome/lain/widget/contrib/tpbat/smapi.lua
3
3180
--[[ smapi.lua Interface with thinkpad battery information Licensed under GNU General Public License v2 * (c) 2013, Conor Heine ...
gpl-2.0
jackywgw/ntopng_test
scripts/lua/get_host_data.lua
2
3639
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') function getNetworkStats(network) local hosts_stats,total = aggregateHostsStats(interface.getHostsInfo()) m...
gpl-3.0
Canaan-Creative/luci
modules/admin-core/luasrc/controller/admin/servicectl.lua
76
1376
--[[ 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$ ]]-- mo...
apache-2.0
Jarhmander/ile
modules/lpeg-0.12/re.lua
160
6286
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local setmetatable = setmetatable local m = require"lpeg" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' ...
mit
alastair-robertson/awesome
lib/awful/layout/suit/fair.lua
3
2639
--------------------------------------------------------------------------- --- Fair layouts module for awful -- -- @author Josh Komoroske -- @copyright 2012 Josh Komoroske -- @release @AWESOME_VERSION@ -- @module awful.layout.suit.fair --------------------------------------------------------------------------- -- Gra...
gpl-2.0
logzero/ValyriaTear
img/sprites/map/enemies/spider_idle.lua
4
1239
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; local ANIM_WEST = vt_map.MapMode.ANI...
gpl-2.0
pydsigner/naev
dat/ai/sirius.lua
5
1516
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.armour_run = 0 mem.armour_return = 0 mem.aggressive = true function create () -- Not too many credits. ai.setcredits( rnd.rnd(ai.shipprice()/200, ai.shipprice()/50) ) -- Get refuel chance p = ai.getPlayer() if...
gpl-3.0
emadni/launcherlord
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
litmus4/sejx3
WoW/oUF_Drk/Plugins/Experience.lua
1
4282
--[[ Elements handled: .Experience [statusbar] .Experience.Text [fontstring] (optional) .Experience.Rested [statusbar] (optional) Booleans: - Tooltip Functions that can be overridden from within a layout: - PostUpdate(self, event, unit, bar, min, max) - OverrideText(bar, unit, min, max) --]] local h...
mit
ExtraTabTeam/ExtraTab
bot/extra.lua
1
76642
-- Main Bot Framework --MaraThon Team local M = {} -- There are chat_id, group_id, and channel_id function getChatId(id) local chat = {} local id = tostring(id) if id:match('^-100') then local channel_id = id:gsub('-100', '') chat = {ID = channel_id, type = 'channel'} else local group_id = id:g...
gpl-3.0
ahuraa/trinityadmin
Commands/Commands_Who.lua
2
5954
------------------------------------------------------------------------------------------------------------- -- -- TrinityAdmin Version 3.x -- TrinityAdmin is a derivative of MangAdmin. -- -- Copyright (C) 2007 Free Software Foundation, Inc. -- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.h...
gpl-2.0
logzero/ValyriaTear
dat/maps/layna_village/layna_village_riverbank_map.lua
4
87116
map_data = {} -- The number of rows, and columns that compose the map map_data.num_tile_cols = 60 map_data.num_tile_rows = 40 -- The tilesets definition files used. map_data.tileset_filenames = {} map_data.tileset_filenames[1] = "dat/tilesets/mountain_landscape.lua" map_data.tileset_filenames[2] = "dat/tilesets/mount...
gpl-2.0
Shayan123456/shayanhhallaji
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/xconnected/init.lua
1
3250
----------------------------------------------------------------------- -- xconnected.lua contains the actual code and api for xconnected nodes ----------------------------------------------------------------------- dofile(minetest.get_modpath("xconnected").."/xconnected.lua"); --------------------------------------...
gpl-3.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua
19
2736
-------------------------------- -- @module InnerActionFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- -- @function [parent=#InnerActionFrame] getEndFrameIndex -- @param self -- @return int#int ret (return value: int) -------------------------------- -- -- @function [paren...
gpl-3.0
QuiQiJingFeng/skynet
lualib/snax/gateserver.lua
16
3320
local skynet = require "skynet" local netpack = require "skynet.netpack" local socketdriver = require "skynet.socketdriver" local gateserver = {} local socket -- listen socket local queue -- message queue local maxclient -- max client local client_number = 0 local CMD = setmetatable({}, { __gc = function() netpack.c...
mit
xing634325131/Luci-0.11.1
libs/nixio/axTLS/www/lua/download.lua
180
1550
#!/usr/local/bin/lua require"luasocket" function receive (connection) connection:settimeout(0) local s, status = connection:receive (2^10) if status == "timeout" then coroutine.yield (connection) end return s, status end function download (host, file, outfile) --local f = assert (io.open (outfile, "w")) loc...
apache-2.0
xdel/snabbswitch
src/apps/csv.lua
15
1587
module(...,package.seeall) local app = require("core.app") local ffi = require("ffi") local C = ffi.C -- Frequency at which lines are added to the CSV file. -- (XXX should be an argument to the app.) interval = 1.0 CSV = {} function CSV:new (directory) local o = { appfile = io.open(directory.."/app.csv", "w"), ...
apache-2.0
ahuraa/trinityadmin
Locales/huHU.lua
2
10867
------------------------------------------------------------------------------------------------------------- -- -- TrinityAdmin Version 3.x -- TrinityAdmin is a derivative of MangAdmin. -- -- Copyright (C) 2007 Free Software Foundation, Inc. -- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.h...
gpl-2.0
rbavishi/vlc-2.2.1
share/lua/meta/reader/filename.lua
17
1684
--[[ Gets an artwork for french TV channels $Id$ Copyright © 2007 the VideoLAN team 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 2 of the License, or (at your option) any la...
lgpl-2.1
fucksooN/tabchi
bot/bot.lua
2
7498
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
unlicense
IamSilviu/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
McGlaspie/mvm
lua/mvm/CommAbilities/CommanderAbility.lua
1
2672
Script.Load("lua/mvm/ScriptActor.lua") Script.Load("lua/mvm/EffectsMixin.lua") Script.Load("lua/mvm/TeamMixin.lua") local kDefaultUpdateTime = 0.5 //----------------------------------------------------------------------------- function CommanderAbility:OnCreate() //OVERRIDES ScriptActor.OnCreate(self) ...
gpl-3.0
payday-restoration/restoration-mod
lua/sc/units/equipment/sentrygunbase.lua
1
6119
SentryGunBase.DEPLOYEMENT_COST = { --Deploying a sentry eats up 40% of your *maximum* ammo. 0.4, 0.35, 0.3 } SentryGunBase.MIN_DEPLOYEMENT_COST = 0.35 Hooks:PostHook(SentryGunBase, "post_init", "sentrybase_postinit_repairsentries", function(self) self._is_repairing = false end) Hooks:PostHook(SentryGunBase, "upda...
agpl-3.0
luvit/luvit
tests/test-net-connect-handle-econnrefused.lua
11
1147
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
apache-2.0
heysion/prosody-modules
mod_auth_ccert/mod_auth_ccert.lua
32
2651
-- Copyright (C) 2013 Kim Alvefur -- -- This file is MIT/X11 licensed. local jid_compare = require "util.jid".compare; local jid_split = require "util.jid".prepped_split; local new_sasl = require "util.sasl".new; local now = os.time; local log = module._log; local subject_alternative_name = "2.5.29.17"; local id_on_x...
mit
payday-restoration/restoration-mod
lua/sc/managers/groupaistatebesiege.lua
1
58641
local math_min = math.min local math_lerp = math.lerp local math_map_range = math.map_range local math_random = math.random local table_insert = table.insert local table_remove = table.remove local mvec_add = mvector3.add local mvec_cpy = mvector3.copy local mvec_dis = mvector3.distance local mvec_dis_sq = mve...
agpl-3.0
T3hArco/skeyler-gamemodes
atlaschat/lua/atlaschat/sh_config.lua
1
6577
-- _ _ _ _ -- /\ | | | | | | | | -- / \ | |_| | __ _ ___ ___| |__ __ _| |_ -- / /\ \| __| |/ _` / __| / __| '_ \ / _` | __| -- / ____ \ |_| | (_| \__ \ | (__| | | | (_| | |_ -- /_/ \_\__|_|\__,_|___/ \___|_| |_|\__,_|\__| -- ...
bsd-3-clause
Angel-team/Angel_bot
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
T3hArco/skeyler-gamemodes
ssbase/entities/weapons/ss_mapeditor/shared.lua
1
1243
---------------------------- -- SSBase -- -- Created by Skeyler.com -- ---------------------------- -- Variables that are used on both client and server SWEP.Author = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.ViewModel = "models/weapons/c_toolgun.mdl" SW...
bsd-3-clause
AgentVi/DIGITS
tools/torch/data.lua
3
23865
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. require 'torch' -- torch require 'nn' -- provides a normalization operator require 'utils' -- various utility functions require 'hdf5' -- import HDF5 now as it is unsafe to do it from a worker thread local threads = require 'threads' -- for multi-thre...
bsd-3-clause
dieg0vb/sysdig
userspace/sysdig/chisels/netlower.lua
12
4664
--[[ netlower.lua - trace network I/O slower than a given threshold. USAGE: sysdig -c netlower min_ms eg, sysdig -c netlower 1000 # show network I/O slower than 1000 ms. sysdig -c netlower "1 disable_colors" # show network I/O slower than 1 ms. w/ no colors sysdig -c netlower 1000 # show network...
gpl-2.0
drdownload/prosody-modules
mod_pubsub_hub/mod_pubsub_hub.lua
32
6808
-- Copyright (C) 2011 - 2012 Kim Alvefur -- -- This file is MIT/X11 licensed. local http = require "net.http"; local formdecode = http.formdecode; local formencode = http.formencode; local http_request = http.request; local uuid = require "util.uuid".generate; local hmac_sha1 = require "util.hmac".sha1; local json_enc...
mit
crazyboy11/bot122
bot/creedbot.lua
2
15547
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ComAttribute.lua
19
2639
-------------------------------- -- @module ComAttribute -- @extend Component -- @parent_module ccs -------------------------------- -- -- @function [parent=#ComAttribute] getFloat -- @param self -- @param #string key -- @param #float def -- @return float#float ret (return value: float) -------------------...
gpl-3.0
CYBORGAN/antispam
plugins/ingroup.lua
10
53916
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
kjoenth/naev
dat/factions/standing/skel.lua
4
5025
--[[ Simple skeleton for your standard faction. This is more or less what the standard behaviour can be, but from here you can let your imagination go wild. --]] -- Faction caps. _fcap_kill = 20 -- Kill cap _fdelta_distress = {-1, 0} -- Maximum change constraints _fdelta_kill = {-5, 1} -- Maximum ch...
gpl-3.0
pydsigner/naev
dat/missions/pirate/hitman.lua
5
4501
--[[ Pirate Hitman Corrupt Merchant wants you to destroy competition Author: nloewen --]] -- Localization, choosing a language if naev is translated for non-english-speaking locales. lang = naev.lang() if lang == "es" then else -- Default to English -- Bar information bar_desc = "You see a shifty lo...
gpl-3.0
salorium/awesome
spec/gears/cache_spec.lua
22
1875
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local cache = require("gears.cache") describe("gears.cache", function() -- Make sure no cache is clear...
gpl-2.0
secondwtq/MarXsCube
Externals/Scripts/Test.lua
1
2559
Import("mapdef.lua") Helpers = require 'Helpers' -- global variables OBJ_DOTS = { } OBJ_EDGES = { } TECHNO_SELECTED = nil TERRAIN_CHUNKS = { } CURRENT_TERRAIN_TILE = 1 WL_BUFFER = nil function acheroncube_test() local start = Utility.CubePoint(0, 0) local eend = Utility.CubePoint(1024, 0) p...
gpl-3.0
gogolll/flowergirl
plugins/plugins.lua
3
5851
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
pirate/snabbswitch
src/lib/protocol/udp.lua
7
2026
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum local udp_header_t = ffi.typeof[[ struct { uint16_t src_port; uint16_t dst_port; uint16_t len; uint16_t checksum; } __attribute__((pac...
apache-2.0
crazyboy11/bot122
plugins/imggoogle.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
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/mesecons/mesecons/services.lua
2
4049
-- Dig and place services mesecon.on_placenode = function(pos, node) mesecon.execute_autoconnect_hooks_now(pos, node) -- Receptors: Send on signal when active if mesecon.is_receptor_on(node.name) then mesecon.receptor_on(pos, mesecon.receptor_get_rules(node)) end -- Conductors: Send turnon signal when powered...
gpl-3.0
badboyam/crazy_bot
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