content
stringlengths
5
1.05M
return { native_macos_fullscreen_mode = false, font_size = 16, keys = { { key = "f", mods = "CTRL|SUPER", action = "ToggleFullScreen" }, } }
ReconnectDialog = { OnInit = function() ReconnectDialog_beh:SubscribeForMessages(StrId("BUTTON_CLICKED")) ReconnectDialog_beh:SubscribeForMessages(StrId("NET_CONNECTED")) end, OnMessage = function(msg) if(msg:HasAction(StrId("BUTTON_CLICKED"))) then if(msg.contextNode.tag == "disconnec...
local isInventoryVisible = false local screenSize = Vector2(guiGetScreenSize()) local IconTextures = {} local inventoryHeight = 800 local borderSpace = 150 local listSpace = 2 local listItemWidth = 215 local listItemHeight = 60 local slotSpace = 15 local weaponSlotSize = (listItemHeight + slotSpace) * 3 - slotSpace l...
if CONSTANTS == nil then CONSTANTS = { MIN_PLAYERS = 2, COMEDY_SECONDS = 60, WAITING_FOR_NEXT_ROUND_SECONDS = 10, NOISE_DELAY_SECOND = 6, BOO_DISQUALIFICATION_RATIO = 0.8, MIN_ROUND_TIME = 10, SOUND_CHEERS = { "vo/npc/Barney/ba_laugh01.wav", ...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('Analyst') then return end function AS:Analyst() AS:SkinFrame(EconomyFrame) EconomyFrame:SetHeight(450) EconomyFrame:SetWidth(364) EconomyFrameTitleFrame:ClearAllPoints() EconomyFrameTitleFrame:SetPoint('TOP', EconomyFrame, 'TOP', 0, -5) AS:SkinCloseButton(Econ...
--[[ TTT -> Boot Entry (Shared) by Tassilo (https://github.com/TASSIA710) --]] -- Derive gamemode from base DeriveGamemode("base") -- Define base variable TTT = {} -- Define version TTT.VerData = { Major = 0, Minor = 0, Patch = 1, Build = 1, Head = "b1ae5c712b84483ccff46662d42c16795210558a", Branch = ...
local cache = {} local log = require('nvim-magic.log') local pathlib = require('plenary.path') local DIR = pathlib.new(vim.fn.stdpath('cache')):joinpath('nvim-magic-openai') DIR:mkdir({ parents = true, exist_ok = true }) local CacheMethods = {} function CacheMethods:save(filename, contents) local path = tostring(s...
local Core, Constants = unpack(select(2, ...)) local AceHook = Core.Libs.AceHook local Colors = Constants.COLORS local MOUSE_ENTER = Constants.EVENTS.MOUSE_ENTER local MOUSE_LEAVE = Constants.EVENTS.MOUSE_LEAVE local UPDATE_CONFIG = Constants.EVENTS.UPDATE_CONFIG -- luacheck: push ignore 113 local Mixin = Mixin loc...
local uv = vim.loop local DIR_SEP = package.config:sub(1, 1) local os_name = uv.os_uname().sysname local is_windows = os_name == 'Windows' or os_name == 'Windows_NT' local path_sep = is_windows and ";" or ":" local exe = is_windows and ".exe" or "" local function is_installed(bin) local env_path = os.getenv('PATH') ...
--!nolint UnknownGlobal --[[ SERVER PLUGINS' NAMES MUST START WITH "Server:" OR "Server-" CLIENT PLUGINS' NAMES MUST START WITH "Client:" OR "Client-" Plugins have full access to the server/client tables and most variables. You can use the MakePluginEvent to use the script instead of setting up an event. PlayerC...
Point = Object:extend("Point") function Point.prototype:constructor(x, y) self.x = x or 0 self.y = y or 0 end function Point.prototype:set(x, y) self.x = x or self.x self.y = y or self.y end function Point.prototype:copy(point) self.x = point.x self.y = point.y end function Point.prototype:get() retur...
-- © 2008 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. local ParseWord = wg.parseword local bitand = bit32.band local bitor = bit32.bor local bitxor = bit32.bxor local bit = bit32.btest local time = wg.time local compress = w...
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE. package.path = table.concat({ _USERHOME..'/?.lua', _USERHOME..'/modules/?.lua', _USERHOME..'/modules/?/init.lua', _HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua', package.path }, ';'); local so = not WIN32 and '/?.so' or '/?.dll' pack...
-- Tests for quickfix window's title local helpers = require('test.functional.helpers')(after_each) local insert, source = helpers.insert, helpers.source local clear, expect = helpers.clear, helpers.expect describe('qf_title', function() setup(clear) it('is working', function() insert([[ Results of tes...
local vehicleList = { vehicle_1 = 1, vehicle_2 = 2, vehicle_3 = 3, vehicle_4 = 4, vehicle_5 = 5, vehicle_6 = 6, vehicle_7 = 7, vehicle_8 = 8, vehicle_9 = 9, vehicle_10 = 10, vehicle_11 = 11, vehicle_12 = 12, vehicle_13 = 13, vehicle_14 = 14, vehicle_15 = 15, ...
function lang_switch_keys(lang) local in_lang = {} local langs = { [1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Oluştur", sub_menu = "Satır/Oluştur"}, [2] = {lang_key = "en", lang_name = "English", script_name = "Create Lines", sub_menu = "Lines/Create"} } local lang_list = {} ...
local file = require('pl.file') local path = require('pl.path') local stringx = require('pl.stringx') local json = require('dkjson') local stats = require('haproxy.stats') local SPEC_DIR = path.abspath(path.dirname(stringx.lstrip(debug.getinfo(1, 'S').source, '@'))) local function fixture(name) return f...
return { assignment_late = { [72] = {X = 4, Y = 80, Sheet = 3926313458}, [36] = {X = 404, Y = 524, Sheet = 3926307971}, [96] = {X = 204, Y = 404, Sheet = 3926327588}, [48] = {X = 576, Y = 576, Sheet = 3926311105} }, trending_flat = { [72] = {X = 688, Y = 536, Sheet = 3926316119}, [36] = {X = 84, Y = 84, ...
local type = type local unpack = unpack local assert = assert local format = string.format local string_byte = string.byte local string_sub = string.sub local string_match = string.match local string_split = string.split local io_LoadString = io.LoadString local next = next local pairs = pairs local ipairs = ipairs lo...
-- This example script demonstrates how to change scenes. Voice = Character { dialogName="Mysterious Voice", textColor="#600" } -- Uncomment one (and only one) of these to see the different results -- of changing scenes at the end of the OUTSIDE_DOOR scene. Player = Character { dialogName="Eric" } -- Player = Charact...
WASocialProxy = {} function WASocialProxy.share(platform,shareContent,shareWithApi,extInfo,callback) local param = {platform = platform ,shareContent = shareContent , shareWithApi = shareWithApi ,extInfo = extInfo ,callback = callback} luaoc.callStaticMethod("WALuaSocialProxy","share",param) end function WASocialP...
RANDOM:seed(17) --for getting the same piece always we seed it with fixed number -------------------------first the SynthDefs------------------------------ -- we will getting requiring a lua file with synthdefs in this script folder -- and call sync for waiting to async complete path = require"sc.path" path.require_her...
local L = BigWigs:NewBossLocale("Atal'Dazar Trash", "ptBR") if not L then return end if L then L.skyscreamer = "Gritacéu Devorante" L.tlonja = "T'lonja" L.shieldbearer = "Escudeiro de Zul" L.witchdoctor = "Mandingueira Zanchuli" L.kisho = "Dinomante Kish'o" L.priestess = "Sacerdotisa Dourada" L.stalker = "Esprei...
object_mobile_iris_sinclair = object_mobile_shared_iris_sinclair:new { } ObjectTemplates:addTemplate(object_mobile_iris_sinclair, "object/mobile/iris_sinclair.iff")
local Tile = require 'src.world.tiles.Tile' local Grass = class(..., Tile) function Grass:initialize(cell) Tile.initialize(self,cell,1,1) end return Grass
require("/quests/scripts/portraits.lua") require("/quests/scripts/questutil.lua") require("/scripts/util.lua") function init() setPortraits() script.setUpdateDelta(100) quest.setObjectiveList({{"^green;Abandon this quest^reset; to set a ^orange; bookmark here^reset;.", false}}) quest.setText("^green;Abando...
ESX = nil local wzial = false local delete = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(10) end while ESX.GetPlayerData().job == nil do Citizen.Wait(100) end ESX.PlayerData = ESX.GetPlayerData() Blips() end) Reg...
cflags{ '-Wall', '-Wextra', '-Wno-clobbered', '-Wno-stringop-overflow', '-D NOZOPFLI', '-isystem $builddir/pkg/zlib/include', } exe('pigz', [[ pigz.c yarn.c try.c $builddir/pkg/zlib/libz.a ]], {'pkg/zlib/headers'}) file('bin/pigz', '755', '$outdir/pigz') man{'pigz.1'} for _, alias in ipairs{'gzip', 'gunzip', 'zca...
--[[-- h1. four.Renderer Renders renderables object with a camera. --]]-- -- Module definition local lub = require 'lub' local four = require 'four' local ffi = require 'ffi' local lens = require 'lens' local lib = lub.class 'four.Renderer' local V2 = four.V2 local V4 = four.V4 local Buffer = four.Buffer loca...
---@diagnostic disable: undefined-global -- GENERATE BY _ItemSetGen.js select(2,...).ItemSetMake()S(-17)B'2/4'I(10,35111)I(1,35112)I(7,35113)I(3,35114)I(5,35115)S(-16)B'2/4'I(5,35077)I(10,35078)I(1,35079)I(7,35080)I(3,35081)S(-15)B'2/4'I(5,35088)I(10,35089)I(1,35090)I(7,35091)I(3,35092)S(-14)B'2/4'I(10,35032)I(1,35033)...
--------------------------------------------------------------------------------------- -- @function 增强的table模块 -- @author ArisHu -- @Note --------------------------------------------------------------------------------------- local base = _G local table = require("table") local string = require("string...
local layerBase = require("games/common2/module/layerBase"); --[[ 房间保险任务奖励 ]] local RoomTaskReward = class(layerBase); RoomTaskReward.s_cmds = { }; RoomTaskReward.ctor = function(self) self:removeStateBroadcast(); end RoomTaskReward.dtor = function(self) end RoomTaskReward.parseViewConfig = ...
--!A cross-platform build utility based on Lua -- -- 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...
-------------------------------- -- NO JUMPING -------------------------------- loadfile(GetDataPath() .. "Scripts/Locale.lua")() local specialGear = nil function onGameInit() Goals = loc("Jumping is disabled") end function onNewTurn() SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) end function onGea...
local _unpack = unpack local _stringformat = string.format local _tostring = tostring local _tonumber = tonumber --VALIDATION if(not KEYS[1]) then return redis.error_reply('NO ROOM NAME KEY') end if(not ARGV[1]) then return redis.error_reply('NO NODE TIME KEY') end if(ARGV[2] and not cjson.decode(ARGV[2])) then return...
local BaseCommand = class("BaseCommand") function BaseCommand:ctor() end function BaseCommand:Execute(notification) end return BaseCommand
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. local async = require 'lualine.utils.async' local utils = require 'lualine.utils.utils' local highlight = require 'lualine.highlight' local Diff = require('lualine.component'):new() -- Vars -- variable to store git diff stats Diff.g...
function parse._pre_fold(str) local str = str local special_chars = charset.get_data().special_chars local function replace(name, dst) local src = special_chars[name] if src then local pattern = string.gsub(src, "[][()^$%%]", "%%%1") str = string.gsub(str, pattern, dst) end end replace...
-- This file just contains the array of unit groups that can be spawned via the radio menu. -- The idea is just to keep the clutter down in the radio menu file, which will contain all of the actual code and logic. -- You must create groups matching the names found below. Ideally the description field should accurat...
--[[ 处理房间公共的逻辑、升降场、破产判断等 ]] RoomLogic = class(); RoomLogic.getInstance = function() if not RoomLogic.s_instance then RoomLogic.s_instance = new(RoomLogic); end return RoomLogic.s_instance; end RoomLogic.releaseInstance = function() delete(RoomLogic.s_instance); RoomLogic.s_instance = nil; e...
local AnimationPlayer = require("lib/AnimationPlayer") local Globals = require("game/GameConstants") local Resources = require("game/Resources") local Player = {ANGEL = 1, DEVIL = 2} local FLASH_DURATION = 0.2 function Player:new(type) newPlayer = {} newPlayer.type = type self.__index = self self.fla...
vim.opt_local.textwidth = 85
----------------------------------- -- Area: Cape Teriggan -- NM: Killer Jonny ----------------------------------- require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:setMobMod(tpz.mobMod.ADD_EFFECT, 1) mob:setMod(tpz.mod.DOUBLE_ATTACK, 100) end function o...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") async(function() vRP.loadScript("vrp_carwash", "server") end)
local _, ctp = ... --- KNOWN ISSUES: -- - When ignoring things at the very bottom, it will shift around weird local CreateFrame = CreateFrame local GetMoney = GetMoney local PlaySound = PlaySound local UnitClass = UnitClass local UnitName = UnitName local UnitLevel = UnitLevel local BuyTrainerService = BuyTrainerServi...
--Création de la table qui va contenir toute les infos de chaque joueurs present sur le serveur PlayerData = {} DialogNPC = {} GameTime = 12.0 PLAYER_STATE_FREE = 1 PLAYER_STATE_IN_DIALOG = 2
while not _G["DataBase"] do Task.Wait() end local database = _G["DataBase"] function OnResourceChanged(player, resourceName, resourceValue) if resourceName == "Score Total" or resourceValue == 0 then return end --print("Resource Changed " .. resourceName) player:AddResource("Score Total", resourceValue)...
local args, ops = require("shell").parse(...) if ops.s then while true do local line = io.stdin:read("l") if not line or #line == 0 then break end print(line) end else for k, v in pairs(args) do io.stdout:write(v) if k < #args then io.stdout:write(" ") end end end if not ops.n and not ops.s then pr...
description = [[ Determines which methods are supported by the RTSP (real time streaming protocol) server. ]] --- -- @usage -- nmap -p 554 --script rtsp-methods <ip> -- -- @output -- PORT STATE SERVICE -- 554/tcp open rtsp -- | rtsp-methods: -- |_ DESCRIBE, SETUP, PLAY, TEARDOWN, OPTIONS -- -- @args rtsp-methods...
local _, nMainbar = ... local cfg = nMainbar.Config if (not cfg.MainMenuBar.skinButton) then return end local _G, pairs, unpack = _G, pairs, unpack local path = 'Interface\\AddOns\\nMainbar\\media\\' local function IsSpecificButton(self, name) local sbut = self:GetName():match(name) if (sbut) then ...
Registry = {} function Registry:name_to_id(type, name) if not self._NAME_TO_IDS[type] then self._NAME_TO_IDS[type] = {} end return self._NAME_TO_IDS[type][name] or name end function Registry:id_to_name(type, id) if not self._ID_TO_NAMES[type] then self._ID_TO_NAMES[type] = {} end ...
data:extend ( { { type = "item-subgroup", name = "RW_bridges", group = "logistics", order = "i", } } )
vim.api.nvim_set_var( "knobs_levels", { fugitive = 3, eunuch = 5 } ) vim.api.nvim_set_var( "knobs_layers", { foo = vim.env.VIM_KNOBS_FOO == "1" and 1 or 0 } ) vim.api.nvim_set_var( "knobs_layers_map", { foo = { compactcmd = 1 } } ) ...
-- -- ConfirmSetAsPlayedAllView.lua -- require "Common" if language() == "fr" then confirmSetAsPlayedAllStr="Mettre comme jouées toutes les séquences?\n\nCette opération ne peut être défaite." cancelStr = "Annuler" else confirmSetAsPlayedAllStr="Set as played all the sequences?\n\nThis operation cannot be undone."...
-- thanks topbar plus! local icon = require(game.ReplicatedStorage:WaitForChild("modules").vendor.Icon) local iconFolder = game.ReplicatedStorage:WaitForChild("modules").vendor.Icon local IconController = require(iconFolder.IconController) local Themes = require(iconFolder.Themes) local showStatPointAlerts = game.Repli...
mhf = require("schema_processor") unistd = require("posix.unistd"); local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:simple_choice_struct xmlns:ns1="http://test_example.com"> <author>asdf</author> <title>adfas</title> <genre>as</genre> </ns1:simple_choice_st...
--[[ -- -- This is a port of a generic rules engine framework -- @see https://github.com/bobthecow/Ruler -- --]] Ruler = {} Ruler.Rule = {} Ruler.Rule.__index = Ruler.Rule --[[ -- @param table condition -- @return Rule --]] function Ruler.Rule.New(condition) local self = setmetatable({['condition'] = condition}, ...
return Def.Quad{ InitCommand=function(self) self:Center():FullScreen() end; };
-- gaming -- https://github.com/ukgamer/gmod-arcademachines -- Made by Jule if not FONT:Exists( "Snake32" ) then surface.CreateFont( "Snake32", { font = "Trebuchet MS", size = 32, weight = 500, antialias = 1, additive = 1 } ) end if not FONT:Exists( "SnakeTitle" ) then...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString("XYZArmoryOpenUI") util.AddNetworkString("XYZArmoryCollectWeapon") -- Used to limit the amount of weapons a user can have per life XYZWeaponCap = {} function ENT:Initialize() self:SetModel("models/humans/nypd1940/male...
co = coroutine.create(function() for i = 1, 10 do print("co", i) coroutine.yield() end end) print(coroutine.status(co)) coroutine.resume(co) print(coroutine.status(co)) coroutine.resume(co) coroutine.resume(co) co = coroutine.create(function(a, b, c) print("co", a, b, c + 2) coroutine...
-------------------------------- -- @module AnimationState -- @extend BaseObject -- @parent_module db -------------------------------- -- -- @function [parent=#AnimationState] setCurrentTime -- @param self -- @param #float value -- @return AnimationState#AnimationState self (return value: db.AnimationState) ...
--[[ plugindef = { regex = "^/foo/bar/.*", description = "My Awesome Plugin", ^ Can contain links load_page = func(entry, player), ^ Must return text, allow_save save_page = func(entry, player), ^ Must return bool } ]] local plugin_defs = { } function wikilib.register_plugin(def) plugin_defs[#plugin_defs + 1...
--- Repeat the last sort mode. local A, L = unpack(select(2, ...)) local P = A.sortModes local M = P:NewModule("last", "AceEvent-3.0") P.last = M local format = format function M:OnEnable() A.sortModes:Register({ key = "last", name = L["sorter.mode.last"], aliases = {"again", "repeat", "^", "\"", "previ...
local oxd = require "gluu.oxdweb" local kong_auth_pep_common = require "gluu.kong-common" -- @return introspect_response, status, err -- upon success returns only introspect_response, -- otherwise return nil, status, err local function introspect_token(self, conf, token) local ptoken = kong_auth_pep_common.get_pro...
require('lovestates') function build_validate_state() state = lovestate() local msg = "" local acc = 0 state.init = function() love.graphics.setBackgroundColor( 50, 50, 50 ) end state.draw = function() love.graphics.setColor(255, 255, 255, 255) love.graphics.print(msg, 10, 10) end state.update = fu...
libtommath = { source = path.join(dependencies.basePath, "libtommath"), } function libtommath.import() links { "libtommath" } libtommath.includes() end function libtommath.includes() includedirs { libtommath.source } defines { "LTM_DESC", "__STDC_IEC_559__", "MP_NO_DEV_URANDOM",...
vim.g.rooter_patterns = { ".git" } vim.g.rooter_change_directory_for_non_project_files = "current"
local version = 1.0 -- Prefix: sm.body. -- Commands: --sm.body.getCOM(body) -- Returns the center of mass of the body --sm.body.getCreationCOM(body) -- Returns the center of mass of the creation --sm.body.getMOI(body, axis) -- Returns the moment of inertia of the body on the axis --sm.body.getCreationMOI(body, ax...
old = {} old.require = require old.print = print local stack = {} local top = 1 local loaded = {} require = function(s) if loaded[s] then return end loaded[s] = true old.print("loading[" .. s .. "]") top = top + 1 stack[top] = ...
local pwd = debug.getinfo(1).source:match("^@?(.*[/\\])") package.path = package.path .. ";" .. pwd .. "../?.lua" local pandoc = require("pandoc") local function Span(el) local id = el.attr.identifier if id then return { pandoc.RawInline("context", "\\textreference[" .. id .. "]{"), pandoc.Str(el....
local HAS_DEVICONS = pcall(require, "nvim-web-devicons") local HAS_LSPKIND, lspkind = pcall(require, "lspkind") local default_options = { -- Priority list of preferred backends for aerial. -- This can be a filetype map (see :help aerial-filetype-map) backends = { "lsp", "treesitter", "markdown" }, -- Enum: pe...
object_draft_schematic_chemistry_medpack_enhance_health_triad_c = object_draft_schematic_chemistry_shared_medpack_enhance_health_triad_c:new { } ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_enhance_health_triad_c, "object/draft_schematic/chemistry/medpack_enhance_health_triad_c.iff")
require "scenemanager" require "easing" require "reactphysics3d" scenemanager = SceneManager.new( { ["levelX"] = LevelX } ) scenemanager:changeScene("levelX") stage:addChild(scenemanager) transitions = { SceneManager.moveFromRight, -- 1 SceneManager.moveFromLeft, -- 2 SceneManager.moveFromBottom...
require "KuruNodeKit/KuruNodeKit.lua" require "TapTriggerKit/TapTriggerKit.lua" g_gyroCameraNode = nil g_particles = {} g_emitters = {} g_deviceOrientation = -1 A_PARTICLE_POSITION = {x = -10, y = 100, z = -50} A_PARTICLE_POSITION_VAR = {x = 30, y = 300, z = 10} A_PARTICLE_VELOCITY = {x = 3, y = -3, z = 5} function ...
--[[ Purpose: A library to set up player flags that can be used to control things such as access to spawning props or tool trust. --]] nut.flag = nut.flag or {} nut.flag.buffer = nut.flag.buffer or {} --[[ Purpose: Registers a flag based off the character given as the desired flag and a structure for the flag, da...
local Application = dofile(_G.spoonPath.."/application.lua") local actions = { previousSong = Application.createMenuItemEvent("Previous", { focusAfter = true }), nextSong = Application.createMenuItemEvent("Next", { focusAfter = true }), stop = Application.createMenuItemEvent("Stop", { focusAfter = true }), ...
cprogram { name = "objectify", srcs = { "./objectify.c" } } definerule("objectify", { srcs = { type="targets" }, }, function (e) return normalrule { name = e.name, ins = { "utils+objectify", e.srcs, }, o...
exports.http = { port = 1744 } exports.ws = { host = "1734.biz", port = 1745 } exports.users = { root = "1234" } exports.commands = { "cat", "cd", "help", "ls", "systeminfo" }
--[[ Maintenance by Cpone (Cpone#8463 on Discord). Don't spam Luffy or whatever about this shite, this is all mine. ]] PlayerStyleVariantModule = PlayerStyleVariantModule or BeardLib:ModuleClass("PlayerStyleVariant", ItemModuleBase) PlayerStyleVariantModule.SetupMaterialVariant = PlayerStyleModule.SetupMate...
local getopt = require("getopt") if #({...}) == 0 then io.write("Riko4\n") return end getopt({...}, "-so", { ["kernel-name"] = {hasArg = getopt.noArgument, val = "s"}, ["operating-system"] = {hasArg = getopt.noArgument, val = "o"} }) { s = function() io.write("Riko4 ") end, o ...
vim.opt_local.shiftwidth = 4 vim.opt_local.tabstop = 4 vim.opt_local.softtabstop = 4 vim.opt_local.expandtab = true -- Vim ftplugin sets `o` ... why? I dont want! vim.opt_local.formatoptions:remove("o")
local util = require("util") local ast = require("ast_util") local nodes = require("nodes") local error_code_util = require("error_code_util") ---a fake value to prevent assertions from failing during node creation ---since there are cases where not all required information is available yet, ---but a reference to the...
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local Players = game:GetService('Players') local logger = require(Modules.src.utils.Logger) local GameDatastore = require(Modules.src.GameDatastore) local MarketplaceService = game:GetService('Mark...
-- various convenience functions related to the weapon local reg = debug.getregistry() local GetVelocity = reg.Entity.GetVelocity local Length = reg.Vector.Length local GetAimVector = reg.Player.GetAimVector -- no reason to get it over and over again, since if it's singleplayer, it's singleplayer local SP = game.Sing...
local subzero = require('subzero') local pgmoon = require("pgmoon") local db_channel = os.getenv('PGRST_DB_CHANNEL') local db_conection_info = { host = os.getenv('DB_HOST'), port = os.getenv('DB_PORT'), database = os.getenv('DB_NAME'), password = os.getenv('DB_PASS'), user = os.getenv('DB_USER'), ...
local tiny = require("lib.tiny") local Sand = require "class.Sand" local sandTimer = tiny.processingSystem() sandTimer.filter = tiny.requireAll("sand") function sandTimer:process(e, dt) local absVX = math.abs(e.vx) local absVY = math.abs(e.vy) if absVX > 0 then e.sand = e.sand - dt*(absVX/e.maxSp...
local cfg = {} -- illegal items (seize) -- specify list of "idname" or "*idname" to seize all parametric items cfg.seizable_items = { "dirty_money", "weed", "*wbody", "*wammo" } -- fines -- map of name -> money cfg.fines = { ["Insult"] = 100, ["Speeding"] = 250, ["Stealing"] = 1000, ["Organized crime...
local merge = require('mapx.util').merge local log = require 'mapx.log' local dbgi = log.dbgi local Mapper = { mapopts = { buffer = { buffer = 0 }, nowait = { nowait = true }, silent = { silent = true }, script = { script = true }, expr = { expr = true }, unique = { unique = true }, }, } ...
ardour { ["type"] = "EditorAction", name = "Trim end at mouse", license = "MIT", author = "David Healey", description = [[Trims the end of the region under the mouse]] } function factory () return function () Editor:access_action ("Editor", "set-playhead") -- move cursor ...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script "driftcounter_c.lua" server_script "driftcounter_s.lua" files { 'stats.xml' } data_file 'MP_STATS_DISPLAY_LIST_FILE' 'stats.xml' dependency 'es_extended'
-------------------------------------------------------------------------- -- This module controls the pager. There are two ways to use the pager. -- If stderr is connected to a term and it is configured for it, stderr -- will be run through the pager. If not bypassPager is used which just -- writes all strings to the...
workspace "Lemon-Engine" architecture "x64" configurations { "Debug", "Release", "Dist" } filter "system:windows" startproject "Sandbox" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "Lemon/vendor/glfw/inclu...
-- File: Test.lua function onInit() --print("Hello world") end function onDeviceStateChanged(device, state, stateValue) local timestamp = os.date("%Y-%m-%d %H:%M:%S") if stateValue == nil or stateValue=="" then print('{"type":"device","time":"'..timestamp..'","event":"state","id":'..device:id()..',"state":'...
local cached = require "meiru.db.cached" local config = require "config" local exports = {} local kMSeparator = '^_^@T_T' local function makePerDayLimiter(identityName, identityFn) return function(name, limitCount, options) return function(req, res) local identity = identityFn(req) ...
require('lsp.null_ls') local map_opts = { noremap = true, silent = true } local icons = require('lsp.icons') local lsp_capabilities = vim.lsp.protocol.make_client_capabilities() local completion_capabilities = require('cmp_nvim_lsp').update_capabilities(lsp_capabilities) vim.api.nvim_set_keymap('n',']g','<cmd>lua vim....
function start() if component.invoke(computer.getBootAddress(), "isReadOnly") or (kernel.modules.special and kernel.modules.special.roroot) then local cow = kernel.modules.cowfs.new(computer.getBootAddress(), computer.tmpAddress()) kernel.modules.vfs.mount(cow, "/") else kernel.modules.v...
monsterpedia = {} function monsterpedia:enter(previous,selectMonster) self.previous = previous monsterpedia.list = {} monsterpedia.positions = {} monsterpedia.scroll = 0 self.rightScroll=0 self.rightYmax=0 self.cursorY = 2 self.maxSeen=0 totalstats.creature_kills = totalstats.creature_kills or {} ...
local event = {} local HANDLER_PREFIX = 'on' local DEFAULT_HANDLER = 'onEvent' function event.getHandlerFor(eventName) return HANDLER_PREFIX..eventName end function event.isListener(listener) -- Tests if the value provided is a table with one or more -- listener functions if type(listener) == 'table' then ...
local id = ID("maketoolbar.makemenu") local tool return { name = "Add `make` toolbar button", description = "Adds a menu item and toolbar button that run `make`.", author = "Paul Kulchenko", version = 0.31, dependencies = "1.0", onRegister = function(self) local menu = ide:FindTopMenu("&Project") m...