content stringlengths 5 1.05M |
|---|
---------------------------------------------------------------------------------------------------
-- Proposal:https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0249-Persisting-HMI-Capabilities-specific-to-headunit.md
--
-- Description: Check that SDL updates "hmi_capabilities_cache.json" file if ... |
DefineClass.Milestone = {
__parents = { "Preset" },
properties = {
{ id = "display_name", name = T(1153, "Display Name"), editor = "text", default = "", translate = true, },
{ id = "base_score", name = T(1154, "Base Score"), editor = "number", default = 1000, },
{ id = "bonus_score", name = T(1155, "Bonus Score... |
return {
armblastwing = {
acceleration = 0.142,
blocking = false,
brakerate = 0.385,
buildcostenergy = 1370,
buildcostmetal = 75,
builder = false,
buildpic = "armblastwing.dds",
buildtime = 2150,
canattack = true,
canfly = true,
canguard = true,
canmove = true,
canpatrol = true,... |
object_tangible_item_item_outbreak_tie_helmet_hidden_content = object_tangible_item_shared_item_outbreak_tie_helmet_hidden_content:new {
}
ObjectTemplates:addTemplate(object_tangible_item_item_outbreak_tie_helmet_hidden_content, "object/tangible/item/item_outbreak_tie_helmet_hidden_content.iff")
|
local vstruct = require('vstruct')
local zlib = require('zlib')
local function crc32(...)
local c = zlib.crc32()
for i = 1, select('#', ...) do
c = zlib.crc32(c, select(i, ...))
end
return c
end
local chunks = {
IDAT = vstruct.compile('s'),
IEND = vstruct.compile(''),
IHDR = vstruct.compile([[>
... |
-- evp.h
local EVP_PKEY_ALG_CTRL = require("resty.openssl.include.evp").EVP_PKEY_ALG_CTRL
return {
EVP_PKEY_CTRL_TLS_MD = EVP_PKEY_ALG_CTRL,
EVP_PKEY_CTRL_TLS_SECRET = EVP_PKEY_ALG_CTRL + 1,
EVP_PKEY_CTRL_TLS_SEED = EVP_PKEY_ALG_CTRL + 2,
EVP_PKEY_CTRL_HKDF_MD = EVP... |
include('shared.lua')
print("pd_bank/cl_init.lua")
function ENT:drawBankInfo()
surface.SetDrawColor(Colours.filla)
surface.DrawRect(32, 0, 508, 164)
draw.SimpleTextOutlined( "Government", "Common_Font_86", 286, 0, Colours.text, TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 2, Colours.outline)
draw.SimpleTextOutlined( "B... |
--[[
TheNexusAvenger
Class representing a view for adding files.
--]]
local NexusGit = require(script.Parent.Parent.Parent.Parent):GetContext(script)
local GitAddRequest = NexusGit:GetResource("NexusGitRequest.PostRequest.GitAddRequest")
local Directory = NexusGit:GetResource("NexusGitRequest.File.Directory")
local N... |
function Log (msg)
DebugPrint ( '[zonecontrol/test] ' .. msg )
end
-- Taken from bb template
if ZoneControlTest == nil then
Log('zone control tester is enabled!!' )
Log('zone control tester is enabled!!' )
Log('zone control tester is enabled!!' )
ZoneControlTest = class({})
end
function ZoneControl... |
RegisterNetEvent('chatCommandEntered')
local guiEnabled = false
function DisplayNotification(text)
SetNotificationTextEntry("STRING")
AddTextComponentString(text)
DrawNotification(false, false)
end
function PrintChatMessage(text)
TriggerEvent('chatMessage', "system", { 255, 0, 0 }, text)
end
function EnableG... |
-- Implement static global utiity functions
function write ( sText )
io.write(sText)
end
function clear ( )
if os.getenv("TERM") then os.execute("clear") end
end
-- Load a table from a file
function table.load ( sPath )
local func,err = loadfile(tostring(sPath))
if err then return nil end
return func()
e... |
return {
require("plugin/misc/comment"),
require("plugin/misc/nvim_notify"),
{ "moll/vim-bbye" },
{ "tpope/vim-repeat" },
-- { "godlygeek/tabular" }
}
|
--[[
Author: MouJiaoZi
Email: moujiaozi@gmail.com / ww64646464@vip.qq.com
usage:
To set an ability as charge-type:
AbilityChargeController:AbilityChargeInitialize(hAbility, fChargeTime, iMaxCharges, iChargeCost, bResetByRefresh, bCDR)
hAbility: the ability you want to set
fChargeTime: the cooldown of c... |
local M = {}
local function onVehicleSwitched(_, _, _)
guihooks.trigger("_Radar_VehicleSwitch")
end
M.onVehicleSwitched = onVehicleSwitched
return M
|
function test()
c = a .. b
end
function test2()
test()
end
test2() |
local states = require("states")
local button = require("button")
local hexfieldModel = require("models/hexfieldModel")
local overwrite = {}
local filetointeract
function overwrite.open(params)
filetointeract = params.filetointeract
end
function overwrite.draw()
love.graphics.setColor(1,1,1)
love.graphics.setFon... |
include("shared.lua")
function ENT:Initialize()
end
local mat = Material("vgui/circle")
local mat2 = Material("vgui/dashed_line")
local mat3 = Material("stormfox/models/clock_mini_material")
function ENT:Draw()
render.MaterialOverrideByIndex( 0, mat3 )
self:DrawModel()
render.MaterialOverrideByIndex( )
if ( hal... |
-----------------------------------
-- Area: Den of Rancor
-- NPC: Lantern (SE)
-- !pos -59 45 24 160
-----------------------------------
require("scripts/zones/Den_of_Rancor/globals")
-----------------------------------
function onTrade(player,npc,trade)
DEN_OF_RANCOR.onTradeLanternChamber(player, npc, trade)
en... |
-- Meant for naval surface or submarine vehicles with yaw + propulsion
-- control.
-- Should have hydrofoils in front of and behind the CoM, otherwise use
-- a different script (utility-ai.lua, utility.lua).
-- Should have material gatherers and/or plenty of cargo space depending on
-- configuration.
-- CONFIGURATION
... |
local bit = require "bit32"
local masks = {
"128.0.0.0",
"192.0.0.0",
"224.0.0.0",
"240.0.0.0",
"248.0.0.0",
"252.0.0.0",
"254.0.0.0",
"255.0.0.0",
"255.128.0.0",
"255.192.0.0",
"255.224.0.0",
"255.240.0.0",
"255.248.0.0",
"255.252.0.0",
"255.254.0.0",
"255.255.0.0",
"255.255.128.0"... |
print(type("hello world"))
print(type(print))
print(type(true))
print(type(360.0))
print(type(nil))
-- string
-- function
-- boolean
-- number
-- nil |
local L = require( "lpeg" )
local LU = require( "adoc_cmd_ext.lpeg_util" )
local P = require( "adoc_cmd_ext.pattern" )
local U = require( "adoc_cmd_ext.util" )
--------------------------------------------------------------------------------
local function tokenize_table( adocFileStr )
local p = LU.list_pattern( P.... |
UIMenuColouredItem = setmetatable({}, UIMenuColouredItem)
UIMenuColouredItem.__index = UIMenuColouredItem
UIMenuColouredItem.__call = function() return "UIMenuItem", "UIMenuColouredItem" end
function UIMenuColouredItem.New(Text, Description, MainColour, HighlightColour)
if type(Colour) ~= "table" then Colour = {... |
local Quality = {}
--Quality.__index = Quality
local qualityNames = {
'Common', -- 1
'Uncommon', -- 2
'Rare', -- 3
'Epic', -- 4
'Legendary', -- 5
}
local qualityValues = {
['Common'] = 1,
['Uncommon'] = 2,
['Rare'] = 3,
['Epic'] = 4,
['Legendary'] = 5,
}
local qualityColors = {
['Common'] = 0xffcccccc,
[... |
local function _classify(z_A, z_B, ground_truth, thresh)
local _classify_res = 1;
if z_A - z_B > thresh then
_classify_res = 1
elseif z_A - z_B < -thresh then
_classify_res = -1
elseif z_A - z_B <= thresh and z_A - z_B >= -thresh then
_classify_res = 0;
end
if _classify_... |
oxomoco = {
core = require 'oxomoco.core',
units = {}
}
--- Scientific notation with default base 10.
-- Base can be changed (eg 1000 / 1024 for prefixes)
oxomoco.units.scinot = function(value, base)
base = base or 10
local mg = 0
repeat
if value < 1 then
mg = mg - 1
... |
VERSION = "1.0.1"
MakeCommand("wc", "wc.wordCount", 0)
function wordCount ()
buffer = CurView().Buf --Pulls working screen buffer from editor view
charCount = buffer:len() --Finds length of buffer
bufstr = tostring(buffer)
local _ , wordCount = bufstr:gsub("%S+","") --Lua patterns, see: lua.org/pil/20.2.h... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
include("server/autotaunt.lua")
function GM:PlayerInitialSpawn(ply)
ply:SetTeam(TEAM_SPECTATOR)
player_manager.SetPlayerClass(ply, "player_spectator")
if (ply:IsBot()) then
-- Auto add bots to the smaller team for testing... |
gameState = "play"
--libs
local bump = require 'lib.bump'
local inspect = require 'lib.inspect'
local class = require 'lib.middleclass'
local gamera = require 'lib.gamera'
local txt = require 'lib.txt'
-- source files
local Player = require 'src.player'
local MapSystem = require 'src.mapsystem'
local Leve... |
local P = require 'posix'
local fd1 = P.open(arg[1], P.O_RDONLY)
local fd2 = P.open(arg[2], P.O_RDONLY)
local fds = {
[fd1] = { events = {IN=true} },
[fd2] = { events = {IN=true} }
}
while true do
P.poll(fds,-1)
for fd in pairs(fds) do
if fds[fd].revents.IN then
local res = P.read(fd,1024)
P... |
local stat = {
{
_id = "life",
elona_id = 2,
calc_final = function(level)
return { level = level, potential = 100 }
end
},
{
_id = "mana",
elona_id = 3,
calc_final = function(level)
return { level = level, potential = 100 }
end
},
{
... |
local JoinController= require(game.ServerScriptService.kwatworks.Base.BaseController):extend()
local Players = game:GetService("Players")
local Player = require(game.ServerScriptService.kwatworks.Core.PlayerObject)
local PlayerController = require(game.ServerScriptService.kwatworks.Core.PlayerController)
function Jo... |
-- ===========================================================================
-- CivicsTree
-- Tabs set to 4 spaces retaining tab.
--
-- Items exist in one of 7 "rows" that span horizontally and within a
-- "column" based on the era and cost.
--
-- Rows Start Eras->
-- -3 _____ ____... |
require 'keycodes'
local BLIP_WAYPOINT = 8
local want_teleport = false
local current_position = nil
function OnScriptTick()
current_position = entity.GET_ENTITY_COORDS(player.PLAYER_PED_ID(), 1)
if want_teleport then
local blip_id = ui.GET_FIRST_BLIP_INFO_ID(BLIP_WAYPOINT)
if blip_id > 0 then
local target... |
if not modules then modules = { } end modules ['util-sql-users'] = {
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"
}
-- This is experimental c... |
-- Generator general menu
--- @author Alexandr Mikhailenko a.k.a. Alex M.A.K. <alex-m.a.k@yandex.kz>
local menugen = require("core.modules.menugen")
mythememenu = {}
function removeOldTheme()
local cfg_path = _Awesome.config
local cmd = "ls -1 " .. cfg_path .. "/themes/.usedTheme/"
local f = io.popen(cmd)
fo... |
-- Jambo animations
-- Performance bindings
local newImage = love.graphics.newImage
-- Imports
local Media = require("scripts.media")
-- Sprite geometry
local sprite_width = 26
local sprite_height = 22
-- Resources path file
local path = "res/gfx/SpriteSheets/play... |
function UITextField()
local self = UIElement()
self.options.multiline = false
self.options.template = [[
<input <% if (typeof hideinput != 'undefined' && hideinput == true) { %>type="password"<% } %> id="<%- id %>" class="ui-framework-parent textfield" spellcheck="false" value="<%- value %>" place... |
--[[
File : /lua/AI/AIBuilders/DilliFactoryBuilders.lua
Author : Softles
Summary :
Factory Builders for Dilli.
If a factory is making units, that behaviour is controlled here.
]]
local UCBC = '/lua/editor/UnitCountBuildConditions.lua'
local TBC = '/lua/editor/ThreatBuildConditions.lua'... |
require "Items/SuburbsDistributions"
require "Items/ProceduralDistributions"
-- ITEMS
--- CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan
--- CocoLiquidOverhaulItems.Coco_LargePetrolCan
-- LOCATIONS
--- all
--- shed
--- garagestorage
--- garage
--- storageunit
--- gasstore
--- gasstorage
--- armyhanger
--- armyhange... |
local say
say = function(text)
local espeak_cmd = [[espeak --stdout -s250 -k18 -a50 -v female2 | play -t wav - \
gain 10
]]
do
local _with_0 = io.popen(espeak_cmd, "w")
_with_0:write(text)
_with_0:close()
return _with_0
end
end
return {
say = say
}
|
-- Crafting recipes for pipes
minetest.register_craft( {
output = "pipeworks:pipe_1_empty 12",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "", "", "" },
{ "default:steel_ingot", "default:steel_ingot", "default:ste... |
local skynet = require "skynet"
local sc = require "skynet.socketchannel"
local socket = require "skynet.socket"
local cluster = require "skynet.cluster.core"
local channel
local session = 1
local node, nodename = ...
local command = {}
local waiting = {}
local function send_request(addr, msg, sz)
--... |
-- See LICENSE for terms
-- local some globals
local type = type
local UIL_Measure = UIL.MeasureImage
-- called below, image should be a string path that we can validate (otherwise return as is)
local function FixPath(image)
-- not everything sent from below is an image str (in-game paths all use tga, mods can use p... |
local L = BigWigs:NewBossLocale("The Black Morass Trash", "itIT")
if not L then return end
if L then
--L.wave = "Wave Warnings"
--L.wave_desc = "Announce approximate warning messages for the waves."
L.medivh = "Medivh"
end
|
local count = 0
while true do
local val = redis.call("LPOP", KEYS[1])
if val then
count = count + 1
redis.call("RPUSH", KEYS[2], val)
else
return count
end
end
|
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 09.02.2015
-- Time: 23:33
-- To change this template use File | Settings | File Templates.
--
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 09.02.2015
-- Time: 23:31
-- To change this template use File | Settings | File Templates.
--
cAirBreak = ... |
local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
local DT = E:GetModule('DataTexts')
local LO = E:GetModule('Layout');
local floor = math.floor
local join = string.join
local IsInRaid = IsInRaid
local IsInGroup = IsInGroup
local SendChatMes... |
local basexx = require 'basexx'
local utils = require 'jwt.utils'
local pkey = utils.pkey
local json = utils.json
local HMAC = utils.HMAC
local DIGEST = utils.DIGEST
local data = {}
local function tohex(s)
local result = ""
for i = 1, #s do
result = result..string.format("%.2x", string.byte(s, i)... |
--[[
luapoly by David Gayerie
]]--
require "circular_table"
local new_poly = require "poly"
local msg = ""
local shape = {}
local function parse_args(args)
local vertices_chain={}
if args[2] then
local f = io.open(args[2])
if io.type(f) == "file" then
for line in f:lines() do
for t in st... |
local Entity = FindMetaTable 'Entity'
local encode = util.TableToJSON -- Can be spon.encode, pon2.encode or some other encoding method ( table to string )
local decode = util.JSONToTable -- Can be spon.decode, pon2.decode or some other decoding method ( string to table )
function Entity:SetNWTable( key, tbl )
self:S... |
-- Run all unit tests in 'unit' directory
local telescope = require "telescope"
require "rspamd_assertions"
local loaded, luacov = pcall(require, 'luacov.runner')
if not loaded then
luacov = {
init = function() end,
shutdown = function() end,
run_report = function() end
}
end
luacov.init()
local conte... |
--
local M = {}
local copy = require('mx_py.copy')
local ctypes = require('ctypes')
local base = require('mx.base')
local _LIB, mx_uint, NDArrayHandle, ExecutorHandle, py_str, mx_int, check_call, c_handle_array, c_array_buf, c_str_array = base._LIB, base.mx_uint, base.NDArrayHandle, base.ExecutorHandle, base.py_str, b... |
local _ = require "lib.lume"
local Entity = require "core.entity"
local Tile = Entity:extend()
local TileMap = Entity:extend()
function Tile:new(filename, tilesize, index, cache)
Tile.super.new(self)
if cache then
self.image = cache.image
self.frames = cache.frames
self.width, self.height = tilesize, ... |
-- KEYS[1]: the job data hash
-- KEYS[2]: the active job list
-- KEYS[3]: the signal list
-- ARGV[1]: the job ID
-- ARGV[2]: the serialized job data
-- Returns: 1 if the job was newly enqueued, 0 if it already exists
-- Set job data in hash
local set = redis.call("hsetnx", KEYS[1], ARGV[1], ARGV[2])
if set == 1 the... |
function foo()
for i = 1, 10 do
print(i)
coroutine.wait(1)
end
end
local co= coroutine.start(foo)
|
-- this file is generated by xresloader, please don't edit it.
return {
[1] = {
count = 5,
data_source = {
{
file = "资源转换示例.xlsx",
sheet = "test_oneof",
},
},
data_ver = "1.0.0.0",
description = "Test event_cfg with oneof fields",
hash_code = "no hash ... |
local spacing = 60
local bar_height = 8
local bar_width = 45
local flow_height = 48
local flow_width = 600
local nps_baseline = 600
local nps_scale = -0.09
local flow_baseline = 0
local flow_scale = 1
local flow_mark = 12
local bound_mark = 4
local arrow_offset = 20
local data_width = (30 + bar_width + 40 + bar_width)
... |
return {
second = 1,
minute = 60,
hour = 3600,
day = 86400,
month = 2592000,
year = 31536000,
}
|
object_static_structure_dathomir_biohazard_sign_03 = object_static_structure_dathomir_shared_biohazard_sign_03:new {
}
ObjectTemplates:addTemplate(object_static_structure_dathomir_biohazard_sign_03, "object/static/structure/dathomir/biohazard_sign_03.iff")
|
local skynet = require "skynet"
local cls = class("online")
function cls:ctor(context, ... )
-- body
cls.super.ctor(self, context)
return self
end
function cls:login()
-- body
local uid = self.context.uid
local subid = self.context.subid
local ok = skynet.call(".ONLINE_MGR", "lua", "login", uid, subid, skyne... |
local CorePackages = game:GetService("CorePackages")
local CoreGui = game:GetService("CoreGui")
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local Roact = require(CorePackages.Roact)
local RoactRodux = require(CorePackages.... |
local helpers = require "spec.helpers"
local admin_api = require "spec.fixtures.admin_api"
local cjson = require "cjson"
for _, strategy in helpers.each_strategy() do
describe("Plugin: upstream-basic-auth (invalidations) [#" .. strategy .. "]", function()
local admin_client
local proxy_client
local db
... |
-- Heavily derived from `diffview.nvim`:
-- https://github.com/sindrets/diffview.nvim/blob/main/lua/diffview/file-entry.lua
local config = require "octo.config"
local gh = require "octo.gh"
local graphql = require "octo.gh.graphql"
local signs = require "octo.ui.signs"
local utils = require "octo.utils"
local M = {}
... |
require("bufferline").setup({
options = {
show_close_icon = true,
diagnostics = "nvim_lsp",
always_show_bufferline = true,
diagnostics_indicator = function(_, _, diagnostics_dict)
local s = " "
for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and " "
or (e... |
isStarting = true
default = "Assets/New UI/checkbox_a_default.png"
checked = "Assets/New UI/checkbox_a_checked_1.png"
image1 = default
image2 = default
image3 = default
-- Called each loop iteration
function UpdateUI(dt)
if (gameObject.active == true) then
if (isStarting == true) then
image2 = checked
pos1 = ... |
---------------------------------------------------------------------------
-- Find connected regions in a Mesh
---------------------------------------------------------------------------
-- Load a point cloud
local pointCloud = PointCloud.load("resources/Box.ply")
-- Reconstruct a mesh
local mesh = Mesh.createFromPo... |
local screenWidth = 800
local screenHeight = 450
rl.SetConfigFlags(rl.FLAG_VSYNC_HINT)
rl.InitWindow(screenWidth, screenHeight, "raylua [models] example - geometric shapes")
local camera = rl.new("Camera", {
position = rl.new("Vector3", 0, 10, 10),
target = rl.new("Vector3", 0, 0, 0),
up = rl.new("Vect... |
return {'afwaaien','afwaarderen','afwaardering','afwaarts','afwachten','afwachting','afwaggelen','afwandelen','afwas','afwasautomaat','afwasbaar','afwasbak','afwasborstel','afwaskom','afwaskwast','afwasmachine','afwasmiddel','afwassen','afwasser','afwassing','afwaswater','afwateren','afwatering','afwateringsgaatje','af... |
local comm = require "comm"
local ldap = require "ldap"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
description = [[
Retrieves the LDAP root DSA-specific Entry (DSE)
]]
---
--
-- @usage
-- nmap -p 389 --script ldap-rootdse <host>
--... |
local IItemRangedWeapon = require("mod.elona.api.aspect.IItemRangedWeapon")
local ItemRangedWeaponAspect = class.class("ItemRangedWeaponAspect", IItemRangedWeapon)
function ItemRangedWeaponAspect:init(item, params)
self.dice_x = params.dice_x or 0
self.dice_y = params.dice_y or 0
self.pierce_rate = params.pi... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
ENT.health = 200
function ENT:Initialize()
self:machineInitialize('models/props_wasteland/laundry_washer001a.mdl')
end
|
--------------------------------
--// Icicle.
--------------------------------
local addon = {}
local addonName = "Icicle"
_G[addonName] = addon
--------------------------------
--------------------------------
local IcicleOpts
local G = _G
Icicle.fonts = {}
local LSM = LibStub("LibSharedMedia-3.0")
LSM:Register("font... |
local posses = {}
function API.createPosse(charid, name)
local User = API.getUserFromCharId(charid)
local teste = 0
local members = {
[charid] = 1,
[teste] = 0,
}
--[[
for k, v in pairs(members) do
if v == 1 then
end
end ]]
--[[ local ro... |
-- Copyright (C) Kong Inc.
local policies = require "kong.plugins.rate-limiting.policies"
local timestamp = require "kong.tools.timestamp"
local responses = require "kong.tools.responses"
local BasePlugin = require "kong.plugins.base_plugin"
local ngx_log = ngx.log
local pairs = pairs
local tostring = tostring
local ... |
local ffi = require ("ffi")
ffi.cdef[[
/// <summary>
/// The measuring method used for text layout.
/// </summary>
typedef enum DWRITE_MEASURING_MODE
{
/// <summary>
/// Text is measured using glyph ideal metrics whose values are independent to the current display resolution.
/// </summary>
DWRITE_ME... |
-- Copyright 2014-2015 Greentwip. All Rights Reserved.
local block = class("block", cc.Node)
function block:ctor(position, size)
self:setup(position, size)
end
function block:setup(position, size)
self:setPosition(cc.p(position.x, position.y))
local body = cc.PhysicsBody:create()
body:setDynamic ... |
slot0 = class("NissinFoodPage", import("...base.BaseActivityPage"))
slot0.OnInit = function (slot0)
slot0.bg = slot0:findTF("AD")
slot0.helpBtn = slot0:findTF("help_btn", slot0.bg)
slot0.startBtn = slot0:findTF("start_btn", slot0.bg)
slot0.cupList = slot0:findTF("cup_list", slot0.bg)
end
slot0.OnFirstFlush = func... |
IP_record="0.0.0.0"
|
smoke = {}
smoke.list = {}
smoke.toRemove = {}
function smoke.new(posX, posY, scale)
local newSmoke = {
x = posX,
y = posY,
r = math.random() * math.twopi,
s = math.random() * (scale / 2) + (scale / 2),
frame = 1,
frameCounter = 0,
}
table.insert(smoke.list, ... |
AetheriusBadgeFilter:RegisterGuild(AetheriusBadgeFilter.SERVER_EU, "Tamriel Stock Exchange", {
{
name = "Social",
badges = {
{
name = "Elder",
description = "Is since min. 200 days member of the guild.",
},
{
... |
object_mobile_axkva_min_static = object_mobile_shared_axkva_min_static:new {
}
ObjectTemplates:addTemplate(object_mobile_axkva_min_static, "object/mobile/axkva_min_static.iff")
|
-- premake5.lua
include "./vendor/premake/premake_customization/solution_items.lua"
workspace "Hazel"
architecture "x86_64"
startproject "Hazel-Editor"
configurations
{
"Debug",
"Release",
"Dist"
}
solution_items
{
".editorconfig"
}
flags
{
"MultiProcessorCompile"
}
out... |
local serializationKey = "wedit.randomPicker.percentage"
randomPickerUtil = {}
--- Retrieves the serialized percentage.
-- @return Serialized percentage, or nil
function randomPickerUtil.getSerializedPercentage()
return status.statusProperty(serializationKey)
end
--- Serializes the percentage.
-- @param perc Perce... |
--- Module implementing the LuaRocks "lint" command.
-- Utility function that checks syntax of the rockspec.
module("luarocks.lint", package.seeall)
local util = require("luarocks.util")
local download = require("luarocks.download")
local fetch = require("luarocks.fetch")
help_summary = "Check syntax of a rockspec."... |
---------------------------------------------------------------------------
-- A simple button widget.
--
--
--DOC_GEN_IMAGE --DOC_HIDE
--
--
--
--
-- awful.widget.button {
-- image = beautiful.awesome_icon,
-- buttons = {
-- ... |
-----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (3)
-----------------------------------
local ID = require("scripts/zones/Promyvion-Vahzl/IDs")
require("scripts/globals/missions")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, ... |
require "libs.classes.TransportLinesAccess"
BeltAccess = {}
BeltAccess.__index = BeltAccess
setmetatable(BeltAccess, {
__index = TransportLinesAccess,
__call = function(class, ...)
local self = setmetatable({},class)
self:_init(...)
return self
end
})
function BeltAccess:_init(beltEntity, accessFromPosition... |
local module = {}
local playerData = require(game:GetService('ServerStorage').Modules.PlayerData)
local remote = game:GetService('ReplicatedStorage').Remotes.BiomeChanged
local attribute_name = 'Biome'
local lastBiomes = {}
local function GetContent(name)
local content = script:FindFirstChild(name)
if content the... |
local M = {}
local pid = vim.fn.getpid()
M.setup = function(config, _, opts)
local cmd = {
"omnisharp",
"--languageserver",
"--hostPID",
tostring(pid),
}
config.cmd = opts.cmd and opts.cmd or cmd
return config
end
return M
|
require 'funcs'
local GameMode = require 'tetris.modes.gamemode'
local Piece = require 'tetris.components.piece'
local History6RollsRandomizer = require 'tetris.randomizers.history_6rolls'
local MarathonWCBGame = GameMode:extend()
MarathonWCBGame.name = "Marathon WCB"
MarathonWCBGame.hash = "MarathonWCB"
MarathonWC... |
local function GetPlayingRookieCount()
local rookieClients = TGNS.GetMatchingClients(TGNS.GetPlayers(TGNS.GetPlayingClients(TGNS.GetPlayerList())), function(c,p)
return p:GetIsRookie() and not TGNS.IsPlayerSM(p)
end)
local result = #rookieClients
return result
end
local md = TGNSMessageDisplayer.Create()
local... |
---
-- @module EraserTool
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local BaseTool = require( 'src.map.editor.BaseTool' )
local TexturePacks = require( 'src.ui.texturepacks.TexturePacks' )
-- ----------------------------------------... |
--[=[
@private
@class LoaderConstants
]=]
local Utils = require(script.Parent.Utils)
return Utils.readonly({
GROUP_EACH_PACKAGE_INDIVIDUALLY = false;
ALLOW_MULTIPLE_GROUPS = true;
INCLUDE_IMPLICIT_DEPENDENCIES = true;
}) |
debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
-- Pretend like loaded libstub is old and doesn't have :IterateLibraries
assert(LibStub.minor)
LibStub.minor = LibStub.minor - 0.0001
LibStub.IterateLibraries = nil
loadfile("../LibStub.lua")()
assert(type(LibStub.IterateLibraries)==... |
ITEM.name = "Desk"
ITEM.description = "containerDeskDesc"
ITEM.ContainerModel = "models/props_interiors/Furniture_Desk01a.mdl"
ITEM.price = 160 |
-- XEP-0356 (Privileged Entity)
-- Copyright (C) 2015 Jérôme Poisson
--
-- This module is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- Some parts come from mod_remote_roster (module by Waqas Hussain and Kim Alvefur, see https://code.google.com/p/prosody-modules/)
-... |
--[[function VehicleFixes()
setModelHandling(568, "maxVelocity", 110) -- Sanchez
setModelHandling(522, "maxVelocity", 160) -- NRG-500
setModelHandling(510, "maxVelocity", 60) -- Mountain Bike
setModelHandling(509, "maxVelocity", 55) -- Bike
setModelHandling(481, "maxVelocity", 55) -- BMX
setMode... |
-- https://github.com/ttys3/nvim-blamer.lua
require'nvim-blamer'.setup {
enable = false, -- you must set this to true in order to show the blame info
prefix = '', -- you can cusomize it to any thing, unicode emoji, even disable it, just set to empty lua string
format = '%committer, %committer-time-human • ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.