content stringlengths 5 1.05M |
|---|
--幻想魔術師・ノー・フェイス
function c15173384.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_DESTROYED)
e1:SetRange(LOCATION_HAND+LOCATIO... |
local Spell = { }
Spell.LearnTime = 120
Spell.Description = [[
Welds two objects.
Usage: cast on some object,
then cast on another object.
]]
Spell.FlyEffect = "hpw_stupefy_main"
Spell.ImpactEffect = "hpw_stupefy_impactbody"
Spell.ApplyDelay = 0.5
Spell.AccuracyDecreaseVal = 0.02
Spell.Category = { HpwRewrite.Categ... |
--[[
-- ARGV[1]
-- ARGV[2]
]]
local heartbeat = redis.call("HGET", KEYS[1], "heartbeat")
if heartbeat == false then
heartbeat = ARGV[1]
end
-- now - sleep - lastheartbeat
if ARGV[1] - heartbeat == 0 then
-- can't find the key for the heartbeat of this equipment ('heartbeat == false)
return "Off"
... |
local tl = require("tl")
describe("assignment to const", function()
it("fails", function()
local tokens = tl.lex([[
local x = 2
local y <const> = 3
x, y = 10, 20
]])
local _, ast = tl.parse_program(tokens)
local errors = tl.type_check(ast)
assert.match("canno... |
--!strict
--[[
Author: csqrl
Date: 11-03-2021
ContainerController
* Receives replicated instances from the server and emits events regarding
transactions
Public API:
Properties:
* Controller.Name: string
* Controller.RootContainer: ScreenGui?
* Controller.Containers: Dictionary<containerId: string, con... |
local cjson = require "cjson"
local os = require "os"
local http = require"resty.http"
local utils = require "ceph.utils"
local ok, new_tab = pcall(require, "table.new")
if not ok then
new_tab = function (narr, nrec) return {} end
end
local _M = new_tab(0, 155)
_M._VERSION = '0.0.3'
local mt = { __index = _M }
... |
function initsetlayerbg(currentTiming, index, layer)
bg.setLayerOrder(layer)
end
function onAffCommand(timing, index, layer)
bg = Scene.getSprite("bgcontrol" .. tostring(index))
register(bg, timing-1, 1, "initsetlayerbg")
end
|
local K, C, L = unpack(select(2, ...))
local Module = K:GetModule("WorldMap")
if not Module then
return
end
-- Sourced: Leatrix_Maps by Leatrix
-- Function to refresh overlays (Blizzard_SharedMapDataProviders\MapExplorationDataProvider)
local _G = _G
local overlayTextures, TileExists = {}, {}
local strsplit, ceil, ... |
-- -----------------------------------------------------------------------------
-- Continue
-- -----------------------------------------------------------------------------
local Continue = { ruleName = 'Continue' }
-- -----------------------------------------------------------------------------
-- Parse
-- --------... |
-- Advanced NPC System by Jiddo
if KeywordHandler == nil then
KeywordNode = {
keywords = nil,
callback = nil,
parameters = nil,
children = nil,
parent = nil,
condition = nil,
action = nil
}
-- Created a new keywordnode with the given keywords, callback function and parameters and without any childNo... |
-- @group UI
-- @brief Vertical layout.
local VLayout,super = ae.oo.subclass(ae.ui.Layout)
-- @func
-- @brief Creates a verical layout with no bounds set.
-- @return The vertical layout.
-- @func
-- @brief Creates a verical layout.
-- @param bounds The initial bounds.
-- @return The vertical layout.
functio... |
ModuleMenu={}ModuleMenu.__index=ModuleMenu;function ModuleMenu:create(a)local self={}setmetatable(self,ModuleMenu)self.menu={}self.historic={}self.currentuser=currentUser;self.x=a.x;self.y=a.y;self.width=a.width;self.height=a.height;self.buttons=a.buttons;self.from=a.from;self.to=a.to;self.scale=a.scale;self.font=a.fon... |
local Utils = require("Utils")
local function Main()
end
local function Cleanup()
end
return Main, Cleanup |
return Def.Quad{
InitCommand=cmd(zoomto,256,104;diffuse,PlayerColor(PLAYER_2);diffusealpha,0.75;fadeleft,0.2;faderight,0.2);
}; |
local Comm = require(script.Parent.Parent.Comm)
local Promise = require(script.Parent.Parent.Promise)
local Signal = require(script.Parent.Parent.Signal)
local MyDataStoreClient = { }
MyDataStoreClient.Data = nil
MyDataStoreClient._loaded = false
-- Signals
MyDataStoreClient.Update = Signal.new()
MyDataStoreClient.L... |
---------------------------------------------------------------------------------
-- Local utility functions
---------------------------------------------------------------------------------
local function adagradStep(dfdx, lr, state)
if not state.var then
state.var = torch.Tensor():typeAs(dfdx):resizeAs(dfdx):z... |
-- Driver.lua
-- _______ _____ _______
-- |__ __| | __ \__ __|
-- | | ___ ___ _ __ _ _| | | | | |
-- | |/ _ \/ _ \ '_ \| | | | | | | | |
-- | | __/ __/ | | | |_| | |__| | | |
-- |_|\___|\___|_| |_|\__, |_____/ |_|
-- __/ ... |
Macro {
area="Viewer"; key="CtrlDown"; description="Scroll Down text in internal viewer"; action = function()
Keys('Down')
end;
}
Macro {
area="Viewer"; key="CtrlUp"; description="Scroll Up text in internal viewer"; action = function()
Keys('Up')
end;
}
|
a = {x = 1; y = 2}
b = {x = 3; y = 4}
c = {
x = a.x + b.x;
y = a.y + b.y
}
print(a.x, a.y) --> 1 2
print(c.x, c.y) --> 4 6
|
local AUTH_PROVIDERS = {
primary_key = { "id" },
table = "auth_providers",
cache_key = { "name" },
fields = {
id = { type = "id", dao_insert_value = true },
name = { type = "string", required = true, unique = true },
uri = { type = "string", required = true },
method = { type = "string", requir... |
local M = {}
function M.has_attrs(tbl, attrs)
assert(type(tbl) == 'table', 'TBL must be a table')
if type(attrs) ~= type(tbl) then
if tbl[attrs] ~= nil then
return true
end
for _,val in pairs(tbl) do
if val == attrs then
return true
e... |
local lush = require('lush')
local hsl = lush.hsl
return {
bg = hsl '#212733',
comment = hsl '#7c8798',
markup = hsl '#F07178',
constant = hsl '#D4BFFF',
identifier = hsl '#80D4FF',
operator = hsl('#F29E74').rotate(-5),
tag = hsl '#5CCFE6',
regexp = hsl '#95E6CB',
string = hsl '#BBE67E',
func = hs... |
-- Divorces a creature from its spouse and / or lover. Run this per creature in a relationship.
local args = {...}
function divorce (unit_id)
local victim, historic_victim
for key, value in pairs(df.global.world.units.all) do
-- The arguments are strings, but the structs contain numbers
if value.id == unit_i... |
class = require 'class'
FieldObject = require 'field_object'
Lamp = class(FieldObject)
Lamp.enable_magic_collisions = true
local Lamp_texture = love.graphics.newImage("spring/lamp-base.png")
local fire_textures = {
love.graphics.newImage("spring/lamp-fire1.png"),
love.graphics.newImage("spring/lamp-fire2.png")
}
l... |
local E, C, L = select(2, ...):unpack()
if not C.actionbar.styles.buttons.enable then return end
----------------------------------------------------------------------------------------
-- Style ActionBars (modified from rButtonTemplate)
-------------------------------------------------------------------------------... |
-- Copyright 2021 SmartThings
--
-- 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 agreed to in ... |
local this = Class.inherit(DecoButton)
function this:new(...)
DecoButton.new(self, ...)
self.edgecolor = self.color
self.disablededgecolor = self.disabledcolor
end
function this:draw(screen, widget)
local r = widget.rect
local basecolor = self.color
local edgecolor = self.edgecolor
local bordercolor = self.... |
local LevelLoader = {}
LevelLoader.__index = LevelLoader
function LevelLoader:new(path, world)
assert(world, "Needs a World object")
assert(path, "path required")
local this = setmetatable({
world = world, levelsPath = path, tilemap = nil, enemiesData = {
bill = {}, seuBarriga = {}, mo... |
--------------
-- TECH RACER
--------------
-- DEVELOPER WARNING - FOR OFFICIAL DEVELOPMENT --
-- Be careful when editig this script, do not introduce changes lightly!
-- This script is used for time records on the official Hedgewars server.
-- Introducing breaking changes means we have to invalidate past time records... |
addEvent("gra.mServer.onPasswordChange", false)
addEvent("gra.mServer.onGameTypeChange", false)
addEvent("gra.mServer.onFPSLimitChange", false)
addEvent("gra.mServer.onGlitchChange", false)
mServer = {}
function mServer.init()
cSync.register("Server.data", "general.server")
cSync.register("Server.list", "general.... |
--[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... |
do
local _ = {
radar = {
icon = '__base__/graphics/icons/radar.png',
radius_minimap_visualisation_color = {a = 0.275, r = 0.059, g = 0.092, b = 0.235},
energy_per_sector = '10MJ',
name = 'radar',
water_reflection = {
rotate = false,... |
object_tangible_loot_npc_loot_spray_unit_small_03_generic = object_tangible_loot_npc_loot_shared_spray_unit_small_03_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_spray_unit_small_03_generic, "object/tangible/loot/npc/loot/spray_unit_small_03_generic.iff")
|
local console = require "sys.console"
local core = require "sys.core"
local proto = require "saux.xproto"
local rpc = require "saux.rpc"
local rpcDef = require "saux.rpcDef"
require "sys.serialize"
local server = {
m_rpcserver = nil,
m_clientid2fd = {},
m_clientid2addr = {},
}
local rpcserver
function server... |
-- Highlights the link to the current page/section in the navigation menu
-- If you have <a href="/about">, it will add a CSS class to it on page site/about.html
-- It assumes you are using relative links
--
-- Sample configuration:
-- [plugins.active-link-hightlight]
-- active_link_class = "active"
-- nav_menu_sel... |
-- Generated by lua-capnproto 0.1.3-1 on Mon Sep 4 10:46:53 2017
-- https://github.com/cloudflare/lua-capnproto.git
local ffi = require "ffi"
local capnp = require "capnp"
local bit = require "bit"
local ceil = math.ceil
local write_struct_field= capnp.write_struct_field
local read_struct_field = capnp... |
confprimitive = {
mByte = 0,
mBool = false,
mFloat = 10.9,
mStr = "abc",
mShort = 191,
mLong = 10000,
mDouble = 0.99,
mInt = 20
} |
-- add rules
add_rules("mode.debug", "mode.release")
-- add target
target("shared_library_c++")
-- set kind
set_kind("shared")
-- add files
add_files("src/interface.cpp")
-- add target
target("test")
-- set kind
set_kind("binary")
-- add deps
add_deps("shared_library_c++")
-- ... |
local world = require("world")
local lume = require("lib.lume")
local SPR = world.sprite("tileset0", 0, 0, 2, 2)
return {
x = 0, y = 0, sprite = SPR, debris = SPR, vx = 0, vy = 0, z = -1,
collider = world.collider(16, 16, COLLIDER_TYPE_WORLD), timer = 0, areaX = 16, areaY = 16,
dying = false, area = 60,
... |
ENT.Base = "base_ai"
ENT.Type = "ai"
ENT.PrintName = "Blue NPC"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.AutomaticFrameAdvance = true
function ENT:SetAutomaticFrameAdvance( anim )
self.AutomaticFrameAdvance = anim
end
function ENT:SetupDataTables()
self:NetworkVar( "Int", 0, "Emotion") --4 - 0
self:... |
local Csv = require("mod.extlibs.api.Csv")
local Compat = require("mod.elona_sys.api.Compat")
local CodeGenerator = require("api.CodeGenerator")
local FIGURE_TO_BODY_PART = {
["頭"] = "elona.head",
["首"] = "elona.neck",
["体"] = "elona.body",
["背"] = "elona.back",
["手"] = "elona.hand",
["指"] = "elona.r... |
--[[
A binary codec builder library
This kind of creates a DSL for building binary codecs.
Have a look at the example codecs to get an idea on how to use this.
]]
local ffi = require"ffi"
local bit = require"bit"
local U = require"lib.util"
local object = U.object
-- base object: a definition
local def = object:new(... |
return {
formatCommand = "gofumpt -w",
formatStdin = true
}
|
metroUIText = {}
metroUIText.__index = metroUIText
cache.metroUITextRender = {}
cache.metroUIFontDX = dxCreateFont ("files/font/segoe.ttf",40)
function metroUIText.create(text,x,y,sx,sy,color,scale)
local data = setmetatable({text=text,x=x,y=y,sx=sx,sy=sy,color=color,scale=scale,visible=true},metroUIText)
cac... |
local lfs = require('lfs')
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local command = helpers.command
local get_pathsep = helpers.get_pathsep
local iswin = helpers.iswin
local eq = helpers.eq
local neq = helpers.neq
loc... |
-- by Qige <qigezhao@gmail.com>
--[[
Notes:
1. DO NOT call .SAFE_GET right after .SAFE_SET !!! Wait at least 2 seconds;
2. DO NOT change any config or default value UNLESS you really sure;
3. ARN.Mngr provide Cache control|RARP|Save config|Calc thrpt|Filter input/output;
4. DO NOT USE "next()" !!!: "lo... |
Current_Tests = {
{
Test_name = "Character create and valid",
Test_type = "ReturnValuePassedInNextTests",
Test_func = function()
local ch = Character(
Vector(-100, 100, 100.5),
Rotator(-90, 153, 24.5),
"nanos-world::SK_Male"
... |
local function addItemsToWorld(items)
assert(typeof(items) == "table" and #items == 0)
return {
type = script.Name,
items = items,
}
end
return addItemsToWorld |
function defer(self, call, delay)
self:runAction(action.Steps(
action.Delay(delay),
action.Callback(call, self)
))
end
|
local reload_tech_unlock = require("script.reload-tech-unlock")
-------------------------------------------------------------------------------
local function blacklist_inserters()
remote.call(
"bobinserters",
"blacklist_inserters",
{
"nco-wide-crane",
"nco-wide-filter-crane",
"nco-crane",
"nco-filte... |
Objects = {
createObject(3115,2002.0999800,-3538.6001000,2.0000000,0.0000000,0.0000000,0.0000000),
createObject(3115,1975.0000000,-3538.5000000,2.0000000,0.0000000,0.0000000,180.0000000),
createObject(7191,2012.7000700,-3546.0000000,-15.3000000,90.0000000,0.0000000,0.0000000),
createObject(3925,1988.5000000,-3538... |
--[[submenuData = {
type = "submenu",
name = "Submenu Title", -- or string id or function returning a string
icon = "path/to/my/icon.dds", -- or function returning a string (optional)
iconTextureCoords = {left, right, top, bottom}, -- or function returning a table (optional)
tooltip = "My submenu to... |
-- Item data (c) Grinding Gear Games
return {
-- Weapon: One Handed Mace
[[
Brightbeak
War Hammer
Variant: Pre 2.6.0
Variant: Pre 3.7.0
Variant: Current
Requires Level 20, 71 Str
Implicits: 2
{variant:1}20% increased Stun Duration on Enemies
{variant:2,3}10% reduced Enemy Stun Threshold
(50-75)% increased Physical Da... |
local UnderbellyBuddy = LibStub('AceAddon-3.0'):GetAddon('UnderbellyBuddy')
local UnderbellyBuddyHiredGuard = UnderbellyBuddy:NewModule('UnderbellyBuddyHiredGuard', 'AceConsole-3.0', 'AceEvent-3.0')
local buffName, _, buffIcon = GetSpellInfo(203894)
local fontName = GameFontHighlightSmallOutline:GetFont()
local inU... |
function Client_PresentConfigureUI(rootParent)
local numTerritories = Mod.Settings.NumTerritories;
if (numTerritories == nil) then numTerritories = 1; end
local vert = UI.CreateVerticalLayoutGroup(rootParent);
local row1 = UI.CreateHorizontalLayoutGroup(vert);
UI.CreateLabel(row1).SetText("Number of te... |
-- Copyright (c) 2017 Dan Wilcox <danomatika@gmail.com> MIT License.
-- For information on usage and redistribution, and for a DISCLAIMER OF ALL
-- WARRANTIES, see the file, "LICENSE.txt," in this distribution.
local thispath = select('1', ...):match(".+%.") or ""
local View = require(thispath.."View")
Label = ... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by chs.
--- DateTime: 18-12-28 下午5:26
--- 数据类型转换模块
dt_converter = {}
function ToStringEx(value)
if type(value)=='table' then
return dt_converter.TableToStr(value)
elseif type(value)=='string' then
return "\'"..value.."\'"
... |
lunar_horse_sun_orb_modifier = class({})
function lunar_horse_sun_orb_modifier:OnCreated( kv )
self.move_speed_percentage = self:GetAbility():GetSpecialValueFor("move_speed_percentage")
self.incoming_damage_percentage = self:GetAbility():GetSpecialValueFor("incoming_damage_percentage")
self.boss_move_speed... |
-- test.lua - test suite for file_slurp module.
-- 'findbin' -- https://github.com/davidm/lua-find-bin
package.preload.findbin = function()
local M = {_TYPE='module', _NAME='findbin', _VERSION='0.1.1.20120406'}
local script = arg and arg[0] or ''
local bin = script:gsub('[/\\]?[^/\\]+$', '') -- remove file name
... |
-- This error bar was made by SteveReen for the Waterfall theme and later
-- modified for SL.
local player, layout = ...
local pn = ToEnumShortString(player)
local mods = SL[pn].ActiveModifiers
local gmods = SL.Global.ActiveModifiers
local barWidth = 160
local barHeight = 10
local tickWidth = 2
local tickDuration = 0... |
PLUGIN.name = "Attributes"
PLUGIN.author = "Cheesenut"
PLUGIN.desc = "Adds attributes for characters."
nut.util.include("sh_commands.lua")
nut.config.add(
"maxAttribs",
30,
"The total maximum amount of attribute points allowed.",
nil,
{
data = {min = 1, max = 250},
category = "characters"
}
)
nut.char.regi... |
print("Solving day 12")
local actions = {}
for line in io.lines("Day12.txt") do
local action, value = string.match(line, "(%a)(%d+)")
table.insert(actions, { action = action, value = tonumber(value) })
end
local function turnRight(targetFerry, numberOfTurns)
if numberOfTurns == 0 then return end
local... |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
end
language.Add("ent_frisbee_chosen","Schrodinger's Frisbee"); |
package.path = '../../lua-otalk/?.lua;' .. package.path
local M = {}
local helpers = require "helpers"
local converter = require "converter"
local NS = "urn:xmpp:jingle:transports:ice-udp:1"
function transportToTable(element)
local transport = {}
transport.transType = "iceUdp"
transport.pwd = helpers.ge... |
cc = cc or {}
---ClippingRectangleNode object
---@class ClippingRectangleNode : Node
local ClippingRectangleNode = {}
cc.ClippingRectangleNode = ClippingRectangleNode
--------------------------------
---brief Get whether the clipping is enabled or not.<br>
---return Whether the clipping is enabled or not. Default is t... |
object_tangible_loot_npc_loot_medical_device_generic = object_tangible_loot_npc_loot_shared_medical_device_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_medical_device_generic, "object/tangible/loot/npc/loot/medical_device_generic.iff")
|
createObject(3059,2522.05,-1272.9325,35.589998626709,0,0,0,0,0) -- wall
setElementAlpha(createObject(976,2521.5,-1279,34.089998626709,0,0,90,0,0),0) -- Hack to stop people driving through it
setElementAlpha(createObject(976,2521.5,-1276,34.089998626709,0,0,90,0,0),0) |
local awful = require('awful')
local lunaconf = require('lunaconf')
local dialog = lunaconf.dialogs.bar('audio-volume-high', 1)
local function show_volume_notification(is_muted, volume)
dialog:set_value(volume)
dialog:set_disabled(is_muted)
dialog:set_icon(is_muted and 'audio-volume-muted' or 'audio-volume-high')
... |
local ped = {name = "Cargobob", x=51.35, y=-2571.28, z= 5.97 - 1,rotation = 2.26,NetworkSync = true}
local heli = {x = 478.63,y = -3370.6,z = 6.53, h = 0.66}
local car = {x = -1708.16,y = -907.72,z = 7.28, h = 318.31}
local entrega = {x = -107.72,y = -2536.03,z = 6.0 - 1}
local delivery = {x = 478.63,y = -3370.6,z = 6.... |
local seri = require "seri"
local t1 = {
a = "a",
b = 1,
c = 1.1,
d = {
e = "e",
f = 2,
g = 2.2,
},
h = {1,2,3,4,5,6},
i = function () end,
}
seri.limit(4000)
for i=1,10000 do
str = seri.encode(t1, 2, 3, "a", nil, "b", function () end)
end
print(str)
local t2,a,b,c... |
-- Copyright 2020-2022 André Luiz Alvares. See License.txt
-- Nelua LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('nelua')
-- Whitespace
local ws0 = lexer.space^0
local ws1 = lexer.space^1
-- Keywords ... |
-- Generic Depth-Limited search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Depth-limited_search
-- Notes : this is a generic implementation of Depth-Limited search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... |
local vipGetAnimPop=
{
name="vipGetAnimPop",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="bg",type=1,typeName="Image",time=66475316,report=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=1,fillParentHeig... |
import('Physics')
import('PilotAI')
lastTime = 0
keys = {
up = false;
down = false;
left = false;
right = false;
w = false;
a = false;
s = false;
d = false;
}
power = 20
angle = 0
turret = vec(300,300)
launcher = vec(0,0)
projectiles = {}
bulletSpeed = 650
bulletRadius = 5.0
pigeonRad... |
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file
------------------------------------------------------------
-- checksums: adler-32, crc-32
------------------------------------------------------------
local byte = string.byte
------------------------------------------------------------
-- adler32
local fu... |
local ffi = require('ffi')
local loaded, lib = pcall(ffi.load, 'opus')
if not loaded then
return nil, lib
end
local new, typeof, gc = ffi.new, ffi.typeof, ffi.gc
ffi.cdef[[
typedef int16_t opus_int16;
typedef int32_t opus_int32;
typedef uint16_t opus_uint16;
typedef uint32_t opus_uint32;
typedef struct OpusEncoder... |
local Struct = {
id = 0,
platform = 0,
username = "",
password = "",
createtime = 0,
}
local Define = {
id = "int NOT NULL AUTO_INCREMENT PRIMARY KEY",
platform = "int",
username = "varchar(255)",
password = "varchar(255)",
createtime = "bigint",
}
local Indexes = {
"UNIQU... |
getglobal game
getfield -1 ReplicatedStorage
getfield -1 Inventory
getfield -1 FireServer
pushvalue -2
pushstring EquipAura
pushstring classicalienpet
pcall 3 1 0
getglobal game
getfield -1 ReplicatedStorage
getfield -1 Inventory
getfield -1 FireServer
pushvalue -2
pushstring EquipAura
pushstring dominusinfernuspet
pc... |
local status_ok, impatient = pcall(require, "impatient")
if not status_ok then
vim.notify("impatient not found!")
return
end
impatient.enable_profile()
|
if vim.fn.executable('rg') == 1 then
vim.o.grepprg = 'rg --vimgrep --no-heading'
vim.o.grepformat = '%f:%l:%c:%m,%f:%l:%m'
end
|
local t = Def.ActorFrame {}
local minanyms = {
"the logorrhea of yore",
"Irate Platypusaurusean",
"Pancreatic_MilkTrombone",
"Fire_Elevator",
"Starchy DarkButter",
"Unememorabelia Bedelia",
"Cheezits 'N Rice",
"Scalding brain fart",
"Luridescence",
"Frothy Loin",
"Ministry of Silly Steps",
"\na haiku for m... |
local utf8 = require("init"):init()
local context = utf8:require('context.runtime')
local equals = require('test.util').equals
local assert = require('test.util').assert
local assert_equals = require('test.util').assert_equals
local ctx_en
local ctx_ru
local function setup()
ctx_en = context.new({str = 'asdf'})
... |
local function zip(...) -- help
local args, args_values = { ... }, { }
local i = 0
return function()
i = i + 1
for index, tbl in ipairs(args) do
args_values[index] = tbl[i]
if args_values[index] == nil then
return nil
end
end
return table.unpack(args_values)
end
end
return zip |
function Interface:toggleAnimationEditor()
if self.animEditActive == false then
AnimationEditor:getNumberMapping()
self.animEditActive = true
EditorStage:add(APC:new{position = {0, 0}, frame = 1, facing = 1, state = AnimationEditor:getActiveAnimation()})
GameStateManager:setActiveStage(EditorStage)
... |
AddCSLuaFile()
if (CLIENT) then
SWEP.PrintName = "Ключи"
SWEP.Slot = 0
SWEP.SlotPos = 2
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end;
SWEP.Author = "Vex"
SWEP.Instructions = "ЛКМ: Закрыть/Открыть\nR: Связка ключей"
--SWEP.Purpose = "Hitting things and knocking on doors."
SWEP.Drop = false
SWEP.ViewModel... |
xact = function(n, f) -- just simple action!
local v = {};
if f == nil and stead.type(n) == 'table' then
f = n[2];
n = n[1];
end
if stead.type(n) ~= 'string' then
error ("Wrong parameter to xact.", 2)
end
v.xaction_type = true
v.nam = n
if stead.api_atleast(1, 6, 3) then
v.disp = false
end
v.act = f... |
return {
PlaceObj("ModItemOptionToggle", {
"name", "Mark",
"DisplayName", T(302535920011433, "Mark Buildings"),
"Help", T(302535920011504, "If you want to turn off the mod disable this option."),
"DefaultValue", true,
}),
}
|
-- https://github.com/theHamsta/nvim-dap-virtual-text
require("nvim-dap-virtual-text").setup()
|
----------------------------------------
-- Sassilization
-- Shared Unit Module
-- http://sassilization.com
-- By Spacetech & Sassafrass
----------------------------------------
UNIT_SELL = 1
UNIT_KILL = 2
UNIT_SHRINED = 3
UNIT_DISCONNECTED = 4 |
-- Autogenerated lua file by the Spyface tool
-- 'Wimps and posers -- leave the hall! -- ManOwaR
--
-- DO NOT HAND EDIT.
--
local tiles =
{
{
x = 14,
y = 4,
zone = [[om_pre_final]],
variant = 0,
},
{
x = 14,
y = 5,
zone = [[om_pre_final]],
vari... |
local skynet = require "skynet"
local mode = ...
if mode == "test" then
skynet.start(function()
skynet.dispatch("lua", function (...)
print("====>", ...)
skynet.exit()
end)
end)
else
skynet.start(function()
local test = skynet.newservice("testdeadcall", "test") -- launch self in test mode
print(pcall(f... |
package("libjpeg-turbo")
set_homepage("https://libjpeg-turbo.org/")
set_description("A JPEG image codec that uses SIMD instructions (MMX, SSE2, AVX2, Neon, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, Arm, and PowerPC systems.")
set_license("BSD-3-Clause")
add_url... |
-- package.path = '..\\src\\?.lua;' .. package.path
local MultiRequests = require "MultiRequests"
local generators = {
ipairs = function(t)
local generator = coroutine.wrap(function()
for i, url in ipairs(t) do
coroutine.yield(i, url)
end
end)
return generator
end;
flines = fun... |
local lib = require "resty.sass.library"
local context = require "resty.sass.context"
local ffi = require "ffi"
local C = ffi.C
local ffi_copy = ffi.copy
local ffi_sizeof = ffi.sizeof
local char_s = ffi_sizeof "char"
local setmetatable = setmetatable
local rawget = ra... |
function working_villages.villager:set_pause(state)
assert(type(state) == "boolean","pause state must be a boolean")
self.pause = state
if state then
self.object:setvelocity{x = 0, y = 0, z = 0}
--perhaps check what animation we are in
self:set_animation(working_villages.animation_frames.STAND)
end
... |
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "Elevator",
Version = "1.1",
Date = "2020-11-17",
--SourceLocation = "https://github.com/MeMuXin/Elevator",
Description = [[Uses wool block to teleport between them (Straight line up or down)]],
}
|
local RBT = LibStub("AceAddon-3.0"):GetAddon("ReturnBuffTracker")
local L = LibStub("AceLocale-3.0"):GetLocale("ReturnBuffTracker")
local function Check(buff)
buff:ResetBuffData()
-- TODO:
end
local function BuildToolTip(buff)
-- TODO:
end
local function SpecialBarDisplay(buff)
-- special treatment
... |
local att = {}
att.name = "am_flechetterounds"
att.displayName = "Flechette rounds"
att.displayNameShort = "Flechette"
att.statModifiers = {ClumpSpreadMult = -0.4,
DamageMult = -0.4}
if CLIENT then
att.displayIcon = surface.GetTextureID("atts/flechetterounds")
att.description = {{t = "Increases amount of rounds pe... |
local propItem1Marker = script:GetCustomProperty("Item1Marker"):WaitForObject()
local propItem2Marker = script:GetCustomProperty("Item2Marker"):WaitForObject()
local propItem3Marker = script:GetCustomProperty("Item3Marker"):WaitForObject()
function DiplayItems(item1, item2, item3)
World.SpawnAsset(item1, {position ... |
local c;
local player = Var "Player";
local tTotalJudgments = {};
local JudgeCmds = {
TapNoteScore_W1 = THEME:GetMetric( "Judgment", "JudgmentW1Command" );
TapNoteScore_W2 = THEME:GetMetric( "Judgment", "JudgmentW2Command" );
TapNoteScore_W3 = THEME:GetMetric( "Judgment", "JudgmentW3Command" );
TapNoteScore_W4 = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.