content stringlengths 5 1.05M |
|---|
-----------------------------------------
-- Spell: Regen IV
-- Gradually restores target's HP.
-----------------------------------------
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
... |
local Config = require('vgit.core.Config')
return Config:new({
GitBackgroundPrimary = 'Normal',
GitBackgroundSecondary = {
gui = nil,
fg = nil,
bg = nil,
sp = nil,
override = false,
},
GitBorder = 'LineNr',
GitLineNr = 'LineNr',
GitComment = 'Comment',
GitSignsAdd = {
gui = nil,
... |
require 'drhayes.options'
require 'drhayes.augroup'
require 'drhayes.plugins'
-- Do all our key mappings.
local keyMappings = require 'drhayes.keyMappings'
keyMappings.initKeymap()
local a = vim.api
a.nvim_exec([[
if has ("autocmd")
filetype plugin indent on
endif
]], '')
a.nvim_command(':cabbrev h vert bo h... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local WIDGET, VERSION = 'InputBox2', 1
local GUI = LibStub('NetEaseGUI-2.0')
local InputBox2 = GUI:NewClass(WIDGET, 'EditBox', VERSION, 'Owner')
if not InputBox2 then
return
end
function InputBox2:Constructor()
self:SetBackdrop{
bgFile = [[Interface\DialogFrame\UI-DialogBox-Background]],
... |
require('src/test')
require('src/core')
require('src/builtins')
require('src/contextlib')
require('src/objects')
require('src/logic')
require('src/string')
require('src/system')
describe('string',
it('startswith', function()
assert(('\nabc'):startswith('\n'), 'Startswith \\n')
assert(not ('abc'):star... |
--[[
Export.lua
--]]
local FtpExport, dbg, dbgf = Export:newClass{ className = 'FtpExport' }
--- Constructor for extending class.
--
function FtpExport:newClass( t )
return Export.newClass( self, t )
end
--- Constructor to create the export object that represents the export dialog box.
-- ... |
Config = {
MaxLifetime = 60.0 * 3.0, -- In seconds, how long the blip takes to fade out.
} |
local Resolver = {}
Resolver.URLs = {
"^https?://[A-Za-z0-9%.%-]*%.?youtu%.be/([A-Za-z0-9_%-]+)",
"^https?://[A-Za-z0-9%.%-]*%.?youtube%.com/watch%?.*v=([A-Za-z0-9_%-]+)",
"^https?://[A-Za-z0-9%.%-]*%.?youtube%.com/v/([A-Za-z0-9_%-]+)",
"^[A-Za-z0-9%.%-]*%.?youtu%.be/([A-Za-z0-9_%-]+)",
"^[A-Za-z0-... |
------------------------------------------------------------
-- Highmaul.lua
--
-- Abin
-- 2014/10/19
------------------------------------------------------------
local module = CompactRaid:GetModule("RaidDebuff")
if not module then return end
local TIER = 6 -- The Warlords of Draenor
local INSTANCE = 477 -- Highmau... |
local core = require('hw.arm.luaqemu.core')
local json = require('hw.arm.luaqemu.json')
machine_cpu = 'cortex-r4'
memory_regions = {
region_rom = {
name = 'mem_rom',
start = 0x8000000,
size = 0x20000
},
region_ram = {
name = 'mem_ram',
start = 0x20000000,
si... |
require "love.graphics"
serialization_version = 1.0
return
{
anim_width = 32,
anim_height = 32,
animations =
{
heart =
{
frame_rate = 5,
frames = {
frame0={image="IMGID",quad=love.graphics.newQuad(0,0,32,32,64,64), xpos = 0, ypos = -8, rot = 0, xscale = 1, yscale = 1, xpivot = 16, yp... |
local utf8 = require 'arken.utf8'
local test = {}
test.should_return_lower_case_string = function()
local str = 'ALÇA'
assert( string.len(str) == 5 )
assert( utf8.len(str) == 4 )
end
return test
|
-- Lexer.lua/Patterns.lua
-- String patterns the lexer uses to search and identify types
-- Always start patterns with ^ to indicate the beginning, and never use $ at end
local patterns = {
{
pattern = "^%[%[.-%]%]",
name = "string"
},
{
pattern = "^([\"']).-%1",
name = "string"
},
{
pattern = "^0x%w+",... |
object_tangible_storyteller_prop_pr_droid_race = object_tangible_storyteller_prop_shared_pr_droid_race:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_droid_race, "object/tangible/storyteller/prop/pr_droid_race.iff")
|
local Q = require 'Q'
local qconsts = require 'Q/UTILS/lua/q_consts'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local Scalar = require 'libsclr'
require 'Q/UTILS/lua/strict'
local tests = {}
tests.t1 = function()
local n_idx = 65
local n_val = n_idx
local idx = Q.seq( {start = 0, by = 1, qtype =... |
return PlaceObj("ModDef", {
"title", "MDS Laser Cheats",
"id", "ChoGGi_MDSLaserCheats",
"steam_id", "2428918892",
"pops_any_uuid", "69f8402d-8226-4928-828d-b564c5942673",
"lua_revision", 1001569,
"version", 2,
"version_major", 0,
"version_minor", 2,
"image", "Preview.jpg",
"author", "ChoGGi",
"code", {
"Co... |
modifier_antimage_mana_break_lua = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_antimage_mana_break_lua:IsHidden()
return true
end
function modifier_antimage_mana_break_lua:IsPurgable()
return false
end
-----------------------------... |
-- BN class
--
-- The BN (stands for big number) is used to represent either float or big integers.
-- It uses the lua-bint library to perform operations on large integers.
-- The compiler needs this class because Lua cannot work with integers large than 64 bits.
-- Large integers are required to work with uint64,
-- t... |
_, _, _, _, _, _, val = reaper.get_action_context()
reaper.SetExtState("reaticulate", "command", "set_default_channel=" .. tostring(val), false)
|
local colors = require("base46").get_colors "base_30"
return {
NvimTreeEmptyFolderName = { fg = colors.folder_bg },
NvimTreeEndOfBuffer = { fg = colors.darker_black },
NvimTreeFolderIcon = { fg = colors.folder_bg },
NvimTreeFolderName = { fg = colors.folder_bg },
NvimTreeGitDirty = { fg = colors.red },
... |
RUNNER = {}
local id = 0
function RUNNER:New()
id = id + 1
return setmetatable({tests = {}, name = string.format("unnamed runner #%d", id)}, RUNNER)
end
function RUNNER:Test()
for tid, tname in ipairs(self.tests) do
self.tests[tid] = TEST:New()
self.tests[tid].name = self.name .. "::" .. s... |
--[[
This is just the empty tank.
]]
local Directions = assert(foundation.com.Directions)
local table_copy = assert(foundation.com.table_copy)
local FluidStack = assert(yatm_fluids.FluidStack)
local FluidTanks = assert(yatm_fluids.FluidTanks)
local FluidMeta = assert(yatm_fluids.FluidMeta)
local fluid_tank_tiles =... |
local skynet = require "skynet"
local memory = require "skynet.memory"
local socket = require "skynet.socket"
local _caches = {}
local function get_data(key)
local cache = _caches[key]
if cache then
if os.time() <= cache.deadline then
return cache.data
end
_caches[key] = nil... |
local item = FindInTable(ItemSpawnerManager.itemCategories, "category", "FoodVendorInventory")
item.group =
{
{ class = "SeedsBeets", percent = 100 },
{ class = "SeedsBrushPeas", percent = 100 },
{ class = "SeedsCarrots", percent = 100 },
{ class = "SeedsPotatoes", percent = 100 },
{ class = "SeedsWatermelo... |
local Root = script:FindFirstAncestor("BarrierCreator")
local Roact = require(Root.dependencies.Roact)
local e = Roact.createElement
local MouseGhostSphere = require(script.Parent.Parent.components.mouseGhostSphere)
local BarrierPlacer = require(script.Parent.Parent.components.barrierPlacer)
local Dictionary = requir... |
--[[
Copyright (c) 2020 jakub-vesely
This software is published under MIT license. Full text of the licence is available at https://opensource.org/licenses/MIT
--]]
TinyBlockBase = require "tiny_block_base"
local Power = {}
Power.__index = Power
Power.InaAddresses = {
INA_I2C_0x40 = 0,
INA_I2C_0x41 = 1,
IN... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {
PlaceObj('Marsquake', {
'Epicenter', "MoholeMine",
'Radius', 160,
}),
},
Effects = {},
Enables = {
"Marsquake_MoreQuakes",
},
Prerequisites = {},
ScriptDone = true,
SuppressTime = 2160000,... |
print()
for cnt = 1, 10, 1 do
print(string.format("%2d: Hello from Lua script.", cnt))
end
|
local cfg = module("cfg/items")
for k,v in pairs(cfg.items) do
vRP.defInventoryItem(k,v[1],v[2])
end |
vim.g.mapleader = ' '
local keymap = require 'lib.utils'.keymap
keymap('n', '<leader>', '<NOP>')
keymap('n', '<leader><F5>', '<cmd>so $MYVIMRC<cr>')
-- clipboard
keymap('v', '<leader>y', '"+y')
keymap('n', '<leader>Y', '"+yg_')
keymap('n', '<leader>y', '"+y')
keymap('v', '<leader>p', '"+p')
keymap('v', '<leader>P',... |
-- TableauxProver
-- Copyright: Laborat'orio de Tecnologia em M'etodos Formais (TecMF)
-- Pontif'icia Universidade Cat'olica do Rio de Janeiro (PUC-Rio)
-- Author: Bruno Lopes (bvieira@inf.puc-rio.br
-- Edward Hermann (hermann@inf.puc-rio.br))
-- TableauxProver is licensed under a Creative Comm... |
--proc/icon: icon resources.
setfenv(1, require'winapi')
require'winapi.winuser'
ffi.cdef[[
HICON LoadIconW(
HINSTANCE hInstance,
LPCWSTR lpIconName);
BOOL DestroyIcon(HICON hIcon);
]]
IDI_APPLICATION = 32512
IDI_INFORMATION = 32516
IDI_QUESTION = 32514
IDI_WARNING = 32515
IDI_ERROR = 32... |
--
-- Created by IntelliJ IDEA.
-- User: Kunkka
-- Date: 6/21/17
-- Time: 16:15
-- To change this template use File | Settings | File Templates.
--
local shader = {}
shader.cachedGLPrograms = {}
function shader:addGLProgram(vPath, fPath)
local glProgram = cc.GLProgram:createWithFilenames(vPath, fPath)
if glPr... |
local gears = require("gears")
local awful = require("awful")
local buttons = gears.table.join(
-- awful.button({ }, 4, awful.tag.viewnext),
-- awful.button({ }, 5, awful.tag.viewprev)
)
return buttons
|
local class = require 'pl.class'
local M = class()
M._name = 'Eventbus'
function M:_init()
self.handlers = {}
end
function M:on(name, handler)
local t = self.handlers[name]
if t == nil then
self.handlers[name] = {[handler] = true}
else
t[handler] = true
end
end
function M:off(nam... |
function onCreate()
for i = 0, getProperty('unspawnNotes.length')-1 do
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Bomb Note' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'BOMBNOTE_assets');
setPropertyFromGroup('unspawnNotes', i, 'ignoreNote', true);
end
end
function noteMiss(... |
--[[
- PAP Engine ( https://github.com/viticm/plainframework1 )
- $Id bootstrap.lua
- @link https://github.com/viticm/plainframework1 for the canonical source repository
- @copyright Copyright (c) 2014- viticm( viticm@126.com/viticm.ti@gmail.com )
- @license
- @user viticm<viticm@126.com/viticm.ti@gmail.com>
- @... |
return require(script.Parent.Parent["sleitnick_option@1.0.3"]["option"])
|
local methods = require("null-ls.methods")
local h = require("null-ls.helpers")
local end_col_from_quote = h.diagnostics.adapters.end_col.from_quote.end_col
local severities = {
error = h.diagnostics.severities.error,
errors = h.diagnostics.severities.error,
warning = h.diagnostics.severities.warning,
... |
function testClose()
local output = io.output()
assert(io.type(output) == 'file')
output:close()
assert(io.type(output) == 'closed file')
assert(not io.stdout:close())
success, err_msg = pcall(io.close, output)
assert(not success)
assert(err_msg)
return true
end
function testF... |
return {
name = "Mage";
description = "An old tome of basic mana techniques for the apprentice mage.";
pointsGainPerLevel = 1;
startingPoints = 1;
lockPointsOnClassChange = true;
minLevel = 10;
maxLevel = 30;
-- visual attributes
layoutOrder = 2;
bookColor = Color3.fromRGB(11, 11... |
--[[
O is the global options object
Formatters and linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- general
O.auto_complete = true
O.auto_close_tree = 0
O.wrap_lines = false
O.document_highlight = false
-- python
-- add things like O.python.formatter.yapf.exec_pat... |
local state = {}
function state:enter(from)
self.from = from -- record previous state
end
function state:draw()
local W, H = love.graphics.getWidth(), love.graphics.getHeight()
-- draw previous screen
self.from:draw()
-- overlay with pause message
love.graphics.setColor(1, 0.2, 0.75, 0.65)
... |
t={}
function t:fn(x)
self.x=x
end
t:fn(1)
t.fn(t,1) |
local is_sublist = require('sublist')
describe('sublist', function()
it('should consider an empty list to be a sublist of an empty list', function()
assert.equal(true, is_sublist({}, {}))
end)
it('should consider an empty list to be a sublist of a non-empty list', function()
assert.equal(true, is_sublis... |
function create()
set("PlayState.autoCamZooming", false);
end
function onDadHit(note)
print(get("parameter1.strumTime"))
set("PlayState.autoCamZooming", true);
end |
describe('merge', function()
it('produces values from the first observable if it is the only argument', function()
local observable = Rx.Observable.fromRange(5):merge()
expect(observable).to.produce(1, 2, 3, 4, 5)
end)
it('unsubscribes from all input observables', function()
local observableA = Rx.Ob... |
streams = {
[0] = { "Radio Off", "" },
}
function getStreams()
return streams
end
function getStationsFromServer(streamsFromServer)
if streamsFromServer and #streamsFromServer > 0 then
streams = streamsFromServer
outputDebugString("Client: recieved "..(#streamsFromServer).." stations from server.")
end
end
ad... |
return {'eivol','eivorm','eivormig','eivlies','eivoer','eivliezen','eivolle','eivormige'} |
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer")
if not status_ok then
vim.notify("Unable to require nvim-lsp-installer", vim.lsp.log_levels.ERROR,
{title = "Plugin error"})
return
end
local servok, lsp_install_srv = pcall(require, "nvim-lsp-installer.servers")
if not servok... |
module( 'GameModule', package.seeall )
local GameModules = {}
local callbackModuleRelease = {}
local callbackModuleLoad = {}
function addGameModuleReleaseListener( func )
table.insert( callbackModuleRelease, func )
end
function addGameModuleLoadListener( func )
table.insert( callbackModuleLoad, func )
end
fu... |
mpackage = "dartmudlet"
|
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 9,
"version_minor", 6,
}),
},
"title", "Services Show Comfort Boost",
"id", "ChoGGi_ServicesShowComfortBoost",
"lua_revision", 1001569,
"steam_id", "22128... |
ITEM.name = "Supressed Lolife"
ITEM.desc = "A semi-automatic handgun fitted with a Silencer that fires .44 Magnum Rounds"
ITEM.model = "models/arxweapon/podonok.mdl"
ITEM.class = "m9k_mrp_padonak_silenced"
ITEM.weaponCategory = "sidearm"
ITEM.width = 2
ITEM.height = 1
ITEM.price = 300 |
function source_of_life(keys)
local caster = keys.caster
local target = keys.target
if Utils:is_real_hero(target) or target:IsClone() then
local ability = keys.ability
local damage = caster:GetLevel() * ability:GetSpecialValueFor("lvl_damage")
local damage_table = {
victi... |
object_tangible_furniture_modern_bar_piece_straight_s1_treasure_map = object_tangible_furniture_modern_shared_bar_piece_straight_s1_treasure_map:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_modern_bar_piece_straight_s1_treasure_map, "object/tangible/furniture/modern/bar_piece_straight_s1_treasure_map... |
-- Copyright 2022 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 ... |
hyper:bind({}, "l", function()
hs.caffeinate.lockScreen()
hyper.triggered = true
end)
|
--proc/richedit: standard richedit control.
setfenv(1, require'winapi')
ffi.cdef[[
]]
|
--[[---------------------------------------------------------
Name: Files
-----------------------------------------------------------]]
include('shared.lua')
--[[---------------------------------------------------------
Name: Initialize
-----------------------------------------------------------]]
function ENT:Initi... |
return {'eilaas','eilaci','eiland','eilandbestuur','eilandbewoner','eilanddeel','eilandelijk','eilandengroep','eilandenrijk','eilandenstaat','eilandenzee','eilander','eilandgebied','eilandgevoel','eilandsbestuur','eilandsraad','eilandstaat','eilandstation','eileider','eilieve','eiloof','eilandrepubliek','eilandhopping'... |
-- Table Inline Pass: Inlines table sets into the table declaration --
-- This works by indexing blocks backwards
-- If we find a set instruction on a table destination and the src does not use the declared table
-- or the parent tables then we can inline
--[[
Example:
local tab = {}
tab[1] = {}
tab[1][2] = "hi"
tab.... |
local reg = minetest.register_node
local mod = 'mystical_lands:'
-- earth nodes
local dirt_nodes = {
-- soils
{ description = 'Dark clay soil', name = 'dark_clay_soil', tile = 'mystical_lands_dark_clay_soil.png' },
{ description = 'Dark loam soil', name = 'dark_loam_soil', tile = 'mystical_lands_dark_loam_so... |
-- premake5.lua project solution script
cfg_systemversion = "latest" -- "10.0.17763.0" -- To use the latest version of the SDK available
-- solution
workspace "RayTracingProject"
configurations { "Debug", "Release" }
platforms { "Win32", "Win64" }
location "Build"
defines { "_CRT_SECURE_NO_WARNINGS... |
-- dofile('test_omni_rotar.lua')
m=m or require('omni')
local MAX_ITER = 4
local d=1000
local w = 0.4 --m/s
m.set_enable()
for i=1,MAX_ITER do
m.drive(0,0,w)
tmr.sleepms(d)
m.drive(0,0,-w)
tmr.sleepms(d)
end
m.set_enable(false)
--m.set_enable();m.raw_write(0,0,45);tmr.sleepms(2000);m.set_enable(false)
|
object_tangible_collection_rare_melee_nyenthioris = object_tangible_collection_shared_rare_melee_nyenthioris:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rare_melee_nyenthioris, "object/tangible/collection/rare_melee_nyenthioris.iff") |
local BaseClass = require "NJLI.STATEMACHINE.SceneEntityState"
local Loading = {}
Loading.__index = Loading
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--###########################... |
local config = require('config')
local CurrentAppType = config.application1.registerAppInterfaceParams.appHMIType
Test.appHMITypes = {DEFAULT = false, COMMUNICATION = false, MEDIA = false, MESSAGING = false, NAVIGATION = false, INFORMATION = false, SOCIAL = false, BACKGROUND_PROCESS = false, TESTING = false, SYSTEM = ... |
-- See LICENSE for terms
local mod_TurnOff
local mod_SkipGrids
local mod_SkipPassages
-- fired when settings are changed/init
local function ModOptions()
mod_TurnOff = CurrentModOptions:GetProperty("TurnOff")
mod_SkipGrids = CurrentModOptions:GetProperty("SkipGrids")
mod_SkipPassages = CurrentModOptions:GetPropert... |
-- Creator:
-- AltiV, January 17th, 2019
-- Primary Idea Giver:
-- Acalia
-----------------
-- Untouchable --
-----------------
LinkLuaModifier("modifier_imba_enchantress_untouchable", "components/abilities/heroes/hero_enchantress.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_imba_enchantress_untou... |
--[[-------------------------------------------------------------------------
Copyright 2017 - 2021 viral32111
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/LIC... |
object_tangible_furniture_decorative_wod_pro_ns_tree_05 = object_tangible_furniture_decorative_shared_wod_pro_ns_tree_05:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_pro_ns_tree_05, "object/tangible/furniture/decorative/wod_pro_ns_tree_05.iff")
|
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
this_is_a_map 'yes'
data_file 'DLC_ITYP_REQUEST' 'stream/lafa2k_modernhouse.ytyp' |
return {
name = "voronianski/file-type",
version = "1.0.5",
description = "Detect the file type of a Buffer in Luvit.io",
tags = { "buffer", "luvit", "file", "file-type", "mime", "extension" },
license = "MIT",
author = { name = "Dmitri Voronianski", email = "dmitri.voronianski@gmail.com" },
homepage = "h... |
local subpath = (...):match("(.-)[^%.]+$")
local is_callable = require (subpath.."is").callable
local try = {}
function try.call(t, k, ...)
if not (t and k) then return false end
local fn = t[k] if not is_callable(fn) then return false end
return true, fn(...)
end
function try.invoke(t, k, ...)
if not (t and... |
Runner = {}
function Runner:child()
self.__index = self
return setmetatable({ base = self }, self)
end
function Runner:new(executor)
self.__index = self
return setmetatable({ executor = executor }, self)
end
function Runner:get_results()
error("get_results is not implemented")
end
function Runner:test_sui... |
local CorePackages = game:GetService("CorePackages")
local Cryo = require(CorePackages.Packages.Cryo)
local Rodux = require(CorePackages.Packages.Rodux)
local AddMessage = require(script.Parent.Parent.Actions.AddMessage)
local RemoveMessage = require(script.Parent.Parent.Actions.RemoveMessage)
local userMessages = Ro... |
pg = pg or {}
pg.enemy_data_statistics_139 = {
[10070307] = {
cannon = 105,
reload = 150,
speed_growth = 0,
cannon_growth = 1400,
rarity = 4,
air = 0,
torpedo = 100,
dodge = 11,
durability_growth = 65000,
antiaircraft = 280,
luck = 30,
reload_growth = 0,
dodge_growth = 156,
hit_growth = 210... |
if not modules then modules = { } end modules ['util-sql-tickets'] = {
version = 1.001,
comment = "companion to lmx-*",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- TODO: MAKE SOME INTO... |
local source, level = ...
level = level + 2
local f = assert(debug.getinfo(level,"f").func, "can't find function")
local uv = {}
local locals = {}
local uv_id = {}
local local_id = {}
local i = 1
while true do
local name, value = debug.getlocal(level, i)
if name == nil then
break
end
if name:byte() ~= 40 then --... |
--Script Name : jlp_Select next track or next item.lua
--Author : Jean Loup Pecquais
--Description : Select next track or next item
--v1.0.0
local libPath = reaper.GetExtState("Reaper Evolution", "libPath")
if not libPath or libPath == "" then
reaper.MB("Reaper Evolution library is not found. Please refer to user ... |
function parse.percentage(str, dest_type, options)
local str = parse._pre_fold(str)
local dest_type = dest_type or atom.number
local options = table.new(options)
options.precision = options.precision or 0
if options.decimal_shift == true then
options.decimal_shift = options.precision + 2
end
local f =... |
function deepcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in next, orig, nil do
copy[deepcopy(orig_key)] = deepcopy(orig_value)
end
setmetatable(copy, deepcopy(getmetatable(orig)))
else -- n... |
require 'Coat'
local CodeGen = require 'CodeGen'
local ipairs = ipairs
local pairs = pairs
singleton 'Smc.Graphviz'
extends 'Smc.Language'
has.id = { '+', default = 'GRAPH' }
has.name = { '+', default = 'Graphviz' }
has.option = { '+', default = '-graph' }
has.suffix = { '+... |
return {'saks','saksen','saksisch','saksische','sak','sake','saki','sakkeren','sakkerloot','sakkers','sakser','sake','sakkers','sak','sakko','sakken','sakker','sakkerde','sakkerden','sakkerse','sakkert','sakes'} |
local t = {
version = '2.0.0',
scope = 'workers',
desc = 'n4c framework core status report'
}
local mix = require('lib.Utils').mix
local encode = require('cjson').encode
local decode = require('cjson').decode
local route_uri = '/'..n4c.configuration.default_channel_name..'/api' -- /N4C/api
local counter = {
activ... |
local match_hall_pin_map = require("qnFiles/qnPlist/hall/match_hall_pin");
local match_hall_vertical_view=
{
name="match_hall_vertical_view",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1,
{
name="contentView",type=0,typeName="View"... |
giant_crystal_snake = Creature:new {
objectName = "@mob/creature_names:giant_crystal_snake",
socialGroup = "snake",
faction = "",
level = 31,
chanceHit = 0.39,
damageMin = 310,
damageMax = 330,
baseXp = 3097,
baseHAM = 8300,
baseHAMmax = 10100,
armor = 0,
resists = {20,20,20,20,20,20,20,20,-1},
meatType = ... |
return PlaceObj("ModDef", {
"title", "Rotate All Buildings",
"id", "ChoGGi_RotateAllBuildings",
"pops_any_uuid", "e22c2a8a-60a1-4736-9c11-b4ecbe14dce0",
"steam_id", "1566471085",
"lua_revision", 1007000, -- Picard
"version", 3,
"version_major", 0,
"version_minor", 3,
"image", "Preview.jpg",
"author", "ChoGGi"... |
local Prop = {}
Prop.Name = "Evocity District Factory"
Prop.Cat = "Warehouse"
Prop.Price = 4100
Prop.Doors = {
Vector( -3221, 13320, 316 ),
Vector( -3221, 13048, 316 ),
Vector( -3221, 14008, 316 ),
Vector( -3221, 14280, 316 ),
Vector( -2108, 13956, 262.28100585938 ),
Vector( -3112, 13436, 262.281006 ),
}
GM.Prop... |
-------------------------------------------------------------------------------
--
-- tek.class.markup
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
-- OVERVIEW::
-- [[#ClassOverview]] :
-- [[#tek.class : Class]] / Markup ${subclasses(Markup)}
--
-- This class... |
local ffi = require "ffi"
--WINUSEPTHREAD = true
local Mutex = require "lj-async.mutex"
local Thread = require "lj-async.thread"
local thread_data_t = ffi.typeof("struct { int x; }")
local function threadMain(m,...)
print("init thread")
return function(threadid)
local ffi = require "ffi"
--WINUSEPTHREAD = true
loc... |
local table = require("hs/lang/table")
local Class = require("hs/lang/Class")
--------------------------------------------------------------------------------
-- TMXMapのObjectGroupです.
--
-- @class table
-- @name TMXObject
--------------------------------------------------------------------------------
local TMXObject... |
-- old depth picking algorithm. Pick the most foregorund object.
function CalcForFrame(framenum)
local min_depth, max_depth, mean_depth = CalcForFrameRaw();
local res_depth = -min_depth;
print(string.format("debug %3d front %3d back %3d mean %3d res %3d",
framenum, -min_depth, -max_depth, -mean_depth,... |
local slaxdom = require 'slaxdom' -- https://github.com/Phrogz/SLAXML
local cjson = require "cjson"
local XML = {}
-- 如果没有子元素,才返回。
local function ele_text(ele)
local text = nil
for _,n in ipairs(ele.kids) do
if n.type=='text' then
text = n.value
elseif n.type == "element" then
return nil
end
end
retur... |
LiAutoRepairVersionNum = 5
AddonMsgPrefix = "LiARVersion"
C_ChatInfo.RegisterAddonMessagePrefix(AddonMsgPrefix)
UpdateNotificationDisplayed = false
LiAutoRepair = false
InventorySlots = {
"HeadSlot",
"ShoulderSlot",
"ChestSlot",
"WristSlot",
"HandsSlot",
"WaistSlot",
"LegsSlot",
"FeetSlot",
"MainHandSlot",
... |
-- Set baud rate to 115200 (for older firware versions, like 0.9.6)
-- uart.setup(0,115200,8,0,1)
-- Run main.lua after 2 seconds
tmr.create():alarm( 2000, tmr.ALARM_SINGLE, function() dofile("main.lua") end ) |
local help_message = [[
This is a module file for the container quay.io/biocontainers/emboss:5.0.0--0, which exposes the
following programs:
- aaindexextract
- abiview
- acdc
- acdpretty
- acdtable
- acdtrace
- acdvalid
- antigenic
- backtranambig
- backtranseq
- banana
- bdftogd
- biosed
- btwisted
- c... |
UTILS = {}
function UTILS:QsPrint(msg)
DEFAULT_CHAT_FRAME:AddMessage("|CFFFF0000<|r|CFFFFD100QStall|r|CFFFF0000>|r"..(msg or "nil"));
end
function UTILS:QsWhisper(content, playerName)
local selfName,_ = UnitName("player")
UTILS:QsPrint("[QsWhisper] ["..playerName.."] ["..selfName.."]")
if string.find(playerN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.