content stringlengths 5 1.05M |
|---|
local a, b = 3, 7
local function foo(k)
return 2*k + 1
end
print(foo(a))
|
require("lspconfig")
require("user.lsp.lsp-installer")
require("user.lsp.handlers").setup()
require("user.lsp.null-ls")
|
local energy = data.raw.recipe["atomic-bomb"].energy_required
local atomic_bomb_ingredient = PU_BOMB_INGREDIENT
--Tweaks icon for vanilla recipe of atomic bomb
data.raw.recipe["atomic-bomb"].icons = {
{
icon = "__base__/graphics/icons/atomic-bomb.png"
},
{
icon = "__base__/graphics/icons/uranium-235.png",
sc... |
-- Generated by github.com/davyxu/tabtoy
-- Version: 3.1.0
return {
init = function( g )
g.ExtendData = {
{ Additive = 1.1, },
{ Additive = 1.2, },
}
return g
end
}
|
object_tangible_loot_generic_usable_medic_powder_generic = object_tangible_loot_generic_usable_shared_medic_powder_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_medic_powder_generic, "object/tangible/loot/generic/usable/medic_powder_generic.iff")
|
-- Circuit break if this plugin has already completed
if vim.b.did_local_ftplugin == true then
return 0
end
-- Don't show the signcolumn in terminal buffers
vim.wo.signcolumn = "no"
-- Hide terminal buffers, don't destroy them
vim.bo.bufhidden = "hide"
-- Signal that the plugin has completed
vim.b.did_local_ftplugi... |
return {
players = {
{
},
{
palette = { -- green mario
{252, 188, 176},
{ 92, 228, 48},
{ 0, 0, 0}
},
portalColors = {
Color3.fromRGB(1, 0, 0),
Color3.fromRGB(0, 1, 0)... |
-----------------------------------
-- Viper Bite
-- Dagger weapon skill
-- Skill level: 100
-- Deals double damage and Poisons target. Duration of poison varies with TP.
-- Doubles attack and not damage.
-- Despite the animation showing two swings, this is a single-hit weapon skill.
-- Will stack with Sneak Attack.
--... |
faction_lord_types = {
SCHEMA = {"key", "faction_type", "lord_type", "lord_type_name"},
KEY = {"key", "LIST"},
DATA = {
{"wh_main_dwf_kraka_drak", "FACTION", "kraka_wardlord", "Wardlord"}
}
}
lord_type_art = {
SCHEMA = {"lord_type", "art_set_id", "culture", "portrait_name"},
KEY = {"lor... |
-- Copyright 2020 - Deviap (deviap.com)
-- Author(s): utrain, Sanjay-B(Sanjay)
-- Creates a primary button instance
local newBaseButton = require("devgit:source/libraries/UI/components/buttons/baseButton.lua")
return function(props)
-- Defaults
props.containerBackgroundColour = colour.hex("#212121")
props.secondary... |
------------- --------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies]: never ask a user for a consent for "default" policies applied
--
-- Description:
-- Condition for never asking for consent for "default" permissions by PoliciesManager.
-- After PTU the ... |
if not Global.editor_mode then
return
end
local Instance = CoreWorldInstanceManager
function Instance:prepare_unit_data(instance, continent_data)
local start_index = instance.start_index
local folder = instance.folder
local path = folder .. "/" .. "world"
local instance_data = self:_get_instance_continent_data(pa... |
local tinsert = table.insert
-- --------------------------------------------------------------------------------------------------------
local fpgen = require("gltfloader.filepool-gen")
-- --------------------------------------------------------------------------------------------------------
-- MeshPool
-- Concep... |
local rpc_mgr = require "rpc.rpc_mgr"
local timer_mgr = require "timer.timer"
local Log = require "log.logger"
local class = require "util.class"
local msg_def = require "global.net_msg_def"
local global_define = require "global.global_define"
local ServerType = global_define.ServerType
local MID = msg_def.MID
local ... |
local mod = DBM:NewMod("SkyreachTrash", "DBM-Party-WoD", 7)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15007 $"):sub(12, -3))
--mod:SetModelID(47785)
mod:SetZone()
mod.isTrashMod = true
mod:RegisterEvents(
"SPELL_AURA_APPLIED 160303 160288",
"SPELL_AURA_REMOVED 160303 160288"
)
... |
local curry = require('fp.curry')
local iterate = require('fp.iterate')
local function createReducePredicate(predicate, initial)
local state = initial
return function (value)
state = predicate(value, state)
return state
end
end
local function reduce(predicate, initial, iteratee)
local reducePredicat... |
Locales['sv'] = {
-- Custom
['being_searched'] = 'du blir ~y~visiterad~w~ av ~b~maffian~w~',
['have_withdrawn'] = 'du har tagit ut x',
['not_enough_in_society'] = 'det finns ~r~inte~w~ tillrรคckligt av ~r~det objektet~w~ i fรถreningen!',
['player_cannot_hold'] = 'du har ~r~inte~w~ tillrรคckligt med ~y~utrymme~w~... |
return (function(self)
-- TODO walk anchor hierarchy
return u(self).explicitlyProtected, u(self).explicitlyProtected
end)(...)
|
---------------------------------------------------------------------------------------------------
---screen_effect.lua
---date: 2021.2.17
---desc: Defines functions for screen shot and screen texture capture; the update function of this
--- file needs to be called once per frame
---reference: -x/data/THlib/misc/m... |
-----------------------------------
-- Area: QuBia_Arena
-- Mob: Worgbut of Clan Death
-- Mission 9-2 SANDO
-----------------------------------
local ID = require("scripts/zones/QuBia_Arena/IDs")
function phaseChangeReady(battlefield)
local inst = battlefield:getArea()
local instOffset = ID.mob.HEIR_TO_THE_LI... |
CodexDB["zones"]["koKR"]={[1]="Dun Morogh",[2]="๊ธฐ๋๊ธด ํด์",[3]="Badlands",[4]="Blasted Lands",[7]="๊ฒ์๋ฐ๋ค ๋ง",[8]="Swamp of Sorrows",[9]="๋
ธ์ค์ค์ด์ด ๊ณ๊ณก",[10]="Duskwood",[11]="Wetlands",[12]="Elwynn Forest",[13]="์ธ๊ณ์",[14]="Durotar",[15]="Dustwallow Marsh",[16]="Azshara",[17]="The Barrens",[18]="์์ ํธ์",[19]="์ค๊ตฌ๋ฃน",[20]="๋ฌธ๋ธ๋ฃฉ",[21]="... |
b=BinooAPI
b:DebugMode(true)
--[[ Water
--atoms of the molecule
a={}
a[1]={x=-0.2309, y=-0.3265, z=0.0000, kind="O"}
a[2]={x= 0.7484, y=-0.2843, z=0.0000, kind="H"}
a[3]={x=-0.5175, y= 0.6108, z=0.0000, kind="H"}
--bonds or vertices
v={}
v[1]={1,2}
v[2]={1,3}
--]]
--ASPRIN data below
a={}
a[1]={x= -0.8612,y= -1.... |
object_tangible_loot_mustafar_cube_loot_cube_loot_2n = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_2n:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_2n, "object/tangible/loot/mustafar/cube/loot/cube_loot_2n.iff")
|
------------------------------------------------------------------------------
-- Menu class
------------------------------------------------------------------------------
local ctrl = {
nick = "menu",
parent = iup.BOX, -- iup.Append will be automatically called after createElement
creation = "-",
call... |
return {
version = "1.2",
luaversion = "5.1",
tiledversion = "1.2.3",
orientation = "orthogonal",
renderorder = "right-down",
width = 16,
height = 14,
tilewidth = 32,
tileheight = 32,
nextlayerid = 26,
nextobjectid = 32,
properties = {},
tilesets = {
{
name = "castletileset",
f... |
ClothingSystem.Tools.Hooks.AddHook("ClothingSystem.PlayerSay", function( ply, text, team )
local command, object, item, class, finalTable, bodygroups, data, tr, BlackListWeapons, steamid
command = "/storage"
if ( string.Left(string.lower(text), string.len(command)) == string.lower(command) ) then
i... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
name 'ND_Ping'
description 'Allow Players To Ping Eachother Their Location'
author 'NitroDevelopment - https://github.com/Nitro Development'
version 'v1.0.0'
url 'https://github.com/NitroDevelopment/ND_ping/'
client_scripts {
'config.lua',
'client/... |
local color = require( "bitmap.color")
local palettes = require( "bitmap.palettes" )
local test = require( "test" )
local tests = {}
local function _from_color( from_color, colors )
for rgb, values in pairs( colors ) do
local p, q, r = from_color( rgb )
test.is_same_float( values[ 1 ], p, ... |
local server = require "nvim-lsp-installer.server"
local npm = require "nvim-lsp-installer.core.managers.npm"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://github.com/znck/grammarly",
languages = {},
installe... |
id = 'V-43150'
severity = 'medium'
weight = 10.0
title = 'The login user list must be disabled.'
description = 'Leaving the user list enabled is a security risk since it allows anyone with physical access to the system to quickly enumerate known user accounts without logging in.'
fixtext = [=[In the default graphical e... |
local shitoldInit = init
local shitoldUpdate = update
function init()
shitoldInit()
self.donedidboi = false
end
function update(dt)
shitoldUpdate(dt)
if mcontroller.crouching() then if not self.donedidboi then
self.donedidboi = true
local pos = mcontroller.position()
local colli = world... |
๏ปฟ--[[-----------DOCUMENTATION---------------
SYNTAX:
guibutton,guibutton,guibutton = guiShowMessageBox ( string message, string boxType, string title [, string button1, string button2, stringbutton3] )
REQUIRED ARGUMENTS
* message - The message you want in the message box
* boxType - Either "warning","question","error"... |
--[[
Simple loader for Celia. Loads based off Game ID, for games that TP I will use a more intricate system.
For games that TP you into other worlds I will compensate for. Meaning this can be throw into Autoexec
Note: It was made at school.
Taken STRAIGHT from original Celia-Private source code. :)
]... |
MAP_BUILDER = {
pose_graph = {
constraint_builder = {
min_local_search_score = 0.40,
min_global_search_score = 0.30,
-- used when adding INTER submap constraints
constraint_translation_weight = 2,
constraint_rotation_weight = 2,
ceres_... |
/*******************************
Dynamic Memory Gate
for Wiremod
(C) Sebastian J.
********************************/
include('shared.lua')
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Initialize()
end
function ENT:OnRemove()
end
fu... |
hangar_house_loot_deed = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Spacecraft Hangar House Blueprint",
directObjectTemplate = "object/tangible/loot/loot_schematic/hangar_house_loot_schem.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("h... |
local function a()local b=0;for c=1,multishell.getCount(),1 do if multishell.getTitle(c)=="progress"then b=b+1;if b>0 then return true end end end;return false end;if not a()then shell.run("bg progress")multishell.setFocus(2)end
|
---------------------------------------------
-- Amplification
-- Enhances Magic Attack and Magic Defense. Bonus stacks when used by mobs.
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
-----------------------... |
workspace("HorseCompiler")
location "solution/"
cppdialect "c++17"
startproject "Test"
configurations {
"Release",
"Debug"
}
platforms "x64"
architecture "x64"
callingconvention "FastCall"
defines "_CRT_SECURE_NO_WARNINGS"
flags {
"NoP... |
object_draft_schematic_space_cargo_hold_crg_mining_medium = object_draft_schematic_space_cargo_hold_shared_crg_mining_medium:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_cargo_hold_crg_mining_medium, "object/draft_schematic/space/cargo_hold/crg_mining_medium.iff")
|
return {'dar','darkroom','darm','darmafsluiting','darmbacterie','darmbeen','darmbloeding','darmcatarre','darmflora','darmfoto','darmgas','darmgestel','darminfectie','darminhoud','darmkanaal','darmkanker','darmklacht','darmklachten','darmkoliek','darmkramp','darmonderzoek','darmontsteking','darmoperatie','darmpassage','... |
local function highlight(group, style)
vim.cmd('highlight ' .. group .. ' ' .. style)
end
local function load_highlights()
local highlights = {
-- Normal = 'guibg=NONE ctermbg=NONE';
-- SignColumn = 'guibg=NONE ctermbg=NONE';
-- CocGitAddedSign = 'c... |
Locales ['sv'] = {
['blip_name'] = 'fรคngelse',
['judge'] = 'fรคngelse',
['escape_attempt'] = 'du fรฅr inte rymma frรฅn fรคngelset!',
['remaining_msg'] = 'det kvarstรฅr ~b~%s~s~ sekunder tills du slรคpps frรฅn fรคngelset',
['jailed_msg'] = '%s sitter i fรคngelse i %s minuter!',
['unjailed'] = '%s har blivit befriad f... |
return {'oxer','oxers'} |
--A lot of Thanks to iUltimateLP and his mod SimpleTeleporters for inspiration and for the use of His Code and graphics
data:extend({
{
type = "item",
name = "Teleporter_Beacon",
subgroup = "production-machine",
icon = "__PersonalTeleporter__/graphics/icon.png",
order = "a[items]-b[Teleporter_Beacon]",
p... |
object_tangible_holiday_love_day_love_day_card_04 = object_tangible_holiday_love_day_shared_love_day_card_04:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_love_day_love_day_card_04, "object/tangible/holiday/love_day/love_day_card_04.iff")
|
modifier_damage = class(Modifier)
LinkLuaModifier("modifier_damage", modifier_damage)
function modifier_damage:OnCreated ()
self.GetModifierBonus = self.GetModifierBonus
self:SetVisible(false)
self:AttachVariableModifier("damage");
end
function modifier_damage:GetModifierBonus_damage()
return self:GetAbility():G... |
-- tiled Plugin template
-- Use this as a template to extend a tiled object with functionality
local M = {}
local composer = require "composer"
local app = require "app"
local json = require "json"
local fx = require "com.ponywolf.ponyfx"
function M.new(instance)
if not instance then error("ERROR: Expected displa... |
--[[
Copyright (c) 2015 ๆทฑๅณๅธ่พๆธธ็งๆๆ้ๅ
ฌๅธ.
--]]
local PlayingTipsPlugin = {}
function PlayingTipsPlugin.bind(theClass)
local selfPlayTipsAction
local prevPlayTipsAction
local nextPlayTipsAction
local hidePlayTips
local function showPlayTips(uiLabel, tipText, hidingDelay)
hidePlayTips(uiLabel)
uiLabel:se... |
-- bonus names
BONUSSCANNER_NAMES = {
--Base Stats
STR = "Strength",
AGI = "Agility",
STA = "Stamina",
INT = "Intellect",
SPI = "Spirit",
ARMOR = "Armor",
--Resistances
ARCANERES = "Arcane Resistance",
FIRERES = "Fire Resistance",
NATURERES = "Nature Resistance",
FROSTRES = "Frost Resistance",
... |
local nmap = require('utils').nmap
-- Write format write
nmap('<leader>fm', '<cmd>w<cr><cmd>FormatWrite<cr>')
require('formatter').setup({
logging = false,
filetype = {
go = {
function()
return {
exe = "goimports",
args = { "-w", vim.api.nvim_buf_get_name(0) },
stdi... |
--[[ zlib license:
Copyright (c) 2011 Bart van Strien
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercia... |
AddCSLuaFile()
local A = "AMBER"
local DA = "D_AMBER"
local R = "RED"
local DR = "D_RED"
local B = "BLUE"
local W = "WHITE"
local SW = "S_WHITE"
local PI = {}
PI.Meta = {
tail_light = {
AngleOffset = 90,
W = 2,
H = 2,
--Sprite = "sprites/emv/led_single",
Sprite = "sprites/emv/blank",
},
tail_light_src... |
local mod = LazarusMod
local techHandler = mod:GetModule('techhandler')
local enumUtils = mod:GetModule('enumutilities')
local logger = mod:GetModule('logger')
local newTechNames = techHandler:GetTechIdsToAdd()
logger:PrintDebug("Adding new TechIds")
for _,v in ipairs(newTechNames) do
enumUtils:AppendToEnum(kTech... |
illumination = {}
illumination.playerLights = {}
local lightPoint = {
drawtype = "airlike",
paramtype = "light",
groups = {not_in_creative_inventory=1},
sunlight_propagates = true,
can_dig = false,
walkable = false,
buildable_to = true,
light_source = 4,
selection_box = {
type = "fixed",
fixed... |
project "HarmonyEngine"
kind "StaticLib"
language "C++"
cppdialect "C++17"
pchheader "src/harmonypch.h"
targetdir ( "%{wks.location}/build/" .. outputdir .. "/%{prj.name}")
objdir ( "%{wks.location}/build-int/" .. outputdir .. "/%{prj.name}")
files {
"src/**.h",
"src/**.cp... |
--[[
This script is empty.
It simply serves as a location for custom properties to be attached.
]]
|
-- Author: Christian Vallentin <mail@vallentinsource.com>
-- Website: http://vallentinsource.com
-- Repository: https://github.com/MrVallentin/http_request
--
-- Date Created: April 11, 2016
-- Last Modified: April 11, 2016
--
-- Developed and tested using Lua 5.1 and Lua 5.2
local http = require("http_request")
lo... |
local util = require("scripts.util")
return function(player, delta)
---@type LuaItemStack
local blueprint = util.get_blueprint(player.cursor_stack)
if not blueprint then
return
end
if not blueprint.blueprint_snap_to_grid then
return
end
local entities = blueprint.get_blueprint_entities() or {}
... |
local function encode_url( url )
return string.Replace( url, ' ', '%20' )
end
function mymemory_translate( text, source, target, callback )
if not isfunction( callback ) then return end
HTTP{
url = encode_url( string.format( 'https://api.mymemory.translated.net/get?q=%s&langpair=%s|%s', text, source... |
function savePos( pPlayer )
local x,y,z = getElementPosition (pPlayer)
outputChatBox ( x.. ",".. y .. ",".. z, pPlayer )
end
addCommandHandler ("savePos", savePos) |
-- 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
]]
--------------------------------------------------------------------------------
naga_siren_rip_tid... |
-- NetHack 3.6 mines.des $NHDT-Date: 1432512783 2015/05/25 00:13:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.25 $
-- Copyright (c) 1989-95 by Jean-Christophe Collet
-- Copyright (c) 1991-95 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
-- Mine end level variant 1
-- "Mimic of ... |
function projectile_hit(keys)
local caster = keys.caster
if caster:IsAlive() then
local target = keys.target
local ability = keys.ability
local level = ability:GetLevel() - 1
--local int_as_damage = ((ability:GetLevelSpecialValueFor("int_as_damage",level)/100) * caster:GetIntellect())
--local agi_as_damag... |
local M = {}
function M.setup()
require("lspconfig").yamlls.setup({
cmd = { DATA .. "/lsp_servers/yaml/node_modules/.bin/yaml-language-server", "--stdio" },
on_attach = require("lsp").common_on_attach,
settings = {
yaml = {
schemas = {
["https... |
require "resources/mysql-async/lib/MySQL"
function nameJob(id)
return MySQL.Sync.fetchScalar("SELECT job_name FROM jobs WHERE job_id = @namejob", {['@namejob'] = id})
end
function updatejob(player, id)
local job = id
MySQL.Async.execute("UPDATE users SET `job`=@value WHERE identifier = @identifier", {['@value']... |
local cjson = require "cjson"
local helpers = require "spec.helpers"
local meta = require "kong.meta"
local server_tokens = meta._SERVER_TOKENS
local fixtures = {
http_mock = {
lambda_plugin = [[
server {
server_name mock_aws_lambda;
listen 10001 ssl;
ssl_certificate $... |
module(...,package.seeall)
local utils = require('pf.utils')
local program_name = 'pflua-quickcheck'
local seed, iterations, prop_name, prop_args, prop, prop_info
local function rerun_usage(i)
print(("Rerun as: %s --seed=%s --iterations=%s %s %s"):
format(program_name, seed, i + 1,
prop_... |
--
-- 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 KUI, E, L, V, P, G = unpack(select(2, ...))
local KZ = KUI:NewModule("KuiZoom");
-- Based on the addon MaxCam by Ketho
local function CameraZoom(func, increment)
local isCloseUp = GetCameraZoom() < 6 and E.db.KlixUI.misc.zoom.increment >= 2
func(increment > 1 and increment or isCloseUp and 2 or E.db.KlixUI.mis... |
local S = ethereal.intllib
default.register_fence("ethereal:fence_scorched", {
description = S("Scorched Fence"),
texture = "scorched_tree.png",
material = "ethereal:scorched_tree",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
})
default.register... |
---@class Bounties
C_Bounties = {}
---@param uiMapID number
---@return BountyInfo|nil bounties
function C_Bounties.GetBountiesForMapID(uiMapID) end
---@param bountyID number
---@return BountyInfo|nil bounty
function C_Bounties.GetBountyInfo(bountyID) end
---@param uiMapID number
---@return MapOverlayDisplayLocati... |
function startup()
if file.open("init.lua") == nil then
print("init.lua deleted or renamed")
else
print("Running")
file.close("init.lua")
-- the actual application is stored in 'application.lua'
dofile("app.lua")
end
end
-------------
-- define
-------------
IO_LED_A... |
local awful = require "awful"
local icons = require "themes.luna.icons"
awful.layout.layouts = {
awful.layout.suit.tile,
-- awful.layout.suit.tile.left,
-- awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top,
awful.layout.suit.floating,
-- awful.layout.suit.fair,
-- awful.layout.suit.fair.horizo... |
local M = {}
local null_ls = require('null-ls')
local config = require('norme.config').config
M.filetypes = { 'cpp' }
M.method = null_ls.methods.DIAGNOSTICS
M.generator = require('null-ls.helpers').generator_factory({
command = config.cmd,
args = { '--filename', '$FILENAME', '--hfile', '$TEXT' },
format = 'line'... |
-----------------------------------------
-- ID: 5931
-- Item: Bowl of Shimmy Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- MP 32
-- Mind 5
-- HP Recovered While Healing 5
-- Enmity -5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globa... |
for _, f in pairs(data.raw.fluid) do
MOD.ArcadeMode.generate_fluid_source(f)
end |
E1Unit = Unit:extend()
function E1Unit:new(x, y)
E1Unit.super.new(self, x, y)
self.unit_name = "Hannah"
self.is_hero = true
self.has_feet = true
self.user_controlled = false
self.sprite_sheet = love.graphics.newImage('gfx/enemy/e1_1.png')
local loaded_sheet = anim8.newGrid(48, 48, self.spri... |
local ScreenManager = require('lib.screenmanager.ScreenManager')
local Log = require( 'src.util.Log' )
local DebugGrid = require( 'src.ui.overlays.DebugGrid' )
local Letterbox = require( 'src.ui.overlays.Letterbox' )
local DataHandler = require( 'src.DataHandler' )
-- ------------------------------------------------
-... |
--[[
Copyright 2019 Manticore Games, Inc.
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, publish, distrib... |
u8R""__RAW_STRING__(
local U = require "togo.utility"
local IO = require "togo.io"
local FS = require "togo.filesystem"
local S = require "togo.system"
local P = require "Pickle"
local Internal = require "Pickle.Internal"
local M = U.module(...)
M.info_text = "Pickle 0.00"
M.usage_text = [[
usage: pickle [options] <c... |
doak_sif = Creature:new {
objectName = "@mob/creature_names:doak_sif",
socialGroup = "sif",
faction = "sif",
level = 48,
chanceHit = 0.49,
damageMin = 385,
damageMax = 480,
baseXp = 4734,
baseHAM = 10000,
baseHAMmax = 12200,
armor = 0,
resists = {0,0,0,0,0,0,0,0,-1},
meatType = "",
meatAmount = 0,
hideTy... |
local status_ok, colorizer = pcall(require, 'colorizer')
if not status_ok then
return
end
colorizer.setup({
'css',
'lua',
'javascript',
'html',
'rust',
})
|
local addonName, addonScope = ...
local data = addonScope.data
local AL = addonScope.AL
local ALIL = addonScope.ALIL
local NORMAL_DIFF = addonScope.NORMAL_DIFF
local ALLIANCE_DIFF = addonScope.ALLIANCE_DIFF
local HORDE_DIFF = addonScope.HORDE_DIFF
local LOAD_DIFF = addonScope.LOAD_DIFF
local NORMAL_ITTYPE = addonScope.... |
local responses = require "kong.tools.responses"
local BasePlugin = require "kong.plugins.base_plugin"
local ConsumerRateLimiting = BasePlugin:extend()
local timeutils = require "kong.plugins.consumer-rate-limiting.timeutils"
local Controller = require "kong.plugins.consumer-rate-limiting.controller"
local gateway = ... |
if not (GetLocale() == "zhTW") then return end
local _, db = ... |
local bg_attrs = {"data-background", "data-background-image"}
function Header(elem)
if elem.attributes then
if elem.attributes.bg then
io.stderr:write("section " .. elem.identifier .. "\n")
local i=1
for w in elem.attributes.bg:gmatch("([^;]*)") do
-- io.... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for ForgeUI
--
-- name: module.lua
-- author: Winty Badass@Jabbit
-- about: ForgeUI module protype class
----------------------------------------------------------------------------------------------... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Cryo = require(Modules.Packages.Cryo)
local Roact = require(Modules.Packages.Roact)
local Signal = require(Modules.Common.Signal)
local EndOfScroll = require(Modules.NotLApp.EndOfScroll)
local LoadingBarWithTheme = requ... |
function onThink(interval)
db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `status` = 1 AND (`started` + 3600 * 2) < " .. os.time())
return true
end |
๏ปฟ
-- Place this file into your %FARPROFILE%\Macros\scripts
-- Several Far instances may be opened in ConEmu tabs.
-- This macro activates existing Editor/Viewer, wich
-- may be opened in then inactive instance of Far.
local ConEmu = "4b675d80-1d4a-4ea9-8436-fdc23f2fc14b"
Macro
{
area="Shell Search";
key="F3 F... |
AddCSLuaFile()
player_manager.AddValidModel( "uno", "models/splitbullet/joke/uno.mdl" )
player_manager.AddValidHands( "uno", "models/weapons/c_arms_uno.mdl", 0, "10000000" )
player_manager.AddValidModel( "dos", "models/splitbullet/joke/dos.mdl" )
player_manager.AddValidHands( "dos", "models/weapons/c_arms_uno.mdl", 0... |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0204-same-app-from-multiple-devices.md
-- Description: Check "count_of_rejected_rpc_calls" counter in case two consented mobile devic... |
require("lib.model")
local Animal = Model:extend("Animal", { columns = {
nickname = {}
},
belongsTo={aPerson="Person"}
}
)
function Animal:init(columns)
Animal.super:init(columns, self)
end
return Animal |
--!strict
local module = {
FindUp = require(script.FindUp),
FindUpAll = require(script.FindUpAll),
GetAncestors = require(script.GetAncestors),
}
return module
|
insulate("EventHandler:new()", function()
require "init"
require "spec.mocks"
require "spec.asserts"
require "spec.log_catcher"
describe(":register()", function()
it("allow to register a listener", function()
local called = 0
local eh = EventHandler:new()
... |
core:import("CoreEnvironmentFeeder")
ShadowBlock = ShadowBlock or class()
function ShadowBlock:init() self._parameters = {} end
function ShadowBlock:map() return self._parameters end
function ShadowBlock:set(key, value) self._parameters[key] = value end
function ShadowBlock:get(key) return self._parameters[key] end
En... |
if nil ~= require then
require "fritomod/OOP-Class";
require "fritomod/LuaEnvironment";
require "fritomod/LuaEnvironment-Loaders";
end;
LuaDependency = OOP.Class("LuaDependency");
function LuaDependency:NewEnvironment(file)
return LuaEnvironment:New();
end;
function LuaDependency:DependsOn(child, parent... |
return {
name = "Mission Impossible",
author = "evilnote4d",
version = "0.9",
message = [[
Unbelievable! The legendary blue diamond does really exist.
And, as you can see, it is well guarded.
This rare mineral will grant you temporary protection
against any kind of damage.
]],
data = [[
... |
mtechs = {}
local m = mtechs
m.actions = {}
m.components = {}
m.entities = {}
m.systems = {}
--[[
order of registration is
1. actions
2. components
3. systems
4. entities (after server startup)
]]--
function m.register_action(self, aid)
local a = {}
a.systems = {}
self.actions[action.aid] =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.