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 |
|---|---|---|---|---|---|
SecondReality/Mudlet-Suttonian | src/mudlet-lua/lua/DebugTools.lua | 7 | 3785 | ----------------------------------------------------------------------------------
--- Mudlet Debug Tools
----------------------------------------------------------------------------------
--- Function colorizes all matched regex capture groups on the screen.
--- This is very handy if you make complex regex and want... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/syscall/linux/util.lua | 2 | 10031 | -- misc utils
-- aim is to move a lot of stuff that is not strictly syscalls out of main code to modularise better
-- most code here is man(1) or man(3) or misc helpers for common tasks.
-- TODO rework so that items can be methods on fd again, for eventfd, timerfd, signalfd and tty
local require, error, assert, tonu... | mit |
Lsty/ygopro-scripts | c99458769.lua | 3 | 2432 | --暗黒界の魔神 レイン
function c99458769.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(99458769,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c99458769.spcon)
e1:SetTarget(c99458769... | gpl-2.0 |
shahabsaf1/My-system | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/pets/arcuballista.lua | 12 | 1169 | ---------------------------------------------------
-- Arcuballista
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
Lsty/ygopro-scripts | c11159464.lua | 5 | 1350 | --ワーム・ホープ
function c11159464.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FLIP+EFFECT_TYPE_SINGLE)
e1:SetCategory(CATEGORY_DRAW)
e1:SetTarget(c11159464.drtg)
e1:SetOperation(c11159464.drop)
c:RegisterEffect(e1)
--discard
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.... | gpl-2.0 |
Lsty/ygopro-scripts | c41722932.lua | 9 | 1352 | --ダーク・ジェノサイド・カッター
function c41722932.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c41722932.condition)
e1:SetTarget(c41722932.target)
e1:SetOpera... | gpl-2.0 |
openwrt/luci | applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua | 2 | 8667 | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
local uci = require("luci.model.uci").cursor()
local wa = require("luci.tools.webadmin")
local fs = require("nixio.fs")
local ipc = require("luci.ip")
local def_rate_dl = uci:get("nft-qos", "default", "static_r... | apache-2.0 |
Lsty/ygopro-scripts | c86325573.lua | 5 | 1970 | --BK ビッグバンテージ
function c86325573.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(c86325573.valcon)
c:RegisterEffect(e1)
-... | gpl-2.0 |
Lsty/ygopro-scripts | c69512157.lua | 3 | 1105 | --竜魔王ベクターP
function c69512157.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Carpenters_Landing/mobs/Cryptonberry_Assassin.lua | 9 | 1485 | -----------------------------------
-- Area: Carpenters' Landing
-- NM: Cryptonberry Assassin
-- !pos 120.615 -5.457 -390.133 2
-----------------------------------
local ID = require("scripts/zones/Carpenters_Landing/IDs")
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/missions")
----------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Port_Windurst/Zone.lua | 9 | 1803 | -----------------------------------
--
-- Zone: Port_Windurst (240)
--
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs");
require("scripts/globals/conquest");
require("scripts/globals/settings");
require("scripts/globals/zone");
-----------------------------------
function onIni... | gpl-3.0 |
maxrio/luci981213 | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i18n")
re... | apache-2.0 |
Lsty/ygopro-scripts | c65749035.lua | 3 | 1824 | --氷結界の龍 グングニール
function c65749035.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsAttribute,ATTRIBUTE_WATER),1)
c:EnableReviveLimit()
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65749035,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE... | gpl-2.0 |
MalRD/darkstar | scripts/globals/spells/doton_san.lua | 12 | 1346 | -----------------------------------------
-- Spell: Doton: San
-- Deals earth damage to an enemy and lowers its resistance against wind.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
function onMagicCastingCheck(caster,target,spell)
return 0
end
func... | gpl-3.0 |
Lsty/ygopro-scripts | c33550694.lua | 3 | 3418 | --フュージョン・ゲート
function c33550694.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--fusion
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(33550694,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetTyp... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/water_maneuver.lua | 9 | 1646 | -----------------------------------
-- Ability: Water Maneuver
-- Enhances the effect of water attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status")
re... | gpl-3.0 |
Lsty/ygopro-scripts | c10028593.lua | 5 | 1028 | --輪廻天狗
function c10028593.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(10028593,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetCondition(c10028593.spcon)
e1:SetTarget(c10028593.sp... | gpl-2.0 |
Lsty/ygopro-scripts | c48716139.lua | 7 | 2278 | --草薙剣
function c48716139.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(c48716139.target)
e1:SetOperation(c48716139.operation)
c:RegisterEffect(e1)
--... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/crescent_fish.lua | 11 | 1049 | -----------------------------------------
-- ID: 4473
-- Item: crescent_fish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
----------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c77506119.lua | 5 | 1800 | --サンダー・ユニコーン
function c77506119.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_BEAST),aux.NonTuner(nil),1)
c:EnableReviveLimit()
--atkdown
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77506119,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetTy... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/crystal_weapon.lua | 11 | 1067 | ---------------------------------------------
-- Crystal Weapon
--
-- Description: Invokes the power of a crystal to deal magical damage of a random element to a single target.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown
-- Notes: Can be Fire, Earth, Wind, or Water element. Funct... | gpl-3.0 |
Lsty/ygopro-scripts | c49032236.lua | 3 | 1560 | --No.81 超弩級砲塔列車スペリオル・ドーラ
function c49032236.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,10,2)
c:EnableReviveLimit()
--immune
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49032236,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHA... | gpl-2.0 |
TheSAguy/Natural-Evolution | control.lua | 1 | 43920 | --- v.4.4.1
require "defines"
require "util"
NEConfig = {}
require "config"
---- Evolution_MOD
local update_com_count = 80
local agro_area_rad = 40
local call_back_area_rad = agro_area_rad + 15
local max_unit_count = 20
----
--- Artifact Collector
local loaded
local radius = 25
local chestInventoryIndex = defines.i... | mit |
MalRD/darkstar | scripts/zones/Southern_San_dOria/npcs/Amutiyaal.lua | 9 | 4201 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Amutiyaal
-- Warp NPC (Aht Urhgan)
-- !pos 116 0.1 84 230
-------------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/teleports");
require("scrip... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/freeze_ii.lua | 6 | 1267 | -----------------------------------------
-- Spell: Freeze II
-- Deals ice damage to an enemy and lowers its resistance against fire.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
Lsty/ygopro-scripts | c31476755.lua | 5 | 1455 | --砂塵の結界
function c31476755.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c31476755.target)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:... | gpl-2.0 |
hfjgjfg/hack54 | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Full_Moon_Fountain/mobs/Ajido-Marujido.lua | 8 | 1989 | -----------------------------------
-- Area: Full Moon Fountain
-- Mob: Ajido-Marujido
-- Ally during Windurst Mission 9-2
-----------------------------------
local ID = require("scripts/zones/Full_Moon_Fountain/IDs")
require("scripts/globals/status")
require("scripts/globals/magic")
----------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c54912977.lua | 3 | 2205 | --マジック・ランプ
function c54912977.initial_effect(c)
--change target
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(54912977,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_BATTLE_CONFIRM)
e1:SetCondition(c54912977.condition)
e1:SetTar... | gpl-2.0 |
Lsty/ygopro-scripts | c72302403.lua | 3 | 1998 | --光の護封剣
function c72302403.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c72302403.target)
e1:SetOperation(c72302403.activate)
c:RegisterEffect(e1)
--cannot attack
local e2=Effect.Create... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Xarcabard/Zone.lua | 2 | 2146 | -----------------------------------
--
-- Zone: Xarcabard (112)
--
-----------------------------------
local ID = require("scripts/zones/Xarcabard/IDs")
require("scripts/globals/icanheararainbow")
require("scripts/globals/conquest")
require("scripts/globals/keyitems")
require("scripts/globals/zone")
-------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c17201174.lua | 5 | 1427 | --ハンマー・シャーク
function c17201174.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(17201174,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c17201174.sptg)
e1:SetOperation(c17201174... | gpl-2.0 |
Lsty/ygopro-scripts | c2978414.lua | 3 | 3621 | --No.46 神影龍ドラッグルーオン
function c2978414.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),8,2)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(2978414,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TY... | gpl-2.0 |
Frenzie/koreader | plugins/coverbrowser.koplugin/main.lua | 4 | 35389 | local UIManager = require("ui/uimanager")
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local logger = require("logger")
local _ = require("gettext")
local BookInfoManager = require("bookinfomanager")
--[[
This plugin provides additional display modes to file browsers (File Manager
and... | agpl-3.0 |
WarGamingKO/WarGamingKO | Build/GameServer/Quests/24427_Melburic.lua | 1 | 46681 | -- [°æºñº´]¸á¹ö¸¯
-- ±×³É ´Ý±â 168
-- EVENT ´Â 100¹ø ÀÌ»ó ºÎÅÍ »ç¿ë
-- UID : ¼¹ö¿¡¼ Á¦°øÇÏ´Â À¯Àú¹øÈ£
-- EVENT : ¼¹ö¿¡¼ Á¦°øÇÏ´Â Äù½ºÆ® ¹øÈ£
-- STEP : ¼¹ö¿¡¼ Á¦°øÇÏ´Â Äù½ºÆ® ³»ºÎ ´Ü°è
-- À§ÀÇ ¼¼°¡Áö ÆÄ¶ó¸ÞŸ´Â ·ç¾Æ ½ÇÇà½Ã Ç×»ó Àü¿ªº¯¼ö·Î Á¦°ø?
-- Áö¿ªº¯¼ö ¼±¾ð...
local UserClass;
local QuestNum;
local Ret = 0... | gpl-2.0 |
maxrio/luci981213 | libs/luci-lib-nixio/docsrc/nixio.bit.lua | 171 | 2044 | --- Bitfield operators and mainpulation functions.
-- Can be used as a drop-in replacement for bitlib.
module "nixio.bit"
--- Bitwise OR several numbers.
-- @class function
-- @name bor
-- @param oper1 First Operand
-- @param oper2 Second Operand
-- @param ... More Operands
-- @return number
--- Invert given number.
... | apache-2.0 |
asterite/mal | lua/step9_try.lua | 40 | 5971 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local core = require('core')
local List, Vector, HashMap = types.List, typ... | mpl-2.0 |
Lsty/ygopro-scripts | c17857780.lua | 3 | 1848 | --EMチアモール
function c17857780.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDA... | gpl-2.0 |
ThingMesh/openwrt-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 80 | 2172 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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
h... | apache-2.0 |
Lsty/ygopro-scripts | c6417578.lua | 3 | 3131 | --神の写し身との接触
function c6417578.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:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCountLimit(1,6417578+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c6417578.target)
... | gpl-2.0 |
Lsty/ygopro-scripts | c6958551.lua | 7 | 1390 | --シャドー・トゥーン
function c6958551.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,6958551+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c6958551.condition)
... | gpl-2.0 |
Lsty/ygopro-scripts | c76263644.lua | 3 | 3115 | --Dragoon D-END
function c76263644.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,83965310,17132130,false,false)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCategory(CATEGORY_DAMAGE+CATEGORY_DESTROY)... | gpl-2.0 |
Lsty/ygopro-scripts | c50755.lua | 8 | 1610 | --マジシャンズ・サークル
function c50755.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c50755.condition)
e1:SetTarget(c50755.target)
e1:SetOperation(c50755.activate)
c:RegisterEffect(e... | gpl-2.0 |
Frenzie/koreader | frontend/ui/gesturerange.lua | 4 | 2026 | local time = require("ui/time")
local GestureRange = {
-- gesture matching type
ges = nil,
-- spatial range, limits the gesture emitting position
range = nil,
-- temporal range, limits the gesture emitting rate
rate = nil,
-- scale limits of this gesture
scale = nil,
}
function Gesture... | agpl-3.0 |
xylosper/mpv | player/lua/osc.lua | 1 | 61768 | local assdraw = require 'mp.assdraw'
local msg = require 'mp.msg'
local opt = require 'mp.options'
--
-- Parameters
--
-- default user option values
-- do not touch, change them in osc.conf
local user_opts = {
showwindowed = true, -- show OSC when windowed?
showfullscreen = true, -- show OSC when ... | gpl-2.0 |
Lsty/ygopro-scripts | c55948544.lua | 3 | 3544 | --ファラオの審判
function c55948544.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(55948544,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetCondition(c55948544.condition1)
e1:SetCost(c55948544.cost)
e1:SetOperat... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 68 | 1180 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.disk", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
{
title = "%H: Disk I/O operations on %pi",
vlab... | apache-2.0 |
MalRD/darkstar | scripts/commands/additem.lua | 12 | 1374 | ---------------------------------------------------------------------------------------------------
-- func: additem <itemId> <quantity> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4> <trial>
-- desc: Adds an item to the GMs inventory.
-----------------------------------------------------------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c25935625.lua | 3 | 4442 | --闇竜星-ジョクト
function c25935625.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(25935625,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:SetCountLimit(... | gpl-2.0 |
qaheri/AASv2 | plugins/TextSticker.lua | 7 | 2177 | local function run(msg, matches)
local text = URL.escape(matches[1])
local color = 'black'
if matches[2] == 'red' then
color = 'red'
elseif matches[2] == 'black' then
color = 'black'
elseif matches[2] == 'blue' then
color = 'blue'
elseif matche... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/lebkuchen_manse.lua | 11 | 1220 | -----------------------------------------
-- ID: 5617
-- Item: lebkuchen_manse
-- Food Effect: 240Min, All Races
-----------------------------------------
-- HP +10
-- MP +10% (cap 55)
-- INT +4
-- hHP +3
-- hMP +2
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg"... | gpl-3.0 |
Lsty/ygopro-scripts | c94381039.lua | 3 | 1848 | --ライトロード・エンジェル ケルビム
function c94381039.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(94381039,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:... | gpl-2.0 |
Frenzie/koreader | plugins/perceptionexpander.koplugin/main.lua | 4 | 8166 | local Widget = require("ui/widget/widget")
local LineWidget = require("ui/widget/linewidget")
local MultiInputDialog = require("ui/widget/multiinputdialog")
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local UIManager = require("ui/u... | agpl-3.0 |
shahabsaf1/My-system | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
sagarwaghmare69/nn | utils.lua | 13 | 6605 | nn.utils = {}
-- oops; someone forgot to add torch.Storage.type
-- TODO replace with torch.Storage.type when implemented
local function torch_Storage_type(self, type)
local current = torch.typename(self)
if not type then return current end
if type ~= current then
local new = torch.getmetatable(type).new... | bsd-3-clause |
Lsty/ygopro-scripts | c6148016.lua | 3 | 1513 | --ギアギアギア
function c6148016.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCountLimit(1,6148016+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c6148016.sptg)
... | gpl-2.0 |
chu11/flux-core | src/bindings/lua/Test/More.lua | 2 | 10166 | --- @diagnostic disable
--
-- lua-TestMore : <http://fperrad.github.com/lua-TestMore/>
--
local loadstring = loadstring or load
local pairs = pairs
local pcall = pcall
local require = require
local tostring = tostring
local type = type
local match = require 'string'.match
local unpack = require 'table'.unpack or unpac... | lgpl-3.0 |
Lsty/ygopro-scripts | c66835946.lua | 5 | 1272 | --奇跡のピラミッド
function c66835946.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atk up
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:... | gpl-2.0 |
Mike325/.vim | lua/filetypes/cmake.lua | 1 | 4440 | local M = {}
function M.setup()
local mkdir = require('utils.files').mkdir
local is_dir = require('utils.files').is_dir
local is_file = require('utils.files').is_file
local link = require('utils.files').link
local set_command = require('neovim.commands').set_command
set_command {
lhs ... | mit |
MalRD/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Ixghrah.lua | 9 | 1076 | -----------------------------------
-- Area: Grand Palace of HuXzoi
-- Mob: Ix'ghrah
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/missions");
-----------------------------------
function onMobSpawn(mob)
if (mob:getMod(dsp.mod.SLASHRES)) then mob:setMod(dsp.mod.SL... | gpl-3.0 |
ennuuos/Neath | map.lua | 1 | 4900 | map = {}
-- This code is complicated. Let's get started.
map.bitmasks = {}
--Calls generate and sets the width and heigh variables.
-- This function is basically so we can change the map size in game in later levels
function map.init(w, h, r)
map.generate(w, h, r)
map.width = w
map.height = h
end
--Generates the ma... | mit |
Lsty/ygopro-scripts | c57610714.lua | 3 | 1142 | --雲魔物-アイ・オブ・ザ・タイフーン
function c57610714.initial_effect(c)
--battle indestructable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1)
c:RegisterEffect(e1)
--selfdes
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(E... | gpl-2.0 |
CommandPost/CommandPost-App | extensions/fnutils/fnutils.lua | 6 | 20116 | --- === hs.fnutils ===
---
--- Functional programming utility functions
local fnutils = {}
local pairs,ipairs = pairs,ipairs
local floor = math.floor
--- hs.fnutils.imap(list, fn) -> list
--- Function
--- Execute a function across a list-like table in order, and collect the results
---
--- Parameters:
--- * list - ... | mit |
Lsty/ygopro-scripts | c7183277.lua | 3 | 1153 | --ライトロード・ドルイド オルクス
function c7183277.initial_effect(c)
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_IGNORE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c7183277.etarget)
e1:SetValue(aux.tgval)
c:Registe... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/filter_GenericFlowAPI.lua | 4 | 40559 | local mod = {}
local ffi = require "ffi"
local log = require "log"
local device = require "device"
local etherc = require "etherc"
local headerc = require "headerc"
local dev = device.__devicePrototype
ffi.cdef[[
typedef uint16_t rte_be16_t; /**< 16-bit big-endian value. */
typedef uint32_t rte_be32_t; /**< 32... | mit |
maxrio/luci981213 | applications/luci-app-aria2/luasrc/model/cbi/aria2.lua | 11 | 4554 | --[[
RA-MOD
]]--
local fs = require "nixio.fs"
local util = require "nixio.util"
local running=(luci.sys.call("pidof aria2c > /dev/null") == 0)
yaaw=" <input type=\"button\" value=\" " .. "yaaw" .. " \" onclick=\"window.open('http://binux.github.io/yaaw/demo')\"/>"
aria2_webui=" &nbs... | apache-2.0 |
takaaptech/nightmaretris | matrix.lua | 1 | 4578 | local inspect = require '3rdparty/inspect' -- Inspect library (for debug prints)
local _ = require '3rdparty/underscore' -- Underscore library
local const = require 'const' -- Global constants
local util = require 'util' -- General utilities
local loveutil = require 'loveutil' -- Utilities for the love2d framework
req... | gpl-3.0 |
kotwarrior/clanTools | Leaderboard/LinkedLeaderboard.lua | 1 | 2294 | ---CONFIGURATION---
local CTF_MODE = false --Will automatically become true if a flag is inserted
---VARIABLE DEC---
local Players = game:GetService('Players')
local ServerStorage = game:GetService('ServerStorage')
local Workspace = game:GetService('Workspace')
---FUNCTION DEC---
function TableMerge(Table1, Table2... | mit |
todotodoo/skia | tools/lua/ngrams.lua | 41 | 2106 | -- Generate n-grams of Skia API calls from SKPs.
-- To test this locally, run:
-- $ GYP_DEFINES="skia_shared_lib=1" make lua_pictures
-- $ out/Debug/lua_pictures -q -r $SKP_DIR -l tools/lua/ngrams.lua > /tmp/lua-output
-- $ lua tools/lua/ngrams_aggregate.lua
-- To run on Cluster Telemetry, copy and paste the contents... | bsd-3-clause |
Lsty/ygopro-scripts | c36995273.lua | 3 | 1217 | --縮退回路
function c36995273.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--remove
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_SZONE)... | gpl-2.0 |
zhaozg/lit | libs/db.lua | 5 | 6462 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
Lsty/ygopro-scripts | c8967776.lua | 3 | 2464 | --究極時械神セフィロン
function c8967776.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
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(aux.FALSE)
c:RegisterEffect(e1)
--sps... | gpl-2.0 |
Lsty/ygopro-scripts | c33537328.lua | 3 | 1740 | --地縛神 Cusillu
function c33537328.initial_effect(c)
c:SetUniqueOnField(1,1,10000000)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_SELF_DESTROY)
e4:SetCondition(c33537328.sdcon)
c:RegisterEffect(e4)
--bat... | gpl-2.0 |
Lsty/ygopro-scripts | c1969506.lua | 3 | 1932 | --傀儡儀式-パペット・リチューアル
function c1969506.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,1969506+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c1969... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria/npcs/Exoroche.lua | 9 | 2580 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Exoroche
-- Involved in Quests: Father and Son, A Boy's Dream
-- !pos 72 -1 60 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/ques... | gpl-3.0 |
Nuthen/ludum-dare-39 | catalogs/sound.lua | 1 | 2081 | return {
turret_shoot = 'assets/sounds/turrets/sci-fi_weapon_rifle_bolt_shot_01.wav',
turret_powered = 'assets/sounds/generator/sci-fi_power_on_rise_beep_01.wav',
enemy_death1 = 'assets/sounds/enemies/bone_break_neck_snap_crack_01.wav',
enemy_death2 = 'asset... | mit |
MalRD/darkstar | scripts/zones/Windurst_Waters/npcs/Fuepepe.lua | 9 | 3465 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fuepepe
-- Starts and Finishes Quest: Teacher's Pet
-- Involved in Quest: Making the grade, Class Reunion
-- !pos 161 -2 161 238
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs");
require("scripts/globals/set... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Cloister_of_Frost/bcnms/class_reunion.lua | 9 | 1093 | -----------------------------------
-- Area: Cloister of Tremors
-- BCNM: Class Reunion
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldTick(battlefield, tick)
dsp.battlefield.onBattlefieldTick(battlefield, tick)
end
function onB... | gpl-3.0 |
robertbrook/Penlight | tests/test-path.lua | 7 | 2446 | local path = require 'pl.path'
asserteq = require 'pl.test'.asserteq
function quote(s)
return '"'..s..'"'
end
function print2(s1,s2)
print(quote(s1),quote(s2))
end
function testpath(pth,p1,p2,p3)
local dir,rest = path.splitpath(pth)
local name,ext = path.splitext(rest)
asserteq(dir,p1)
asserteq(nam... | mit |
Lsty/ygopro-scripts | c78082039.lua | 3 | 1524 | --クローザー・フォレスト
function c78082039.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e... | gpl-2.0 |
Frenzie/koreader | frontend/ui/data/keyboardlayouts/keypopup/ru_popup.lua | 4 | 15155 | return {
pco = { -- period + colon
".",
north = ":",
alt_label = ":",
northeast = "'",
northwest = "=",
east = "!",
west = "?",
south = "|",
southeast = "\\",
southwest = "/",
'^',
"&",
"$",
},
cop = { --... | agpl-3.0 |
Frenzie/koreader | frontend/version.lua | 4 | 3187 | --[[--
This module helps with retrieving version information.
]]
local Version = {}
--- Returns current KOReader git-rev.
-- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238`
function Version:getCurrentRevision()
if not self.rev then
local rev_file = io.open("git-rev", "r")
if... | agpl-3.0 |
MalRD/darkstar | scripts/zones/Yuhtunga_Jungle/IDs.lua | 8 | 4606 | -----------------------------------
-- Area: Yuhtunga_Jungle
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.YUHTUNGA_JUNGLE] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_... | gpl-3.0 |
Frenzie/koreader | spec/unit/hook_container_spec.lua | 14 | 2931 | describe("HookContainer tests", function()
setup(function()
require("commonrequire")
end)
it("should register and unregister functions", function()
local HookContainer = require("ui/hook_container"):new()
local f1 = spy.new(function() end)
local f2 = spy.new(function() end)
... | agpl-3.0 |
kianooshnoori/teleexitbot | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
carloseduardosx/sky-force-infinite | src/util/pex.lua | 1 | 2136 | -- Quick pex importer for Corona
local M = {}
local function getFile( filename, base )
if not base then base = system.ResourceDirectory; end
local path = system.pathForFile( filename, base )
local contents
local file = io.open( path, "r" )
if file then
contents = file:read( "*a" )
io.close( file )... | apache-2.0 |
tarulas/luadch | core/doc.lua | 2 | 8052 | --[[
doc.lua by blastbeat
- this script provides documentation facilities
]]--
----------------------------------// DECLARATION //--
--// lua functions //--
local pairs = use "pairs"
local print = use "print"
local tostring = use "tostring"
--// lua libs //--
local io = use "io... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/bluemagic/hydro_shot.lua | 8 | 1563 | -----------------------------------------
-- Spell: Hydro Shot
-- Additional effect: Enmity Down. Chance of effect varies with TP
-- Spell cost: 55 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: MND+2
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time: 26 secon... | gpl-3.0 |
Lsty/ygopro-scripts | c44762290.lua | 5 | 1479 | --光学迷彩アーマー
function c44762290.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(c44762290.target)
e1:SetOperation(c44762290.operation)
c:RegisterEffect(e1... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Caedarva_Mire/npcs/Nahshib.lua | 9 | 3004 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nahshib
-- Type: Assault
-- !pos -274.334 -9.287 -64.255 79
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("s... | gpl-3.0 |
pyridiss/devilsai | data/quest/1-InvasionGladeSaints.lua | 1 | 3165 | --[[
Quest "Desecration" (birnam:desecration)
Summary:
The player must kill all monsters with tag "TheGladeOfTheSaints-Monsters".
When there are less than 5 remaining monsters, this number is displayed on the screen.
When the quest is done, the player gains experience.
]]
-- global section
-- --------------
... | gpl-3.0 |
MalRD/darkstar | scripts/zones/FeiYin/npcs/Rukususu.lua | 9 | 1210 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Rukususu (talk to Cermet Door _no5 to trigger)
-- Type: Quest NPC
-- !pos -194.133 -0.986 191.077 204
-- Involved in quests: Curses, Foiled A-Golem!?,SMN AF2: Class Reunion, SMN AF3: Carbuncle Debacle
-- Involved in Missions: Windurst 5-1/7-2/8-2
----... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Zeruhn_Mines/Zone.lua | 9 | 1820 | -----------------------------------
--
-- Zone: Zeruhn_Mines (172)
--
-----------------------------------
local ID = require("scripts/zones/Zeruhn_Mines/IDs")
require("scripts/globals/conquest")
require("scripts/globals/quests")
require("scripts/globals/helm")
require("scripts/globals/zone")
---------------------------... | gpl-3.0 |
shahabsaf1/My-system | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
imebeh/openwrt-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 80 | 4829 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | gpl-2.0 |
Lsty/ygopro-scripts | c45450218.lua | 5 | 1804 | --A・O・J リーサル・ウェポン
function c45450218.initial_effect(c)
--check
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLED)
e1:SetOperation(c45450218.checkop)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(45450218,0... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/plate_of_homemade_risotto.lua | 11 | 1598 | -----------------------------------------
-- ID: 5229
-- Item: plate_of_homemade_risotto
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
--------------------------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/piece_of_kusamochi_+1.lua | 11 | 1875 | -----------------------------------------
-- ID: 6263
-- Item: kusamochi+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP + 30 (Pet & Master)
-- Vitality + 4 (Pet & Master)
-- Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-- Ranged Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-... | gpl-3.0 |
weshoke/DSL | DSL/datastructures.lua | 1 | 1391 | --[[
-- DSL.datastructures
Basic datastructures used in DSL
--]]
----------------------------------------------
-- Stack
local Stack = {}
Stack.__index = Stack
setmetatable(Stack, {
__call = function(_, init)
return setmetatable({init}, Stack)
end
})
function Stack:push(v)
self[#self+1] = v
return v
end
functio... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.