content
stringlengths
5
1.05M
local fun = require('fun') local function parse_param_prefix(param) if param == nil then return nil end local is_long = (param:find("^[-][-]") ~= nil) local is_short = not is_long and (param:find("^[-]") ~= nil) local is_dash = is_short and (param:find("^[-]$") ~= nil) return is_long, is_short, i...
-- The overall game state has changed function JungleNational:_OnGameRulesStateChange(keys) if JungleNational._reentrantCheck then return end local newState = GameRules:State_Get() if newState == DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD then self.bSeenWaitForPlayers = true elseif newState == DOT...
local PLAYER = FindMetaTable("Player") local query, str, json, unjson = sql.Query, sql.SQLStr, util.TableToJSON, util.JSONToTable hook.Add("Initialize", "Metadata.Create", function() query("CREATE TABLE IF NOT EXISTS metadata(info, key, type, value)") end) hook.Add("PlayerInitialSpawn", "Metadata.Load", fun...
--[[ 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. --]] require('torch') loc...
-- ------------------------------------------------------------------------------------------ -- ITEMS local cr_item = table.deepcopy(data.raw['item']['construction-robot']) cr_item.name = 'infinity-construction-robot' cr_item.icons = {apply_infinity_tint{icon=cr_item.icon, icon_size=cr_item.icon_size, icon_mipmaps=cr...
local status_ok, lualine = pcall(require, 'lualine') if not status_ok then print('Could not load lualine') return end local mode = { 'mode', fmt = function(str) return str:sub(1, 1) end, } local filename = { 'filename', file_status = true, -- Displays file status (readonly status, m...
local nvim_lsp = require('lspconfig') local custom_attach = require('lsp.utils.attach') local prettier = require 'lsp.servers.efm.formatters.prettier' local eslint = require 'lsp.servers.efm.linters.eslint' local clippy = require 'lsp.servers.efm.linters.clippy' local rustfmt = require 'lsp.servers.efm.formatters.rustf...
-- from https://stackoverflow.com/a/6081639/17188274 local function serializeTable(val, name, skipnewlines, depth) skipnewlines = skipnewlines or false depth = depth or 0 local tmp = string.rep(" ", depth) if name then tmp = tmp .. name .. " = " end if type(val) == "table" then tmp = tmp...
local tag = "ground_sit" if SERVER then concommand.Add(tag, function(ply) if not ply.LastSit or ply.LastSit < CurTime() then ply:SetNWBool(tag, not ply:GetNWBool(tag)) ply.LastSit = CurTime() + 1 end end) end local sitting = 0 if CLIENT then surface.CreateFont(tag, { font = "Roboto Bk", size = 48, ...
local M = { } function M.parse(arg) cmd = torch.CmdLine() cmd:text() cmd:text('Train a DenseCap model.') cmd:text() cmd:text('Options') -- Core ConvNet settings cmd:option('-backend', 'cudnn', 'nn|cudnn') -- Model settings cmd:option('-rpn_hidden_dim', 512, 'Hidden size for the extra convol...
local tostring = tostring local type = type local s_gsub = string.gsub local s_find = string.find local s_sub = string.sub local s_reverse = string.reverse local s_rep = string.rep local m_floor = math.floor local t_insert = table.insert local date = require("app.lib.date") local l_uuid = require("app.lib.uuid") loca...
ESX = nil local playervehiclelist = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) -- Event to evaluate where should every vehicle be saved in the table. RegisterServerEvent('esx_jb_stopvehicledespawn:savevehicle') AddEventHandler('esx_jb_stopvehicledespawn:savevehicle', function(i...
EXCL_MAPVOTE.Votes = {} function EXCL_MAPVOTE:Start() if not EXCL_MAPVOTE.MapSelection or #EXCL_MAPVOTE.MapSelection < 1 then Error("Not enough maps selected to load mapvote; is mapvote file setup correctly?\n"); return; end EXCL_MAPVOTE.Votes = {} net.Start("EXCL_MAPVOTE.OpenMapVote"); net.WriteTable(EXCL_...
return { "icons/cyclops_paperdoll_wand", "icons/shop_m004_mall004", "icons/wand21_000_001", "icons/wand22_000_001", "icons/wand23_000_001", "icons/wand24_048_001", "icons/wand25_048_001", "icons/wand25_048_002", "icons/wand26_048_001", "icons/weapon/wp_angaren_xhagoart_wand", "icons/weapon/wp_angaren_xhagoart_wand_mob-...
if _ACTION == "fastbuild" then require "fastbuild-qt-module-patch" end
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals next --[[ Core ]] local Aurora = private.Aurora local Skin = Aurora.Skin function private.FrameXML.GameMenuFrame() local GameMenuFrame = _G.GameMenuFrame if private.isRetail then Skin.DialogBorderTemplate(GameMenuFrame.Border) Sk...
local gui = require(script.Parent:WaitForChild("Gui"):WaitForChild("UpcomingEventsGui")) local ReplicatedStorage = game:GetService("ReplicatedStorage") local remote = ReplicatedStorage.Remotes:WaitForChild("UpcomingEvents") local countdown -- in seconds local function setCountdown(seconds) if countdown then countdow...
local ffi = require("ffi") if ffi.os == "Windows" then return end local adjust = 0 function CalcTime(fn) local begin = terralib.currenttimeinseconds() local current local times = 0 repeat fn() current = terralib.currenttimeinseconds() times = times + 1 until (current - begin) > 0.2 return (current - begin...
-- Class: Group -- A group is a set of sprites. Groups can be used to -- implement layers or keep categories of sprites together. -- -- Extends: -- <Class> -- -- Event: onDraw -- Called after all member sprites are drawn onscreen. -- -- Event: onUpdate -- Called once each frame, with the elapsed time since the last fr...
local _={} _.entity_name=Pow.currentFile() _.new=function() local result=BaseEntity.new(_.entity_name) result.sprite="bee" BaseEntity.init_bounds_from_sprite(result) result.foot_x=1 result.foot_y=1 result.move_speed=17 return result end _.updateAi=function(entity) Ai.moveRandom(...
--[[ privs ]] if(minetest.setting_getbool("enable_damage") == true) then minetest.register_privilege("heal", { description = "Allows set player's health and breath with /sethp, and /setbreath", give_to_singleplayer = false }) end minetest.register_privilege("physics", { description = "Allows set player's gravity...
TYPEMAP = {}; TYPEMAP["boolean"] = "Bool"; TYPEMAP["short"] = "Int"; TYPEMAP["int"] = "Int"; TYPEMAP["integer"] = "Int"; TYPEMAP["nonNegativeInteger"] = "Int"; TYPEMAP["positiveInteger"] = "Int"; TYPEMAP["enum"] = "Int"; TYPEMAP["long"] = "long"; TYPEMAP["string"] = "String"; TYPEMAP["base64Binary"] = "Data"; TYPEMAP[...
-- 删除一个延迟任务 local jobs_key_ht = KEYS[1]; local bucket_key_zset = KEYS[2]; local topic_id = ARGV[1]; redis.call('HDEL', jobs_key_ht, topic_id); redis.call('ZREM', bucket_key_zset, topic_id);
function start (song) BlackFade = makeSprite('BlackFade','blackfade', false) setActorX(200,'blackfade') setActorY(500,'blackfade') setActorAlpha(0,'blackfade') setActorScale(2,'blackfade') end function update (elapsed) if curStep >= 1040 and curStep < 1210 then cameraAngle = cameraAngle + 0.850 ca...
-------------- COPYRIGHT AND CONFIDENTIALITY INFORMATION NOTICE ------------- -- Copyright (c) [2019] – [Technicolor Delivery Technologies, SAS] - -- All Rights Reserved - -- The source code form of this Open Source Project components - -- is su...
local uid = 1 return class { ctor = function (self, scheduler, interval, repeats, handler, immediate) self.uid = uid uid = uid + 1 self.scheduler = scheduler self.handler = handler self.interval = math.max(0.001, interval) self.repeats = repeats self.immediate =...
--エクソシスター・フソフィール -- --Scripted by KillerDJ function c100417020.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2) c:EnableReviveLimit() --cannot spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100417020,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:Set...
local lspconfig = require 'lspconfig' local M = {} -- local luafmt = { formatCommand = "lua-format -i", formatStdin = true } local stylua = { formatCommand = 'stylua -', formatStdin = true } local selene = { lintComman = 'selene --display-style quiet -', lintIgnoreExitCode = true, lintStdin = true, lintFormat...
-- -- hermitage: Testing transaction isolation levels. -- github.com/ept/hermitage -- -- Testing Vinyl transactional isolation in Tarantool. -- -- ************************************************************************* -- 1.7 setup begins -- ************************************************************************* t...
local parent, ns = ... local LGT = LibStub and LibStub("LibGroupTalents-1.0", true) if not LGT then return end local Compat = ns.Compat local unitExists = Compat.Private.UnitExists local UnitGroupRolesAssigned = UnitGroupRolesAssigned local MAX_TALENT_TABS = MAX_TALENT_TABS or 3 local GetActiveTalentGroup = GetActiv...
require("plugins") require("c.keybindings") require("c.nvim-web-devicons") require("c.lualine") require("c.bufferline") require("c.telescope") require("c.startify") require("c.nvim-tree") require("c.vim-better-whitespace") require("c.lsp") require("c.cmp") require("c.comment") require("c.autopairs") require("c.treesit...
/equip Rod of the Ogre Magi /equip Soulkeeper
--[[ Copyright (c) 2017 Uday G 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,...
ZONE:New("5"):DrawZone(-1, {1, 0, 0}, 1, {0, 0, 0}, 0, 1, true) ZONE:New("10"):DrawZone(-1, {1, 0, 0}, 1, {0, 0, 0}, 0, 1, true) ZONE:New("15"):DrawZone(-1, {1, 0, 0}, 1, {0, 0, 0}, 0, 1, true) ZONE:New("20"):DrawZone(-1, {1, 0, 0}, 1, {0, 0, 0}, 0, 1, true) ZONE:New("25"):DrawZone(-1, {1, 0, 0}, 1, {0, 0, 0}, 0, 1, tr...
-- User's extentions if scite_Command then -- extman is present! scite_Command { 'Select word|select_word|Shift+Enter', 'Convert to LF|convert_to_lf|Alt+f', 'Hexify Selection|HexifySelection|', 'Tabs to Spaces|TabToSpace|Alt+j', 'Invert value|ToggleBinaryValue|Alt+r', } end ...
jumpdrive.ham_radio_compat = function(from, to) local meta = minetest.get_meta(to) ham_radio.delete_transmitter(from) ham_radio.save_transmitter(to, meta) end
#!/usr/bin/env lua --- Takes each template and makes a slurp-compatible lua file from it -- so we can avoid wierd datafile resolving issues local templates = { "love" } local util = require 'loverocks.util' local ser = require 'ser' for _, t_name in ipairs(templates) do local s = ser(util.slurp("templates/" .. t_...
modifier_omniknight_degen_aura_lua_effect = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_omniknight_degen_aura_lua_effect:IsHidden() return false end function modifier_omniknight_degen_aura_lua_effect:IsDebuff() return true end func...
local telescope = require("telescope") local actions = require("telescope.actions") local set_keymap = vim.api.nvim_set_keymap telescope.setup { defaults = { mappings = { i = { ["<esc>"] = actions.close } } } } -- Key mappings local opts = { noremap = true, silent = true } set_keymap("...
require "prototypes/categories" require "prototypes/vanilla-overrides" require "prototypes/achievements" require "prototypes/buildings" require "prototypes/hotkeys" require "prototypes/items" require "prototypes/recipes" require "prototypes/resources" require "prototypes/sounds" require "prototypes/tools"
--SPYRAL GEAR - Last Resort function c37433748.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(37433748,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_HAND+LOCATION_MZONE) e1:SetTarget(c374...
----------------------------------- -- Tutorial Mini-Quest ----------------------------------- require("scripts/globals/status") require("scripts/globals/keyitems") require("scripts/globals/settings") require("scripts/globals/npc_util") ----------------------------------- tpz = tpz or {} tpz.tutorial = tpz.tutorial or...
-- Position of images in the atlas. Example: image with id 467 have position (1;1) if there are 1024 images in atlas local M = { [124] = { 467,500,532,563,593,622,650,677,703,728,752,775,797,818,838,857,875,892,908,923,937,950,962,973,983,992,1000,1007,1013,1018,1022,1024, 466,499,531,562,592,621,649,676,702,727,...
local Class = require("class") local V = Class:derive("Vec2") function V:new(x, y) self.x = x or 0.0 self.y = y or 0.0 end function V:unit(angle) return V(math.cos(angle or 0.0), math.sin(angle or 0.0)) end function V:inv_y() return V(self.x, -self.y) end function V:scale(s) return V(self.x * s, self.y * ...
uart.setup(0, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 0) revFieldVal = {-1,-1,-1,-1,-1,-1,-1,-1}; revUartVal = {-1,-1,-1,-1,-1,-1,-1,-1}; uartDataRcv = 0; wifi.setmode(wifi.STATION) wifi.sta.sethostname("Node-MCU-liuli") print(wifi.sta.gethostname()) station_cfg={} station_cfg.ssid="liuli" station_cfg.pwd="" s...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
local RobloxString = string local String = {} String.firstUpper = function(Str) return Str:gsub("^%a", string.upper) end return setmetatable({}, { __index = function(t, key) if String[key] then return String[key] else return RobloxString[key] end end; __newindex = function() error("Cannot write in...
local assert, type, setmetatable = assert, type, setmetatable local check_generic_type = {__index = { msg = 'Required to match %s type.', validate = function(self, value, model, translations) if type(value) ~= self.type then return translations:gettext(self.msg):format(self.type) e...
local util = require("onedark.util") local config_module = require("onedark.config") local M = {} ---Generate onedark theme for kitty terminal. ---@param config onedark.Config function M.kitty(config) config = config or config_module.config local colors = require("onedark.colors").setup(config) local kitty = u...
local beautiful = require ('beautiful') local popup = require ('util.my_popup') -- local awful = require ('awful') local wibox = require ('wibox') local gears = require ('gears') local dpi = require ('beautiful.xresources').apply_dpi --local pi = require ('util.panel_item') local ib = require ('util.img_button') l...
---@classmod Map Map = Class{} ---Initiates a map. Don't call this explicitly, it's called when you create a new map with Map(50,50). --@param width Number. The width of the map --@param height Number. The height of the map --@param gridOnly Boolean. If set to true, then extra tables (eg creatures, lights, pathfinders...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "sh_loader.lua" ) include( "shared.lua" ) local respawnWait = 3 function GM:PlayerInitialSpawn( ply ) ply:SetTeam(team.BestAutoJoinTeam()) end local classes = { "fire", "water", "earth", "air" } function GM:PlayerSpawn( ply ) ski...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Map Tileset class -- --==========================================================================-- class( "map.tileset" ) local tileset = map.tileset function tileset:tileset( map, tilesetData ) self:setMap( map ) self.d...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- License -- ============================================================= --[[ > SSK is free to use. > SSK is free to edit. > ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") require(ReplicatedStorage.TestEZ).TestBootstrap:run({ ReplicatedStorage })
local class = require("lib/middleclass") local tinyECS = require("lib/tiny-ecs") local globals = require("code/globals") local Position = require("code/components/position").Position local FootprintSource = require("code/components/footprintSource").FootprintSource local DecayingObject = require("code/componen...
-- needed to track available connections local clients = {}; local control_socket; -- debug monitoring is loud and costly and requires multiple hooks -- there's a number of subsystems we need to hook in order to get a -- reasonable debug/monitor view: -- -- NOTIFICATION: [notifications] - -- DISPLAY: [displays] - add...
-- bloblogic blobtypes={"green","blue","grey","yellow","pink","red","shadow","glow"} blobdefaults = { move=1, attack=1, aggro=2, split=true, col={} } blobtraits = { green={ tier=1, }, blue={ tier=0, attack=0, spawner=true, split=false, col={[11]=12,[3]=13} }, grey={ tier=0, attack=0, invi...
if (SERVER) then SWEP.Weight = 10 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if ( CLIENT ) then SWEP.PrintName = "AR2 Rifle" SWEP.Author = "Black Tea" SWEP.Instructions = "Left Click to Swing." SWEP.ShowWorldModel = true end SWEP.Category = "Black Tea Firearms" SWEP.Base = "hl2_...
local ScreenGui = import("./ScreenGui") local UDim2 = import("../types/UDim2") local typeof = import("../functions/typeof") local SizeConstraint = import("../Enum/SizeConstraint") local GuiObject = import("./GuiObject") local function extractVector2(v) return { v.X, v.Y } end describe("instances.GuiObject", functio...
v=10 x={1, true, false} for n, v in pairs(x) do --print(n,v) k = x[n] or v print(type(x[n]), k) end --[[ Above for loop prints number 1 boolean true boolean false Not sure why k evaluates to false in last line ??? --]] print('----------------------') x = false x = x or v print('x: ', x) ...
local playsession = { {"Creator_Zhang", {1584425}}, {"Grino98", {262237}}, {"everLord", {643508}}, {"Menander", {1689982}}, {"dog80", {1077908}}, {"mrstone", {1805}}, {"762x51mm", {194947}}, {"Random-Dud", {306197}}, {"GardenofSpace", {1234468}}, {"facere", {912401}}, {"EPO666", {1102452}}, {"JosephHartmann...
krayt_skull = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Krayt Skull Backpack", directObjectTemplate = "object/tangible/wearables/backpack/backpack_krayt_skull.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("krayt_skull", krayt_skull)
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) function onGetFormulaValues(player, skill, attack, f...
local bit=bit or bit32 or require('bit')local unpack=table.unpack or unpack;local a;local b;local c;local d=50;local e={[0]='ABC','ABx','ABC','ABC','ABC','ABx','ABC','ABx','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','AsBx','ABC','ABC','ABC','ABC','ABC','ABC','ABC','ABC','AsBx','A...
-------------------------------- -- @module PhysicsJointFixed -- @extend PhysicsJoint -- @parent_module cc ---@class cc.PhysicsJointFixed:cc.PhysicsJoint local PhysicsJointFixed = {} cc.PhysicsJointFixed = PhysicsJointFixed -------------------------------- --- ---@return boolean function PhysicsJointFixed:createCon...
local api = require 'api' local clock = require 'clock' local db = require 'db' local fun = require 'fun' local log = require 'log' local record = require 'record' local rx = require 'rx' local util = require 'util' local M = {} --- API local methods = {} function methods.current_session(call) return db.session....
-- Cmdline-mode tests. local helpers = require('test.functional.helpers')(after_each) local clear, insert, funcs, eq, feed = helpers.clear, helpers.insert, helpers.funcs, helpers.eq, helpers.feed local meths = helpers.meths describe('cmdline CTRL-R', function() before_each(clear) it('pasting non-special regist...
print("Opened Connect Dialog.")
-- Automatically generated file: Auto Translates return { [256] = {id=256,en="Greetings",ja="アイサツ"}, [257] = {id=257,en="Nice to meet you.",ja="初めまして。"}, [258] = {id=258,en="See you again!",ja="また会いましょう!"}, [259] = {id=259,en="Good morning!",ja="おはよう。"}, [260] = {id=260,en="Good evening!",ja...
CustomizableWeaponry:addFireSound("KM60_FIRE", {"weapons/SlaYeR's M60/fire1.wav","weapons/SlaYeR's M60/fire2.wav","weapons/SlaYeR's M60/fire3.wav"}, 1, 125, CHAN_STATIC) CustomizableWeaponry:addFireSound("KM60_FIRE_SUPPRESSED", {"weapons/SlaYeR's M60/firesil1.wav","weapons/SlaYeR's M60/firesil2.wav","weapons/SlaYeR's M...
local ast = require "pallene.ast" local ast_iterator = require "pallene.ast_iterator" local typedecl = require "pallene.typedecl" local upvalues = {} local analyze_upvalues -- This pass analyzes what variables each Pallene function needs to have -- accessible via upvalues. Those upvalues could be module varibles, st...
-- Automatically generated file: Action Messages return { [1] = {id=1,en="${actor} hits ${target} for ${number} points of damage.",color="D"}, [2] = {id=2,en="${actor} casts ${spell}.${lb}${target} takes ${number} points of damage.",color="D"}, [3] = {id=3,en="${actor} starts casting ${spell}.",color=...
--[[ -- Created by Samuel Batista -- Copyright (c) Firaxis Games 2018 --]] -- =========================================================================== -- INCLUDES -- =========================================================================== include("GreatWorksOverview.lua"); -- ==================================...
local client = require 'shared.client' local describe, it, assert = describe, it, assert describe('public.views', function() local go, path_for = client.new() describe('daily quote', function() local path = path_for('daily-quote') it('responds with a quote', function() local w = ...
local upperclass = require(LIBXML_REQUIRE_PATH..'lib.upperclass') local utils = require(LIBXML_REQUIRE_PATH..'lib.utils') -- -- Define class -- local DocumentImplimentation = upperclass:define("DOMDocumentImplimentation") -- -- Creates a new DOM Document object of the specified doctype -- function public...
return { -- "event", -- "gui", -- "translation", }
local menuEnabled = true; -- controls if the menu should show up at all local menuStarted = false; local selectedOption = 1; local editingValue = false; local options = { {'Mechanics', 'mechanics', 'Toggle mechanics such as health drain,\nattack notes, etc.\nLeave on for best experience.', 'bool'}, {'Screen...
local ass = require('src.lua-cor.ass') local typ = require('src.lua-cor.typ') -- typ ass(tostring(typ)=='typ', 'invalid typ name') ass(typ(typ), 'typ is not typ') ass(typ({})==false, '{} is typ') -- any ass(tostring(typ.any)=='typ.any', 'invalid any name') ass(typ(typ.any), 'an...
local actions = require("telescope.actions") local action_state = require("telescope.actions.state") local utils = require("telescope.utils") local Job = require("plenary.job") local state = require("telescope.state") local flatten = vim.tbl_flatten local A = {} local function close_telescope_prompt(prompt_bufnr) lo...
local function setup () vim.keymap.set('n', '<leader>gg', '<cmd>Neogit<CR>', {desc = 'Open git porcelain'}) end return { setup = setup }
--[[ Variables ]] local cuffstate = false local tryingcuff = false local cuffAttemptCount = 0 local lastCuffAttemptTime = 0 local handCuffed = false local handCuffedWalking = false --[[ Functions ]] function policeCuff() local job = exports["caue-base"]:getChar("job") if not inmenus and (exports["c...
local Object, ModPlayer = require("object"), require("modplayer") local Vector2 = require(_DIR .. "vector2") local Game = Object:extend() do function Game:constructor(dir, mode, colorbits, fps) self.gamedir = dir self.screenmode = mode self.colorbits = colorbits self.targetfps = fps self.gamepads...
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 26 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] Craftings = {} CCrafting = {} function CCrafting:constructor(i...
-- This file is part of SUIT, copyright (c) 2016 Matthias Richter local BASE = (...):match('(.-)[^%.]+$') return function(core, normal, ...) local opt, x,y = core.getOptionsAndSize(...) opt.normal = normal or opt.normal or opt[1] opt.hovered = opt.hovered or opt[2] or opt.normal opt.active = opt.active or opt[3] ...
local death_blocks = require("Modules.JawnGC.death_blocks") local checkpoints = require("Checkpoints/checkpoints") local temple1 = { identifier = "temple1", title = "Temple 1: Super Crush", theme = THEME.TEMPLE, width = 4, height = 4, file_name = "temp-1.lvl", world = 5, level = 1, } l...
local dialogs = {} Entity{ "Dialogue", hitbox="trigger", collision=function(self, _, _, other_classname) if other_classname == "Player" and not self.activated then self.activated = true end end, activated=false } dialogs = { "Hi there", "Wow you're cool" }
--- @module Sprite -- _Under construction; some functionality may be missing or broken_ -- -- The Sprite class simplifies a number of common image use-cases, such as -- working with sprite sheets (image files with multiple frames). (Only horizontal -- sheets are currently supported) -- @option translate hash Image offs...
local paks = {} paks["YRPF"] = LoadPak("YRPF", "/YRPF/", "../../../OnsetModding/Plugins/YRPF/Content") paks["Gang01"] = LoadPak("Gang01", "/Gang01/", "../../../OnsetModding/Plugins/Gang01/Content/") paks["Gang02"] = LoadPak("Gang02", "/Gang02/", "../../../OnsetModding/Plugins/Gang02/Content/") AddEvent("OnObjectS...
local fn = vim.fn local devicons = require "nvim-web-devicons" ---File flags provider. ---Supported flags: Readonly, modified. ---@param ctx table ---@return string local function buf_flags(ctx) local icon = "" if ctx.readonly then icon = "" elseif ctx.modifiable and ctx.buftype ~= "prompt" then if ctx....
--Props go to middlerun on the LOVE forums for this awesome perlin code that --is much better than what I was making local function rand(seed, n) if n <= 0 then return nil end if seed ~= mySeed or lastN < 0 or n <= lastN then mySeed = seed math.randomseed(seed) lastN = 0 end ...
-- Authors: JavaScript ئاسۆ; Lua Ghybu, Calak local export = {} local gsub = mw.ustring.gsub local U = mw.ustring.char local mapping = { ["ا"] = "a", ["ب"] = "b", ["چ"] = "ç", ["ج"] = "c", ["د"] = "d", ["ە"] = "e", ["ێ"] = "ê", ["ف"] = "f", ["گ"] = "g", ["ھ"] = "h", ["ه"] = "h", ["ح"] = "ḧ", ["ژ"] = "j", ["ک"] = "...
do if ModuleLoader then ModuleLoader:LoadAllModules("Predict") end end
function cube_make(area) area.f_soakify = function (area,bidx) minecraft.settile_announce(area.x1,area.y1,area.z1,bidx,-1) minecraft.settile_announce(area.x1,area.y1,area.z2,bidx,-1) minecraft.settile_announce(area.x1,area.y2,area.z1,bidx,-1) minecraft.settile_announce(area.x1,area.y2,area.z2,bidx,-1) minecr...
#!/usr/bin/env luajit -- Copyright 2020, Michael Adler <therisen06@gmail.com> local log = require("log") log.level = "error" local handheld = require("handheld") local fname = "input.txt" -- local fname = "small.txt" local function read_input() local f = assert(io.open(fname, "r")) local program = handheld.parse(...
local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities) require("lspconfig").clangd.setup { cmd = { "clangd", "--clang-tidy", "-j=8", "--compile-commands-dir=./build/", }, capabilities = capabi...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EXPLOSION) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) function onGetFormulaValues(player, level, magleve...
local util = require "gumbo.dom.util" local Node = require "gumbo.dom.Node" local ChildNode = require "gumbo.dom.ChildNode" local Text = require "gumbo.dom.Text" local assertComment = util.assertComment local constructor = assert(getmetatable(Text)) local setmetatable = setmetatable local _ENV = nil local Comment = ut...
mapFields = require "lib/mapFields" target.play_portal_sound_effect() target.transfer_field(mapFields.getID("SmallAttic"), 0)