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
Frenzie/koreader
plugins/coverbrowser.koplugin/mosaicmenu.lua
4
40095
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local BottomContainer = require("ui/widget/container/bottomcontainer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local DocSettings = require("docsettings") local Font = require("ui/fo...
agpl-3.0
openwrt/luci
modules/luci-lua-runtime/luasrc/template.lua
2
4939
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local config = require "luci.config" local tparser = require "luci.template.parser" local tostring, pairs, loadstring = tostring, pairs, loadstring local setmetatable, loadfile ...
apache-2.0
Wuzzy2/mobs_mc
3_shared.lua
1
2300
local pr = PseudoRandom(os.time()*5) local offsets = {} for x=-2, 2 do for z=-2, 2 do table.insert(offsets, {x=x, y=0, z=z}) end end --[[ Periodically check and teleport mob to owner if not sitting (order ~= "sit") and the owner is too far away. To be used with do_custom. Note: Optimized for mobs smaller than 1×1...
gpl-3.0
kaeza/love-simpleui
Check.lua
1
1641
--- -- Toggleable checkbox button. -- -- Check buttons are toggled by clicking. -- -- **Extends:** `kloveui.Button` -- -- **Direct subclasses:** -- -- * `kloveui.Option` -- -- @classmod kloveui.Check local graphics = love.graphics local Widget = require "kloveui.Widget" local Button = require "kloveui.Button" local...
mit
MalRD/darkstar
scripts/zones/Bastok_Markets/npcs/Ulrike.lua
6
1272
----------------------------------- -- Area: Bastok Markets -- NPC: Ulrike -- Type: Goldsmithing Synthesis Image Support -- !pos -218.399 -7.824 -56.203 235 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Bastok_Markets/IDs")...
gpl-3.0
Lsty/ygopro-scripts
c15629801.lua
3
2560
--武闘円舞 function c15629801.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c15629801.target) e1:SetOperation(c15629801.activate) c:RegisterEffec...
gpl-2.0
MalRD/darkstar
scripts/globals/effects/saber_dance.lua
12
1462
----------------------------------- -- -- dsp.effect.SABER_DANCE -- ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------------- function onEffectGain(target,effect) local saberDanceMerits = target:getMerit(dsp.merit.SABER_DANCE) ...
gpl-3.0
Lsty/ygopro-scripts
c72930878.lua
9
1513
--ブラック・ソニック function c72930878.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c72930878.condition) e1:SetTarget(c72930878.target) e1:SetOperation(c72930878.activate) c:RegisterEffect...
gpl-2.0
bobmajdakjr/wow-bobs-cast-chatter
BobCastChatter/BCC-Func-Util.lua
1
5618
--[[ function BCC_Print(...) function BCC_CPrint(...) function BCC_BuildConfig(void) function BCC_SpellMessage_OnSpellCast(spell) function BCC_SpellMessage_Add(spell, chance, type, text) function BCC_SpellMessage_Delete(spell, offset) function BCC_SpellMessage_ParseText(msgobj) function BCC_SpellMessage_Select(void) ...
bsd-2-clause
MalRD/darkstar
scripts/globals/items/prized_seafood_stewpot.lua
11
1793
----------------------------------------- -- ID: 5240 -- Item: Prized Seafood Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 100 -- MP +20 -- Dexterity 2 -- Vitality 2 -- Agility 2 -- Mind 2 -- HP Recovered while healing 9 -- MP Recovered while he...
gpl-3.0
ashkanpj/yagoopfire
bot/utils.lua
239
13499
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")() http.TIMEOUT = 10 funct...
gpl-2.0
asterite/mal
lua/reader.lua
36
3921
local rex = require('rex_pcre') local string = require('string') local table = require('table') local types = require('types') local throw, Nil, Symbol, List = types.throw, types.Nil, types.Symbol, types.List local M = {} Reader = {} function Reader:new(tokens) local newObj = {tok...
mpl-2.0
tarulas/luadch
scripts/cmd_errors.lua
1
4372
--[[ cmd_errors.lua by blastbeat - this script adds a command "errors" to get hub errors, it also feeds errors to hubowners - usage: [+!#]errors v0.11: by pulsar - added "onError" listener to feed errors to hubowners - added maxlines limit to send ...
gpl-3.0
Lsty/ygopro-scripts
c52628687.lua
5
2963
--ネクロの魔導書 function c52628687.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,52628687+EFFECT_COUNT_CODE_OATH) e1:SetCost(c52628687.cost) ...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/drill_branch.lua
11
1065
--------------------------------------------- -- Drill Branch -- -- Description: Drills a single target with a branch. Additional effect: Blind -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Melee -- Notes: --------------------------------------------- require("scripts/globals/settings") requir...
gpl-3.0
Lsty/ygopro-scripts
c4253484.lua
3
1834
--剣闘獣ホプロムス function c4253484.initial_effect(c) --def local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_BASE_DEFENCE) e1:SetCondition(c4253484.defcon) e1:SetValue(2400) c:RegisterEffect(e1) --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(425348...
gpl-2.0
MalRD/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua
9
1258
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Hume Bones -- Involved in Quests: Blue Ribbon Blues -- !pos 299 0.1 19 195 ----------------------------------- local ID = require("scripts/zones/The_Eldieme_Necropolis/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests")...
gpl-3.0
Lsty/ygopro-scripts
c79718768.lua
7
1571
--急転直下 function c79718768.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --destroy local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e2:SetCode(EVENT_BECOME_TARGET) e2:SetR...
gpl-2.0
Lsty/ygopro-scripts
c46384403.lua
6
1309
--素早いマンタ function c46384403.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(46384403,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetConditi...
gpl-2.0
Lsty/ygopro-scripts
c74416224.lua
5
1724
--ブラック・レイ・ランサー function c74416224.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER),3,2) c:EnableReviveLimit() --disable local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE) e1:SetDescription(aux.Stringid(74416224,0)) e1:SetType(EFFECT_TYPE...
gpl-2.0
Lsty/ygopro-scripts
c1965724.lua
5
1496
--怒れるもけもけ function c1965724.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --reg local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_DE...
gpl-2.0
Lsty/ygopro-scripts
c40160226.lua
3
1983
--機海竜プレシオン function c40160226.initial_effect(c) --summon with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40160226,0)) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c40160226.ntcon) c:RegisterEffect(e1) --destr...
gpl-2.0
MalRD/darkstar
scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua
9
1943
----------------------------------- -- Area: Attohwa Chasm -- NPC: Jakaka -- Type: ENM -- !pos -144.711 6.246 -250.309 7 ----------------------------------- local ID = require("scripts/zones/Attohwa_Chasm/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); ---------------------------------...
gpl-3.0
sagarwaghmare69/nn
MixtureTable.lua
15
5720
local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module') function MixtureTable:__init(dim) parent.__init(self) self.dim = dim self.size = torch.LongStorage() self.batchSize = 0 self.size2 = torch.LongStorage() self.backwardSetup = false self.gradInput = {} end function MixtureTabl...
bsd-3-clause
RamiLego4Game/PlatformerWorld
LevelLoaders/LevelLoader-V1.lua
1
4651
--Author : Ramilego4Game - This File Is Part Of Platformer World-- --Type : Class/API-- LevelLoader = class:new() function LevelLoader:init(world) self.world = world self.map = {} end --This function will draw the map that it's loaded with LevelLoader:loadMap(map) function LevelLoader:drawMap() for x,yC in pair...
gpl-2.0
MalRD/darkstar
scripts/zones/Port_Windurst/npcs/Kumama.lua
12
1107
----------------------------------- -- Area: Port Windurst -- NPC: Kumama -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Port_Windurst/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { ...
gpl-3.0
MalRD/darkstar
scripts/zones/Bastok_Markets/npcs/Shamarhaan.lua
9
1250
----------------------------------- -- Area: Bastok Markets -- NPC: Shamarhaan -- Type: Quest Starter -- Involved in quest: No Strings Attached -- !pos -285.382 -13.021 -84.743 235 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); ------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c15052462.lua
3
1636
--紫水晶 function c15052462.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c15052462.target) e1:SetOperation(c15052462.operation) c:RegisterEffect(e1) --...
gpl-2.0
ThingMesh/openwrt-luci
libs/core/luasrc/model/network.lua
47
33988
--[[ LuCI - Network model Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
apache-2.0
MalRD/darkstar
scripts/zones/FeiYin/npcs/qm1.lua
11
1027
----------------------------------- -- Area: FeiYin -- NPC: qm1 (???) -- Involved In Quest: Pieuje's Decision -- !pos -55 -16 69 204 ----------------------------------- local ID = require("scripts/zones/FeiYin/IDs"); require("scripts/globals/npc_util"); require("scripts/globals/quests"); ------------------------------...
gpl-3.0
WarGamingKO/WarGamingKO
Build/GameServer/Quests/16073_karushero.lua
1
2184
local UserClass; local QuestNum; local Ret = 0; local NPC = 16073; if EVENT == 168 then Ret = 1; end if EVENT == 165 then SelectMsg(UID, 3, -1, 4480, NPC, 4201, 4201, 4202, 4202, 4203, 4203, 4204, 4204, 4205, 4205, 4206, 4206, 4207, 4207, 4208, 4208, 4209, 4209, 4210, 4210, 4211, 4211); end if EV...
gpl-2.0
Lsty/ygopro-scripts
c57594700.lua
3
1737
--幻奏の音姫マイスタリン・シューベルト function c57594700.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x9b),2,true) --remove local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(E...
gpl-2.0
Vexatos/PeripheralsPlusPlus
lua/antenna/helmet.lua
4
3926
--[[ Created by Fxz_y ]] --Play around with the settings as much as you want --Set any unused variables to nil p = peripheral.find("antenna") --Please make sure that an antenna is connected --Global variables that you need to change player = "nil" --The player that is wearing the helmet printResolution = false --true...
gpl-2.0
MalRD/darkstar
scripts/globals/items/plate_of_crab_sushi_+1.lua
11
1174
----------------------------------------- -- ID: 5722 -- Item: plate_of_crab_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 2 -- Defense 15 -- Accuracy % 14 (cap 68) -- Resist Sleep +2 ----------------------------------------- require("scripts/globals/status") require("s...
gpl-3.0
MalRD/darkstar
scripts/zones/Temenos/Zone.lua
12
4494
----------------------------------- -- -- Zone: Temenos (37) -- ----------------------------------- local ID = require("scripts/zones/Temenos/IDs"); require("scripts/globals/conquest"); require("scripts/globals/settings"); require("scripts/globals/limbus"); ----------------------------------- -------------------------...
gpl-3.0
Lsty/ygopro-scripts
c85310252.lua
5
2159
--ドドドドライバー function c85310252.initial_effect(c) --lv change local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c85310252.spcon) e1:SetOperation(c85310252.spop) c:RegisterEffect(e1) l...
gpl-2.0
Lsty/ygopro-scripts
c52228131.lua
3
1310
--パリィ function c52228131.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c52228131.condition) e1:SetTarget(c52228131.target) e1:SetOperation(c52228131.activat...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/kaustra.lua
12
1382
-------------------------------------- -- Spell: Kaustra -- Consumes 20% of your maximum MP. Relentless -- dark damage slowly devours an enemy. -------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c19041767.lua
3
1897
--デュアル・サモナー function c19041767.initial_effect(c) --battle indes local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT) e1:SetCountLimit(1) e1:SetValue(c19041767.valcon) c:RegisterEffect(e1) --i...
gpl-2.0
Lsty/ygopro-scripts
c64990807.lua
3
2361
--氷結界の三方陣 function c64990807.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCost(c64990807.cost) e1:SetTarget(c64990807.target) e1:S...
gpl-2.0
Lsty/ygopro-scripts
c11868731.lua
5
1893
--マドルチェ・マジョレーヌ function c11868731.initial_effect(c) --to deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11868731,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c11868731.retcon) e1:SetTarget(c11868731.rettg...
gpl-2.0
Lsty/ygopro-scripts
c43014054.lua
5
1270
--バイス・バーサーカー function c43014054.initial_effect(c) --damage & atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(43014054,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BE_MATERIAL) e1:SetCondition(c43014054.damcon) e1:SetTarget(c43014054...
gpl-2.0
Lsty/ygopro-scripts
c38814750.lua
3
3443
--PSYフレームギア・γ function c38814750.initial_effect(c) c:EnableUnsummonable() --splimit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(c38814750.splimit) c:RegisterEffect(e1) --spsumm...
gpl-2.0
shahabsaf1/My-system
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/lib/syscall/openbsd/ffi.lua
6
6913
-- This are the types for OpenBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscal...
mit
Lsty/ygopro-scripts
c93900406.lua
3
1845
--マタンゴ function c93900406.initial_effect(c) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(93900406,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCategory(CATEGORY_DAMAGE) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCondit...
gpl-2.0
MalRD/darkstar
scripts/zones/Meriphataud_Mountains_[S]/npcs/Indescript_Markings.lua
9
1037
---------------------------------- -- Area: Meriphataud_Mountains_[S] -- NPC: Indescript Markings -- Type: Quest -- !pos -389 -9 92 97 ----------------------------------- local ID = require("scripts/zones/Meriphataud_Mountains_[S]/IDs") require("scripts/globals/keyitems") ----------------------------------- function ...
gpl-3.0
MalRD/darkstar
scripts/zones/Balgas_Dais/bcnms/shattering_stars.lua
9
1740
----------------------------------- -- Area: Balga's Dais -- Name: Shattering stars - Maat Fight -- !pos 299 -123 345 146 ----------------------------------- local ID = require("scripts/zones/Balgas_Dais/IDs") require("scripts/globals/battlefield") require("scripts/globals/quests") require("scripts/globals/titles") ---...
gpl-3.0
MalRD/darkstar
scripts/globals/items/carbuncles_pole.lua
12
1361
----------------------------------------- -- ID: 18581 -- Item: Carbuncle's Pole -- Item Effect: Restores 160-220 HP ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") function onAdditionalEffect(player,target,damage) local ch...
gpl-3.0
MalRD/darkstar
scripts/globals/items/dish_of_spaghetti_vongole_rosso.lua
11
1379
----------------------------------------- -- ID: 5189 -- Item: dish_of_spaghetti_vongole_rosso -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 20 -- Health Cap 90 -- Vitality 2 -- Mind -1 -- Defense % 25 -- Defense Cap 30 -- Store TP 6 ----------------------------------------- req...
gpl-3.0
starius/kodomoquiz
quiz/helpers.lua
1
8864
local h = {} h.f = function(...) local t = string.format(...) t = t:gsub(' *>>>', '>>>') return t end h._ = function(text, req) if req then return req:_(text) else return text end end h.task = function(req) return h._([[What does Python print if you enter the f...
mit
tboox/xmake
xmake/modules/detect/tools/find_clangxx.lua
1
1680
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
jie-meng/Lunar
deploy_on_mac.lua
2
1705
print("Copy plugins/assets/apis/tools/scripts/config ..") os.execute("cp -r publish/. Lunar.app/Contents/MacOS") if not util.isPathDir("deploylibs") then util.mkDir("deploylibs") end if #util.findFilesInDir("deploylibs", "dylib") == 0 then print("Please input libqscintilla2_qt5.13.dylib dir:") local libdi...
gpl-2.0
tboox/xmake
xmake/rules/qt/load.lua
1
7366
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
ycsoft/lua-rapidjson
spec/json_encode_spec.lua
1
5126
--luacheck: ignore describe it describe('rapidjson.encode()', function() local rapidjson = require('rapidjson') local function Int(value) return _VERSION < 'Lua 5.3' and value..'.0' or value end it('should encode simple values', function() assert.are.equal('"very funny"', rapidjson.encode('very funny'))...
mit
aure/Soundpipe
modules/data/butbp.lua
4
1125
sptbl["butbp"] = { files = { module = "butbp.c", header = "butbp.h", example = "ex_butbp.c", }, func = { create = "sp_butbp_create", destroy = "sp_butbp_destroy", init = "sp_butbp_init", compute = "sp_butbp_compute", }, params = { op...
mit
leecrest/luvit
examples/http-static-file-server.lua
8
6482
local http = require('http') local url = require('url') local fs = require('fs') local Response = require('http').ServerResponse local mimes = { ["3gp"] = "video/3gpp", a = "application/octet-stream", ai = "application/postscript", aif = "audio/x-aiff", aiff = "audio/x-aiff", asc = "application/pgp-signatu...
apache-2.0
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/rdp.lua
2
10751
--- -- A minimal RDP (Remote Desktop Protocol) library. Currently has functionality to determine encryption -- and cipher support. -- -- -- @author "Patrik Karlsson <patrik@cqure.net>" -- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html -- local bin = require("bin") local nmap = require("nmap") local ...
gpl-3.0
OompahLoompah/ProjectHamsterball
camera.lua
2
1159
camera = {} camera.__index = camera local camerax = 0 local cameray = 0 local target = nil xCenter = love.graphics.getWidth()/2 yCenter = love.graphics.getHeight()/2 local locked = false function camera.new() local self = setmetatable({}, camera) return self end function camera:lockCamera(targetObject) self.targ...
mit
Telewildv4/Telewildv4bot
plugins/translate.lua
58
1663
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
leftbrainstrain/cherts-esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_modules/lm92/lm92.lua
52
2140
-- ****************************************************** -- LM92 module for ESP8266 with nodeMCU -- -- Written by Levente Tamas <levente.tamas@navicron.com> -- -- GNU LGPL, see https://www.gnu.org/copyleft/lesser.html -- ****************************************************** -- Module Bits local moduleName = ... loca...
gpl-3.0
Spring-SpringBoard/SpringBoard-Core
LuaRules/Gadgets/sb_s11n_gadget_load.lua
1
1516
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -- Copy this file to the luarules/gadgets folder -- Set this line to the s11n installation folder S11N_FOLDER = "libs_sb/s11n" LCS_FOLDER = "libs_sb/lcs" -- Do NOT...
mit
weirdouncle/QSanguosha-For-Hegemony
lua/lib/middleclass.lua
63
6117
local middleclass = { _VERSION = 'middleclass v3.0.1', _DESCRIPTION = 'Object Orientation for Lua', _URL = 'https://github.com/kikito/middleclass', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining...
gpl-3.0
codergreen/ValyriaTear
img/sprites/map/npcs/story/carson_walk.lua
4
1988
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; local ANIM_WEST = vt_map.MapMode.ANI...
gpl-2.0
NerdWalletOSS/Q
UTILS/lua/fileops.lua
1
1024
local assertx = require 'Q/UTILS/lua/assertx' local fileops = {} local exists = function(name) local str = string.format("ls %s 2>/dev/null 1>/dev/null", name) local v = os.execute(str) return v == 0 end --- Check if a directory exists in this path fileops.isdir = function(path) -- "/" works on both Unix and...
mit
NerdWalletOSS/Q
TESTS/test_log_reg_1.lua
1
1032
-- FUNCTIONAL local Q = require 'Q' require 'Q/UTILS/lua/strict' local tests = {} tests.t1 = function () for iter = 1, 100 do local x_len = 65537 local y = Q.rand({ lb = 0, ub = 1, seed = 1234, qtype = "I1", len = x_len } ) local c1 = Q.rand({ lb = -1048576, ub = 1048576, seed = 1234, qtype = "F8", len = x...
mit
tboox/xmake
xmake/rules/wdk/env/load.lua
1
5506
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
toophy/gopher-lua
_lua5.1-tests/attrib.lua
10
8357
do --[ print "testing require" assert(require"string" == string) assert(require"math" == math) assert(require"table" == table) assert(require"io" == io) assert(require"os" == os) assert(require"debug" == debug) assert(require"coroutine" == coroutine) assert(type(package.path) == "string") assert(type(package.cpath) ...
mit
nilsbrummond/ESO-MailLooter
lib/LAM/controls/editbox.lua
2
6131
--[[editboxData = { type = "editbox", name = "My Editbox", -- or string id or function returning a string getFunc = function() return db.text end, setFunc = function(text) db.text = text doStuff() end, tooltip = "Editbox's tooltip text.", -- or string id or function returning a string (optional) ...
mit
keyidadi/luci
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
55
8246
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-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 htt...
apache-2.0
memorysafe/cartographer_ros
cartographer_ros/configuration_files/taurob_tracker.lua
1
2028
-- Copyright 2016 The Cartographer Authors -- -- 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...
apache-2.0
LibreLabUCM/telegram-bot
plugins/banhammer.lua
22
5639
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
NerdWalletOSS/Q
UTILS/lua/utils.lua
1
5165
local g_err = require 'Q/UTILS/lua/error_code' local base_qtype = require 'Q/UTILS/lua/is_base_qtype' local mk_col = require 'Q/OPERATORS/MK_COL/lua/mk_col' local c_to_txt = require 'Q/UTILS/lua/C_to_txt' local qconsts = require 'Q/UTILS/lua/q_consts' local fns = {} fns.clone = function(t) -- deep-copy a table if...
mit
tboox/xmake
xmake/templates/c++/static_library_tbox/project/xmake.lua
4
1478
-- version set_xmakever("2.2.2") -- set warning all as error set_warnings("all", "error") -- set language: c99, c++11 set_languages("c99", "cxx11") -- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-...
apache-2.0
Oliveryo/Interface
AddOns/HealComm/libs/AceEvent-2.0/AceEvent-2.0.lua
3
28825
--[[ Name: AceEvent-2.0 Revision: $Rev: 17638 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceEvent-2.0 SVN: http://svn.wowace.com/root/...
gpl-3.0
aure/Soundpipe
modules/data/vdelay.lua
1
1650
sptbl["vdelay"] = { files = { module = "vdelay.c", header = "vdelay.h", example = "ex_vdelay.c", }, func = { create = "sp_vdelay_create", destroy = "sp_vdelay_destroy", init = "sp_vdelay_init", compute = "sp_vdelay_compute", other = { ...
mit
dejayc/BaseLua
Packages/BaseConfig.lua
1
4731
--[[ BaseLua https://github.com/dejayc/BaseLua Copyright 2012 Dejay Clayton All use of this file must comply with the Apache License, Version 2.0, under which this file is licensed: http://www.apache.org/licenses/LICENSE-2.0 --]] --[[ ----------------------------------------------------------...
apache-2.0
willmoffat/lua-fmt
test/lua-5.3.4-tests/bitwise.lua
12
9209
-- $Id: bitwise.lua,v 1.26 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print("testing bitwise operations") local numbits = string.packsize('j') * 8 assert(~0 == -1) assert((1 << (numbits - 1)) == math.mininteger) -- basic tests for bitwise operators; -- use variables to avoid constant...
mit
tboox/xmake
xmake/plugins/macro/xmake.lua
1
4047
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
Oliveryo/Interface
AddOns/BigWigs/Libs/Compost-2.0/Compost-2.0.lua
2
11041
--[[ Name: Compost-2.0 Revision: $Rev: 17406 $ Author: Tekkub Stoutwrithe (tekkub@gmail.com) Website: http://wiki.wowace.com/index.php/CompostLib Documentation: http://wiki.wowace.com/index.php/Compost-2.0_API_Documentation SVN: svn://svn.wowace.com/root/trunk/CompostLib/Compost-2.0 Description: Recycle tables to redu...
gpl-3.0
Flexibity/luci
applications/luci-transmission/luasrc/model/cbi/transmission.lua
7
13255
--[[ LuCI - Lua Configuration Interface - Transmission support Copyright 2012 Gabor Varga <vargagab@gmail.com> 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/LICEN...
apache-2.0
Oliveryo/Interface
AddOns/Cartographer/Modules/Coordinates.lua
1
3779
local revision = tonumber(string.sub("$Revision: 18625 $", 12, -3)) if revision > Cartographer.revision then Cartographer.version = "r" .. revision Cartographer.revision = revision Cartographer.date = string.sub("$Date: 2006-12-02 16:13:35 +0300 (Сб, 02 дек 2006) $", 8, 17) end local L = AceLibrary("AceLocale-2.2")...
gpl-3.0
disslove3/MAX4-BOT
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
AliKhodadad/Dark-Boys
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
NerdWalletOSS/Q
RUNTIME/test/test_vec_writable.lua
1
1576
local plpath = require 'pl.path' local Vector = require 'libvec' ; local Scalar = require 'libsclr' ; local cmem = require 'libcmem' ; local qconsts = require 'Q/UTILS/lua/q_consts' local qc = require 'Q/UTILS/lua/q_core' local get_ptr = require 'Q/UTILS/lua/get_ptr' local gen_bin = require 'Q/RUNTIME/tes...
mit
g0t-ya/XiaoyuBox
luci/model/cbi/pppoeup.lua
1
6565
require("luci.tools.webadmin") m = Map("pppoeup", translate("pppoeup","pppoeup"), translate("PPPOE Concurrent dial-up,please make virtaul wan use macvlan.Special thanks to Li Zhihong of two automated scripts of Change_Metric and mwan3_config.")) s = m:section(NamedSection,"settings" ,"pppoeup", translate("config","co...
lgpl-3.0
rdelval/likwid
src/applications/likwid-memsweeper.lua
10
2687
#!<PREFIX>/bin/likwid-lua --[[ * ======================================================================================= * * Filename: likwid-memsweeper.lua * * Description: An application to clean up NUMA memory domains. * * Version: <VERSION> * Released: <DATE> * * Author: Th...
gpl-3.0
EvilHero90/forgottenserver
data/lib/core/creature.lua
6
4102
function Creature.getClosestFreePosition(self, position, maxRadius, mustBeReachable) maxRadius = maxRadius or 1 -- backward compatability (extended) if maxRadius then maxRadius = 2 end local checkPosition = Position(position) for radius = 0, maxRadius do checkPosition.x = checkPosition.x - math.min(1, radiu...
gpl-2.0
xkfz007/vlc
share/lua/playlist/liveleak.lua
2
1886
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: Ludovic Fauvet <etix@videolan.org> 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 optio...
lgpl-2.1
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_EDTTotal.lua
2
13664
DPSMate.Modules.DetailsEDTTotal = {} local g, g2 = nil, nil local curKey = 1 local db, cbt = {}, 0 local buttons = {} local ColorTable={} local _G = getglobal local tinsert = table.insert local tremove = tremove local strformat = string.format local toggle = false local totSumTable = {} local totMax, totTime = 0, 0 f...
gpl-3.0
tboox/xmake
tests/ui/mconfdialog.lua
1
3950
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
tboox/xmake
xmake/core/ui/program.lua
1
12235
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
g0t-ya/XiaoyuBox
luci/model/cbi/admin_network/routes.lua
86
2540
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
lgpl-3.0
coopmaster/GalacticTradeMod-Factorio
GalacticTrade_/prototypes/config.lua
1
7523
function load_config(player_index) global.gt_extra_item_values = global.gt_extra_item_values or {} global.gt_extra_blacklist = global.gt_extra_blacklist or {} global.gt_items_per_row = global.gt_items_per_row or {} global.gt_items_per_collum = global.gt_items_per_collum or {} global.gt_enable_trade_alert = glob...
mit
tboox/xmake
xmake/core/ui/rect.lua
1
4338
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apac...
apache-2.0
keyidadi/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
80
3431
--[[ Luci configuration model for statistics - collectd rrdtool plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
apache-2.0
celarco/ardupilot
libraries/AP_Scripting/applets/SmartAudio.lua
24
3510
-------------------------------------------------- -------------------------------------------------- --------- VTX LUA for SMARTAUDIO 2.0 ------------- ------------based on work by---------------------- ---------Craig Fitches 07/07/2020 ---------------- -------------Mods by H. Wurzburg ----------------- --------...
gpl-3.0
great90/skynet
lualib/skynet/db/redis.lua
11
6208
local skynet = require "skynet" local socket = require "skynet.socket" local socketchannel = require "skynet.socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis respon...
mit
njrat/BREKEBOT
plugins/kickbot.lua
2
1372
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
Oliveryo/Interface
AddOns/aux-addon/core/scan.lua
1
5836
module 'aux.core.scan' include 'T' include 'aux' local info = require 'aux.util.info' local history = require 'aux.core.history' local PAGE_SIZE = 50 do local scan_states = T function M.start(params) local old_state = scan_states[params.type] if old_state then abort(old_state.id) end do (params.on_sca...
gpl-3.0