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
opentomb/OpenTomb
scripts/entity/entities/tr1/tr1_raptor.lua
1
1993
function tr1_raptor_init(id) basic_init(id); setEntityAnim(id, ANIM_TYPE_BASE, 0, 0); setEntityAnimState(id, ANIM_TYPE_BASE, 1); setCharacterStateControlFunctions(id, STATE_FUNCTIONS_RAPTOR); setCharacterKeyAnim(id, ANIM_TYPE_BASE, ANIMATION_KEY_INIT); setCharacterAIParams(id, 0xFF, ...
lgpl-3.0
tgcloner/how-
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
tahashakiba/boomrange_bot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
kusk356/fucktion
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
holyscroll/holyscroll
plugins/set_type.lua
1
2528
local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local group_type = data[tostring(msg.to.id)]['group_type'] if matches[1] and is_sudo(msg) then data[tostring(msg.to.id)]['group_type'] = matches[1] save_data(_config.moderation.data, data) ...
gpl-2.0
cms-sw/apt-rpm
contrib/log/log.lua
3
2940
-- This script will log the changes being introduced by -- the transaction which is going to be run, and is based -- on an idea of Panu Matilainen. It must be plugged -- in the slots Scripts::PM::Pre/Post. -- -- Author: Gustavo Niemeyer <niemeyer@conectiva.com> if confget("APT::Log::Enable/b", "false") == "false" then...
gpl-2.0
bm01/PokeBotBad
BizHawk-1.11.6/Lua/NES/Holy Diver.lua
7
4592
-- Author Pasky13 local camx = 0x38F local camy = 0x3CF local plife = 0x440 local px = 0x370 local py = 0x3A0 local ex = 0x370 local ey = 0x3A0 --Configurable player box local pxrad = 6 -- Only use multiples of 2 and no higher than 6 local function hex(val) val = string.format("%X",val) return val end local fu...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/ActionInterval.lua
8
2149
-------------------------------- -- @module ActionInterval -- @extend FiniteTimeAction -- @parent_module cc -------------------------------- -- Gets the amplitude rate, extension in GridAction<br> -- return The amplitude rate. -- @function [parent=#ActionInterval] getAmplitudeRate -- @param self -- @return float#f...
mit
brentjm/dotfiles
neovim/lua/lsp.lua
1
2900
local nvim_lsp = require('lspconfig') local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc') -- Mappings. loca...
mit
luzexi/slua-3rd
build/pbc-win/binding/lua/parser.lua
40
9297
----------------------- -- simple proto parser ----------------------- local lpeg = require "lpeg" local P = lpeg.P local S = lpeg.S local R = lpeg.R local C = lpeg.C local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local V = lpeg.V local next = next local error = error local tonumber = tonumber local pairs =...
mit
MinetestForFun/minetest-minetestforfun-server
mods/mobs/pumpkins.lua
5
4070
-- PumpKing by Blert2112 mobs:register_mob("mobs:pumpking", { type = "monster", visual = "mesh", mesh = "mobs_pumpking.x", textures = { {"mobs_pumpking.png"} }, visual_size = {x=3, y=3}, collisionbox = {-0.5, 0.00, -0.5, 0.5, 4.5, 0.5}, animation = { speed_normal = 15, speed_run = 30, stand_start = 165, s...
unlicense
MinetestForFun/minetest-minetestforfun-server
mods/news/md5.lua
15
10935
local md5 = { _VERSION = "md5.lua 1.1.0", _DESCRIPTION = "MD5 computation in Lua (5.1-3, LuaJIT)", _URL = "https://github.com/kikito/md5.lua", _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota + Adam Baldwin + hanzao + Equi 4 Software Permission is hereby granted, fr...
unlicense
chen0031/Dato-Core
src/unity/python/graphlab/lua/pl/MultiMap.lua
36
1458
--- MultiMap, a Map which has multiple values per key. -- -- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.List` -- @classmod pl.MultiMap local classes = require 'pl.class' local tablex = require 'pl.tablex' local utils = require 'pl.utils' local List = require 'pl.List' local index_by,tsort,concat = tablex....
agpl-3.0
cogddo/vlc
share/lua/sd/assembleenationale.lua
91
8388
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: François Revol <revol at free dot fr> 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 op...
gpl-2.0
aqasaeed/seedan
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
Amorph/premake-dev
tests/base/test_configset.lua
1
7224
-- -- tests/base/test_configset.lua -- Test suite for the configset API. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.configset = {} local suite = T.configset local configset = premake.configset -- -- Setup and teardown -- local cset, parentset function suite.setup() parentset = config...
bsd-3-clause
lapayx/tsdemuxer
xupnpd/src/plugins/xupnpd_arjlover.lua
6
2194
-- Copyright (C) 2011-2013 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd -- multiki, film, filmiki function arjlover_updatefeed(feed,friendly_name) local rc=false local feed_url=string.format('http://%s.arjlover.net/%s/',feed,feed) local feed_name='arjlover_'..s...
mit
MinetestForFun/minetest-minetestforfun-server
mods/pipeworks/vacuum_tubes.lua
7
4296
if pipeworks.enable_sand_tube then pipeworks.register_tube("pipeworks:sand_tube", { description = "Vacuuming Pneumatic Tube Segment", inventory_image = "pipeworks_sand_tube_inv.png", short = "pipeworks_sand_tube_short.png", noctr = { "pipeworks_sand_tube_noctr.png" }, plain = { "pipeworks_sand_tube_plai...
unlicense
abbasgh12345/extreme2
bot/utils.lua
494
23873
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
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/dryplants/reed.lua
7
12591
----------------------------------------------------------------------------------------------- -- Dry Plants - Reed 0.0.5 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Looked at code from: darkage, default, sta...
unlicense
jeffrysleddens/KarniCrap
libs/lib_Cloth.lua
1
1450
--[[ Karni's Crap Filter ]]-- --------------------------------------------------------------------------------- -- -- Karni's Crap Filter - A World of Warcraft addon -- -- Copyright (C) 2008-2014 Karnifex -- -- This file is part of Karni's Crap Filter. -- -- Karni's Crap Filter is free software: you can red...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/ferns/horsetail.lua
9
4712
----------------------------------------------------------------------------------------------- -- Archae Plantae - Horsetail 0.0.5 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Contains code from: biome_lib -- Look...
unlicense
jetspam20/jetspam
tg/tdcli.lua
24
88706
--[[ 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 the hope that it will be use...
gpl-3.0
syj2010syj/w3x2lni
script/share/config_define.lua
1
7581
local fs = require 'bee.filesystem' local root = require 'backend.w2l_path' local function string_proxy(key, concat) return setmetatable({}, { __tostring = function () local lang = require 'share.lang' if concat then return lang.raw[key] .. concat() else ...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/_misc/irc_accents.lua
10
4759
# Based on https://github.com/ChaosWormz/mt_terms_of_use local IRC = [[ -~= Règles du salon de chat IRC #minetestforfun@irc.inchra.net =~- (Ces règles ont été établies le 1er Novembre 2014 par les opérateurs du canal Mg et MinetestForFun) 1) Il ne sera toléré aucune transgressions aux règles du réseau InchraNet, sous...
unlicense
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/EventMouse.lua
18
4781
-------------------------------- -- @module EventMouse -- @extend Event -- @parent_module cc -------------------------------- -- Returns the previous touch location in screen coordinates.<br> -- return The previous touch location in screen coordinates.<br> -- js NA -- @function [parent=#EventMouse] getPreviousLocati...
mit
pperichon/domoticz
dzVents/runtime/device-adapters/Adapters.lua
1
4040
local genericAdapter = require('generic_device') local deviceAdapters = { 'airquality_device', 'alert_device', 'ampere_1_phase_device', 'ampere_3_phase_device', 'barometer_device', 'counter_device', 'custom_sensor_device', 'distance_device', 'electric_usage_device', 'evohome_device', 'gas_device', 'group_d...
gpl-3.0
drunklurker/wesnoth
data/ai/micro_ais/cas/ca_herding_dog_move.lua
26
1767
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "lua/location_set.lua" local function get_dog(cfg) local dogs = AH.get_units_with_moves { side = wesnoth.current.side, { "and", cfg.filter }, { "not", { { "filter_adjacent...
gpl-2.0
chartly/portfolio
ditfw-gfx/deps/glsdk/glloadgen/modules/Sample_Struct.lua
3
1754
local struct = require "Structure" local common = require "CommonStruct" local my_struct = { { type="file", style="hdr", name="GetFilename(basename, spec, options)", { type="block", name="IncludeGuard", { type="write", name="Guards(hFile, spec, options)", }, { type="blank" }, { type="write", name="Typedef...
mit
zetamatta/nyagos
nyagos.d/catalog/fuzzyfinder.lua
1
2410
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end local fzf = {} fzf.cmd = "fzf.exe" fzf.args = {} fzf.args.dir = "" fzf.args.cmdhist = "" fzf.args.cdhist = "" fzf.args.gitlog = "--preview='git show {1}'" share.fuzzyfinder = share.fuzzy...
bsd-3-clause
mrbangi/bangii
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
Sxcret/FrenchRP
gamemode/entities/entities/meteor/init.lua
13
1832
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_junk/Rock001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:Ignite(20,0) local phys = self:GetPhysi...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/demoniac_cheney.lua
2
1060
registerNpc(755, { walk_speed = 140, run_speed = 420, scale = 120, r_weapon = 0, l_weapon = 0, level = 14, hp = 38, attack = 68, hit = 72, def = 49, res = 27, avoid ...
apache-2.0
nerai/OpenRA
mods/ra/maps/survival01/survival01.lua
32
14851
Difficulty = Map.Difficulty if Difficulty == "Easy" then AttackAtFrameIncrement = DateTime.Seconds(22) AttackAtFrameIncrementInf = DateTime.Seconds(16) TimerTicks = DateTime.Minutes(15) IncrementTurningPoint = TimerTicks / 2 DamageModifier = 0.5 LongBowReinforcements = { "heli", "heli" } ParadropArtillery = tru...
gpl-3.0
Midiman/Verde
libs/dominatrix/thirdparty/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
dev-osrose/osIROSE-new
scripts/npcs/ai/[raknu_warrior]_kin.lua
2
1065
registerNpc(1233, { walk_speed = 0, run_speed = 0, scale = 100, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
dev-osrose/osIROSE-new
scripts/npcs/ai/[visitor_guide]_arua's_fairy.lua
2
1068
registerNpc(1030, { walk_speed = 0, run_speed = 0, scale = 80, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
npge/lua-npge
spec/sample_pangenome.lua
2
779049
do local Sequence = require 'npge.model.Sequence' local Fragment = require 'npge.model.Fragment' local Block = require 'npge.model.Block' local BlockSet = require 'npge.model.BlockSet' local name2seq = {} local blocks = {} name2seq["ANOAT&mit1&c"] = Sequence("ANOAT&mit1&c", "AATGCTTCCGCGTTCTTCTA...
mit
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/ferns/fern.lua
7
6187
----------------------------------------------------------------------------------------------- -- Ferns - Fern 0.1.0 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Contains code from: biome_lib -- Looked at co...
unlicense
bm01/PokeBotBad
BizHawk-1.11.6/Lua/NES/Super C.lua
7
3339
-- Author Pasky13 --Player local px = 0x54C local py = 0x532 --Player projectiles local projxbase = 0x588 local projybase = 0x578 --Enemies local ex = 0x53C local ey = 0x522 local xm local ym local function draw_axis(x,y,color) gui.drawLine(x,y-4,x,y+4,color) gui.drawLine(x-4,y,x+4,y,color) end local function s...
mit
notcake/gooey
lua/gooey/ui/action.lua
1
1824
local self = {} Gooey.Action = Gooey.MakeConstructor (self) --[[ Events: EnabledChanged (enabled) Fired when this action has been enabled or disabled. IconChanged (icon) Fired when this action's icon has changed. ]] function self:ctor (name) self.Name = name self.DisplayName = name ...
gpl-3.0
cogddo/vlc
share/lua/playlist/lelombrik.lua
108
1985
--[[ French humor site: http://lelombrik.net $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 ...
gpl-2.0
hilaskis/ardupilot_GVSU
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
jak-boy/jak_boy-
plugins/arabic_lock.lua
234
1405
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-3.0
urbit/archaeology2
outside/commonmark/wrapper.lua
26
5238
#!/usr/bin/env luajit local ffi = require("ffi") cmark = ffi.load("libcmark") ffi.cdef[[ char *cmark_markdown_to_html(const char *text, int len); typedef enum { /* Block */ CMARK_NODE_DOCUMENT, CMARK_NODE_BLOCK_QUOTE, CMARK_NODE_LIST, CMARK_NODE_LIST_ITEM, ...
mit
MinetestForFun/minetest-minetestforfun-server
mods/mesecons/mesecons_gates/init.lua
10
4404
local nodebox = { type = "fixed", fixed = {{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }}, } local function gate_rotate_rules(node, rules) for rotations = 0, node.param2 - 1 do rules = mesecon.rotate_rules_left(rules) end return rules end local function gate_get_output_rules(node) return gate_rotate_rules(node, {...
unlicense
cogddo/vlc
share/lua/extensions/VLSub.lua
38
59549
--[[ VLSub Extension for VLC media player 1.1 and 2.0 Copyright 2013 Guillaume Le Maout Authors: Guillaume Le Maout Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche Bug report: http://addons.videolan.org/content/show.php/?content=148752 This program is free software; you can redist...
gpl-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/TiledGrid3D.lua
8
1404
-------------------------------- -- @module TiledGrid3D -- @extend GridBase -- @parent_module cc -------------------------------- -- @overload self, size_table, rect_table -- @overload self, size_table -- @overload self, size_table, cc.Texture2D, bool -- @overload self, size_table, cc.Textu...
mit
Sxcret/FrenchRP
gamemode/modules/f4menu/cl_jobstab.lua
1
11999
/*--------------------------------------------------------------------------- Vote/become job button ---------------------------------------------------------------------------*/ local PANEL = {} function PANEL:Init() self.BaseClass.Init(self) self:SetFont("F4MenuFont02") self:SetTall(50) end function PAN...
mit
APItools/middleware
middleware/xml-to-json/xml-to-json_spec.lua
1
1309
local spec = require 'spec.spec' local cjson = require 'cjson' describe("xml-to-json", function() it("transforms an xml response into json, sets the appropiate content-type header", function() local backend_xml = '<list><a foo="bar">hello</a><b foo="bar">bye</b></list>' local xml_to_json = spec.middlewa...
mit
MinetestForFun/minetest-minetestforfun-server
mods/food/food_basic/init.lua
8
7426
-- FOOD MOD -- A mod written by rubenwardy that adds -- food to the minetest game -- ===================================== -- >> food_basic/init.lua -- Some basic foods -- ===================================== minetest.log("action", "Food Mod - Version 2.3") dofile(minetest.get_modpath("food_basic").."/support.lua") ...
unlicense
pperichon/domoticz
dzVents/runtime/Variable.lua
1
1174
local Time = require('Time') local TimedCommand = require('TimedCommand') local function Variable(domoticz, data) local self = { ['value'] = data.data.value, ['name'] = data.name, ['type'] = data.variableType, ['changed'] = data.changed, ['id'] = data.id, ['lastUpdate'] = Time(data.lastUpdate) } if (d...
gpl-3.0
PurgePJ/VouchBot
deps/secure-socket/context.lua
7
3025
--[[ Copyright 2016 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 or agr...
gpl-3.0
dev-osrose/osIROSE-new
scripts/npcs/ai/[akram_minister]_luce.lua
2
1065
registerNpc(1142, { walk_speed = 0, run_speed = 0, scale = 120, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/TabHeader.lua
5
3251
-------------------------------- -- @module TabHeader -- @extend AbstractCheckButton -- @parent_module ccui -------------------------------- -- get the index this header in the TabControl<br> -- return -1 means not in any TabControl -- @function [parent=#TabHeader] getIndexInTabControl -- @param self -- @return int#...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/dreadnaught_king.lua
2
1070
registerNpc(374, { walk_speed = 260, run_speed = 850, scale = 200, r_weapon = 0, l_weapon = 0, level = 93, hp = 41, attack = 467, hit = 230, def = 406, res = 158, avoid ...
apache-2.0
holyscroll/holyscroll
plugins/share.lua
1
2380
do function run(msg, matches) -- Bot number -- first name -- last name send_contact(get_receiver(msg), "+989160578290", "Teleking", "@antispam_king_team", ok_cb, false) end return { patterns = { "^!share$", "^share$", "^Share$", "^/share$", "^/number$", "^!share$", "^!number$", "^Number$", "^number$", ...
gpl-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/script/framework/extends/UITextField.lua
57
1625
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, di...
mit
luzexi/slua-3rd
build/luajit-2.0.4/src/jit/dis_arm.lua
88
19364
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
MinetestForFun/minetest-minetestforfun-server
mods/pipeworks/tube_registration.lua
9
6461
-- This file supplies the various kinds of pneumatic tubes local tubenodes = {} pipeworks.tubenodes = tubenodes minetest.register_alias("pipeworks:tube", "pipeworks:tube_000000") -- now, a function to define the tubes local REGISTER_COMPATIBILITY = true local vti = {4, 3, 2, 1, 6, 5} local default_noctrs = { "pip...
unlicense
dev-osrose/osIROSE-new
scripts/mobs/ai/goblin_jar.lua
2
1065
registerNpc(261, { walk_speed = 150, run_speed = 350, scale = 100, r_weapon = 0, l_weapon = 0, level = 45, hp = 33, attack = 183, hit = 131, def = 169, res = 96, avoid ...
apache-2.0
MinetestForFun/minetest-minetestforfun-server
minetestforfun_game/mods/default/player.lua
8
4647
-- Minetest 0.4 mod: player -- See README.txt for licensing and other information. -- Player animation blending -- Note: This is currently broken due to a bug in Irrlicht, leave at 0 local animation_blend = 0 default.registered_player_models = { } -- Local for speed. local models = default.registered_player_models ...
unlicense
APItools/middleware
middleware/xml-to-json/xml-to-json.lua
1
1215
--[[ -- -- This middleware transforms xml requests into json requests. -- -- Find more about it in the APItools blog: https://docs.apitools.com/blog/2014/05/06/transforming-an-rss-feed-into-json-with-apitools.html -- --]] local function parse_xml(xml_string) local root = {children = {}} local ancestors = {} ...
mit
icebreaker/premake-dev
src/base/tree.lua
2
5110
-- -- tree.lua -- Functions for working with the source code tree. -- Copyright (c) 2009 Jason Perkins and the Premake project -- premake.tree = { } local tree = premake.tree -- -- Create a new tree. -- -- @param n -- The name of the tree, applied to the root node (optional). -- function premake.tree.new(n) ...
bsd-3-clause
jetspam20/jetspam
plugins/del.lua
22
1098
local function delmsg (arg,data) for k,v in pairs(data.messages_) do tdcli.deleteMessages(v.chat_id_,{[0] = v.id_}) end end local function run(msg, matches) if matches[1] == 'del' then if msg.chat_id_:match("^-100") then if is_owner(msg) or is_mod(msg) then if tonumber(matches[2]) > 100 or tonu...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/markers/config.lua
11
1194
-- stores up to 4 marker positions for each player markers.positions = {} -- store the positions of that many markers for each player (until server restart) markers.MAX_MARKERS = 50; -- the protection against digging of the marker by other players expires after this time markers.EXPIRE_AFTER = 60*60*24; -- self-pr...
unlicense
zetamatta/nyagos
nyagos.d/aliases.lua
2
2281
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.lua_e=function(args) if #args >= 1 then local f,err =loadstring(args[1]) if f then f() else io.stderr:write(err,"\n") end end end nyagos....
bsd-3-clause
chartly/portfolio
ditfw-gfx/deps/glsdk/glloadgen/modules/PointerCPP_Style.lua
1
19937
local common = require "CommonStyle" local util = require "util" local my_style = {} my_style.header = {} my_style.source = {} ---------------------------------------------------- -- Global styling functions. function my_style.WriteLargeHeading(hFile, headingName) hFile:write(string.rep("/", 6 + #headingName), "\n"...
mit
PurgePJ/VouchBot
deps/websocket-codec.lua
4
7859
--[[lit-meta name = "creationix/websocket-codec" description = "A codec implementing websocket framing and helpers for handshakeing" version = "3.0.2" dependencies = { "creationix/base64@2.0.0", "creationix/sha1@1.0.0", } homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"...
gpl-3.0
ibawt/ev
vendor/lua/pl/sip.lua
9
10104
--- Simple Input Patterns (SIP). -- SIP patterns start with '$', then a -- one-letter type, and then an optional variable in curly braces. -- -- sip.match('$v=$q','name="dolly"',res) -- ==> res=={'name','dolly'} -- sip.match('($q{first},$q{second})','("john","smith")',res) -- ==> res=={second='smith',first=...
mit
liuweiwuxie/rnn
RepeaterCriterion.lua
3
1212
------------------------------------------------------------------------ --[[ RepeaterCriterion ]]-- -- Applies a criterion to each of the inputs in a Table using the -- same target (the target is repeated). -- Useful for nn.Repeater and nn.Sequencer. ------------------------------------------------------------------...
bsd-3-clause
Sxcret/FrenchRP
gamemode/modules/chat/sh_chatcommands.lua
1
3655
local plyMeta = FindMetaTable("Player") FrenchRP.chatCommands = FrenchRP.chatCommands or {} local validChatCommand = { command = isstring, description = isstring, condition = fn.FOr{fn.Curry(fn.Eq, 2)(nil), isfunction}, delay = isnumber, tableArgs = fn.FOr{fn.Curry(fn.Eq, 2)(nil), isbool}, } local...
mit
i-z/cocos2d-x-samples
samples/FantasyWarrior3D/frameworks/runtime-src/Classes/custom/api/EffectSprite3D.lua
9
1697
-------------------------------- -- @module EffectSprite3D -- @extend Sprite3D -- @parent_module cc -------------------------------- -- -- @function [parent=#EffectSprite3D] setEffect3D -- @param self -- @param #cc.Effect3D effect -- @return EffectSprite3D#EffectSprite3D self (return value: cc.EffectSprite3D) ...
mit
travlr/mongrel2
docs/site/model/site.lua
54
4091
local tir = require 'tir.view' local markdown = require 'markdown' local posix = require 'posix' local json = require 'json' local util = require 'tir.util' local RFC_822 = "%a, %d %b %Y %H:%M:%S %z" local DATE_MATCH = "(%a+)_(%d+)_(%d+)" Generator = { output = 'output/', source = 'src/', } function Genera...
bsd-3-clause
phanhuy1502/FYP
LSTM.lua
1
10053
require 'torch' require 'nn' local layer, parent = torch.class('nn.LSTM', 'nn.Module') --[[ If we add up the sizes of all the tensors for output, gradInput, weights, gradWeights, and temporary buffers, we get that a SequenceLSTM stores this many scalar values: NTD + 6NTH + 8NH + 8H^2 + 8DH + 9H For N = 100, D = 51...
mit
TsarN/uber-os
packages/libbase64/Build.lua
1
1160
--Build this package from inside UberOS local minify = lua.include("min") local SRC = {"base64"} local PWD = shell.dir() local DEST = "/lib" local EXTIN = ".lua" local EXTOUT = ".lua" local argv = { ... } local function clean() fs.delete(PWD .. "/out") end local function prepare() fs.makeDir(PWD .. "/out") en...
mit
jetspam20/jetspam
plugins/groupmanager.lua
15
108993
local function modadd(msg) local hash = "gp_lang:"..msg.chat_id_ local lang = redis:get(hash) if not is_admin(msg) then if not lang then return '_You are not bot admin_' else return 'شما مدیر ربات نمیباشید' end end local data = load_data(_config.moderation.data) if data[tostring(msg.chat_i...
gpl-3.0
Sxcret/FrenchRP
gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboardMain.lua
1
4685
local Sorted, SortDown = CreateClientConVar("FAdmin_SortPlayerList", "Team", true), CreateClientConVar("FAdmin_SortPlayerListDown", 1, true) local allowedSorts = { ["Name"] = true, ["Team"] = true, ["Frags"] = true, ["Deaths"] = true, ["Ping"] = true } function FAdmin.ScoreBoard.Main.Show() loc...
mit
u255436/CppSharp
build/scripts/LLVM.lua
1
11709
require "Build" require "Utils" require "../Helpers" local llvm = path.getabsolute(basedir .. "/../deps/llvm") -- If we are inside vagrant then clone and build LLVM outside the shared folder, -- otherwise file I/O performance will be terrible. if is_vagrant() then llvm = os.getenv("HOME") .. "/llvm" end function ge...
mit
Amorph/premake-dev
src/base/config.lua
1
1348
-- -- configs.lua -- -- Functions for working with configuration objects (which can include -- projects and solutions). -- -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- premake.config = {} local config = premake.config -- -- Determine if a configuration represents a "debug" or "release" build...
bsd-3-clause
icebreaker/premake-dev
tests/base/test_location.lua
59
2014
-- -- tests/base/test_location.lua -- Automated tests for the location() function. -- Copyright (c) 2011 Jason Perkins and the Premake project -- T.base_location = { } local suite = T.base_location -- -- Setup/Teardown -- function suite.setup() sln = solution "MySolution" configurations { "Debug", "Release" ...
bsd-3-clause
APItools/middleware
middleware/bicing-distance/bicing_distance_spec.lua
1
1367
local spec = require 'spec.spec' local cjson = require 'cjson' describe("bicing_distance", function() it("adds a distance attribute to all the elements in the received json array, using their lat and long", function() local input_json = cjson.encode({ {name="barceloneta", lat=41.382335, long=2.18594...
mit
MinetestForFun/minetest-minetestforfun-server
mods/colouredstonebricks/init.lua
4
1593
--------------------------------------------- -- Coloured Stone Bricks Mod by CraigyDavi -- --------------------------------------------- local COLOURS = { "Black", "Cyan", "Brown", "Dark Blue", "Dark Green", "Dark Grey", "Dark Pink", "Green", "Grey", "Orange", "Pink", "Purple", "Red", "Whi...
unlicense
jeffrysleddens/KarniCrap
libs/lib_Scrolls.lua
1
3043
--[[ Karni's Crap Filter ]]-- --------------------------------------------------------------------------------- -- -- Karni's Crap Filter - A World of Warcraft addon -- -- Copyright (C) 2008-2014 Karnifex -- -- This file is part of Karni's Crap Filter. -- -- Karni's Crap Filter is free software: you can red...
gpl-3.0
i-z/cocos2d-x-samples
samples/KillBug/src/cocos/cocostudio/DeprecatedCocoStudioClass.lua
61
10745
if nil == ccs then return end -- This is the DeprecatedExtensionClass DeprecatedExtensionClass = {} or DeprecatedExtensionClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --CCArmature class ...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/red_jelly_king.lua
2
1072
registerNpc(628, { walk_speed = 500, run_speed = 1050, scale = 350, r_weapon = 0, l_weapon = 0, level = 50, hp = 167, attack = 274, hit = 170, def = 190, res = 133, avoid ...
apache-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/script/cocostudio/CocoStudio.lua
62
9435
if nil == ccs then return end if not json then require "cocos.cocos2d.json" end require "cocos.cocostudio.StudioConstants" function ccs.sendTriggerEvent(event) local triggerObjArr = ccs.TriggerMng.getInstance():get(event) if nil == triggerObjArr then return end for i = 1, table.getn...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/mini-porkie.lua
2
1062
registerNpc(131, { walk_speed = 180, run_speed = 600, scale = 80, r_weapon = 0, l_weapon = 0, level = 19, hp = 25, attack = 88, hit = 80, def = 61, res = 35, avoid ...
apache-2.0
dev-osrose/osIROSE-new
scripts/npcs/ai/[ferrell_guild_banker]_andre.lua
2
1069
registerNpc(1180, { walk_speed = 0, run_speed = 0, scale = 120, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/PhysicsShape.lua
8
10093
-------------------------------- -- @module PhysicsShape -- @extend Ref -- @parent_module cc -------------------------------- -- Get this shape's friction.<br> -- return A float number. -- @function [parent=#PhysicsShape] getFriction -- @param self -- @return float#float ret (return value: float) ----------...
mit
groupforspeed/TeleSniper
plugins/owners.lua
1
12597
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
dargosch/home_center_2_addons
Scenes/timeofday.lua
1
2555
--[[ %% properties %% events %% globals --]] function timestringToTable (time) local dateTable = os.date("*t"); -- Get an iterator that extracts date fields local g = string.gmatch(time, "%d+"); local hour = g() ; local minute = g() or 0; local second = g() or 0; -- Insert sunset inforati...
gpl-3.0
m2mselect/owrt
feeds/luci/applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua
37
4987
-- Copyright 2014 Á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", "") s.a...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/eggplant.lua
35
1203
----------------------------------------- -- ID: 4388 -- Item: eggplant -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Rodellieux.lua
36
1462
----------------------------------- -- 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("scri...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/uberkuchen.lua
35
1465
----------------------------------------- -- ID: 5615 -- Item: uberkuchen -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 10 -- MP % 3 (cap 13) -- Intelligence 3 -- MP Recovered While Healing 1 ----------------------------------------- require("scripts/globals/status"); --...
gpl-3.0
subzrk/BadRotations
Rotations/Warlock/Destruction/DestructionCuteOne.lua
3
47419
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
sjznxd/lc-20130127
modules/niu/luasrc/controller/niu/system.lua
33
6889
--[[ LuCI - Lua Development Framework Copyright 2009 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$ ]]-- local...
apache-2.0
sjznxd/lc-20130127
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
39
5650
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
apache-2.0
soroushwilson/wilson1
plugins/lock_ads.lua
12
1130
local function run(msg, matches) if is_owner(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['antilink'] then antilink...
gpl-2.0