content
stringlengths
5
1.05M
-- item_scroller is a replacement for ActorScroller. Kyzentun made it -- because writing code is easier than reading documentation and code and -- carefully verifying exactly what some unfamiliar actor class does. -- Original versions found in Consensual were named sick_wheel. -- item_scroller is based on the idea th...
function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder) --result GameOrderAttackTransferResult --order GameOrderAttackTransfer if(order.proxyType == 'GameOrderAttackTransfer') then if(result.IsSuccessful == false)then local terr = game.ServerGame.LatestTurnStanding.Territories[or...
-- Give LuaEntity and get the corresponding entity-name for the filter -- Different tree entities get pooled under "fdp-tree-proxy" function get_entity_name(entity) if not entity then return nil elseif string.sub(entity.name, string.len(entity.name) - 3, -1) == "rail" then return "rail" elseif entity.name...
--Warning when reading code: IS VERY MESSY! local AdvTiledLoader = require("AdvTiledLoader.Loader") require("camera") require("player") gameState = "level1" function levelDraw(level) level:setDrawRange(0, 0, level.width * level.tileWidth, level.height * level.tileHeight) end function love.load() love.graphics.set...
Marine.kFlashlightCinematic = PrecacheAsset("cinematics/marine/marine/flashlight.cinematic") Marine.kFlashlightCinematicSmall = PrecacheAsset("cinematics/marine/marine/flashlight_small.cinematic") Marine.kFlashlightAttachPoint = "BodyArmor_Chest2_Ctrl" local originalOnCreate = Marine.OnCreate function Marine:OnCreate...
-- Include features from the Sandbox gamemode. DeriveGamemode("sandbox") -- Define a global shared table to store NutScript information. nut = nut or {util = {}, gui = {}, meta = {}} -- Include core files. include("core/sh_util.lua") include("shared.lua") -- Sandbox stuff CreateConVar("cl_weaponcolor", "0.30 1.80 2.1...
--[[============================================================ --= --= Test Script --= --= Args: none --= --=------------------------------------------------------------- --= --= MyHappyList - manage your AniDB MyList --= - Written by Marcus 'ReFreezed' Thunström --= - MIT License (See main.lua) --= --==========...
#!/usr/bin/env tarantool local os = require('os') local fio = require('fio') local tap = require('tap') local test = tap.test('gh-5602') -- gh-5602: Check that environment cfg variables working. local TARANTOOL_PATH = arg[-1] local script_name = 'gh-5602-environment-cfg-test-cases.lua' local path_to_script = fio.pat...
------------------------------------------------------------------------------------------------------------------------ -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0205-Avoid_custom_button_subscription_when_HMI_does_not_support.md ---------------------------------------------...
LastGameTimer = 0; noclipmode = false; isRadarExtended = false; isScoreboardShowing = false fps = 0; prevframes = 0; curframes = 0; prevtime = 0; curtime = 0; player = -1; radioname = "" speedoDefault = 1; autoparachute = true; heatvision = false; nightvision = false; CoordsOverMap = true HideHUD = false; HideRadar ...
-- Display information about a specified font local Gradient = require("Gradient") local maths = require("maths") local map = maths.map local fontDir = "c:\\windows\\fonts\\" local GFontInfo = {} local GFontInfo_mt = { __index = GFontInfo } function GFontInfo.new(self, obj) local obj = obj or {} obj.f...
RegisterServerEvent('mythic_base:server:irc') AddEventHandler('mythic_base:server:irc', function() local src = source local player = ESX.GetPlayerFromId(source) Citizen.CreateThread(function() local myChannels = {} exports['ghmattimysql']:execute('SELECT channel FROM phone_irc_channels WHERE ident...
fx_version 'adamant' games { 'rdr3', 'gta5' } rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' description 'Async for RedM, this is a completely rewritten resource by TigoDevelopment, will also work on FiveM' server_script {...
function SetPedFlag(object, flag, enabled) exports["caue-flags"]:SetPedFlag(object, flag, enabled) end function HasPedFlag(object, flag) return exports["caue-flags"]:HasPedFlag(object, flag) end function GetPedFlags(object) return exports["caue-flags"]:GetPedFlags(object) end function SetPedFlags(object,...
OpenNefia.Prototypes.Elona.Guild.Elona = { Mage = { Name = "Mages Guild", }, Fighter = { Name = "Fighters Guild", }, Thief = { Name = "Thieves Guild", }, }
-- ############################################################################# -- # Jeti helper library -- # -- # Copyright (c) 2017, Original idea by Thomas Ekdahl (thomas@ekdahl.no) -- # -- # License: Share alike -- # Can be used and changed non commercial, but feel free to ...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('esx_carwash:canAfford', function(source, cb) local xPlayer = ESX.GetPlayerFromId(source) if Config.EnablePrice then if xPlayer.getMoney() >= Config.Price then xPlayer.removeMoney(Config.Price) cb(true) e...
--- @class HelpPrompt HelpPrompt = setmetatable({}, HelpPrompt) HelpPrompt.__index = HelpPrompt HelpPrompt.__call = function() return "HelpPrompt" end function HelpPrompt.new(text) local _HelpPrompt = { _Text = text, EachFrame = eachFrame or false, _Drawing = false, _Actions =...
-- int param : -- 0 = main -- 1 = choose a horse -- 2 = choose a horse (2) -- 3 = select a bet -- 4 = select a bet (2) -- 5 = race screen (frozen) -- 6 = photo finish (frozen) -- 7 = results -- 8 = same as main but a bit different -- 9 = rules function Utils:ShowMainScreen() BeginScaleformMovieMethod(self.Scaleform...
if not love then love = {} end return { ["*love-events*"] = love }
--copied from angels smelting... local function hide_setting(setting_type, setting_name, setting_default) if data.raw[setting_type] and data.raw[setting_type][setting_name] then data.raw[setting_type][setting_name].hidden = true if setting_default ~= nil then data.raw[setting_type][setting_name].default...
function getFormatNetTime() current = getNetTime(); current_text = os.date("%Y:%m:%d %X", current); return current_text; end function getCurrentHour() local currentTimeStr=getFormatNetTime() local h=string.sub(currentTimeStr,12,13) return tonumber(h) end function getCurrentMinute() local currentTimeStr=getFor...
base_build = nil base_build = { --Corvettes-------------- { Type = Ship, ThingToBuild = "Tai_RepairCorvette_hyp0", RequiredResearch = "", RequiredShipSubSystems = "", DisplayPriority = 20, DisplayedName = "$11022", Description = "$11023", }, { Type = Ship, ThingToBuild = "Tai_Re...
require('onmt.init') local path = require('pl.path') local tester = ... local vocabularyTest = torch.TestSuite() local dataDir = 'data' local testDataDir = 'test/data' local noFilter = function (_) return true end local filterShortSentences = function(sent) return #sent>10 end function vocabularyTest.filterAll() ...
require 'defines' require 'gui' require 'scripts/globals' require 'scripts/request-manager' require 'scripts/blueprint-requests' require 'scripts/commands' function lrm.select_preset(player, preset) if global["presets-selected"][player.index] == preset then return end lrm.gui.select_preset(playe...
return (function(self) return unpack(u(self).animationGroups) end)(...)
object_weapon_melee_2h_sword_crafted_saber_shared_sword_lightsaber_two_handed_s10_gen5 = SharedWeaponObjectTemplate:new { clientTemplateFileName = "object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_s10_gen5.iff" } ObjectTemplates: addClientTemplate(object_weapon_melee_2h_sword_crafted_saber...
-- Helpers for item-related logic require 'math' require 'table' require 'actions.smartactions' require 'codes.color' require 'codes.item' require 'codes.itemSprite' require 'mechanics.LookupTable' require 'mechanics.item' require 'utils.pathfinder' local itemLogic = {} -- Read all the priorities in local itemCo...
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "tilesheet", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0014-adding-audio-file-playback-to-ttschunk.md -- User story:TBD -- Use case:TBD -- -- Requirement summary: -- TBD -- -- Description: --...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local BUFF_PB = require("Buff_pb") local BUFFITEM_PB = require("BuffItem_pb") local STRANSFORMBUFF_PB = require("STransformBuff_pb") module('SBuffRecord_pb') SBUFFRECORD = protobuf.Descriptor(); local SBUFFRECORD_BUFFS_FIELD = pro...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local gym = {} gym.points = 0 gym.W, gym.H = 500 * scaleX, 150 * scaleX gym.X, gym.Y = screenX - gym.W - 50 * sc...
-------------------------------------------------------------------------------- -- Copyright (c) Creighton 2015. All Rights Reserved. -- -- Open Source Software - May be modified and shared but must -- -- be accompanied by the license file in the root source directory ...
module("luci.model.cbi.gpsysupgrade.sysupgrade", package.seeall) local fs = require "nixio.fs" local sys = require "luci.sys" local util = require "luci.util" local i18n = require "luci.i18n" local api = require "luci.model.cbi.gpsysupgrade.api" function get_system_version() local system_version = luci.sys.exec("[ -f...
--@name clientShare.library --@author Vurv --@shared -- Basically just automates processes to give information from the owner to the rest of the clients. -- Needs to be required in a SHARED chip. if SERVER then Data = nil queue = {} net.receive("getdata",function(len) Data = net.readString() ...
local sql = exports.sql --------- [ Element Data returns ] --------- local function getData( theElement, key ) local key = tostring(key) if isElement(theElement) and (key) then return exports['[ars]anticheat-system']:callData( theElement, tostring(key) ) else return false end end local function setData( t...
--noting chinaese commet is not allowed in this version lua --GET http://184.106.153.149/channels/846323/feeds.json?results=1&location=true --POS http://184.106.153.149/update.json... --put https://thingspeak.com/channels/846323/maps/channel_show revFieldVal = {-1,-1,-1,-1,-1,-1,-1,-1}; revUartVal2 ={} TMP2 = {-1,-1,-...
----------------------------------- -- -- Zone: Empyreal_Paradox -- ----------------------------------- local ID = require("scripts/zones/Empyreal_Paradox/IDs") require("scripts/globals/conquest") ----------------------------------- function onInitialize(zone) zone:registerRegion(1, 538, -2, -501, 542, 0, -497) -...
--[[ BSON codec for LuaJIT (http://bsonspec.org/#/) The following BSON values are supported: - Writing Lua Type -> BSON Type -> Reading Lua Type --------------------------------------------------------------------- - number -> double* -> number - (not supporte...
posX = 0 posY = 0 battery = 0 batteryMax =0 macroF = 0 timeRes = 0 currentOre = 0 comScope=0 mapSize=200 --- base info -- baseX=0 baseY=0 --- id --- ID = 0 cId=0 bId=0 --- energy cost -- movementCost=0 orePickCost=0 msgCost=0 --capacity=0 memSize =0 --- arrays for mem --- ore= {} mem={} colCap=false enable=false bas...
---------------------------------------------------------------------------------- --- Total RP 3 --- Global variables --- --------------------------------------------------------------------------- --- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) --- Copyright 2014-2019 Morgane "Ellypse" Parize <ellyp...
--[[ Suppose that you want to create a table that associates each escape sequence for strings (see Section 2.4) with its meaning. How could you write a constructor for that table? ]] local escape_sequences = { ['\a'] = "bell", ['\b'] = "backspace", ['\f'] = "form feed", ['\n'] = "newline", ['\r'] = "ca...
Me = game.Players.xSoulStealerx ModelName = "xSHook" Char = Me.Character function Prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.CanCollide = collide part.Transparency = tran part.Reflectance = ref part.Size = Vector3.new(x,y,z) part.BrickColor = ...
object_building_general_bunker_tatooine_commando_11 = object_building_general_shared_bunker_tatooine_commando_11:new { } ObjectTemplates:addTemplate(object_building_general_bunker_tatooine_commando_11, "object/building/general/bunker_tatooine_commando_11.iff")
local north = defines.direstion.north local east = defines.direction.east local south = defines.direction.south local west = defines.direction.west
the_curse_of_agony_curse_or_get_worse = class({}) LinkLuaModifier( 'the_curse_of_agony_curse_or_get_worse_buff_modifier', 'encounters/the_curse_of_agony/the_curse_of_agony_curse_or_get_worse_buff_modifier', LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( 'the_curse_of_agony_curse_or_get_worse_debuff_modifier', 'encounters...
package.cpath = "bin/?.dll" local iup = require "iuplua" local bgfx = require "bgfx" local bgfxu = require "bgfx.util" local util = require "util" local math3d = require "math3d" local settings = { sizePwrTwo = 10, coverageSpotL = 90.0, spotOuterAngle = 45.0, spotInnerAngle = 30.0, stencilPack = true, fovXAdj...
ITEM.name = "큰 나무 상자" ITEM.model = Model("models/props_junk/wood_crate002a.mdl") ITEM.uniqueID = "stor_bcrate" ITEM.maxWeight = 16 ITEM.desc = "크고 오래된 나무 상자입니다."
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.PrintName = "SMOKE GRENADE" SWEP.Base = "weapon_cs_base" SWEP.Category = "CSS" SWEP.Weight = 5 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true SWEP.IconLetter = "Q" SWEP.Slot = 4 SWEP.SlotPos = 3 SWEP.ViewModel = "models/weapons/v_eq_...
print(require('../../package').version)
a = io.read ("*n") b = io.read ("*n") c = io.read ("*n") print ((a+b)*c)
local import = require(game.ReplicatedStorage.Shared.packages.Import) local ICON_NAME = "PowerOff" local Roact = import "Packages/Roact" local MaterialUI = import "Shared/assets/MaterialUI" local PowerOff = Roact.Component:extend("Icon") local Folder = MaterialUI[".icons"][ICON_NAME] local Icon = Folder[".icon"] l...
-- Basic wasd movements, the screen doesn't contains the rectangle inside to avoid going outside. function love.load() --[[ Create a character table, our character is a rectangle, the initial position of the character object in the x and y coordinate is defined in the table as 300 and 400 respectively. ]] charac...
local BaseTheme = require(script.Parent.Base) local Colors = require(script.Parent.Parent.Colors) local DarkTheme = { TextColor = Colors.White, PrimaryColor = Colors.Teal500, BackgroundColor = Colors.Grey900, InverseBackgroundColor = Colors.Grey100, ButtonHoverColor = Colors.Lighten("Teal500", 1), ButtonPressCol...
Ball = Class{} function Ball:init(x,y,width,height) self.x = x self.y = y self.width = width self.height = height self.dy = math.random(2) == 1 and -100 or 100 self.dx = math.random(-50,50) end function Ball:reset() self.x = VIRTUAL_WIDTH / 2 - 2 self.y = VIRTUAL_HEIGHT / 2 - 2 self.dy = math.random(2) == 1...
local copy = require("lib").mcopy local f2 = require("lib").f2 local Range = require("the").class() function Range:_init(name,pos,lo,hi,ratio,var) self.about = {name = name, pos= pos} self.x = {lo = lo, hi = hi or lo} self.y = {ratio= ratio or 0, var = var or 0} self.sco...
local PKGS = { 'savq/paq-nvim'; -- Let Paq manage itself 'mhartington/oceanic-next'; -- Colorscheme } -- bootstrap package manager if required local path = vim.fn.stdpath('data') .. '/site/pack/paqs/start/paq-nvim' if vim.fn.empty(vim.fn.glob(path)) > 0 then paq_bootstrap = vim.fn.sy...
object_static_worldbuilding_sign_thm_sign_cantina = object_static_worldbuilding_sign_shared_thm_sign_cantina:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_sign_thm_sign_cantina, "object/static/worldbuilding/sign/thm_sign_cantina.iff")
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: ??? -- Involved In Quest: A Craftsman's Work -- !pos 113 -7.972 -72 114 ----------------------------------- local ID = require("scripts/zones/Eastern_Altepa_Desert/IDs") require("scripts/globals/keyitems") ----------------------------------- f...
module(..., package.seeall) NODE = { prototype="@Collection" } NODE.child_proto = "@Discussion" NODE.child_uid_format = "%d" NODE.child_defaults = [=[ new = [[ prototype = "@Discussion" title = "New discussion topic" actions = 'save="collections.save_new"' ]] ]=] NODE.html_content = [=[ $markup{$content} <p...
local CreateScene = require("create-scene") return CreateScene({ wheelKey = "night", bgColours = { 0.3, 0.7, 0.3 } })
return { channel_name = "Mutter Meet", channel_description = "A meeting about this software.", coordinator = "todd", coordinatorpassword = "maroc", userpassword = "open", max_bandwidth = 720000, max_users = 127, welcome_text = "Hello!", defpermissions = 0xf07ff, }
local chrome = require "telescope._extensions.bookmarks.chrome" local edge = {} ---Collect all the bookmarks for Microsoft Edge browser. ---NOTE: Microsoft Edge and Google Chrome uses the same underlying format to store bookmarks. ---@param state ConfigState ---@return Bookmark[]|nil function edge.collect_bookmarks(s...
io.stdout:setvbuf('no') love.graphics.setDefaultFilter("nearest") if arg[#arg] == "-debug" then require("mobdebug").start() end utf8 = require("utf8") mouseTouch1 = 1 mouseTouch2 = 2 window = {} window.width = 1200 window.height = 700 Font = love.graphics.newFont(16) data = require("data") camera = req...
local PlayerInventory local PlayerArmes local PlayerMoney 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...
return { value= "\\abc" }
g_2h_sword_katana_quest = { description = "", minimumLevel = 0, maximumLevel = -1, lootItems = { {itemTemplate = "two_handed_sword_katana_quest", weight = 10000000} } } addLootGroupTemplate("g_2h_sword_katana_quest", g_2h_sword_katana_quest)
local deepcopy = require "deepcopy" local RANDOMIZED_1_STAR_FOLDER = require "start_folders.randomized_1_star" local RANDOMIZED_2_STAR_FOLDER = require "start_folders.randomized_2_star" local COMPLETELY_RANDOMIZED_FOLDER = require "start_folders.completely_randomized" local START_FOLDER_DEFS = {} local POSSIBLE_FOL...
require "tools" function love.load() love.graphics.setDefaultFilter( "nearest", "nearest", 1 ) sx = love.graphics.getWidth() / 180 sy = love.graphics.getHeight() / 320 asset = { pitch = love.graphics.newImage("img/pitch.png"), player = love.graphics.newImage("img/player.png"...
local chars = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","."} local function generateNetString() local str = "" for i = 1, math.random(14, 28) do str = str .. (math.random() > 0.5 and string.upper(chars[math.random(1,#chars)]) or chars[math.r...
-- See LICENSE for terms local PlaceObj = PlaceObj local T = T -- add some descriptions local SafeTrans -- use rawget so game doesn't complain about _G if rawget(_G, "ChoGGi") then SafeTrans = ChoGGi.ComFuncs.Translate else local _InternalTranslate = _InternalTranslate local procall = procall SafeTrans = functio...
vim.cmd'nnoremap <silent> ]a <cmd>next<CR>' vim.cmd'nnoremap <silent> [a <cmd>previous<CR>' vim.cmd'nnoremap <silent> ]A <cmd>last<CR>' vim.cmd'nnoremap <silent> [A <cmd>first<CR>' vim.cmd'nnoremap <silent> ]b <cmd>bnext<CR>' vim.cmd'nnoremap <silent> [b <cmd>bprevious<CR>' vim.cmd'nnoremap <silent> ]B <cmd>blast<CR>'...
-- in-game dialog interface for the quickfort script --[====[ gui/quickfort ============= In-game dialog interface for the `quickfort` script. Any arguments passed to this script are passed directly to `quickfort`. Invoking this script without arguments is equivalent to running ``quickfort gui``. Examples: ==========...
-- https://github.com/JohannesMP/Premake-for-Beginners workspace "Benchmark" architecture "x64" location ("builds") if _ACTION == "vs2017" then location ("builds/VisualStudio2017") end if _ACTION == "vs2019" then location ("builds/VisualStudio2019") end if _ACTION == "vs2015" then location ("builds/Visua...
return { entities = { {"splitter", {x = 0.5, y = 0}, {dir = "west", }}, {"transport-belt", {x = 1.5, y = -0.5}, {dir = "west", dmg = {dmg = {type = "random", min = 25, max = 130}}, }}, {"transport-belt", {x = -1.5, y = 0.5}, {dir = "west", }}, {"transport-belt", {x = -1.5, y = 1.5}, {dir = "west", }...
-- Planet Region Definitions -- -- {"regionName", x, y, shape and size, tier, {"spawnGroup1", ...}, maxSpawnLimit} -- For circle and ring, x and y are the center point -- For rectangles, x and y are the bottom left corner. x2 and y2 (see below) are the upper right corner -- Shape and size is a table with the following ...
--[===[DOC = iscallable [source,lua] ---- function iscallable( var ) --> res ---- This function will return `true` if `var` is callable through the standard function call syntax. Otherwise it will return `false`. == Example [source,lua,example] ---- local iscallable = require "iscallable" assert( false == iscalla...
local ffi = require('ffi') local REFS = require("levee.d.heap").REFS local d = require("levee").d return { test_peek = function() local h = d.Heap() local val, prio prio, val = h:peek() assert.equals(nil, val) assert.equals(nil, prio) h:push(5, 100) prio, val = h:peek() assert.equals(5, prio) as...
local Map = game.GetMap() or "" if Map:find("gm_mus_crimson") then return elseif Map:find("gm_mus") and Map:find("metro") then Metrostroi.PlatformMap = "orange" Metrostroi.CurrentMap = "gm_orange" elseif Map:find("gm_mus_orange") then Metrostroi.PlatformMap = "orange" Metrostroi.CurrentMap = "gm_orange_...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
local substitutions = { ["\\exclamdown"] = {["character"] = "¡", ["name"] = "Inverted Exclamation Mark"}, ["\\sterling"] = {["character"] = "£", ["name"] = "Pound Sign"}, ["\\yen"] = {["character"] = "¥", ["name"] = "Yen Sign"}, ["\\brokenbar"] = {["character"] = "¦", ["name"] = "Broken Bar / Broken Ver...
local F, C = unpack(select(2, ...)) local UNITFRAME, cfg = F:GetModule('Unitframe'), C.unitframe function UNITFRAME:AddEnergyTicker(self) if not cfg.energyTicker then return end if C.Class == 'WARRIOR' then return end local energyTicker = CreateFrame('Frame', nil, self) energyTicker:SetFrameLevel(self.Power:GetF...
data:extend( { { type = "fluid", name = "hydrogen-chloride", default_temperature = 25, heat_capacity = "1KJ", base_color = {r=0.2, g=0.7, b=0}, flow_color = {r=0.5, g=0.5, b=0.5}, max_temperature = 100, icon = "__Engineersvsenvironmentalist__/graphics/icons/chemicals/hydrogen-chloride....
local script = Script() local targetEntity = nil local function SetAffiliationRelationshipMenu(name, id) local menu = UI.SimpleMenu() menu:SetTitle("Set realtionship to " .. name) for k,v in pairsByKeys(AgentRelationship) do menu:AddButton(k, function(menu, text, hint, index) local affid = AgentRel...
--[[ Construct unicode serialization format from string serialization format Copyright 2015-2016 Xiang Zhang Usage: th construct_code.lua [input] [output] [limit] [replace] --]] local bit32 = require('bit32') local ffi = require('ffi') local math = require('math') local torch = require('torch') -- A Logic Named Joe ...
local VolPan={} function VolPan:new (o) o=o or {} -- create object if user does not provide one setmetatable(o,self) self.__index=self return o end function VolPan:init(o) self.a=o.acrostic self.sel=1 self.shift=false self.message="" self.message_level=0 end function VolPan:msg(s) ...
data.raw.recipe["5d-air-plane"].ingredients = { {"engine-unit", 8}, {"iron-plate", 50}, {"tin-plate", 75}, {"zinc-plate", 20}, {"lead-plate", 25}, {"steel-plate", 5} } data.raw.recipe["5d-truck"].ingredients = { {"engine-unit", 8}, {"iron-plate", 20}, {"tin-plate", 50}, {"zinc-pl...
class("PutFurnitureCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() slot3 = slot2.furnsPos slot4 = slot2.tip slot5 = slot2.callback if not getProxy(DormProxy) then return end slot7 = slot2.floor or slot6.floor slot10, slot11 = Dorm.checkData(slot3, slot6:getData().level)...
require "ball" require "player" function score() if ball.x < 0 then player2.score = player2.score + 1 ball_init() elseif ball.x > width then player1.score = player1.score + 1 ball_init() end love.graphics.print("Player 1: " .. player1.score, 0, 0) love.graphics.print("Player 2: " .. player2.score, 0, 15) ...
-- no need to export since this is all global function AllTrim(s) return s:match('^%s*(.-)%s*$') end function firstToUpper(str) return (str:gsub('^%l', string.upper)) end function IsUpperCase(ch) local charcode = string.byte(ch) return charcode >= 65 and charcode <= 90 end function Sum(numarr) loc...
local function close_redis(red) if not red then return end --释放连接(连接池实现) local pool_max_idle_time = 10000 --毫秒 local pool_size = 100 --连接池大小 local ok, err = red:set_keepalive(pool_max_idle_time, pool_size) if not ok then ngx_log(ngx_ERR, "set redis keepalive error : ", err) ...
while true do script.Parent.Texture = "http://www.roblox.com/asset/?id=183747849" wait(0.05) script.Parent.Texture = "http://www.roblox.com/asset/?id=183747854" wait(0.05) script.Parent.Texture = "http://www.roblox.com/asset/?id=183747863" wait(0.05) script.Parent.Texture = "http://www.roblox.com/asset/?i...
{{~ if daily_routine_function.parent_preview_text && daily_routine_function.parent_preview_text != "" ~}} -- Parent Nodes: {{ daily_routine_function.parent_preview_text }} {{~ end ~}} function {{ daily_routine_function.function_name }}(this){{~ if daily_routine_function.code | string.contains "playerNpc" }} loc...
local function alert(body) require "notify"(body, "info", { title = "Buffer API Demo" }) end -- alert "Code Smell" local buffer_lines = vim.api.nvim_buf_get_lines(0, 0, 3, 0) -- alert(buffer_lines) local mark_pos = vim.api.nvim_buf_get_mark(0, "t") -- alert(vim.inspect(mark_pos)) local shift_width = vim.api.nvim_...
-- Super Mario Galaxy -- Imports -- package.loaded.<module> ensures that the module gets de-cached as needed. -- That way, if we change the code in those modules and then re-run the script, -- we won't need to restart Cheat Engine to see the code changes take effect. package.loaded.utils = nil local utils = requir...
local ffi = require("ffi") local lib = require("ice_batt") -- This allows the functions of the bindings to be globally called... setmetatable(_G, { __index = lib }) local function main() -- Struct that contains information about the battery local batt = ffi.new("ice_batt_info") -- Fetch battery information a...
--[[ Author : Jonathan Els Version : 0.1 Description: Sanitize contact heard to strip attributes and prefix a "q value" for inbound REGISTER messages. The "q = 1" suffix is hard-coded. Converts this: Contact: <sip: 3001@10.0.1.56: 50772>; + sip.in...
modifier_dummy = class( {} ) function modifier_dummy:OnCreated( kv ) if not IsServer() then return end --self:GetParent():AddNoDraw() end function modifier_dummy:OnDestroy( kv ) if not IsServer() then return end --self:GetParent():RemoveNoDraw() end function modifier_dummy:CheckState() local state = { [MODIFIE...
--[[ This file represents an interface to the WinSock2 networking interfaces of the Windows OS. The functions can be found in the .dll: ws2_32.dll --]] -- WinTypes.h -- WinBase.h -- mstcpip.h -- ws2_32.dll -- inaddr.h -- in6addr.h -- ws2tcpip.h -- ws2def.h -- winsock2.h local ffi = require "ffi" local bit = ...
require "turbo.3rdparty.middleclass.middleclass"