content stringlengths 5 1.05M |
|---|
local p = {}
function p.setup()
print('setup from mod1')
end
function p.plugin()
print('plug from mod1')
end
return p
|
--- @ignore
CLGAMEMODESUBMENU.priority = 0
CLGAMEMODESUBMENU.title = ""
local function Invert(data, value)
if data.inverted then
return not value
else
return value
end
end
function CLGAMEMODESUBMENU:Populate(parent)
local item = self.item
local form = vgui.CreateTTT2Form(parent, "header_equipment_setup")
... |
local u = false;
local r = 0;
local shot = false;
local agent = 1
local health = 0;
local xx = 420.95;
local yy = 313;
local xx2 = 952.9;
local yy2 = 350;
local ofs = 50;
local followchars = true;
local del = 0;
local del2 = 0;
function onCreate()
-- background shit
makeLuaSprite('city', 'backcity', -200, -500);
s... |
mgmini = {}
local modpath = minetest.get_modpath("mgmini")
dofile(modpath .. "/util.lua")
dofile(modpath .. "/api.lua")
|
if character_1.charge_gauge == 100 and turn == 1 then
booleans["assault_time"] = true
end
if booleans["assault_time"] == nil then
if turn == 1 then
Summon(1)
character_3:UseSkill(1)
character_3:UseSkill(2)
character_2:UseSkill(2)
character_1:UseSkill(4)
EnableChargeAttack()
end
if turn == 2 then
character_4... |
--[[
_____ ___ ______ _____
|_ _| / _ \| ___ \_ _|
| | _ __ ___ __ _ __ _ ___ / /_\ \ |_/ / | |
| || '_ ` _ \ / _` |/ _` |/ _ \ | _ | __/ | |
_| || | | | | | (_| | (_| | __/ | | | | | _| |_
|____/_| |_| |_|\__,_|\__, |\___| \_| |_|_| |____... |
--[[ MOB SPAWN LIST
mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>);
--]]
mob("", 645, 1, 1, 26, 5, 57, 5256.22, 5330.27, 0);
mob("", 646, 1, 1, 26, 5, 57, 5256.22, 5330.27, 0);
mob("", 645, 1, 1, 26, 5, 57, 5254.1, 5376.58, 0.18... |
require "luaClass.init"
_ENV=namespace "battle"
using_namespace "luaClass"
class ("Item"){
public{
FUNCTION.Item(function(self,name,number)
self.name=name
self.number=number
end);
FUNCTION.showInfo(function(self)
print(self.name,self.number)
e... |
-- local reference to the translator
local S = factory.S
local dig_limit = minetest.settings:get("factory_minerDigLimit") or 512
local forceload_limit = 1
factory.miner = {}
function factory.miner.afterdig(pos)
for i = 1, dig_limit do
local node = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z})
if node.nam... |
local Et = require "etlua"
local Petrinet = require "petrinet"
local Mt = {}
local Marking = setmetatable ({}, Mt)
Marking.__index = Marking
function Mt.__call (_, t)
if getmetatable (t) == Petrinet then
local petrinet = t
local result = setmetatable ({}, Marking)
for _, place in petrinet:p... |
local function get_item_by_char(tbl, val)
-- input tbl:
-- {
-- { "a", 0 },
-- { "b", 3, 4, 6 },
-- }
-- input val:
-- "b"
--
-- result:
-- nil or { "b", 3, 4, 6 }
for _, v in ipairs(tbl) do
if v[1] == val then
return v
end
end
return nil
end
-- calculate character index in ... |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
local MYSQL_DATABASE_PROVISION = 1
wOS = wOS or {}
wOS.ALCS = wOS.ALCS or {}
wOS.ALCS.Storage = wOS.ALCS... |
--
-- Copyright (c) 2022 outdead.
-- Use of this source code is governed by the MIT license
-- that can be found in the LICENSE file.
--
-- LastDay mod created for Last Day server.
--
LDTraderMenu = {
Currency = "Base.CreditCard",
Items = {
Drinks = {},
Smuggling = {},
VehicleMaintenanc... |
vim.g.vimtex_compiler_method='latexmk'
vim.g.vimtex_view_method='zathura'
vim.g.vimtex_fold_enabled=0
-- Compile on initialization, cleanup on quit
vim.api.nvim_exec(
[[
augroup vimtex_event_1
au!
au User VimtexEventQuit call vimtex#compiler#clean(0)
au User VimtexEv... |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local CardTypeLoader = class('CardTypeLoader')
require 'socket'
local cjson = require('cjson.safe')
function CardTypeLoader.loadFromLua()
local s1, s2, s3
print('start to load allCardTypes.lua')
s1 = socket.gettime()
require('allCardTypes')
s2 = socket.gettime()
... |
local status_ok, cosmic_ui = pcall(require, "cosmic-ui")
if not status_ok then
vim.notify("Cosmic-ui not found!")
return
end
cosmic_ui.setup({
-- default border to use
-- 'single', 'double', 'rounded', 'solid', 'shadow'
border = "rounded",
rename = {
prompt = "",
-- nui popup options
popup_opts = {
pos... |
-- Lua 5.3 standard library
-- For more information, see <<Lua 5.3 Reference Manual>>.
-- https://www.lua.org/manual/5.3/manual.html
-- function assert(v, opt message)
function assert(v, message)
end
-- function collectgarbage(opt option, opt arg)
function collectgarbage(option, arg)
end
-- function do... |
-- Dialogue for NPC "npc_graham"
loadDialogue = function(DL)
if (not DL:isConditionFulfilled("npc_graham", "talked")) then
DL:setRoot(1)
else
DL:setRoot(2)
end
if (not DL:isConditionFulfilled("npc_graham", "talked")) then
DL:createNPCNode(1, -2, "DL_Graham_Hey") -- Oh, hello! You really came from th... |
function SpawnPoints()
return {
unemployed = {
{ worldX = 44, worldY = 22, posX = 54, posY = 44, posZ = 0 },
},
}
end |
local Class = require "lib.hump.Class"
local Vector = require "lib.hump.Vector"
local BodyTypes = require "constants.BodyTypes"
local Signals = require "constants.Signals"
local Constants = require "constants.Constants"
local Tile = require "Tile"
local World = Class{}
function World:init(width, height, tile... |
--[[
Copyright 2017 wrxck <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local fact = {}
local mattata = require('mattata')
local json = require('dkjson')
function fact:init()
fact.commands = mattata.commands(
self.info.username
):command('fact')... |
---
-- @classmod RagdollableClient
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Players = game:GetService("Players")
local BaseObject = require("BaseObject")
local RagdollableConstants = require("RagdollableConstants")
local CharacterUtils = require(... |
--- GENERATED CODE - DO NOT MODIFY
-- AWS Elemental MediaConvert (mediaconvert-2017-08-29)
local M = {}
M.metadata = {
api_version = "2017-08-29",
json_version = "1.1",
protocol = "rest-json",
checksum_format = "",
endpoint_prefix = "mediaconvert",
service_abbreviation = "MediaConvert",
service_full_name = "AW... |
-- =============================================================
-- b_mover_asteroids.lua
-- Mover Behavior - Drag Object (Self)
-- Behavior Type: Instance
-- =============================================================
--
-- =============================================================
--[[
FUNCTIONS... |
local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
P["AuraWatch"].SpellList = {
["DEATHKNIGHT"] = {
{
Name = "P_BUFF_ICON",
Direction = "LEFT",
Mode = "ICON",
Interval = 3,
Alpha = 1,
IconSize = 42,
Position = {"BOTTOMLEFT", "ElvUF_Player"... |
dofile(minetest.get_modpath("mobs").."/api.lua")
mobs:register_mob("mobs:dirt_monster", {
type = "monster",
hp_max = 16,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
visual = "mesh",
mesh = "mobs_stone_monster.x",
textures = {"mobs_dirt_monster.png"},
visual_size = {x=3, y=2.6},
makes_footstep_sound = tr... |
function giveGui()
local screenW, screenH = guiGetScreenSize()
giveWindow = guiCreateGridList((screenW - 262) / 2, (screenH - 303) / 2, 262, 303, false)
guiSetAlpha(giveWindow, 0.90)
guiSetProperty(giveWindow, "AlwaysOnTop", "True")
guiSetVisible(giveWindow,false)
local curText = ""
giveWindowEditboxQuant = gui... |
local cluster_reactor = assert(yatm.cluster.reactor)
local cluster_thermal = yatm.cluster.thermal
if not cluster_thermal then
return
end
local function heat_exchanger_refresh_infotext(pos, node)
local meta = minetest.get_meta(pos)
local infotext =
cluster_reactor:get_node_infotext(pos) .. "\n" ..
clust... |
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local vicious = require("vicious")
local naughty = require("naughty")
-- Spacers
volspace = wibox.widget.textbox()
volspace:set_text(" ")
-- {{{ BATTERY
-- Battery attributes
local bat_state = ""
local bat_charge = 0
... |
function onCreate()
-- background shit
makeLuaSprite('ytback', 'ytback', 0, 0);
scaleLuaSprite('ytback', 3, 3);
setLuaSpriteScrollFactor('ytback', 0.9, 0.9);
addLuaSprite('ytback', false);
makeLuaSprite('thumbnail', 'thumbnail', 200, 100);
scaleLuaSprite('thumbnail', 1.2, 1.2);
se... |
--! unifiedmissile
--@ commons periodic missiledriver unifiedmissile
-- Unified missile main
MyMissile = UnifiedMissile.new(Config)
GuidanceInfos = {
{
Controller = MyMissile,
MinAltitude = Limits.MinAltitude,
MaxAltitude = Limits.MaxAltitude,
MinRange = Limits.MinRange * Limits.MinRange,
... |
local featuredata =
{
from =
{
{ name = "liquid-naphtha", type = "fluid", tier = 3 },
{ name = "liquid-mineral-oil", type = "fluid", tier = 3 },
{ name = "liquid-fuel-oil", type = "fluid", tier = 3 },
{ name = "liquid-nutrient-pulp", type = "fluid", tier = 3 },
{ name = "angels-mono-silicon", type = "item... |
--破壊の代行者 ヴィーナス
--
--Script by Trishula9
function c101107021.initial_effect(c)
--self spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101107021,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,101107021)
e1:SetCost(... |
Change the Username to your username, run it with c/ and in the commandbar, Credit to Pixel for making it able to log more than one person at a time, otherwise i made it. Its not to be traded and is to stay inside this archive
|
-- alnbox, alignment viewer based on the curses library
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use
describe("alnbox.dnaCells", function()
it("defines background colors for DNA letters", function()
local curses = require 'rote.cursesConsts'
local dnaCells = require('... |
wine = {}
local def = minetest.get_modpath("default")
local snd_d = def and default.node_sound_defaults()
local snd_g = def and default.node_sound_glass_defaults()
local snd_l = def and default.node_sound_leaves_defaults()
local sand = "default:desert_sand"
-- check for MineClone2
local mcl = minetest.get_modpath("m... |
local utf8 = require("utf8")
GameOverState = Class{__includes = BaseState}
function GameOverState:init(params)
self.name = "GameOverState"
self.background = Background(MENU_BACKGROUND)
self.score = params.score
self.playerName = ""
self.cursor = "_"
self.cursorTimer = Timer.every(0.5, function... |
--- Gather informations from the environment.
-- @module env
-- @usage env(project)
local fs = require 'luarocks.fs'
local utils = require 'love-release.utils'
local ver = utils.love.ver
local pipe = {}
--- Gets the version of the installed LÖVE.
-- @treturn ver LÖVE version.
-- @local
local function getSystemLoveV... |
local router = require 'routing.router'
local user_urls = {
{'', 4, name='user'},
{'/groups', 5, name='user_groups'},
{'/group/{group:w}', 6, name='user_group'}
}
local membership_urls = {
{'users', 2, name='user_list'},
{'users/add', 3, name='add_user', args={user_id=''}},
{'user/{user_id:i}',... |
--[[
Copyright 2018 Sean McNamara <smcnam@gmail.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, publ... |
#!/usr/bin/lua
--[[
This script can be used to mount iso images
run from the CLI with image as a parameter or
add it to your right click menu with the %f parameter
--]]
-- Set all required variables
IMAGE = arg[1]
HOME = os.getenv("HOME")
MOUNTPOINT = HOME .. "/" .. "mnt"
COMMAND = IMAGE .. " " .. MOUNTPOINT
-- Now ... |
local notePos = Position(32598, 32381, 10)
local function removeNote(position)
local noteItem = Tile(position):getItemById(8700)
if noteItem then
noteItem:remove()
end
end
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.actionid ~= 12509 then
return false
end
if player:ge... |
local load_config = require 'espeon.util.load_config'
local detect_serial_port = require 'espeon.util.detect_serial_port'
local exec = require 'espeon.util.exec'
return {
description = 'Flash the firmware specified in ./espeon.conf to a connected ESP',
execute = function()
local serial_port = detect_serial_po... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
{ affix = "", "(20-29)% more Monster Life", statOrder = { 1416 }, level = 0, group = "MapMonsterLife", types = { ["Map"] = true, }, },
{ affix = "", "(30-39)% more Monster Life", statOrder = { 1416 }, level = 0, group... |
local F, C = unpack(select(2, ...))
local MISC = F:GetModule('Misc')
local mailButton = CreateFrame('Button', 'FreeUIMailButton', InboxFrame, 'UIPanelButtonTemplate')
local text = F.CreateFS(mailButton, 'pixel', '', nil, true, 'CENTER', 0, 0)
local processing = false
local function OnEvent()
if(not MailFrame:IsSho... |
-- * Copyright © 2021 Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
-- * SPDX-License-Identifier: Apache-2.0
-- Knora GUI-case: create a thumbnail
require "send_response"
server.setBuffer()
for imgindex,imgparam in pairs(server.uploads) do
end
result = {
me = "Lukas",
... |
---@class TraitCollection : zombie.characters.traits.TraitCollection
---@field private m_activeTraitNames List|Unknown
---@field private m_traits List|Unknown
TraitCollection = {}
---@public
---@param arg0 int
---@return String
function TraitCollection:get(arg0) end
---@public
---@return boolean
function TraitCollect... |
local _M = {}
_M.NONE = 0
_M.JIEHU = 1
_M.XUELIU = 2
_M.XUEZHAN = 3
return _M |
-- config: (lint (only doc:unordered-versions))
--- A module
--
-- @since 1.0
-- @changed 1.1
-- @since 1.2
|
-- loops, lookups, tables
function table_push_back(t, val)
table.insert(t, val);
end
function table_erase(t, val)
for i = 1, table.getn(t) do if val == table[i] then table.remove(t, i) return true end end
return false;
end
function table_erase_at(t, index)
table.remove(t, inex);
end
function table_find(contai... |
return {
tag = 'sourcePlayback',
summary = 'Set the playback position of the Source.',
description = 'Seeks the Source to the specified position.',
arguments = {
{
name = 'position',
type = 'number',
description = 'The position to seek to.'
},
{
name = 'unit',
type = 'T... |
local M = {}
M.projectDir = lfs.currentdir()
M.filter = {
extensions = {},
folders = {}
}
-- show buffer w
function M.showFileSearch()
local tempFolders = {}
-- copy folders to new table
for i, folder in ipairs(M.filter.folders) do
table.insert(
tempFolders,
M.projectDir .. '\\' .. folder
... |
local reference = {
["particles/units/heroes/hero_antimage/antimage_manavoid.vpcf"] = "particles/rubick_manavoid.vpcf",
["particles/units/heroes/hero_crystalmaiden/maiden_freezing_field_explosion.vpcf"] = "particles/rubick_freezing_field_explosion.vpcf",
["particles/units/heroes/hero_crystalmaiden/maiden_freezing_f... |
-- Decorations
local decRegion = View.PixelRegionDecoration.create()
decRegion:setColor(250, 0, 0, 100)
local planeDeco = View.ShapeDecoration.create()
planeDeco:setFillColor(0, 255, 255, 80)
planeDeco:setLineColor(0, 255, 255)
planeDeco:setLineWidth(3)
-- Creating classifier and select font
local fontClassifierPlast... |
--[[
Recompute a fixed value, i.e. a value that was set at an offset from a reference
point. Used for moving around elements with a fixed size or fixed position.
Examples:
- Recompute X value fixed at an offset of 60 from the center of the screen:
recomputeFixedValue(1020, 960, 1296) = 1356
- Recompute Y value fi... |
--[[
===================================
Target Id and Name Tracking
===================================
This class provides a buffer to remember monster target names for a given targetUnitId for a short duration, since
sometimes during a kill event, the target name shows up as empty.
I thi... |
-- 컨트롤
local util = require('__core__.lualib.util')
_initiated_session_ = false
require('modules.register_event')
--[[
download :
https://mods.factorio.com/mod/gvv
github :
https://github.com/x2605/gvv
--]]
-- Copy & paste following code at the end of empty line of "control.lua" file of other mod or savefile or s... |
require("prototypes.belts.belts")
local base_locomotive = data.raw["locomotive"]["locomotive"]
local group_name = "locomotive"
if base_locomotive and base_locomotive.fast_replaceable_group then
group_name = base_locomotive.fast_replaceable_group
else
base_locomotive.fast_replaceable_group = group_name
end
for... |
local API_NPC = require(script:GetCustomProperty("API_NPC"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local RANGE = 3500.0
local COOLDOWN = 14.0
local DAMAGE = 25.0
local SPEED = 2000.0
local currentTasks = {}
function GetPriority(npc, taskHistory)
return 1.0
end
function OnTaskSt... |
function love.conf(t)
t.title = "TROSH: The Movie: The Game"
t.author = "Maurice"
t.console = false
t.screen = t.window
t.screen.vsync = true
t.screen.width = 800
t.screen.height = 600
t.screen.msaa = 16
end
function math.mod(a, b)
return a % b
end
|
local MJ_CARDS_TYPE = {
[1] = "🀇",
[2] = "🀈",
[3] = "🀉",
[4] = "🀊",
[5] = "🀋",
[6] = "🀌",
[7] = "🀍",
[8] = "🀎",
[9] = "🀏",
[11] = "🀐",
[12] = "🀑",
[13] = "🀒",
[14] = "🀓",
[15] = "🀔",
[16] = "🀕",
[17] = "🀖",
[18] = "🀗",
[19] = "🀘",
[21] = "🀙",
[22] = "🀚",
[23] = "🀛",
[24] = "... |
local super = require "ui.widget"
return class {
typename = "InputField",
super = super,
ctor = function (self, native)
super.ctor(self, native)
if native then
end
end,
-- text = {
-- getter = function (self)
-- return self.__native.text... |
-- CLASSES
-- SYMBOLETOKEN
SymboleToken = {type = '', value = 0, line = 0, column = 0}
function SymboleToken:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
o.value = o.value or o.type
o.line = 0
o.column = 0
return o
end
function SymboleToken:dump() print(dump(self)) end
-... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by MoMo.
--- DateTime: 2018/11/7 16:56
---
local _class = {}
function _class:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function _class:setupUI(containerView)
self.userIcon = ImageView()
self.userIcon:marginTop(13):ma... |
local util = require("moonscript.util")
local data = require("moonscript.data")
local ntype
ntype = require("moonscript.types").ntype
local user_error
user_error = require("moonscript.errors").user_error
local concat, insert
do
local _obj_0 = table
concat, insert = _obj_0.concat, _obj_0.insert
end
local unpack
unpa... |
--必须在这个位置定义PROJECT和VERSION变量
--PROJECT:ascii string类型,可以随便定义,只要不使用,就行
--VERSION:ascii string类型,如果使用Luat物联云平台固件升级的功能,必须按照"X.X.X"定义,X表示1位数字;否则可随便定义
PROJECT = "I2C"
VERSION = "2.0.0"
PRODUCT_KEY = "v32xEAKsGTIEQxtqgwCldp5aPlcnPs3K"
-- 日志级别
require "log"
LOG_LEVEL = log.LOGLEVEL_TRACE
require "sys"
require "utils"
require ... |
local _, ADDON = ...
------------------------------------------------------------
local function Clear()
os.execute("cls")
end
------------------------------------------------------------
local function Pause()
print("Press enter to continue...")
io.read()
end
---------------------------------... |
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
description 'ANTI CHEAT ACTIVATED'
client_script 'wd_client.lua'
server_script 'wd_server.lua'
|
local importations = require(IMPORTATIONS)
local bearSpriteManager = require(importations.BEAR_SPRITE)
local birdSpriteManager = require(importations.BIRD_SPRITE)
local eagleSpriteManager = require(importations.EAGLE_SPRITE)
local tigerSpriteManager = require(importations.TIGER_SPRITE)
local physics = require(importati... |
Weapon.PrettyName = "PDW-57"
Weapon.WeaponID = "arccw_p90"
Weapon.DamageMultiplier = 0.8
Weapon.WeaponType = WEAPON_PRIMARY |
local function newelem(v)
return {
next = {},
prev = {},
val = v,
remove = function(elem)
elem.prev.next = elem.next
elem.next.prev = elem.prev
end,
append = function(elem, v)
local nl = newelem(v)
nl.prev = elem
nl.next = elem.next
elem.next.prev = nl
elem.next = nl
end,
prepend... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Category = "Tick_BeforeFounders",
Effects = {},
EnableChance = 40,
Enabled = true,
Image = "UI/Messages/Events/08_arrival.tga",
Prerequisites = {},
ScriptDone = true,
Text = T(534101555685, --[[Sto... |
local shell = require("shell")
local driver = require("driver")
local dy = 0
local buf = ""
local rw, rh = driver.gpu.getResolution()
while not io.stdin.closed do
local b = io.stdin:read(math.huge)
if b then
buf = buf .. b
end
while buf:find("\n") do
local idx = buf:find("\n")
local line = buf:sub(1, idx)
... |
local function insert(key, value)
local ok, data = pcall(box.space.kv_store.insert, box.space.kv_store, { key, value })
if not ok then
return nil, data
end
return data
end
local function get(key)
local ok, data = pcall(box.space.kv_store.get, box.space.kv_store, key)
if not ok then
... |
local sql_constructor = require('acid.sql_constructor')
function test.make_fields(t)
for _, raw_fields, exp_fields, desc in t:case_iter(2, {
{
{
field_foo = {
data_type = 'bigint',
},
},
{
field_foo = {... |
--- LuaDist UNIX and Windows system functions
-- Peter Drahoš, LuaDist Project, 2010
-- Original Code contributed to and then borrowed back from the LuaRocks Project
--- Host system dependent commands.
-- Override the default UNIX commands if needed for your platform.
-- Commands currently depend on popen and unzip be... |
local M = {}
local function get_scopes()
return vim.tbl_flatten {'_', vim.split(vim.bo.filetype, '.', true)}
end
local default_config = {
snippet_dirs = nil,
hl_group = nil,
}
M.get_scopes = get_scopes
M.selected_text = ''
M.namespace = vim.api.nvim_create_namespace('snippy')
M.config = vim.tbl_extend('f... |
----------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0238-Keyboard-Enhancements.md
----------------------------------------------------------------------------------------------------
-... |
function move_player()
if start_menu == false then
gravity=0.2 --bigger means more grav
player.dy+=gravity
--jump
if (btnp(2) or btnp(🅾️)) then
player.dy-=5
sfx(0)
end
--move to new position
player.y+=player.dy
--update
player.score+=player.speed
else
player.y = 64
end
end |
local FuelSystem = GetSelf()
--初始化加载要用lua文件
dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.script_path.."Systems/electric_system_api.lua")
dofile(LockOn_Options.script_path.."utils.lua")
dofile(LockOn_Options.script_path.."command_defs.lua")
--设置循环次数
local update_rate = 0.05 -- 20... |
LinkLuaModifier("telekenetic_blob_expel_modifier", "heroes/telekenetic_blob/telekenetic_blob_expel_modifier.lua", LUA_MODIFIER_MOTION_BOTH )
telekenetic_blob_expel = class({})
function telekenetic_blob_expel:CastFilterResultLocation(vLocation)
if IsClient () then
return UF_SUCCESS
end
local hCaster = self:GetC... |
-- util function to define autocmds
-- global table to hold our functions
_autofuncs = {}
-- current bindfunc index
local autofunc_i = 0
return function(event, pattern, action)
-- if we pass in a lua function
if type(action) == "function" then
-- make a vim readable expression that will call our function
... |
local game = Instance.new("DataModel")
local workspace = game:GetService("Workspace")
assert(workspace.Parent == game)
assert(workspace.ClassName == "Workspace") |
local CM = ClickMorph
if CM.isRetail then return end
iMorphV1 = CreateFrame("Frame")
iMorphV1:RegisterEvent("PLAYER_ENTERING_WORLD")
iMorphV1:RegisterEvent("PLAYER_LOGOUT")
iMorphV1:RegisterEvent("ADDON_LOADED")
-- iMorphV1:RegisterEvent("PLAYER_MOUNT_DISPLAY_CHANGED")
iMorphV1:SetScript("OnEvent", function(self, eve... |
require("consts")
local function load_img(path_and_name)
local img = love.image.newImageData(path_and_name)
if img == nil then
return nil
end
-- print("loaded asset: "..path_and_name)
local ret = love.graphics.newImage(img)
ret:setFilter("nearest","nearest")
return ret
end
function load_img_from_sup... |
require "Object"
class(NSError, Object);
function NSError:code()
return tonumber(runtime::invokeMethod(self:id(), "code"));
end
function NSError:domain()
return runtime::invokeMethod(self:id(), "domain");
end
function NSError:localizedDescription()
return runtime::invokeMethod(self:id(), "localizedDescr... |
-----------------------------------
-- Area: Hall of the Gods
-- NPC: Cermet Gate
-- Gives qualified players access to Ru'Aun Gardens.
-- !pos 0 -12 48 251
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/titles")
---------------------... |
function Setup()
Require("GameObject", "UnityEngine");
Require("Transform", "UnityEngine");
Require("Vector3", "UnityEngine");
end
function Start()
transform = GameObject.FindWithTag("Enemy").transform;
end
function Update()
transform.position = Vector3.up;
end |
return function(Vargs, env)
local server = Vargs.Server;
local service = Vargs.Service;
local Settings = server.Settings
local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs... |
local mod = DBM:NewMod(1732, "DBM-Nighthold", nil, 786)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15190 $"):sub(12, -3))
mod:SetCreatureID(103758)
mod:SetEncounterID(1863)
mod:SetZone()
--mod:SetUsedIcons(8, 7, 6, 3, 2, 1)
--mod:SetHotfixNoticeRev(12324)
mod.respawnTime = 30--or 35 or ... |
set_project("dexbox")
set_xmakever("2.3.3")
add_rules("mode.debug", "mode.release", "mode.releasedbg")
add_requires("tbox 1.6.5", {debug = is_mode("debug")})
if is_plat("windows") then
if is_mode("release") then
add_cxflags("-MT")
elseif is_mode("debug") then
add_cxflags("-MTd")
end
... |
MgrAds = {}
function MgrAds.Init ()
end
function MgrAds.ShowScreenAds ()
end
function MgrAds.ShowRewardVideo ()
end
function MgrAds.ShowBanner ()
end
function MgrAds.ShowBannerABS ()
end
function MgrAds.HideBanner ()
end
function MgrAds.ShowNativeBanner ()
end
function MgrAds.ShowNativeBannerABS ()
end
... |
local c;
local player = Var "Player";
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt");
local Pulse = THEME:GetMetric("Combo", "PulseCommand");
local PulseLabel = THEME:GetMetric("Combo", "PulseLabelCommand");
local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom");
local NumberMaxZoom = THEME:GetMe... |
-- This file was generated automatically with a tool.
productions = {}
table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Silicon", amount=4}}, garbages={}})
table.insert(productions, {factory="Gas Collector ${size}", factoryStyle="Collector", ingredients={},... |
object_intangible_pet_beast_master_bm_blackwing_rancor = object_intangible_pet_beast_master_shared_bm_blackwing_rancor:new {
}
ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_blackwing_rancor, "object/intangible/pet/beast_master/bm_blackwing_rancor.iff")
|
local awful = require("awful")
local config = {
terminal = "org.gnome.Terminal.desktop",
settings = "gnome-control-center.desktop",
apps = {
"org.gnome.Calendar.desktop",
{"teams.desktop", name = "Microsoft Teams"},
"com.skype.Client.desktop",
"us.zoom.Zoom.desktop",
... |
local profile = PROFILEMAN:GetProfile(PLAYER_1)
local frameX = 10
local frameY = 250+capWideScale(get43size(120),90)
local frameWidth = capWideScale(get43size(455),455)
local scoreType = themeConfig:get_data().global.DefaultScoreType
local score
local song
local steps
local alreadybroadcasted
local alreadybroadcasted
... |
--Settings:
local RemoteIgnores = {
["RemoteFunction"] = true;
["RemoteEvent"] = true;
["BindableFunction"] = false;
["BindableEvent"] = false;
}
------------------------------------------
local MrSpyV2RebugKurokkusGhost = Instance.new("ScreenGui")
local Hub = Instance.new("TextButton")
local Main = Instance.new(... |
--USAGE
-- Add an empty object with transform and tag it as "Ambient".
-- The object will be automatically added to the list of points that will be randomly chosen to play a random sfx from a list found below
-- VARIABLES ===================================================================
local constructed = false
... |
local _CUR = ...
local _M = {
InitializeTimer = cc.import(".InitializeTimer", _CUR),
}
return _M
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.