content stringlengths 5 1.05M |
|---|
---@meta
---@class cc.AtlasNode :cc.Node@all parent class: Node,TextureProtocol
local AtlasNode={ }
cc.AtlasNode=AtlasNode
---* lua NA
---@return cc.BlendFunc
function AtlasNode:getBlendFunc () end
---* Initializes an AtlasNode with an Atlas file the width and height of each item and the quantity of items to ren... |
-- hop.nvim config
require('hop').setup {
-- keys default: 'asdghklqwertyuiopzxcvbnmfj'
-- use colemak equivalent
keys = 'arstdhneioqwfpgjluyzxcvbkm',
}
vim.api.nvim_set_keymap('n', '<Leader><Leader>/', "<cmd>lua require'hop'.hint_patterns()<cr>", {})
vim.api.nvim_set_keymap('n', '<Leader><Leader>f', "<cmd>lua ... |
local M = {}
M.new = function(title, buttons, listener, dog)
if not M.group then
ALERT = false
M.listener = listener
M.timer = timer.performWithDelay(0, function() M.group:toFront() end, 0)
M.group, M.buttons = display.newGroup(), {}
M.bg = display.newRoundedRect(C... |
--[[ Copyright (c) 2021 npc_strider, ickputzdirwech
* Original mod by npc_strider.
* For direct use of code or graphics, credit is appreciated and encouraged. See LICENSE.txt for more information.
* This mod may contain modified code sourced from base/core Factorio.
* This mod has been modified by ickputzdirwech.
]... |
--
-- I never tread... lightly.
-- Author: Dubpub
-- Date: 9/15/2015
-- Time: 8:00 PM
-- Use as you please, it's LUA for christ's sake.
--
-- Spawns a single inmate, obviously. I mean, look at the code dude.
function Create()
local prisoner = Object.Spawn("Prisoner", this.Pos.x, this.Pos.y);
this.Delete();
end
... |
puck_dream_coil_lua = class({})
LinkLuaModifier( "modifier_generic_stunned_lua", "lua_abilities/generic/modifier_generic_stunned_lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_puck_dream_coil_lua", "lua_abilities/puck_dream_coil_lua/modifier_puck_dream_coil_lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier(... |
local awful = require("awful")
local interval = 10
awful.widget.watch('sh -c "top -bn1 | grep \"Cpu\""', interval, function(_, stdout)
local us = tonumber(string.match(stdout, ' (.*) us'))
local sy = tonumber(string.match(stdout, ', *(.*) sy'))
local usage = us + sy
awesome.emit_signal("status::cpu", ... |
-- module will not return anything, only register assertions with the main assert engine
-- assertions take 2 parameters;
-- 1) state
-- 2) arguments list. The list has a member 'n' with the argument count to check for trailing nils
-- 3) level The level of the error position relative to the called function
-- returns... |
--- 导入需要的模块
local modbus_master = require 'modbus.master.skynet'
local modbus_pdu = require 'modbus.pdu.init'
local data_pack = require 'modbus.data.pack'
local data_unpack = require 'modbus.data.unpack'
local queue = require 'skynet.queue'
local csv_tpl = require 'csv_tpl'
local packet_split = require 'packet_split'
... |
local constants = require('d2info.constants')
local utils = {}
function utils.friendlyVersion(ver)
return table.concat({ver.major, ver.minor, ver.build, ver.revision}, '.')
end
function utils.tableMerge(a, b)
local merged = {}
for k,v in pairs(b) do
merged[k] = v
end
-- a overwrites any duplicates in b
... |
-- scaffolding entry point for zopfli
return dofile("zopfli.lua")
|
---
-- DICOM library
--
-- This library implements (partially) the DICOM protocol. This protocol is used to
-- capture, store and distribute medical images.
--
-- From Wikipedia:
-- The core application of the DICOM standard is to capture, store and distribute
-- medical images. The standard also provides services rela... |
local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 5)
if not lib then return end
function lib.new(parent, addonname)
local frame = CreateFrame("Frame", nil, InterfaceOptionsFramePanelContainer)
frame.name, frame.parent, frame.addonname = parent and "About" or addonname, parent, addonname
frame:Hide(... |
require 'nn'
local models = {}
models.basic_parallel = function()
local m = nn.Sequential()
local prl = nn.ParallelTable()
prl:add(nn.Linear(2,2))
prl:add(nn.Sequential():add(nn.Linear(2,1)):add(nn.Sigmoid()):add(nn.Linear(1,1)))
m:add(prl)
m:add(nn.JoinTable(2))
m:add(nn.Linear(3,2))
m:add(nn.ReLU(tru... |
local _, core = ...
local function GameTooltip_OnTooltipSetItem(tooltip)
local itemName, itemLink = tooltip:GetItem()
if not itemName or not itemLink then
return
end
local _, _, _, _, _, itemType = GetItemInfo(itemLink)
local _,
itemId,
enchantId,
jewe... |
local BaseMotor = require(script.Parent.BaseMotor)
local SingleMotor = require(script.Parent.SingleMotor)
local isMotor = require(script.Parent.isMotor)
local Ser = require(script.Parent.Serializer)
local GroupMotor = setmetatable({}, BaseMotor)
GroupMotor.__index = GroupMotor
local function serializeGoal(goalClass,... |
------------------------------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md
------------------------------------------------------------------... |
local VEHICLE = FindMetaTable("Vehicle")
function VEHICLE:IsOverturned()
// Tweak this number to adjust what's considered "overturned"
return vector_up:Dot(self:GetAngles():Up()) < 0
end
|
function onCreate()
makeLuaSprite('bg', 'assets/halloween_bg_low', -200, 0);
setLuaSpriteScrollFactor(0.9, 0.9);
setProperty('bg.scale.x', getProperty('bg.scale.x') + 0.4);
setProperty('bg.scale.y', getProperty('bg.scale.y') + 0.4);
setProperty('dad.alpha', 0.5);
setProperty('iconP2.alpha', 0... |
function plugindef()
-- This function and the 'finaleplugin' namespace
-- are both reserved for the plug-in definition.
finaleplugin.RequireSelection = true
finaleplugin.Author = "Robert Patterson"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Ver... |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras of Aerie ... |
--[[
MIT LICENSE
Copyright (c) 2018 Denys Almaral
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, cop... |
-- import
local ComponentModule = require 'candy.Component'
local RenderComponent = require 'candy.gfx.RenderComponent'
local getBuiltinShader = MOAIShaderMgr.getShader
local DECK2D_TEX_ONLY_SHADER = MOAIShaderMgr.DECK2D_TEX_ONLY_SHADER
local DECK2D_SHADER = MOAIShaderMgr.DECK2D_SHADER
local FONT_SHADER = MOAIShaderMg... |
local mod = foundation_stdlib
local m = foundation.com
local Luna = assert(m.Luna)
local case = Luna:new("foundation_stdlib")
case:describe("is_blank/1", function (t2)
t2:test("nil is blank", function (t3)
t3:assert(m.is_blank(nil))
end)
t2:test("an empty string is blank", function (t3)
t3:assert(m.is_... |
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local dpdkc = require "dpdkc"
local filter = require "filter"
local ffi = require "ffi"
ffi.cdef[[
uint32_t rte_mempool_count(void* mp);
]]
memory.enableCache()
local C = ffi.C
local PORT = 0
function master(...)
local... |
-- FUNCTIONAL
local Q = require 'Q'
require 'Q/UTILS/lua/strict'
local qconsts = require 'Q/UTILS/lua/qconsts'
local Scalar = require 'libsclr'
local qmem = require 'Q/UTILS/lua/qmem'
local chunk_size = qmem.chunk_size
local tests = {}
tests.t1 = function()
local val = (2048*1048576)-1
local len = chunk_size... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_templateKata()
local obj = GUI.fromHandle(_obj_newObject(... |
object_intangible_vehicle_pod_racer_ipg_longtail_pcd = object_intangible_vehicle_shared_pod_racer_ipg_longtail_pcd:new {
}
ObjectTemplates:addTemplate(object_intangible_vehicle_pod_racer_ipg_longtail_pcd, "object/intangible/vehicle/pod_racer_ipg_longtail_pcd.iff")
|
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local _M = function(role,data)
if not data.id or type(data.id) ~= "number" then return 2 end
local pass = role.both:can_stage(data.id)
if not pass then return 2402 end
role.both:set_begin_stage... |
-- TODO: sacar el seeall
module(..., package.seeall)
-- Query String Utilities
--var QueryString = exports;
--var urlDecode = process.binding("http_parser").urlDecode;
--// a safe fast alternative to decodeURIComponent
--QueryString.unescape = urlDecode;
--QueryString.escape = function (str) {
-- return encodeURIC... |
function ApplyParticleToIllusions(keys)
local caster = keys.caster
local target = keys.target
if target:IsIllusion() and caster:IsRealHero() then
target.GemOfClearMindIllusionParticle = ParticleManager:CreateParticleForTeam("particles/arena/items_fx/gem_of_clear_mind_illusion.vpcf", PATTACH_ABSORIGIN_FOLLOW, targe... |
local api = require("fromage")
local client = api()
local enumerations = client.enumerations()
coroutine.wrap(function()
client.connect("Username#0000", "password")
if client.isConnected() then
print("Members:")
local members, err = client.getTribeMembers() -- Gets the list of members of the tribe
if members... |
--[[
File: src/level/layer.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Defines a layer of tiles and methods for manipulating/managing them.
]]--
local Tile = require("src.level.tile")
local Layer = Class{function(self, size, tileset, tileSize)
self.tiles = {}
self.size = vector(20, 20)
se... |
-- TUI acceptance tests.
-- Uses :terminal as a way to send keys and assert screen state.
--
-- "bracketed paste" terminal feature:
-- http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Paste-Mode
local helpers = require('test.functional.helpers')(after_each)
local uname = helpers.uname
local thelpers... |
vim.g.everforest_better_performance = 1
vim.g.everforest_background = 'hard'
vim.g.everforest_enable_italic = 1
vim.cmd [[
try
colorscheme everforest
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
set background=dark
endtry
]]
|
local xx = 510;
local yy = 450;
local xx1 = 810;
local yy1 = 450;
local ofs = 60;
local followchars = true;
local del = 0;
local del1 = 0;
function onUpdate()
if del > 0 then
del = del - 1
end
if del1 > 0 then
del1 = del1 - 1
end
if followchars == true then
if mustHitSection ==... |
local map = require("utils").map
vim.g.spotify_show_status = 1
vim.g.spotify_status_format = ' {status} {song} - {artists} {decorator}'
vim.g.spotify_wait_time = 0.5
map("n", [[\sn]], "<cmd>Spotify next<CR>")
map("n", [[\sp]], ":Spotify prev<CR>")
map("n", [[\ss]], ":Spotify play/pause<CR>")
map("n", [[\so]], ":Spotify... |
--
-- Created by IntelliJ IDEA.
-- User: jarlene
-- Date: 2018/2/24
-- Time: 下午6:22
-- To change this template use File | Settings | File Templates.
--
local User = {}
local returncode = require "conf.returncode"
local http = require "comm.http"
local function test()
local res = { code = returncode.SUCCESS.code, ... |
ClassicLFGCheckBox= {}
ClassicLFGCheckBox.__index = ClassicLFGCheckBox
setmetatable(ClassicLFGCheckBox, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function ClassicLFGCheckBox.new(text, parent, text)
local self = setmetatable({}, ClassicLFGCheckBox)
self.Frame = CreateFrame("Fra... |
require "classes.constants.screen"
FacebookMessenger={}
function FacebookMessenger:new()
local this = {}
local public = this
local private={}
local facebook = require("plugin.facebook.v4")
local json = require("json")
local fbAppID = "XXXXXXXXXXXXXXX" -- Your FB App ID from facebook developer'... |
--[[
Copyright 2015 Rackspace
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 writing, software
dis... |
-- Fp Integer Arithmetic
local unpack = table.unpack
local n = 0xffff
local m = 0x10000
local p = {3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65533}
local p2 = {21845, 21845, 21845, 21845, 21845, 21845, 21845, 21845, 21845, 21845, 21845, 43690}
local r2 = {44014, 58358, 19452, 6484, 45852, 58974, 63348, 64806, 65292, 65454, 6... |
return {
["93ee8c86-b883-46f2-ad22-2c270376bd07"] = "hanxi",
}
|
-- got it from here
-- credits to ruilov
-- http://twolivesleft.com/Codify/Talk/discussion/20/my-first-app-pigs-in-clover
-- https://gist.github.com/1330422
if dofile ~= nil then
dofile ("loveCodify.lua")
end
backgroundC = color(0, 0, 0, 255)
time = 0
won = false
-- open is the angle of the openning. top is where th... |
require("telescope").load_extension("notify")
|
object_building_kashyyyk_kash_swamp_reed_s02 = object_building_kashyyyk_shared_kash_swamp_reed_s02:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_kash_swamp_reed_s02, "object/building/kashyyyk/kash_swamp_reed_s02.iff")
|
-----------------------------------
-- Area: Newton Movalpolos
-- NPC: Furnace_Hatch
-----------------------------------
local ID = require("scripts/zones/Newton_Movalpolos/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/status")
-----------------------------------
function onTrade(player, npc, tra... |
local require = using("BodyEditor.Script")
local CCLayer = require("CCLayer")
local CCDrawNode = require("CCDrawNode")
local oVec2 = require("oVec2")
local ccColor4 = require("ccColor4")
local oLine = require("oLine")
local once = require("once")
local wait = require("wait")
local seconds = require("seconds")
local fu... |
local ffi = require('ffi')
local kdns = require('dns')
local utils, rrparser = require('dns.utils'), require('dns.rrparser')
-- Compile query string/table into filter function
-- e.g. 'TXT' => filter matching TXT records
-- 'rdata~=A(1.2.3.4)' => match all except A RDATA==1.2.3.4'
-- See examples/zq.lua
local fun... |
package.path = string.format("?.lua;%s",package.path)
local spell = require "spell"
spell.init("big.txt")
while true do
io.write("Enter a word (ctrl+d exits): ")
io.stdout:flush()
local w = io.read()
if not w then break end
print("Sugestion:", assert( spell.correct(w) ))
end
print()
|
if settings.startup["Noxys_Trees-tree_dying_factor"].value > 0.00001 then
data.raw.fire["fire-flame-on-tree"].tree_dying_factor = settings.startup["Noxys_Trees-tree_dying_factor"].value
end
local mul = settings.startup["Noxys_Trees-emission_multiplier"].value
if mul ~= 1 then
for _,v in pairs(data.raw.tree) do
if ... |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" )
local utils = require(GetScriptDirectory() .. "/util")
local mutil = req... |
--[[
// BigInteger.js
// Available under Public Domain
// https://github.com/Yaffle/BigInteger/
// For implementation details, see "The Handbook of Applied Cryptography"
// http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf
]]
--[[
-- BigInteger.lua
-- Available under Public Domain
-- https://github.com/r... |
local AddonName, AddonTable = ...
-- WoD Toys
AddonTable.toys = {
-- Misc
109739, -- Star Chart
111476, -- Stolen Breath
113375, -- Vindicator's Armor Polish Kit
113540, -- Ba'ruun's Bountiful Bloom
113543, -- Spirit of Shinri
116120, -- Tasty Talador Lunch
117550, -- Angry Beehive
... |
-- The player class
local player = {}
player.__index = player
-- Constants
local PLAYER_MAXSPEED = 450
local PLAYER_ACCEL = 1500
local PLAYER_FRICTION = 400
local PLAYER_BULLET_COOLDOWN = 0.25
function player.new()
local self = setmetatable({}, player)
-- Constants
self.IFRAME_LENGTH = 1
-- Variables
self.x... |
project "ImGui"
kind "StaticLib"
staticruntime "on"
language "C++"
cppdialect "C++17"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-obj/" .. outputdir .. "/%{prj.name}")
files
{
"include/imgui/imconfig.h",
"include/imgui/imgui.h",
"src/imgui.cpp",
"src/imgui_draw.cpp",
"inclu... |
local _, TRB = ...
local _, _, classIndexId = UnitClass("player")
if classIndexId == 1 then --Only do this if we're on a Warrior!
local barContainerFrame = TRB.Frames.barContainerFrame
local resourceFrame = TRB.Frames.resourceFrame
local castingFrame = TRB.Frames.castingFrame
local passiveFrame = TRB.Frames.passive... |
local pluginv = require(script.Parent.Parent.Parent.Library.Plugin)
local Selection = game:GetService("Selection")
local waypointModule = {
{
-- "WaypointPositionText" 1
{
{ "Name", "WaypointPositionText" },
{ "AnchorPoint", Vector2.new(1, 1) },
{ "BackgroundTransparency", 1 },
{ "BorderSizePixel", ... |
require "Client.Scripts.Modulus.RootUI.Data.SkillItemData" |
-----------------------------------
-- Area: Windurst Waters
-- NPC: Chamama
-- Involved In Quest: Inspector's Gadget
-- Starts Quest: In a Pickle
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require... |
--[[
Renamer.lua
--]]
local Renamer, dbg, dbgf = Object:newClass{ className = "Renamer", register = true } -- jre debug, and fmt debug funcs, as you prefer.
--- Constructor for extending class.
--
function Renamer:newClass( t )
return Object.newClass( self, t )
end
--- Constructor for... |
package("clhep")
set_homepage("https://proj-clhep.web.cern.ch/proj-clhep/")
set_description("CLHEP - A Class Library for High Energy Physics")
set_license("LGPL-3.0")
add_urls("https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-$(version).tgz", {version = function (version) return version:gsub("%+"... |
data:extend({
{
type = "item",
name = "biotech-big-wooden-pole",
icon = "__BioTech__/graphics/icons/big-wooden-pole.png",
flags = {"goes-to-quickbar"},
subgroup = "energy-pipe-distribution",
order = "a[energy]-b[small-electric-pole]",
place_result = "biotech-big-wooden-pole",
stack_size = 50,
fuel_v... |
local trigger_pickups = {}
function CreatePickupTrigger(modelid, x, y, z, will_be_destroyed, overwrite_event)
local pickup = CreatePickup(modelid, x, y, z)
local tbl = {}
tbl.id = pickup
tbl.model = modelid
tbl.destroy_next = will_be_destroyed
tbl.overwrite_event = overwrite_event
table.insert(t... |
PLUGIN.name = "Door Bust Charges"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "A Charge that can blow up the door."
if (CLIENT) then
local muzzleMaterials = {}
for i = 1, 8 do
muzzleMaterials[i] = Material("effects/fas_muzzle" .. i .. ".png", "SpriteCard")
muzzleMaterials[i]:SetInt("$additive", 1)
muzzleMateria... |
-- See LICENSE for terms
return {
PlaceObj("ModItemOptionToggle", {
"name", "EnableMod",
"DisplayName", T(302535920011303, "Enable Mod"),
"Help", T(302535920011793, "Disable mod without having to see missing mod msg."),
"DefaultValue", true,
}),
PlaceObj("ModItemOptionNumber", {
"name", "PercentDrop",
"... |
-- Author Pasky13
local pbase = 0xC00
local ppbase = 0xCC0
local ebase = 0x19C0
local epbase = 0xEC0
local xm
local ym
memory.usememorydomain("CARTROM")
function findbit(p)
return 2 ^ (p - 1)
end
function hasbit(x, p)
return x % (p + p) >= p
end
local function hex(val)
val = string.format("%X",val)
return... |
return {
lang = { "multiply" , "number" },
data = {
{"7x7","49",},
{"8x7","56",},
{"9x7","63",},
},
}
|
local playsession = {
{"mewmew", {823670}},
{"flooxy", {1016935}},
{"brfbrf", {60574}},
{"pickles28", {3710}},
{"matjojo", {239492}},
{"snoetje", {798732}},
{"epicmonkey159", {1426}},
{"PuttPutt98", {928965}},
{"Piewdennis", {464597}},
{"adam1285", {701226}},
{"14nickel", {6105}},
{"Connor15_", {81892}},
{... |
local ObjectManager = require("managers.object.object_manager")
PadawanTrials = ScreenPlay:new {}
function PadawanTrials:doPadawanTrialsSetup(pPlayer)
local sui = SuiMessageBox.new("JediTrials", "emptyCallback")
if (not JediTrials:isEligibleForPadawanTrials(pPlayer)) then
sui.setTitle("@jedi_trials:padawan_trial... |
local baloon
local frames={}
local activeframe
function love.load()
baloonw=75.5 -- largura do balão
baloonh=78 -- altura do balão
positionx, positiony=250, 250 --variável que armazena a posição do balão
scale=1 --escala do balão
timecontrol=400 -- variável que controla a velocidade em que um balão explode
... |
require("commons")
data:extend({
{
type = "string-setting",
allowed_values = itemsSettingValues,
default_value = defaultItemsSettingValue,
name = spawnItemsSettingName,
setting_type = "runtime-global",
order = "a"
},
{
type = "string-setting",
allowed_values = itemsSettingValues,
default_value = d... |
return {
text = 0
,private = 1
,voice = 2
,group = 3
,category = 4
,news = 5
,store = 6
}
|
function ghost(t, ...)
local g = {}
local exc = {...}
local check = {}
for i = 1, #exc do
check[exc[i]] = true
end
for i = 1, #t do
if not check[i] then
g[#g + 1] = t[i]
end
end
return g
end
|
-- Player Service
-- pobammer
-- August 2, 2020
local Players = game:GetService("Players")
local PointsService = game:GetService("PointsService")
local ConfigurationModule
local Data
local DisplayService
local PointsService
local Promise
local PromiseModule
local TeamService
local PlayerService = {Client = {}}
loca... |
object_building_player_yt1300 = object_building_player_shared_yt1300:new {
}
ObjectTemplates:addTemplate(object_building_player_yt1300, "object/building/player/yt1300.iff")
|
local skynet = require "skynet"
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIENT,
unpack = skynet.tostring,
}
local CMD = {}
local playerList = {}
local curMoveIndex = nil
local nameList = {}
local chessMap = {}
local curGate
function CMD.enterRoom(source, gate, username, userid)
if #playe... |
ui = {}
require "ui/button"
require "ui/slider"
require "ui/checkBox"
require "ui/textBox"
function mouseOver( x, y, w, h )
local mx = love.mouse.getX()
local my = love.mouse.getY()
return mx >= x and mx <= x + w and my >= y and my <= y + h
end
function pointInsideRectangle( mx, my, x, y... |
-------------------ModuleInfo-------------------
--- Author : jxy
--- Date : 2020/10/04 01:58
--- Description :
--- https://github.com/JomiXedYu/JxCode.LuaSharp
------------------------------------------------
---@class SysLib.IOException : SysLib.Exception
local IOException, base = class.extends("SysL... |
object_draft_schematic_chemistry_medpack_enhance_health_triad_a = object_draft_schematic_chemistry_shared_medpack_enhance_health_triad_a:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_enhance_health_triad_a, "object/draft_schematic/chemistry/medpack_enhance_health_triad_a.iff")
|
local UTILITY = require(script:GetCustomProperty("TalentSelectorUtility"))
local TALENT_TREES = script:GetCustomProperty("TalentTrees"):WaitForObject()
local PLAYER_STATE_GROUP = script:GetCustomProperty("PlayerStateGroup"):WaitForObject()
local PLAYER_STATE_TEMPLATE = script:GetCustomProperty("PlayerStateTemplate")
l... |
-----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- !pos ? ? ? 50
-----------------------------------
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
require("scripts/globals/porter_moogle_util")
local e =
{
TALK_EVENT_ID = 957,
... |
workspace "jsolibrary"
architecture "x86_64"
configurations { "Debug", "Release" }
flags {"MultiProcessorCompile"}
outputdir = "%{cfg.system}-%{cfg.architecture}"
filter "system:windows"
systemversion "latest"
include "jsolibrary"
group "examples"
include "examples/01"
group ""
|
--premake5.lua - Build File
project "MathLib"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "off"
pchheader "MathPCH.h"
pchsource "Source/MathPCH.cpp"
targetdir "%{wks.location}/%{prj.name}/Builds/%{cfg.buildcfg}/%{cfg.platform}"
objdir "%{wks.location}/%{prj.name}/Builds-Int/%{cfg.buildcf... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local unpack = unpack
local format = format
--WoW API / Variables
local HideUIPanel = HideUIPanel
local ShowUIPanel = ShowUIPanel
local function LoadSkin... |
local exports = {}
local wildcards = require("lettersmith.wildcards")
local filter = require("lettersmith.transducers").filter
local transformer = require("lettersmith.lazy").transformer
local table_utils = require("lettersmith.table_utils")
local merge = table_utils.merge
-- Create a plugin function that will keep ... |
local ls = require "luasnip"
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
local fmt = require("luasnip.extras.fmt").fmt
-- local rep = require("luasnip.extras").rep
local l = require("luasnip.extras").lambda
local f = ls.function_node
-- local d = ls.dynamic_node
-- local c = ls.choice_node
-- ... |
require "plugin/img2D"
local img=API.load_img("data/sss.png",4)
print(img.comp)
local block=get_editable_block(img)
local w,h=#block,#block[1]
print(block.width,block.height)
w=math.floor(w/2)
h=math.floor(h/2)
for i=w-10,w+10 do
for j=h-10,h+10 do
set_block_color(block,i,j,255,0,0,255)
end
end
API.save_img(... |
local replyTimeout = 30
local protocolName = "Lupus590:terminalOverRednet"
local protocolEvents = {
terminalCall = "terminal_call",
terminalResponce = "terminal_responce",
terminalError = "terminal_error",
inputEvent = "input_event",
connectionRequest = "connection_request",
connectionRe... |
-----------------------------------------
-- ID: 4430
-- Item: bowl_of_pumpkin_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 1 (cap 110)
-- Vitality -1
-- Agility 3
-- HP Recovered While Healing 5
-- Ranged Accuracy % 8 (cap 20)
-----------------------------------------
require(... |
local CallbackHandler = LibStub('CallbackHandler-1.0')
local SocketMiddleware = LibStub('NetEaseSocketMiddleware-2.0')
local BroadMiddleware = LibStub('NetEaseBroadMiddleware-2.0')
local AceTimer = LibStub('AceTimer-3.0')
local AceEvent = LibStub('AceEvent-3.0')
local MAJOR, MINOR = 'SocketHandler-2.0', 20
lo... |
SGL_FONT_ID_INVALID = 0xFFFF
SGL_MOV_ID_INVALID = 0xFFFF
SGL_SOUND_ID_INVALID = 0xFFFF
SGL_SPRITE_ID_INVALID = 0xFFFF
SGL_TEX_ID_INVALID = 0xFFFF |
function getPlayerDoor()
local world = getElementDimension(localPlayer)
if world == 0 then
return false
else
local doors = getElementsByType("pickup")
for _, door in ipairs(doors) do
if(tonumber(getElementData(door, "door.exitvw")) == world) then
return ... |
---
-- @classmod AnimatedSpritesheetPlayer
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local RunService = game:GetService("RunService")
local BaseObject = require("BaseObject")
local Maid = require("Maid")
local AnimatedSpritesheetPlayer = setmetatable({... |
function GM:CanPlayerSuicide(ply)
return not RPGM.Config.DisableSuicide
end |
describe("empty parsing", function()
setup(function()
TOML = require "toml"
end)
it("empty", function()
local obj = TOML.parse""
local sol = {}
assert.same(sol, obj)
end)
end)
|
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Yor", 557, 536)
if not mod then return end
mod:RegisterEnableMob(22927)
-- mod.engageId = 250 --no boss frames
-- mod.respawnTime = 0 -- no idea
---------------------------------... |
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Muckvix
-- Involved in Mission: Magicite
-- !pos -26.824 3.601 -137.082 245
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Lower_Jeuno/IDs")
-----------------------------------
function onTrade(... |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetNil",
targetAniEffect = "",
arg_list = {
weapon_id = 68471
}
},
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetNil",
targetAniEffect = ""... |
local Fluid = require("lib.fluid")
local Lit = Fluid.component(function(e, direction)
e.direction = direction
end)
return Lit
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.