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
johnneijzen/John-Computer-Craft-Program-2017
Turtle Programs/StripMining2017.lua
1
4585
--[[ Version 0.01 5/10/2017 Changelog 0.01 - Rewriting. 0.02 - Code Fixing ]]-- -- Area local distance = 0 local distanceApart = 0 local distanceApartCount = 0 local backwardsCount = 0 local forwardsCount = 0 -- Misc local noFuelNeeded = 0 local LorR = 0 -- if 0 then left if 1 then right local Mines = 0 local o...
mit
githubmereza/rezaaaa
plugins/all.lua
11
4659
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Bartender4_BFMod/locale/locale_bf.lua
1
1771
--------修改本地化。创建本地化为NewLocale 不是getLocale 这里可能是之前的笔误------------------- local L_zhCN = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "zhCN") if L_zhCN then L_zhCN["Unit Frame"] = "单位框体" L_zhCN["Enable the Unit Frame"] = "启用单位框体" L_zhCN["Configure the Unit Frame"] = "配置单位框体" L_zhCN["PlayerFrame"] = "玩家框体" ...
mit
MocoNinja/LinuxConfs
Archlabs/.config/awesome/vicious/widgets/cpufreq.lua
1
1873
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local setmetatable = setmetatable local string = { match = string....
gpl-3.0
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/wyLib/NetEasePinyin-1.0/utf8.lua
1
1748
local band, bor, rshift = bit.band, bit.bor, bit.rshift local format, strchar, gsub = string.format, string.char, gsub local tonumber = tonumber local tinsert, tconcat = table.insert, table.concat BuildModule('NetEasePinyin-1.0') local head = { 0x00, 0xC0, 0xE0, 0xF0 } local function tobin(b, h, l) ...
mit
whiver/ntui
conf.lua
2
2647
--[[ NEVER TRUST USER'S INPUT non-released v0.1 alpha -------------------------------------------------------------------- This file is part of N.T.U.I. N.T.U.I. 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 Soft...
gpl-3.0
goofanader/aijam-2015
libraries/hardoncollider/init.lua
9
9043
--[[ Copyright (c) 2011 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, distribu...
gpl-2.0
valy012/safroid5
plugins/time.lua
38
2898
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
moderna/ShivaSensorRigging
shiva/SensorRigging/Resources/Scripts/SensorRigging_Function_undoEndEntry.lua
1
1147
-------------------------------------------------------------------------------- -- Function......... : undoEndEntry -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ----------------------------------------------------------------------...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/TrinketMenu/TrinketMenu.lua
1
42769
--[[ TrinketMenu 3.81 ]]-- local _ TrinketMenu = {} -- localized strings required to support engineering bags TrinketMenu.BAG = "Bag" -- 7th return of GetItemInfo on a normal bag TrinketMenu.ENGINEERING_BAG = "Engineering Bag" -- 7th return of GetItemInfo on an engineering bag TrinketMenu.TRADE_GOODS = "Tra...
mit
Capibara-/cardpeek
dot_cardpeek_dir/scripts/lib/compatibility-with-0.7.lua
17
1952
local DEPRECATED_FUNCS = {} function DEPRECATED_FOR(fname) local func = debug.getinfo(2, "n") local orig = debug.getinfo(3, "lS") if DEPRECATED_FUNCS[func.name]==nil then log.print(log.WARNING,orig.short_src .. "[" .. orig.currentline .. "]: " .. func.name .. "() is deprecated, please use " .. fn...
gpl-3.0
ali-rahman/MLua
cmath.lua
1
5216
--[[This module allows you to perform common mathematical operations on matrices.]] local matrix = require "matrix" local cmath={} --Calculates and returns the natural log of input parameter function cmath.log(parameter) local ty=type(parameter) if(ty=="table") then local result = matrix.new(parameter.size[1],para...
mit
R4K0/HungerMod2
darkrp_modules/rakohunger/sh_hunger.lua
1
13291
--[[ Copyright 2016 Miłosz Milewski 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 agre...
apache-2.0
dromozoa/dromozoa-commons
test/test_base64.lua
3
1684
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons 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...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/DBM-EmeraldNightmare/localization.tw.lua
1
2269
if GetLocale() ~= "zhTW" then return end local L --------------- -- Nythendra -- --------------- L= DBM:GetModLocalization(1703) L:SetWarningLocalization({ }) L:SetTimerLocalization({ }) L:SetOptionLocalization({ }) L:SetMiscLocalization({ }) --------------------------- -- Il'gynoth, Heart of...
mit
nurv/lirec
scenarios/MyFriend/MyPleo/workspace/viPleoShivaModule/Resources/Scripts/MyPleoAI_State_searchStick_onEnter.lua
2
1060
-------------------------------------------------------------------------------- -- State............ : searchStick -- Author........... : Tiago Paiva -- Description...... : (currently not being used) -------------------------------------------------------------------------------- ----------------------------------...
gpl-3.0
Datamats/ServerContent
notagain/lua/notagain/pac_server/autorun/safezones.lua
1
15996
AddCSLuaFile() local SAFE_ZONE_BASE = {} SAFE_ZONE_BASE.Base = "base_anim" SAFE_ZONE_BASE.Type = "anim" SAFE_ZONE_BASE.PrintName = "Safe Zone" SAFE_ZONE_BASE.Author = "Yara" SAFE_ZONE_BASE.Spawnable = true SAFE_ZONE_BASE.AdminOnly = false -- Lets see what happens SAFE_ZONE_BASE.Category = "SafeZone" if CLIENT ...
mit
johannes-mueller/ardour
scripts/tomsloop.lua
1
11715
ardour { ["type"] = "EditorAction", name = "Tom's Loop", license = "MIT", author = "Ardour Team", description = [[Bounce the loop-range of all non muted audio tracks, paste N times at playhead]] } -- for minimal configuration in dialogue function action_params () return { ["times"] = { title = "Number o...
gpl-2.0
bb010g/otouto
otouto/plugins/lastfm.lua
1
5326
--[[ lastfm.lua Returns the currently-playing or last-played song for a given last.fm user. Allows users to store their last.fm usernames. Copyright 2016 topkecleon <drew@otou.to> This code is licensed under the GNU AGPLv3. See /LICENSE for details. ]]-- local HTTP = require('socket.http') local U...
agpl-3.0
fbriere/mpv-scripts
scripts/tree-profiles.lua
1
30382
--[[ Automatically apply profiles to certain directories or files. This mpv Lua script makes it easy to automatically apply a profile to a given directory, or to specific files within that directory, without the need to enable `use-filedir-conf` and scatter *.conf* files everywhere. For a...
gpl-2.0
telegrambot81/supergrup
plugins/ip.lua
1
4642
-- By AviraTeam https://telegram.me/avirateam -- Devloper : MohammadArak https://telegram.me/mohammadarak -- Bot ID: @avirabot -- /\ \\ // || //------\\ /\ -- //\\ \\ // || || || //\\ -- //__\\ \\ // || ||______// //__\\ -- //____\\ \\ // || || \\ ...
gpl-2.0
bjornbytes/RxLua
tests/takeWhile.lua
2
1146
describe('takeWhile', function() it('produces an error if its parent errors', function() local observable = Rx.Observable.of(''):map(function(x) return x() end) expect(observable).to.produce.error() expect(observable:takeWhile(function() end)).to.produce.error() end) it('uses the identity function if...
mit
liruqi/bigfoot
Interface/AddOns/DBM-Party-Legion/EyeOfAzshara/EoATrash.lua
1
2117
local mod = DBM:NewMod("EoATrash", "DBM-Party-Legion", 3) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17522 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 196870 195046 195284", "SPELL_AURA_APPLIED 196127 192706" ...
mit
dromozoa/dromozoa-commons
dromozoa/commons/sha1.lua
2
3033
-- Copyright (C) 2015-2017 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons 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 Li...
gpl-3.0
SbssTeam/QuickPlus
plugins/wai(2).lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseGUI-2.0/Public/Dialog.lua
2
3789
local GUI = LibStub('NetEaseGUI-2.0') local L = LibStub('AceLocale-3.0'):GetLocale('NetEaseGUI-2.0') StaticPopupDialogs['NECLOUD_CONFIRM_DIALOG'] = {} StaticPopupDialogs['NETEASE_COPY_URL'] = { text = L.DialogCopyUrl, button1 = OKAY, timeout = 0, exclusive = 1, whileDead = 1, hideOnEscape = 1...
mit
Catlinman/LuaGameHelpers
lib/utility.lua
2
1245
-- These functions hook directly into the native lua table and string objects. -- Return the length of a table. function table.length(t) return #t end -- Add an entry to the end of a table. function table.add(t, e) t[table.length(t) + 1] = e end -- Merge two tables. function table.merge(t1, t2) local length = tab...
mit
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseSocket-2.0/SocketHandler-2.0.lua
1
12092
local CallbackHandler = LibStub('CallbackHandler-1.0') local SocketMiddleware = LibStub('NetEaseSocketMiddleware-2.0') local BroadMiddleware = LibStub('NetEaseBroadMiddleware-2.0') local AceTimer = LibStub('AceTimer-3.0') local AceEvent = LibStub('AceEvent-3.0') local MAJOR, MINOR = 'SocketHandler-2.0', 20 lo...
mit
Steelcap/NSL-CompMod
NSLCompMod/source/lua/DPR/Replace/GUIAuraDisplay.lua
1
4012
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua/GUIAuraDisplay.lua -- -- Shows how many shells, spurs, veils you have -- -- Created by Andreas Urwalek (andi@unknownworlds.com) -- -- ========= For more information, visit us at http://www.unknownworlds.com ===...
mit
MaliceTurtle/gamecode4
Assets/Scripts/TeapotStates.lua
44
13650
--======================================================================== -- ActorManager.lua : Defines all the states for an AI controlled teapot -- -- Part of the GameCode4 Application -- -- GameCode4 is the sample application that encapsulates much of the source code -- discussed in "Game Coding Complete - 4t...
lgpl-3.0
dsoulayrol/flaw
title.lua
1
3600
-- flaw, a Lua OO management framework for Awesome WM widgets. -- Copyright (C) 2010,2011 David Soulayrol <david.soulayrol AT gmail DOT net> -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, e...
gpl-3.0
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
1
3698
--[[ Luci configuration model for statistics - collectd iptables plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/DBM-ThroneofThunder/CouncilofElders.lua
1
25524
local mod = DBM:NewMod(816, "DBM-ThroneofThunder", nil, 362) local L = mod:GetLocalizedStrings() --BH ADD local sndWOP = mod:SoundMM("SoundWOP") local sndSpirit = mod:SoundMM("Soundspirit") mod:SetRevision(("$Revision: 11365 $"):sub(12, -3)) mod:SetCreatureID(69078, 69132, 69134, 69131)--69078 Sul the Sandcra...
mit
liruqi/bigfoot
Interface/AddOns/DBM-Brawlers/BrawlLegacy.lua
1
14187
local mod = DBM:NewMod("BrawlLegacy", "DBM-Brawlers") local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17204 $"):sub(12, -3)) mod:SetModelID(48465)--Blind Hero mod:SetZone() mod:RegisterEvents( "SPELL_AURA_APPLIED 129888 133286 141396 141401 39945 134789", "SPELL_AURA_APPLIED_DOSE 141396 1...
mit
soumith/fblualib
fblualib/thrift/fb/thrift/init.lua
5
12974
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Thrift seria...
bsd-3-clause
valdsJohn/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
liruqi/bigfoot
Interface/AddOns/DBM-ThroneofThunder/localization.tw.lua
1
20734
if GetLocale() ~= "zhTW" then return end local L -------------------------- -- Jin'rokh the Breaker -- -------------------------- L= DBM:GetModLocalization(827) L:SetWarningLocalization({ SpecWarnJSA = ">>> 注意減傷 <<<" }) L:SetOptionLocalization({ SoundWOP = "語音警告:重要技能", SpecWarnJSA = "特殊警告:注意減傷", SoundWOPI...
mit
Math-ias/VimCC
vimfiles/vimode.lua
2
5492
function commandMode() local command = "" local pos = 1 term.setCursorPos(1, global.getVar("termY")) term.clearLine() term.write(":") -- TODO find better way to 'eat' event os.sleep(0.1) local running = true local event, key = os.pullEvent() while running do if event == "key" then if key == keys.ent...
mit
liruqi/bigfoot
Interface/AddOns/Clique/Localization.enUS.lua
1
8953
local addonName, addon = ... local baseLocale = { ["A binding that belongs to the 'default' binding-set will always be active on your unit frames, unless you override it with another binding."] = "A binding that belongs to the 'default' binding-set will always be active on your unit frames, unless you override it wi...
mit
tz70s/jit-construct
dynasm/dasm_mips.lua
120
28080
------------------------------------------------------------------------------ -- DynASM MIPS module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _i...
bsd-2-clause
Raugharr/Herald
data/populations.lua
1
1401
Human = { Eats = {"Wheat", "Rye"}, Drinks = {"Barley"} } Populations = { { Name = "Sheep", Nutrition = 9, MatureAge = {1, 7}, DeathAge = 12, MaleRatio = 0.2, Eats = {"Hay"}, Milk = 68, --Fluid ounces. Meat = 45, Hair = { Type = "Wool", Pounds = 6.5, IsShearable = true }, Skin = { T...
gpl-2.0
frankitox16/ProjectPorcupine
Assets/StreamingAssets/LUA/Furniture.lua
4
28360
------------------------------------------------------- -- Project Porcupine Copyright(C) 2016 Team Porcupine -- This program comes with ABSOLUTELY NO WARRANTY; This is free software, -- and you are welcome to redistribute it under certain conditions; See -- file LICENSE, which is part of this source code package, for ...
gpl-3.0
sherifzain/mongrel2
examples/bbs/engine.lua
96
1958
local print = print local pcall = pcall local coroutine = coroutine local ui = require 'ui' local db = require 'db' module 'engine' local STATE = {} function run(conn, engine) while true do -- Get a message from the Mongrel2 server local good, request = pcall(conn.recv_json, conn) if goo...
bsd-3-clause
liruqi/bigfoot
Interface/AddOns/BigFoot/Mods/BFVolumn/volume.lua
1
1366
local B = LibStub("AceAddon-3.0"):NewAddon("BFMods") if not B then return end local V = B:NewModule("Volume") local S local function CreateSlider() S = CreateFrame("Slider", "BFVolumeSlider", nil, "VolumeSliderTemplate") S:SetValueStep(0.1) S:SetMinMaxValues(0,1) S:EnableMouseWheel(true) S.text = _G[S:...
mit
dromozoa/dromozoa-commons
test/test_word_block.lua
2
2413
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons 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...
gpl-3.0
klauscam/Tanks2D
main.lua
1
18473
local socket = require "socket" -- the address and port of the server local address, port = "localhost", 12555 --[[ lines = {} for line in io.lines("server.ini") do address = line end --]] --Android Version Only local osString = love.system.getOS() local touchx = 0 local touchy = 0 -- local myId = os....
apache-2.0
dromozoa/dromozoa-commons
dromozoa/commons/clone.lua
3
1109
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons 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...
gpl-3.0
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/netlink.lua
8
4626
--[[ Luci statistics - netlink plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.ap...
gpl-2.0
m13790115/ssss
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
Ali-2h/ali
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
borromeotlhs/nodemcu-firmware
lua_examples/email/send_email_smtp.lua
82
4640
--- -- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU -- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access. -- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access. -- To o...
mit
jstark/valkyrie
lua/solve.lua
1
3245
#!/usr/bin/env lua valkyrie = require 'lvalkyrie' model = {} model.id = 1; model.create_material = function (t) local matid = t.id or error('material id missing') local E = t.E or 2.1e11 local r = t.rho or 7800.0 local name = t.name or '' valkyrie.create_material(model.id, matid, E, r, name) end ...
mit
luisrovirosa/trivia-refactoring-kata
lua/trivia.lua
26
5867
local Game = {} Game.__index = Game function Game:new() instance = {} setmetatable(instance, Game) instance.players = {} instance.places = { 0,0,0,0,0,0} instance.purses = { 0,0,0,0,0,0} instance.in_penalty_box = {0,0,0,0,0,0} instance.pop_questions = {} instance.science_questions = {} inst...
gpl-3.0
nurv/lirec
scenarios/MyFriend/MyPleo/workspace/viPleoShivaModule/Resources/Scripts/MainAI_Function_updateNeedsProgressBars.lua
2
2547
-------------------------------------------------------------------------------- -- Function......... : updateNeedsProgressBars -- Author........... : Paulo F. Gomes -- Description...... : Updates needs' progress bars according to current need -- values. ----------------------------------------...
gpl-3.0
Yonaba/Algorithm-Implementations
Dijkstra's_Shortest_Path/Lua/Yonaba/dijkstra.lua
26
3785
-- Generic Dijkstra graph search algorithm implementation -- See : http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm -- Notes : this is a generic implementation of Dijkstra graph search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized ...
mit
ryanplusplus/the-legend-of-zorldo
main.lua
1
1086
local LevelScene = require 'level/Scene' local MenuScene = require 'menu/Scene' local scene local key_pressed = {} local key_held = {} local controls = { player1 = { left = 'left', right = 'right', up = 'up', down = 'down' }, player2 = { left = 'a', right = 'd', up = 'w', down = 's' } } function love.keypressed...
mit
Electrovirus/Griffin
plugins/time.lua
1
2734
api_key = 'AIzaSyBpbmuB8-3ihywbqxMvOaqEZmoZOPgcjqA' base_api = "https://maps.googleapis.com/maps/api" timeFormat = "%H:%M:%S" -- Need the utc time for the google api function utctime() return os.time(os.date("!*t")) end -- Use the geocoding api to get the lattitude and longitude with accuracy specifier -- CHECKME:...
gpl-2.0
proubatsis/Procedural-City
Procedural City/lua/models/skyscrapers/skyscraper.lua
1
1872
--[[ Copyright (C) 2015 Panagiotis Roubatsis 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 prog...
gpl-2.0
Raugharr/Herald
data/goods.lua
1
5930
Goods = { {Name = "Flour", Category = GoodCat.Ingredient, InputGoods = {{"Wheat", 1.4285714}}, Produce = {Time = 10}}, {Name = "Leather", Category = GoodCat.Material, InputGoods = {}, Produce = {Time = 10}}, {Name = "Meat", Category = GoodCat.Food, InputGoods = {}, Nutrition = 3, Produce = {Time = 10}}, {Name =...
gpl-2.0
alireza1998/jjjjj
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
DavidAlphaFox/wax
lib/stdlib/helpers/bit.lua
19
4761
--[[--------------- LuaBit v0.4 ------------------- a bitwise operation lib for lua. http://luaforge.net/projects/bit/ How to use: ------------------- wax.bit.bnot(n) -- bitwise not (~n) wax.bit.band(m, n) -- bitwise and (m & n) wax.bit.bor(m, n) -- bitwise or (m | n) wax.bit.bxor(m, n) -- bitwise xor (m ^ n) wa...
mit
Steelcap/NSL-CompMod
NSLCompMod/source/lua/DPR/Server/Cyst.lua
2
1936
--cysts take damage when not connected local function ServerUpdate(self, deltaTime) if not self:GetIsAlive() then return end if self.bursted then self.bursted = self.timeBursted + Cyst.kBurstDuration > Shared.GetTime() end local now = Shared.GetTime() if now > self.nextUpdate ...
mit
devm11/DEV_M1
plugins/setwelcome.lua
20
1696
local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local group_welcome = data[tostring(msg.to.id)]['group_welcome'] -------------------------- Data Will be save on Moderetion.json if matches[1] == 'حذف الترحيب' and not matches[2] and is_owner(msg) then dat...
gpl-2.0
Yonaba/Algorithm-Implementations
Levenshtein_distance/Lua/Yonaba/levenshtein_test.lua
27
1499
-- Tests for levenshtein.lua local lev_iter = (require 'levenshtein').lev_iter local lev_recursive = (require 'levenshtein').lev_recursive 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...
mit
TechAtNYU/wiki
extensions/Scribunto/tests/engines/LuaCommon/HtmlLibraryTests.lua
1
12913
--[[ Tests for the mw.html module @license GNU GPL v2+ @author Marius Hoch < hoo@online.de > ]] local testframework = require 'Module:TestFramework' local function getEmptyTestDiv() return mw.html.create( 'div' ) end local function testHelper( obj, method, ... ) return obj[method]( obj, ... ) end -- Test attr...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Combuctor/inventoryData.lua
1
2592
--[[ InvData A wrapper libary for accessing inventory data --]] local InvData = Combuctor:NewModule('InventoryData', 'AceEvent-3.0') local currentPlayer = UnitName('player') --[[ Bank ]]-- function InvData:UpdateBank(event) self.atBank = (event == 'BANKFRAME_OPENED') end function InvData:AtBank(...
mit
MkNiz/Love2Crawl
hump/vector-light.lua
53
3560
--[[ 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
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-gps/luasrc/model/cbi/gps/gps_input-details.lua
1
4099
local sys = require "luci.sys" local dsp = require "luci.dispatcher" local utl = require "luci.util" local m, s, o arg[1] = arg[1] or "" m = Map("gps", translate("GPS Data Configuration")) m.redirect = dsp.build_url("admin/services/gps/input") if m.uci:get("gps", arg[1]) ~= "input" then luci.http.redirect(dsp.buil...
gpl-2.0
johannes-mueller/ardour
scripts/noisegen.lua
6
2627
ardour { ["type"] = "dsp", name = "NoiseGen", category = "Instrument", license = "MIT", author = "Ardour Team", description = [[Noise Generator (v-1.02)]] } function dsp_params () return { { ["type"] = "input", name = "White/Pink", min = 0, max = 1, default = 0, toggled = true }, { ["...
gpl-2.0
gonku/awesome-wm-pabucolor
lain/widgets/contrib/ccurr.lua
7
2110
--[[ Licensed under GNU General Public License v2 * (c) 2014, Aaron Lebo --]] local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") local json = re...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Bartender4/Options/ActionBar.lua
1
3643
--[[ Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > All rights reserved. ]] local _, Bartender4 = ... local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") local StateBar = Bartender4.StateBar.prototype local ActionBar = Bartender4.ActionBar local tonumber, tostrin...
mit
sami2448/a
plugins/banhammer.lua
7
11698
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
LOVE2D-Game-Maker/Project-Unique
Project Unique/Blank Template/ProjectUnique/libraries/hump/signal.lua
27
2769
--[[ 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...
gpl-3.0
geanux/darkstar
scripts/globals/mobskills/Fiery_Breath.lua
13
1293
--------------------------------------------- -- Fiery Breath -- -- Description: Deals Fire damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Tiamat, Smok and Ildebrann ---------------------------------------...
gpl-3.0
geanux/darkstar
scripts/zones/Den_of_Rancor/npcs/_4g3.lua
17
2118
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (SW) -- @pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/...
gpl-3.0
PhearNet/scanner
bin/nmap-openshift/nselib/dnssd.lua
4
12868
--- Library for supporting DNS Service Discovery -- -- The library supports -- * Unicast and Multicast requests -- * Decoding responses -- * Running requests in parallel using Lua coroutines -- -- The library contains the following classes -- * <code>Comm</code> -- ** A class with static functions that handle communica...
mit
geanux/darkstar
scripts/zones/Palborough_Mines/Zone.lua
27
1673
----------------------------------- -- -- Zone: Palborough_Mines (143) -- ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Palborough_Mines/TextIDs"); ---------...
gpl-3.0
Pumpuli/multitheftauto
vendor/lua/src/premake.lua
38
6155
---------------------------------------------------- -- The main porpouse of this file is to build linux gcc makefiles. -- Must have Premake version 3 installed. -- Original Premake was changed to remove some parameters and add others. -- Default parameters: -- premake3s --target gnu --os linux -- But it can build wi...
gpl-3.0
geanux/darkstar
scripts/globals/items/bowl_of_yayla_corbasi.lua
35
1482
----------------------------------------- -- ID: 5579 -- Item: bowl_of_yayla_corbasi -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 20 -- Dexterity -1 -- Vitality 2 -- HP Recovered While Healing 3 -- MP Recovered While Healing 1 ----------------------------------------- req...
gpl-3.0
geanux/darkstar
scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua
17
1702
----------------------------------- -- Area: La Theine Plateau -- NPC: Narvecaint -- Involved in Mission: The Rescue Drill -- @pos -263 22 129 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
CandyKat/external_skia
tools/lua/scrape.lua
145
2246
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
kaen/Zero-K
units/gunshipsupport.lua
5
5467
unitDef = { unitname = [[gunshipsupport]], name = [[Rapier]], description = [[Multi-Role Support Gunship]], acceleration = 0.152, brakeRate = 0.152, buildCostEnergy = 300, buildCostMetal = 300, builder = fals...
gpl-2.0
evilexecutable/ResourceKeeper
install/Lua/lib/lua/luarocks/admin_remove.lua
2
2990
--- Module implementing the luarocks-admin "remove" command. -- Removes a rock or rockspec from a rocks server. module("luarocks.admin_remove", package.seeall) local cfg = require("luarocks.cfg") local util = require("luarocks.util") local fetch = require("luarocks.fetch") local dir = require("luarocks.dir") local ma...
gpl-2.0
legend18/dragonbone_cocos2dx-3.x
demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/GUIReader.lua
7
1210
-------------------------------- -- @module GUIReader -- @extend Ref -- @parent_module ccs -------------------------------- -- @function [parent=#GUIReader] setFilePath -- @param self -- @param #string str -------------------------------- -- @function [parent=#GUIReader] widgetFromJsonFile -- @param self -...
mit
geanux/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua
38
1066
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Scotwick -- Type: Allied Notes Notorious Monsters -- @zone: 94 -- @pos 153.785 -3.134 9.895 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/...
gpl-3.0
ExcelF/project-navel
libs/quickie/mouse.lua
10
3265
--[[ Copyright (c) 2012 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, distribu...
mit
geanux/darkstar
scripts/zones/Northern_San_dOria/npcs/Beadurinc.lua
53
1875
----------------------------------- -- Area: Northern San d'Oria -- NPC: Beadurinc -- Type: Smithing Synthesis Image Support -- @pos -182.300 10.999 146.650 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
tonylauCN/tutorials
openresty/debugger/lualibs/dist/package.lua
4
26616
-- Package functions module ("dist.package", package.seeall) local cfg = require "dist.config" local git = require "dist.git" local sys = require "dist.sys" local mf = require "dist.manifest" local utils = require "dist.utils" local depends = require "dist.depends" -- Return whether the package in given 'pkg_dir' is...
apache-2.0
geanux/darkstar
scripts/zones/The_Shrine_of_RuAvitau/mobs/Seiryu.lua
27
1101
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Seiryu (Pet version) ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ------------------...
gpl-3.0
geanux/darkstar
scripts/zones/Port_Windurst/npcs/Pherchabalet.lua
38
1039
----------------------------------- -- Area: Port Windurst -- NPC: Pherchabalet -- Type: Standard NPC -- @zone: 240 -- @pos 34.683 -5.999 137.447 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------...
gpl-3.0
geanux/darkstar
scripts/zones/Kazham/npcs/Thali_Mhobrum.lua
15
1696
----------------------------------- -- Area: Kazham -- NPC: Thali Mhobrum -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); local path = { 55.816410, -11.000000, -43.992680, 54.761787, -11.000000, -44.0461...
gpl-3.0
geanux/darkstar
scripts/zones/Periqia/IDs.lua
49
3842
Periqia = { text = { -- General Texts ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6381, -- Obtained: <item> GIL_OBTAINED = 6384, -- Obtained <number> gil KEYITEM_OBTAINED = 6384, -- Obtaine...
gpl-3.0
geanux/darkstar
scripts/globals/mobskills/Luminous_Lance.lua
19
1379
--------------------------------------------- -- Luminous Lance --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/zones/Empyreal_Paradox/TextIDs"); -------------------------------------------...
gpl-3.0
geanux/darkstar
scripts/zones/Apollyon/mobs/Metalloid_Amoeba.lua
16
1277
----------------------------------- -- Area: Apollyon SE -- NPC: Metalloid_Amoeba ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -------------------...
gpl-3.0
geanux/darkstar
scripts/globals/spells/dokumori_ni.lua
18
1202
----------------------------------------- -- Spell: Dokumori: Ni ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
kaen/Zero-K
units/chicken_sporeshooter.lua
4
4920
unitDef = { unitname = [[chicken_sporeshooter]], name = [[Sporeshooter]], description = [[All-Terrain Spores (AA/Skirm)]], acceleration = 0.36, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic ...
gpl-2.0
geanux/darkstar
scripts/zones/Lower_Jeuno/npcs/Harnek.lua
17
2370
----------------------------------- -- Area: Lower Jeuno -- NPC: Harnek -- Starts and Finishes Quest: The Tenshodo Showdown (finish) -- @zone 245 -- @pos 44 0 -19 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --...
gpl-3.0
geanux/darkstar
scripts/globals/items/fum-long_salmon_sub.lua
36
1452
----------------------------------------- -- ID: 4266 -- Item: Fum-Long Salmon Sub -- Food Effect: 60Min, All Races ----------------------------------------- -- Agility 1 -- Vitality 1 -- Dexterity 2 -- Intelligence 2 -- Mind -2 -- Ranged Accuracy 3 ----------------------------------------- require("scripts/globals/st...
gpl-3.0
geanux/darkstar
scripts/globals/spells/bluemagic/frypan.lua
28
1783
----------------------------------------- -- Spell: Frypan -- Delivers an area attack. Additional effect: "Stun." Accuracy varies with TP -- Spell cost: 65 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 3 -- Stat Bonus: DEX+2 -- Level: 63 -- Casting Time: 1 seconds -- Recas...
gpl-3.0
geanux/darkstar
scripts/globals/spells/victory_march.lua
18
1419
----------------------------------------- -- Spell: Victory March -- Gives party members Haste ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spe...
gpl-3.0