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
kjl2y/darkstar
scripts/globals/magiantrials.lua
50
9360
------------------------------------------- -- Magian trial functions, vars, tables ------------------------------------------- ----------------------------------- -- getTrialInfo ----------------------------------- -- once fully filled out, these info tables might get large enough to need their own file, we'll see......
gpl-3.0
kjl2y/darkstar
scripts/zones/Bastok_Mines/npcs/Rodellieux.lua
16
1406
----------------------------------- -- Area: Bastok_Mines -- NPC: Rodellieux -- Only sells when Bastok controlls Fauregandi Region ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones...
gpl-3.0
festevezga/ToME---t-engine4
game/engines/default/engine/dialogs/ShowEquipInven.lua
3
7575
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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....
gpl-3.0
Igdra/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Field_Manual.lua
29
1053
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action ----------------------...
gpl-3.0
Igdra/darkstar
scripts/zones/Batallia_Downs/mobs/Weeping_Willow.lua
21
1050
----------------------------------- -- Area: Batallia Downs -- MOB: Weeping Willow ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ----------------------------------- -- onMobFight Action -----------------...
gpl-3.0
kjl2y/darkstar
scripts/globals/items/angler_stewpot.lua
18
1762
----------------------------------------- -- ID: 5611 -- Item: Angler's Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Accuracy +15% Cap 15 -- Ranged Accuracy 15% Cap 15 -----...
gpl-3.0
ignacio/luarocks
src/luarocks/fetch/git_http.lua
20
1195
--- Fetch back-end for retrieving sources from Git repositories -- that use http:// transport. For example, for fetching a repository -- that requires the following command line: -- `git clone http://example.com/foo.git` -- you can use this in the rockspec: -- source = { url = "git+http://example.com/foo.git" } -- Pre...
mit
LingJiJian/Unity_i18n
Assets/ToLua/Lua/socket.lua
61
4448
----------------------------------------------------------------------------- -- LuaSocket helper module -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare module and import depend...
mit
z0fa/ChatNorris
libraries/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
16
4612
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 24 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
gpl-3.0
FreeBlues/neko8
libs/moonscript/spec/outputs/tables.lua
2
2534
local backpack = { something = { yeah = 200, they = function() print("hello") return yor_feet("small") end, pretty = hair, gold = hmm }, yow = 1000, eat = goo, yeah = dudd } local start = { something = "cold" } local bathe = { on = "fire" } local another = { [4] = 232, ...
mit
fabiopetroni/Dato-Core
src/unity/python/graphlab/lua/pl/array2d.lua
26
13368
--- Operations on two-dimensional arrays. -- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide} -- -- Dependencies: `pl.utils`, `pl.tablex`, `pl.types` -- @module pl.array2d local type,tonumber,assert,tostring,io,ipairs,string,table = _G.type,_G.tonumber,_G.assert,_G.tostring,_G.io,_G.ipairs,_G.str...
agpl-3.0
FLaM666/evo-X
src/bindings/luascript/lua-scripts/LuaScript/guards/guard_stormwind.lua
1
11621
-- Mango Style guard_stormwind script -- Converted by SinnerG -- Create the Mango Script Base object Guard_Stormwind = Mango.Scripts.Create('guard_stormwind'); Guard_Stormwind:ForceLUA(); -- Don't use the CPP version if valid -- Function prototypes (to keep it clean) local Guard_Stormwind_GossipHello local Guard_Stor...
gpl-2.0
rasol-fucker/Self-Bot
plugins/webshot.lua
20
1473
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
abbasgh12345/extremenew0
bot/nod32bot.lua
1
11369
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
micahmumper/naev
dat/factions/spawn/zalek.lua
6
3741
include("dat/factions/spawn/common.lua") include("dat/factions/spawn/mercenary_helper.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < pbm then pilots = spawnLtMerc("Za'lek") elseif r < 0.5 then scom.addPilot( pilots, "Za...
gpl-3.0
XanDDemoX/ESOCookeryWiz-Tweak
CookeryWiz/MasterRecipeListIngredients.lua
1
4414
local masterIngredientList = {} MasterRecipeListIngredients = {} function MasterRecipeListIngredients:GetCount() return #masterIngredientList end function MasterRecipeListIngredients:GetEntry(index) if not index then d("no index specified") return nil end if index > #masterIngredie...
unlicense
micahmumper/naev
dat/missions/neutral/kidnapped/traffic_01.lua
2
11535
--[[ The Ruse A girl asks you to find his brother but it turns out it is her assassination target. Creates a ship in one out of 3 listed systems. The system and planet the brother is is chosen randomly. spawns some mercenaries that were supposed to protect the brother to intercept the player. Why is it...
gpl-3.0
lukasc-ch/nn
L1Penalty.lua
42
1129
local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module') --This module acts as an L1 latent state regularizer, adding the --[gradOutput] to the gradient of the L1 loss. The [input] is copied to --the [output]. function L1Penalty:__init(l1weight, sizeAverage, provideOutput) parent.__init(self) self...
bsd-3-clause
micahmumper/naev
dat/missions/dvaered/dv_antiflf01.lua
11
4022
--[[ -- This is the first mission in the anti-FLF Dvaered campaign. The player is tasked with ferrying home some Dvaered people. -- stack variable flfbase_flfshipkilled: Used to determine whether the player destroyed the FLF derelict, as requested. Affects the reward. -- stack variable flfbase_intro: -- 1 - The pl...
gpl-3.0
lvshiling/U3DTerrainEditor
Bin/TerrainEditorData/LuaScripts/buildcomposite.lua
2
1985
-- Composite texture packing -- Manually build mip levels of composite textures from a list of filenames function log2(n) return math.log(n) / math.log(2) end function BuildCompositeTexture(filenames) if #filenames ~= 4 then print("Must specify 4 tile textures") return end local tex=Image:new(context) local tte...
mit
qj739/BadRotations
System/Libs/DiesalStyle-1.0/DiesalStyle-1.0.lua
3
27278
-- $Id: DiesalStyle-1.0.lua 53 2016-07-12 21:56:30Z diesal2010 $ local MAJOR, MINOR = "DiesalStyle-1.0", "$Rev: 53 $" local DiesalStyle, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not DiesalStyle then return end -- No Upgrade needed. -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
gpl-3.0
Ali-2h/sokutbot
plugins/Moderator_Gp.lua
37
37415
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
cmsj/hammerspoon
extensions/geometry/init.lua
1
27158
--- === hs.geometry === --- --- Utility object to represent points, sizes and rects in a bidimensional plane --- --- An hs.geometry object can be: --- * a *point*, or vector2, with `x` and `y` fields for its coordinates --- * a *size* with `w` and `h` fields for width and height respectively --- * a *rect*, which ha...
mit
shayanchabok555/newbot_shayan0099
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
noewin/papercrop
config_for_stareread_STK101/config.lua
15
8104
--------------------------------------------------------------------- -- user settings --------------------------------------------------------------------- device_width=535 device_height=763 scroll_overlap_pixels=40 output_format=".jpg" output_to_pdf=false -- output to a pdf file, instead of multiple image fi...
gpl-2.0
tmbr54/Cluedota
game/dota_addons/cluedota/scripts/vscripts/internal/eventtest.lua
1
59374
function cluedota:StartEventTest() ListenToGameEvent("team_info", Dynamic_Wrap(cluedota, 'On_team_info'), self) ListenToGameEvent("team_score", Dynamic_Wrap(cluedota, 'On_team_score'), self) ListenToGameEvent("teamplay_broadcast_audio", Dynamic_Wrap(cluedota, 'On_teamplay_broadcast_audio'), self) ListenToGameEvent(...
apache-2.0
excessive/love-against-humanity
client/libs/hump/signal.lua
15
2736
--[[ Copyright (c) 2012-2013 Matthias Richter 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, publish, dis...
mit
eku/nodemcu-firmware
tools/luacheck_config.lua
5
21733
stds = stds or ... -- set stds if this script is called by another config script local empty = { } local read_write = {read_only = false} stds.nodemcu_libs = { read_globals = { adc = { fields = { INIT_ADC = empty, INIT_VDD33 = empty, force_init_mode = empty, read = empty, ...
mit
Merovius/crazycatlady
main.lua
1
1794
require("credits") require("name") require("sick") require("splash") require("leaderboard") require("scratch") require("shootingrange") imgs = {} sounds = {} score = 0 screen = splash T = 0 function love.load() math.randomseed(os.time()) highscore.set("score", 9, "Nobody", 0) font = love.graphics.newFont("assets...
mit
coderstudy/luarocks
src/luarocks/tools/zip.lua
9
8375
--- A Lua implementation of .zip file archiving (used for creating .rock files), -- using only lua-zlib. --module("luarocks.tools.zip", package.seeall) local zip = {} local zlib = require("zlib") local fs = require("luarocks.fs") local dir = require("luarocks.dir") local function number_to_bytestring(number, nbytes)...
mit
abcdelf/ardupilot
Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua
182
29665
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
FreeBlues/neko8
libs/moonscript/moonscript/transform/statement.lua
1
19425
local Transformer Transformer = require("libs.moonscript.moonscript.transform.transformer").Transformer local NameProxy, LocalName, is_name_proxy do local _obj_0 = require("libs.moonscript.moonscript.transform.names") NameProxy, LocalName, is_name_proxy = _obj_0.NameProxy, _obj_0.LocalName, _obj_0.is_name_proxy end...
mit
Hobadee/grandMA2_LUA_ldoc
gma.canbus.lua
1
2062
---Canbus related GMA LUA functions --@module gma.canbus --- Emulates Keypresses -- -- WARNING!! This is a low-level function and might have unpredictable and harmful consequences on your console and/or showfile. -- Use it at your own risk. -- -- For a list of known keycodes, see the "See also" link below. -- --@see ...
gpl-3.0
EXILEDNONAME/SERVER
lua/extend/enum/message.lua
8
1173
--[[ 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. ]]-- message_type_adduser, message_type_join, message_type_part, message_type_whisper, message_type_talk, message_type_broadcast, message_type_channel, mess...
gpl-2.0
ScegfOd/wesnoth
data/lua/wml/find_path.lua
6
5035
local helper = wesnoth.require "lua/helper.lua" local utils = wesnoth.require "lua/wml-utils.lua" function wesnoth.wml_actions.find_path(cfg) local filter_unit = helper.get_child(cfg, "traveler") or helper.wml_error("[find_path] missing required [traveler] tag") -- only the first unit matching local unit = wesnoth....
gpl-2.0
maikerumine/nuclear_holocaust
mods/cottages/UNUSED/nodes_chests.lua
7
2281
-- TODO: make these chests as chests and indicate that they are owned by npc -- TODO: add bags (not for carrying around but for decoration) -- Boilerplate to support localized strings if intllib mod is installed. local S = cottages.S cottages_chests = {} -- uses default.chest_formspec for now cottages_chests.on_cons...
lgpl-2.1
fabiopetroni/Dato-Core
src/unity/python/graphlab/lua/pl/path.lua
14
10677
--- Path manipulation and file queries. -- -- This is modelled after Python's os.path library (10.1); see @{04-paths.md|the Guide}. -- -- Dependencies: `pl.utils`, `lfs` -- @module pl.path -- imports and locals local _G = _G local sub = string.sub local getenv = os.getenv local tmpnam = os.tmpname local attributes, cu...
agpl-3.0
LingJiJian/Unity_i18n
Assets/ToLua/Lua/UnityEngine/LayerMask.lua
6
1113
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
mit
ABIZBOT/5
system/bot/commands.lua
7
32016
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = (loadfile "./system/libs/serpent.lua")() feedparser = (loadfile "./system/libs/feedparser.lua")() json = (loadfile "./system/libs/JSON.lua")() mimetype = (loadfile "./system/libs/mimetype.lua")() redis...
gpl-2.0
roboxt/api
plugins/private.lua
7
2957
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function do_keyboard_credits() local keyboard = {} keyboard.inline_keyboard = { { {text = _("Channel"), url = 'https://telegram.me/'..config.channel:gsub('@', '')}, {text = _("GitH...
gpl-2.0
micahmumper/naev
dat/missions/neutral/drunkard.lua
6
9006
--[[ Drunkard Author: geekt A drunkard at the bar has gambled his ship into hock, and needs you to do a mission for him. ]]-- include "dat/scripts/numstring.lua" -- Bar Description bar_desc = "You see a drunkard at the bar mumbling about how he was so close to getting his break." -- Mission Details misn_tit...
gpl-3.0
excessive/love-against-humanity
client/libs/LoveFrames/objects/internal/closebutton.lua
10
4233
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- closebutton class local newobject = loveframes.NewObject("closebutton", "loveframes_object_closebutton", true) --[[-----...
mit
SimMeters/Inerthya
DCS/Inerthya_TF51D.lua
1
11523
------------------------------------------------------------------------------------------------------------------------ -- Copyright (c) 2020, SimMeters.com -- All rights reserved. Released under the BSD license. -- Inerthya_TF51D.lua 1.0 01/12/2020 (Export/Import Script P51D DCS Inerthya LUA) -- Redistribution ...
bsd-3-clause
creationix/rye
libs/storage-fs.lua
1
3420
exports.name = "creationix/storage-fs" exports.version = "0.1.0" --[[ Low Level Storage Commands ========================== These are the filesystem abstractions needed by a git database storage.write(path, raw) - Write mutable data by path storage.put(path, raw) - Write immutable data by path storage.read...
isc
qj739/BadRotations
Rotations/Hunter/Marksmanship/MarksmanshipCpoworks.lua
2
57338
local rotationName = "Cpoworks" --------------- --- Toggles --- --------------- local function createToggles() -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = ...
gpl-3.0
yaohuang2005/ntopng-json-rabbitmq-python-analysis
third-party/LuaJIT-2.0.3/src/jit/v.lua
74
5614
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
gpl-3.0
z0fa/ChatNorris
libraries/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua
5
10748
--[[ $Id: AceGUIWidget-DropDown-Items.lua 1161 2017-08-12 14:30:16Z funkydude $ ]]-- local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local select, assert = select, assert -- WoW APIs local PlaySound = PlaySound local CreateFrame = CreateFrame local function fixlevels(parent,...) local i = 1 local child = select(...
gpl-3.0
yaohuang2005/ntopng-json-rabbitmq-python-analysis
scripts/lua/host_details.lua
1
75169
-- -- (C) 2013-14 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "graph_utils" require "alert_utils" debug_hosts = false page = _GET["page"] protocol_id = _GET["protocol"] host_info = url2hostinfo(_GET) host_ip ...
gpl-3.0
qj739/BadRotations
System/Libs/DiesalGUI-1.0/Objects/Spinner.lua
6
9763
-- $Id: Spinner.lua 52 2014-04-08 11:52:40Z diesal@reece-tech.com $ local DiesalGUI = LibStub("DiesalGUI-1.0") -- | Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local DiesalTools = LibStub("DiesalTools-1.0") local Diesa...
gpl-3.0
yaohuang2005/ntopng-json-rabbitmq-python-analysis
third-party/LuaJIT-2.0.3/src/jit/dis_arm.lua
74
19364
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
gpl-3.0
henriquegemignani/etherclan
base_connection.lua
1
1277
module ('etherclan', package.seeall) do base_connection = { -- methods continue = nil, finish = nil, send = nil, receive = nil, debug_message = nil, routine_logic = nil, -- attributes socket = nil, routine = nil, server = nil, type_name = "Base-Connection", } base...
mit
warreee/Algorithm-Implementations
Gauss_Seidel_Algorithm/Lua/Yonaba/gauss_seidel_test.lua
26
2074
-- Tests for sor.lua local gauss_seidel = require 'gauss_seidel' 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
ABIZBOT/5
system/libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Mesh.lua
2
3851
-------------------------------- -- @module Mesh -- @extend Ref -- @parent_module cc -------------------------------- -- Returns the Material being used by the Mesh -- @function [parent=#Mesh] getMaterial -- @param self -- @return Material#Material ret (return value: cc.Material) -------------------------...
mit
maikerumine/nuclear_holocaust
mods/default/trees.lua
7
12800
local random = math.random -- -- Grow trees from saplings -- -- 'can grow' function function default.can_grow(pos) local node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 1, z = pos.z}) if not node_under then return false end local name_under = node_under.name local is_soil = minetest.get_item_gro...
lgpl-2.1
micahmumper/naev
dat/missions/flf/flf_pre02.lua
2
18116
--[[ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warra...
gpl-3.0
xXX-mRx-XXx/xxXxx
plugins/ar-me.lua
15
1553
do local function joker(msg, matches) if is_sudo(msg) then local text = "✅- انت مطور في الكون ".."\n".."🆔- ايدك/ج : "..msg.from.id.."\n".."🔖- اسمك/ج : "..msg.from.first_name.."\n".."🔤- المعرف : @"..msg.from.username.."\n".."🌐- اسم الكروب "..msg.to.title --@DevPointTeam return reply_msg(msg.id, t...
gpl-2.0
andronmobi/vlc-parrot-asteroid
share/lua/intf/telnet.lua
116
1876
--[==========================================================================[ telnet.lua: wrapper for legacy telnet configuration --[==========================================================================[ Copyright (C) 2011 the VideoLAN team $Id$ Authors: Pierre Ynard This program is free software; you can ...
gpl-2.0
MRAHS/quick_guard
bot/utils.lua
309
23029
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
samael65535/skynet
lualib/skynet/inject.lua
61
1373
local function getupvaluetable(u, func, unique) local i = 1 while true do local name, value = debug.getupvalue(func, i) if name == nil then return end local t = type(value) if t == "table" then u[name] = value elseif t == "function" then if not unique[value] then unique[value] = true getu...
mit
biohazardlover/ROer
DataConverter/Data/Russian/skillinfolist.lua
1
242901
-- Decompiled using luadec 2.2 GBK r120 from http://luadec.googlecode.com -- Command line: skillinfolist.lub SKILL_INFO_LIST = { [SKID.NV_BASIC] = {"NV_BASIC"; SkillName = "Базовы\229 Умен\232\255", MaxLv = 9, SpAmount = {0, 0, 0, 0, 0, 0, 0, 0, 0}, bSeperateLv = false, AttackRange = {1, 1, 1, 1, 1, 1, 1, 1, 1}}, ...
mit
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/ControlSwitch.lua
18
3287
-------------------------------- -- @module ControlSwitch -- @extend Control -- @parent_module cc -------------------------------- -- @overload self, bool -- @overload self, bool, bool -- @function [parent=#ControlSwitch] setOn -- @param self -- @param #bool isOn -- @param #bool animated -- @return ...
mit
MasterKia/Pars
plugins/ingroup.lua
1
45896
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
jeanschuchardt/Entretenimento-Digital
adductus/bin/data/img/smurfsprite/smurfwalk.lua
3
6512
module(...) -- This file is for use with Corona Game Edition -- -- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData() -- -- This file is automatically generated with TexturePacker (http://texturepacker.com). Do not edit -- -- -- Usage example: -- local ...
mit
warreee/Algorithm-Implementations
Alpha_Beta_Pruning/Lua/Yonaba/handlers/tree_handler.lua
78
1131
-- Search tree class handler implementation local PATH = (...):gsub('handlers.tree_handler$','') local class = require (PATH .. '.utils.class') local tree = class () -- Tree initialization function tree:initialize() self.nodes = {} end -- Adds a node in the tree function tree:addNode(name, parent, value) asser...
mit
warreee/Algorithm-Implementations
Floyd_Warshall/Lua/Yonaba/floyd_warshall.lua
26
1802
-- Floyd-Warshall "all pairs-shortest" algorithm implementation -- See : http://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm -- Note : this implementation (and tests) were roughly translated to -- Lua from Diego Allen's implementation of the same problem. -- See : https://github.com/kennyledet/Algorithm-Im...
mit
cmsj/hammerspoon
extensions/canvas/init.lua
1
50280
--- === hs.canvas === --- --- A different approach to drawing in Hammerspoon --- --- `hs.drawing` approaches graphical images as independant primitives, each "shape" being a separate drawing object based on the core primitives: ellipse, rectangle, point, line, text, etc. This model works well with graphical elements t...
mit
ignacio/luarocks
src/luarocks/fetch.lua
2
15270
--- Functions related to fetching and loading local and remote files. --module("luarocks.fetch", package.seeall) local fetch = {} package.loaded["luarocks.fetch"] = fetch local fs = require("luarocks.fs") local dir = require("luarocks.dir") local type_check = require("luarocks.type_check") local path = require("luaro...
mit
yaohuang2005/ntopng-json-rabbitmq-python-analysis
scripts/lua/get_host_traffic_matrix.lua
2
5222
-- -- (C) 2013-14 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" --require "dumper" --function dump(...) -- print(DataDumper(...), "\n---") --end interface.find(ifname) num_top_hosts = 10 if(host_ip == nil) then host_ip =...
gpl-3.0
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/PageView.lua
2
10340
-------------------------------- -- @module PageView -- @extend ListView -- @parent_module ccui -------------------------------- -- brief Set space between page indicator's index nodes.<br> -- param spaceBetweenIndexNodes Space between nodes in pixel. -- @function [parent=#PageView] setIndicatorSpaceBetweenIndexNodes...
mit
lumirayz/AstroSim
AstroSim/cursor.lua
1
2693
-- -- -- Requires -- -- require "class" require "util" require "entities" -- -- -- CursorMode -- -- CursorMode = inherit(Object) function CursorMode:name() return "CursorMode" end function CursorMode:desc() return "" end function CursorMode:status() return "" end function CursorMode:init() end function CursorM...
mit
shayanchabok555/newbot_shayan0099
plugins/yoda.lua
642
1199
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 request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua
11
1657
-------------------------------- -- @module EaseBezierAction -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Set the bezier parameters. -- @function [parent=#EaseBezierAction] setBezierParamer -- @param self -- @param #float p0 -- @param #float p1 -- @param #float p2 -- @param #f...
mit
joeyhng/nn
SpatialReflectionPadding.lua
20
2001
local SpatialReflectionPadding, parent = torch.class('nn.SpatialReflectionPadding', 'nn.Module') function SpatialReflectionPadding:__init(pad_l, pad_r, pad_t, pad_b) parent.__init(self) self.pad_l = pad_l self.pad_r = pad_r or self.pad_l self.pad_t = pad_t or self.pad_l self.pad_b = pad_b or self.pad...
bsd-3-clause
tesslerc/H-DRLN
graying_the_box/LUA/dqn/TransitionTable.lua
1
21432
--[[ Copyright (c) 2014 Google Inc. See LICENSE file for full terms of limited license. ]] require 'image' require 'hdf5' local trans = torch.class('dqn.TransitionTable') function trans:__init(args) self.stateDim = args.stateDim self.numActions = args.numActions self.histLen = args.histLen self.knn...
mit
tmbr54/Cluedota
game/dota_addons/cluedota/scripts/vscripts/settings.lua
1
7420
-- In this file you can set up all the properties and settings for your game mode. ENABLE_HERO_RESPAWN = false -- Should the heroes automatically respawn on a timer or stay dead until manually respawned UNIVERSAL_SHOP_MODE = false -- Should the main shop contain Secret Shop items as well as r...
apache-2.0
radent/microworld
microworld.lua
1
5508
-- aliases for common core Radiant types. local Cube3 = _radiant.csg.Cube3 local Point2 = _radiant.csg.Point2 local Point3 = _radiant.csg.Point3 local Region3 = _radiant.csg.Region3 local LOCAL_PLAYER = 'player_1' local log = radiant.log.create_logger('main') local MicroWorld = class() -- creates a new world. the ...
mit
TomBebbington/minld-pong
ball.lua
1
2266
Ball = { radius = 6, speed = 400, hit = love.audio.newSource("sounds/hit.wav") } function Ball.new(world, paddle) local self = { world = world } setmetatable(self, {__index = Ball}) world:add(self, 0, 0, self.radius * 2, self.radius * 2) self:respawn() return self end functi...
mit
creationix/rye
deps/http-codec.lua
1
8312
--[[ Copyright 2014-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...
isc
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/PhysicsJoint.lua
8
2765
-------------------------------- -- @module PhysicsJoint -- @parent_module cc -------------------------------- -- Get physics body a connected to this joint. -- @function [parent=#PhysicsJoint] getBodyA -- @param self -- @return PhysicsBody#PhysicsBody ret (return value: cc.PhysicsBody) --------------------...
mit
eriser/psycle
psycle/LuaScripts/psycle/mobdebug.lua
1
55289
-- -- MobDebug 0.5362 -- Copyright 2011-13 Paul Kulchenko -- Based on RemDebug 1.0 Copyright Kepler Project 2005 -- local mobdebug = { _NAME = "mobdebug", _VERSION = 0.5362, _COPYRIGHT = "Paul Kulchenko", _DESCRIPTION = "Mobile Remote Debugger for the Lua programming language", port = os and os.getenv and os...
gpl-2.0
noewin/papercrop
script/(landscape) vertical reflow.lua
15
1349
width=device_height height=device_width right_max_margin=0.1 figure_min_height=100 max_vspace_reflow=6 -- pixels -- outdir: output directory -- pageNo: current page -- numRects: # of crop rectangles. function processPage(outdir, pageNo, numRects) -- create merged image imageM local imageM=CImage(...
gpl-2.0
XR-s/Do-an-Sar-
sf/share/locale/turkey/monkey_dungeon.lua
1
7225
add_goto_npc_for_monkey_dungeon(5, 145, 315, 345, 361) ; add_goto_npc_for_monkey_dungeon(5, 80, 308, 106, 547) ; add_goto_npc_for_monkey_dungeon(5, 206, 109, 75, 368) ; add_goto_npc_for_monkey_dungeon(5, 320, 238, 89, 746) ; add_goto_npc_for_monkey_dungeon(5, 421, 272, 520, 352) ; add_goto_npc_for_monkey_dungeon(5...
apache-2.0
bitonp/mysql-lua-logging
lua/biton_lua_hooks.lua
1
19467
-------------------------------------------------------------------------------------------------------- -- biton_lua_hooks.lua -- Author: P.Colclough -- Date : 18 June 2012 -- Homepage: https://www.linkedin.com/in/petercolclough -- https://github.com/bitonp/mysql-lua-logging -- License: MIT -- Description: ...
mit
niceandcoolusername/cosmos
code/cryptography/morse_cipher/morseCode_translator.lua
5
1074
-- Lua code to convert text to morse code // tested on Lua 5.3.3 function enc(message) -- Lua dictionary containing the morse alphabets change = { A = ".-", B = "-...", C = "-.-.", D = "-..", E = ".", F = "..-.", G = "--.", H = "....", I = "..", J = ".---", K = "-.-", L = ".-..", M = "--", N = "-.", O ...
gpl-3.0
jcjohnson/densecap
densecap/modules/InvertBoxTransform.lua
4
2898
require 'nn' local layer, parent = torch.class('nn.InvertBoxTransform', 'nn.Module') --[[ Given anchor boxes and target boxes, compute the box transform parameters that would be needed to transform the anchors into the targets. This is an inverse for ApplyBoxTransform. Inputs: - anchor_boxes: Tensor of shape (B, 4) ...
mit
aiq/adoc_cmd_ext
lib/adoc_cmd_ext/util.lua
3
2321
local function get_even_entries( t ) local res = {} for i,v in ipairs( t ) do if ( i % 2 == 0 ) then table.insert( res, v ) end end return res end local function modify_even_entries( t, modf ) for i = 1,#t do if ( i % 2 == 0 ) then t[ i ] = modf( t[ i ] ) end ...
mit
EvilHero90/otclient
modules/corelib/ui/uiresizeborder.lua
3
3248
-- @docclass UIResizeBorder = extends(UIWidget) function UIResizeBorder.create() local resizeborder = UIResizeBorder.internalCreate() resizeborder:setFocusable(false) resizeborder.minimum = 0 resizeborder.maximum = 1000 return resizeborder end function UIResizeBorder:onSetup() if self:getWidth() > self:ge...
mit
joeyhng/nn
SpatialMaxUnpooling.lua
17
1345
local SpatialMaxUnpooling, parent = torch.class('nn.SpatialMaxUnpooling', 'nn.Module') function SpatialMaxUnpooling:__init(poolingModule) parent.__init(self) assert(torch.type(poolingModule)=='nn.SpatialMaxPooling', 'Argument must be a nn.SpatialMaxPooling module') assert(poolingModule.kH==poolingModule.dH an...
bsd-3-clause
eku/nodemcu-firmware
lua_modules/redis/redis.lua
7
2643
------------------------------------------------------------------------------ -- Redis client module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- local redis = dofile("redis.lua").connect(host, port) -- redis:publish("chan1", foo") -- redis:subscribe("...
mit
cmsj/hammerspoon
extensions/httpserver/hsminweb.lua
2
85518
--- === hs.httpserver.hsminweb === --- --- Minimalist Web Server for Hammerspoon --- --- This module aims to be a minimal, but (mostly) standards-compliant web server for use within Hammerspoon. Expanding upon the Hammerspoon module, `hs.httpserver`, this module adds support for serving static pages stored at a speci...
mit
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseCircleActionOut.lua
2
1196
-------------------------------- -- @module EaseCircleActionOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- -- @function [parent=#EaseCircleActionOut] create -- @param self -- @param #cc.ActionInterval action -- @return EaseCircleActionOut#EaseCircleActionOut ret (return value: cc...
mit
warreee/Algorithm-Implementations
A_Star_Search/Lua/Yonaba/handlers/point_graph_handler.lua
182
2492
-- A point graph handler -- This handler is devised for waypoints graphs. -- Waypoints are locations represented via labelled nodes -- and are connected with edges having a positive weight. -- It assumes edges are symmetric, that is if an edge exists -- between a and b, weight(a -> b) == weight(b -> a) local PATH = ...
mit
siktirmirza/CroCodile
plugins/plugins.lua
37
4733
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
micahmumper/naev
dat/missions/sirius/achack/achack02.lua
6
16179
--[[ -- This is the second mission in the Academy Hack minor campaign. --]] include "dat/scripts/nextjump.lua" include "fleethelper.lua" include "selectiveclear.lua" include "proximity.lua" -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english title1 =...
gpl-3.0
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Physics3DSliderConstraint.lua
8
15774
-------------------------------- -- @module Physics3DSliderConstraint -- @extend Physics3DConstraint -- @parent_module cc -------------------------------- -- -- @function [parent=#Physics3DSliderConstraint] setPoweredAngMotor -- @param self -- @param #bool onOff -- @return Physics3DSliderConstraint#Physics3DSliderC...
mit
maikerumine/nuclear_holocaust
mods/mg_villages/fill_chest--orig.lua
2
11880
-- TODO: refill chest after some time? -- TODO: alert NPC that something was taken mg_villages.random_chest_content = {}; -- add random chest content local ADD_RCC = function( data ) if( data and #data>3 and ( minetest.registered_nodes[ data[1] ] or minetest.registered_items[ data[1] ]) ) then table.insert( mg_vil...
lgpl-2.1
eriser/psycle
psycle/LuaScripts/plugineditor/output.lua
1
3851
-- psycle pluginselector (c) 2016 by psycledelics -- File: pluginselector.lua -- copyright 2016 members of the psycle project http://psycle.sourceforge.net -- This source 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 Softwar...
gpl-2.0
maikerumine/nuclear_holocaust
mods/dye/init.lua
10
4145
-- Other mods can use these for looping through available colors dye = {} dye.basecolors = {"white", "grey", "black", "red", "yellow", "green", "cyan", "blue", "magenta"} dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", "lime", "green", "aqua", "cyan", "sky_blue", "blue", ...
lgpl-2.1
qj739/BadRotations
Rotations/Warrior/Arms/ArmsCuteOne.lua
3
45655
local rotationName = "CuteOne" --------------- --- Toggles --- --------------- local function createToggles() -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1...
gpl-3.0