content
stringlengths
5
1.05M
local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local clickable_container = require('widget.action-center.clickable-container') local dpi = require('beautiful').xresources.apply_dpi local watch = require('awful.widget.watch') local mat_list_item = require('widget.material....
--===========================================================================-- -- -- -- System.Collections.IIndexedListSorter -- -- -- ...
-- -- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved. -- require("ad.Constants") local NetworkModule = require("ad.AdNetworkModule") local iAdNetwork = Class(NetworkModule) function iAdNetwork.new(self, init) function self.getName() return "iAd" end function self.getAdNetwork(...
color(6) local JSON = require("Libraries.JSON") local function log(...) local t = table.concat({...}," ") cprint(...) print(t) flip() end log("Reading files list..") local docs = fs.getDirectoryItems("D:/DOCS/") local dnames = {} log("Reading files...") for id,name in ipairs(docs) do docs[id] = fs.read("D...
plyr = game.Players.yfc local mode = 0 dist = 25 me = Workspace.yfc.Head script.Parent = me.Parent local part = Instance.new("Part") part.Parent = me part.BrickColor = BrickColor.new("Bright blue") part.Transparency = 0.5 part.Anchored = false part.CanCollide = false part.Size = Vector3.new(1, 1, 1) part:Bre...
local Map = require "maps.map" local EHouse = Map:new() function EHouse:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function EHouse:create() Map.create(self) end function EHouse:enter() Map.enter(self) end function EHouse:exit() Map.exit(self) ...
--- ----------------------------------------------------------------------------- --- __ --- /\ \ --- \ \ \____ ___ _ __ __ --- \ \ '__`\ / __`\ /\`'__\ /'__`\ --- \ \ \L\ \/\ \L\ \\ \ \/ /\ __/ --- \ \_,__/\ \_...
-- Чертов файл должен быть шаредным, так как шаред грузится до SERVER -- А если грузиться поздно, то скрипты, зависимые от ggram, эррорят if CLIENT then return end local function loadBots(path, iDeep) iDeep = iDeep or 0 local files,dirs = file.Find(path .. "/*","LUA") for _,f in ipairs(files) do if f == "_init....
dofile( "./wago.lua" ) local JSON = (loadfile "./json.lua")() function table.show(t, name, indent) local cart -- a container local autoref -- for self references --[[ counts the number of elements in a table local function tablecount(t) local n = 0 for _, _ in pairs(t) do n = n+1 end ...
--- 模块功能:UI窗口管理 -- @module uiWin -- @author openLuat -- @license MIT -- @copyright openLuat -- @release 2018.03.25 module(...,package.seeall) --窗口管理栈 local stack = {} --当前分配的窗口ID local winid = 0 local function allocid() winid = winid + 1 return winid end local function loseFocus() if stack[#stack] and stack[#sta...
--[[ RobloxPlayerScript - This script loads the CameraScript and ControlScript modules 2018 PlayerScripts Update - AllYourBlox --]] local CameraScript = require(script:WaitForChild("CameraScript")) local ControlScript = require(script:WaitForChild("ControlScript"))
local events = require "kong.core.events" -- if message_t.collection == "oauth2_credentials" then return { [events.TYPES.ENTITY_UPDATED] = function(message_t) ngx.log(ngx.ERR, "updated") end, [events.TYPES.ENTITY_DELETED] = function(message_t) ngx.log(ngx.ERR, "deleted") end, [e...
-- Copyright (c) 2016-present, 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. function get_agen...
Speedrun = Speedrun or { } local Speedrun = Speedrun ------------------- ---- Raid List ---- ------------------- Speedrun.raidList = { [638] = { name = "AA", id = 638, timerSteps = {}, }, [636] = { name = "HRC", id = 636, timerSteps = {}, }, [639] = { ...
local packer = require("polarmutex.util.packer") local config = { profile = { enable = true, threshold = 0, -- the amount in ms that a plugins load time must be over for it to be included in the profile }, display = { open_fn = function() return require("packer.util").fl...
GM.Name = "BaseWars" GM.Author = "Q2F2, Ghosty, Trixter, Liquid, Tenrys, User4992" GM.Website = "http://hexahedron.pw/, http://hexahedronic.github.io/" GM.Credits = [[ Thanks to the following people: Q2F2/Orbitei - Main backend dev. Ghosty - Main frontend dev. Trixter - Frontend + Several entities. Liq...
local function recordExists(sid64, callback) local strQuery = string.format("SELECT id FROM litlogs_players WHERE sid64 = '%s';", sid64) LitLogs.Query(strQuery, function(data) local exists = (istable(data) and data[1] and isnumber(data[1].id)) and true or false callback(exists) end) end hook.Add("PlayerInitia...
local octopait = { _LICENSE = [[ MIT LICENSE Copyright (c) 2019 Chris / Systemlogoff 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 w...
module(..., package.seeall) --sputnik.authentication.simple ----------------------------------------------------------------------------- -- This is the reference implementation for an authentication module, -- implementing all of the core functionality that Sputnik will expect from -- a drop-in-replacement ----------...
--- -- Stub out problematic Lua functions while tests are running. --- local testing = select(1, ...) testing.onBeforeTest(function() end) testing.onAfterTest(function() end)
util.AddNetworkString("openDonMenu") util.AddNetworkString("sendRequest") util.AddNetworkString("sendNotify") local function donNotify(ply, txt) net.Start("sendNotify") net.WriteString(txt) net.Send(ply) end local cmd = "!donate" local packages = { ["Premium Lifetime"] = function(ply) query("INSERT INTO donat...
module(..., package.seeall) css = [=[ /* Copyright (c) 2007, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.2.2 */ /*reset.css*/body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 agr...
{data={name="", author="Magnus siiftun1857 Frankline"}, blocks={ {1881000, {3.478, 0}}, {1881001, {3.478, 10}}, {1881001, {3.478, -10}}, {1881002, {-6.522, 10}, -1.571}, {1881002, {-6.522, -10}, 1.571}, {1881004, {3.478, -20}, bindingId=0}, {1881004, {3.478, 20}, bindingId=0}, {1881002,...
do local function f(x) return f(x) + 1 + 1 end (nil)(f) end
local gameData = { score = 0, timeScale = 1, powerups = { { -- solid ground effect minScore = 4, --score at which is starts spawning chance = 0.2, --probability of being spawned at any given score lifespan = 5, --how long until despa...
sptbl["brown"] = { files = { module = "brown.c", header = "brown.h", example = "ex_brown.c", }, func = { create = "sp_brown_create", destroy = "sp_brown_destroy", init = "sp_brown_init", compute = "sp_brown_compute", }, params = { }, ...
--[[ 背包界面 2016_07_06 Ravioyla ]] local BagLayer = class("BagLayer", function(scene) local bagLayer = display.newLayer(cc.c4b(0, 0, 0, 125)) return bagLayer end) local ShopDetailFrame = appdf.req(appdf.CLIENT_SRC.."plaza.models.ShopDetailFrame") BagLayer.CBT_GEM = 1 BagLayer.CBT_CARD = 2 BagLayer.CBT_ITEM = 3...
if SERVER then util.AddNetworkString("Element.ShockBeam") end local ELEMENT = Element.New() function ELEMENT:Initialize() self:SetDamageType(DMG_SHOCK) self:SetWeakAgainst(ELEMENT_GRASS, ELEMENT_ROCK, ELEMENT_SHOCK) self:SetStrongAgainst(ELEMENT_AIR, ELEMENT_WATER) self:SetImmuneAgainst(0) end function ELEMENT:...
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
--- Legacy code written by AxisAngles to simulate particles with Guis -- @module ParticleEngine local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunServi...
log(DEBUG, "---- UTILITIES TEST BEGIN ----") log(DEBUG, "Testing vector3") local v = Vector3(1, 5, 3) assert(v.x == 1 and v.y == 5 and v.z == 3) log(DEBUG, "Testing vector4") v = Vector4(1, 5, 3, 6) assert(v.x == 1 and v.y == 5 and v.z == 3 and v.w == 6) log(DEBUG, "Testing tovec3") v = tovec3({ 5, 10, 15 }) asser...
----------------- ---- Globals ---- ----------------- DebuffMe = DebuffMe or {} local DebuffMe = DebuffMe DebuffMe.name = "DebuffMe" DebuffMe.version = "1.6.0" DebuffMe.flag_immunity = false DebuffMe.altarEndTime = 0 DebuffMe.CustomDataList = { name = {}, id = {}, abbreviation = {}, } --------------------------- -...
local _G = require "_G" local error = _G.error local luatype = _G.type local pairs = _G.pairs local require = _G.require local select = _G.select --[[VERBOSE]] local verbose = require "oil.verbose" local TypeCheckers = {} local module = { Exception = require "oi...
--[[ LPEGLJ lpvm.lua Virtual machine Copyright (C) 2014 Rostislav Sacek. based on LPeg v0.12 - PEG pattern matching for Lua Lua.org & PUC-Rio written by Roberto Ierusalimschy http://www.inf.puc-rio.br/~roberto/lpeg/ ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software an...
local Players = game:GetService("Players") local playerState = require(script.Parent.playerState) return (function(state,action) state = state or {} if action.player then local newPlayerState = {} for _,player in pairs(Players:GetPlayers()) do local playerKey = "player_"..player.Us...
local ComponentDataArray = {} ECS.ComponentDataArray = ComponentDataArray function ComponentDataArray.Create( iterator, length, componentName ) assert(iterator~=nil, "iterator should not be nil!") assert(length~=nil, "length should not be nil!") assert(componentName~=nil, "componentName should not be nil!") local ...
local luarpc = require("luarpc") local port1 = 0 if arg[1] then port1 = arg[1] else print("Choose a port for server 1") port1 = io.read("*n") end local IP = "0.0.0.0" -- IP default val if arg[2] then IP = arg[2] end -- interface file local idl = io.open("interface.txt", "r"):read("*a") local p1 = luarpc.cre...
local class = require 'ext.class' local table = require 'ext.table' local math = require 'ext.math' local Binary = require 'symmath.op.Binary' local symmath local mul = class(Binary) mul.precedence = 3 mul.name = '*' mul.nameForExporterTable = {} mul.nameForExporterTable.LaTeX = '' -- implicit mul, no symbol, but expo...
Locales['fr'] = { ['robbery_cancelled'] = 'le braquage vas être annulé, vous ne gagnerez rien!', ['robbery_successful'] = 'braquage réussi vous avez gagné ~g~$', ['bank_robbery'] = 'braquage banque', ['press_to_rob'] = 'appuyer sur ~INPUT_CONTEXT~ pour braquer ~b~', ['robbery_of'] = 'braquage de banque: ~r~', ['...
-- -- vgScoreboard v1.0 -- Client-side script. -- By Alberto "ryden" Alonso -- -- Coded for Valhalla Gaming MTA roleplay server. -- (Because the MTA default one creates FPS lag spikes). -- --[[ Configuration ]]-- local SCOREBOARD_WIDTH = 500 -- The scoreboard window width local SCOREBOARD_HEIGHT = ...
if (!BM2CONFIG) then return end if (!BM2CONFIG.RealTimePrice) then if timer.Exists("BM2REALTIMEAPI") then timer.Destroy("BM2REALTIMEAPI") end end function BM2CONFIG:RefreshPrice() http.Fetch("https://blockchain.info/ticker", function(body, len, headers, code) loc...
function widget:GetInfo() return { name = "AvoidanceAI", desc = "attempt to avoid getting into range of nasty things. Meant to be used with return fire state. Version 0,87", author = "dyth68,esainane", date = "2020", license = "PD", -- should be compatible with Spring lay...
--[[ @class InputImageLibrary.story ]] local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local InputImageLibrary = require("InputImageLibrary") local Maid = require("Maid") local UIPaddingUtils = require("UIPaddingUtils") local UICornerUtils = req...
package.path = package.path .. ';../protobuf/?.lua' package.cpath = package.cpath .. ';../protobuf/?.so' require 'person_pb' local person= person_pb.Person() person.id = 1000 person.name = "Alice" person.email = "Alice@example.com" local home = person.Extensions[person_pb.Phone.phones]:add() home.num = "2...
--[[ -- -- -- Copyright 2017 Muresan Vlad Mihail 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 writi...
-- Actually these regular expressions were obtained from SpamAssassin project, so they are licensed by apache license: -- -- 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 copyr...
Unit:Using("another_unit") -- will pull in another_unit and all dependencies -- overridden Init to mark this unit as both lib and bin function Unit.Init(self) self.executable = true self.static_library = true self.targetname = "simple" end -- PatchHeaders not overridden, "./include" will be added as include dir -...
SMPLRT_DIV = 0x19 --采样率分频,典型值=:0x07(125Hz) CONFIG = 0x1A -- 低通滤波频率,典型值=:0x06(5Hz) GYRO_CONFIG = 0x1B -- 陀螺仪自检及测量范围,典型值=:0x18(不自检,2000deg/s) ACCEL_CONFIG = 0x1C -- 加速计自检、测量范围及高通滤波频率,典型值=:0x01(不自检,2G,5Hz) ACCEL_XOUT_H = 0x3B -- 存储最近的X轴、Y轴、Z轴加速度感应器的...
local Spell = { } Spell.LearnTime = 90 Spell.ApplyFireDelay = 0.16 Spell.Category = HpwRewrite.CategoryNames.Special Spell.Description = [[ Creates a plenty of harmful lead things muggles call "bullets". ]] Spell.Category = { HpwRewrite.CategoryNames.Special, HpwRewrite.CategoryNames.Fight } Spell.ShouldSay = fals...
function DIALOG() NODE(0) SAY("They got balls those Twilight Guardian guys...") ANSWER("Why is that?",1) ANSWER("Who cares",2) NODE(1) SAY("Well... those terrorists are standing here in the open to recruit more people to cause even more trouble! But I tell you: You can't reach...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local item_dir = os.getenv('item_dir') local warc_file_base = os.getenv('warc_file_base') local item_type local item_id_match if item_type ~= "100discus...
local class = {} local physics = require( "physics" ) require( "classes.randomlua") local newRandNum = require( "classes.GenerateRandNum" ).generateRandNum local gameMath = require( "classes.gameMath" ) local screenSize = require( "libs.screenSize" ) local colours = require( "libs.colours" ) local myApp = requ...
-- The Games module contains the table of all currently running games. Most of its functionality is used by MayorMcMott.lua, and is not necessary -- to touch, but games.registerGame() is used to add a game instance to that table, and games.deregisterGame() is used to remove it when it ends. local games = require("Games...
local site_vars = require '_deployment.site_vars' local sugar = require '_deployment.sugar' return function (str) local header = str:match("[-][-][-][\n](.-)[\n][-][-][-]") local content = str:match("[-][-][-][\n].-[\n][-][-][-]\n(.*)") local dict = {} for key in header:gmatch("(%w+):") do local value = h...
return { { 'williamboman/nvim-lsp-installer', config = function() require("custom.plugins.lsp-installer").setup() end }, { 'voldikss/vim-floaterm' }, { 'jose-elias-alvarez/null-ls.nvim', after = "nvim-lspconfig", config = function() require("custom.plugins.null-ls").setup() ...
------------------------------------------------------------------------ --[[ CTCCriterion ]] -- -- CTC Alignment for sequence data where input and labels do not align. -- Useful for speech recognition on a phoneme/character level basis. -- Inputs assumed are in the form of seqLength x batch x inputDim. -- If batchFirs...
function Mapfill_tilegen2(Map_ID,Map_Size_X,Map_Size_Y,Map_Size_Z,args) local Tile_Size = 64 local time = os.clock() local xrand = 4 if args ~= "" then xrand = tonumber(args) end local sea = Map_Size_Z/2-1 local z = sea local heights = {[0]=z} for y=0,Map_Size_Y do --z = (Map_Size_Z-1...
local Path = require'plenary.path' local os_sep = Path.path.sep local F = require('plenary.functional') local uv = vim.loop local m = {} local get_gitignore = function(basepath) local gitignore = {} local valid = false for _, v in ipairs(basepath) do local p = Path:new(v .. os_sep .. '.gitignore') if p...
--[[ ** ** Srg Utility - Mod deobfuscation mappings ** ** Target mappings: ** - Obfuscated -> Packaged MCP (obf2pkgmcp.srg) ** - Packaged Numeric -> Packaged MCP (pkgnum2pkgmcp.srg) ** - CraftBukkit -> Packaged MCP (cb2pkgmcp.srg) ** ** Target inheritance: ** - Forge inheritance (nms.inheritmap) ** - Bukkit inhe...
-- solver for bipartite matching in simplex as LP luasimplex = require("luasimplex") rsm = require("luasimplex.rsm") M = { --number of variables nvars = 1, --number of constraints nrows = 1, --objective c = luasimplex.darray(1,1), --scale of variables xl = luasimplex.darray(1,0), xu = luasimplex.darray(1,1), ...
-- Set vim as local variable for lua diagnostics local vim = vim -- Formatter config -- Prettier function for formatter local prettier = function() return { exe = "/Users/cbasar/.nvm/versions/node/v14.15.1/bin/prettier", args = { "--stdin-filepath", "--config-precedence", "prefer-file", ...
local vim = vim local ui = { query_win = 0, result_win = 0, } local buf, win, start_win --- create_win ui.create_win = function() start_win = vim.api.nvim_get_current_win() vim.api.nvim_command('botright new') -- We open a new vertical window at the far right win = vim.api.nvim_get_current_win()...
-- Returns the group ID of the specified interior. For example, regular interiors have group 0, subway interiors have group 1. There are a few other groups too. -- @module native -- @submodule interior -- @see GET_INTERIOR_GROUP_ID -- @usage int GET_INTERIOR_GROUP_ID(int interiorID); -- @param interiorID int -- @...
local native = peripheral function getNames() local tResults = {} for n,sSide in ipairs( rs.getSides() ) do if native.isPresent( sSide ) then table.insert( tResults, sSide ) if native.getType( sSide ) == "modem" and not native.call( sSide, "isWireless" ) then loc...
local crypto_onetimeauth_sig = [[ int %s(unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned char *k) ]] local crypto_onetimeauth_verify_sig = [[ int %s(const unsigned char *h, const unsigned char *in, unsigned long long inlen, const unsigned char *k) ]] local ...
--- Dialog component class. -- This is the base class for all in-game dialogs. If you want to -- create an in-game dialog derive from this class, create an instance and -- add it to @{SceneObject}. Example: -- -- class 'MyDialog' (DialogComponent) -- -- function MyDialog:__init() -- DialogComponent.__init(...
local floor = math.floor local insert = table.insert local Cursor = required("Cursor") local DrawCommands = required("DrawCommands") local LayoutManager = required("LayoutManager") local Mouse = required("Mouse") local Stats = required("Stats") local Style = required("Style") local Window = required("Window") local T...
SCarHudHandler = {} SCarHudHandler.Huds = {} SCarHudHandler.HudsNameTrans = {} SCarHudHandler.NrOfHuds = 0 SCarHudHandler.CurrentHud = nil SCarHudHandler.isWideScreen = false SCarHudHandler.vel = 0 SCarHudHandler.mph = 0 SCarHudHandler.kmh = 0 SCarHudHandler.showGear = "" SCarHudHandler.CurGear = 0 SCarHudHandler.re...
luafft = require "luafft" local signal = {} local size = next_possible_size(2*2048+1) local frequency = 1024 local length = size / frequency --size = next_size(size) --Populates a list with random real numbers in complex format function populate(list) for i=1,size do list[i] = complex.new(math.sin(2* i/frequenc...
AddCSLuaFile() ENT.WeaponTypes.Javelin = { Name = "mechassault.weapon.javelin", Type = "Missile", Function = "FireJavelin", Cooldown = 2.5, FireRate = 0.1, Class = { "ma2_proj_javelin_lvl1", "ma2_proj_javelin_lvl2", "ma2_proj_javelin_lvl3" }, MaxLevel = 3 } function ENT:FireJavelin(tbl, level, attachmen...
--- --- plugin configuration information dao --- Copyright (c) GoGo Easy Team & Jacobs Lei --- Author: Jacobs Lei --- Date: 2018/4/6 --- Time: 下午4:05 local tonumber = tonumber local tostring = tostring local _M = {} --- --- load plugin information from storage by plugin name -- @param plugin_name -- @param store -...
-- NOTE: the serialization here is ONLY intended for communication between threads -- in a running process, NOT for saving to disk...!! local ffi = require 'ffi' local comms = {} local tostring_types = {number=true, boolean=true, ['nil']=true} local ptr_meta = { __serialize = function(self, buf) local ptr_buf ...
loadstring(game:HttpGet("https://raw.githubusercontent.com/Storm99999/Plasmaploit/main/Protected.lua"))()
require("gameData/dataInterfaceBase"); require("hall/matchHall/gameMatchHall/data/matchHallDataInterface"); require("hall/matchHall/gameMatchHall/data/matchRecordDataInterface"); --[[ 比赛信息中间层 --]] MatchIsolater = class(DataInterfaceBase); MatchIsolater.Delegate = { -- 比赛列表 onGetMatchList = "onGetM...
return game:DefineFastFlag("DontRotateCharacterWhenInputSunk", false)
local INFO = require 'Data.info' local M = {} M.CONTROL = require 'Core.Simulation.control' M.VARS = require 'Core.Simulation.vars' M['onStart'] = function(nested, params) for i = 1, #nested do local name = nested[i].name local params = nested[i].params local type = UTF8.upper(IN...
local assets = { Asset("ANIM", "anim/sch_hat.zip"), Asset("ATLAS", "images/inventoryimages/sch_hat.xml"), Asset("IMAGE", "images/inventoryimages/sch_hat.tex"), } local prefabs = { } local ARMOR_LEVEL = 999999999999999999999999999999999999999999999999999999999999999999999 ------ (-_-') -- Oh Hellyea...
--- Models persistent player data Soul = serializable.define('Soul', function() return { name = "", previous_characters = { }, current_character = nil } end) --- Attach a soul to given player (called when players join) -- Calls find_or_create and moves the player to the appropriate position function So...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Mixins\NanoShieldMixin\shared.lua -- - Dragon function NanoShieldMixin:ComputeDamageOverrideMixin(attacker, damage, damageType, time) if self.nanoShielded == true then if self.NanoShieldDamageRed...
-- TODO: TOML and git specific parsers local M = { general = require('configfiles.parsers.general').parser, git = require('configfiles.parsers.general').parser, toml = require('configfiles.parsers.general').parser, } return M
local file = ... local ok, err = require("fs").makeDir(file) if not ok and err then error(err, 0) end
local ecs = require "ecs" --main.c always calls this ecs.progress_cb(function () end) local MetaType = ecs.lookup_fullpath("flecs.meta.MetaType") --This works local strc = ecs.struct("STRC", "{int32_t x;int64_t w;}") ecs.set(ecs.Singleton, strc, {x = 2, w = 400}) local f = ecs.get(ecs.Singleton, strc) ass...
package("xtensor-blas") set_kind("library", {headeronly = true}) set_homepage("https://github.com/xtensor-stack/xtensor-blas/") set_description("BLAS extension to xtensor") set_license("BSD-3-Clause") add_urls("https://github.com/xtensor-stack/xtensor-blas/archive/refs/tags/$(version).tar.gz", ...
project "without_docking" kind "ConsoleApp" language "C++" cppdialect "C++11" warnings "off" files { "../common/sdl2*.*", "../common/opengl*.*", "*.cpp" } includedirs { ".", "../../include", "../common" } defines "_CONSOLE" using { "horus", "sdl" } distcopy(mytarget())
--[=[ Structured exceptions for Lua and TCP protocol error handling. Written by Cosmin Apreutesei. Public Domain. Structured exceptions are an enhancement over string exceptions, adding selective catching and providing a context for the failure to help with recovery or logging. They're most useful in network protoc...
-- gmod version 2021.08.23 --ulxSTC:CreatUITamplete( "SandBox_Default", "sandbox" ) surface.CreateFont( "CommandButtonDefault", { font = "Helvetica", size = 18, weight = 800 } ) surface.CreateFont( "ScoreboardDefault", { font = "Helvetica", size = 22, weight = 800 } ) surface.CreateFont( "Sc...
-- time_local, request must exist informat = { "ip", "-", "#remote_user", "time_local", "request", "status", "#body_bytes_sent", "request_time", "#http_referer", "#http_user_agent", "#http_x_forwarded_for", } delete_request_field = true time_local_format = "iso8601" -- format time_local to iso8601 -- request: ...
pico-8 cartridge // http://www.pico-8.com version 18 __lua__ --system function getrender() local render = {} render.__index = render local system_type = "render" setmetatable(render, { __index = system, -- this is what makes the inheritance work __call = function (cls, ...) ...
--[[ SF coroutine library by Mijyuoon. ]] --- Coroutine library. Allows for co-operative threading. -- @shared local coroutine_lib, _ = SF.Libraries.Register("coroutine") --- Creates and returns a coroutine thread object from the given function. -- @class function -- @param func Function to run inside the coroutine....
ITEM.name = "Gas Can" ITEM.model = "models/props_junk/gascan001a.mdl" ITEM.width = 1 ITEM.height = 2 ITEM:hook("use", function(item) item.player:EmitSound("items/battery_pickup.wav") end) ITEM.functions._use = { name = "Use", tip = "useTip", icon = "icon16/world.png", onRun = function(item) local client = ite...
require 'torch' require 'nn' require 'VanillaRNN' require 'LSTM' local utils = require 'util.utils' local LM, parent = torch.class('nn.LanguageModel', 'nn.Module') function LM:__init(kwargs) self.idx_to_token = utils.get_kwarg(kwargs, 'idx_to_token') self.token_to_idx = {} self.vocab_size = 0 for idx, tok...
--[[ misc_Orbs.lua - Author: HellSpawn ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source...
local Replication = {} local RunService = game:GetService("RunService") local Players = game:GetService("Players") local client local remoteEvent local remoteFunction local Ragdoll = require(script.Parent.Ragdoll) function Replication.OnFired(enabled: boolean, character: Model, motors: Array | nil, pointOfContact: ...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. rarevehicle6 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "podracer longtail deed", directObjectTemplate = "object/tangible/tcg/series3/vehicle_deed_podracer_longtail.iff", craftingValues = { }, customizationStringNames = {}, cust...
---@class WeeklyRewards C_WeeklyRewards = {} ---@return boolean isCurrentPeriod function C_WeeklyRewards.AreRewardsForCurrentRewardPeriod() end ---@return boolean canClaimRewards function C_WeeklyRewards.CanClaimRewards() end ---@param id number function C_WeeklyRewards.ClaimReward(id) end function C_WeeklyRewards...
local json = require("JSON") local filename = "/locker/work/201602-csrx/arch/20160429/pwg/conf-20160429-wgc.js" local f = assert(io.open(filename, "r")) local t = f:read("*all") f:close() local foo = json:decode([[ {"name" : "lol", "age" : -1.5e6, "foo" : ["bar", true, null]} ]]) print(fo...
jog.get_stamina = function(playername) if jog.players[playername] then return jog.players[playername].stamina else return nil end end jog.set_stamina = function(playername, stamina) if jog.players[playername] then jog.players[playername].stamina = stamina retu...
require "torch" require "nn" require "image" require "optim" require "model" require "DataLoader" local utils = require "utils" local cmd = torch.CmdLine() -- Options cmd:option("-checkpoint", "checkpoints/checkpoint_final.t7") cmd:option("-split", "", "train, val, or test. leaving blank runs all splits.") cmd:optio...
minetest.register_node("nc_luxgate:vessicleNull",{ description = "-NULL-", drawtype = "nodebox", pointable = false, diggable = false, tiles = {"portalhole.png^[makealpha:250,255,201"}, light_source = 4, walkable = false, pointable = true, node_box = { type = "fixed", fixed = { ...