content
stringlengths
5
1.05M
local Board = require("board/board") local constants = require("constants") local Tetrion = require("tetrion/tetrion") local Controller = require("controller/controller") local settings = require("settings/settings") love.window.setTitle("I Love Tetris") love.window.setMode(constants.WINDOW_WIDTH, constants.WINDOW_HEI...
--[[ TestEZ and Tests are referenced from Workspace because it's also used by run-in-roblox to run the tests. `run-in-roblox` will run the script from in the plugin, meaning `script` will be located somewhere else in the tree. --]] local Workspace = game:GetService("Workspace") local CopyTest = Workspace.CopyTes...
--[[ NALORAKK HOOKED EVENTS ]] function INSTANCE_ZULAMAN.NALORAKK.Nalorakk_OnSpawn(Unit) local args = getvars(Unit) if args == nil or args.NALORAKK == nil then setvars(Unit, {NALORAKK = { guardssent = {}, gauntlet = true, wavecount = 0, currentform = "TROLL", enrage = 600, canmove = false, } }) ...
if mods["omnimatter_crystal"] then add_crystal("solid-lithium", "Lithium Chloride") add_crystal("solid-calcium-sulfate", "Calcium Sulfate") add_crystal("thorium-ore", "Thorium") add_crystal("phosphorus-ore", "Phosphorus") add_crystal("solid-limestone", "Limestone") add_crystal("solid-sodium-carbonate", "Sod...
require("gclock/gameclock") -- when creating a new game, initialize data structure script.on_init( function() gclock.mod_init() end ) -- When a player is joining, create the UI for them script.on_event(defines.events.on_player_created, function(event) gclock.log("player created") local player = ga...
buffer = Procedural.TextureBuffer(128) Procedural.Noise(buffer):setType(Procedural.Noise_NOISE_PERLIN):process() tests:addTextureBuffer(buffer)
return {'tui','tuibrug','tuidraad','tuien','tuieren','tuiertouw','tuig','tuigage','tuigen','tuighuis','tuigleer','tuil','tuilen','tuiltje','tuimelaar','tuimelblad','tuimelen','tuimeling','tuimelraam','tuin','tuinaanleg','tuinaarde','tuinafval','tuinameublement','tuinanjelier','tuinarchitect','tuinarchitectuur','tuinbaa...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the FileSystemEntryCollection class works as expected. -- -- @type TestFileSystemEntryCollection -- local TestFileSystemEntryCollection = TestCase:extend()...
-- ---------------------------------------------------------------------------- -- -- cp_iso - codepages defined by ISO standard -- -- -- portions (c) Muhammad Aladdin -- charset.sourceforge.net -- ---------------------------------------------------------------------------- local iso_8859_1 = { 0xA0, 0xA1...
altar = peripheral.wrap("front") while true do os.sleep(0.5) print("Testing...") if(turtle.suckUp(1)) then oldItem = turtle.getItemDetail(1).name print("Old item: " .. oldItem) turtle.drop(1) while true do os.sleep(0.1) currentItem = altar.g...
local S = technic.getter local tube_entry = "^pipeworks_tube_connection_metallic.png" local cable_entry = "^technic_cable_connection_overlay.png" minetest.register_craft({ recipe = { {"technic:carbon_plate", "pipeworks:filter", "technic:composite_plate"}, {"basic_materials:motor", "tech...
Citizen.CreateThread( function() while true do Citizen.Wait(1) local Coords = GetEntityCoords(PlayerPedId(), true, true) if #(vec3(Coords - vector3(2692.821,-1507.797,42.689))) <= 2.5 then DrawText("Aperte ALT para ir para Guarma", 0.925, 0.96...
function OnPlayerJoined(a_Player) -- Send the MOTD to the player: ShowMOTDTo(a_Player) -- Add a message to the webadmin chat: WEBLOGINFO(a_Player:GetName() .. " has joined the game") return false end
-- Data -- Stephen Leitnick -- November 20, 2018 --[[ CONSTRUCTORS: data = Data.new(name, scope [, ordered]) [Creates or gets existing Data object for given name and scope] data = Data.ForPlayer(userId | player [, ordered]) [Creates or gets existing Data object for given player OR UserId] data...
function pnSide(pn) if pn == PLAYER_1 then return -1 end if pn == PLAYER_2 then return 1 end return 0 end function pnAlign(pn) if pn == PLAYER_1 then return 0 end if pn == PLAYER_2 then return 1 end return 0 end
assert(Config, 'Need a pre-existing Config table!') local vector = require'vector' Config.nJoint = 8 local jointNames={ "wheel1","wheel2","wheel3","wheel4", "head1", } Config.jointNames = jointNames local indexWheel=1 local nJointWheel=4 local indexHead=5 local nJointHead=2 Config.parts = { Wheel = vector.co...
--[[ Carbon for Lua #class CopyBarrier #inherits OOP.Object #description { Prevents copying of the data it points to. Forwards indexes and newindexes to target. } ]] local Carbon = (...) local Dictionary = Carbon.Collections.Dictionary local CopyBarrier = {} --[[#method 1 { class public @CopyBarrier CopyB...
---------------------------------- -- XAF Standard Class Structure -- ---------------------------------- -- [>] This is a structure which is used by all modules and classes in XAF framework. -- [>] It meets primary object-oriented programming assumptions: encapsulation and also inheritance. -- [>] It is strongly r...
-- -- lua-periphery by vsergeev -- https://github.com/vsergeev/lua-periphery -- License: MIT -- require('test') local periphery = require('periphery') local GPIO = periphery.GPIO -------------------------------------------------------------------------------- local path = nil local line_input = nil local line_output...
local PANEL = {} PANEL.char_data = {} function PANEL:Init() local fa_icon_size = math.scale(16) self:SetPos(0, 0) self:SetSize(ScrW(), ScrH()) self.button_close:safe_remove() self.stage = 1 self.stages = {} hook.run('AddCharacterCreationMenuStages', self) self:open_panel(self.stages[1]) local ...
-- ================================================================================ -- -- EMA - ( Ebony's MultiBoxing Assistant ) -- -- Current Author: Jennifer Cally (Ebony) -- -- -- -- License: All Rights Reserved 2018-2020 Jennifer Cally -- -- -- ...
_, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk' ,nil,nil;(function() _msec=(function(k,m,f)local J=m[(104-0x5a)];local G=f[k[(-#{(function()return{','}end)();(function()return#{('hMOfFF'):find("\79")}>0 and 1 or 0 end);1}+669)]][k[(-#[[edp445 what are you doing to my 3 year old son]]+(0x36b+(-#"no thanks...
local na = #ARGV local cnt = 10 local m = nil local level = redis.LOG_NOTICE local table_exists = function(t) if (1 == redis.call('sismember', '_T_N_', t)) then return true end return false end local to_int = function(n) local i = tonumber(n) if i then return math.floor(i) end...
local north = defines.direction.north local east = defines.direction.east local south = defines.direction.south local west = defines.direction.west local opposite = {[north] = south, [east] = west, [south] = north, [west] = east} local DX = {[north] = 0, [east] = 1, [south] = 0, [west] = -1} local DY = {[north] = -1, ...
local Tm1640 = { } local MOSI = 7 local SCLK = 5 local BITDELAY = 10 local TM1640_CMD1 = 0x40 -- data command local TM1640_CMD2 = 0xC0 -- address command local TM1640_CMD3 = 0x80 -- display control command local TM1640_DSP_ON = 0x08 -- display on function send_start() gpio.write(MOSI, gpio.LOW) tmr.del...
--lua 的随机的数是封装C语言random,实现的是伪随机数,如果请求速度过快,产生的uuid是相同的 --这是一个比较垃圾的uuid function get_uuid() local seed={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'} local tb={} math.randomseed(os.time()) for i=1,32 do table.insert(tb,seed[math.random(1,16)]) end local sid=table.concat(t...
require('lualine').setup{ options = {theme = 'tokyonight'}, sections = { lualine_a = {'mode'}, lualine_b = {'branch'}, lualine_c = { {'filename', file_status = true, path = 1} }, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, lualine_z = {'location'} }, ina...
-- Author: Ooccoo - (https://www.coregames.com/user/a136c0d1d9454d539c9932354198fc29) -- Date: 04/02/2021 -- Version: 0.0.1 --=========================================================================================== -- Module dependencies local MODULE = require( script:GetCustomProperty("ModuleManager") ) function C...
local font_data = { minfilter = "linear", magfilter = "linear", is_premult = true, { filename = "brushes/arrow.png", x1 = 0, y1 = 0, x2 = 64, y2 = 64, s1 = 0.88232421875, t1 = 0.9365234375, s2 = 0.91357421875, t2 = 0.9990234375, width = 64, height = 64, }, { ...
-- sqr.lua local function sqr(x) print("x is", x) return x * x end local y = sqr(10) print("y is", y) -- print("x is", x) --------------------------------- -- local and global variables --- --------------------------------- local function sum_numbers(n) local sum = 0 for i = 1, n do sum = sum ...
function new_counter() local count = 0 return function() count = count + 1 return count end end c1 = new_counter() print(c1()) print(c1()) print(c1())
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Sasha Harp. --- DateTime: 004, 9/4/21 12:49 AM --- os.loadAPI("global/locator") args = {...} if args[1] == 'free' then locator.moveHome() else print('err: not implemented!') end
local vco = require("script/vco/lib/vco") cm:add_first_tick_callback(function() vco:trigger_custom_missions("vco2_submod_cultural") end);
package("lua-format") set_kind("binary") set_homepage("https://github.com/Koihik/LuaFormatter") set_description("Code formatter for Lua") add_urls("https://github.com/Koihik/LuaFormatter.git") add_versions("1.3.5", "638ec8a7c114a0082ce60481afe8f46072e427e5") add_deps("cmake") on_install("@l...
--[[ -- Copyright(c) 2019, 武汉舜立软件 All Rights Reserved -- Created: 2019/09/12 -- -- @file gpio_my.lua -- @brief 非gpio通用操作 -- @author 李绍良 -- @version 0.1 -- @warning 没有警告 --]] local string = require("string") local unix = require("base.unix") --local l_dev_vi = require("l_dev_vi") local gpio = {} -- @brief 获取gp...
local ffi = require("ffi") local export = {} ffi.cdef[[ typedef enum { VIR_EVENT_HANDLE_READABLE = (1 << 0), VIR_EVENT_HANDLE_WRITABLE = (1 << 1), VIR_EVENT_HANDLE_ERROR = (1 << 2), VIR_EVENT_HANDLE_HANGUP = (1 << 3), } virEventHandleType; typedef void (*virEventHandleCallback)(int watch, i...
---@class math.quaternion ---@field x number ---@field y number ---@field z number ---@field w number local M = {} local vec3 = require('math.vec3') M.__index = M setmetatable(M, { __call = function(_, ...) local ret = setmetatable({ ['.type'] = 'quat', x = 0, y = 0, z = 0, w = 1 }, M) local arg = { ... } ...
local Class = require 'lib.hump.class' local Event = getClass 'wyx.event.Event' local concat = table.concat -- InputEvent -- local InputEvent = Class{name='InputEvent', inherits=Event, function(self, name, modifiers) name = name or 'Input Event' Event.construct(self, name) self._modifiers = modifiers end } ...
--[[ Copyright (c) 2013 crosslife <hustgeziyang@gmail.com> 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,...
-- fail -- exit -- boom vim.api.nvim_exec([[ " nnoremap <leader>cc :!'echo -n "%<Tab>"|pbcopy<CR>' function! CopyFilenameToClipboard() silent !clear " execute "!echo " . expand("%") . " | /home/jsw/workspace/bug-free-fiesta/send-to-pasteboard" let var = system("/home/jsw/workspace/bug-free-fiesta/send-to-pasteb...
death = class{__include = base} function death:update(dt) if love.keyboard.keys["enter"] or love.keyboard.keys["return"] then health = 3 level = 1 machine:change("play") end end function death:render() love.graphics.printf("King Is No More", 0, windowHeight/2 - 25, window...
--- RAN compatible monitoring service. -- This task implements a rmoon service. It allows to monitor device attributes and signals. -- @module ran_rmoon -- @alias device local M = {} local toribio = require 'toribio' local sched = require 'sched' local log = require 'log' local messages = require 'tasks/ran/messages'...
----------------------------------- -- Area: Batallia Downs (105) -- Mob: Ahtu ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) -- Set Ahtu's spawnpoint and respawn time (2-4 hours) UpdateNMSpawnPoint(mob:getID()); mob:setRespawnTime(math.ran...
local rk = { tickSessions = "tick|sessions", session = "sessions|"..KEYS[1] } local sessionId = KEYS[1] local apiAuth = redis.call('hget', 'user|auths', sessionId) local sessionAuth = ARGV and ARGV[1] or redis.call('hget', rk.session, 'auth') if(apiAuth and sessionAuth and apiAuth == ...
---@class ItemSocketInfo C_ItemSocketInfo = {} function C_ItemSocketInfo.CompleteSocketing() end
--ROCCIA minetest.register_alias("desert_roccia_1","desert_roccia") minetest.register_alias("roccia_1","roccia") minetest.register_node("summer:roccia_1", { description = "Roccia", drawtype = "mesh", mesh = "roccia.obj", tiles = {"roccia.png"}, paramtype = "light", paramtype2 = "facedir", sun...
return { mod_description = { en = "Create inventory items." }, NO_SKINS = { en = "No Skins" }, NO_SKINS_T = { en = "Always give the default skin to weapons." .."\nNote that the items will be of template quality in the inventory." }, FORCE_WOODEN_HAMMER = { en = "Wooden 2h Hammer" }, FORCE_WOODEN_HAM...
ID = "Script" -- rest Name = "testScene5" Start= 104 End = 118 Tasks = { { Type = "SampleTask", Name = "obj4", }, { Type = "GenericPostEffectTask", Name = "postEffect", }, { Type = "AnimationCameraTask", Name = "anim", }, }
is_open = {} for door = 1,100 do is_open[door] = false end for pass = 1,100 do for door = pass,100,pass do is_open[door] = not is_open[door] end end for i,v in next,is_open do if v then print ('Door '..i..':','open') else print ('Door '..i..':', 'close') end end
local fn = require('file-tree.api.fn') local M = {} M.get_var = fn.wrap_pcall(vim.api.nvim_get_var) M.set_var = fn.wrap_pcall(vim.api.nvim_set_var) M.get_option = fn.wrap_pcall(vim.api.nvim_get_option) M.set_option = fn.wrap_pcall(vim.api.nvim_set_option) return M
local package = {} local proxy = component.proxy local addr = computer.getBootAddress() local loaded = {} local failed = {} package.loaded = loaded package.failed = failed package.require = function(module,fs,env) checkArg(1,module,"string")--process module path local handle = assert(fs.open(module,"rb")) loc...
CLASS.name = "Air Force NCO" CLASS.desc = "You are a Non-Comissioned Officer in the United States Air Force" CLASS.faction = FACTION_AF function CLASS:onCanBe(client) return client:isAirForceRank(SCHEMA.ncoRanks) end CLASS_AF_NCO = CLASS.index
GameOverState=State() local FALLING_SPEED=100 function GameOverState:enter(params) gSounds['sadViolin']:play() self.world=params.world self.player=params.player Timer.after(1.5,function() self.canHitEnter=true end) BACKGROUND_SPEED=60 self.player.actor:getAnimation():onAnimOver(function() BACKGROUND_SPEED=...
--魔弹-灵魂契约 local m=18061801 local cm=_G["c"..m] function cm.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,6)) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TI...
local depths = {} local count = 0 for line in io.lines() do table.insert(depths, tonumber(line)) end for i = 1, #depths - 1 do local a = depths[i] local b = depths[i + 1] if b - a > 0 then count = count + 1 end end print('Number of increases', count)
-- block inputs when cursor is on output -- and move cursor to input pos local module = {}; local strLen = utf8.len; function module.new(textbox,stdio) -- update editable status local function update() local outBufferSize = strLen(stdio.withoutInput) - 1; local selectionStart = textbox.Selecti...
fx_version "bodacious" games {"gta5"} lua54 'yes' author 'szymczakovv#1937' description 'Phone Tracking by number' client_scripts { 'client.lua' } server_scripts { '@mysql-async/lib/MySQL.lua', 'server.lua' }
#!/usr/bin/lua -lesys require'pl' stringx.import() local ok, md5 = pcall(require, md5) -- Nicknames local btag = xml.tags local append = table.insert local dwalk = dir.walk local basename = path.basename if ok then md5sum = md5.sumhexa else md5sum = function(s) return s end end -- Tag generator...
local tools = {} local conf = require('modules.tools.config') tools['nvim-telescope/telescope.nvim'] = { opt = true, cmd = 'Telescope', config = conf.telescope, requires = { { 'nvim-lua/popup.nvim', opt = true }, { 'nvim-lua/plenary.nvim', opt = true } } } tools['nvim-telescope/tele...
ESX = nil PlayerData = {} npc = {} cooldown = false blips = {} Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end while ESX.GetPlayerData().job == nil do Citizen.Wait(5000) end PlayerData = ESX.GetPlayerData() ESX.Strea...
local MSB = {} function MSB.SUBGROUP_GENERATOR(name, group, order) data:extend({{ type = "item-subgroup", name = name, group = group, order = order }}) end function MSB.SUBGROUP_CLEANER(name, group, order) if data.raw["item-subgroup"][name] then data.raw["item-subgroup"][name].group = group data.raw["i...
--[[ Log message ]] local b3 = require("app.main.modules.behavior3.b3") local Action = require("app.main.modules.behavior3.core.Action") local Log = class("Log", Action) --[[ Creates an instance of Log. properties type tag log ]] function Log:ctor(config) config = config or {} config.name = config.name or ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by admin. --- DateTime: 2018/11/7 12:32 --- ---@param enum1 TestLuaEnum function TestEnum(enum1) print(enum1:ToString()) local intE= enum1:ToInt() print( intE,type(intE) ) local enum2= TestLuaEnum.IntToEnum(2) print(enum2:ToStri...
local MyClass = {} --memeber function function MyClass:Func() print('hello', self.name) end --constructor function MyClass.new(name) local inst = {name = name} setmetatable(inst, MyClass) MyClass.__index = MyClass return inst end --usage local a = MyClass.new('Tom') local b = MyClass.new('Tom111'...
--- Bimap implementation by Pierre 'catwell' Chapuis --- MIT licensed (see LICENSE.txt) local _newindex = function(l, r) return function(_, k, v) if v ~= nil then if r[v] then error( string.format( "cannot assign value %q to key %q: already assigned to key %q", tos...
iron_claw_iron_hide = class({}) LinkLuaModifier( 'iron_claw_iron_hide_modifier', 'encounters/iron_claw/iron_claw_iron_hide_modifier', LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( 'iron_claw_iron_hide_getting_tired_modifier', 'encounters/iron_claw/iron_claw_iron_hide_getting_tired_modifier', LUA_MODIFIER_MOTION_NONE ) L...
local L --------------------------- -- The Restless Cabal -- --------------------------- L= DBM:GetModLocalization(2328) L:SetMiscLocalization({ Zaxasj = "Zaxasj", Fathuul = "Fa'thuul" }) --------------------------- -- Uu'nat, Harbinger of the Void -- --------------------------- L= DBM:GetModLocalization(2332) L...
PLUGIN.name = "Advanced Citizen Outfit" PLUGIN.author = "Black Tea" PLUGIN.desc = "This plugin allows the server having good amount of customizable citizens." if SERVER then resource.AddWorkshop(320536858) end nut.util.include("sh_citizenmodels.lua") nut.util.include("cl_vgui.lua") -- requires material preload to ac...
--- foo function foo(bar, biz, "This is a long string...", -- comment baz, qux, "Lua") -- foo function function foo(a, b , c, d, e, f, g, h) -- print a message print('hello') -- done end local function foo(a, b, c, d, e, f, g, h) print('hello') end local a = function...
-- Provides Global table, setting if we're client, server or whatever, also provides defaultValue. Global = { -- Read this to know if the current script is running on the client. Always the opposite of SERVER. CLIENT = false, -- Read this to know if the current script is running on the server. Always the opposite o...
local actions = require("telescope.actions") require("telescope").setup({ defaults = { vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case", }, prompt_prefix = "❯ ", selection_caret = "❯ ", entry_prefix = " ", ini...
createObject(7497,2260.1669921875,-2011.9782714844,3860.9282226563,0,0,270,4,97) createObject(7832,2260.1762695313,-2012.0189208984,3860.9284667969,0,0,270,4,97) createObject(7469,2293.4924316406,-2112.1342773438,3854.3642578125,0,0,270,4,97) createObject(10184,2237.1469726563,-2001.4194335938,3858.8547363281,0,0,90...
local cmd_win = "./texlab" local script_win = [[ $object = Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/latex-lsp/texlab/releases/latest | ConvertFrom-JSON $object.assets | ForEach-Object { if ($_.browser_download_url.Contains("windows")) { $url = $_.browser_download_url ...
fx_version 'cerulean' game 'gta5' author 'Mr.Gamer' description 'Simple 911 Script' version 'v1.1.0' shared_script 'config.lua' server_script { '911script_s.lua', 'version_check.lua' }
naboo_medium = { lairSpawns = { { lairTemplateName = "naboo_sharupat_pack_neutral_none", spawnLimit = -1, minDifficulty = 7, maxDifficulty = 16, numberToSpawn = 0, weighting = 15, size = 25 }, { lairTemplateName = "naboo_veermok_camp_neutral_medium", spawnLimit = -1, minDifficulty ...
local app = require("app") local creds = require("creds") function setupWiFi() print("setting up WiFi") wifi.eventmon.register(wifi.eventmon.STA_CONNECTED,function(t) print("wifi connected");app.start() end) wifi.eventmon.register(wifi.eventmon.STA_DISCONNECTED, function(t) print("wifi disconnected:"..t.reason);app.s...
--[[ A square game icon ]] local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local UIBlox = InGameMenuDependencies.UIBlox local t = InGameMenuDependencies.t local InGameMenu = script.Parent.Paren...
local util = {} --https://github.com/rxi/lume/blob/master/lume.lua#L87 function util.round(x, increment) if increment then return util.round(x / increment) * increment end return x >= 0 and math.floor(x + .5) or math.ceil(x - .5) end function util.timesInString(string, substring) local _, count = string:gsub(subst...
-- The Computer Language Shootout -- http://shootout.alioth.debian.org/ -- contributed by Roberto Ierusalimschy, tuned by Mike Pall require 'benchmarks/bench' local IM = 139968 local IA = 3877 local IC = 29573 local LAST = 42 local function gen_random(max) local y = (LAST * IA + IC) % IM LAST = y return (max *...
--------------------------------------------------------------------------------------------------- ---interactive_selector.lua ---author: Karl ---date: 2021.4.26 ---desc: Defines a selector class, which may receive input and return the selected item in a finite --- or infinite set ---------------------------------...
function surface.loadFont(surf) local font = {width = surf.width, height = surf.height - 1} font.buffer = { } font.indices = {0} font.widths = { } local startc, hitc, curc = surf.buffer[((surf.height - 1) * surf.width) * 3 + 1] for i = 0, surf.width - 1 do curc = surf.buffer[((surf.height - 1) * surf.width + ...
--Bronytabs by madiik and a little by Ri1es --I fully pasted this script. Don't come lieing around here (madiik) --Fixed Sound cmd --and ba.n --Now added l.ag cmd. --Version 5.6_3 players = game:GetService("Players") player = players.LocalPlayer key = ";" mouse ...
--[[ Copyright (c) 2017 "Enzojz" from www.transportfever.net (https://www.transportfever.net/index.php/User/27218-Enzojz/) Github repository: https://github.com/Enzojz/transportfever Anyone is free to use the program below, however the auther do not guarantee: * The correctness of program * The invariance of program ...
--[[ Simple Command Line Option Parsing for Lua 5.1, 5.2, 5.3 & 5.4 Copyright (C) 2014-2018, 2021-2022 Gary V. Vaughan ]] --[[-- Parse and process command line options. In the common case, you can write the long-form help output typical of a modern-command line program, and let this module generate a custom pars...
require "compat53" return { prompt = require "sirocco.prompt", password = require "sirocco.password", confirm = require "sirocco.confirm", composite = require "sirocco.composite", list = require "sirocco.list", }
--[[ hrender thumbnail capture for HIVE --]] local fragpath = "polygon.frag" local jsonstr = "" local outputpath = "out.jpg" for i = 1, #arg do if i == 1 then fragpath = arg[i] end if i == 2 then outputpath = arg[i] end if i == 3 then local jsonfile = arg[i] local f = io.open(jsonfile, 'r') jsonstr = ...
local PANEL = {} AccessorFunc( PANEL, "color_on", "ColorOn" ) AccessorFunc( PANEL, "color_off", "ColorOff" ) AccessorFunc( PANEL, "color_back_on", "ColorBackOn" ) AccessorFunc( PANEL, "color_back_off", "ColorBackOff" ) AccessorFunc( PANEL, "text_color", "TextColor" ) AccessorFunc( PANEL, "toggle", "Toggle" ) Access...
local wibox = require("wibox") local awful = require("awful") local naughty = require("naughty") local gears = require("gears") local clickable_container = require("widget.clickable-container") local dpi = require("beautiful").xresources.apply_dpi local config_dir = gears.filesystem.get_configuration_dir() local widg...
-------------------------------------------------------------------------------- -- -- -- MiniLight Lua : minimal global illumination renderer -- -- Harrison Ainsworth / HXA7241 : 2007-2008, 2013. ...
-- debugger thoughts -- current thought to build a "game" that wraps init, update, and draw to allow a user -- to set_trace() and step through their game and pause at different locations -- menu items to add, continue _init, continue _draw, continue _update, continue _update60 function _init() t=0 heart={} heart.x=...
--Original Implementation provided by safisynai --https://gist.github.com/safisynai/8a9e3aab93833cfe3ec4c5dc4e167dec --------------------------------------------------------------------- -- Implementation by playingdaly for FIN a Satisfactory modified -- -------------------------------------------------------------...
-- nvim-mapper local M = {} -- Set a mapping local function map(virtual, buffnr, mode, keys, cmd, options, category, unique_identifier, description) if vim.g.mapper_records == nil then vim.g.mapper_records = {} end local buffer_only if buffnr == nil then buffer_only = false ...
---------------------------------------------------------------------------- -- 81-702 electric schemes -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional inf...
local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } local flutter_tools = require'flutter-tools' local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true; local dap = require'dap'; flutter_tool...
require("config.plugins") local home = os.getenv("HOME") local vimp = require("vimp") local helpers = require("config.helpers") vim.o.autoindent = true -- Copy indent from current line vim.o.tabstop = 2 -- Number of spaces that a <Tab> counts for vim.o.shiftwidth = vim.o.tabstop -- The amount of indent added vim.o.ex...
-- Path of Building -- -- Module: Main -- Main module of program. -- local ipairs = ipairs local t_insert = table.insert local t_remove = table.remove local m_ceil = math.ceil local m_floor = math.floor local m_max = math.max local m_min = math.min local m_sin = math.sin local m_cos = math.cos local m_pi = math.pi Lo...
local vocalize_dir = THEME:GetCurrentThemeDirectory().."/Other/Vocalize/" -- if no voice packs are installed, don't bother with the rest of this code if #FILEMAN:GetDirListing(vocalize_dir, true, false) < 1 then return end -- if both players have their Vocalization mod set to "None", don't bother with the rest of thi...
if not SYSPATH then return end local meta = {} meta.skills = {} function meta:learn(skillid) if skillid then self.skills[skillid] = skillid end end return meta
target("tbox") -- make as a static/shared library set_kind("$(kind)") -- export all symbols for windows/dll if is_plat("windows") and is_kind("shared") then if is_mode("release") then set_optimize("fastest") end add_rules("utils.symbols.export_all") end -- ...
--locals local broadcast_bytes_spent = 0 local max_bytes = 256 local syncs_queued --colors local color_generic = Color(255, 255, 255) local color_significant = Color(255, 128, 0) --local functions --post function set up --[[ Console = { --create a sync when a player loads in Initial = true, --call the hook mul...