content stringlengths 5 1.05M |
|---|
local ecs = require("ECSAPI")
local component = require "component"
local event = require "event"
local ser = require "serialization"
local unicode = require "unicode"
local gpu = component.gpu
-- КОНСТАНТЫ --
local bgColor = 0xffffff
local fgColor = 0x000000
local questionsFilePath = "schoolQuestions.lua"
local scr... |
main = {}
--nClock = os.clock()
--print("Elapsed time: " .. os.clock() - nClock)
--;===========================================================
--; INITIALIZE DATA
--;===========================================================
math.randomseed(os.time())
main.flags = getCommandLineFlags()
if main.flags['-config'] == ni... |
local libraryBuilder = require 'vm.library'
local library = require 'core.library'
local listMgr = require 'vm.list'
local config = require 'config'
local Sort = 0
local Watch = setmetatable({}, {__mode = 'kv'})
local TypeLevel = {
['table'] = 1.0,
['function'] = 0.9,
['string'] = 0.8,
['integer']... |
local zmq = require 'zmq'
local ztls = require 'luaztls'
local M = {}
M.client = function(a,b,c)
local context, zmq_context, data_endpoint, control_endpoint
local destroyed = false
if type(a)=='string' then
data_endpoint, control_endpoint = a,b
context = ztls.clientNew(data_endpoint, control_endpoint)
elsei... |
while true do
game.SoundService.Boing.Playing = true
wait(0.1)
game.SoundService.Bomb.Playing = true
wait(0.1)
game.SoundService.Break.Playing = true
wait(0.1)
game.SoundService.Click.Playing = true
wait(0.1)
game.SoundService.Clock.Playing = true
wait(0.1)
game.SoundService.Page.Playing = true
wait(0.1)
game.SoundServ... |
local _ = require "nvim-lsp-installer.core.functional"
local log = require "nvim-lsp-installer.log"
local fetch = require "nvim-lsp-installer.core.fetch"
local spawn = require "nvim-lsp-installer.core.spawn"
local M = {}
---@alias GitHubReleaseAsset {url: string, id: integer, name: string, browser_download_url: strin... |
ITEM.name = "AK-12"
ITEM.description= "The AK-12, also known as the AK-200, is the newest member of the AK family. While the Russian army had no interest in purchasing any of these because of their massive supply of AK-74's, the AK-12 is still a highly modular and effective weapon platform."
ITEM.model = "models/weapon... |
--- 查看订单列表
-----./wrk -t2 -c2 -d1s --script='./ujing/orders.lua' http://it-wx-test.zhinengxiyifang.cn/api/LbUsers/178/orders?filter=%7B%22include%22:%5B%7B%22relation%22:%22device%22,%22scope%22:%7B%22fields%22:%5B%22no%22,%22deviceTypeId%22,%22scanSelfClean%22%5D%7D%7D,%7B%22relation%22:%22store%22%7D,%7B%22relation%2... |
-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- nl.lua
--
-- Compiles all drivers using netlist code
-- Use make SUBTARGET=nl to build
--
---------------------------------------------------------------------------
-----... |
-- > Main GNLib frame styled
--- @title:
--- GNLib.CreateFrame: <function> Create a centered GNFrame VGUI
--- @params:
--- title: <string> Title of the frame
--- W: <number> (optional) Width
--- H: <number> (optional) Height
--- main_color: <Color> (optional) Main color
--- second_color: <Color> (optional) Secon... |
local config = require("lapis.cmd.nginx.templates.config")
local compile_config
compile_config = require("lapis.cmd.nginx").compile_config
local env = setmetatable({ }, {
__index = function(self, key)
return "<%- " .. tostring(key:lower()) .. " %>"
end
})
return compile_config(config, env, {
os_env = false,
... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.rules.aliens", function()
local Aliens = require "game.rules.aliens"
it("provides the standard API", function()
assert.not_nil(Aliens.actions)
assert.... |
data:extend(
{
{
type = "item",
name = "steel-chest",
icon = "__base__/graphics/icons/steel-chest.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "storage",
order = "a[items]-c[steel-chest]",
place_result = "steel-chest",
stack_size = 50
},
{
type = "item",
name = "fast-... |
local tohex, bor, lshift, rshift, band = bit.tohex, bit.bor, bit.lshift, bit.rshift, bit.band
local validate, api = vim.validate, vim.api
local M = {}
--- Returns a table containing the RGB values produced by applying the alpha in
--- @rgba with the background in @bg_rgb.
--- FIXME: this currently does not support tr... |
-- @group Event
-- @brief Converts display coordinates to GL coordinates.
local GLCoordsTouchProxy = ae.oo.class()
-- @brief Creates a GL coordinates touch proxy.
-- @param listener The listener of the events with GL coordinates.
-- @return The GL coordinates touch proxy.
function GLCoordsTouchProxy.new(listene... |
require "Global.consts"
require "Global.application.application"
local TimedSprite = require "Global.LOVEWrapper.sprite.TimedSprite"
local RectFrame = require "Global.LOVEWrapper.sprite.RectFrame"
local OverworldView = require "Overworld.view.OverworldView"
local RoomManager = require "Overworld.ctrl.rooms.RoomManager... |
-- @namespace foundation.com.Waves
--
-- Utility functions for generating wave shapes.
--
local Waves = {}
function Waves.sine(t)
return math.sin(math.pi * 2 * t)
end
function Waves.triangle(t)
return 2 * math.abs(t * 2 - 1) - 1
end
function Waves.saw(t)
return t * 2 - 1
end
function Waves.square(t)
if t <... |
local function eval(s, env)
local parse_result, err = load("return "..s, "ush: "..s, "t", env)
if parse_result == nil then
parse_result, err = load(s, "ush: "..s, "t", env)
end
if parse_result == nil then
if err:match("<eof>", -5) then
return "incomplete"
else
return "sy... |
local PLUGIN = PLUGIN
PLUGIN.name = "World Item Spawner"
PLUGIN.author = "Black Tea (NS 1.0), Neon (NS 1.1), ported to ix by verne"
PLUGIN.desc = "World Item Spawner."
PLUGIN.itempoints = PLUGIN.itempoints or {}
PLUGIN.spawnrate = 30
PLUGIN.spawntime = 0
PLUGIN.saferadius = 256
ix.config.Add("worldSpawnerThreshold", ... |
TILE_SIZE = 64;
Z_HEIGHT = 129;
if libBuild == nil then
libBuild = {};
libBuild.__index = libBuild;
end
function libBuild:new(o)
o = o or {};
setmetatable(o, libBuild);
return o;
end
function libBuild:Init()
libBuild = self;
end
--[[
Loop through the entire map's grid and generate a table of blocked Vectors
... |
---@type nvimd.Unit
local M = {}
M.url = 'nvim-treesitter/nvim-treesitter-textobjects'
M.description = 'Textobject based on treesitter'
M.requisite = {
'treesitter',
}
M.after = {
'treesitter',
}
M.activation = {
wanted_by = {
'treesitter',
}
}
return M
|
--
-- Author: Yiran WANG
-- Date: 2014-11-05 18:23:47
--
local Macros = require "Macros"
local FighterInBattle = require "FighterInBattle"
local Functions = require "Functions"
local Tables = require "Tables"
-- local FightBox = import("..layers.FightBox")
-- local F_HpBar = import("..ui.F_HpBar")
local Formu... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.rules.turn", function()
local turn = require "game.rules.turn"
it("has action to process turns", function()
assert.is_not_nil(turn.actions.process)
end)... |
local pln_cm = require('plenary/context_manager')
local with = pln_cm.with
local open = pln_cm.open
local gs_async = require('gitsigns/async')
local async = gs_async.async
local sync = gs_async.sync
local arun = gs_async.arun
local await = gs_async.await
local await_main = gs_async.await_main
local gs_debounce = requ... |
local g = love.graphics
function love.load()
canvas = g.newCanvas()
color_index = 1
colors = {
{255, 255, 255},
{255, 0, 0},
{0, 255, 0},
{0, 0, 255},
}
end
function love.draw()
g.setColor(255, 255, 255)
g.draw(canvas, 0, 0)
end
function love.update(dt)
g.setCanvas(canvas)
g.setColor(... |
local shell = require("shell")
local fs = require("filesystem")
package.loaded.partition = nil
local part = require("partition")
local args, options = shell.parse(...)
if not options.parttab and not options.fs then
print("format [-e] <--parttab=openupt|osdi> [drive]:")
print(" -e: Erase all the drive")
print(" -... |
--Script de bootstrap, test au moment du boot qui a été la cause de boot.
print("\n init.lua zf191021.0914 \n")
local bootreasons={
[0]="power-on",
[1]="hardware watchdog reset",
[2]="exception reset",
[3]="software watchdog reset",
[4]="software restart",
[5]="wake from deep sleep",
[6]="external reset... |
-- This is a reference file for creating events. Several features of this addon are not listed here.
--[[
The first thing to notice is the way the SandEv loads scripts. Events are located in "lua/gm13/events/tierX",
where X is an integer starting from 1, and they can even be added by external addons. Subfolder... |
local present, window_picker = pcall(require, "window-picker")
if not present then
vim.notify "Could not load window-picker"
return
end
window_picker.setup({
-- when there is only one window available to pick from, use that window
-- without prompting the user to select
autoselect_one = true,
-- whether ... |
--------------------------------------------------------------------------------
-- Log-normal statistical distribution.
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
--------------------------------------------------------------------------------
local xsys = require "xsys"
local ffi ... |
--[[
Copyright 2015 Rackspace
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 agreed to in writing, software
dis... |
function Error(text)
for _, harvester in pairs(global.harvesters) do
harvester:ErrorDump()
end
for _, refinery in pairs(global.refineries) do
refinery:ErrorDump()
end
for _, player in pairs(game.players) do
if text then
player.print(text)
end
player.print("Active harvesters/refineries: " .. #global.ha... |
-- This file contains configurations to use in the development process
local unload_packages = function ()
for name, _ in pairs(package.loaded) do
if string.find(name, [[nvim%-treesitter%-format]]) then
package.loaded[name] = nil
end
end
end
local run_action = function ()
require('nvim-treesitter-format').ru... |
-- Script pour la gestion du récepteur IR à 38kHz (LED, infrared, infrarouge)
-- permet la réception d'un code (4bits seulement) avec le protocole zIR, protocole de mon invention ;-)
-- exprès pas standard afin de ne pas être parasité par les autres sources IR !
print("\n ir_receive.lua zf180918.1906 \n")
pin_hp = ... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeMtaDefinitions
System.import(function (out)
SlipeMtaDefinitions = Slipe.MtaDefinitions
end)
System.namespace("Slipe.Client.Sounds", function (namespace)
-- <summary>
-- Represents effects that can be set on a Sound
-- </summary>
namespace.cl... |
local Q = require 'Q'
local Scalar = require 'libsclr'
local tests = {}
-- Q.sub should call Q.vvsub
tests.t1 = function()
local col_1 = Q.mk_col({100, 200, 300}, "I2")
local col_2 = Q.mk_col({50, 150, 250}, "I2")
local res = Q.sub(col_1, col_2)
assert(res)
local sum = Q.sum(res):eval():to_num()
assert(su... |
InBank = false
blips = {}
local banks
local showing, playerLoaded = false, false
RegisterNetEvent('QBCore:Client:OnPlayerLoaded')
AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
playerLoaded = true
createBlips()
if showing then
showing = false
end
end)
RegisterNetEvent('QBCore:Clien... |
ITEM.name = "Tushkano Hide"
ITEM.model ="models/lostsignalproject/items/parts/hide_burer.mdl"
ITEM.description = "A small patch of skin from a dead rodent."
ITEM.longdesc = "Getting any usable bit of skin off a tushkano is hard work, and the reward isn't the greatest, however it's better than nothing."
ITEM.width = 1
... |
--[[
Uses BeatDetectCmd to detect individual beats, then calculates the self-similarity on them.
Expects the location of BeatDetectCmd on command line, as well as a filelist.
Usage:
TestSelfSimilarity.lua [-d path/to/BeatDetectCmd] [-l path/to/filelist.txt]
If -d is not given, uses BeatDetectCmd[.exe] by default.
If ... |
isActive1 = false
isActive2 = false
isActive3 = false
zhib = 1
nerala = 1
omozra = 1
path1 = "Assets/UI/HUD/Abilities/zhib_ultimate_normal_v1.0.png"
path12 = "Assets/UI/HUD/Abilities/zhib_ultimate_active_v1.0.png"
path13 = "Assets/UI/HUD/Abilities/zhib_ultimate_cooldown_v1.0.png"
path2 = "Assets/UI/HUD/Abilities/nerala... |
fx_version "cerulean"
games { "gta5" }
ui_page "core/client/ui/html/index.html"
files {
"core/client/ui/html/index.html",
"core/client/ui/html/css/menu.css",
"core/client/ui/html/js/ui.js",
"core/client/ui/html/imgs/logo.png",
"core/client/ui/html/sounds/wrench.ogg",
"core/client/ui/html/sound... |
--[[
Flame Thrower
Throws flames. 50-unit tank.
--]]
if script == nil then return end
ModelName = "Flame Thrower"
AmmoType = "Liquid Petroleum"
MagazineCapacity = 50
MagazineCapacityAdd = 0
Player = script:FindFirstChild("Player") ~= nil and script.Player.Value or game:GetService("Players"):FindFirstChild("DarkShad... |
local CONFIG_FILE_PREFIX = "dfcaverns_"
df_trees.config = {}
local print_settingtypes = false
local function setting(stype, name, default, description)
local value
if stype == "bool" then
value = minetest.settings:get_bool(CONFIG_FILE_PREFIX..name, default)
elseif stype == "string" then
value = minetest.setti... |
version = 3 -- Lua Version. Dont touch this
ScenarioInfo = {
}
|
local queries = require "nvim-treesitter.query"
local M = {}
function M.init()
require "nvim-treesitter".define_modules {
cglobal = {
module_path = "cglobal.internal",
is_supported = function(lang)
-- /queries/$lang/cglobal.scm
return queries.get_query(lang, 'cglobal') ~= nil
e... |
function split(str, pat)
local t = {} -- NOTE: use {n = 0} in Lua-5.0
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, e, cap = str:find(fpat, last_end)
e... |
local t = require( "taptest" )
local gregdate = require( "gregdate" )
-- should work like the inverse from julian_day
greg = gregdate( 1721424 )
t( greg.year, 1 )
t( greg.month, 1 )
t( greg.day, 1 )
greg = gregdate( 1842713 )
t( greg.year, 333 )
t( greg.month, 1 )
t( greg.day, 27 )
greg = gregdate( 2299160 )
t... |
function love.conf(t)
t.window.title = "The Human Drive For Innovation In The Realm Of Science"
t.window.width = 800
t.window.height = 600
end
|
if GameAlerts == nil then
GameAlerts = class({})
end
function GameAlerts:Moonwell_Destroyed()
Notifications:TopToAll({text="#moonwell_destroyed", duration=5.0})
id = PlayerResource:GetNthPlayerIDOnTeam(DOTA_TEAM_BADGUYS, 1)
if id ~= 1 then
player = PlayerResource:GetPlayer(1)
EmitSoundOnClient("Genera... |
local void = function() end
local log = Server and Log or void
local kUnsafe = kNS2OptiConfig.FastMixin
function CreateMixin(mixin)
if mixin then
for k in pairs(mixin) do
mixin[k] = nil
end
else
mixin = {}
end
return mixin
end
function AddMixinNetworkVars(mixin, networkVars)
if mixin.networkVars then
... |
require 'plugins.hlslens.keymap'
require 'plugins.hlslens.setting'
|
function CreateXML(filename)
--имя файла указывается если нужно загрузить xml из файла
local xml={}
xml.Node=Common.StringNode.Create()
--------------------------------------------------------------------------------------------------
-- сохранение и загрузка
xml.Save=CreateMethodForOb... |
local LibTreasure = LibTreasure
LibTreasure.icons =
{
[1] = "LibTreasure/Icons/x_red.dds",
[2] = "LibTreasure/Icons/x_black.dds",
[3] = "LibTreasure/Icons/map_black.dds",
[4] = "LibTreasure/Icons/map_white.dds",
[5] = "LibTreasure/Icons/hammerstrike.dds",
[6] = "EsoUI/Art/Icons/justice_stolen_map_001.dds",
[7] ... |
local function printUsage()
print( "Usages:" )
print( "pastebin put <filename>" )
print( "pastebin get <code> <filename>" )
print( "pastebin run <code> <arguments>" )
end
if not http then
printError( "Pastebin requires http API" )
printError( "Set http_enable to true in ComputerCraft.cfg" )
return
end
local pa... |
local assert = assert
local error = error
local ipairs = ipairs
local load = load
local pairs = pairs
local require = require
local setfenv = setfenv
local setmetatable = setmetatable
local tostring = tostring
local _VERSION = _VERSION
local reason = require 'talents... |
local autoRepair = function()
if not CanMerchantRepair() then
return
end
wealth = GetMoney()
cost, able = GetRepairAllCost()
if wealth * SanieUI.selfRepairPct < cost then
print("repair too expensive")
return
end
print("Repairing all items for", SanieUI.lib.ColorMoney(cost))
RepairAllItems(... |
return function(origin, radius, angle)
return vector3(radius * math.cos(angle), 0, radius * math.sin(angle)) + origin
end |
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Ink"
ENT.Category = "ZigPrint"
ENT.Spawnable = true
ENT.Model = "models/props_junk/metal_paintcan001a.mdl"
function ENT:Initialize()
self:SetModel(self.Model)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
if SERVER ... |
local squeak = false
local timer = 3
function SCENE.atticRoom_update(dt)
attic_clock_anim:update(dt)
sounds.clock_tick:play()
sounds.clock_tick:setVolume(0.5)
sounds.clock_tick:setLooping(true)
if player.x < 10 then
if squeak == true then
sounds.floor_squeak:play()
sounds.floor_squeak:setLo... |
local _M = {}
local ROBOT_REG = 'robot'
function _M.handler(event)
local request = event.request
local headers = request.headers
-- 如果 UA 中含有 robot 关键字, 返回 403
if type(headers['user-agent']) == 'string' then
if re.find(headers['user-agent'], ROBOT_REG, 'jio') then
return {status =... |
library 'Flux::Player'
function Flux.Player:notify(player, message, arguments, color)
if !IsValid(player) then
ServerLog(t(message, arguments))
return
end
Cable.send(player, 'fl_notification', message, arguments, color)
end
function Flux.Player:broadcast(message, arguments)
ServerLog('Notification: '... |
--***********************************************************
--** THE INDIE STONE **
--** Author: Yuri **
--***********************************************************
require "ISUI/ISCollapsableWindow"
---@class StatisticChart : ISCollapsableWindow
StatisticChart = ... |
--------------------------------
-- @module Control
-- @extend Layer
-- @parent_module cc
--------------------------------
-- Tells whether the control is enabled.
-- @function [parent=#Control] setEnabled
-- @param self
-- @param #bool bEnabled
-- @return Control#Control self (return value: cc.Control)
-... |
--Settings--
enableprice = true -- true = carwash is paid, false = carwash is free
price = 100 -- you may edit this to your liking. if "enableprice = false" ignore this one
--DO-NOT-EDIT-BELLOW-THIS-LINE--
RegisterServerEvent('carwash:checkmoney')
AddEventHandler('carwash:checkmoney', function()
TriggerE... |
object_tangible_terminal_gcw_table_dearic_imp = object_tangible_terminal_shared_gcw_table_dearic_imp:new {
}
ObjectTemplates:addTemplate(object_tangible_terminal_gcw_table_dearic_imp, "object/tangible/terminal/gcw_table_dearic_imp.iff")
|
local BehaviorBase = require("app.map.behaviors.BehaviorBase")
local CollisionBehavior = class("CollisionBehavior", BehaviorBase)
function CollisionBehavior:ctor()
CollisionBehavior.super.ctor(self, "CollisionBehavior", nil, 1)
end
function CollisionBehavior:bind(object)
object.collisionLock_ = 0
object... |
local t = require 'torch'
local nn = require 'nn'
local autograd = require 'autograd'
local util = require 'cortex-core.projects.research.oneShotLSTM.util.util'
local _ = require 'moses'
local tester = torch.Tester()
local gradcheck = require 'autograd.gradcheck' {randomizeInput = true}
function getMatchingNet(opt)
... |
--[[
___ ___
/\_ \ /\_ \
__ __ __ __ __\//\ \ \//\ \ __ __ __ ___ ___
/\ \/\ \/\ \/\ \/\ \ \ \ \ \ \ \ /\ \/\ \ /'__`\ /' __` __`\
\ \ \_/ \_/ \ \ \_\ \ \_\ \_ \_\ \_\ \ \... |
map.spawncharacter = function (number, character)
position={{ x = 12*meter , y = 1080-5*meter , o = 1 } , { x = 1920-12*meter , y = 1080 - 5*meter , o = -1 } }
character.body:setLinearVelocity(0,0)
character.body:setAngularVelocity(0)
character.body:setPosition(position[number].x,position[number].y)
character.ori... |
local K, C = unpack(select(2, ...))
if C["ActionBar"].Enable ~= true then
return
end
local _G = _G
local hooksecurefunc = _G.hooksecurefunc
local PetActionBar_UpdateCooldowns = _G.PetActionBar_UpdateCooldowns
local RegisterStateDriver = _G.RegisterStateDriver
if C["ActionBar"].PetBarHide then
PetActionBarAnchor:Hi... |
local SpatialReSamplingEx, parent = torch.class('nn.SpatialReSamplingEx', 'nn.Module')
local help_desc = [[
Extended spatial resampling.
]]
function SpatialReSamplingEx:__init(...)
parent.__init(self)
-- get args
xlua.unpack_class(
self, {...}, 'nn.SpatialReSampling', help_desc,
{arg='rwid... |
dofile("common.inc");
local askText = "Censorship-free autoposting macro.\n\nAutomatically passes through messages.";
function doit()
askForWindow(askText);
while 1 do
srReadScreen();
local passicon = srFindImage("cb-pass.png");
if passicon then
safeClick(passicon[0] + 1, passicon[1] ... |
-------------------------------------------------------------------------------
-- Title: Mik's Scrolling Battle Text French Localization
-- Author: Mikord
-- French Translation by: Calthas, Devfool
-------------------------------------------------------------------------------
-- Don't do anything if the locale... |
require'lualine'.setup({
disabled_filetypes = {"aerial", "Outline"},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
-- lualine_c = {'filename'},
lualine_c = { 'lsp_progress' , {'filename', path = 1, shorting_target=80}},
-- lualine_x = {'e... |
describe("new", function()
local icu_date = require "icu-date-ffi"
local format = icu_date.formats.iso8601()
it("creates new instance", function()
local date = icu_date.new()
assert(date)
end)
it("accepts zone_id", function()
local date = icu_date.new({ zone_id = "America/Denver" })
date:set... |
---
-- @classmod Point
local middleclass = require("middleclass")
local types = require("luaplot.types")
local Point = middleclass("Point")
---
-- @table instance
-- @tfield number x
-- @tfield number y
---
-- @function new
-- @tparam number x [0, ∞)
-- @tparam number y [0, ∞)
-- @treturn Point
function Point:initi... |
stonehearth_mpe = {
}
local service_creation_order = {
{ player = 'stonehearth_mpe.services.server.player.player_service' },
}
local monkey_patches = {
}
local monkey_patches_headless = {
mpe_building_service = 'stonehearth.services.server.building.building_service',
mpe_sim = _radiant.sim,
}
local fu... |
local Node = require('gui.node')
local Hotbar = require('gui.hotbar')
local Bench = require('gui.bench')
local Chest = require('gui.chest')
local PlayerPack = require('gui.player_pack')
local BiomeTitle = require('gui.biome_title')
local Hearts = require('gui.hearts')
local Equipment = require('gui.equipment')
local mi... |
--|> SIMPLEX | Easy-to-use interaction system <|--
-- ShutoExpressway
-- An easy RemoteEvent and RemoteFunction manager.
-- This module has been modified for use with Simplex: The easy-to-use interaction system.
local NetworkUtil = {}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local networkCache... |
-- --- --- --
-- Require --
-- --- --- --
local context = require('src/context')
local i18nModule = require('src/ui/i18n')
-- --- --- --
-- Header --
-- --- --- --
-- Fields
local
checkboxRandom, -- form checkbox about the randomization or not of the selected files into the folder
i18n,
inputStopAt, -- form input t... |
-------------------------------------------------
--
-- CONFIG FILE
--
-------------------------------------------------
-- Training parameters
n_epochs = 50
n_updates_per_epoch = 100
batch_size = 128
disc_learning_rate = 1e-4
gen_learning_rate = 1e-3
rng_seed = 1
-- The coefficient with which the discriminator shou... |
-- Radiant Tower Names
local radiantTowers =
{
TopTier4 = 'dota_goodguys_tower4_top',
TopTier3 = 'dota_goodguys_tower3_top',
TopTier2 = 'dota_goodguys_tower2_top',
TopTier1 = 'dota_goodguys_tower1_top',
MidTier4 = 'dota_goodguys_tower4_mid',
MidTier3 = 'dota_goodguys_tower3_mid',
MidTier2... |
local assets =
{
Asset("ANIM", "anim/sch_shot_projectile_fx.zip"),
}
local function PlayImpactAnim(proxy)
local inst = CreateEntity()
inst:AddTag("FX")
inst.entity:SetCanSleep(false)
inst.persists = false
inst.entity:AddTransform()
inst.entity:AddAnimState()
inst.Trans... |
a = dbgscript.readPtr(0x0000050599be230)
print(string.format('%x', a)) |
local config = require "MHR_Overlay.Misc.config"
local keyboard = {};
local singletons;
local customization_menu;
local player;
local small_monster;
local large_monster;
local damage_meter_UI;
local time;
local game_keyboard_type_def = sdk.find_type_definition("snow.GameKeyboard");
local hard_keyboard_field = game_key... |
game.Workspace.Events.Shop.ChangeActiveGun:FireServer("Harpoon") |
local proto = require 'share.protocol'
local messager = {}
function messager.text(text)
proto.send('text', ('%q'):format(text))
end
function messager.raw(text)
proto.send('raw', ('%q'):format(text))
end
function messager.title(title)
proto.send('title', ('%q'):format(title))
end
function messag... |
SERVER_OWNER_STEAM_ID_64 = "76561198154401761" -- HAVE ALL PERMISSION
DEFAULT_KICK_MESSAGE = "Your have ben kick frome the server !"
DEFAULT_BAN_MESSAGE = "Your have ben ban frome the server !"
DEFAULT_WHITE_LITS_KICK_MESSAGE = "Your are not in the white list of the server !"
WHITE_LIST = true -- [true] = only playe... |
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un... |
--[[
File-Author: Pyrrhus
File-Hash: ef56b6a28a4a8da56f9a0f5cd0348e025bed36ca
File-Date: 2017-10-05T17:37:59Z
]]
local lib,name,path = ...
------------------------------------------------------ default lib ------------------------------------------------------
local me = {
children = {
{"table", ".table"},
{"call... |
local JuTypes = {}
function JuTypes.isComponent(obj)
if type(obj) ~= "table" then return false end
return obj.__isComponent ~= nil
end
function JuTypes.isEntity(obj)
if type(obj) ~= "table" then return false end
return obj.__isEntity ~= nil
end
function JuTypes.isSystem(obj)
if type(obj) ~= "table" then return ... |
ccs = ccs or {}
---SkewFrame object
---@class SkewFrame : Frame
local SkewFrame = {}
ccs.SkewFrame = SkewFrame
--------------------------------
--
---@return float
function SkewFrame:getSkewY() end
--------------------------------
--
---@param skewx float
---@return SkewFrame
function SkewFrame:setSkewX(skewx) end
-... |
local Package = script
local Rolimons = { }
function Rolimons.Get(Class: string) => table
local FromPackage = Package:FindFirstChild(Class)
if FromPackage then
return require(FromPackage)
end
end
return setmetatable(Rolimons, {
__index = function(self, Index)
return Rolimons.Get(Index)
end;
__call = func... |
-- Clientside code
local function updatePhase()
WarTimer.Phase = net.ReadUInt(8)
WarTimer.PhaseEnd = net.ReadUInt(32)
local msg = WarTimer.Config.Phases[WarTimer.Phase].message
if net.ReadBool() and msg then chat.AddText(WarTimer.Config.ChatMsgColor, msg) end
end
net.Receive("WarTimer", updatePhase)
local functi... |
local PLUGIN = PLUGIN;
PLUGIN.onPlayerSpawnLoaded = false;
function PLUGIN:PlayerLoadout(client)
client:Give("nut_keys")
end
function PLUGIN:OnCharChanged(client)
for k, v in pairs(ents.GetAll()) do
if (v:GetNetVar("owner") == client) then
v:SetNetVar("title", PLUGIN:GetPluginLanguage("doors_can_buy"));
v:S... |
local capabilities = require 'st.capabilities'
local Driver = require 'st.driver'
local log = require 'log'
local discovery = require 'disco'
local server = require 'server'
local utils = require 'st.utils'
local currentUrlID = "honestadmin11679.currentUrl"
local currentUrl = capabilities[currentUrlID]
-- These hand... |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
patternA = {
{"^(version *= *)'[^']*'", "%1'" .. myVersion .. "'" },
{"^(release *= *)'[^']*'", "%1'" .. myFullVersion .. "'" },
}
|
local shared_actions = {
{
name = "input",
label = "Input",
submenu = true,
kind = "action",
description = "Mouse/Keyboard/Custom client inputs",
eval = function()
return not active_display().selected.menu_input_disable;
end,
handler = system_load("menus/target/input.lua")()
},
{
name = "state",... |
local gamestate = require("gamestate")
local fonts = require("fonts")
local settings = require("settings")
local highscorescreen = {}
highscorescreen.new = function(self,name)
local _playstate = gamestate:new(name or "mainmenu")
setmetatable(_playstate,{__index = self})
return _playstate
end
highscorescreen.initi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.