content stringlengths 5 1.05M |
|---|
mara_jade_outfit = {
{
{objectTemplate = "object/tangible/wearables/bodysuit/bodysuit_s15.iff", customizationVariables = {} }
}
}
addOutfitGroup("mara_jade_outfit", mara_jade_outfit)
|
local AdminPlugin = require('vanilla.plugin'):new()
function AdminPlugin:routerStartup(request, response)
print_r('<pre>')
if request.method == 'GET' then
print_r('-----------' .. sprint_r(request.headers) .. '----------')
else
print_r(request.headers)
end
end
function AdminPlugin:rout... |
local ADDON_NAME = "GamePadHelper"
local ADDON_VERSION = 1.01 |
--------------------------------------------------------------------------------
-- single-set_fail_on_first_error-true-suite.lua: suite used for full suite
-- tests
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
----------------------------------... |
include('sky/lib/prelude')
sky.use('sky/lib/device/arp')
sky.use('sky/lib/device/switcher')
sky.use('sky/lib/engine/polysub')
sky.use('sky/lib/io/norns')
sky.use('sky/lib/io/grid')
sky.use('sky/lib/io/crow')
sky.use('sky/lib/device/ui')
--sky.use('sky/lib/device/es')
sky.use('sky/lib/device/linn')
local halfsecond = i... |
local misc = require 'forth.extra.misc'
local reason = require 'forth.extra.reason'
local function functor (interpreter)
require 'forth.library.stack' (interpreter)
require 'forth.library.word' (interpreter)
require 'forth.library.world' (interpreter)
require 'forth.library.system' ... |
function post()
-- Block access for anyone who is not admin
if not session:isLogged() or not session:isAdmin() then
http:redirect("/")
return
end
-- Install extension
if http.postValues.install_extension then
local extension = json:unmarshalFile(string.format("exten... |
-- tl_ops_set_state
-- en : set node state
-- zn : 更新服务/节点状态
-- @author iamtsm
-- @email 1905333456@qq.com
local cjson = require("cjson");
cjson.encode_empty_table_as_object(false)
local snowflake = require("lib.snowflake");
local tl_ops_rt = require("constant.tl_ops_constant_comm").tl_ops_rt;
local tl_ops_utils_func... |
exports.chat:RegisterCommand("a:revive", function(source, args, command, cb)
local target = tonumber(args[1]) or source
if not target or target == 0 or target < -1 then return end
exports.log:Add({
source = source,
target = target > 0 and target or nil,
verb = "revived",
noun = target == -1 and "all" or nil... |
--------------------------------------------------------------------------------
-- Setup
--------------------------------------------------------------------------------
-- Variables for config
if not DriftOptions then DriftOptions = {} end
local DriftOptionsPanel = {}
DriftOptionsPanel.config = {}
-- Varia... |
--[[----------------------------------------------------------------------------
Application Name:
ColorBlobLength
Description:
Finding blue plastic tubes and measuring their lengths.
How to Run:
Starting this ... |
--[[
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... |
local oneline_if =
function(self, node)
return self:process_block_oneline('if ', node, ' then')
end
local multiline_if =
function(self, node)
return self:process_block_multiline('if', node, 'then')
end
local oneline_elseif =
function(self, node)
return self:process_block_oneline('elseif ', node,... |
-- Damage over time that all cysts take when not connected
kCystUnconnectedDamage = 6 -- was 12 |
-- Defer looking up an entity in a persisted entity ID table to preserve uniqueness.
return function(entity_id, world_table)
return function()
return world_table[entity_id]
end
end |
local hotkey = require 'hs.hotkey'
local function module_init()
local mash = config:get("lock.mash", { "ctrl","cmd" })
local key = config:get("lock.key", "L")
hotkey.bind(mash, key, function()
os.execute("/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend")
... |
set = set or {}
function set.table(s)
local t = { }
for v, _ in pairs(s) do
table.insert(t,v)
end
return t
end
|
-- Liro - shared.lua
-- Declare gamemode information
-- Change these to your gamemodes information, feel free to remove credit for Liro if you wish.
-- GM.Name will display as the gamemode name in the new server browser.
-- Do not edit GM.LiroVersion, this is used for Liro version checking and verification of the bas... |
local GAME_ROOT_POSITION = vec3 (400, -300, 0)
local GAME_ROOT_SCALE = vec3 (710, 710, 1)
local FIELD_OFFSET = vec3 (0.233, 0, 0)
local INPUT_ATTACHMENT_NAME = "Balls"
local LEFT_PLAYER_MANA_BOTTLE_POSITION = vec3 (-0.46, -0.295, 1)
local RIGHT_PLAYER_MANA_BOTTLE_POSITION = vec3 (0.375, -0.39, 1)
local game_pa... |
local TierIVETCVendorID = 43489
local TierIVETCLoop = {
["Stoff"] = {28477,28656,28511,28515,28517,28585,28652,28654,28670,28663,30675,30680,30684,28799,},
["Leder"] = {28453,28545,28514,28655,28669,28750,28752,30676,30681,30685,28828,},
["Schwere"] = {28503,28454,28567,28656,28610,28746,30677,30682,30686,28810,... |
local Gui = require("api.Gui")
local Event = require("api.Event")
local UiBar = require("api.gui.hud.UiBar")
local UiBuffs = require("api.gui.hud.UiBuffs")
local UiClock = require("api.gui.hud.UiClock")
local UiGoldPlatinum = require("api.gui.hud.UiGoldPlatinum")
local UiLevel = require("api.gui.hud.UiLevel")
local UiM... |
---@class Platform
---@field type string
---@field id string
---@field roadStation RoadStation
---@field platformNumber number
local Platform = {}
--- Creates a new Bus or Tram Station
---@param roadStation RoadStation a roadstation
---@param platformNumber number number of the platform starting with 1
---@return Plat... |
local request = require("lib.request")
local routes = {
HEAD = {},
GET = {},
POST = {}
}
local function route(method, path, block)
routes[method][path] = block
end
function head(path, block)
route("HEAD", path, block)
end
function get(path, block)
route("GET", path, block)
route("HEAD", path, block)
e... |
--[[
This module implements some env setting
]]
local tlast = require "typedlua/tlast"
local tltype = require "typedlua/tltype"
local tltAuto = require "typedlua/tltAuto"
local tltable = require "typedlua/tltable"
local tltPrime = require "typedlua/tltPrime"
local tlutils = require "typedlua/tlutils"
local tlenv = {}
... |
-- Online Interiors IPL Edits
-- Use https://github.com/Bob74/bob74_ipl/wiki to edit below
-- Clubhouse 1 (Sandy Shores)
Citizen.CreateThread(function()
-- Getting the object to interact with
BikerClubhouse1 = exports['bob74_ipl']:GetBikerClubhouse1Object()
-- Setting red bricked walls
BikerClubhouse1... |
local rcs = table.deepcopy(data.raw["rail-chain-signal"]["rail-chain-signal"])
rcs.name = "rndLabs-rail-chain-signal"
local rcsItem = table.deepcopy(data.raw["item"]["rail-chain-signal"])
rcsItem.name = "rndLabs-rail-chain-signal-item"
rcsItem.icons = {
{
icon = rcsItem.icon,
tint = {r=0, g=0, b=1, a=1}
}
}... |
if not util.Promise then
return false
end
function sqlier.ModelBase:getAsync(identity, callback)
return util.Promise(function(resolve, reject)
self:get(identity, resolve)
end)
end
function sqlier.ModelBase:findAsync(filter, callback)
return util.Promise(function(resolve, reject)
self:f... |
-- Testing gvt.call
local gvt = require 'luagravity'
local env = require 'luagravity.env.simple'
gvt.loop(env.nextEvent,
function ()
local tot = 0
local r = gvt.create(function() gvt.await(0.2) end)
local a = gvt.create(function() tot=tot+1 gvt.await(0) end)
local b = gvt.create(fu... |
local MegalodonAi = {}
MegalodonAi.__index = MegalodonAi
function MegalodonAi:new(actor)
assert(actor, "Is needed a actor to manipulate")
local this = setmetatable({
actor = actor,
elapsedTime = 0
}, MegalodonAi)
return this
end
function MegalodonAi:update(dt)
end
return Megalo... |
local function run(msg, matches)
local group = load_data('bot/group.json')
local addgroup = group[tostring(msg.chat_id)]
if matches[1] == 'setrules' and is_owner(msg) or is_momod(msg) and groupa then
redis:set('rules'..msg.chat_id_,matches[2])
tg.sendMessage(msg.chat_id_, 0, 1, '<b>Group Rules Saved</b>', 1, 'html')
en... |
local ScreenManager = require( 'lib.screenmanager.ScreenManager' )
local Screen = require( 'src.ui.screens.Screen' )
local TexturePacks = require( 'src.ui.texturepacks.TexturePacks' )
local GridHelper = require( 'src.util.GridHelper' )
local UIBackground = require( 'src.ui.elements.UIBackground' )
local UIOutlines = re... |
local speedyRobo = table.deepcopy(data.raw["roboport-equipment"]["personal-roboport-equipment"])
local speedyRoboItem = table.deepcopy(data.raw.item["personal-roboport-equipment"])
local speedyRoboRecipe = table.deepcopy(data.raw.recipe["personal-roboport-equipment"])
speedyRobo.name = "speedy-robo"
speedyRobo.shape... |
---
-- FDMM Unit Types Module.
-- @module FDMM_UnitTypes
env.info("---FDMM_UnitTypes Start---");
require('Additions/FDMM_LuaAdditions')
--- FDMM unit types module.
fdmm.unitTypes = {}
do -- FDMM_UnitTypes
--- Unit type table.
-- A ridiculous structure mapping fdmmUnitTypes to dcsUnitTypes.
-- Dates should be ... |
object_static_worldbuilding_terminal_cantina_droid_detector = object_static_worldbuilding_terminal_shared_cantina_droid_detector:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_cantina_droid_detector, "object/static/worldbuilding/terminal/cantina_droid_detector.iff") |
-- The unipolar_full_step example script was written as part of LabJack''s
-- "Stepper Motor Controller" App-Note. There is an accompanying python script
-- as well as a (Windows Only) LabVIEW example application that should be run
-- in conjunction wth this script.
-- See: https://labjack.com/support/app-notes/digit... |
local PluginRoot = script:FindFirstAncestor("SurfaceTool")
local Roact: Roact = require(PluginRoot.Packages.Roact)
local Llama = require(PluginRoot.Packages.Llama)
local Contexts = require(script.Parent.Contexts)
local e = Roact.createElement
local Component: RoactComponent = Roact.PureComponent:extend("PluginMenu"... |
-- example script that demonstrates use of thread:stop()
local counter = 1
function response()
if counter == 100 then
wrk.thread:stop()
end
counter = counter + 1
end
|
local function hasPointerArg(v)
for _, v in ipairs(v.arguments) do
if v.pointer or v.type.name == 'Any' then
return true
end
end
return false
end
print('void PointerArgumentSafety_Impl()\n{')
for _, v in pairs(_natives) do
if matchApiSet(v) and hasPointerArg(v) then
local avs = ''
lo... |
require('lint').linters_by_ft = {
javascript = {'eslint'},
python = {'pylint'},
robot = {'robocop'},
sh = {'shellcheck'},
vim = {'vint'},
}
vim.cmd([[
autocmd BufEnter,TextChanged,BufWritePost * lua require('lint').try_lint()
]])
|
-- Check whether Z encoded vectors from real images is dependant on Y.
-- That is, check if the distribution of Z changes with different Ys.
-- This codes requires to the file "isZconditionedOnY.dmp" (obtained from a modified
-- version of generateReconstructedDataset.lua), which needs to contain:
-- · Z = encoded ve... |
local nvim = require 'neovim'
local cmd = {
'pre-commit',
}
nvim.ex.CompilerSet('makeprg=' .. table.concat(cmd, '\\ '))
-- local formats = vim.opt_global.errorformat:get()
local formats = {
'%f:%l:%c: %t%n %m',
'%f:%l:%c:%t: %m',
'%f:%l:%c: %m',
'%f:%l: %trror: %m',
'%f:%l: %tarning: %m',
... |
local g = vim.g
g.nvim_tree_ignore = { '.git' }
g.nvim_tree_gitignore = true
g.nvim_tree_auto_open = true
g.nvim_tree_auto_ignore_ft = { 'startify' }
|
local HttpService = game:GetService("HttpService")
local Packages = script:FindFirstAncestor("CmdrAdditions").Packages
local Roact = require(Packages.Roact)
local Util = require(Packages.Util)
local Window = require(script.Window)
local DEFAULT_SIZE = Vector2.new(310, 370)
local WindowManager = Roact.Component:ext... |
-- License: CC0 1.0 Universal ( http://creativecommons.org/publicdomain/zero/1.0/legalcode )
--
do
return {
playerVsEnemy=function(player, enemy)
return hitTest(player.hitBodyRect, enemy.hitBody);
end,
playerVsBullet=function(player, bullet)
return hitTest(player.hitBodyRect, bullet.hitBody)... |
Path = class("Path")
local PathNode = {
x = 0,
y = 0,
G = 0,
H = 0,
F = 0,
}
Path.MaxDeep = 3000
function Path.CreateNode(x,y,f,g,h)
-- body
local node = {}
node.x = x or 0
node.y = y or 0
node.F = f or 0
node.G = g or 0
node.H = h or 0
return node
end
function Path:GenPath(start_pos,end_pos,max_dee... |
--- Event listener variables and functions.
...
--- Adds the given function to be called once the event fires.
--- @tparam function listener The listener to be called.
function addListener(listener)
end
--- Remove the given function from being called once the event fires.
--- @tparam function listener The listener to... |
local function QuickNPC(Name, PrintName, SpawnName, Race, Distance, Model)
local NPC = {}
NPC.Name = Name
NPC.PrintName = PrintName
NPC.SpawnName = SpawnName
NPC.Race = Race
NPC.DistanceRetreat = Distance
NPC.Model = Model
return NPC
end
local function AddBool(Table, IsFrozen, IsInvincible, IsIdle)
Table.Froz... |
require "maths"
require "planete"
require "tableaux"
require "biomes"
require "region"
require "sous-region"
--[[
#################################################################
#################################################################
############### love.load == initialisation #################
#######... |
local local0 = 1
local local1 = 0 - local0
local local2 = 6.8 - local0
local local3 = 0 - local0
local local4 = 0 - local0
local local5 = 7.1 - local0
local local6 = 0 - local0
local local7 = 3 - local0
local local8 = 0 - local0
local local9 = 3 - local0
function OnIf_552100(arg0, arg1, arg2)
if arg2 == 0 then
... |
--
-- Chartboost Corona SDK
-- Created by: Chris
--
-- This enum is used by internal Chartboost code!
-- Do not modify its public interface!
--
-- Enumeration of impression states
--
local ret = {
CBImpressionStateOther = "CBImpressionStateOther",
CBImpressionStateWaitingForDisplay = "CBImpressionStateWaitingF... |
module('enemies', package.seeall)
superball = body:new {
size = 40,
variance = 13,
life = 60,
timeout = 40,
collides = true,
ord = 6,
__type = 'superball'
}
function superball:__init()
if not rawget(self.position, 1) then enemy.__init(self) end
local vx, vy = math.random(v, v+50), math.random(v, v+50)
vx =... |
local
PushUISize, PushUIColor,
PushUIStyle, PushUIAPI,
PushUIConfig, PushUIFrames = unpack(select(2, ...))
PushUIFrames.AnimationStage = PushUIAPI.inhiert()
function PushUIFrames.AnimationStage:__create_snapshot()
self._snapshot.alpha = self._relativelayer:GetAlpha()
self._snapshot.scale_h, self... |
--------------------------------------------------------------------------------
-- Copyright (c) 2006-2013 Fabien Fleutot and others.
--
-- All rights reserved.
--
-- This program and the accompanying materials are made available
-- under the terms of the Eclipse Public License v1.0 which
-- accompanies this distribut... |
local Shop = {}
local Data = require "data.data"
local Input = require "util.input"
local Memory = require "util.memory"
local Menu = require "util.menu"
local Player = require "util.player"
local Inventory = require "storage.inventory"
function Shop.transaction(options)
local item, itemMenu, menuIdx, ... |
--[[
OmniCC configuration localization - Portuguese
--]]
if GetLocale() ~= 'ptBR' then return end
local L = OMNICC_LOCALS
L.GeneralSettings = "Geral"
L.FontSettings = "Aspecto do Texto"
L.RuleSettings = "Regras"
L.PositionSettings = "Posição do Texto"
L.Font = "Fonte"
L.FontSize = "Tamanho do Texto"
L.FontOutline =... |
--!A cross-platform build utility based on Lua
--
-- 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... |
---------------------------------------------
-- Sweet Breath
--
-- Description: Deals water damage to enemies within a fan-shaped area originating from the caster.
-- Type: Magical Water (Element)
--
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
... |
--tyrant mod for minetest 0.4.13
--library to provide a shared api for area protection mods
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
-- If you use insertions, but not insertion escapes this will work:
S = funct... |
print(type(a))
a = 10
print(type(a))
a = "a string!!"
print(type(a))
a = print
a(type(a))
print("======分割线======")
a = "one string"
b = string.gsub(a,"one","another")
print(a)
print(b)
print("========分割线======")
print("10" + 1)
print("10 + 1")
--print("-5.3e - 10" * "2")
--print("hello" + 1)
print("=========分割线=====... |
import "metabase_common.lua"
import "platform_windows.lua"
writer "writer_msvc.lua"
option("msvc", "customwriter", "writer_msvc_windows.lua")
option("msvcglobals", "Keyword", "Win32Proj")
option("msvconfiguration", "CharacterSet", "Unicode")
option("msvccompile", "MultiProcessorCompilation", "true")
option("msvcco... |
local classes = classes;
local super = classes.Object;
local class = inherit({
name = "Vector3",
super = super,
func = inherit({}, super.func),
get = inherit({}, super.get),
set = inherit({}, super.set),
concrete = true,
}, super);
classes[class.name] = class;
... |
fx_version 'adamant'
games {'gta5'}
description 'NPC-Taco-Shop'
version '1.0.0'
client_script "client/client.lua"
client_script "client/client_dropoffs.lua"
client_script "@npc-scripts/client/errorlog.lua"
server_script "server/server.lua"
|
return {
global = {
fields = {
love = {
fields = {
audio = {
description = "Provides an interface to create noise with the user's speakers.",
fields = {
getDistanceModel = {
args = {},
description = "Returns the distance... |
mapEffects = "lib/mapEffects"
target.reserved_effect(mapEffects.getReservedEffect("pirateScene") .. target.gender) |
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('TinyDPS') then return end
function AS:TinyDPS()
AS:SkinBackdropFrame(tdpsFrame)
tdpsFrame.Backdrop:SetAllPoints()
tdpsFrame:HookScript('OnShow', function()
if AS:CheckEmbed('TinyDPS') then
EmbedSystem_MainWindow:Show()
end
end)
if tdpsStatusBar then
... |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/9
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/button_press_emulation.md
-- Item: Use Case 1: Altern... |
return {
topics = {
"draw",
"keypressed",
"quit",
"update",
},
systems = {
category = {
categories = {},
},
fixedUpdate = {
fixedDt = 1 / 60,
topics = {
"transform",
"input",
"physics",
"death",
},
},
graphics = {
... |
SafeAddString(SI_PET_HEALTH_COMBAT_ACTIVATED , "La fenetre de santé de familier n'est active juste en combat.")
SafeAddString(SI_PET_HEALTH_COMBAT_DEACTIVATED , "La fenetre de santé de familier reste active tant qu'un familier est invoqué.")
SafeAddString(SI_PET_HEALTH_VALUES_ACTIVATED , "Les valeurs sont activées.")
S... |
-- entity_manager
-- ArkhieDev
-- 5/9/2021
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
-- Variables
local xeno = require(ReplicatedStorage:WaitForChild("xeno"))
local network = xeno.... |
--
-- AI Classes
-----------------
function init_aiClass()
-- Create the table for the class definition
ai_Class = {}
-- Define the new() function
ai_Class.new = function()
local self = {}
self.heroes = {}
self.heroGroup = CreateGroup()
self.heroOptions = {
"heroA", "heroB", "heroC", "heroD", "heroE", ... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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... |
project = "plugin"
title = "Plugin Title"
description = "Plugin Description"
full_description = "Plugin Full Description"
not_luadoc = true
template = true
examples = "examples"
custom_tags = {
{
"link",
title = "Links",
format = function(text)
local name = text:gsub("^%s*(.-)%s*http.*$", "%1", 1... |
-- https://github.com/kosayoda/nvim-lightbulb
local icons = require('icons')
vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb()]]
vim.fn.sign_define('LightBulbSign', { text = icons.lightbulb })
|
lokis_favor = {
cast = function(player)
if (not player:hasDuration("lokis_favor")) then
player:setDuration("lokis_favor", 9999999)
else
player:setDuration("lokis_favor", 1)
end
end,
while_cast_500 = function(player)
player:swing()
player:swing()
if (not player:hasDuration("flank_warrior")) then
... |
local InfiniteScroller = script:FindFirstAncestor("infinite-scroller")
local Root = InfiniteScroller.Parent
local Roact = require(Root.Roact)
local Cryo = require(Root.Cryo)
local Scroller = require(InfiniteScroller).Scroller
local Story = Roact.PureComponent:extend("Rhodium Story - a few large items")
function Story... |
-- In Lua 5.1/LuaJIT, there is one global function called unpack.
-- In Lua >= 5.2 it was deprecated in favor of the function table.unpack.
-- The following line creates a new local variable called `unpack` pointing
-- to the right function depending on the Lua version you are in.
-- Just remember that unpack is not av... |
vim9jit = {}
vim9jit.DefaultForType = function(type_str)
if type_str == 'number' then
return 0
else
error(string.format('Unknown type_str: %s', type_str))
end
end
local exact_comparisons = {
["=="] = true,
["==#"] = true,
}
vim9jit.ComparisonEvaluate = function(operator, a, b)
if exact_compariso... |
---------------------------------------------
-- Fossilizaing Breath
--
-- Description: Petrifies targets within a fan-shaped area.
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown cone
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
requir... |
local args = ...
local row = args[1]
local col = args[2]
local y_offset = args[3]
local af = Def.ActorFrame{
Name="SongWheelShared",
InitCommand=function(self) self:y(y_offset) end
}
-----------------------------------------------------------------
-- black background quad
af[#af+1] = Def.Quad{
Name="SongWheelBack... |
tt = {
createObject(3749,2759.6006000,1313.2002000,16.8000000,0.0000000,0.0000000,90.0000000), --object(clubgate01_lax), (2),
createObject(6959,2799.6999500,1224.2998000,-10.2000000,90.0000000,0.0000000,0.0000000), --object(vegasnbball1), (11),
createObject(11353,2758.2998000,1276.7002000,13.9000000,0.0000000,0.000000... |
-- Requires highlighter currently.
if hex_write_config == nil then
hex_write_config = {}
end
if hex_write_config["selected_attribute"] == nil then
hex_write_config["selected_attribute"] = DrawingAttributes.Standout
end
if hex_write_config["selected_editing_attribute"] == nil then
hex_write_config["selected... |
local function AdminLog(message, colour)
local RF = RecipientFilter()
for k,v in pairs(player.GetAll()) do
local canHear = hook.Call("canSeeLogMessage", GAMEMODE, v, message, colour)
if canHear then
RF:AddPlayer(v)
end
end
umsg.Start("DRPLogMsg", RF)
umsg.Short(colour.r)
umsg.Short(colour.g)
umsg.Sh... |
AddCSLuaFile()
g_PrimarySlotWeapons = {}
g_SecondarySlotWeapons = {}
g_MeleeSlotWeapons = {}
g_GunTypeWeapons = {}
g_MeleeTypeWeapons = {}
WEAPON_SLOT_PRIMARY = 1
WEAPON_SLOT_SECONDARY = 2
WEAPON_SLOT_MELEE = 3
WEAPON_TYPE_GUN = 1
WEAPON_TYPE_MELEE = 2
g_DefaultWeapons = {
[WEAPON_SLOT_PRIMARY] = "weapon_ak47",
... |
-- This is a part of uJIT's testing suite. The script is tuned to reproduce
-- following situation: During running the timeout function, the JIT compiler
-- starts recording a trace and aborts. The platform must not re-enable
-- timeout checks for the coroutine in these cirsumstances.
-- Copyright (C) 2015-2019 IPONWEB... |
--[=[
@class IKAimPositionPriorites
]=]
local require = require(script.Parent.loader).load(script)
local Table = require("Table")
return Table.readonly({
DEFAULT = 0;
LOW = 1000;
MEDIUM = 3000;
HIGH = 4000;
}) |
ghc_fs_include_dir = "$(projectdir)/thirdparty/ghc_fs/include"
ghc_fs_source_dir = "$(projectdir)/thirdparty/ghc_fs"
table.insert(include_dir_list, ghc_fs_include_dir)
table.insert(deps_list, "ghc_fs")
target("ghc_fs")
set_kind("static")
add_files(ghc_fs_source_dir.."/filesystem.cpp")
if is_os("windows") ... |
-- Transition easing functions.
--
-- Copyright (c) 2010-present Bifrost Entertainment AS and Tommy Nguyen
-- Distributed under the MIT License.
-- (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
local function cubic(t)
return t * t * t
end
local function ease(a, b, t)
return a +... |
--
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
solution "bgfx"
configurations {
"Debug",
"Release",
}
platforms {
"x32",
"x64",
"Xbox360",
"Native", -- for targets where bitness is not specified
}
language "C++"
BGFX_... |
--[[
example file from sluacurses.
File shows a simple example of creating a single window through sluacurses.
--]]
local Curses = require("sluacurses") --load sluacurses into program
initscr() --start ncurses
noecho() --dont display keystrokes to screen
curs_set(0) --dont display cursor
refresh() --... |
object_tangible_quest_tatooine_reeyees_jabbas_ledger = object_tangible_quest_shared_tatooine_reeyees_jabbas_ledger:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_tatooine_reeyees_jabbas_ledger, "object/tangible/quest/tatooine_reeyees_jabbas_ledger.iff")
|
local fuzzy_match = require "utilities.fuzzy.fuzzy_match"
local M = fuzzy_match
describe("fuzzy_match:", function()
describe("allCaseInsensitiveSplits()", function()
it("should return the correct splits", function()
assert.same(
{
{before = "abc", chr = "d", after = "efgdhij"},
... |
--
-- Quick Export Script to Swap Red and Blue Channels in Gimp
-- by Stu Fisher http://q3f.org
--
-- modified to use ImageMagick
-- by Chris McClanahan http://mcclanahoochie.com
--
return {
LrSdkVersion = 4.0,
LrSdkMinimumVersion = 3.0,
LrToolkitIdentifier = 'com.adobe.lightroom.export.rbswap',
LrPlug... |
-- Anti compiller
-- Anti compiller
local CSGSecurity = {{{{{ {}, {}, {} }}}}}
GUIEditor = {
label = {}
}
vehiclesWindow = guiCreateWindow(102, 133, 539, 330, "Aurora ~ Vehicles", false)
guiWindowSetSizable(vehiclesWindow, false)
vehiclesGrid = guiCreateGridList(10, 27, 356, 289, false, vehiclesWi... |
vim.g.vista_disable_statusline = 1
vim.g.vista_icon_indent = { "╰─▸ ", "├─▸ " }
vim.g.vista_default_executive = 'nvim_lsp'
|
slot2 = "TrackManager"
TrackManager = class(slot1)
TRACK_HALL_GRZX = 10001
TRACK_HALL_YH = 10002
TRACK_HALL_CZ = 10003
TRACK_HALL_JB = 10004
TRACK_HALL_YYDB = 10005
TRACK_HALL_XYDZP = 10006
TRACK_HALL_KF = 10007
TRACK_HALL_XX = 10008
TRACK_HALL_PHB = 10009
TRACK_HALL_SZ = 10010
TRACK_HALL_PMD = 10011
TRACK_HALL_DH = 10... |
-- Sand Monster by PilzAdam
--The MIT License (MIT) (for sand monster)
--Copyright (c) 2016 TenPlus1 (for sand monster)
local S = mobs.intllib
local dirt_types = {
{ nodes = {"ethereal:dry_dirt"},
skins = {"mobs_dirt_monster3.png"},
drops = {
{name = "ethereal:dry_dirt", chance = 1,... |
--- a test module
-- @module test
local M = {}
---
-- @tparam string a First argument
-- @param[out] b Second argument
-- @param[optional] c Third argument
-- @return a
-- @return b
-- @return c
function M.foo2(a, b, c)
return a, b, c
end
return M
|
ra_options = {}
SLASH_SAYRES1, SLASH_SAYRES2 = '/sayres', '/sr'
function SlashCmdList.SAYRES(msg, editbox)
local cmd, opt = strsplit(" ", msg)
local chatformat_cmd = "|cFFFF8080rA |\124|cffffff55"
local chatformat_info = "|cFFFF8080rA |\124|cffff0000"
if cmd == "chat" then
if opt == "0" then
DEFAULT_... |
object_tangible_deed_vehicle_deed_tcg_hk47_jetpack_deed = object_tangible_deed_vehicle_deed_shared_tcg_hk47_jetpack_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_tcg_hk47_jetpack_deed, "object/tangible/deed/vehicle_deed/tcg_hk47_jetpack_deed.iff")
|
vim.cmd"command! -bang -nargs=+ -range=0 -complete=file AsyncRun packadd asyncrun.vim | call asyncrun#run('<bang>', '', <q-args>, <count>, <line1>, <line2>)"
vim.cmd"command! -bang -nargs=* Make AsyncRun<bang> -strip -post=copen -program=make <args>"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.