content stringlengths 5 1.05M |
|---|
---
--- Created by Ray1184.
--- DateTime: 04/07/2021 17:04
---
--- 2D image on screen for gui elements.
---
dependencies = { 'libs/utils/MathUtils.lua',
'libs/gui/Area2D.lua',
'libs/backend/HPMSFacade.lua'}
local lib = backend:get()
image_2d = {}
TYPE_CIRCLE = 0
TYPE_POLYGON = 1
f... |
addEvent("onClientPtpmPlayerLogin",true)
addEvent("onClientPtpmPlayerRegister",true) |
--[[
--MIT License
--
--Copyright (c) 2019 manilarome
--Copyright (c) 2020 Tom Meyers
--
--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 ... |
function love.conf(t)
t.version = "11.1"
t.window.title = "Game"
t.window.width = 640
t.window.height = 480
t.window.resizable = true
t.window.vsync = true
t.window.fsaa = 4
end
|
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
PositionAbs = class.class(KaitaiStruct)
function PositionAbs:_init(io, pare... |
local lu = require('luaunit')
local Mock = require('test.mock.Mock')
local Spy = require('test.mock.Spy')
local ValueMatcher = require('test.mock.ValueMatcher')
RegisterEvent = Mock()
RegisterEvent:whenCalled{with={ValueMatcher.any, 'ADDON_LOADED'}}
SetScript = Mock()
SetScript:whenCalled{with={ValueMatcher.any, 'OnE... |
local Tool = {}
function Tool.PosRelativeToAbsolute(x, y, relatives)
local absolutes = {}
for i = 1, #relatives, 2 do
absolutes[i] = relatives[i] + x
absolutes[i + 1] = relatives[i + 1] + y
end
return absolutes
end
function Tool.EqualityRounded(pNumber1, pNumber2, p... |
function OnNuke(keys)
local caster = keys.caster;
local ability = keys.ability;
local specialLevel = ability:GetLevel() - 1;
local radius = ability:GetLevelSpecialValueFor("radius", specialLevel);
local damage = ability:GetLevelSpecialValueFor("damage", specialLevel);
EmitSoundOn("Hero_Phoenix.SuperNova.Explode... |
local AfkTable = {
-- [player] = boolean -- Example Tree
}
local MapState = false
afkwarn = textCreateDisplay ()
local warnText1 = textCreateTextItem ( "You are being idle", 0.5, 0.30, "high", 230, 0, 0, 255, 4.0, "center", "center" )
local warnText3 = textCreateTextItem ( "You are being idle", 0.503, 0.303, "high",... |
---------------------------------------------------------------
-- Copyright 2020 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/sample-apps/blob/master/LICENSE --
... |
return {
[491131]= 610095,
[490219]= 610096,
[491984]= 610096,
[497760]= 610096,
[490318]= 610097,
[494970]= 610098,
[497767]= 610099,
[490342]= 610099,
[497730]= 610100,
[490433]= 610100,
[495485]= 610167,
[495475]= 610168,
[495487]= 610168,
[850892]= 610168,
[495479]= 610169,
[495482]= 610170,
[85086... |
--!nonstrict
--[[
Constructs and returns objects which can be used to model independent
reactive state.
]]
local runService = game:GetService("RunService")
-- Used to create a tunnel between client and server
local src = script.Parent.Parent
local packages = src.Parent
local maidConstructor = require(packages:WaitF... |
Game{
load = function()
end
}
|
local test = require("cp.test")
local log = require("hs.logger").new("t_utf16")
local inspect = require("hs.inspect")
local bench = require("cp.bench")
local config = require("cp.config")
local utf16 = require("cp.utf16")
local TEXT_PATH = config.scriptPath .. "/tests/unicode/"
local function expect... |
return {
gok_apocalypse = {
acceleration = 0.009,
airhoverfactor = 0,
airstrafe = false,
blocking = false,
brakerate = 0.04,
buildcostenergy = 2765331,
buildcostmetal = 411751,
builder = false,
buildpic = "gok_apocalypse.dds",
buildtime = 4000000,
canattack = true,
canfly = true,
... |
vim.g.terraform_align = 1
vim.g.terraform_fmt_on_save = 1
|
NewShipType = StartShipConfig()
NewShipType.displayedName="$1532"
NewShipType.sobDescription="$1533"
NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 2500)
NewShipType.regentime=0
NewShipType.minRegenTime=0
NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.0)
NewShipType.rearArmourD... |
---- Adds a new artifact which allows AI to control the singleplayer character
-- Creates a new artifact with the name Artifact of RoRAI
local artifact = Artifact.new("RoRAI")
-- Make the artifact be unlocked by default
artifact.unlocked = true
-- Set the artifact's loadout info
artifact.loadoutSprite = Spr... |
-----------------------------------------------------
--name : lib/parser/lua.lua
--description: parsing configuration for lua code
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : none
-----------------------------------------------------
--requires parser.main for simple... |
-- This example shows how to use signals on other processes and check for
-- incorrect termination of spawned processes.
local cqueues = require 'cqueues'
local signal = require 'cqueues.signal'
local subprocess = require 'xcq.subprocess'
assert(cqueues.new():wrap(function()
-- Spawn a process that takes 10 seconds... |
flowlayout:vertical(function()
flowlayout:horizontal(function()
lime:button("press me", function()
end)
end)
end)
|
--[[
The MIT License (MIT)
Copyright (c) 2016 WilhanTian 田伟汉
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, me... |
#!/usr/bin/env lua
function trim(s)
return s:match '^%s*(.-)%s*$'
end
function split(s, delimiter)
if not delimiter or delimiter == "" then
return s
end
result = {}
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(result, match)
end
return unpack(result... |
object_intangible_beast_bm_fynock = object_intangible_beast_shared_bm_fynock:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_fynock, "object/intangible/beast/bm_fynock.iff")
|
local playtime = 0
Citizen.CreateThread(function()
while true do
playtime = playtime + 1
TriggerServerEvent('log:server:playtime', playtime)
Citizen.Wait(60000)
end
end) |
local camera = {}
camera.is_spectating = false
camera.player_spec = 0
function camera:set_pos(cam_x, cam_y, cam_z)
setFixedCameraPosition(cam_x, cam_y, cam_z, 0.0, 0.0, 0.0)
end
function camera:set_look_pos(cam_x, cam_y, cam_z)
pointCameraAtPoint(cam_x, cam_y, cam_z, 2)
end
function camera:attach_player(playerid... |
----------------------------------------------------------------------------
-- Session library.
--
-- @release $Id: session.lua,v 1.29 2007/11/21 16:33:20 carregal Exp $
----------------------------------------------------------------------------
local lfs = require"lfs"
local serialize = require"cgilua.serialize"
l... |
--- ************************************************************************************************************************************************************************
--- ***********************************************************************************************************************************************... |
timeutils = {}
function timeutils.get_timestamp_keys(timestamp)
return {
seconds = timestamp,
minutes = math.floor(timestamp/60),
hours = math.floor(timestamp/3600),
days = math.floor(timestamp/86400),
months = math.floor(timestamp/2592000)
}
end
function timeutils.PeriodGenerator()
local s... |
local lfm = lfm
local getpwd = lfm.fn.getpwd
local chdir = lfm.fm.chdir
local M = {}
local list = {getpwd()}
local ind = 1
local registered_hook = false
local function on_chdir()
local dir = getpwd()
if list[ind] ~= dir then
ind = ind + 1
if ind <= #list then
if list[ind] ~= dir then
for i = ind+1,#lis... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
dependency 'NativeUI'
dependency 'pNotify'
description "Airplane rental script made by DevoutRain2500"
client_script '@NativeUI/NativeUI.lua'
client_script "c_airplanes.lua"
|
object_mobile_nyradi = object_mobile_shared_nyradi:new {
}
ObjectTemplates:addTemplate(object_mobile_nyradi, "object/mobile/nyradi.iff")
|
local rules = {}
return rules
|
BuildEnv(...)
SettingPanel = Addon:NewModule(CreateFrame('Frame', nil, MainPanel), 'SettingPanel', 'AceEvent-3.0', 'AceTimer-3.0')
local BINDING_KEY = 'MEETINGSTONE_TOGGLE'
function SettingPanel:OnInitialize()
GUI:Embed(self, 'Owner')
MainPanel:RegisterPanel(L['设置'], self, 3, 60, 1, true)
self.db = Pro... |
object_tangible_wearables_armor_invisible_invisible_ris_helmet = object_tangible_wearables_armor_invisible_shared_invisible_ris_helmet:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_armor_invisible_invisible_ris_helmet, "object/tangible/wearables/armor/invisible/invisible_ris_helmet.iff")
|
function getRequiredComponents()
return {movers = {"position", "size", "positionMover"}, entities = {"position", "size", "acceleration", "speed"}}
end
function update()
for i, mover in ipairs(movers) do
for j, entity in ipairs(entities) do
if entity.position.x + entity.size.width > mover.position.x and
enti... |
type State = 'NOT_INITED' | 'COMMON' | 'PAUSED' | 'STOPPED'
type Storage = {
name: string,
symbol: string,
supply: int,
precision: int,
users: Map<int>,
allowed: Map<string>,
lockedAmounts: Map<string>,
state: string,
allowLock: bool,
admin: string
}
var M = Contract<Storage>(... |
--- This wraps over the existing lua code formatters. There's no actively
-- maintained solution that solves everyone's problems, unfortunately.
local log = require 'lua-lsp.log'
local drivers = {}
-- https://luarocks.org/modules/luarocks/formatter
drivers['formatter'] = function(formatter)
return {
format = fun... |
local GridControl = include("lib/control")
local GridButton = {}
GridButton.__index = GridButton
setmetatable(GridButton, {
__index = GridControl, -- this is what makes the inheritance work
__call = function (cls, options)
local self = setmetatable({}, cls)
self:_init(options)
return self
end,
})
f... |
local M = {NAME = "unity"}
-- Extention: https://github.com/AGulev/DefVideoAds
local ads = require("ads_wrapper.ads_wrapper")
local platform = require("ads_wrapper.platform")
local helper = require("ads_wrapper.ads_networks.helper")
local events = require("ads_wrapper.events")
local parameters
local module_callback
l... |
function discordlib.structures.invite(client, invite)
invite.guild = client.cache.guilds[invite.guild.id]
invite.channel = invite.guild[invite.channel.id]
if invite.inviter then invite.inviter = client.cache.users[invite.inviter.id] end
function invite.delete(callback)
client.deleteInvite(inv... |
local awards = LoadBasicTextTable("tab\\AWARDS rev4.txt", 0)
local quests = LoadBasicTextTable("tab\\Quests merge.txt", 0)
local noteToQBit = {}
for i = 2, #quests do
noteToQBit[quests[i][3]] = tonumber(quests[i][1])
end
local mappings = {}
for i = 2, #awards do
if tonumber(awards[i][3]) == 4 -- sort used by promo... |
moving = moving or {}
-- デフォルトは移動しないので実質指定必須
function moving.default( progress )
return cc.p( 100, 100 )
end
-- 直進
function moving.straight( start, goal, progress )
return {
position = cc.p(
start.x + ( goal.x - start.x ) * progress / 100,
start.y + ( goal.y - st... |
data:extend({
{
type = "bool-setting",
name = "NCA-Starter-starting-items",
setting_type = "runtime-global",
default_value = true,
order = "aa"
}
,
{
type = "bool-setting",
name = "NCA-Starter-starting-robots",
setting_type = "runtime-globa... |
-- Dependencies
-- global debug flag
require 'resources/Debug'
-- Timers
require 'resources/Timers'
-- Instantiate ourself
if RoleDetermination == nil then
RoleDetermination = {}
end
-- local debug flag
local thisDebug = true
local isDebug = Debug.IsDebug() and thisDebug
-- other local vars
local botRoleDetermina... |
local MAGIC_CURE = 0x15
local MAGIC_CURA = 0x16
local MAGIC_CURAGA = 0x17
HealCharacterState = State:new()
function HealCharacterState:needToRun(game_context, bot_context, keys)
-- must be in battle
if not game_context.battle.is_in_battle then
return false
end
-- someone must be able to draw
local ca... |
local MainStart = Game:addState('MainStart')
local drawGame = require('shared.draw_game')
local function getLevelBounds(world)
local x1, y1, x2, y2 = math.huge, math.huge, -math.huge, -math.huge
local bodies = world:getBodyList()
for _,body in ipairs(bodies) do
for _,fixture in ipairs(body:getFixtureList()) ... |
-- convert.lua has to be named for the module
-- a module is self contained lua script similar to making a class
-- it returns itself to be assigned to the calling script attribute/variable
local convert = {}
function convert.ftToCm(feet)
return feet + 30.48
end
return convert |
local rl = require("raylib")
local math = require("math")
local screenWidth = 800
local screenHeight = 450
local sunRadius = 4.0
local earthRadius = 0.6
local earthOrbitRadius = 8.0
local moonRadius = 0.16
local moonOrbitRadius = 1.5
rl.InitWindow(screenWidth, screenHeight, "raylib [models] example - rlg... |
-- Copyright (C) by Jianhao Dai (Toruneko)
local X509 = require "resty.crypto.x509"
local RSA = require "resty.crypto.rsa"
local EC = require "resty.crypto.ec"
local BIO = require "resty.crypto.bio"
local ERR = require "resty.crypto.error"
local ffi = require "ffi"
local ffi_gc = ffi.gc
local ffi_null = ffi.null
loca... |
local player = ...
local NumSongsToLevelUp = 4
local MaxLevel=100
local function calcPlayerLevel()
local numSongsPlayed = PROFILEMAN:GetProfile(player):GetTotalNumSongsPlayed()
if numSongsPlayed > MaxLevel*NumSongsToLevelUp then
return MaxLevel;
else
return numSongsPlayed/NumSongsToLevelUp
end;
end
local fun... |
ys = ys or {}
slot1 = class("BattleBuffAntiSubVigilance", ys.Battle.BattleBuffEffect)
ys.Battle.BattleBuffAntiSubVigilance = slot1
slot1.__name = "BattleBuffAntiSubVigilance"
slot1.Ctor = function (slot0, slot1)
slot0.super.Ctor(slot0, slot1)
end
slot1.SetArgs = function (slot0, slot1, slot2)
slot0._vigilantRange =... |
return {
get_containers = function(id)
E:response():write_header(202)
E:response():write("ok")
E:response():flush()
end,
}
|
#!/usr/bin/env lua
-- written by Lukáš Voborský https://github.com/vsky279
-- https://github.com/nodemcu/nodemcu-firmware/commit/949875d590e771603a73ed3a90928d48ea3dd38b
--------------------------------------------------------------------------------
-- Script to be used on PC to build resource.lua file
-- Parameters:... |
local utils = require('utils')
return {
run = function(enginePath, outputDirectory)
project "Utilities"
kind "SharedLib"
location = outputDirectory
inputPath = enginePath.."/Source/Utilities"
utils.addfiles(inputPath)
includedirs
{
enginePath.."/Source/Utilities/Includes",
enginePath.."/Source/Bas... |
local Flipper = require(script.Parent.Parent.Flipper)
local useGoal = require(script.Parent.useGoal)
local function useLinear(targetValue, options, hooks)
return useGoal(Flipper.Linear.new(targetValue, options), hooks)
end
return useLinear |
local module = {
--[=[
_NAME = 'consolidateMenus.lua',
_VERSION = 'the 1st digit of Pi/0',
_URL = 'https://github.com/asmagill/hammerspoon-config',
_LICENSE = [[ See README.md ]]
_DESCRIPTION = [[
Auto close Hammerspoon console and provide a menu with options
... |
--Remove with isNewGamepadMenuEnabled
local CorePackages = game:GetService("CorePackages")
local Action = require(CorePackages.AppTempCommon.Common.Action)
return Action("SET_GAME_NAMES", function(newNames)
return {
newNames = newNames,
}
end) |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tconcat = table.concat
local tinsert = table.insert
local ev
local loop
local clients = {}
clients[true] = {}
local client = function(sock,protocol)
asse... |
Locales['br'] = {
-- Cloakroom
['cloakroom'] = 'guarda roupa',
['ems_clothes_civil'] = 'roupa normal',
['ems_clothes_ems'] = 'entrar como socorrista',
-- Vehicles
['ambulance'] = 'ambulancia',
['helicopter_prompt'] = 'pressione ~INPUT_CONTEXT~ para acessar a ~y~Helicopter Actions~s~.',
['garage_prompt']... |
local emulator = {
mesens = false,
snes9xrr = false,
bizhawk = false
}
if (not gui) then --mesen-s
emulator.mesens = true
require 'adapter.mesen-s.draw'
require 'adapter.mesen-s.input'
require 'adapter.mesen-s.mem'
require 'adapter.mesen-s.mouse'
elseif (gui.box) then --snex9x-rr
emulator.snes9xrr = ... |
modifier_ability_web_cocoon = class({})
--Root modifier, creates a unit object on top of the hero, killing the unit removes modifier, single target, purgable
function modifier_ability_web_cocoon:IsHidden()
return false
end
function modifier_ability_web_cocoon:IsDebuff()
return true
end
function modifier_ability_we... |
-- {{{ Grab environment
local tonumber = tonumber
local os = { time = os.time }
local setmetatable = setmetatable
local helpers = require("vicious.helpers")
local io = { popen = io.popen }
local string = { match = string.match }
-- }}}
-- Net: provides state and usage statistics of all network interfaces
-- vicious.w... |
--[[
巡逻AI
]]
-- 巡逻行为树
local C_B3_PATROL = "patrol"
local Blackboard = require("app.main.modules.behavior3.core.Blackboard")
local Patrol = class("Patrol", require("app.main.modules.script.ScriptBase"))
-- 构造函数
function Patrol:ctor(config)
if config then
table.merge(self,config)
end
self._blackboard = Blackboar... |
tx,ty,tz = 91,100,502 --The position of the element
local hideX,hideY,hideZ = 0,0,0 --where to hide the local player
local rz = 0 -- The current rotation
local maxRadius = 5
local camDistance = 4
--vehicle elevation calculation
local baseRadius = 3
local vehicleElevation = 1.8
--vehicle moveleft offset (to com... |
lunit.main(arg)
if lunit.stats.failed > 0 or lunit.stats.errors > 0 then
os.exit(false, true)
end
|
---
-- @function optional
-- @author Quenty
--[[
Sets up require.optional("Name").
Errors are still preserved because Roblox reports errors of module scripts regardless of caller
execution context.
]]
return function(_require, _module)
assert(_require, "Bad _require function")
assert(type(_module) == "string"
or... |
local List = require 'pl.List'
local asserteq = require 'pl.test' . asserteq
local s = List{1,2,3,4,5}
-- test using: lua pylist.lua
local lst = List()
lst:append(20)
lst:extend{30,40,50}
lst:put(10)
asserteq (lst,List{10,20,30,40,50})
asserteq (lst:len(),5)
lst:insert(3,11)
lst:remove_value(40)
asserteq (lst,List{10... |
data:extend({
{
type = "item",
name = "steam-engine-mk2",
icon_size = 32,
icon = "__FactorioExtended-Power__/graphics/icons/steam-engine-mk2.png",
flags = {"goes-to-quickbar"},
subgroup = "fb-energy-production-steam",
order = "a-a",
place_result = "steam-engine-mk2",
stack_size = 10
... |
local fio = require 'fio'
local errno = require 'errno'
local yaml = require 'yaml'
local log = require 'log'
local dir = os.getenv('TNT_FOLDER')
local cleanup = false
if dir == nil then
dir = fio.tempdir()
cleanup = true
end
local function compare_versions(expected, version)
-- from tarantool/queue comp... |
local themes = require('telescope.themes')
local actions = require('telescope.actions')
local state = require('telescope.actions.state')
local pickers = require('telescope.pickers')
local finders = require('telescope.finders')
local conf = require('telescope.config').values
local M = {}
local entry_maker = function(i... |
--- This is called when we want to *add* a bot that *does not* yet have
-- an adventurer. This will push bot init onto the queue after pushing
-- a new adventurer to the queue.
--
-- The most important part of using an event for this is ensuring we don't
-- get duplicate adventurer names. Thus, if adding many bots at o... |
local function TagAd(msg)
local text = msg.content_.text_
if text and text == "تفعيل تاك الادمنيه" and Owner(msg) then
database:set(bot_id.."Jack:Tag:Admins:"..msg.chat_id_,true)
send(msg.chat_id_, msg.id_,"⌔︙تم تفعيل تاك الادمنيه")
end
if text and text == "تعطيل تاك الادمنيه" and Owner(msg) then
database:del(... |
-- Copyright (C) 2017 ifritJP
local libs = {}
local libclangcore = require( 'libclanglua.core' )
libs.core = libclangcore
if _VERSION == "Lua 5.1" then
table.pack = function( ... )
return { ... }
end
table.unpack = function( ... )
return unpack( ... )
end
end
-- convert from CXString to Strin... |
slot0 = class("GetBackYardDataCommand", pm.SimpleCommand)
slot0.execute = function (slot0, slot1)
slot4 = slot1:getBody().isMine
slot5 = Dorm.New(slot3)
slot6 = {}
for slot10, slot11 in ipairs(slot1.getBody().data.ship_id_list) do
table.insert(slot6, slot11)
end
slot5:setShipIds(slot6)
slot7 = {}
slot5:s... |
--[[
-- added by passion @ 2019/11/14 16:39:51
-- UIBoard视图层
-- 注意:
-- 1、成员变量最好预先在__init函数声明,提高代码可读性
-- 2、OnEnable函数每次在窗口打开时调用,直接刷新
-- 3、组件命名参考代码规范
--]]
local UIBoardPlayerView = BaseClass("UIBoardPlayerView", UIBaseView)
local base = UIBaseView
local nickname_path = "nickName";
local function OnCreate(self)
base.On... |
--- Miscellaneous control-stage functions that don't yet have a proper home.
-- @module misc
-- @alias flib_misc
-- @usage local misc = require("__flib__.misc")
local flib_misc = {}
local math_sqrt = math.sqrt
local math_floor = math.floor
local string_format = string.format
--- Calculate the distance in tiles betwee... |
local cjson = require "cjson"
local evp = require "resty.evp"
local hmac = require "resty.hmac"
local _M = {_VERSION="0.1.1"}
local mt = {__index=_M}
local function get_raw_part(part_name, jwt_obj)
local raw_part = jwt_obj["raw_" .. part_name]
if raw_part == nil then
local part = jwt_obj[part_name]
... |
-- Dumps the selected itemslots iteminfo,
-- will be used for Equipment
-- v change that lmao
abotItemSlot=1;
abotItemInfoResult='noItem';
abId=GetInventoryItemID('player',abotItemSlot);
abCount=GetInventoryItemCount('player',abotItemSlot);
abCurrentDurability,abMaxDurability=GetInventoryItemDurability(abotItemSlot)... |
local annotation_functions = require 'tersen.extend.annot'
local oops = require 'tersen.oops'
local util = require 'tersen.util'
local M = {}
-- Given an annotation string (the part beginning with @),
-- return its name (string) and its parameters (list of strings).
local function parse_annot(annot)
local annot_... |
-- Decoy sending out a radar blip and redirecting DNA scans. Based on old beacon
-- code.
AddCSLuaFile()
ENT.Type = "anim"
ENT.Model = Model("models/props_lab/reciever01b.mdl")
ENT.CanHavePrints = false
ENT.CanUseKey = true
function ENT:Initialize()
self:SetModel(self.Model)
if SERVER then
self:PhysicsI... |
require("utils")
require("log")
local function container_outputs(control_behavior)
return {["any-item"] = true}
end
local function generic_on_off_outputs(control_behavior)
return {}
end
local function inserter_outputs(control_behavior)
if control_behavior.circuit_read_hand_contents then
return {[... |
require("pioduino")
--ピン定義
PIN_R = 1
PIN_G = 3
PIN_B = 2
--ピン初期化
pinMode(0,INPUT)
pinMode(PIN_R ,OUTPUT)
pinMode(PIN_G ,OUTPUT)
pinMode(PIN_B ,OUTPUT)
digitalWrite(PIN_R ,HIGH)
digitalWrite(PIN_G ,HIGH)
digitalWrite(PIN_B ,HIGH)
delay(500)
digitalWrite(PIN_R ,LOW)
digitalWrite(PIN_G ,LOW)
digitalWrite(PIN_B ,LOW)
d... |
local gears = require("gears")
local awful = require("awful")
-- Theme handling library
local beautiful = require("beautiful")
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
local home = os.getenv("HOME")
-- Themes define colours, icons, font and wallpapers.
-- beautiful.init("/usr/share/... |
z = Instance.new("Sound", torso)
z.SoundId = "rbxassetid://206153677" -- Put Music ID Here.
z.Looped = true
z.Volume = 1
wait(.1)
z:Play() |
--[[
Name: weapons_gov.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
local Item = {}
Item.Name = "Goverment Issued Earpiece"
Ite... |
data:extend({
{
type = "item",
name = "5d-fusion-reactor-mk2-equipment",
icon = "__5dim_equipment__/graphics/icons/fusion-reactor2-equipment.png",
placed_as_equipment_result = "5d-fusion-reactor-mk2-equipment",
flags = {"goes-to-main-inventory"},
subgroup = "armor-reactor",
order = "b",
... |
mini_spider_slow_attack = class({})
LinkLuaModifier( "modifier_mini_spider_slow_attack", "modifiers/modifier_mini_spider_slow_attack", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_mini_spider_slow_attack_debuff", "modifiers/modifier_mini_spider_slow_attack_debuff", LUA_MODIFIER_MOTION_NONE )
-----------------... |
{{ condition.script_code }} |
-- Movement ended up being too laggy. So, I'm removing it for now.
if true then return end
local STAMINA_MAX = 100
local STAMINA_COST_JUMP = 25
local STAMINA_COST_FALL = 20
local STAMINA_RECOVER_RATE = 19
local CS_WALK_SPEED = 100
local function ReduceTimers( ply )
local frame_msec = 1000 * FrameTime()
-- Reduce ... |
local _tonumber = tonumber
local clientRoomName = KEYS[1]
local currentTime = _tonumber(redis.call('get', 'serverTime'))
if(not currentTime) then
return redis.error_reply('NO SERVERTIME')
end
local rk = {
tickRooms = "tick|rooms",
roomName = "rooms|"..KEYS[1],
room... |
local packages = game.ReplicatedStorage:WaitForChild("Packages")
local http = game:GetService("HttpService")
local Promise = require(packages:WaitForChild("promise"))
local httpRequest = {}
local function noop(...) return ... end
httpRequest.__index = httpRequest
httpRequest._default = {
baseUrl = "", -- Can be use... |
local M = {}
function M.setup() M.mappings() end
function M.mappings()
-- Movement Mappings
local movements_mappings = {
{'n', '<leader>h', '<cmd>wincmd h<cr>'},
{'n', '<leader>j', '<cmd>wincmd j<cr>'},
{'n', '<leader>k', '<cmd>wincmd k<cr>'},
{'n', '<leader>l', '<cmd>wincmd l<cr>'},
}
requir... |
function love.load(arg)
if arg[#arg] == "-debug" then require("mobdebug").start() end
x = 10
y = x
print(x)
end
|
require "pages._systemstatus"
require "pages._network"
PageManager = {
Configuration = nil,
Network = Network_Page,
Power = nil,
Production = nil,
Storage = nil,
System_Status = System_Status_Page,
Transport = nil,
}
PageManagerTabOrder = {
"System_Status",
"Network",
"Production",
"Storage",
"Power",
"T... |
-- Copyright 2018 Chizhong Jin <pjincz@gmail.com>
-- Licensed to the public under the BSD 3-clause license
module("luci.statistics.rrdtool.definitions.curl", package.seeall)
function item()
return luci.i18n.translate("cUrl")
end
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: cUr... |
print("I am currently working to learn lua to try to make a multiplayer / online based client.")
a = 6
|
--[[ DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING, CHECK "config.lua" FOR THE CONFIG ]]
--[[ DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING, CHECK "config.lua" FOR THE CONFIG ]]
--[[ DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING, CHECK "config.lua" FOR THE CONFIG ]]
local function cal... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
-- Config check
if Config.PreloadVehicles then
if Config.ReleaseMemory then
print("Do not use PreloadVehicles with ReleaseMemory! Check your config.lua")
elseif Config.LoadOnlyRequested then
print("Do not use P... |
addCommandHandler("speednode",
function()
if exports.global:isPlayerScripter(getLocalPlayer()) then
outputChatBox(findNodeClosestToPoint(vehicleNodes, getElementPosition(getLocalPlayer())).id)
end
end
)
local speedlimits90 =
{
-- node1, node2
{ 786819, 1311230 },
{ 786747, 852334 },
{ 786741,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.