content
stringlengths
5
1.05M
--- A simple interface to mmap. -- mmapfile uses `mmap` to provide a way of quickly storing and loading data -- that's already in some kind of in-memory binary format. -- -- `create` creates a new file and maps new memory to that file. You can -- then write to the memory to write to the file. -- -- `open` opens a...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** ---@class ConnectToServer : ISPanelJoypad ConnectToServer = ISPanelJoypad:derive("ConnectToServer") local FONT_HGT_SMALL = getTextMa...
-- a reference to the primary ActorFrame local args = ... local t = args[1] local AlphabetWheels = args[2] -- the highscore name character limit local CharacterLimit = 4 -- Define the input handler local InputHandler = function(event) if not event.PlayerNumber or not event.button then return false end -- a loc...
-- CONFIG -- This is important!! -- This defines the folder to store all remotes -- It must be present before the game initiates local remotesStorage = require(game.Nanoblox).shared.Remotes local runService = game:GetService("RunService") -- LOCAL local ERROR_NO_LISTENER = "Failed to get remoteInstance %s for '%s': ...
ShowMouseCursor(true) -- keep this around so it's reset properly LockMouseCursor(false) -- keep this around so it's reset properly --disable_anchor() --pause_on_nofocus = true menu.ok_text:SetPoint("CENTER", UIParent, "CENTER", 0, 70) menu.ok_text:SetText("Start") menu.exit_text:SetPoint("CENTER", UIParent, "CENTER...
-- Titanium recipe & tech changes -- local util = require("__bztitanium__.data-util"); if (not mods["bobplates"] and not mods["angelssmelting"]) then util.replace_ingredient("power-armor", "steel", "titanium") util.add_prerequisite("power-armor", util.titanium_processing) -- All equipment that uses stee...
local function getCounter (class, id) if not id then SU.deprecated("class.getCounter", "class:getCounter", "0.13.0", "0.14.0") class, id = SILE.documentState.documentClass, class end if not SILE.scratch.counters[id] then SILE.scratch.counters[id] = { value = 0, display = "arabic", format = class.forma...
warren_altered_atst = Creature:new { objectName = "@mob/creature_names:warren_agro_droid_atst", socialGroup = "warren_imperial", faction = "", level = 46, chanceHit = 0.36, damageMin = 400, damageMax = 600, baseXp = 4000, baseHAM = 12000, baseHAMmax = 15000, armor = 0, resists = {30,30,40,40,-1,40,-1,-1,-1}...
local t = {} for i = 1, 200000 do t[i] = tostring(i) end local numStr = table.concat(t) local d1 = tonumber(string.sub(numStr, 1, 1)) local d10 = tonumber(string.sub(numStr, 10, 10)) local d100 = tonumber(string.sub(numStr, 100, 100)) local d1000 = tonumber(string.sub(numStr, 1000, 1000)) local d100...
local s describe("Tests to make sure the say library is functional", function() setup(function() package.loaded['say'] = false -- busted uses it, must force to reload s = require('init') -- devcode is in /src/init.lua not in /src/say/init.lua end) it("tests the set function metamethod", function() ...
return {'dpi'}
local NET = {} function NET.packages() require 'cudnn' require 'utils/mathfuncs' require 'utils/utilfuncs' end function NET.createModel(opt) NET.packages() local Convolution = cudnn.SpatialConvolution local UpConvolution = cudnn.SpatialFullConvolution local ReLU = nn.ReLU local SBatchN...
#!/usr/bin/env tarantool local table_clear = require('table.clear') box.cfg{ log = "tarantool.log" } local trigger = require('internal.trigger') local test = require('tap').test('trigger') test:plan(3) local trigger_list = trigger.new("sweet trigger") test:ok(trigger_list ~= nil, "test that trigger list is cre...
-- Copyright (C) 2018-2021 by KittenOS NEO contributors -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI...
if not init then init = true powerlevel = 5 smeltlevel = 23 xmat1 = 'basic_machines:gold_dust_66' xmat2 ='basic_machines:gold_dust_33' xmat3 = 'default:gold_ingot' xmat3c = 'default:gold_ingot 10' xmat4 = 'default:goldblock' xoffset = 18 mat1 = 'basic_machines:mese_dust_66' mat2 ='basic_machine...
----------------------------------- -- -- tpz.effect.PROWESS -- From GoV ----------------------------------- function onEffectGain(target,effect) target:addMod(tpz.mod.GOV_CLEARS, effect:getPower()) end function onEffectTick(target,effect) end function onEffectLose(target,effect) target:delMod(tpz.mod.GOV_CL...
local vernam = require("vernam") local secretKey = "iloveluaaa" local text = "samelength" local encrypted = vernam.encrypt(text, secretKey) local decrypted = vernam.decrypt(encrypted, secretKey) print("Original Text: " .. text) print("Encrypted Text: " .. encrypted) print("Decrypted Text: " .. decrypted) assert(te...
button = workspace.Button button.CanCollide = false button.Transparency = 1 game:GetService("RunService").Heartbeat:connect(function(step) button.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position) button.Size = Vector3.new(math.random(0,0), math.random(0,0), math.random(1,5)) wait()...
object_draft_schematic_armor_component_test_an_armor_layer = object_draft_schematic_armor_component_shared_test_an_armor_layer:new { } ObjectTemplates:addTemplate(object_draft_schematic_armor_component_test_an_armor_layer, "object/draft_schematic/armor/component/test_an_armor_layer.iff")
--[[ List of Functions getData(table,dirLocation,filename,tokenCheck) -- Used for getting data from text files and splitting into chunks makeTable(array,pos,fill) -- A shortcut function for making a table out of an array makeBaseTable() -- Base information used in all systems makeWrapperTemplateTable() -- Wrapper...
box = require 'box' Entity = class(box.Dynamic) function Entity:new(x, y, w, h) box.Dynamic.new(self, x, y, w, h) self.gravity = 0 self.gravityAcceleration = 0 self.jumpForce = 0 self.jumpDecelaration = 0 self.movement = { x = 0, y = 0} self.maxFallSpeed = 3 self:fall(self.maxFallS...
local mod = get_mod("Gib") local pl = require'pl.import_into'() fassert(pl, "Gib must be lower than Penlight Lua Libraries in your launcher's load order.") UnitGibSettings_b = UnitGibSettings_b or table.clone(UnitGibSettings) mod:hook(GenericHitReactionExtension, "_execute_effect", function(func, self, unit, effect...
local Cinematic = Cinematic local RenderScene = RenderScene local Shared = Shared local Client = Client local Server = Server local old = getupvalue(TunnelUserMixin.OnProcessSpectate, "UpdateTunnelEffects") local kTunnelUseScreenCinematic = getupvalue(old, "kTunnelUseScreenCinematic") local function UpdateTunnelEffect...
include("shared.lua") function ENT:Draw() self.BaseClass.Draw(self) if self:IsDroneWorkable() and not DRONES_REWRITE.ClientCVars.NoGlows:GetBool() then local dlight = DynamicLight(self:EntIndex()) if dlight then dlight.pos = self:LocalToWorld(Vector(12, 0, 0)) dlight.r = 0 dlight.g = 255 dlight.b = ...
--- when join run this addEventHandler('onPlayerJoin', root, function() ---spawn spawnPlayer(source, 0, 0, 5) --fade fadeCamera(source, true) setCameraTarget(source, source) end)
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local opt = vim.opt -- to set options cmd 'colorscheme Base2Tone_MeadowDark' opt.termguicolors = true -- True color support opt.background = 'dark'
--pine tree schematic local _ = {name = "air", prob = 0} local l = {name = "default:pine_needles", prob = 255} local t = {name = "default:pine_tree", prob = 255} bd_basic_biomes.pinetree = { size = {x = 7, y = 11, z = 7}, yslice_prob = { {ypos = 0, prob = 127}, -- trunk {ypos = 1, prob = 127}, {ypos = 2, prob...
local combatF = CreateFrame("Frame") local Aura = CreateFrame("Frame") local class = CreateFrame("Frame") local antispam = false local SpellID = { ES = 192106, LS = 79949, WS = 204288 } local SpellName = { ES = "Earth Shield", LS = "Lightning Shield", WS = "Water Shield" } class:RegisterEven...
--if love.system.getOS() ~= "Android" then debug = true end --load libraries loader = require("libs/love-loader") lume = require("libs/lume") pause = require("pause") anim8 = require("libs/anim8") Timer = require("libs/knife.timer") Object = require("libs/classic") Player = require("player") Fade = require("fa...
local Spell = { } Spell.LearnTime = 360 Spell.Description = [[ Disguising spell, disguises anything this spell hits from players' eyes for a while. ]] --Spell.WhatToSay = "Hide" Spell.ShouldSay = false Spell.FlyEffect = "hpw_white_main" Spell.ImpactEffect = "hpw_white_impact" Spell.CanSelfCast = false Spell.Apply...
-- -- 竞技场服务模块 -- -- 竞技场的排行榜放在 namespace db 上 -- -- 竞技场的计算热点在于发生挑战时的战斗计算,所以需要启动多个slave去分担这些计算量 -- local skynet = require "skynetex" local cluster = require "cluster" local slave = {} local balance = 1 local lock = {} local command = {} -- src vs dst function command.challenge( src, dst ) if lock[src] or lock[dst]...
snet.Callback('bgn_sv_unit_test_mod_enabled', function(ply) if GetConVar('bgn_enable'):GetBool() then ply:ConCommand('bgn_unit_test_add_result "Addon functionality is active" "yes"') else ply:ConCommand('bgn_unit_test_add_result "Addon functionality is active" "no"') end end).Protect()
vim.g.colors_name = "one-nvim" if vim.o.background == "dark" then --[[ Dark Colors @syntax-hue: 220; @syntax-saturation: 13%; @syntax-brightness: 18%; @syntax-fg: @mono-1; @syntax-gutter-background-color-selected: lighten(@syntax-bg, 8%...
function idx2key(file) local f = io.open(file,'r') local t = {} for line in f:lines() do local c = {} for w in line:gmatch'([^%s]+)' do table.insert(c, w) end t[tonumber(c[2])] = c[1] end return t end function src_words(file) local f = io.open(file,'r') local t = ...
---@class VehicleWindow : zombie.vehicles.VehicleWindow ---@field protected part VehiclePart ---@field protected health int ---@field protected openable boolean ---@field protected open boolean ---@field protected openDelta float VehicleWindow = {} ---@public ---@param arg0 ByteBuffer ---@return void function VehicleW...
-- Configuration file for the Fusion-Power mod -- Enable features of the mod by true , disable pieces by false -- Please note that the case matters, therefore True is not true. -- Dependencies are noted, if a dependency is not fulfilled, the feature is skipped. config = { fubelts = { extendedBelts = tru...
local ffi = require("ffi") local cast = ffi.cast local bxor = bit.bxor local bnot = bit.bnot local band = bit.band local rshift = bit.rshift local _M = {} -- API versions _M.API_VERSION_V0 = 0 _M.API_VERSION_V1 = 1 _M.API_VERSION_V2 = 2 _M.API_VERSION_V3 = 3 _M.API_VERSION_V4 = 4 _M.API_VERSION_V5 = 5 _M.API_...
local tbug = SYSTEMS:GetSystem("merTorchbug") local TextButton = tbug.classes.TextButton function TextButton:__init__(parent, name) self.control = assert(parent:GetNamedChild(name)) self.label = assert(self.control:GetLabelControl()) self.padding = 0 self.onClicked = {} local function onClicked(c...
local create = require("support.factory").create local Ability = require("invokation.dota2.Ability") local INVOKER = require("invokation.const.invoker") describe("dota2.Ability", function() describe("constructor", function() it("initializes attributes", function() local entity = create("dota_ability", {n...
-- scaffolding entry point for sokol return dofile("sokol.lua")
--ザ・アキュムレーター --The Accumulator --Scripted by Eerie Code function c101002031.initial_effect(c) --atk up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(c101002031.atkval) c:RegisterEff...
function onSay(cid, words, param, channel) local p = string.explode(param, ',') if(param == "") then doPlayerSendCancel(cid, "Command requires param.") return true end if(words == "/pass") then if(db.getResult("SELECT `id` FROM `players` WHERE `name` = " .. db.escapeString(p[1]) .. ";"):getID() == -1) then retu...
return { init_effect = "", name = "2020英系活动 EX清除者 魔炮弹条及鱼雷护盾", time = 0, color = "blue", picture = "", desc = "", stack = 1, id = 8719, last_effect = "", effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr = "immuneMaxAreaLimit", number = 1 } ...
local collect = require("nightfox.lib.collect") local template = require("nightfox.util.template") local M = {} function M.load(spec) local ovr = require("nightfox.override").groups local config = require("nightfox.config").options local editor = require("nightfox.group.editor").get(spec, config) local synta...
ITEM.name = "9MM PISTOL" ITEM.base = "base_wep" ITEM.uniqueID = "hl2_pistol" ITEM.category = nut.lang.Get("weapons_ranged") ITEM.class = "hl2_r_pistol" ITEM.type = "sidearm" ITEM.model = Model( "models/Weapons/W_pistol.mdl" ) ITEM.desc = nut.lang.Get("desc_wep_9mm")
local transform_ast = request('!.formats.lua.transform_ast') return function(self) self.data_struc = transform_ast( self.data_struc, { keep_comments = self.keep_comments, keep_unparsed_tail = self.keep_unparsed_tail, } ) self.is_ok = self:process_node(s...
local h = {} local s = require('pipes.socket') function h.newserver(cfg, cb) local ret, err while(true) do local idSvr, e = s.listen({port=cfg.port}) if not idSvr then -- listen failed err = e break end s.accept(idSvr, function(id, host, port) ...
--- === plugins.aftereffects.preferences === --- --- After Effects Preferences Panel local require = require local application = require "hs.application" local dialog = require "hs.dialog" local image = require "hs.image" local osascript = require "hs...
local lfs = require"lfs" function trim(str) return (str:gsub("^%s*(.-)%s*$", "%1")) end function readConfig(path) local readValues = false local configTable = {} for line in io.lines(path) do line = trim(line) if string.len(line) ~= 0 and not string.match(line, "^//") then if string.matc...
-------------------------------------------------------------------------------- -- Class used by the Client entity to communicate to the Server. -- -- The communication channel should be configured using the three ports: -- - com_port: Used to receive broadcast messages from the Server entity. -- - set_port: Used to...
--[[ Title: MCImporterChunkGenerator Author(s): LiXizhi for lipeng's mcimporter dll Date: 2015.11.17 Desc: it uses the ChunkGenerator interface to load the world dynamically from a mc world directory, according to current player position. ----------------------------------------------- NPL.load("(gl)Mod/MCImporterGen...
class("Puzzle").extends() function Puzzle:init(puzzle, save) self.id = puzzle.id self._save = save self.title = puzzle.title self.width = puzzle.width or 15 self.height = puzzle.height or 10 local size = self.width * self.height self.grid = table.create(size, 0) local values = {string.byte(puzzle.grid, 1, siz...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the TabStopCalculator class works as expected. -- -- @type TestTabStopCalculator -- local TestTabStopCalculator = TestCase:extend() --- -- The require pa...
--[[ Copyright (c) 2013, Chiara De Acetis 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 notice, this list of conditions and the...
---- Vector Example require("eyesy") -- include the eyesy library modeTitle = "Example - Vectors" -- name the mode print(modeTitle) -- print the mode title --------------------------------------------------------------------------- -- helpful global variables w = of.getWidth()...
function __TS__StringIncludes(self, searchString, position) if not position then position = 1 else position = position + 1 end local index = string.find(self, searchString, position, true) return index ~= nil end
local K, C = unpack(select(2, ...)) local Module = K:NewModule("TooltipAzerite") -- Credit: AzeriteTooltip, by jokair9 function Module:AzeriteArmor() local strfind, format = string.find, string.format local tinsert, ipairs = table.insert, ipairs local tipList = {} local function scanTooltip(tooltip) for i = 9, ...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BAC...
script.Parent.MouseButton1Click:Connect(function()--destory the gui when the user clicks the button script.Parent.Parent.Parent:Destroy() end)
data:extend( { { type = "fluid", name = "nitrogen-dioxide", default_temperature = 25, heat_capacity = "1KJ", base_color = {r=0.8, g=0.0, b=1.0}, flow_color = {r=0.0, g=0.0, b=1.0}, max_temperature = 100, icon = "__Engineersvsenvironmentalist__/graphics/icons/chemicals/nitrogen-dioxide.pn...
local table, pairs, next, type, require, ipairs = table, pairs, next, type, require, ipairs local tostring, debug, error, setmetatable = tostring, debug, error, setmetatable local checkTypes = require"luv.checktypes".checkTypes module(...) table.keys = checkTypes("table", function (self) local res = {} for key, _ i...
data:extend({ { type = 'item-subgroup', name = 'nm-alien-breeding', group = 'intermediate-products', order = 'z' }, })
MusicManager = {} MusicManager.mt = { __index=MusicManager } MusicManager.tracks = { { src=love.audio.newSource("assets/music/1(FLUTE)F.wav", "static"), vol=1 }, { src=love.audio.newSource("assets/music/1(BASS)F.wav", "static"), vol=1 }, { src=love.audio.newSource("assets/music/1(BATERIA)F.wav", "static"),...
--[[ This module was written by @Vyon, and is another way to create and handle custom signals without the use of filthy instances like bindable events! (jokes) [Signal.lua]: [Methods]: New(): Constructs an object from the signal class. @params: None @ret: (signal: Dictionary<string>) Connect( self, ...
local GeneEngineering = {} local Rand = require("api.Rand") local Skill = require("mod.elona_sys.api.Skill") local Gui = require("api.Gui") local Chara = require("api.Chara") local ChooseAllyMenu = require("api.gui.menu.ChooseAllyMenu") local Input = require("api.Input") local Anim = require("mod.elona_sys.api.Anim") l...
---@class Font : FontInstance ---[Documentation](https://wow.gamepedia.com/UIOBJECT_Font) local Font = {} ---[Documentation](https://wow.gamepedia.com/API_Font_CopyFontObject) function Font:CopyFontObject(otherFont) end ---[Documentation](https://wow.gamepedia.com/API_Font_GetAlpha) function Font:GetAlpha() end ---[...
-- provides collect, submit at study or series level -- test version 20120719 function split(str, pat) local t = {} local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while s do if s ~= 1 or cap ~= "" then table.insert(t,cap) end last_end = e+1 s,...
local gfx = require("/dynamic/helpers/mesh_helpers.lua") local w = 100 function new_bullet(frame) local mesh = gfx.new_mesh() local angle_offset = 6.28318530718 * frame / 32 for y_loop = -1,1,1 do local y_offset = y_loop * 13 local vertexes = {} local colors = {} for x=-20,20, 3 do local ...
---------------------------------------------------------------------------- -------------------------- Stick creator ------------------------------- ---------------------------------------------------------------------------- function gooi.newJoy(params) params = params or {} local s = {} local defSize = go...
local t = require( "taptest" ) local isleafdir = require( "isleafdir" ) local mkdirtree = require( "mkdirtree" ) local rmdirtree = require( "rmdirtree" ) -- setup t( mkdirtree{ [ "middir" ] = { [ "leafdir" ] = { [ "tmpfile.txt" ] = "" } } }, true ) -- test t( isleafdir( "middir/leafdir" ), ...
--NPC CODES --Assassins --Orcs --Skeletons --Noobs --Chocolate Zombies --Overlord --Werewolf --Cactus King --Guest --Snowmen --Gingerbread Men --Frost Guard --THE SCRIPT _G.Fuck = true -- false to Turn Off local enemi = game.Workspace.Enemies.Assassins -- Change Assasins to Any NPC you want while _G.Fuck do wait()...
A={ boneCorrespondences ={ Head ="Neck", Hips ="Hips", LeftArm ="LeftShoulder", LeftFoot ="LeftAnkle", LeftForeArm ="LeftElbow", LeftLeg ="LeftKnee", LeftUpLeg ="LeftHip", RightArm ="RightShoulder", RightFoot ="RightAnkle", RightForeArm...
---------------------------------------------------------------------------------- -- Total RP 3 -- Directory -- --------------------------------------------------------------------------- -- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) -- -- Licensed under the Apache License, Version 2.0 (the "L...
local PANEL = {} AccessorFunc( PANEL, "m_Color", "Color" ) AccessorFunc( PANEL, "m_BorderColor", "BorderColor" ) AccessorFunc( PANEL, "m_Type", "Type" ) local RenderTypes = {} function RenderTypes.Rect( pnl ) surface.SetDrawColor( pnl:GetColor() ) surface.DrawRect( 0, 0, pnl:GetSize() ) end functio...
require "config" require "tools" local math = require "math" local local_run_test = lunit and function() end or run_test local lunit = require "lunit" local skip = assert(lunit.skip) local TEST_CASE = assert(lunit.TEST_CASE) local function SKIP(msg) return function() lunit.skip(msg) end end local arg...
local rt_dap = require("rust-tools.dap") local config = require("rust-tools.config") local utils = require("rust-tools.utils.utils") local M = {} local function get_params() return { textDocument = vim.lsp.util.make_text_document_params(), position = nil, -- get em all } end local function build_label(args) l...
local Commodity = {} function Commodity:new(o) o = o or {} -- create object if user does not provide one setmetatable(o, self) self.__index = self self.item = Item.GetDataFromId(o.id) self.buy1 = '--' self.buy10 = '--' self.buy50 = '--' self.sell1 = '--' self.sell10 = '--' self.sell50 = '--' self.sellOr...
function travel_worm_recipe(tier) return { type = 'recipe', name = 'nm-travel-worm-'..tier, localised_name = {'entity-name.nm-travel-worm-'..tier}, localised_description = {'entity-description.nm-travel-worm-'..tier}, category = 'nm-alien-growing', energy_required = 1...
-- read environment variables as if they were global variables local f=function (t,i) return os.getenv(i) end setmetatable(getfenv(),{__index=f}) -- an example print(a,USER,PATH)
local periodicStuff = createLinkedList() function clearInventories(manufacturer) for _,v in pairs(manufacturer:getInventories()) do v:flush() end end function initNetwork() networkHandler(100, null, { -- table of message handlers }) end ---@type FluidContainer[] local containers = {} fu...
luachip.AddFunction("print", print) luachip.AddFunction("yield", function() coroutine.yield() end) luachip.AddFunction("Entity", Entity)
function onCreate() -- background shit makeLuaSprite('alleybg', 'alleybg', -500, -300); setLuaSpriteScrollFactor('alleybg', 0.9, 0.9); makeLuaSprite('alleyfloor', 'alleyfloor', -500, -300); setLuaSpriteScrollFactor('alleyfloor', 0.9, 0.9); makeLuaSprite('alleycat', 'alleycat', -500, -300); setLuaSp...
--[[ Surface: Keyboard Arturia Keylab MKII Developer: Thierry Fraudet / Modified for MKII by Wade Carson Version: 1.3 Date: 21/12/2019 ]] g_lcd_line1_index = 1 g_lcd_line2_index = 2 g_lcd_line1_new_text = "" g_lcd_line1_old_text = "" g_lcd_line2_new_text = "" g_lcd_line2_old_text = "" g_preset_jog_wheel_index = ...
require("floodgate") --At most 500 messages can be sent per second timer.Create("Floodgate",1,0,function() ConsoleFloodgate(500) end)
local PlaybackConfiguration = require("PlaybackConfiguration") local Runner = require("Runner") local PlayerControl = require("PlayerControl") local PlaybackController = { } local metatable = { __index = PlaybackController } PlaybackController.playback_state = { tick_1_prepare_to_attach_runner = 1, tick_2_att...
local http = require "resty.http" local cjson = require "cjson" -- Verify the domain name and return its result. return function(auto_ssl_instance, domain) local httpc = http.new() local url = auto_ssl_instance:get("verification_url") if not url then return true, nil end url = url .. "?d=" .. domain ...
return {'lehmann'}
-- Create a nested lua_State object S = State() S:dostring([[ flag = ... print(flag) ]], true)
includeFile("custom_content/tangible/wearables/boots/wod_nightsister_boots_s01.lua")
print("\27[31m SDL crushes with DCHECK. Some tests are commented. After resolving uncomment tests!\27[0m") --------------------------------------------------------------------------------------------- -- CRQ: APPLINK-25200: [GENIVI] VehicleInfo interface: SDL behavior in case HMI does not -- res...
-- premake5.lua workspace "Minimal GLFW and GLEW" -- Name of sln file location "project" -- Folder where to put it configurations { "Debug", "Release" } platforms { "Win32", "x64" } --Set architecture filter { "platforms:Win32" } system "Windows" architecture "x86" filter...
describe("GlobalValueKeyValueStore", function() local eaw_env local require_utilities before_each(function() eaw_env = require("spec.eaw_env") eaw_env.setup_environment() require_utilities = require("spec.require_utilities") require_utilities.replace_require() requi...
local serialize = require "serialize" local factory = {} function factory.new(host) return setmetatable({ host = host, grid = {tiles={}, width=20, height=20}, }, {__index=factory}) end function factory:setTile(x, y, tile) if not self.grid.tiles[x] then self.grid.tiles[x] = {} end self.grid.tiles[x][y] = ti...
solution "Google Code Jam 2013 Round 1A" configurations { "Debug", "Release" } startproject "q-unittest" location "build" project "techdevguide" kind "StaticLib" language "C++" targetdir "build/bin/%{cfg.buildcfg}" files { "src/**.h", "src/**.cpp" } includedir...
gl.setup(1680, 945) json = require("json") font = resource.load_font("light.ttf") font2 = resource.load_font("light.ttf") background = resource.load_image("whitepixel.png") maxCharWidth = WIDTH/0.6 color = { r = 0.95, g = 0.95, b = 0.0 } charSize = 82 function alignRight(num) -- 0 1 2 3 4 5...
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DColorCube --]] local PANEL = {} AccessorFunc( PANEL, "m_Hue", "Hue" ) AccessorFunc( PANEL, "m_BaseRGB", "BaseRGB" ) AccessorFunc( PANEL, "m_...
local remoteImagePlaceHolder remoteImageQueue = {} remoteImageDefaultImages = { unloadedTex = DGSBuiltInTex.transParent_1x1, loadingTex = DGSBuiltInTex.transParent_1x1, failedTex = DGSBuiltInTex.transParent_1x1, } --[[ loadState: 0 = unloaded 1 = loading 2 = loaded 3 = failed ]] function dgsCreateRemoteImage(web...
fx_version 'adamant' games { 'gta5' } client_scripts { "@_core/libs/utils.lua", 'client.lua', } server_scripts { "@_core/libs/utils.lua", 'server.lua' }
return {'cdaer','cda','cdaers'}
package.path = "?.lua;test/lua/errors/?.lua" require 'args' local tostring = tostring _G.tostring = function(x) local s = tostring(x) return type(x)=='number' and #s>4 and (s:sub(1,5)..'...') or s end -- arg type tests for math library functions local somenumber = {1,0.75,'-1','-0.25'} local somepositive = {1,0.75...