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
dev-osrose/osIROSE-new
scripts/npcs/ai/[tavern_owner]_sharlin.lua
2
1070
registerNpc(1013, { walk_speed = 0, run_speed = 0, scale = 130, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
jeffrysleddens/KarniCrap
kc_blacklist.lua
1
4984
--[[ 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
sdminonne/kubernetes
test/images/echoserver/template.lua
195
17200
-- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua -- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex. --[[ Copyright (c) 2014 - 2017 Aapo Talvensaari All rights reserved. Redistribu...
apache-2.0
timotii48/CombatOverlay
nameplate.lua
1
39499
---------------------- -- Namespaces ---------------------- local _, core = ...; core.EnemyNamePlate = {}; local EnemyNamePlate = core.EnemyNamePlate; ---------------------- -- CONST ---------------------- local HEALTH_BAR_TEXTURE = "Interface\\AddOns\\EKplates\\media\\ufbar"; local HEALTH_BAR_HEIGHT_NORMAL = 4; local...
mit
opentomb/OpenTomb
scripts/entity/entity_functions_traps.lua
2
26678
-- OPENTOMB ENTITY FUNCTIONS SCRIPT -- By TeslaRus, Lwmte, 2014-2016 print("entity_functions_traps->loaded !"); function gen_trap_init(id) -- Generic traps (TR1-TR2) setEntityTypeFlag(id, ENTITY_TYPE_GENERIC); setEntityCallbackFlag(id, ENTITY_CALLBACK_COLLISION, 1); setEntityActivity(id, true); ...
lgpl-3.0
PurgePJ/VouchBot
deps/discordia/libs/containers/GuildTextChannel.lua
1
2130
local json = require('json') local GuildChannel = require('containers/abstract/GuildChannel') local TextChannel = require('containers/abstract/TextChannel') local FilteredIterable = require('iterables/FilteredIterable') local Webhook = require('containers/Webhook') local Cache = require('iterables/Cache') local...
gpl-3.0
holyscroll/holyscroll
bot/utils.lua
50
23977
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
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/CardinalSplineBy.lua
20
1178
-------------------------------- -- @module CardinalSplineBy -- @extend CardinalSplineTo -- @parent_module cc -------------------------------- -- -- @function [parent=#CardinalSplineBy] startWithTarget -- @param self -- @param #cc.Node target -- @return CardinalSplineBy#CardinalSplineBy self (return value: cc.Cardi...
mit
Sxcret/FrenchRP
gamemode/entities/entities/letter/commands.lua
1
2779
local function MakeLetter(ply, args, type) if not GAMEMODE.Config.letters then FrenchRP.notify(ply, 1, 4, FrenchRP.getPhrase("disabled", "/write / /type", "")) return "" end if ply.maxletters and ply.maxletters >= GAMEMODE.Config.maxletters then FrenchRP.notify(ply, 1, 4, FrenchRP.g...
mit
Amorph/premake-dev
src/actions/make/make_cpp.lua
1
12245
-- -- make_cpp.lua -- Generate a C/C++ project makefile. -- Copyright (c) 2002-2012 Jason Perkins and the Premake project -- premake.make.cpp = {} local make = premake.make local cpp = premake.make.cpp local project = premake5.project local config = premake5.config -- -- Generate a GNU make C++ project makefile...
bsd-3-clause
PurgePJ/VouchBot
deps/discordia/containers/Embed.lua
1
1170
local Snowflake = require('./Snowflake') local format = string.format local Embed, property, method = class('Embed', Snowflake) Embed.__description = "Represents Discord Embed." function Embed:__init(data, parent) Snowflake.__init(self, data, parent) self._enabled = data.enabled if not self._enabled the...
gpl-3.0
tgoyne/luasynth
luasynth/vsapi.lua
1
1528
local ffi = require "ffi" local vapoursynth_h = require "luasynth.vapoursynth" ffi.cdef(vapoursynth_h) local vs = ffi.load "vapoursynth" local vsapi = vs.getVapourSynthAPI(3) if vsapi == nil then error("Failed to initialize VapourSynth") end local VSAPI = {} VSAPI._ffi_module = vs -- Ensure there's a reference some...
isc
TsarN/uber-os
packages/utar/Build.lua
1
1154
--Build this package from inside UberOS local minify = lua.include("min") local SRC = {"utar"} local PWD = shell.dir() local DEST = "/bin" local EXTIN = ".lua" local EXTOUT = "" local argv = { ... } local function clean() fs.delete(PWD .. "/out") end local function prepare() fs.makeDir(PWD .. "/out") end loc...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua
8
3350
-------------------------------- -- @module WavesTiles3D -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of the effect.<br> -- param amplitudeRate The value of amplitude rate will be set. -- @function [parent=#WavesTiles3D] setAmplitudeRate -- @param...
mit
opentomb/OpenTomb
scripts/config/control_constants.lua
2
6477
-- OPENTOMB CONTROL CONSTANTS LIST -- by Lwmte, Aug 2013 -------------------------------------------------------------------------------- -- Defines key and action names used with key bindings. -------------------------------------------------------------------------------- KEY_RETURN = 40; KEY_ESCAPE = 41; KEY_BACKS...
lgpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/invtweak/init.lua
3
7214
local auto_refill = minetest.settings:get_bool("invtweak_auto_refill") or true local tweak = {} tweak.formspec = {} tweak.buttons = { --sort_asc "0.8,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]", --sort_desc "0.8,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]", --concatenat...
unlicense
crazyhamedboy/botoliver
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
pingidentity/lua-resty-openidc
tests/spec/token_refresh_spec.lua
1
6970
local http = require("socket.http") local test_support = require("test_support") require 'busted.runner'() describe("if there is an active non-expired login", function() test_support.start_server() teardown(test_support.stop_server) local _, _, cookies = test_support.login() local _, status = http.request({ ...
apache-2.0
PurgePJ/VouchBot
deps/coro-wrapper.lua
4
4009
--[[lit-meta name = "creationix/coro-wrapper" version = "3.1.0" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-wrapper.lua" description = "An adapter for applying decoders to coro-streams." tags = {"coro", "decoder", "adapter"} license = "MIT" author = { name = "Tim Caswell" } ]] local co...
gpl-3.0
Sxcret/FrenchRP
gamemode/modules/base/sh_util.lua
1
8438
-----------------------------------------------------------------------------[[ /*--------------------------------------------------------------------------- Utility functions ---------------------------------------------------------------------------*/ ------------------------------------------------------------------...
mit
ibawt/ev
vendor/lua/pl/stringio.lua
8
3602
--- Reading and writing strings using file-like objects. <br> -- -- f = stringio.open(text) -- l1 = f:read() -- read first line -- n,m = f:read ('*n','*n') -- read two numbers -- for line in f:lines() do print(line) end -- iterate over all lines -- f = stringio.create() -- f:write('hello') -- f:wr...
mit
syj2010syj/w3x2lni
script/core/slk/backend_w3i.lua
1
15947
local lang = require 'lang' local table_insert = table.insert local table_sort = table.sort local table_concat = table.concat local string_char = string.char local type = type local pairs = pairs local setmetatable = setmetatable local function pack_flag(data) local flag = 0 for i = 1, #data do flag...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/bushes_classic/init.lua
7
1301
-- Bushes classic mod originally by unknown -- now maintained by VanessaE -- -- License: WTFPL local S = biome_lib.intllib bushes_classic = {} bushes_classic.bushes = { "strawberry", "blackberry", "blueberry", "raspberry", "gooseberry", "mixed_berry" } bushes_classic.bushes_descriptions = { "Strawberr...
unlicense
Amorph/premake-dev
src/base/configset.lua
3
11304
-- -- configset.lua -- -- DO NOT USE THIS YET! I am just getting started here; please wait until -- I've had a chance to build it out more before using. -- -- A configuration set manages a collection of configuration values, which -- are organized into "blocks". Each block stores a set of field-value pairs, -- along w...
bsd-3-clause
tgcloner/how-
plugins/control.lua
292
1641
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
dev-osrose/osIROSE-new
scripts/mobs/ai/doonga_leader.lua
2
1073
registerNpc(157, { walk_speed = 250, run_speed = 700, scale = 155, r_weapon = 1021, l_weapon = 0, level = 70, hp = 37, attack = 345, hit = 183, def = 218, res = 110, avoid...
apache-2.0
jeffrysleddens/KarniCrap
kc_whitelist.lua
1
5026
--[[ 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
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/FlipX3D.lua
8
1923
-------------------------------- -- @module FlipX3D -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Initializes an action with duration and grid size.<br> -- param gridSize Specify the grid size of the FlipX3D action.<br> -- param duration Specify the duration of the FlipX3D act...
mit
MinetestForFun/minetest-minetestforfun-server
mods/homedecor_modpack/lrfurn/coffeetable.lua
7
3532
minetest.register_node("lrfurn:coffeetable_back", { description = "Coffee Table", drawtype = "nodebox", tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"}, paramtype = ...
unlicense
nerai/OpenRA
mods/ra/maps/intervention/intervention.lua
14
10984
BeachheadTrigger = { CPos.New(120, 90), CPos.New(120, 89), CPos.New(120, 88), CPos.New(121, 88), CPos.New(122, 88), CPos.New(123, 88), CPos.New(124, 88), CPos.New(125, 88), CPos.New(126, 88), CPos.New(126, 89), CPos.New(127, 89), CPos.New(128, 89), CPos.New(128, 90), CPos.New(129, 90), CPos.New(130, 90), CPos.New(13...
gpl-3.0
ld-test/luaharfbuzz
spec/shaping_spec.lua
1
5082
local harfbuzz = require("harfbuzz") local compare_glyphs_against_fixture = function(glyphs, fixture) local json = require('dkjson') local f = io.open("fixtures/"..fixture) local s = f:read("*all") f:close() local hb_shape_glyphs = json.decode(s) assert.are_equal(#hb_shape_glyphs, #glyphs) for c = 1, #gl...
mit
ibawt/ev
vendor/lua/say/init.lua
2
1408
local registry = { } local current_namespace local fallback_namespace local s = { _COPYRIGHT = "Copyright (c) 2012 Olivine Labs, LLC.", _DESCRIPTION = "A simple string key/value store for i18n or any other case where you want namespaced strings.", _VERSION = "Say 1.2", set_namespace = function(self, na...
mit
kusk356/fucktion
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
tahashakiba/boomrange_bot
plugins/channels.lua
300
1680
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
TsarN/uber-os
packages/init/Build.lua
1
1155
--Build this package from inside UberOS local minify = lua.include("min") local SRC = {"init"} local PWD = shell.dir() local DEST = "/sbin" local EXTIN = ".lua" local EXTOUT = "" local argv = { ... } local function clean() fs.delete(PWD .. "/out") end local function prepare() fs.makeDir(PWD .. "/out") end lo...
mit
alikingambav/archer3
plugins/ingroup.lua
7
64455
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
1linux/lua-gpio-bcm2708
gpio_bcm2708.lua
1
2307
-- gpio_bmc for the Raspberry Pi -- Feb. 2015 Helmut Gruber -- Principles taken from WiringPi C Code -- https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c -- -- to be included with GPIO=require"gpio_bmc" local periphery = require('periphery') local GPIO = require('periphery').GPIO local MMIO = requir...
mit
dev-osrose/osIROSE-new
scripts/npcs/ai/[sikuku_resident]_parah.lua
2
1065
registerNpc(1260, { 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
npge/lua-npge
spec/util/fromFasta_spec.lua
2
2486
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2016 Boris Nagaev -- See the LICENSE file for terms of use. describe("npge.util.fromFasta", function() it("parses fasta representation", function() local fromFasta = require 'npge.util.fromFasta' local fasta = [[ >foo des...
mit
TsarN/uber-os
packages/ccute/libccute.lua
1
30013
--Ccute GUI Framework --Written by TsarN local ccute ccute = {} ccute.ToggleAnimation = {} ccute.ToggleAnimation.__index = ccute.ToggleAnimation setmetatable(ccute.ToggleAnimation, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...) return self end }) fu...
mit
zetas/GatherBuddyImproved
GeminiColor/GeminiColor.lua
1
26079
--================================================================================================ -- -- GeminiColor -- -- An Apollo Package for producing UI controls for picking colors, picking colors, -- and working with color data in multiple formats. -- --===============================================...
gpl-3.0
alikingambav/archer3
plugins/supergroup(@alireza_PT).lua
1
77570
--Begin supergrpup.lua --Check members #Add supergroup local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "Promote me to admin first!") end for k,v in pai...
gpl-2.0
MinetestForFun/minetest-minetestforfun-server
mods/mesecons/mesecons_blinkyplant/init.lua
8
1749
-- The BLINKY_PLANT local toggle_timer = function (pos) local timer = minetest.get_node_timer(pos) if timer:is_started() then timer:stop() else timer:start(mesecon.setting("blinky_plant_interval", 3)) end end local on_timer = function (pos) -- DO NOT TOUCH OR.. THREATS! Thanks, MFF local activate = false f...
unlicense
zetamatta/nyagos
luatst/utf8offset.lua
2
1829
--- Do 'lua_f THIS_SCRIPT' function assert_error(value, error_message) assert(value == nil) assert(error_message ~= nil) end assert(utf8.offset("", 1) == 1) assert(utf8.offset("", 2) == nil) assert(utf8.offset("", -1) == nil) assert(utf8.offset("", 1, 1) == 1) assert_error(utf8.offset("", 1, 2)) ...
bsd-3-clause
dev-osrose/osIROSE-new
scripts/mobs/ai/adamantium_golem's_henchman.lua
2
1949
registerNpc(626, { walk_speed = 450, run_speed = 950, scale = 300, r_weapon = 0, l_weapon = 0, level = 80, hp = 80, attack = 438, hit = 223, def = 319, res = 186, avoid ...
apache-2.0
dev-osrose/osIROSE-new
scripts/npcs/ai/[monkey]_charlie_longtail.lua
2
1065
registerNpc(1240, { 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
autowitch/conky-aw2
scripts/lib/config.lua
1
4424
local config = {} config.general_defaults = { transparency = 0.3, background_img = '', radius = 10, interval = '30m', -- Various font related things title_font = 'Sans', title_x_offset = 5, title_y_offset = 20, title_font_size = 16, title_font_color = 0xffffff, title_font_...
mit
dev-osrose/osIROSE-new
scripts/mobs/fields/JD02.lua
2
14356
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 93, 1, 1, 15, 5, 24, 5099.4, 5460.06, 17.38); mob("", 91, 1, 1, 15, 5, 24, 5148.07, 5477.81, 12.65); mob("", 63, 4, 10, 20, 10, 24, 5261.82, 5527.6...
apache-2.0
MinetestForFun/minetest-minetestforfun-server
mods/builtin_falling/rewirting.lua
10
7088
-- -- Falling stuff custom for protected area -- minetest.register_entity(":__builtin:falling_node", { initial_properties = { physical = true, collide_with_objects = false, collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, visual = "wielditem", textures = {}, visual_size = {x=0.667, y=0.667}, owner = "falli...
unlicense
npge/lua-npge
spec/io/Mauve_spec.lua
2
1074
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2016 Boris Nagaev -- See the LICENSE file for terms of use. describe("npge.io.ReadMauve1File and npge.io.ReadMauveBbcolsFile", function() it("reads XMFA and bbcols files by progressiveMauve #mosses", function() local bs_with...
mit
mike-ward/Markdown-Edit
src/MarkdownEdit/Lib/task-list.lua
2
3882
local List = require 'pandoc.List' local M = {} local function is_html (format) return format == 'html' or format == 'html4' or format == 'html5' end --- Create a ballot box for the given output format. function M.ballot_box (format) if is_html(format) then return pandoc.RawInline( 'html', '<inpu...
mit
eskibars/domoticz
dzVents/runtime/integration-tests/httpResponseScript.lua
6
1994
local log local dz local err = function(msg) log(msg, dz.LOG_ERROR) end local tstMsg = function(msg, res) print('HTTP trigger, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED')) end local expectEql = function(attr, test, marker) if (attr ~= test) then local msg = tostring(attr) .. '~=' .. tostring(test) ...
gpl-3.0
dostiharise/libgdx-demo-pax-britannica
android/assets/data/scripts/frigate_ai.lua
11
1276
local v2 = require 'dokidoki.v2' local stopping = false local target_fuzzy_pos local function retarget () target = game.targeting.get_nearest_of_type(self, 'fighter') or game.targeting.get_nearest_of_type(self, 'frigate') or game.targeting.get_nearest_of_type(self, 'factory') if ...
mit
Sxcret/FrenchRP
gamemode/config/jobrelated.lua
1
12603
-- People often copy jobs. When they do, the GM table does not exist anymore. -- This line makes the job code work both inside and outside of gamemode files. -- You should not copy this line into your code. local GAMEMODE = GAMEMODE or GM /*-------------------------------------------------------- Default teams. Please ...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua
11
2478
-------------------------------- -- @module TransitionPageTurn -- @extend TransitionScene -- @parent_module cc -------------------------------- -- Returns the action that will be performed with size.<br> -- param vector A given size.<br> -- return The action that will be performed. -- @function [parent=#TransitionPa...
mit
ibawt/ev
vendor/lua/luassert/languages/nl.lua
1
1431
local s = require('say') s:set_namespace('nl') s:set("assertion.same.positive", "Verwachtte objecten die vergelijkbaar zijn. Aangeboden:\n%s\nVerwachtte:\n%s") s:set("assertion.same.negative", "Verwachtte objecten die niet vergelijkbaar zijn. Aangeboden:\n%s\nVerwachtte niet:\n%s") s:set("assertion.equals.positive",...
mit
ZhuanJia/my-skynet
service/snaxd.lua
3
3548
local skynet = require "skynet" local c = require "skynet.c" local snax_interface = require "snax.interface" local profile = require "profile" local snax = require "snax" local func = snax_interface(tostring(...), _ENV) local mode local thread_id local message_queue = {} local init = false local profile_table = {} lo...
mit
notcake/gooey
lua/gooey/ui/keyboard/keyboardmap.lua
1
1788
local self = {} Gooey.KeyboardMap = Gooey.MakeConstructor (self) function self:ctor () self.Keys = {} end function self:Clone (clone) clone = clone or self.__ictor () clone:Copy (self) return clone end function self:Copy (source) for key, handlers in pairs (source.Keys) do for _, handler in ipairs (handle...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/homedecor_modpack/fake_fire/init.lua
7
6987
screwdriver = screwdriver or {} local function start_smoke(pos, node, clicker, chimney) local this_spawner_meta = minetest.get_meta(pos) local id = this_spawner_meta:get_int("smoky") local s_handle = this_spawner_meta:get_int("sound") local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name if id ~= 0...
unlicense
vic-w/torch-practice
multilayer-perceptron/mlp.lua
1
1276
require 'torch' require 'nn' require 'optim' require 'gnuplot' month = torch.range(1,10) price = torch.Tensor{28993,29110,29436,30791,33384,36762,39900,39972,40230,40146} model = nn.Sequential() model:add(nn.MulConstant(0.1)) model:add(nn.Linear(1,3)) model:add(nn.Sigmoid()) model:add(nn.Linear(3,3)) model:add(nn.Sig...
mit
icebreaker/premake-dev
src/actions/vstudio/vs200x_vcproj.lua
2
21221
-- -- vs200x_vcproj.lua -- Generate a Visual Studio 2002-2008 C/C++ project. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- -- -- Set up a namespace for this file -- premake.vstudio.vc200x = { } local vc200x = premake.vstudio.vc200x local tree = premake.tree -- -- Return the version-specifi...
bsd-3-clause
dev-osrose/osIROSE-new
scripts/mobs/ai/coal_mine_moldie.lua
2
1943
registerNpc(112, { walk_speed = 200, run_speed = 460, scale = 105, r_weapon = 0, l_weapon = 0, level = 38, hp = 32, attack = 154, hit = 119, def = 145, res = 81, avoid ...
apache-2.0
Xuno/mpv
TOOLS/lua/drc-control.lua
21
2806
-- This script enables live control of the dynamic range compression -- (drc) audio filter while the video is playing back. This can be -- useful to avoid having to stop and restart mpv to adjust filter -- parameters. See the entry for "drc" under the "AUDIO FILTERS" -- section of the man page for a complete descriptio...
gpl-2.0
i-z/cocos2d-x-samples
samples/FantasyWarrior3D/src/GlobalVariables.lua
8
15602
require "Helper" --[[ Monster Actors Values: ]]-- ---hurtEffect cc.SpriteFrameCache:getInstance():addSpriteFrames("FX/FX.plist") RECTS = { iceBolt = cc.SpriteFrameCache:getInstance():getSpriteFrame("icebolt.png"):getRect(), iceSpike =cc.SpriteFrameCache:getInstance():getSpriteFrame("iceSpike1.png"):getRect(), ...
mit
crazyhamedboy/botoliver
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
syj2010syj/w3x2lni
script/core/parser/grammar.lua
2
10082
local re = require 'parser.relabel' local m = require 'lpeglabel' local lang = require 'lang' local calcline = require 'parser.calcline' local scriptBuf = '' local compiled = {} local parser local file local defs = setmetatable({}, {__index = function (self, key) self[key] = function (...) if parser[key] ...
gpl-3.0
syj2010syj/w3x2lni
test/unit_test/非法对象ID转成合法ID/test.lua
1
1350
local w2l = w3x2lni() w2l.setting.mode = 'slk' function w2l.input_ar:get(filename) return read(filename) end local ok1, ok2 local backend_obj = w2l.backend_obj local backend_slk = w2l.backend_slk function w2l:backend_obj(type, ...) local buf = backend_obj(self, type, ...) if type == 'ability' then ...
gpl-3.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/DirectionLight.lua
11
1572
-------------------------------- -- @module DirectionLight -- @extend BaseLight -- @parent_module cc -------------------------------- -- Returns the Direction in parent. -- @function [parent=#DirectionLight] getDirection -- @param self -- @return vec3_table#vec3_table ret (return value: vec3_table) --------...
mit
alikingambav/archer3
plugins/me.lua
12
2913
do local function run(msg, matches) if matches[1]:lower() == 'me' or "wai" then if is_sudo(msg) then send_document(get_receiver(msg), "./data/me/sudo.webp", ok_cb, false) return "Your Rank is : SuDo" elseif is_admin(msg) then send_document(get_receiver(msg), "./data/me/admin.webp", ok_cb, false...
gpl-2.0
AntumDeluge/arianne-stendhal
data/script/region/semos/city/temple/fish.lua
3
1324
--[[ *************************************************************************** * Copyright © 2021 - Arianne * *************************************************************************** *************************************************************************** * ...
gpl-2.0
Amorph/premake-dev
tests/actions/vstudio/vc200x/test_assembly_refs.lua
1
1559
-- -- tests/actions/vstudio/vc200x/test_assembly_refs.lua -- Validate managed assembly references in Visual Studio 2010 C/C++ projects. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local suite = test.declare("vs200x_assembly_refs") local vc200x = premake.vstudio.vc200x -- -- Setup -- local sln,...
bsd-3-clause
opentomb/OpenTomb
scripts/inventory/item_list.lua
1
7323
-- OPENTOMB INVENTORY ITEM LIST -- by Lwmte, Sep 2014 -------------------------------------------------------------------------------- -- Defines global inventory items. -- Since different versions of TR feature different weapons yet originating from -- the previous one (e. g., Automags originating from Magnums, MP5 o...
lgpl-3.0
Mogara/QSanguosha
lang/zh_CN/Package/StandardWeiGeneral.lua
6
6456
-- translation for Standard General Package return { -- 魏势力 ["#caocao"] = "魏武帝", ["caocao"] = "曹操", ["jianxiong"] = "奸雄", [":jianxiong"] = "每当你受到伤害后,你可以获得造成此伤害的牌。", ["#simayi"] = "狼顾之鬼", ["simayi"] = "司马懿", ["fankui"] = "反馈", [":fankui"] = "每当你受到伤害后,你可以获得来源的一张牌。", ["guicai"] = "鬼才", [":guicai"] = "每当一名角色的...
gpl-3.0
loic-fejoz/loic-fejoz-fabmoments
castle/stone.lua
1
3626
--[[ The MIT License (MIT) Copyright (c) 2016 Loïc Fejoz 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, ...
mit
hb9cwp/snabbswitch
src/apps/ipv6/ns_responder.lua
7
3495
-- This app acts as a responder for neighbor solicitaions for a -- specific target address and as a relay for all other packets. It -- has two ports, north and south. The south port attaches to a port -- on which NS messages are expected. Non-NS packets are sent on -- north. All packets received on the north port a...
apache-2.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/sea/sealamps/init.lua
6
2247
-- NODES minetest.register_node("sealamps:torch", { description = "Sea torch", drawtype = "torchlike", tiles = { {name="sealamps_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}, {name="sealamps_torch_on_ceiling_animated.png", animation={type="vertical_fram...
unlicense
Gael-de-Sailly/minetest-minetestforfun-server
mods/unified_inventory/register.lua
8
18762
local S = unified_inventory.gettext local F = unified_inventory.fgettext minetest.register_privilege("creative", { description = S("Can use the creative inventory"), give_to_singleplayer = false, }) minetest.register_privilege("ui_full", { description = S("Forces Unified Inventory to be displayed in Full mode if L...
unlicense
daofeng2015/luci
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev.lua
39
3926
-- Copyright 2015 Jian Chang <aa65535@live.com> -- Licensed to the public under the Apache License 2.0. local m, s, o, e, a if luci.sys.call("pidof ss-redir >/dev/null") == 0 then m = Map("shadowsocks-libev", translate("ShadowSocks-libev"), translate("ShadowSocks-libev is running")) else m = Map("shadowsocks-libev"...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/poisonga.lua
5
1206
----------------------------------------- -- Spell: Poisonga ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCheck(caster,target,sp...
gpl-3.0
MOSAVI17/Gbot
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
hb9cwp/snabbswitch
src/apps/vhost/vhost_user.lua
9
11952
-- -- See http://www.virtualopensystems.com/en/solutions/guides/snabbswitch-qemu/ module(...,package.seeall) local basic_apps= require("apps.basic.basic_apps") local pcap = require("apps.pcap.pcap") local app = require("core.app") local config = require("core.config") local lib = require("core.lib...
apache-2.0
fuckerbots/fucker
bot/sbssbot.lua
1
9719
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
m2mselect/owrt
feeds/luci/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
68
5949
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local ip = require "luci.ip" function write_float(self, section, value) local n = tonumber(value) if n ~= nil then return Value.write(self, section, "%.1f" % n) ...
gpl-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/items/furniture_bust.lua
1
1187
local ITEM = {}; ITEM.ID = 58; ITEM.Reference = "furniture_bust"; ITEM.Name = "Marble Bust"; ITEM.Description = "A small statue of The Man.\n\nLeft click to spawn as prop."; ITEM.Weight = 30; ITEM.Cost = 250; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/props_combine/bre...
mit
teahouse/FWServer
script/util/function.lua
1
4419
local utilfunc = {} --参数都是os.time()的返回值 function utilfunc.IntervalDay(ot1, ot2) --返回ot1的天数减去ot2的天数,可为负数,若为0则为同一天 local h1 = math.floor(os.date("%D",tt1)) local h2 = math.floor(os.date("%D",tt2)) return h1-h2 end function utilfunc.IntervalHour(ot1, ot2) --ot1和ot2的相差小时,可为负数,若为0则为同一天 local h1 = math.floor(os.date("%...
mit
sjznxd/luci-0.11-aa
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua
85
3643
--[[ Luci statistics - olsrd plugin diagram definition Copyright 2011 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/effects/light_arts.lua
37
1963
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:recalculateAbilitiesTable(); local bonus = effect:getPower(); local regen = effect...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/broiled_trout.lua
35
1292
----------------------------------------- -- ID: 4587 -- Item: Broiled Trout -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -1 -- Ranged ATT % 14 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
fartoverflow/naev
dat/factions/spawn/goddard.lua
10
1642
include("dat/factions/spawn/common.lua") -- @brief Spawns a capship with escorts. function spawn_capship () local pilots = {} local r = rnd.rnd() -- Generate the capship scom.addPilot( pilots, "Goddard Goddard", 145 ) -- Generate the escorts r = rnd.rnd() if r < 0.5 then scom.addP...
gpl-3.0
Armin041/Tele_Dam01
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
FFXIOrgins/FFXIOrgins
scripts/zones/Temple_of_Uggalepih/npcs/Treasure_Coffer.lua
5
3940
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Treasure Coffer -- @zone 159 -- @pos -219 0 32 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
Ali-2h/lwl
plugins/Lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
m2mselect/owrt
feeds/luci/modules/luci-base/luasrc/sgi/uhttpd.lua
79
1956
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" require "luci.http" require "luci.sys" require "luci.dispatcher" require "luci.ltn12" function handle_request(env) exectime = os.clock() local renv = { CONTENT_LENGTH = env.CONTENT_LEN...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Sacrarium/npcs/Treasure_Chest.lua
5
2547
----------------------------------- -- Area: Sacrarium -- NPC: Treasure Chest -- @zone 28 ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require("scripts/zones/Sa...
gpl-3.0
sjznxd/lc-20130127
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
79
3356
--[[ 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
FFXIOrgins/FFXIOrgins
scripts/zones/Aht_Urhgan_Whitegate/npcs/Zaranf.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Zaranf -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Port_Jeuno/npcs/Sugandhi.lua
37
1492
----------------------------------- -- Area: Port Bastok -- NPC: Sugandhi -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); -----------------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyq.lua
11
1477
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: cermet portal -- @pos 440 0 401 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); requ...
gpl-3.0
loic-fejoz/loic-fejoz-fabmoments
naca-airfoil/trapezoid-naca-airfoil.lua
1
4126
--[[ The MIT License (MIT) Copyright (c) 2020 Loïc Fejoz 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, ...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Pavvke.lua
36
2173
----------------------------------- -- Area: Bastok Mines -- NPC: Pavvke -- Starts Quests: Fallen Comrades (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/sett...
gpl-3.0