content
stringlengths
5
1.05M
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local ITEM = Clockwork.item:New(); ITEM.name = "ItemSmoothBreensWater"; ITEM.uniqueID = "smooth_breen_s_water"; ITEM.cost = 12; ITEM.skin = 1; ITEM.model = "models/props_junk/popcan01a.mdl"; ITE...
ITEM.name = "Оленьи рёбра" ITEM.desc = "Невероятно сочное блюдо." ITEM.category = "Еда" ITEM.model = "models/items/provisions/ribs/ribs_cooked.mdl" ITEM.hunger = 45 ITEM.thirst = 0 ITEM.price = 45 ITEM.quantity = 5 ITEM.permit = "food"
local lastClick = getTickCount() addEventHandler ("onClientRender",getRootElement(), function () local cTick = getTickCount () if cTick-lastClick >= 900000 then if getElementData(getLocalPlayer(),"afk") == false then local hp = getElementHealth (getLocalPlayer()) if hp > 0 then setElemen...
require 'common' local zone_0 = {} -------------------------------------------------- -- Map Callbacks -------------------------------------------------- function zone_0.Init(zone) DEBUG.EnableDbgCoro() --Enable debugging this coroutine PrintInfo("=>> Init_zone_0") end function zone_0.Rescued(zone, name, mail...
local Dropout, Parent = torch.class('nn.Dropout', 'nn.Module') function Dropout:__init(p) Parent.__init(self) self.p = p or 0.5 self.train = true if self.p >= 1 or self.p < 0 then error('<Dropout> illegal percentage, must be 0 <= p < 1') end self.noise = torch.Tensor() self.fnoise = torch.Te...
local slope_cbox = { type = "fixed", fixed = { {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, {-0.5, -0.25, -0.25, 0.5, 0, 0.5}, {-0.5, 0, 0, 0.5, 0.25, 0.5}, {-0.5, 0.25, 0.25, 0.5, 0.5, 0.5} } } local slope_cbox_long = { type = "fixed", fixed = { {-0.5, -0.5, -1.5, 0.5, -0.375, 0.5}, -- ...
require 'table' require 'codes.species' require 'codes.mobility' require 'codes.terrain' require 'mechanics.LookupTable' if mechanics == nil then mechanics = {} end mechanics.species = LookupTable:new('mechanics/data/monster_data.csv') -- Generate lightweight, in-memory references for stateinfo/visibleinfo if (...
grenade_proton = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/grenade/grenade_proton.iff", craftingValues = { {"mindamage",923,1534,0}, {"maxdamage",2300,2900,0}, {"attackspeed",9,4.5,1}, {"woundchance",7,13,0}, {"hitpoints",1000,1000,0}, {"...
-- These tasks will fetch the list of all official Lua releases, select -- the latest release in branches 5.3, 5.2 and 5.1, and download and -- build these releases in parallel. local fs = require 'lift.fs' local task = require 'lift.task' local async = require 'lift.async' local stream = require 'lift.stream' local r...
--!strict --[[ Constructs a new delay object which wraps a value object and delays its updates ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local useDependency = require(Package.Dependencies.useDependency) local initDependency = require(Package.Dependencies.initDependency) lo...
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpotx (US, Lightbringer) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Keywor...
#!/usr/bin/env lua local ui = require "lui" local mle = nil local function sayTime() local s = os.date() mle:Append(s..'\n') return false end local function onClosing(w, data) ui.Quit() return true end local function saySomething(b,data) mle:Append("Saying something\n"); end function uiMain(void) loc...
local stringy = require "stringy" local function check_custom_id_and_username(value, consumer_t) local username = type(consumer_t.username) == "string" and stringy.strip(consumer_t.username) or "" local custom_id = type(consumer_t.custom_id) == "string" and stringy.strip(consumer_t.custom_id) or "" if custom_id...
object_mobile_hologram_bearded_jax = object_mobile_hologram_shared_bearded_jax:new { } ObjectTemplates:addTemplate(object_mobile_hologram_bearded_jax, "object/mobile/hologram/bearded_jax.iff")
MsgN('This is a demo module. I boot after initializing all addon scripts.')
local result = redis.call('HGET', "hashes.items"); return {false, result};
band_flute_droopy_outfit = { { {objectTemplate = "object/tangible/instrument/flute_droopy.iff", customizationVariables = {} } } } --animate with themepark_music_3 addOutfitGroup("band_flute_droopy_outfit", band_flute_droopy_outfit)
-- KEYS: [1]job:ready, [2]job:lock -- ARGV: [1]currentTime, [2]reliable local job=redis.call('rpop', KEYS[1]) if (job and ARGV[2] == 'true') then redis.call('zadd', KEYS[2], ARGV[1], job) end return job;
do local function common_prefix(f) local dn = f._1 local dm = f._2 if dn ~= 1 then return error("Pattern matching failure in match expression at match_heuristic.ml[2:21 ..2:28]") end if dm == 2 then return "foo" elseif dm == 3 then return "bar" else return error("Pa...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'EssentialMode 4 CarWash by TheSpartaPT.' dependency 'essentialmode' client_script 'es_carwash_client.lua' server_script 'es_carwash_server.lua'
--[[ desc: Duelist, a component of duelist. author: Musoucrow since: 2018-5-2 alter: 2018-12-14 ]]-- local _Point = require("graphics.drawunit.point") ---@class Actor.Component.Duelist ---@field moveSpeed number ---@field weight number ---@field isEnemy boolean ---@field rank int @0=normal, 1=named, 2=boss ---@fi...
--[[ @Authors: Ben Dol (BeniS) @Details: Auto rune maker event logic ]] AfkModule.RuneMake = {} RuneMake = AfkModule.RuneMake function RuneMake.Event(event) if g_game.isOnline() then local words = AfkModule.getPanel():getChildById('RuneSpellText'):getText() local player = g_game.getLocalPlayer() --...
-- Copyright 2021 SmartThings -- -- 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 ...
SILE.hyphenator.languages["sv"] = {}; SILE.hyphenator.languages["sv"].patterns = { ".a4b", ".ab5i", ".ab5ol", ".ab3r", ".ac3", ".a4d", ".a3dr", ".ad3s", ".a5g4ra", ".a5gre", ".a5kl", ".a5le", ".al4pr", ".a3lu", ".am4br", ".amp3l", ".a5mu", ".and4rar", ".a2n5es", ".ang4er", ".an5go", ".an5s", ".ap1p", ".as2k", ".a3sk...
if SERVER then AddCSLuaFile() util.AddNetworkString("LambdaMetrics") end local DEFAULT_HITS = { [HITGROUP_GENERIC] = 0, [HITGROUP_HEAD] = 0, [HITGROUP_CHEST] = 0, [HITGROUP_STOMACH] = 0, [HITGROUP_LEFTARM] = 0, [HITGROUP_RIGHTARM] = 0, [HITGROUP_LEFTLEG] = 0, [HITGROUP_RIGHTLEG...
net.Receive("nutStorageUnlock", function() local entity = net.ReadEntity() hook.Run("StorageUnlockPrompt", entity) end) net.Receive("nutStorageOpen", function() local entity = net.ReadEntity() hook.Run("StorageOpen", entity) end) function PLUGIN:exitStorage() net.Start("nutStorageExit") net.SendToServer() end
getglobal game getfield -1 ReplicatedStorage getfield -1 Connections getfield -1 StatConnections getfield -1 SetStat getfield -1 FireServer pushvalue -2 pushstring Tries pushstring 10000 pcall 3 1 0
--[[ GD_PLAYERLIST by GlitchDetector ]] local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") CONFIG = {} CONFIG.LOGGING = false CONFIG.ADD_STAFF_TITLES = true -- Allow staff to apply special titles CONFIG.ADD_VANITY_TITLES = true -- Allow vanity titles unlocked by certain criteria local blan...
local mod = get_mod("grenades") --[[projectile_info = Projectiles.grenade, impact_data = { grenade = true, targets = 1, aoe = ExplosionTemplates.grenade }, timed_data = { life_time = 3, aoe = ExplosionTemplates.grenade },]] -- Frag Grenade --[[Projectiles.grenade = { impact_type = "sphere_sweep", radius = 0...
-- Move this to spoon local obj = {} obj.__index = obj obj.name = "TextInflator" obj.version = "1.0" obj.author = "andy williams <andy@nonissue.org>" obj.homepage = "https://github.com/nonissue" obj.license = "MIT - https://opensource.org/licenses/MIT" function obj.currentDate() print(os.date("%y/%m/%d")) hs...
dofile("precore_import.lua") local _, G, P = precore.helpers() precore.init( nil, { "precore.clang-opts", "precore.c++11-core", "precore.env-common", } ) precore.import(".") precore.apply_global("hord.projects") precore.import("test") precore.action_clean("out") if _ACTION == "clean" then os.rmdir(G"${B...
-- Copy the content of this file to user.lua; -- see the [configuration](http://studio.zerobrane.com/doc-configuration.html) page for details. -- Alt-Shift-Cmd-X (Alt maps to Option, Ctrl maps to Command) -- The mapping is largely based on [Xcode Keyboard Shortcuts](http://developer.apple.com/library/mac/#documentatio...
local skynet = require "skynet.manager" local TAG = 'main' local function start_gameServer() -- local t = {} -- for i= 0x1, 0x9 do -- table.insert(t,i) -- end -- for i= 0x11, 0x19 do -- table.insert(t,i) -- end -- for i= 0x21, 0x29 do -- table.insert(t,i) -- end -- for i=1,#t do -- local r,c = ge...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Create and manage menubar icons ---@class hs.menubar local M = {} hs.menubar = M -- Removes the menubar item from the menubar and destroys it -- -- Parameters: -- * None -- -- Returns: -- * None function M:delete() end -- Returns the menuba...
data:extend({ {--Group type = "item-group", name = "re-machinery", order = "daa-a", inventory_order = "d-a-a", icon = "__RETech__/graphics/item-group/machinery.png", icon_size = 64, }, {--Craft Machines type = "item-subgroup", name = "machinery-assemblers", group = "re-machinery", order = "a", }...
local curScreen = Var "LoadingScreen"; local curStageIndex = GAMESTATE:GetCurrentStageIndex(); return Def.ActorFrame { Def.ActorFrame { Def.BitmapText { Font="_Medium"; InitCommand=function(self) self:y(-1):zoom(1):shadowlength(1) end; BeginCommand=function(self) local top = SCREENMAN:GetTopScreen()...
local StarterGui = game:GetService("StarterGui") local RaycastUtils local MouseUtils = {} function MouseUtils.getTargetAtPosition(x, y, filterType, filterDescendantsInstances) local ray = workspace.CurrentCamera:ViewportPointToRay(x, y) local params = RaycastParams.new() params.FilterType = filterType o...
-- registers eal that shows lights and camera pictogramms in the editor -- local lightPictures = { directional = "Utility.Sun", point = "Utility.Bulb", spot = "Utility.Bulb" } local hoverObject = nil local function decorate(cls) cls.onCreate(function(self) if not self.render or core:render().info.type ~=...
local Path = require('plenary.path') local pfiletype = require('plenary.filetype') local fs = {} fs.cwd_filename = function(filepath) local end_index = nil for i = #filepath, 1, -1 do local letter = filepath:sub(i, i) if letter == '/' then end_index = i end end if not end_index then retu...
local stub = require("luassert.stub") local methods = require("null-ls.methods") local test_utils = require("test.utils") describe("utils", function() local u = require("null-ls.utils") describe("echo", function() local echo before_each(function() echo = stub(vim.api, "nvim_echo"...
include('shared.lua') SWEP.PrintName = "FRAMED PISTOL" // 'Nice' Weapon name (Shown on HUD) SWEP.Slot = 1 // Slot in the weapon selection menu SWEP.SlotPos = 1 // Position in the slot // Override this in your SWEP to set the icon in the weapon selection if (file.Exists("../materials/weapons/weapon_pistol.vmt", "GAME...
local ADDON = ... local L = Wheel("LibLocale"):NewLocale(ADDON, "esMX")
require'lspconfig'.bashls.setup{} require'lspconfig'.pyright.setup{} require'lspconfig'.ccls.setup{} require 'lspconfig'.hls.setup{ root_dir = vim.loop.cwd, settings = { rootMarkers = {"./git/"} } } require'lspconfig'.flow.setup{} require'lspconfig'.tailwindcss.setup{} require'lspconfig'.jsonls.setu...
--[[ -- added by wsh @ 2018-08-09 -- 自定义测试 --]] local function Run() local scene_mgr = CS.UnityEngine.SceneManagement.SceneManager SingleGet.UIManager():DestroyAllWindow() scene_mgr.LoadScene("ProtoBuffer") end return { Run = Run }
-- item info COLOR_DARKGREY = COLOR_DARKGREY or Color(100, 100, 100, 255) local base = "pure_skin_element" DEFINE_BASECLASS(base) HUDELEMENT.Base = base if CLIENT then local padding = 10 local color_badstatus = Color(183, 54, 47) local color_goodstatus = Color(36, 115, 51) local const_defaults = { basepos = ...
local supernova = require 'supernova' -- ## Colon Smart Operator (Lua) supernova:disable() -- It will print colors and styles: print(supernova.italic.red('Hello World')) print(supernova.color('Hello World', '#D52222')) -- It will NOT print colors or styles: print(supernova.italic:red('Hello World')) print(supernova...
-- requirements local ssl_certhandler = require "resty.peter_sslers" -- alias functions local ssl_certhandler_status = ssl_certhandler.status_ssl_certs ssl_certhandler_status()
kt = __kyototycoon__ db = kt.db function echo(inmap, outmap) for k, v in pairs(inmap) do outmap[k] = v end return kt.RVSUCCESS end
local keyboard = libs.keyboard; events.detect = function() return libs.fs.exists("/Applications/Visual Studio Code.app"); end -- @help Focus VSCode application actions.open = function() os.script("tell application \"Visual Studio Code\" to reopen (activate)"); end -- @help Launch Firefox application actions....
slot0 = class("GuildEventBaseCommand", pm.SimpleCommand) slot0.ExistGuild = function (slot0) if not getProxy(GuildProxy):getRawData() then pg.TipsMgr.GetInstance():ShowTips(i18n("guild_not_exist")) return false end return true end slot0.ExistEvent = function (slot0, slot1) if not getProxy(GuildProxy):getRaw...
--[[ @ filename : loggerd.lua @ author : zhangshiqian1214@163.com @ modify : 2017-08-23 17:53 @ company : zhangshiqian1214 ]] require "skynet.manager" local skynet = require "skynet" local logpath = skynet.getenv("logpath") or "./log" local command = {} local file_list = {} local log_level_desc = { [0] ...
-- Parameter configuration for Ventilator -- -- Written by Michiel Fokke <michiel@fokke.org> -- -- MIT license, http://opensource.org/licenses/MIT -- keys (watch for collisions with keys in values.lua!) KEY=1 DESC=2 UNIT=3 DEFAULT=4 -- key, description, units, default Param{ "humSP", "Humidity setpoint", "%", 40 } Pa...
filter "system:windows" systemversion "latest" defines "PLATFORM_WINDOWS" filter "configurations:Debug" defines "DEBUG" runtime "Debug" symbols "On" filter "configurations:Release" defines "RELEASE" runtime "Release" optimize "On" filter "configurations:Dist" defines "DIST" runtime "Release" optimize "O...
--- === hs.network.configuration === --- --- This sub-module provides access to the current location set configuration settings in the system's dynamic store. local USERDATA_TAG = "hs.network.configuration" local module = require("hs.libnetworkconfiguration") -- private variables and methods -----------------...
local Flow = require "flow" local lfs = require "syscall.lfs" local log = require "log" local list = {} local function _print_list(config) for _,v in ipairs(config) do local type = lfs.attributes(v, "mode") if type == "file" then Flow.crawlFile(v) elseif type == "directory" then Flow.crawlDirectory(v) ...
Bird = Class{} -- Variavel de gravidade, quanto maior mais o passaro é puxado pra baixo local GRAVITY = 20 function Bird:init() -- Variavel de imagem do passarinho self.image = love.graphics.newImage('sprites/bird.png') -- Variaveis de tamanho self.width = self.image:getWidth() self.height = self....
---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•---•--- ---| |--- ---| Script by "Kyonax - Pilar Perfeccionista" Synchronous member |--- ---| Github: https://github.com/Kyonax • G-Mail: k...
-- Copyright 2016 The Cartographer Authors -- -- 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...
slot0 = class("GalleryFullScreenLayer", import("..base.BaseUI")) slot0.getUIName = function (slot0) return "GalleryViewUI" end slot0.init = function (slot0) slot0:findUI() slot0:initData() slot0:addListener() end slot0.didEnter = function (slot0) pg.UIMgr.GetInstance():OverlayPanel(slot0._tf) slot0:updatePicIm...
local cqueues = require "cqueues" local monotime = cqueues.monotime local cc = require "cqueues.condition" local ce = require "cqueues.errno" local rand = require "openssl.rand" local new_fifo = require "fifo" local band = require "http.bit".band local h2_error = require "http.h2_error" local h2_stream = require "http....
--[[ -- Complex number implementation as a subclass of Vector3 (with zero y coordinate). --]] local Pred = wickerrequire "lib.predicates" local MathCommon = wickerrequire "math.common" local math = math ------------------------------------------------------------------------ local C = Class(Vector3, function(self,...
local MsgLogin = class("MsgLogin") -- 构造函数; function MsgLogin:ctor( Data ) self._EventRegister = EventRegister.new(); self._EventRegister:RegisterEvent( ClientService.ConnectCallbackEvent, self, self.Connect ); self._EventRegister:RegisterEvent( ClientService.DisConnectCallbackEvent, self, self.DisConnect );...
wanderer_sticky_blood = class(AbilityBaseClass) LinkLuaModifier("modifier_wanderer_sticky_blood_passive", "abilities/wanderer/oaa_wanderer_sticky_blood.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_wanderer_sticky_blood_debuff", "abilities/wanderer/oaa_wanderer_sticky_blood.lua", LUA_MODIFIER_MOTION_NONE) ...
-- @namespace foundation.com.binary_types local ByteBuf = assert(foundation.com.ByteBuf.little) local BinSchema = assert(foundation.com.BinSchema) local NaiveDateTimeSchema0 = BinSchema:new("NaiveDateTimeSchema", { {"year", "u16"}, {"month", "u8"}, {"day", "u8"}, {"hour", "u8"}, {"minute", "u8"}, {"second"...
local oo = require("oo") local task = require("task") local log = require("log") Daemon = oo.class("task.Daemon", task.Task) function Daemon.new(self, klass) self = self or {} klass = klass or Daemon Daemon.super.new(self, klass) return self end function Daemon.start(self) end function Daemon.st...
-- Farewell Infortality. -- Version: 2.82 -- Instances: local SimpleGUI = Instance.new("ScreenGui") local OpenFrame = Instance.new("Frame") local Open = Instance.new("TextButton") local Main = Instance.new("Frame") local BeautyA = Instance.new("Frame") local Name = Instance.new("TextLabel") local BeautyB = Instance.new...
local jwt = require( 'jwt' ) local json = require( 'json' ) local http = require( 'socket.http' ) local errorResponse = require( 'external.errorResponse' ) local ngx = ngx or require( 'ngx' ) http.TIMEOUT = 5 local function buildURL( locationObj, action ) return locationObj.ip .. ( locationObj.port and ( "...
-- Copyright (c) 2019 PG1003 -- -- 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, merge, publish, distri...
local data = MOAIDataBuffer.new() data:setString( 'AAEAAAAJAIAAAwCIY21hcAkAAAAAAAC0AAAAEGdseWYAAAAAAAAAqAAAAApoZWFke/+BJQAAASgAAAA2aGhlYQEAAQAAAAEEAAAAJGhtdHgAAAAAAAAAnAAAAARsb2NhBQAAAAAAAKAAAAAGbWF4cAAAAwAAAADEAAAAIG5hbWWTTlIAAAABYAAAAEZwb3N0AAADAAAAAOQAAAAgAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAIAAAAAAABAAA...
local wibox = require("wibox") local mat_list_item = require("widget.material.list-item") return wibox.widget { wibox.widget { wibox.widget {text = "Quick settings", font = "Roboto medium 11", widget = wibox.widget.textbox}, widget = mat_list_item }, require("widget.volume.volume-slider"), require("wid...
-- see elepower_papi >> external_nodes_items.lua for explanation -- shorten table ref local epi = ele.external.ing local epr = ele.external.ref --[[ Reactor fitness check: 8x8x8 area surrounding the core must either contain.. Water source nodes Neutron Absorber (with active medium) Fluid Port (with COLD c...
--- -- Utility functions for manipulating and comparing IP addresses. -- -- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html local bin = require "bin" local bit = require "bit" local stdnse = require "stdnse" local string = require "string" local table = require "table" local type = type local ipa...
-- Entity abstract local Entity = {} function Entity:update() end function Entity:draw() end function Entity:setX(x) self.x = x end function Entity:setY(y) self.y = y end return Entity
---------------------------------------- -- -- Copyright (c) 2015, Hadriel Kaplan -- -- author: Hadriel Kaplan <hadrielk@yahoo.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not _G['pcapng_te...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by seletz. --- DateTime: 18.02.18 12:23 --- local Test = Object:extend() return Test
cfg = {} --This is where you put your DiscordAppID you can get it from here https://discord.com/developers/applications cfg.DiscordAppID = 653188008882864148 cfg.discordImageName = 'monke' cfg.hoverText = 'Monke' cfg.richPresenceText = "" ..GetPlayerServerId(PlayerId()).. " | " .. #GetActivePlayers() .. " Players" cf...
#!/usr/bin/env lua local exec = require "tek.lib.exec" local c = exec.run(function() error "child error" end) print(exec.wait()) print "parent done" --[[ luatask: bin/task/test34.lua:4: child error stack traceback: [C]: in function 'error' bin/task/test34.lua:4: in function <bin/task/test34.lua:3> ...
-- -- Created by Grcpils -- 03/14/2021 -- Github: https://github.com/grcpils/cc-gui_api -- Please do not delete this header ;) -- require("table") local Utils = require("GUI/utils") local Version = require("GUI/version") local Button = require("GUI/button") local Group = require("GUI/group") local Progres...
return [===[ <!-- Extensible HTML version 1.0 Strict DTD This is the same as HTML 4 Strict except for changes due to the differences between XML and SGML. Namespace = http://www.w3.org/1999/xhtml For further information, see: http://www.w3.org/TR/xhtml1 Copyright (c) 1998-2002 W3C (MIT, INRIA, Kei...
local arc_demo = {} --demo1 function arc_demo.demo1() local arc = lvgl.arc_create(lvgl.scr_act(), nil) lvgl.arc_set_end_angle(arc, 200) lvgl.obj_set_size(arc, 150, 150) lvgl.obj_align(arc, nil, lvgl.ALIGN_CENTER, 0, 0) end --demo2 local id local a = 270; local function arc_loader(t) ...
local uv = require 'couv' local CONCURRENT_COUNT = 1 -- TODO: Fix segfault when CONCURRENT_COUNT > 1 -- local CONCURRENT_COUNT = 10 local TOTAL_CALLS = 10000 local callsInitiated = 0 local callsCompleted = 0 local name = 'localhost' local startTime = uv.now() for i = 1, CONCURRENT_COUNT do coroutine.wrap(functio...
local solution_dir = _ACTION function setupIncludeDirs() includedirs { "ImageSignaturer", } end function setupSlotion() location(solution_dir) solution "ImageSignaturer" configurations { "Debug", "Release" } platforms { "Win64" } warnings "Extra" flo...
-- Compute prime factorization of a number, using the bigint library -- -- Based on Ray Gardner's work (public domain) from 1985, and -- Thad Smith's work in 1989. -- -- Placed in the public domain, Jorj Bauer, 2016. require "std.strict" local bigint = require "bigint" local factor = {} function factor.compute(n)...
--[[ A few functions that add an interface for color editing. ]] _libs = _libs or {} _libs.chat = true _libs.tablehelper = _libs.tablehelper or require 'tablehelper' _libs.sets = _libs.sets or require 'sets' _libs.stringhelper = _libs.stringhelper or require 'stringhelper' local json = require 'json' _libs.json = _lib...
```lua function init() self.upgradeIncrement = 0.4 self.minLevel = 1 self.maxLevel = 10 if fuExists then self.maxLevel = 7 end self.tierConfigs = { -- tier 1 { material = "tungstenbar", minTime = 3, maxTime = 4, minMaterialCost = 4, minMaterialCost = 8 }, -- tier 2 { material = "ti...
local SIZE = 3--8 local fa = {} function facreate(pID,x,y) fraktal(0,0,-90*(3.141592653589793238462643383279/180),20*(3.141592653589793238462643383279/180),SIZE,math.random(-100.000,100.000),0) local ID for j,f in ipairs(fa) do local coords = {} local a, b = f.x, f.y local sz = (3.14159265358979323...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- -- -...
include "luaClass.class.object.LObject" include "luaClass.class.object.LMetaObject"
local PATH = (...):match("(.-)[^%.^/]+$") local class = require(PATH .. "middleclass") local Panel = require(PATH .. "panel") local utility = require(PATH .. "utility") local Screen = class("PunchUiScreen") local TOOL_TIP_TIME = 6 function Screen:initialize( name, font, maxWidth, maxHeight ) self.name = name or ""...
local onedarkpro = require("onedarkpro") onedarkpro.setup({ -- Theme can be overwritten with 'onedark' or 'onelight' as a string! theme = function() if vim.o.background == "dark" then return "onedark" else return "onelight" end end, -- colors = {onedark ...
local HighlighterFactory = require("thetto.lib.highlight").HighlighterFactory local windowlib = require("thetto.lib.window") local bufferlib = require("thetto.lib.buffer") local vim = vim local M = {} local Inputter = {} Inputter.__index = Inputter M.Inputter = Inputter local FILETYPE = "thetto-input" function Inpu...
local uv = require 'couv' local SockAddr = uv.SockAddr local exports = {} exports['getaddrinfo.basic'] = function(test) coroutine.wrap(function() local name = 'localhost' local addresses = uv.getaddrinfo(name, nil, nil) test.ok(type(addresses), 'table') test.ok(#addresses > 0) for i, address in ...
return { version = "1.1", luaversion = "5.1", tiledversion = "0.16.0", orientation = "orthogonal", renderorder = "right-down", width = 24, height = 24, tilewidth = 16, tileheight = 16, nextobjectid = 16, properties = {}, tilesets = { { name = "tileset", firstgid = 1, filena...
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'router') test_run:create_cluster(REPLICASET_2, 'router') util = require('util') util.wait_master(test_run, REPLICASET_1, 'storage_1_a') util.wait_ma...
local typedefs = require "kong.db.schema.typedefs" return { name = "clustering_data_planes", primary_key = { "id" }, db_export = false, generate_admin_api = false, admin_api_name = "clustering/data-planes", -- we don't generate this, so just for reference ttl ...
ITEM.name = "Box of Ball Bearings" ITEM.model = "models/props_lab/box01a.mdl" ITEM.ammo = "buckshot" ITEM.maxQuantity = 30 ITEM.desc = "A box that contains 30 Steel Ball Bearings" ITEM.price = 80
local loadstring = loadstring or load do --- Must unpatch modified bytecode with ILOOP/JLOOP etc. local function foo() local t = {} for i=1,100 do t[i] = i end for a,b in ipairs(t) do end local m = 0 while m < 100 do m = m + 1 end end local d1 = string.dump(foo) foo() assert(string.dump(...
local styles = data.raw["gui-style"]["default"] local frame_width = 440 styles.sp_relative_stretchable_frame = { type = "frame_style", --vertically_stretchable = "off", --vertically_squashable = "on", -- maximal_height = 930, -- maximal_height is configurable and set at runtime } -- Copied from flib_titleba...
do local _ = { ['deconstructible-tile-proxy'] = { flags = {'not-on-map'}, name = 'deconstructible-tile-proxy', selection_box = {{-0.5, -0.5}, {0.5, 0.5}}, collision_box = {{-0.4, -0.4}, {0.4, 0.4}}, type = 'deconstructible-tile-proxy' } ...