content
stringlengths
5
1.05M
local component = require("component") local event = require("event") local term = require("term") local casino = require("casino") local gpu = component.gpu local login, value, players_card, dealer_card, time_sleep, time_sleep_end = false, 1, {}, {}, 0.2, 1.5 local first_win = false local deck local consoleLines = {...
return Def.ActorFrame{ InitCommand=function(self) self:x(26) end, Def.Quad{ InitCommand=function(self) self:diffuse(color("#000000")):zoomto(_screen.w/2.1675, _screen.h/15) end }, Def.Quad{ InitCommand=function(self) self:diffuse(color("#283239")):zoomto(_screen.w/2.1675, _screen.h/15 - 1) end } }
local doors = {} RegisterNetEvent('vrpdoorsystem:load') AddEventHandler('vrpdoorsystem:load',function(list) doors = list end) RegisterNetEvent('vrpdoorsystem:statusSend') AddEventHandler('vrpdoorsystem:statusSend',function(i,status) doors[i].locked = status end) function searchIdDoor() local x,y,z = table.unpack(...
--- Tile module --- <p>A tile represents a 1x1 area on a surface in factorio -- @module Tile require 'stdlib/core' require 'stdlib/area/position' require 'stdlib/area/chunk' Tile = {} MAX_UINT = 4294967296 --- Calculates the tile coordinates for the position given -- @param position to calculate the tile for -- @r...
local _ = {name = "air", param1 = 0} local L = {name = "ethereal:orange_leaves", param1 = 255} local l = {name = "ethereal:orange_leaves", param1 = 200} local T = {name = "default:tree", param1 = 255} local o = {name = "ethereal:orange", param1 = 100} ethereal.orangetree = { size = {x = 3, y = 6, z = 3}, yslice_p...
--[[ @Authors: Ben Dol (BeniS) @Details: Anti kick event logic. ]] AfkModule.AntiKick = {} AntiKick = AfkModule.AntiKick function AntiKick.Event(event) if g_game.isOnline() then -- Check if we are attacking if g_game.isAttacking() then return Helper.safeDelay(3000, 6000) end local oldDir =...
phantom_second_attack = class({}) phantom_second_attack_recast = class({}) LinkLuaModifier("modifier_phantom_second_attack_recast", "abilities/heroes/phantom/phantom_second_attack/modifier_phantom_second_attack_recast", LUA_MODIFIER_MOTION_NONE) function phantom_second_attack:GetCastAnimationCustom() return ACT_DOTA_...
local types = {} types.TABLE = "table" types.FUNCTION = "function" types.NUMBER = "number" return types
data:extend( { { type = "recipe", name = "electrolyser", enabled = "false", ingredients = { {"pipe", 15}, {"steel-plate", 10}, {"electric-engine-unit", 2}, {"graphite-bar", 2}, }, result = "electrolyser" }, { type = "recipe", name = "hydro-gen...
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== --- cEvent_Type_SpawnUnits -- Spawns a desired unit struct at the desired galactic locations. -- The Event does NOT care whether the galactic location is owned by the player the units are...
local cartridge = require('cartridge') local replicasets, err = cartridge.admin_get_replicasets() assert(err == nil, tostring(err)) local ret = {} for _, replicaset in ipairs(replicasets) do local replicaset_alias = replicaset.alias local leader_alias = replicaset.active_master.alias ret[replicaset_alias...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] Clockwork.datastream:Hook("ContainerPassword", function(player, data) local passw...
code.pistoleros = {} function code.pistoleros.load() numberOfGame = 0 limitOfGame = 5 love.keyboard.setKeyRepeat(false) love.physics.setMeter(10) world = love.physics.newWorld(0, 700, false) world:setCallbacks( pistolerosBeginContact) color = { {255,0,0}, {0,255,0}, {0,0,255}, {0,255,255}, } position ...
package("aws-c-common") set_homepage("https://github.com/awslabs/aws-c-common") set_description("Core c99 package for AWS SDK for C") set_license("Apache-2.0") add_urls("https://github.com/awslabs/aws-c-common/archive/$(version).tar.gz", "https://github.com/awslabs/aws-c-common.git") a...
local lfs = require( "lfs" ) --ZREQ-lfs --ZFUNC-dirhas-v1 local function dirhas( path, name, mode ) --> entrypath local modeval = lfs.attributes( path, "mode" ) if modeval ~= "directory" then return nil end for entry in lfs.dir( path ) do if entry == name then local entrypath = path.."/"..entr...
return "https://discord.gg/khnrSz3mjq"
ChatPanel_Base_ctor = ChatPanel_Base_ctor or ChatPanel_Base.ctor function ChatPanel_Base:ctor(nIndex, szName, nBufferSize, nMainGroupIndex, msg, Anchor, tOffMsg) ChatPanel_Base_ctor(self, nIndex, szName, nBufferSize, nMainGroupIndex, msg, Anchor, tOffMsg) if szName == g_tStrings.FIGHT_CHANNEL then self.Data.nBuffe...
require "nixio.fs" require "lmclient" local SCRIPT_PATH = "/usr/share/linkmeter/alarm-" local function isexec_cfgvalue(self) return nixio.fs.access(SCRIPT_PATH .. self.config, "x") and "1" end local function isexec_write(self, section, value) self.value = value local curmode = nixio.fs.stat(SCRIPT_PATH .. self....
Brick = Class{} function Brick:init(x, y) self.tier = 0 self.color = 1 self.x = x self.y = y self.width = 32 self.height = 16 self.inPlay = true end function Brick:hit() gSounds['brick-hit-2']:play() if self.tier > 0 then if self.color == 1 then self.tier = sel...
local M = {} M.__index = M function M.new(bufnr, language, separator) vim.validate({ bufnr = { bufnr, "number" }, language = { language, "string" }, separator = { separator, "string" }, }) local tbl = { _string_unwrapper = require("gettest.lib.treesitter.string_unwrapper").new(language), _buf...
-- Module to handle all object functions for Lua-GL local type = type local table = table local pairs = pairs local tostring = tostring -- Math Library local min = math.min local floor = math.floor local GUIFW = require("lua-gl.guifw") local utility = require("lua-gl.utility") local tu = require("tableUtils") local ...
-- access.lua : based on https://github.com/eschwim/nginx-google-oauth -- LICENSE: The MIT License (MIT) -- -- Copyright (c) 2014 Aaron Westendorf -- -- adaptation to Microsoft Azure -- Author: Pascal Trouvin -- -- History: -- 20160208: do not expose OAUTHv2 JWT token anymore: security issue, -- because una...
local composer = require( "composer" ) local scene = composer.newScene() local w = display.contentWidth local h = display.contentHeight function scene:create( event ) local sceneGroup = self.view msgx = display.newImageRect("ImgGameOver.jpg", 230, 180) msgx.x = w/2 msgx.y = 150 sce...
-- Load dependencies local mnist = require 'mnist' local optim = require 'optim' local gnuplot = require 'gnuplot' local image = require 'image' local cuda = pcall(require, 'cutorch') -- Use CUDA if available local hasCudnn, cudnn = pcall(require, 'cudnn') -- Use cuDNN if available require 'dpnn' -- Command-line optio...
package.path = "../?.lua;"..package.path local ffi = require("ffi") local bit = require("bit") local enum = require("peettles.enum") local peenums = require("peettles.penums") local mmap = require("peettles.mmap_win32") local binstream = require("peettles.binstream") local putils = require("peettles.print_utils") lo...
--[[ ThemePrefs: handles the underlying structure for ThemePrefs, so any themes built off of this can simply declare their prefs and default values, and access them through this system. v0.7.2: Jan. 10, 2012. Added ThemePrefs.ForceSave function [freem] v0.7.1: Dec. 28, 2010. Added language support. v0.7.0: Dec. 15, 20...
local M = {} local h = require('helper') function M.config() require('Comment').setup() h.map("n", "<Leader>c", "gcc", {noremap = false}) h.map("x", "<Leader>c", "gc", {noremap = false}) end return M
local utils = require("utils") local drawableSprite = require("structs.drawable_sprite") local foregroundDebris = {} foregroundDebris.name = "foregroundDebris" foregroundDebris.depth = -999900 foregroundDebris.placements = { name = "foreground_debris" } local rockTextures = { { "scenery/fgdebris/rock...
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local yify = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') function yify:init() yify.commands...
-- translate English to "Pig Latin" print("Enter some text:") text = io.read() words = {} w = 1 space_at = 0 e = nil repeat local s = space_at + 1 space_at = string.find(text, " ", s) if space_at == nil then e = #text else e = space_at-1 end words[w] = string.sub(text, s, e) w = w + 1 until e == #text for...
local grid = require "mjolnir.bg.grid" local hotkey = require "mjolnir.hotkey" local window = require "mjolnir.window" grid.MARGINX = 1 grid.MARGINY = 0 grid.GRIDWIDTH = 8 grid.GRIDHEIGHT = 2 hotkey.bind({"cmd","alt"}, "H", function() -- Make window thinner if at the most left local win = window.focusedwindo...
vim.cmd("call wilder#setup({'modes': [':', '/', '?']})") vim.cmd([[ call wilder#set_option('renderer', wilder#popupmenu_renderer({ \ 'highlighter': wilder#basic_highlighter(), \ 'left': [ \ ' ', wilder#popupmenu_devicons(), \ ], \ 'right': [ \ ' ', wilder#popupmenu_scrollbar(), ...
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Marc...
ENT.Type = "anim" ENT.PrintName = "Signalling Element" ENT.Category = "Metrostroi (utility)" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.TrafficLightModels = {} ENT.RenderOffset = {} ENT.BasePosition = Vector(-110,32,0) ENT.ReloadModels = true ENT.Signal_IS = "W" Metrostroi.LiterWarper = { A = "f",B = ...
local menu = require('menu') local shmup = require('shmup') local piefiller = require("piefiller") function love.load() -- print(package.cpath) if arg[#arg] == "-debug" then require("mobdebug").start() end flags = { vsync = true, resizable = true, } love.window.setMode(screen.w, screen.h, flags) -- love.key...
part = {"trećine", "četvrtine", "petine", "šestine", "sedmine", "osmine", "devetine"}
function dead() return x < 0 or x >= w or y < 0 or y >= h or taken(x, y) end function eaten() return x == fx and y == fy end function taken(xx, yy) for i = 1, #body do if body[i] == {xx, yy} then return true end end return false end function food() local fx = math....
--[[ Code HEAVILY inspired by Theogeek's Improved Criticals, except we don't need all of its functionality so we're simply going to jack out most of the code and just maximize the critical damage dice if the extension is enabled. ]] local rOriginalRoll = {}; local onDamage = nil; local onDamageRoll = nil; function ...
-- -- Please see the license.txt file included with this distribution for -- attribution and copyright information. -- function onInit() if not isReadOnly() then registerMenuItem(Interface.getString("list_menu_createitem"), "insert", 5); end end function onMenuSelection(selection) if selection == 5 then addE...
return function() local liter = require(game:GetService('ReplicatedStorage').liter) it('should only return values matching the predicate', function() local iter = liter.array({ 1, 5, 10, 20, 5, 2 }):filter(function(value) return value > 5 end) expect(iter:after()).to.equal(10) expect(iter:after(...
---@class CS.UnityEngine.BillboardAsset : CS.UnityEngine.Object ---@field public width number ---@field public height number ---@field public bottom number ---@field public imageCount number ---@field public vertexCount number ---@field public indexCount number ---@field public material CS.UnityEngine.Material ---@typ...
-- Copyright (C) idevz (idevz.org) local tcp = ngx.socket.tcp local setmetatable = setmetatable local rawget = rawget local singletons = require "motan.singletons" local consts = require "motan.consts" local MAX_IDLE_TIMEOUT = 30*1000 -- 30s default timeout local POOL_SIZE = 100 local _M = { _VERSION = '...
--module local M={ modname=(...) } ; package.loaded[M.modname]=M ----------------------------------------------------------------------------- --[[#lua.wetgenes.gamecake.fun.yarn.cells cells = require("wetgenes.gamecake.fun.yarn.cells").create(items) This module contains only one function which can be used to crea...
local function partition(arr, p) local result1, result2, j, k = {}, {}, 0, 0 for i = 1, #arr do if p(arr[i], i, arr) then j = j + 1 result1[j] = arr[i] else k = k + 1 result2[k] = arr[i] end end return {result1, result2} end return partition
-- robot.lua local arm = require "arm" local bit = require "bit" local config = require "config" local configmode = require "configmode" local controls = require "controls" local drive = require "drive" local lcd = require "lcd" local math = require "math" local minibot = require "minibot" local pid = require "pid" lo...
require("common/popupWindow"); local moreGameInfoView = require(ViewPath .. "hall/moreGames/moreGameInfoView"); -- 更多游戏下载弹框 local MoreGameInfoView = class(PopupWindow, false); local h_index = 0; local getIndex = function(self) h_index = h_index + 1; return h_index; end MoreGameInfoView.s_controls...
FrenchRP.declareChatCommand{ command = "rpname", description = "Set your RP name", delay = 1.5 } FrenchRP.declareChatCommand{ command = "name", description = "Set your RP name", delay = 1.5 } FrenchRP.declareChatCommand{ command = "nick", description = "Set your RP name", delay = 1...
if mods ["Dectorio"] then if data.raw.item["dect-small-lamp-glow"] then data.raw.lamp["small-lamp"].fast_replaceable_group = "small-lamp" data.raw.lamp["dect-small-lamp-glow"].fast_replaceable_group = "small-lamp" end end if mods ["IndustrialDisplayPlates"] then data.raw["simple-entity-with-owner"]["copp...
local Player = FindMetaTable("Player") function Player:AddBookToLibrary(strBook) if not IsValid(self) then return false end self.Data.Library = self.Data.Library or {} self.Data.Library[strBook] = true for _, strRecipe in pairs(ItemTable(strBook).GainRecipes or {}) do self:AddRecipe(strRecipe) end if SERVER th...
local test = require('simple_test') local memo = require('memo') test('memoize with one parameter', function(a) local count = 0 local memoized_fn = memo(function(value) count = count + 1 return value + 1 end) memoized_fn(1) memoized_fn(1) memoized_fn(1) a.equal(count, 1) a.equal(memoized_fn(1...
(require"init").UnpackToGlobal() function love.load() gui = Screen({}, "MyGui") local node = TextButton( { Size = {0, 0, 128, 128}, Text = "Press maaaae", OnLeftClicked = function (self, x, y) print(111) end, }, "TextBut...
-- Simple text input -- Part of Shuwarin GUI library -- Copyright (c) 2039 Dark Energy Processor -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted ...
local _, Addon = ... local Type, Version = "Dejunk_ListFrame", 1 local AceGUI = Addon.Libs.AceGUI if (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end -- Upvalues local ClearCursor = _G.ClearCursor local CreateFrame = _G.CreateFrame local CursorHasItem = _G.CursorHasItem local DCL = Addon.Libs.DCL local ...
--- -- @module random local types = require("lualife.types") local Field = require("lualife.models.field") local random = {} --- -- @tparam Field sample -- @tparam[opt=0.5] number filling [0, 1] -- @treturn Field function random.generate(sample, filling) filling = filling or 0.5 assert(types.is_instance(sample,...
local os = require('os') local ffi = require('ffi') local C = ffi.C local pagesize = require("levee._").pagesize local tmp_int = ffi.new("uint32_t [1]") local tmp_num = ffi.new("double [1]") local tmp_len = 0 local tmp_str = nil local function bytes(len) local val = ffi.new("uint8_t [?]", len) if C.sp_rand(val, len...
--[[ FirstPerson v37 Variables: FirstPersonOffset Player ModelName Functions: UpdateFirstPerson --]] FirstPersonOffset = FirstPersonOffset or CFrame.new() local WeaponClone = nil local BodyClone = nil local Check = false local FirstRun = false function UpdateFirstPerson(Override) if (Selected == true or CanUs...
--[[------------------------------------------------------ dub.Class --------- A class/struct definition. --]]------------------------------------------------------ local lib = { type = 'dub.Class', is_class = true, is_scope = true, SET_ATTR_NAME = '_set_', GET_ATTR_NAME = '_g...
function EFFECT:Init(data) self.ePos = data:GetOrigin() self.eNormal = data:GetNormal() self.Emitter = ParticleEmitter( self.ePos ) for i = 1,3 do for mult = 1,3 do local vel = Vector( 0, math.sin( 2 * math.pi / 3 * i ), math.cos( 2 * math.pi / 3 * i ) ) * 60 vel:Rotate( self.eNormal:Angle() ) local ...
local class = require "lib.middleclass" --- @class Label --- @field new fun(self: Label, x: integer, y: integer, text: string) local Label = class("Label") --- @param x integer @ The x coordinate of the label --- @param y integer @ The y coordinate of the label --- @param text string @ The text to be displayed on th...
local format_number = require("util.format").format_number local min = math.min local max = math.max -- TODO: Make this a mod setting -- jk it's complicated local maximum_junction_length = 128 -- tiles local function do_simulation(power, friction, weight, air_resistance, V_cap, length) local total_distance = len...
local openssl = require'openssl' local ext = openssl.x509.extension local M = {} M.caexts = { { object='basicConstraints', value='CA:true', critical = true }, { object='keyUsage', value='keyCertSign' } } M.cadn = { {commonName = 'CA'}, {OU = "lua"}, {O = "openssl"}, {C = 'CN'} ...
-- Copyright (C) 2020 thisLight -- -- This file is part of hussar. -- -- hussar is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. --...
id = 'V-38513' severity = 'medium' weight = 10.0 title = 'The systems local IPv4 firewall must implement a deny-all, allow-by-exception policy for inbound packets.' description = 'In "iptables" the default policy is applied only after all the applicable rules in the table are examined for a match. Setting the default p...
local consts = require("consts") data:extend{ { name = "TASDev-spawn-here-location", setting_type = "runtime-per-user", type = "string-setting", default_value = "{0, 0}", allow_blank = true, }, { name = "TASDev-position-list-row-count", setting_type = "runtime-per-user", type = "...
local EXT = EXT or nzu.Extensions.core -- This protects against lua refresh where EXT is no longer valid EXT.Settings = { -- Starting Items & Setup ["StartWeapon"] = { Type = "Weapon", Default = "weapon_pistol", Label = "Starting Weapon", Order = 1, }, ["StartKnife"] = { Type = "Weapon", Default = "nzu...
-- character_controller -- ArkhieDev -- 3/9/2021 -- Services local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ContextActionService = game:G...
object_tangible_event_perk_gmf_crafted_spider_pheromone = object_tangible_event_perk_shared_gmf_crafted_spider_pheromone:new { } ObjectTemplates:addTemplate(object_tangible_event_perk_gmf_crafted_spider_pheromone, "object/tangible/event_perk/gmf_crafted_spider_pheromone.iff")
--[[ Except module The except module implements an exception system used by the compiler. In this system exceptions can be raised, cough and raised again when needed. An exception always have label and traceback. The label is used to differentiate exceptions when needed, tracebacks are stored when an exception is crea...
--BITER BATTLES CONFIG FILE-- local config = { --MAP PREGENERATION ["map_pregeneration_radius"] = 32, --Radius in chunks to pregenerate at the start of the map. ["fast_pregen"] = false, --Force fast pregeneration. --TEAM SETTINGS ["north_side_team_name"] = "North", --Name in the GUI of Team North. ...
return {'ziva','zivas'}
require "util" function catfile(file) local fp = io.open(file) local contents = fp:read("*a") fp:close() io.write(contents) end ward = os.getenv("WARD") args = table.concat(map({...}, shell_escape), " ") argtable = {...} file = argtable[#argtable] if string.sub(file, -2, -1) == ".c" then guard = os.tmpname(...
local Plugin = script.Parent.Parent.Parent local Keys = require(Plugin.Core.Util.Keys) local wrapStrictTable = require(Plugin.Core.Util.wrapStrictTable) local ContextGetter = {} function ContextGetter.getModal(component) return { modalTarget = component._context.modalTarget, modalStatus = component._context.mod...
--[[ module: ServiceLocator author: DylanYang time: 2021-02-25 13:47:46 idea: advance: ]] local Cache = require("patterns.j2ee.serverLocator.Cache") local InitialContext = require("patterns.j2ee.serverLocator.InitialContext") local _M = Class("ServiceLocator") local static = _M.static.public s...
object_tangible_furniture_decorative_wod_ns_potted_plant_08 = object_tangible_furniture_decorative_shared_wod_ns_potted_plant_08:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_ns_potted_plant_08, "object/tangible/furniture/decorative/wod_ns_potted_plant_08.iff")
-- naming scheme: wire:(xp)(zp)(xm)(zm)_on/off -- The conditions in brackets define whether there is a mesecon at that place or not -- 1 = there is one; 0 = there is none -- y always means y+ box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/64, 1/16} box_bump1 = { -2/16, -.5, -2/16, 2/16, -.5+1/64, 2/16 } box_xp = {1/1...
local a = 10 for i=1,10 do print(i) print(a) end
--[[ each mod that requires `coverage.lua` will have a remote "__coverage_modname" defined for it with start(testname), stop(), and dump() data is saved in a table by testname, short_src and line number: coveragedata = { levelpath = { modname = "", basepath = "" } tests = { [testname] = { [sh...
return { PlaceObj("ModItemOptionToggle", { "name", "HideSigns", "DisplayName", T(302535920011430, "Hide Signs"), "Help", T(302535920011501, [[Hide signs on the map (pressing "I" will not toggle them).]]), "DefaultValue", false, }), PlaceObj("ModItemOptionToggle", { "name", "AlienAnomaly", "DisplayName", ...
rich = require("src.richtext") require("src.dialog.dialogposition") require("src.dialog.queue") macros = {} DialogBase = class("DialogBase", {}) function DialogBase:init() end function DialogBase:update(dt) if isDown("interact") and just("interact") then self:interact() end end function DialogBase:draw() end ...
return { HOOK_PLAYER_MOVING = { CalledWhen = "Player tried to move in the tick being currently processed. Plugin may refuse movement.", DefaultFnName = "OnPlayerMoving", -- also used as pagename Desc = [[ This function is called in each server tick for each {{cPlayer|player}} that has sent any of the pla...
FText = Entity:extend() function FText:new(at, text) FText.super.new(self) self.solid = false self.moves = true self.text = text self.x = at.x + (at.w - font:getWidth(self.text)) / 2 self.y = at.y self.start = self.y self:reset() self.tween = flux.group() self.zIndex = 10 self:to(self, .6, { y = self.y - ...
require("lib") printArgs("first", "second", 2345, 2342, {"fsdf",2342}, _, 21342)
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2016 Eric Luehrsen <ericluehrsen@hotmail.com> -- Copyright 2016 Dan Luedtke <mail@danrl.com> -- Licensed to the public under the Apache License 2.0. local m1, s1 local ena, mcf, lci, lsv local rlh, rpv, vld, nvd, eds, prt, tlm local ctl, dlk, dom, dty, l...
--[[ LICENSE HEADER MIT Licensing Copyright © 2017 Jordan Irwin See: LICENSE.txt --]] -- LOGGING FUNCTIONS -- Custom logging function -- Custom "info" level logging function function listitems.logInfo(msg) listitems.log("warning", "\"listitems.logInfo\" is deprecated, use \"listitems.log\"") listitems....
-- The MIT License (MIT) -- -- Copyright © 2021 Jens Hofschröer -- -- 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, c...
return function(Vargs, env) local server = Vargs.Server; local service = Vargs.Service; local Settings = server.Settings local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps = server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs...
-- See LICENSE for terms local Strings = ChoGGi.Strings function ChoGGi.MenuFuncs.ConsoleRestart() local dlgConsole = dlgConsole if ChoGGi.ComFuncs.IsValidXWin(dlgConsole) then if not dlgConsole:GetVisible() then ShowConsole(true) end dlgConsole.idEdit:SetFocus() dlgConsole.idEdit:SetText("restart") end...
local path = (...):gsub('%.[^%.]+$', '') local rules = require(path .. '.rules') local util = require(path .. '.util') local introspection = require(path .. '.introspection') local schema = require(path .. '.schema') local function getParentField(context, name, count) if introspection.fieldMap[name] then return intr...
---------------------------------------------------------------- -- copy and change from https://github.com/scottcs/dot_hammerspoon/blob/2495d931782fb485459a254bb62557b93329ac14/.hammerspoon/utils/file.lua ---------------------------------------------------------------- -- File and directory related utilities local lib...
local bgNPC = bgNPC local TEXT_ALIGN_CENTER = TEXT_ALIGN_CENTER local ipairs = ipairs local LocalToWorld = LocalToWorld local Angle = Angle local IsValid = IsValid local GetConVar = GetConVar local draw_SimpleTextOutlined = draw.SimpleTextOutlined local render_DrawLine = render.DrawLine local render_SetColorMaterial = ...
local M = {} ---Convert a Shade or Color to a css string ---@param value Shade | Color ---@return string css hex string local function to_value(value) return value.base and value.base or value.to_css() end ---Walk path (one.two.three) in a table and return value ---@param t table ---@param path string ---@return an...
-- Copyright 2021 Kafka-Tarantool-Loader -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or...
local replicatedStorage = game:GetService("ReplicatedStorage") local gui = script.Parent.Parent local message = replicatedStorage.Message local remaining = replicatedStorage.Remaining local display = {} local messageLabel = gui:WaitForChild("Message") local remainingLabel = gui:WaitForChild("Remaining") messageLabel....
-- OpenGL-Sandbox project "OpenGL-Sandbox" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("../builds/bin/" .. outputdir .. "/%{prj.name}") objdir ("../builds/bin-int/" .. outputdir .. "/%{prj.name}") files { "src/**.h", "src/**.cpp" } includedirs { -- ".....
local anims = { wave = {"ON_LOOKERS", "wave_loop"}, lay = {"BEACH", "SitnWait_loop_W"}, sit = {"ped", "SEAT_IDLE"}, sit_relax = {"INT_House", "LOU_Loop"}, fucku = {"ped", "fucku", false}, serious = {"COP_AMBIENT", "Coplook_loop"}, hello = {"ped", "endchat_03", false}, no = {"ped", "endchat_02", false}, bye = ...
require 'torch' require 'nn' require 'fast_neural_style.ShaveImage' require 'fast_neural_style.TotalVariation' require 'fast_neural_style.InstanceNormalization' --[[ Prints the options that were used to train a a feedforward model. --]] local cmd = torch.CmdLine() cmd:option('-model', 'models/instance_norm/candy.t...
local module = {} local animations = game:GetService('ReplicatedStorage').Assets.Animations.Animate local switch_transition = 0.3 function module.SetPlaying(track, play, ...) if play then if track.IsPlaying then return end track:Play(...) else track:Stop(...) end end function module.LoadTrack(animator, ...
-- synth.lua --g_sampleRate = 11025 g_sampleRate = getSampleRate() g_samplesPerRequest = getSamplesPerRequest() g_twopi = math.pi * 2 g_maxAmplitude = 32767 function sqrwav(a) if math.sin(a) > 0 then return 1.0 else return -1.0 end end SynthNode = {} SynthNode.rbuffsize = 50 SynthNode.renderstep = 2 ...
--[[ Communications Contains all functions for exchanging data between 2 NC plugins ]] navcomp.com = {} dofile ("com/ui/ui.lua") dofile ("com/receivers.lua") -- Comm Variables local tag = "NAVCOMP#" local sendState = 0 local receiveState = 0 local senderName = 0 local receiverName = 0 local delay = 150 --local de...
local ngx = ngx local type = type local find = string.find local json = require("cjson.safe") local tostring = tostring local multipart = require "multipart" local CONTENT_TYPE = "Content-Type" local CONTENT_TYPE_POST = "application/x-www-form-urlencoded" local CONTENT_TYPE_JSON = "application/j...