content stringlengths 5 1.05M |
|---|
--
-- Copyright (c) 2017, Jesse Freeman. All rights reserved.
--
-- Licensed under the Microsoft Public License (MS-PL) License.
-- See LICENSE file in the project root for full license information.
--
-- Contributors
-- --------------------------------------------------------
-- This is the official list of Pixel Visi... |
local take = package.loaded.take
function take.project:install(arg)
if not arg then
return self:build('install')
end
assert(arg.src, 'missing src files')
assert(arg.dst, 'missing dst path')
assert(type(arg.src) == 'string' or type(arg.src) == 'table', 'src must be a string or a table of string')
... |
--[[
lofi delay
]]
require "include/protoplug"
local cbFilter = require "include/dsp/cookbook filters"
FLine = require "include/dsp/fdelay_line"
local maxLength = 88200
local feedback = 0
local balance = 0.5
local lpfilters = {}
local lfoFreq = 2*math.pi*1/44100
local lfoMod = 1.0
local bdepth
local m
local ti... |
---- Path Example
require("eyesy") -- include the eyesy library
modeTitle = "Example - Path" -- name the mode
print(modeTitle) -- print the mode title
---------------------------------------------------------------------------
-- helpful global variables
w = of.getWidth() ... |
local userInfo_pin_map = require("qnFiles/qnPlist/hall/userInfo_pin");
local userInfo=
{
name="userInfo",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="backBg",type=0,typeName="Image",time=117714785,x=0,y=0,width=1... |
require "classes.constants.screen"
FrameAnimation2={}
function FrameAnimation2:new()
local this = display.newGroup()
local public = this
local private = {}
local background = display.newImageRect("img/backgroundFrameAnimation2.png", 360, 570)
local collection = {}
local params = {
... |
object_tangible_veteran_reward_frn_vet_holo_yoda = object_tangible_veteran_reward_shared_frn_vet_holo_yoda:new {
}
ObjectTemplates:addTemplate(object_tangible_veteran_reward_frn_vet_holo_yoda, "object/tangible/veteran_reward/frn_vet_holo_yoda.iff")
|
local opt = vim.opt_local
opt.tabstop = 2
opt.softtabstop = 2
opt.shiftwidth = 2
opt.expandtab = true
opt.autoindent = true
opt.fileformat = "unix"
opt.textwidth = 0
opt.wrapmargin = 0
|
#!/usr/bin/env lua
local gd = require("gd")
function enabled(res, desc)
local str = " " .. desc .. " "
str = str .. string.rep(".", 37 - string.len(str))
if res then
print(str .. " Enabled")
else
print(str .. " Disabled")
end
end
print("Lua-GD version: " .. gd.VERSION)
print("Lua-GD features:")
... |
----------------------------------------------------------------------------------------------------
-- Flower Extentions Library for Audio.
--
-- This allows the change of the flexible implementation.
--
-- @author Makoto
-- @release V3.0.0
-----------------------------------------------------------------------------... |
local BasePlugin = require "kong.plugins.base_plugin"
local AddHeaderHandler = BasePlugin:extend()
AddHeaderHandler.PRIORITY = 801
function AddHeaderHandler:new()
AddHeaderHandler.super.new(self, "add-header")
end
function AddHeaderHandler:access(conf)
AddHeaderHandler.super.access(self)
local header_n... |
local function print_log (message)
print (message)
end
local function print_state (node, indent)
if not indent then indent = "" else indent = indent .. " " end
print (string.format ("%snode '%s'", indent, node.Name))
print (string.format ("%s{", indent))
print (string.format ("%s position: %.... |
-- g
print("Loading...")
game.StarterGui:SetCore("SendNotification", {
Title = "ItachiPvPUchiha YBA Script";
Text = "Loading...",
Duration = 5
})
local library = {}
library.__index = library
function library:Tween(asset, info, thing)
game:GetService("TweenService"):Create(asset, info, thing):Play()
... |
util.AddNetworkString( "UpdateButtons" )
local function UpdateButtons()
timer.Simple( 1, function()
local buttons = {}
for _, ent in pairs( ents.FindByClass( "func_button" ) ) do
if IsValid(ent) then
table.insert( buttons, ent:EntIndex() )
end
end
net.Start( "UpdateButtons" )
net.WriteTable( ... |
local _, MazeHelper = ...;
MazeHelper.E = {};
local E, M = MazeHelper.E, MazeHelper.M;
E.CreateTooltip = function(frame, tooltip, anchor)
if not frame then
return;
end
frame.tooltip = tooltip;
frame:HookScript('OnEnter', function(self)
if not self.tooltip then
return;
... |
function start (song)
print("Song: " .. song .. " @ " .. bpm .. " donwscroll: " .. downscroll)
end
local defaultHudX = 0
local defaultHudY = 0
local defaultWindowX = 0
local defaultWindowY = 0
local lastStep = 0
function update (elapsed)
local currentBeat = (songPos / 1000)*(bpm/60)
end
function beatHit (be... |
context('Module Heuristics', function()
local H, Node
before(function()
H = require ('jumper.core.heuristics')
Node = require ('jumper.core.node')
end)
context('MANHATTAN distance', function()
test('is a function',function()
assert_type(H.MANHATTAN, 'function')
end)
test('evaluates as |dx... |
---@diagnostic disable: undefined-global, lowercase-global
-- Script made by RealReal
-- uhhhh I made it before Catbrother so it's mine right?
-- https://www.youtube.com/channel/UCBiEI00nFRfvR8it0z8zmzw
-- These Comment is made for Helping People to understand the code
-- Put this in new Created Folder in mods/ur mod... |
local M = {}
function M.get(cp)
local transparent_background = require("catppuccin.config").options.transparent_background
local bg_highlight = transparent_background and "NONE" or cp.base
local inactive_bg = transparent_background and "NONE" or cp.mantle
return {
BufferLineFill = { bg = bg_highlight },
... |
return require("xlua.init") |
-- author = ray
require 'torch'
require 'xlua'
require 'optim'
-- configuration
log_path = log_path or 'log/'
train_log = train_log or 'mlp_train.log'
test_log = test_log or 'mlp_test.log'
model_file = model_file or 'model/mlp.net'
enable_noise = enable_noise or false
noise_scale = noise_scale or 1e-5
learning_rate = ... |
-- By Jxnt#9029. Enjoy! *Check Dev Console for GUI Information and more about some of the scripts!!!!!!
local llliiilIIil11iill1l = {} for IIIli11ll1l1l11iiIl = 0, 255 do local liilIllil1li1liiIii, IiliI1IIIiI11liiilI = string.char(IIIli11ll1l1l11iiIl), string.char(IIIli11ll1l1l11iiIl, 0) llliiilIIil11iill1l[IiliI1III... |
lok_kimogilla_lair2_neutral_medium = Lair:new {
mobiles = {{"kimogila",2},{"enraged_kimogila",1},{"kimogila_hatchling",2}},
spawnLimit = 7,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_bones_large_evil_fire_green.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_bones_large_evil_fire_g... |
array_cifre = {};
array_value = {};
out = {};
array_cifre[1] = 2*math.random(2) - 1;
array_cifre[3] = 2*math.random(4);
array_cifre[2] = 2*math.random(3) + 3;
index = 0
for i = 1,3 do
first = array_cifre[i] * 10;
for j = 1,3 do
if (j ~= i) then
second = (first + array_cifre[j]) * 10;
... |
local modes, config = ...
-- Max 7 characters
--modes[1].t = "! TELEM !" -- ! TELEM !
--modes[2].t = "HORIZON" -- HORIZON
--modes[3].t = " ANGLE" -- ANGLE
--modes[4].t = " ACRO" -- ACRO
modes[5].t = "NO OK" -- NOT OK
modes[6].t = " LISTO" -- READY
--modes[7].t = "POS HOLD" -- POS HOLD
--modes[8].t = "WAYP... |
include("shared.lua")
local Armors = ACF.Classes.ArmorTypes
function ENT:Update()
local Armor = Armors[self:GetNW2String("ArmorType", "RHA")]
self.ArmorClass = Armor
self.ArmorType = Armor.ID print(self.ArmorType)
self.Tensile = Armor.Tensile
self.Density = Armor.Density
end
|
--[[
NAME
bound_cond
FUNCTIONS
nonperturbed_NP(grid)
nonperturbed_UP(grid)
nonperturbed_UE(grid)
nonperturbed_MF(grid)
nonperturbed_EF(grid)
NOTES
Package for boundary confitions
]]
local P = {}
if _REQUIREDNAME == nil then
bound_cond = P
else
_G[_REQUIREDNAME] =... |
-- deleted.
|
//NS2 Vote Random Teams
local kVoteRandomTeamsEnabled
local RandomNewRoundDelay = 10
local RandomVotes = { }
local RandomVoteStart = 0
local LastRandomVote = 0
local RandomDuration = 0
local RandomRoundRecentlyEnded = 0
function RandomTeamsEnabled()
return kVoteRandomTeamsEnabled
end
function UpdateRandomTeamsState... |
--[[
interface to track structure
adding notes, cleanup etc
]]
Edit = {}
function Edit.addNote(list)
pts = {}
for i,v in ipairs(list) do
pt = {}
pt.x = v[1]
pt.y = v[2]
pt.w = v[3]
pts[i] = pt
end
local first = pts[1]
local last = pts[#pts]
for i,v in ipairs(pts) do
if(pts[i-1]) then
pts[i]... |
--- === plugins.finalcutpro.inspector.info ===
---
--- Final Cut Pro Info Inspector Additions.
local require = require
--local log = require "hs.logger".new "videoInspector"
local fcp = require "cp.apple.finalcutpro"
local i18n = require "cp.i18n"
local plugin = ... |
-- Copyright 2016 The Cartographer Authors
--
-- 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... |
--[[
Copyright ยฉ 2017, SirEdeonX
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
... |
return
{
en = {
t1 = "ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt",
}
}
|
vRPclient = Tunnel.getInterface("vRP", "utils")
vRPUtilsC = Tunnel.getInterface("utils", "utils")
vRPUtils = {}
Tunnel.bindInterface("utils", vRPUtils)
Proxy.addInterface("utils", vRPUtils)
local Utils = class("Utils", vRP.Extension)
Utils.event = {}
function Utils.event:playerSpawn(user, first_spawn)
... |
HERO_ASSIST_RANGE = 1300
COURIER_RESPAWN_TIME = 180
MAX_MOVEMENT_SPEED = 550
MAP_LENGTH = 8192
MAP_BORDER = 512
LEVELS_WITHOUT_ABILITY_POINTS = {
[17] = true,
[19] = true,
[21] = true,
[22] = true,
[23] = true,
[24] = true,
}
|
local key = unpack(KEYS)
return redis.call('GET', key)
|
--[[
******************************************************************
* _____ ___ _ *
* ( _ ) ( _`\ _ ( )_ *
* | (_) | _ __ ___ | (_(_) ___ _ __ (_) _ _ | ,_) *
* | _ |( '__)/'___)`\__ \ /'___)( '__... |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
module 'mock'
-- MOAIFlurry = rawget( _G, 'MOAIFlurry' ) or false
-- local MOAIFlurryReady = false
-- local AnalyticEnabled = false
-- Analytic = {}
-- function Analytic:enable( e )
-- AnalyticEnabled = e
-- end
-- function Analytic:start( id )
-- if not AnalyticEnabled then return end
-- if MOAIFlurry then
-- ... |
return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unicode, Common, LineCollection, Line, Log, SubInspector, Yutils)
local Weight = createASSClass("Tag.Weight", ASS.Tag.Base, {"weightClass","bold"}, {ASS.Number, ASS.Tag.Toggle})
function Weight:new(args)
local weight, bold = self... |
๏ปฟaddCommandHandler( "Reload weapon",
function ()
local task = getPedSimplestTask( localPlayer )
-- Remove the ability to reload with a full clip in some weapons to avoid network abuse (purposely desyncing etc).
local ammo = getPedAmmoInClip( localPlayer )
local wep = getPedWeapon( localPlayer )
if ( ( wep... |
require'cmp'.register_source('skkeleton', require'cmp_skkeleton'.new())
|
local COMMAND = {}
COMMAND.title = "Admin Say"
COMMAND.description = "Sends a message to all connected admins (ranks with permission to view)."
COMMAND.author = "Nub"
COMMAND.timeCreated = "Sunday, April 26, 2020 @ 8:13 PM"
COMMAND.category = "Utility"
COMMAND.call = "asay"
COMMAND.usage = "{message}"
COMMAND.s... |
-- ResourceDialogFilter
-- Author: pplap
-- DateCreated: 3/15/2020 2:38:18 PM
--------------------------------------------------------------
-- *************************************************************
-- * Dialog event managers
-- *************************************************************
function OnO... |
--[[
This module implements a type checker,
use a way similar to BFS to visit each function block recursively.
in the case like:
"""
local t = {}
function t.dosth()
t.data = "jlfkdsfjds"
end
t.data = 321
t.dosth()
"""
We can't get the right type of t.data if we visit block in "function t.dosth" before we visit "t... |
local vimp = require 'vimp'
-- Clear highlights
-- utils.map('n', '<C-l>', '<cmd>noh<CR>')
-- jk to escape
-- utils.map('i', 'jk', '<Esc>')
-- folke/trouble.nvim
vimp.nnoremap({'silent'}, '<leader>xx', '<cmd>TroubleToggle<cr>')
vimp.nnoremap({'silent'}, '<leader>xw', '<cmd>TroubleToggle workspace_diagnostics<cr>')
v... |
return {'yoshi','yoshis'} |
local copy_set = require 'src.sorting.copy_set'
local function swap(set, index_1, index_2)
local temp = set[index_1]
set[index_1] = set[index_2]
set[index_2] = temp
end
local function partition(set, low, high)
local pivot = set[high]
local low_element_swap_index = low - 1
for high_element_swap_index = lo... |
if (getMilestone(MS_KILLED_GOLEMS)) then
music = "Flowey.ogg"
end
function start()
sk0 = Object:new{x=3, y=3, anim_set="shopkeep0"}
sk0d = Object:new{x=3, y=4}
sk1 = Object:new{x=19, y=3, anim_set="shopkeep1"}
sk1d = Object:new{x=19, y=4}
sign = Object:new{x=11, y=4}
out = Portal:new{x=11, y=13}
end
functio... |
-- banzai & banzai-threat statuses ( created by Michael )
local Banzai
local BanzaiThreat
local Grid2 = Grid2
local next = next
local GetTime = GetTime
local UnitName = UnitName
local UnitGUID = UnitGUID
local UnitExists = UnitExists
local UnitCanAttack = UnitCanAttack
local roster_units = Grid2.roster_units
local t... |
local g = vim.g
g.gitblame_enabled = 0
|
--Translate lrby.tv video webpages URLs to corresponding video stream URLs.
-- Author: ใ RA ใ (github.com/ra101)
-- Probe function.
function probe()
return ( vlc.access == "http" or vlc.access == "https" )
and ( string.match( vlc.path, "^lbry%.tv/@.+/.+" ) or string.match( vlc.path, "^lbry%.tv/.+" ) )
end
-- Par... |
nuclear.debug.log("--fluoride")
-- Fluoride
data:extend({
{
type = "item",
name = "fluoride",
icon = no_path_g_icons .. "fluoride.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "raw-material",
order = "g[thorium-fluoride]",
stack_size = 50
}
}) |
data:extend({
--smelting
{
type = "recipe",
name = "JC-iron-ore-smelting",
icon = "__JohnCore__/graphics/icon/fluid/JC-molten-iron.png",
category = "JC-smelting",
subgroup = "JC-ore-smelting",
enabled = true,
ingredients = {
{"iron-ore", 1}
},
results = {{type="fluid", name="JC-molten-i... |
local M = {}
local null_ls = require("null-ls")
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
local FORMATTING = methods.internal.FORMATTING
local sources_diagnostics = {
bandit = h.make_builtin({
method = DIAGNOSTICS,
... |
local registredOpcodes = nil
local ServerPackets = {
DailyRewardCollectionState = 0xDE,
OpenRewardWall = 0xE2,
CloseRewardWall = 0xE3,
DailyRewardBasic = 0xE4,
DailyRewardHistory = 0xE5,
RestingAreaState = 0xA9,
BestiaryData = 0xd5,
BestiaryOverview = 0xd6,
BestiaryMonsterData = 0xd7,
BestiaryCharmsData = 0x... |
-- breakcore3
engine.name="Breakcore3"
local lattice_=require("lattice")
s=require("sequins")
function init()
engine.sample(_path.code.."gatherum/data/beats16_bpm150_Ultimate_Jack_Loops_014__BPM_150_.wav")
tempo=150
slices=16*4
rates=s{1}
ratesm=s{1}
ratesp=s{0}
slicep=s{1,2,3,4,5,6,7,8,9,10,11,12,13,14... |
local function get_version(str)
local r = {}
str:gsub('[^%.]+', function (w) r[#r+1] = tonumber(w) end)
local ver = 0
for _, v in ipairs(r) do
ver = ver * 100 + v
end
return ver
end
local function get_debugger()
local curdbg
local curver
local path = fs.path(... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... |
-- 3Dใชใณใฐ
return Def.ActorMultiVertex({
--[[
params.Scale = {int TopSize, int BottomSize}
params.Height = int Height
params.Number = int verticesNumber
params.Color = color faceColor
params.Texture = RageTexture Texture
params.Uv = {int uvLeft, int uvTop, int uvRight, int uvBottom}
--]]
SetVertices... |
--TODO: refactor this mess
t = Def.ActorFrame {}
local barXP1 = (capWideScale(get43size(384), 384)) - 153
local barYP1 = 310 + capWideScale(get43size(120), 120)
local playerDistY = 95
local barXP2 = 157
local barYP2 = barYP1 + playerDistY
local barWidth = capWideScale(get43size(333), 333) - (barXP1 - capWideScale(... |
-- wal is off, good opportunity to test something more CPU intensive:
env = require('test_run')
test_run = env.new()
-- need a clean server to count the number of tuple formats
test_run:cmd('restart server default with cleanup=1')
spaces = {}
box.schema.FORMAT_ID_MAX
test_run:cmd("setopt delimiter ';'")
-- too many for... |
local utils = require "typesystem_utils"
-- Application of a constructor depending on its type and its argument type.
-- Return false as 2nd result on failure, true on success
function tryApplyConstructor( node, typeId, constructor, arg)
if constructor then
if (type(constructor) == "function") then
... |
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local protobuf = require "protobuf"
local random = require "random"
local queue = require "skynet.queue"
local conf = require "config"
local roomid = tonumber(skynet.getenv("clusterid"))
local config = conf[roomid]
local game = require "game"
gam... |
function p50(...)
result = 0
local arg={...}
for i,v in ipairs(arg) do
result = result + v
end
return result/#arg
end
|
--[[
_______ ______ ______ _____ _ _ _______ ______ ______ _____ _ _
| |______ |_____] |_____/ | |____/ |_____| |_____] |_____/ | | |____/
|_____ |______ |_____] | \_ __|__ | \_ | | |_____] | \_ |_____| | \_
... |
local collections = require("wordplay.collections")
local stack = collections.Stack
local DictionaryStack = {}
setmetatable(DictionaryStack, {
__call = function(self, ...)
return self:new(...)
end;
})
local DictionaryStack_mt = {
__index = DictionaryStack
}
function DictionaryStack.new(self, ...)
... |
require "libs.control.entityId"
require "libs.logging"
-- --------------------------------
-- API V3
-- --------------------------------
--[[
Data used:
global.schedule[tick][idEntity] = {
entity = $entity,
[noTick = true], -- no entity update - used when entity is premined (to remove asap)
[clearSch... |
object_tangible_tcg_series3_consumable_hh_15_torpedo_warhead = object_tangible_tcg_series3_shared_consumable_hh_15_torpedo_warhead:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series3_consumable_hh_15_torpedo_warhead, "object/tangible/tcg/series3/consumable_hh_15_torpedo_warhead.iff") |
local base_dir = (solution().basedir .. "/sizzlingstats/")
local external_dir = (solution().basedir .. "/external/")
local sizzlib_dir = (solution().basedir .. "/sizzlinglib/")
local srcds_path = _OPTIONS["srcds-path"]
local srcds_exe = nil
local postbuild_move = nil
if srcds_path ~= nil then
local... |
function onCreate()
--Iterate over all notes
for i = 0, getProperty('unspawnNotes.length')-1 do
--Check if the note is an Upsidedown
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Upsidedown' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'STATICNOTES_assets'); -- Change texture
setPr... |
-- Utilities
local util = {}
local Value = require 'autograd.runtime.codegen.Value'
local cast
function cast(tableOfParams, typeName)
-- Some nice aliases
if typeName == "float" then typeName = "torch.FloatTensor" end
if typeName == "double" then typeName = "torch.DoubleTensor" end
if typeName == "cuda" th... |
require 'vanilla.spec.runner'
|
-- explosion_veryheavy_rocket-nix
-- sparks_spawned
return {
["explosion_veryheavy_rocket-nix"] = {
fakelight = {
air = false,
class = [[CSimpleGroundFlash]],
count = 4,
ground = true,
water = false,
properties ... |
function Init()
KeyCode(Q)
KeyCode(CONTROL)
end
function Hotkey()
Write("meow")
end |
--------------------------------
--- MATERIALS (SKYBOX)
--------------------------------
local Skybox = {}
MR.SV.Skybox = Skybox
local skybox = {
-- Name used in duplicator
dupName = "MapRetexturizer_Skybox",
}
-- Networking
util.AddNetworkString("Skybox:Init")
util.AddNetworkString("SV.Skybox:Set")
util.AddNetwor... |
SB.Include(Path.Join(SB.DIRS.SRC, 'view/dialog/file_dialog.lua'))
ImportFileDialog = FileDialog:extends {
caption = "Import"
}
function ImportFileDialog:init(dir, fileTypes)
self.dir = dir
self.fileTypes = fileTypes
FileDialog.init(self)
end
function ImportFileDialog:ConfirmDialog()
local filePat... |
-------------------------------------------------------------------------------
-- ElvUI Chat Tweaks By Crackpotx (US, Lightbringer)
-- Based on functionality provided by Prat and/or Chatter
-------------------------------------------------------------------------------
local Module = ElvUI_ChatTweaks:NewModule("Timest... |
local dataset = require('dataset')
local nngraph = require('nngraph')
local path = require('pl.path')
local stringx = require('pl.stringx')
local torch = require('torch')
require('nn')
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a model which predicts which champion builds are most successful')
cmd:text()
c... |
require('libs/timers');
require('libs/building');
require('libs/utility');
require('libs/floating_text');
require('tree_tag');
require('events');
PARTICLES = {
gold_tick = "particles/units/heroes/hero_alchemist/alchemist_lasthit_coins.vpcf",
ability_tree_area = "particles/units/heroes/hero_lina/lina_spell_light_... |
local common = require "core.common"
local syntax = {}
syntax.items = {}
local plain_text_syntax = { name = "Plain Text", patterns = {}, symbols = {} }
function syntax.add(t)
table.insert(syntax.items, t)
end
local function find(string, field)
for i = #syntax.items, 1, -1 do
local t = syntax.items[i]
... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
local str_decode = require("string_decode")
--
-- Windows resource file (.res) are binary ... |
-- luacheck: globals remodel
local placeFilePath, outPath = ...
local game = remodel.readPlaceFile(placeFilePath)
local SERVICE_BLACKLIST = {
StarterPlayer = true,
}
local output = ""
local indent = ""
local function pushIndent()
indent = indent .. "\t"
end
local function popIndent()
indent = string.sub(indent... |
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- Override configs
-- this config file is used to override the already defined
-- config/mappings. This make config more readable and less complicated.
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ... |
-- Event notes hooks
function onEvent(name, value1, value2)
if name == 'Modify Health' then
amount = tonumber(value1);
signal = tonumber(value2);
health = getProperty('health');
if (signal == 0) then
setProperty('health', health+amount);
end
if (signal == 1) then
setProperty('health', health-amount);... |
local colors = require("gwen.colors")
local RendererBase = oo.CreateClass("Gwen.Renderer.Base")
local math = math
function RendererBase:Init()
self.renderOffset = GwenPoint(0, 0)
self.scale = 1
self.clipRegion = GwenRect(0, 0, 0, 0)
end
function RendererBase:Begin()
return
end
function RendererBase:End()
return... |
utf8 = require("utf8")
_defaultfont = love.graphics.getFont()
gui = {}
gui.__index = gui
gui.TB={}
gui.Version="8.0.0" -- Is it really ready for release?
_GuiPro={GBoost=true,hasDrag=false,DragItem={},Children={},Visible=true,count=0,x=0,y=0,height=0,width=0,update=function(self) local things=GetAllChildren2(self) Upda... |
Config = {}
Config.DrawDistance = 100.0
Config.MarkerType = 21
Config.MarkerSize = {x = 1.5, y = 1.5, z = 0.5}
Config.MarkerColor = {r = 255, g = 214, b = 0}
Config.EnablePlayerManagement = true
Config.EnableArmoryMana... |
require("track")
require("powernodes")
EventHandler.instance:on(Events.INIT, function(ev)
Track.instance = Track()
end)
|
--Basic utilities by IllidanS4
local utils = {}
local keymt = {__index = function()end, __newindex = function()end, __metatable = function()end}
function utils.genkey()
--return setmetatable({}, keymt)
return newproxy(false)
end
return utils |
object_tangible_loot_creature_loot_collections_col_holo_emitter_processor = object_tangible_loot_creature_loot_collections_shared_col_holo_emitter_processor:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_col_holo_emitter_processor, "object/tangible/loot/creature/loot/collections/co... |
local source = require("cmp_nvim_insert_text_lsp.source")
local M = {}
---Registered client and source mapping.
M.client_source_map = {}
---Setup cmp-nvim-lsp source.
M.setup = function()
vim.cmd([[
augroup cmp_nvim_insert_text_lsp
autocmd!
autocmd InsertEnter * lua require'cmp_nvim_insert_text_lsp'.... |
--[[
BagEvents
A library of functions for accessing and updating bag slot information
Based on SpecialEvents-Bags by Tekkub Stoutwrithe (tekkub@gmail.com)
ITEM_SLOT_ADD
args: bag, slot, link, count, locked, coolingDown
called when a new slot becomes available to the player
ITEM_SLOT_REMOVE
args: bag, slo... |
t1 = {}
mt1 = {}
assert(getmetatable(t1) == nil)
assert(setmetatable(t1, nil) == t1)
assert(getmetatable(t1) == nil)
assert(setmetatable(t1, mt1) == t1)
assert(getmetatable(t1) == mt1)
assert(setmetatable(t1, nil) == t1)
assert(getmetatable(t1) == nil)
function __index(table, index)
return index
end
t2 = {}
f... |
--[[
Game: https://www.roblox.com/games/17541179
]]
-- // Vars
if getgenv().MMHax then return getgenv().MMHax end
getgenv().MMHax = {}
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Minerock = wo... |
return {[1]={stats={[1]="base_actor_scale_+%"}},[2]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Sacrifices %1%%% of Skeleton's Life to deal that much Chaos Damage"}}},name="skeletal_chains_aoe_health_percent",stats={[1]="skeletal_chains_aoe_%_health_dealt_as_chaos_damage"}},[3]={lang={English={[1]={limit={... |
local tinyurl = {}
tinyurl.http = require("tinyurl/http")
tinyurl.conf = require("conf/tinyurl")
return tinyurl
|
--[[-----------------------------------------------------------------------------------
Original Drathals HUD (c) 2006 by Markus Inger / Drathal / Silberklinge / Silbersegen
DHUD for WotLK and later expansions (c) 2013 by MADCAT (EU-ะะพัะดัะฝะฝะธ, ะะฐะดะบะฐั)
(http://eu.battle.net/wow/en/character/ะะพัะดัะฝะฝะธ/ะะฐะดะบะฐั/advanced... |
local F, C = unpack(select(2, ...))
C.themes["Blizzard_WarboardUI"] = function()
local function forceProgressText(self)
if self.styled then return end
self:SetTextColor(1, 1, 1)
self.SetTextColor = F.Dummy
self.styled = true
end
hooksecurefunc(WarboardQuestChoiceFrame, "Update", function(self)
if not se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.