content stringlengths 5 1.05M |
|---|
--------------------------------
-- @module Liquid
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Liquid] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#Liqui... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_doom_doom... |
-- Copyright 2015-2021 Mitchell. See LICENSE.
-- Retrieves the API documentation for function name *symbol* in lexer language
-- *lang* and returns its signature in snippet form for insertion.
-- Documentation is read from API files in the `textadept.editing.api_files`
-- table. As a result, if *symbol* is a full symb... |
-- --
-- made by ELF#0001 <- my discord --
-- 3dme made by Elio --
-- --
local logEnabled = false
function setLog(text, source)
local time = os.date("%d/%m/%Y %X")
local name = GetPlayerName(source)
local identifier = GetPlayerIdentifiers(source)
local data = time .. ' ... |
startx = 0
starty = 28
endx = 63
endy = 3
defineTile(".", "GRASS")
defineTile(":", "PAVED_ROAD")
defineTile("~", "DEEP_WATER")
defineTile("#", "WALL")
defineTile("'", "DOOR_OPEN")
defineTile("+", "DOOR_LOCKED")
defineTile("=", "FENCE")
defineTile("|", "TREE")
defineTile("F", "FOUNTAIN")
defineTile("W", "TO_WORLDMAP")... |
-- STRONGEST PUNCH SIMULATOR
local Page = MagmaHub:addPage("STRONGEST PUNCH SIMULATOR")
-- Auto Punch
local AutoPunch = Page:addToggle("Auto Punch")
Threads:Add(function()
while wait() do
if AutoPunch:IsEnabeld() then
local A_1 = { [1] = "Activate_Punch" }
local Event = game:GetSer... |
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local affine = require(current_folder .. ".lib.affine")
-- Storing a reference here since we will replace the function pointers later
local lgorigin = love.graphics.origin
local lgscale = love.graphics.scale
local lgrotate = love.graphics.rotate
local l... |
object_tangible_meatlump_event_meatlump_weapon_palette_01_04 = object_tangible_meatlump_event_shared_meatlump_weapon_palette_01_04:new {
}
ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_weapon_palette_01_04, "object/tangible/meatlump/event/meatlump_weapon_palette_01_04.iff")
|
local crash = require("hs.crash")
local settings = require("hs.settings")
crash.crashLogToNSLog = true ;
if settings.get("_asm.crashIfNotMain") then
local function crashifnotmain(reason)
if not crash.isMainThread() then
print("crashifnotmain called with reason", reason) -- may want to remove t... |
local count = 0
for n = 1, math.huge do
start = math.ceil((10 ^ (n - 1)) ^ (1.0 / n))
count = count + 9 - start + 1
if start > 9 then
break
end
end
print(count)
|
local shell = require("shell")
local cpio = require("cpio")
local filesystem = require("filesystem")
local args, ops = shell.parse(...)
if ops.o or ops.output and args[1] then
local output = shell.resolve(args[1], true)
local archive = {}
while not io.stdin.closed or io.stdin:remaining() do
local line = io.stdin:... |
local remap_tbl = {};
remap_tbl[0] = 0;
remap_tbl[1] = 0;
-- special buttons:
-- 32 - presence
-- 33 - eraser presence
-- 1 - pen buttoN
-- 0 - pen on surface
-- eraser-button : doesn't respond (kernel level)
return {
label = "Elan Surface GO Pen",
name = "elan_9038_pen",
matchstr = "ELAN9038:00 04F3:261A",
aut... |
-- Modified the following part with the address and the auth code with your device.
url = 'http://192.168.1.204/sony/system'
headername = 'X-Auth-PSK'
headervalue = '0000'
function getPowerStatus()
local jsonbodygetstatus = '{\\"id\\":2,\\"method\\":\\"getPowerStatus\\",\\"version\\":\\"1.0\\",\\"params\\":[]}'
... |
local fps = 0
local deltaTime = 0
local isClear = { false, false }
local towerNightNum = 0
function updateValues(_deltaTime, _fps, _isClear, _towerNightNum)
deltaTime = _deltaTime
fps = _fps
isClear = _isClear
towerNightNum = _towerNightNum
deltaTime = _deltaTime
end |
local CreateBoneNode = {}
function CreateBoneNode.createWithExport(export,armatureName)
ccs.ArmatureDataManager:getInstance():addArmatureFileInfo(export)
local actor = ccs.Armature:create(armatureName)
return actor
end
return CreateBoneNode
|
return Def.ActorFrame{
--Background Colored 1p vs2p ------------------------------------------
LoadActor( "Background_ddr2013.png" )..{
InitCommand=cmd(zoom,1;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;setsize,1476,1476);
OnCommand=cmd(playcommand,"Animate");
AnimateCommand=cmd(rotationz,0;linear,60;rotationz,3... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
combat:setArea(area)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * ... |
local core = require 'core'
local process = require 'process'
local pmconfig = require 'plugins.lxpm.config'
local util = {}
---@param data string
---@param pattern string
---@return table,integer
function util.parse_data(data, pattern)
local result, size = {}, 0
for name, path, description in data:gmatch(pattern... |
--
-- I never tread... lightly.
-- Author: Dubpub
-- Date: 9/16/2015
-- Time: 4:24 PM
-- Use as you please, it's LUA for christ's sake.
--
--[[
-- Luther's main goal is basically to f**k your prison.
-- ]]
local Time = Game.Time;
local Delay = 10;
local KillDelay = 0;
local KillTime = 60;
local Ready = Time();
func... |
--
-- Includes
--
-- mod
local Defines = require('defines')
local Guibuild = require('gui_build')
local Guiconfig = require('gui_config')
local Csv = require('csv')
-- stdlib
local Entity = require('__stdlib__/stdlib/entity/entity')
local Is = require('__stdlib__/stdlib/utils/is')
local Graphtool =
... |
local HYutil = require("HYutil.HY")
local VC = require("HYutil.VC")
---------------------------------------------
-- NONLINEAR --------------------------------
---------------------------------------------
--v1.0
local NL = {
tag={collectConf=false, createVelocityCurve=false, createNLValues=false},
}
NL =... |
Package.Require("Configuration.lua")
-- Currently Grabbed Instruments
GrabbingInstrument = nil
IsHoldingAlt = false
-- When I grab an Instrument (called by Server)
Events.Subscribe("GrabInstrument", function(instrument)
-- Adds some notification when grabbing the Balloon Tool
Package.Call("sandbox", "AddNotificatio... |
e2function void entity:setPropVelocity( vector velocity )
if(not (this and this:IsValid())) then return end
local phys = this:GetPhysicsObject()
if IsValid( phys ) then
phys:SetVelocity(Vector(velocity[1], velocity[2], velocity[3]))
end
end
e2function void entity:setPropVelocityInstant( vector velocity )
... |
dofile( "data/scripts/lib/utilities.lua" )
dofile( "data/scripts/perks/perk_list.lua" )
function OnModPreInit()
end
function OnModInit()
end
function OnModPostInit()
end
function OnPlayerSpawned( player_entity )
if tonumber(StatsGetValue("playtime")) > 1 then
return
end
local START_WITH_PERK = "GLASS_CANNO... |
--[[ Description: CLinear class implements linear GNN module based on CMLinear but using L2 regularization with auto lambda determined by k-fold cross validation method.
]]
require 'math'
local dataLoad = dataLoad or require('./common_dataLoad.lua')
CMLinear = require('../lib_lua/CMLinear.lua')
CMLinearL2AutoLambda = ... |
local Class = require("facto.class")
local AbstractType = require("facto.gui.abstracttype")
local ListBox = Class.extend({}, AbstractType)
ListBox.type = "listbox"
ListBox.RuleSupports = {
"color", "height", "width", "font"
}
local function parse_items(items)
local retval = {}
for index, item in ipairs(it... |
--
-- Globals
--
Global = {}
Global.version = "2.0"
Global.debug = true
--
-- Libraries
--
local function loadLibrary(path)
local fn, err = loadfile(path)
if err then
error(err .. "\nFor file: " .. path)
end
local currentEnvironment = getfenv(1)
setfenv(fn, currentEnvironment)
fn()
end
loadLibrary(ro... |
-------------------------------------------------------------------
--// PROJECT: Union of Clarity and Diversity
--// RESOURCE: UCDhousing
--// DEVELOPER(S): Lewis Watson (Noki)
--// DATE: 09/12/2015
--// PURPOSE: Player interaction with the housing system.
--// FILE: \client.lua [client]
------------------------------... |
local tdots, tick, got_line1, undo_started, trailing_nl = 0, 0, false, false, false
function vim.paste(lines, phase)
local now = vim.loop.now()
local is_first_chunk = phase < 2
local is_last_chunk = phase == -1 or phase == 3
if is_first_chunk then -- Reset flags.
tdots, tick, got_line1, undo_started, trail... |
--[[
cel is licensed under the terms of the MIT license
Copyright (C) 2011-2012 by Matthew W. Burk
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 limitatio... |
local S = aurum.get_translator()
awards.register_award("aurum_awards:fertilizer", {
title = S"You Cannot Eat Money",
description = S"Place 15 fertilizer.",
requires = {"aurum_awards:eat"},
difficulty = 1,
icon = minetest.inventorycube("aurum_farming_fertilizer.png", "aurum_farming_fertilizer.png", "aurum_farming_... |
---
---Lua 脚本启动ab
--- Created by Yoki.
--- DateTime: 2019/2/11 13:54
---
local string loc_sceneName=nil
local string loc_abName=nil
local string loc_assetName=nil
--导入xlua包
local util=require("xlua.util")
--实例化ab核心管理类
local abManager=CS.AssetBundleMgr
local abObj=abManager.Instance
--加载ab包
local... |
--- === mjolnir._asm.ipc ===
---
--- Home: https://github.com/asmagill/mjolnir_asm.ipc
---
--- Interface with Mjolnir from the command line.
---
--- To install the command line tool, you also need to install `mjolnir._asm.ipc.cli`.
---
--- This module is based primarily on code from the previous incarnation of Mjolnir ... |
--- AUTO GENERATED OUTPUT from Ghidra script "ari-structure-extractor.py" on 2021-11-28_17:09:33
return {
[1] = {
["name"] = "_ARIMSGDEF_GROUP01_bsp",
[10] = {
name = "AriACK",
mtlvs = {1},
tlvs = {
[1] = {
codec = {
... |
object_tangible_furniture_flooring_tile_frn_flooring_tile_s66 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s66:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s66, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s66.iff")
|
local typedefs = require "kong.db.schema.typedefs"
return {
token_to_header_extractor = {
name = "token_to_header_extractor",
primary_key = { "id" },
generate_admin_api = true,
fields = {
{ id = typedefs.uuid },
{ created_at = typedefs.auto_timestamp_s },
... |
--ラーバモス
function c877563430.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(877563430,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,877563430)
e1:SetCondition(c87756... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Effects = {
PlaceObj('EnableRandomStoryBit', {
'StoryBits', {
"MartianVice_Crash",
"MartianVice_NoCrash",
},
'Weights', {
50,
50,
},
}),
},
Enables = {},
NotificationTex... |
Names = Names or {}
-- @see https://en.wikipedia.org/wiki/Nymph
Names.greekAlphabet = {
"Alpha",
"Beta",
"Gamma",
"Delta",
"Epsilon",
"Zeta",
"Eta",
"Theta",
"Iota",
"Kappa",
"Lambda",
"Mu",
"Nu",
"Xi",
"Omicron",
"Pi",
"Rho",
"Sigma",
"Tau",... |
-- med.lua
-- Created by wugd
-- 登录相关模块
-- 声明模块名
ME_D = {}
setmetatable(ME_D, {__index = _G})
local _ENV = ME_D
local me_rid
local me_agent
local request = nil
local _enter_game = false
-- 进入游戏第一次更新玩家数据
function me_updated(agent, data)
local item_list = remove_get(data, "item_list") or {}
local equip_list = ... |
local filesystem = require('gears.filesystem')
-- Thanks to jo148 on github for making rofi dpi aware!
local with_dpi = require('beautiful').xresources.apply_dpi
local get_dpi = require('beautiful').xresources.get_dpi
local rofi_command = 'env /usr/bin/rofi -no-cycle -dpi ' .. get_dpi() .. ' -width ' .. with_dpi(400) ... |
local fs = require('diagnosticls-configs.fs')
return {
sourceName = 'prettier_eslint',
command = fs.get_executable('prettier-eslint', 'node'),
args = { '--stdin', '--stdin-filepath', '%filepath' },
rootPatterns = { '.git' },
}
|
--[[
# **********************************************************************
# Conky Panels / NET
#
# A simple display panel to monitor network activity.
#
# Author: Vladislav Dmitrievich Turbanov
# Repository: https://github.com/vladipus/conky-panels
# License: BSD
#
# Some elements were based on this theme:
# http:/... |
local M = {}
local fn = vim.fn
local fmt = string.format
---generate a custom highlight group
---@param index integer
---@param side string
---@param section table
---@param guibg string
local function create_hl(index, side, section, guibg)
local name = fmt("BufferLine%sCustomAreaText%d", side:gsub("^%l", string.upp... |
-- sites to look at
-- https://www.shadertoy.com/view/4dfGDM
-- https://github.com/shiffman/The-Nature-of-Code-Cosmos-Edition/blob/master/stars/StarNestShaderDome/data/stars.glsl
-- http://glsl.heroku.com/
local myShader = nil
local time
function love.load()
time = 0
myShader = love.graphics.newShader[[
exter... |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.perlls = {
default_config = {
cmd = {"perl",
"-MPerl::LanguageServer",
"-e", "Perl::LanguageServer::run","--",
"--port 13603", "--nostdio 0", "--version 2.1.0"};
settings = {
perl = {
perlCmd =... |
local connect = require('websocket-client')
local registry = require('types')
local makeRpc = require('rpc')
local codec = require('websocket-to-message')
local log = require('log').log
-- config.id - agent id
-- config.token - agent auth token
-- config.proxy - ws(s):// url to proxy server without path
-- config.ca -... |
-- FZF (ctrl+p)
vim.api.nvim_set_keymap("n", "<C-p>", ":FZF<CR>", {noremap = true, silent = true})
-- Leader <space>
vim.g.mapleader = " "
-- Toggle NERDTree
vim.api.nvim_set_keymap("n", "<leader>t", ":NERDTreeToggle<CR>", {noremap = true, silent = true})
-- Makrdown Preview
vim.api.nvim_set_keymap("n", "<Leader>m"... |
--
-- User: pat
-- Date: 10/22/15
--
local NoUpdateLookupTable, parent = torch.class('nn.NoUpdateLookupTable', 'nn.LookupTable')
function NoUpdateLookupTable:accGradParameters(input, gradOutput, scale)
end
function NoUpdateLookupTable:updateParameters(learningRate)
end |
local function handleTarget(unit)
unit = unit or "target"
if not UnitExists(unit) then
return
end
-- Bail out if target is not a rare/rareelite
local targetType = UnitClassification(unit)
if targetType ~= "rare" and targetType ~= "rareelite" then return end
local rareName, _ = UnitName(unit)
local rareHealt... |
-----------------------------------
-- Area: Behemoth's Dominion
-- HNM: Behemoth
-----------------------------------
local ID = require("scripts/zones/Behemoths_Dominion/IDs")
mixins = {require("scripts/mixins/rage")}
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/title... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Effects = {
PlaceObj('RewardPrefab', {
'Amount', 1,
'Prefab', "TriboelectricScrubber",
}),
PlaceObj('RewardTechBoost', {
'Field', "Physics",
'Research', "TriboelectricScrubbing",
'Amo... |
local M = {}
local Z = {}
function M.init(use)
use {
'nvim-lualine/lualine.nvim',
requires = 'kyazdani42/nvim-web-devicons',
}
return Z;
end
local function diff_source()
local gitsigns = vim.b.gitsigns_status_dict
if gitsigns then
return {
added = gitsigns.added,
modified = gitsigns.... |
--Start of Global Scope---------------------------------------------------------
local DOT_DECO = View.ShapeDecoration.create()
DOT_DECO:setLineColor(255, 255, 255) -- white
DOT_DECO:setPointSize(0.5)
local EDGE_DECO = View.ShapeDecoration.create()
EDGE_DECO:setLineColor(59, 156, 208) -- blue
EDGE_DECO:setLineWidth(... |
--[[
Mana 1.0.2
This mod adds mana to players, a special attribute
License: WTFPL
]]
--[===[
Initialization
]===]
mana = {}
mana.playerlist = {}
mana.settings = {}
mana.settings.default_max = 200
mana.settings.default_regen = 10
mana.settings.regen_timer = 10
do
local default_max = tonumber(minetest.setting_get(... |
local AddonName, AddonTable = ...
AddonTable.bfd = {
-- Ghamoo-Ra
151433, -- Thick Shellplate Shoulders
6907, -- Tortoise Armor
6908, -- Ghamoo-Ra's Bind
151432, -- Twilight Turtleskin Leggings
-- Domina
11121, -- Darkwater Talwar
3078, -- Naga Heartpiercer
132554, -- Deadly ... |
local Util = require("Util/Util")
Util:MakeDir("out")
Util:MakeDir("out/export")
local m = {}
local function WriteFile(path, text)
--print("Writing", path)
local file = io.open(path, "w")
file:write(text)
file:close()
end
function m:ExportSystems(folder)
Util:MakeDir(format("%s/system", folder))
for _, system ... |
local GoodsInfoView = BaseClass(UINode)
function GoodsInfoView:Constructor( )
self.viewCfg = {
prefabPath = ResPath.GetFullUIPath("common/GoodsInfoView.prefab"),
canvasName = "Normal",
components = {
{UI.Background, {is_click_to_close=true, alpha=0.5}},
},
}
self.model = BagModel:GetInstance()
end
funct... |
local local0 = 0.3
local local1 = 0 - local0
local local2 = 0 - local0
function OnIf_225030(arg0, arg1, arg2)
if arg2 == 0 then
WarderA_Sword225030_ActAfter_RealTime(arg0, arg1)
end
return
end
function WarderA_Sword225030Battle_Activate(arg0, arg1)
local local0 = {}
local local1 = {}
l... |
-- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Mixins\MaturityMixin\client.lua
-- - Dragon
function MaturityMixin:OnMaturityUpdate(deltaTime)
PROFILE("MaturityMixin:OnMaturityUpdate")
local fraction = 1.0
-- TODO: maturity effects, s... |
ToshUnitFrames = LibStub("AceAddon-3.0"):NewAddon("ToshUnitFrames", "AceEvent-3.0", "AceConsole-3.0")
ToshUnitFrames.versionString = GetAddOnMetadata("ToshUnitFrames", "Version")
local insert = table.insert
local defaults = {
profile = {
regions = {},
},
global = {
options = {
width = 700,
height = 500,
... |
local ctx = require"luaossl.rand"
return ctx
|
function onVehicleTakeDamage(loss)
-- source to pojazd
if not isVehicleOccupied(source) then
-- nie ma ludzi w środku
else
-- są
end
end
addEventHandler("onVehicleDamage", getRootElement(), onVehicleTakeDamage) |
--[[
FiveM Scripts
Copyright C 2018 Sighmir
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
at your option any later version.
Th... |
local color = require("joueur.ansiColorCoder")
local socket = require("socket")
local function isModuleAvailable(name)
if package.loaded[name] then
return true
else
for _, searcher in ipairs(package.searchers or package.loaders) do
local loader = searcher(name)
if type(l... |
JSON = (loadfile "Utility/JSON.lua")()
LevelManager = {
jsonObject
}
function LevelManager:parseJSON(fileName)
local contents, size = love.filesystem.read(fileName, size)
LevelManager.jsonObject = JSON:decode(contents)
end
function LevelManager:getNumLevels()
return table.getn(LevelManager.jsonObject["levels"])
... |
local oop = require 'src/oop'
local battle = require 'battle/battle'
local proto = oop.class {
visible = true,
active = true,
}
-- [[ Internal functions ]]
function proto:init (world)
end
-- [[ Overloadable functions ]]
function proto:update (world)
end
function proto:collide (world, with)
end
function proto... |
local tui_terminfo = require "tui.terminfo"
local caps, names
if arg[1] and arg[1]:match("/") then
caps, names = assert(tui_terminfo.open(arg[1]))
else
caps, names = assert(tui_terminfo.find(arg[1]))
end
print(names[#names])
local lines = {}
for k, v in pairs(caps) do
if type(v) == "string" then
v = string.forma... |
local U = require("utilities")
local au = require("au")
local g = vim.g
-- Use <c-space> to trigger completion.
U.map("i", "<c-space>", "coc#refresh()", { noremap = true, silent = true, expr = true })
vim.cmd([[
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
" position. Coc only does sni... |
local cPointDisplay = LibStub("AceAddon-3.0"):NewAddon("cPointDisplay", "AceConsole-3.0", "AceEvent-3.0", "AceBucket-3.0")
local LSM = LibStub("LibSharedMedia-3.0")
local db
cPointDisplay.Types = {
["GENERAL"] = {
name = "General",
points = {
[1] = { name = "Combo Points", id = "cp", barcount = 5, fullcount = ... |
--- A task to combine multiple files into one which are then executed within a virtual file system.
-- @module howl.modules.tasks.Pack
local assert = require "howl.lib.assert"
local dump = require "howl.lib.dump"
local fs = require "howl.platform".fs
local mixin = require "howl.class.mixin"
local rebuild = require "ho... |
----------------------------------------------------------------------------------------------------
--
-- Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
--
-- SPDX-License-Identifier: Apache-2.0 OR MIT
--
--
-... |
function Player:onBrowseField(position)
return true
end
function Player:onLook(thing, position, distance)
local description = "You see "
description = description .. thing:getDescription(distance)
if thing:isMonster() then
description = description .. thing:getDescription(distance)
local master = thing:getMast... |
-- User story: https://github.com/SmartDeviceLink/sdl_core/issues/1898
--
-- Precondition:
-- 1) SDL and HMI are started.
-- 2) Media app is registered.
-- 3) Media app in FULL.
-- Description:
-- Media HMI Level resumption is not canceled after unexpected disconnect during active embedded audio source.
-- Steps to rep... |
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
vim.fn.sign_define("DiagnosticSignError",
{text = " ", texthl = "DiagnosticSignError"})
vim.fn.sign_define("DiagnosticSignWarn",
{text = " ", texthl = "DiagnosticSignWarn"})
vim.fn.sign_define("DiagnosticSignInfo",
... |
help([[
]])
local pkgName = myModuleName()
local pkgVersion = myModuleVersion()
local pkgNameVer = myModuleFullName()
local hierA = hierarchyA(pkgNameVer,1)
local compNameVer = hierA[1]
local compNameVerD = compNameVer:gsub("/","-")
--io.stderr:write("compNameVer: ",compNameVer,"\n")
--io.stderr:write("co... |
client_script 'client/client.lua' --your NUI Lua File
client_script '@es_extended/locale.lua'
server_script '@es_extended/locale.lua'
server_script '@mysql-async/lib/MySQL.lua'
server_script 'server.lua'
ui_page 'client/html/UI.html' --THIS IS IMPORTENT
--[[The following is for the files which are need for you UI (lik... |
local gvt = require 'luagravity'
local env = require 'luagravity.env.simple'
local _start, _stop = 0, 0
local f_start = function(v)
v = v or 0
_start = _start + 1
return v + 1
end
start = gvt.create(f_start, {name='start',zero=true})
local f_stop = function(v)
v = v or 0
_stop = _stop + 1
re... |
local ls = require("luasnip")
local uv = vim.loop
local function json_decode(data)
local status, result = pcall(vim.fn.json_decode, data)
if status then
return result
else
return nil, result
end
end
local sep = (function()
if jit then
local os = string.lower(jit.os)
if os == "linux" or os == "osx" or os ... |
---@class RDSBedroomZed : zombie.randomizedWorld.randomizedDeadSurvivor.RDSBedroomZed
---@field private pantsMaleItems ArrayList|Unknown
---@field private pantsFemaleItems ArrayList|Unknown
---@field private topItems ArrayList|Unknown
---@field private shoesItems ArrayList|Unknown
RDSBedroomZed = {}
---@private
---@pa... |
-- WRK: https://github.com/wg/wrk
-- ./wrk -s benchmark.lua -d 10s -t 2 http://localhost:8084/
math.randomseed(os.time())
wrk.method = "POST"
request = function()
wrk.body = string.format("https://kfd.me/%s", tostring(math.random(1,999999)))
return wrk.format(nil, "/")
end
|
local Mod = GameMain:GetMod("CanVox.NewCharRandomizer")
Mod.CharData.GenFixture = Mod.CharData.GenFixture or {}
GenFixture = Mod.CharData.GenFixture
function GenFixture:SetNpc(npc)
self.Npc = npc
self.NpcFiveBase = {}
self.NpcSkillLevels = {}
self.NpcSkillLove = {}
self.NpcSkillAddion = {}
sel... |
pcre2 = require("pcre2adapter")
local nativeHandle = pcre2.regcomp("(a)(s)(d)", 0);
local result3 = pcre2.regexec(nativeHandle, "asd");
for k,v in pairs(result3) do
print (k,v);
end
|
include("terms")
hund = math.random(9) ;
ten = math.random(9);
unit = math.random(10) - 1;
numb_r = hund* 100 + ten * 10 + unit
sign = math.random(2)
diff = 2 + math.random(7)
if (sign == 1 ) then
znak = "<"
numb_l = numb_r - diff
else
znak = ">"
numb_l = numb_r + diff
end
cifre ... |
-- watch wifi and make volume 0 when getting off home network
wifiWatcher = nil
homeSSID = "home_network_name"
lastSSID = hs.wifi.currentNetwork()
function ssidChangedCallback()
newSSID = hs.wifi.currentNetwork()
if newSSID == homeSSID and lastSSID ~= homeSSID then
-- We just joined our home WiFi netw... |
--[[
Functions explained in a nutshell:
ATTACK FUNCTIONS
kbAlertTOGGLE(true) --Make sure this code is added to the first time you use the alert function to add it to the game scene, otherwise nothing will appear.
kbAttackTOGGLE(true) --Make sure this code is added to the first time you use the attack function to add i... |
----------------------------------------------------------------------
-- JSON base
JSON = { null = {}, codec = {} }
function JSON.register(_class, _name, _object_to_table, _table_to_object)
local codec = { class = _class, name = _name, serialize = _object_to_table, unserialize = _table_to_object }
JSON.codec[_cla... |
--[[
Lua implementation of HSLuv and HPLuv color spaces
Homepage: http://www.hsluv.org/
Copyright (C) 2019 Alexei Boronine
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, inc... |
local palette = require("palette")
local color = palette.draw()
if color == nil then color = "никакой. Че, серьезно? Вообще ничего не выбрал? Во петух, а?" end
print(" ")
print("Выбранный цвет = "..tostring(color))
print(" ")
|
name = "Anywhere Leveler"
author = "MeltWS"
description = [[Simple yet effective leveler using PathFinder]]
local pf = require "Pathfinder/MoveToApp" -- requesting table with methods
local mapExp = "Dragons Den"
local levelGoal = 98 -- scripts prevents Evolution so be carefull.
local xpTargets = {1,... |
local Map = require 'map'
local Block = require 'enemy-block'
local Fly = require 'enemy-fly'
local Fish = require 'enemy-fish'
local Room = require 'rooms'
return Map(80, 0.02, {4, 1, 0.5, 0}, {
Room('nine', 2),
Room('quad', 2),
Room('hall3', 5)
}, {
{4, Block, 1.5, 'enemies'},
{7, Fly, 2, 'enemies'},
{2, Fish,... |
--//////////////////////////////////////////////////////////////////////
--************************
--FloorEntity
--************************
local FloorConsts = require('field.FloorConsts')
FloorEntity = {}
FloorEntity.__index = FloorEntity
function FloorEntity.new(id, name)
local self = setmetatable({}, FloorEnti... |
local followchars = true;
local xx = 255.95;
local yy = 365;
local xx2 = 1222.9;
local yy2 = 455;
local ofs = 50;
local ofs2 = 25;
local del = 0;
local del2 = 0;
function onCreate()
-- background shit
makeLuaSprite('france', 'gemzone', -600, -300);
makeLuaSprite('skybox', 'sky', -600, -300);
se... |
local reaper = reaper
-- Set package path to search within directory containing current script.
local path = ({reaper.get_action_context()})[2]:match('^.+[\\//]')
package.path = string.format('%s?.lua;%s?/init.lua', path, path)
local Shell = require("utils/shell")
local ReaperAPI = require("api/reaper_api")
local Util... |
--
-- Wholly
-- Written by scott@mithrandir.com
--
-- This was inspired by my need to replace EveryQuest with something that was more accurate. The pins
-- was totally inspired by QuestHubber which I found when looking for a replacement for EveryQuest. I
-- initially made a port of QuestHubber to QuestHubberGrail to ... |
-- --------------------
-- 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... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Category = "Tick_FounderStageDone",
Effects = {},
EnableChance = 20,
Enabled = true,
Image = "UI/Messages/Events/05_mysterious_stranger.tga",
Prerequisites = {
PlaceObj('CheckObjectCount', {
'La... |
-- ======================================================================
-- Copyright (c) 2012 RapidFire Studio Limited
-- All Rights Reserved.
-- http://www.rapidfirestudio.com
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
... |
local skynet = require "skynet"
local log = require "log"
local config = require "config"
local redis_conf = skynet.getenv "redis"
local name = config (redis_conf)
local connection = {}
skynet.start(function()
skynet.dispatch("lua", function (session, from, dbname)
if connection[dbname] then
skynet.ret(skynet.p... |
repeat
k = math.random(19)
print(k)
if k == 10 then break end
print(math.random(19)
until false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.