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
snabbnfv-goodies/snabbswitch
lib/luajit/src/jit/dis_x86.lua
61
29376
---------------------------------------------------------------------------- -- LuaJIT x86/x64 disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------------------...
apache-2.0
BrasileiroGamer/TrineEE_TranslationTools
translations/portuguese/lua/data/locale/gui/pt/menu/mainmenu/achievementsmenu.lua
1
15841
-- /data/locale/gui/$$/menu/mainmenu/achievementsmenu.lua headerAchievements = "Conquistas" titlesurf = " Surfboard Master" titlehazard = " I Didn't Do It" titlesolo = " Flying Solo" titlecarni = " A Floral Feast" titleshatter = " Icebreaker" titlehammer = " Hammer Havoc" titlefriendly_fire = " Dirt...
gpl-3.0
hnyman/luci
applications/luci-app-splash/luasrc/model/cbi/splash/splash.lua
10
3006
-- Licensed to the public under the Apache License 2.0. require("luci.model.uci") m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentication system for wireless mesh networks.")) s = m:section(NamedSection, "general", "core", translate("General")) s.addremove = false s:o...
apache-2.0
rrze-likwid/likwid
src/applications/likwid-genTopoCfg.lua
1
6123
#!<INSTALLED_BINPREFIX>/likwid-lua --[[ * ======================================================================================= * * Filename: likwid-genTopoCfg.lua * * Description: A application to create a file of the underlying system configuration * that is used by likwid to av...
gpl-3.0
LaFamiglia/Illarion-Content
base/doors.lua
1
5506
--[[ 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
LaFamiglia/Illarion-Content
triggerfield/donation_cadomyr.lua
1
1750
--[[ 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
Jichao/skia
tools/lua/paths.lua
92
3129
-- -- Copyright 2014 Google Inc. -- -- Use of this source code is governed by a BSD-style license that can be -- found in the LICENSE file. -- -- Path scraping script. -- This script is designed to count the number of times we fall back to software -- rendering for a path in a given SKP. However, this script does not ...
bsd-3-clause
prophile/xsera
Resources/Scripts/Modules/Math.lua
2
2615
--[[[ - @function hypot - Finds the distance between two given sides, x and y. - @param x The length of one of the sides. - @param y The length of the other side. - @return val The hypotenuse of the triangle given by sides x and y. --]] function hypot(x, y) return math.sq...
mit
LaFamiglia/Illarion-Content
monster/race_112_flesh_dragon/id_1123_deathdragon.lua
1
6370
--[[ 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
ashkanpj/seedfire
plugins/owners.lua
2
12458
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Noltari/luci
applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua
10
7209
-- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings.")) s = m:section(TypedSection, "dump1090", ""...
apache-2.0
RandalThompson/Playground
control.lua
1
1243
require "util" require "defines" -- Defines how I want the player to start the game. -- For now the player has it pretty good. It is a playground after all. function build_player(player_index) local player = game.players[player_index] -- Vehicles: player.insert{name="fast-tank", count=1} -- Fuel player...
mit
Nexela/autofill
stdlib/utils/wip/joules.lua
1
1490
--- For working with energy strings -- @classmod Joules local Joules = {} setmetatable(Joules, require('stdlib/core')) local Is = require('stdlib/utils/is') local high_to_low = {'Y', 'Z', 'E', 'P', 'T', 'G', 'M', 'k', 'm', 'u', 'n', 'p', 'f', 'a', 'z', 'y'} local units = { y = 1E-24, z = 1E-21, a = 1E-1...
mit
LaFamiglia/Illarion-Content
monster/race_3_elf/id_33_priest.lua
1
1177
--[[ 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
punisherbot/sh
plugins/Member_Moderator.lua
20
10430
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return 'Group '..string.gsub(group_name, '...
gpl-2.0
camchenry/shaderview
src/notification.lua
1
3317
local notification = {} local function get_color_opacity(color, opacity) local r, g, b, a = unpack(color) return r, g, b, a * opacity end notification.Notification = Class{ init = function(self, props) self.text = "" self.duration = 2 self.x = 5 self.y = 5 self.dead...
mit
amireh/vertigo-bom
scripts/Shared/UI/UIDialogs.lua
1
5026
-- UI Dialogs -- -- UIDialog provides necessary and convenience functions for attaching -- and detaching CEGUI dialogs UIDialog = {} local __UID = 0 local __Path = "overlays/dialog.layout" local Win2Dialogs = {} -- maps CEGUI::Windows to UIDialog objects, see events below function UIDialog:new(in_text, keep_alive, k...
gpl-3.0
SirSepehr/Sepehr
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
fmassa/object-detection.torch
utils.lua
1
8010
-------------------------------------------------------------------------------- -- utility functions for the evaluation part -------------------------------------------------------------------------------- local function joinTable(input,dim) local size = torch.LongStorage() local is_ok = false for i=1,#input do...
bsd-2-clause
Godfather021/yag
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
LionKingTeam/Lion.king.bot
libs/redis.lua
32
1129
local Redis = (loadfile "./libs/lua-redis.lua")() local FakeRedis = (loadfile "./libs/fakeredis.lua")() local params = { host = '127.0.0.1', port = 6379, } -- Overwrite HGETALL Redis.commands.hgetall = Redis.command('hgetall', { response = function(reply, command, ...) local new_reply = { } for i = 1, #...
gpl-3.0
keyanmca/MonaClients
chat/main.lua
3
2101
-- Test client for push writers = {} -- Function for parsing data coming from a client -- Prevent formatting problems function parseMessage(bytes) if type(bytes) == "string" then return bytes else -- TODO I don't remind me why a table can be a well formed message if type(bytes) == "table" and type(bytes[1])...
lgpl-3.0
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/bsd/ffi.lua
18
10586
-- define general BSD system calls for ffi -- note that some functions may not be available in all, but so long as prototype is standard they can go here local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumbe...
apache-2.0
luiseduardohdbackup/WarriorQuest
WarriorQuest/runtime/ios/PrebuiltRuntimeLua.app/headers.lua
133
3698
----------------------------------------------------------------------------- -- Canonic header field capitalization -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- local socket = require("socket") socket.headers = {} local _M = socket.headers ...
mit
keyanmca/MonaClients
IndustrialComputing/main.lua
3
1557
_clients = {} -- array of WebSocket clients function onConnection(client,...) -- Register client if (client.protocol=="WebSocket") then _clients[client]=client end function client:initClient() INFO("Init client, actuator: ", data.actuator, " - pool : ", data.pool, " - lamp ON : ", data.lampON) -- F...
lgpl-3.0
MustaphaTR/OpenRA
mods/d2k/maps/harkonnen-08/harkonnen08.lua
7
11990
--[[ 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
areku/awesomerc
rc.lua
2
20876
-- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library local wibox = require("wibox") local vicious = require("vicious") -- Theme handling library local beautiful = require("beautiful") -- Not...
gpl-3.0
BrasileiroGamer/TrineEE_TranslationTools
translations/portuguese/lua/data/locale/gui/pt/menu/mainmenu/visualsettingsmenu.lua
1
1245
-- /data/locale/gui/$$/menu/mainmenu/visualsettingsmenu.lua headerVisualSettings = "Configurações Visuais" subheaderStereo3D = "Configurações do 3D Estereoscópico" infoNoBrightness = "O brilho só pode ser aplicado no modo de tela cheia" buttonUiVisibility = "Visibilidade da UI" buttonEnableStereo3D = "3D Est...
gpl-3.0
Noltari/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/sensors.lua
5
2954
-- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local m, s, o local sensor_types = { ["12v"] = "voltage", ["2.0v"] = "voltage", ["2.5v"] = "voltage", ["3.3v"] = "voltage", ["5.0v"] = "voltage", ["5v"] = "voltage", ["ain1"] = "voltage", ["ain2"] = "vol...
apache-2.0
BrasileiroGamer/TrineEE_TranslationTools
translations/portuguese/lua/data/locale/gui/pt/hud/collection_messages_window.lua
1
1293
-- /data/locale/gui/$$/hud/collection_messages_window.lua picked_up_mana_potion = "Você pegou uma poção de mana" picked_up_large_mana_potion = "Você pegou uma grande poção de mana" picked_up_health_potion = "Você pegou uma poção de saúde" picked_up_full_health_potion = "Você pegou uma poção de saúde completa" ...
gpl-3.0
bsmr-games/lipsofsuna
data/system/widgets/label.lua
1
2191
--- TODO:doc -- -- Lips of Suna 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 3 of the -- License, or (at your option) any later version. -- -- @module system.widgets.label -- @alias ...
gpl-3.0
dismantl/luci-0.12
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
86
2540
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
apache-2.0
119/aircam-openwrt
build_dir/target-arm_v5te_uClibc-0.9.32_eabi/lua-5.1.4/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...
gpl-2.0
dismantl/luci-0.12
applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
80
3431
--[[ Luci configuration model for statistics - collectd rrdtool plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
apache-2.0
LaFamiglia/Illarion-Content
npc/base/consequence/inform.lua
4
1040
--[[ 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
staeld/lua-ruuvi
servobj.lua
1
1415
#!/usr/bin/env lua -- servobj.lua - Server object creation for lua-ruuvi -- Copyright Stæld Lakorv, 2013 <staeld@illumine.ch> -- This file is part of lua-ruuvi. -- lua-ruuvi is released under the GPLv3 - see COPYING local M = {} function M.new(url) if type(url) ~= "string" then aux.throwError("not a string") end ...
gpl-3.0
soundsrc/premake-core
binmodules/luasocket/test/testclnt.lua
20
22799
local socket = require"socket" host = host or "localhost" port = port or "8383" function printf(...) io.stderr:write(string.format(...)) end function pass(...) printf(...) io.stderr:write("\n") end function fail(...) io.stderr:write("ERROR: ") printf(...) io.stderr:write("!\n") os.exit()...
bsd-3-clause
ramindel0761/setdelete
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
tsharly/TSHARLY
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-2.0
hnyman/luci
applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua
79
1554
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("coovachilli") -- radius server s1 = m:section(TypedSection, "radius") s1.anonymous = true s1:option( Value, "radiusserver1" ) s1:option( Value, "rad...
apache-2.0
adam000/xsera
Resources/Scripts/Tests/BasicPilotAITests.lua
1
16592
-- These tests work on one-on-one interactions between ships - engaging, following, retreating, defending, etc. -- Tests with higher numbers may build on tests with lower numbers, so lower numbered tests should be run first import('GlobalVars') import('Actions') import('Conditions') import('Animation') import('ObjectL...
mit
spseol/NEATPybotSolver
src/neat/genetic/containers/species.lua
1
1945
require "neat.genetic.cells.chromosome" require "neat.genetic.factors.mutator" require "core.core" Species = {} SpeciesMeta = {} SpeciesMeta.__index = Species function SpeciesMeta.__tostring(self) return string.format("Species %f", self:averageFitness()) end function Species.new() local o = {} proper...
gpl-2.0
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/openbsd/constants.lua
24
20467
-- tables of constants for NetBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select local abi =...
apache-2.0
thartman83/awesome-pass
tests/mocks/awful.lua
1
3944
------------------------------------------------------------------------------- -- awful.lua for awesome-pass -- -- Copyright (c) 2017 Tom Hartman (thomas.lees.hartman@gmail.com) -- -- -- ...
gpl-2.0
dismantl/luci-0.12
applications/luci-radvd/luasrc/model/cbi/radvd/dnssl.lua
82
2276
--[[ 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: rdnss.lu...
apache-2.0
qq779089973/ramod
luci/applications/luci-radvd/luasrc/model/cbi/radvd/dnssl.lua
82
2276
--[[ 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: rdnss.lu...
mit
astrofra/amiga-experiments
amos-demo-python-remake/src/pkg.core/lua/wall.lua
2
5833
-- {"name":"Wall", "category":"Physic Structure", "editor":["@data/script_integration/register_as_component.py", "@data/script_integration/add_to_scene_create_menu.py"]} execution_context = gs.ScriptContextAll wall_x = 10 --> float wall_y = 10 --> float wall_z = 1 --> float smoothing_angle = 40.0 --> float nb...
mit
299299/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/declaration.lua
24
15117
-- tolua: declaration 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, -- enhancem...
mit
Godfather021/yag
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
RytoEX/obs-studio
UI/frontend-plugins/frontend-tools/data/scripts/instant-replay.lua
23
5385
obs = obslua source_name = "" hotkey_id = obs.OBS_INVALID_HOTKEY_ID attempts = 0 last_replay = "" ---------------------------------------------------------- function try_play() local replay_buffer = obs.obs_frontend_get_replay_buffer_output() if replay_buffer == nil then obs.remove_current_callback()...
gpl-2.0
luiseduardohdbackup/WarriorQuest
WarriorQuest/runtime/mac/PrebuiltRuntimeLua.app/Contents/Resources/CCBReaderLoad.lua
79
5530
ccb = ccb or {} function CCBReaderLoad(strFilePath,proxy,owner) if nil == proxy then return nil end local ccbReader = proxy:createCCBReader() local node = ccbReader:load(strFilePath) local rootName = "" --owner set in readCCBFromFile is proxy if nil ~= owner then --C...
mit
nsf/nextgame
scripts/ng/wm.lua
1
5466
local M = {} require "ng.struct" local ngm = require "ng.math" local binding = require "ng.binding" local bit = require "bit" local ffi = require "ffi" local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift ------------------------------------------------------------------------------ -- Color ...
mit
soundsrc/premake-core
mobdebug.lua
14
68852
-- -- MobDebug -- Lua remote debugger -- Copyright 2011-15 Paul Kulchenko -- Based on RemDebug 1.0 Copyright Kepler Project 2005 -- -- use loaded modules or load explicitly on those systems that require that local require = require local io = io or require "io" local table = table or require "table" local string = str...
bsd-3-clause
radare/radare
api/lua/radare/api.lua
5
16275
-- -- radare lua api -- -- 2008 pancake <youterm.com> -- ========== -- -- -- -- Namespaces -- -- -- -- ========== -- Radare = {} Radare.Analyze = {} Radare.Print = {} Radare.Search = {} Radare.Config = {} Radare.Code = {} Radare.Hash = {} Radare.Debugger = {} Radar...
gpl-2.0
LionKingTeam/Lion.king.bot
libs/serpent.lua
31
8016
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
Jichao/skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/osx/syscalls.lua
18
1899
-- OSX specific syscalls local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscall.abi" r...
apache-2.0
koeppea/ettercap
src/lua/share/third-party/stdlib/src/object.lua
12
1911
--- Prototype-based objects -- <ul> -- <li>Create an object/class:</li> -- <ul> -- <li>Either, if the <code>_init</code> field is a list: -- <ul> -- <li><code>object/Class = prototype {value, ...; field = value, ...}</code></li> -- <li>Named values are assigned to the corresponding fields, and u...
gpl-2.0
LaFamiglia/Illarion-Content
item/id_24_shovel.lua
1
6351
--[[ 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
nood32/MEEDOBOT
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-2.0
Zenolisk/Rebellion
gamemode/libs/sh_anim.lua
1
7663
anim = anim or {} anim.classes = anim.classes or {} function anim.SetModelClass(class, model) model = string.lower(model) anim.classes[model] = class end function anim.GetClass(model) return anim.classes[model] or (string.find(model, "female") and "citizen_female" or "citizen_male") end -- C++ Weapons do not hav...
mit
pigparadise/skynet
lualib/http/httpd.lua
101
3708
local internal = require "http.internal" local table = table local string = string local type = type local httpd = {} local http_status_msg = { [100] = "Continue", [101] = "Switching Protocols", [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [204] = "No Content",...
mit
jsenellart-systran/OpenNMT
test/onmt/HookManagerTest.lua
4
2697
require('onmt.init') local tester = ... local hookManagerTest = torch.TestSuite() function hookManagerTest.nohook() local hookManager = onmt.utils.HookManager.new({}) tester:eq(hookManager.hooks, {}) hookManager = onmt.utils.HookManager.new({hook_file=''}) tester:eq(hookManager.hooks, {}) end function hookM...
mit
ninjalulz/forgottenserver
data/movements/scripts/tiles.lua
4
1953
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return tru...
gpl-2.0
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/freebsd/ioctl.lua
24
4451
-- ioctls, filling in as needed local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(types) l...
apache-2.0
soundsrc/premake-core
modules/xcode/_preload.lua
6
1666
--- -- xcode/_preload.lua -- Define the Apple XCode actions and new APIs. -- Copyright (c) 2009-2015 Jason Perkins and the Premake project --- local p = premake -- -- Register new Xcode-specific project fields. -- p.api.register { name = "xcodebuildsettings", scope = "config", kind = "key-array", } p.api...
bsd-3-clause
darya7476/Dimon
plugins/sticker2photo.lua
15
1070
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = '/root/robot/data/stickers/'..msg.from.id..'.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_photo(get_receiver(msg), file, ok_cb, f...
gpl-2.0
ArianWatch/SportTG
plugins/webshot.lua
110
1424
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
MustaphaTR/OpenRA
mods/ra/maps/top-o-the-world/top-o-the-world.lua
7
14024
--[[ 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
Noltari/luci
protocols/luci-proto-ipip/luasrc/model/cbi/admin_network/proto_ipip.lua
18
1684
-- Copyright 2016 Roger Pueyo Centelles <roger.pueyo@guifi.net> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ipaddr, ttl, tos, df, mtu, tunlink peeraddr = section:taboption("general", Value, "peeraddr", translate("Remote IPv4 address or FQDN"), translate("The ...
apache-2.0
Noltari/luci
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
4
5538
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local testfullps = sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have local psstring...
apache-2.0
snabbnfv-goodies/snabbswitch
lib/luajit/src/jit/v.lua
78
5755
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
Inorizushi/DDR-X3
Graphics/MusicWheelItem SectionCollapsed NormalPart/2nd.lua
1
2977
local group; local t = Def.ActorFrame{ InitCommand=cmd(zoom,0.7); LoadActor("cd_mask")..{ InitCommand=cmd(blend,Blend.NoEffect;zwrite,1;clearzbuffer,true;); }; Def.Sprite { SetMessageCommand=function(self,params) self:ztest(1) group = params.Text; local so = GAMESTATE:GetSortOrder(); if group then ...
mit
vladimir-kotikov/clink-completions
completions/adb.lua
1
9130
--- adb.lua, Android ADB completion for Clink. -- @compatible Android SDK Platform-tools v31.0.3 (ADB v1.0.41) -- @author Goldie Lin -- @date 2021-08-27 -- @see [Clink](https://github.com/chrisant996/clink) -- @usage -- Place it in "%LocalAppData%\clink\" if installed globally, -- or "ConEmu/ConEmu/clink/" if you u...
mit
LaFamiglia/Illarion-Content
quest/akaltuts_chamber_526_dungeon.lua
1
8305
--[[ 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
MustaphaTR/OpenRA
mods/ra/maps/soviet-08b/soviet08b-AI.lua
7
4471
--[[ 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
luiseduardohdbackup/WarriorQuest
WarriorQuest/runtime/ios/PrebuiltRuntimeLua.app/OpenglConstants.lua
78
27074
--Encapsulate opengl constants. gl = gl or {} gl.GCCSO_SHADER_BINARY_FJ = 0x9260 gl._3DC_XY_AMD = 0x87fa gl._3DC_X_AMD = 0x87f9 gl.ACTIVE_ATTRIBUTES = 0x8b89 gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a gl.ACTIVE_PROGRAM_EXT = 0x8259 gl.ACTIVE_TEXTURE = 0x84e0 gl.ACTIVE_UNIFORMS = 0x8b86 gl.ACTIVE_UNIFORM_M...
mit
MustaphaTR/OpenRA
mods/d2k/maps/atreides-02a/atreides02a.lua
7
2649
--[[ 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
shahabsaf1/copy-infernal
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
Ali-2h/wwefucker
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
ArianWatch/SportTG
plugins/tophoto.lua
24
1059
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/stickers/'..msg.from.id..'.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_photo(get_receiver(msg), file, ok_cb, false) re...
gpl-2.0
rafaeu749/ProjectPorcupine
Assets/StreamingAssets/LUA/Furniture.lua
2
24728
------------------------------------------------------- -- Project Porcupine Copyright(C) 2016 Team Porcupine -- This program comes with ABSOLUTELY NO WARRANTY; This is free software, -- and you are welcome to redistribute it under certain conditions; See -- file LICENSE, which is part of this source code package, for ...
gpl-3.0
ArchiveTeam/imdb-grab
table_show.lua
1
3331
--[[ Author: Julio Manuel Fernandez-Diaz Date: January 12, 2007 (For Lua 5.1) Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount() Formats tables with cycles recursively to any depth. The output is returned as a string. References to other tables are shown a...
unlicense
bkaradzic/SwiftShader
third_party/SPIRV-Headers/include/spirv/1.2/spirv.lua
59
26887
-- Copyright (c) 2014-2018 The Khronos Group Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and/or associated documentation files (the "Materials"), -- to deal in the Materials without restriction, including without limitation -- the rights to use, copy, mod...
apache-2.0
MemoryPenguin/CodeSync
Plugin/Modules/UI.module.lua
1
1826
local CoreGui = game:GetService("CoreGui") local Accessor = require(script.Parent.Accessor) local Object = script.CodeSyncUI local EnabledColor = Color3.new(34 / 255, 162 / 255, 147 / 255) local DisabledColor = Color3.new(162 / 255, 162 / 255, 162 / 255) local UI = {} UI.PortBox = Object.Container.Contents.PortBox.I...
mit
jackkkk21/jackkbot
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
chelog/brawl
addons/brawl-weapons/lua/weapons/cw_base/sh_general.lua
1
22538
-- various convenience functions related to the weapon local reg = debug.getregistry() local GetVelocity = reg.Entity.GetVelocity local Length = reg.Vector.Length local GetAimVector = reg.Player.GetAimVector -- no reason to get it over and over again, since if it's singleplayer, it's singleplayer local SP = g...
gpl-3.0
aruanruan/Atlas
lib/proxy/tokenizer.lua
41
6215
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
chelog/brawl
addons/brawl-weapons/lua/cw/shared/cw_attachments.lua
1
13711
AddCSLuaFile() -- thanks to this module/plug-in based design, you can simply change a few vars to whatever you wish to get the desired functionality in your gamemode without having to modify the base itself CustomizableWeaponry.registeredAttachments = {} CustomizableWeaponry.registeredAttachmentsSKey = {} -- SKe...
gpl-3.0
RedSnake64/openwrt-luci-packages
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
31
1569
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- signal/noise diagram -- local snr = { title = "%H: Signal and noise on %pi", ...
apache-2.0
cloner-hooshesiyah/shidbot
bot/seedbot.lua
1
10308
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
qq779089973/ramod
luci/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...
mit
qq779089973/ramod
luci/modules/niu/luasrc/model/cbi/niu/network/wan.lua
51
2373
local cursor = require "luci.model.uci".cursor() if not cursor:get("network", "wan") then cursor:section("network", "interface", "wan", {proto = "none"}) cursor:save("network") end if not cursor:get("wireless", "client") then cursor:section("wireless", "wifi-iface", "client", {device = "_", doth = "1", _niu = "1...
mit
bjakja/Kainote
Thirdparty/LuaJIT/dynasm/dasm_arm64.lua
1
36385
------------------------------------------------------------------------------ -- DynASM ARM64 module. -- -- Copyright (C) 2005-2022 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _...
gpl-3.0
qq779089973/ramod
luci/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua
92
7735
--[[ LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes 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.asteri...
mit
Noltari/luci
modules/luci-base/luasrc/cbi.lua
9
43526
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.cbi", package.seeall) require("luci.template") local util = require("luci.util") require("luci.http") --local event = require "luci.sys.event" local fs = require("nixio.fs") local uc...
apache-2.0
mrshayan/iran_power_ok
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
cloner-hooshesiyah/shidbot
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
alivilteram/seedteam
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
linkgo/nodemcu-quick
library.lua
1
1284
-- init.lua uart.setup(0,115200,8,0,1) -- ls() l = file.list() for k,v in pairs(l) do print("name: "..k..",size: "..v) end -- cat() local f=... print(args: ..f) file.open(f, r) print(file.read(EOF)) file.close() -- list nearby APs function listap(t) for k,v in pairs(t) do print(k.. : ..v) end end wifi.sta...
bsd-2-clause