content
stringlengths
5
1.05M
local unicode = require("unicode") local shell = require("shell") local args, options = shell.parse(...) local bytes = 0 local chars = 0 local words = 0 local lines = 0 local word = false while true do local data = io.read(1) if not data then break end if io.input().remaining() > 0 then data = da...
#!/usr/bin/env lua local exec = require "tek.lib.exec" local PI = math.pi local PI2 = PI*2 local SIN = math.sin local s1 = 0 local s2 = 0 local x1 = 0 local x2 = 0 while true do local n = 256 x1 = s1 x2 = s2 for cx = 0, n-1 do local y = ((x1 % 2) - 1 + SIN(x2) * 0.5) / 4 + 0.5 y = y * 0x10000 io.stdout...
Class = require 'hump.class' require 'entities/powerup' require 'bigballmode' local BIGBALLPOWERUP_IMG = love.graphics.newImage("resources/graphics/bigballpowerup.png") local BIGBALLPOWERUP_QUAD = love.graphics.newQuad(0, 0, 32, 32, 32, 32) BigBallPowerUp = Class{ __includes = PowerUp, init = function(self, ...
slot0 = class("GuessForkGameView", import("..BaseMiniGameView")) slot1 = { 100, 50 } slot2 = { 10 } slot3 = { 20 } slot4 = { 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12 } slot5 = { 1000, 200 } slot6 = 10...
--[[ MIT License Copyright (c) 2021 Christophe MICHEL 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, pub...
local Util = {} function Util.lerp(a, b, amount) return a + (b - a) * amount end function Util.gridToScreen(x, y) local sx = (x - 1) * 64 local sy = (y - 1) * 64 return sx, sy, 64, 64 end function Util.gridToScreenTile(x, y) local sx = (x - 1) * 64 + 4 local sy = (y - 1) * 64 + 4 return sx, sy, 56, 56 end ...
-- @Author: detailyang -- @Date: 2016-10-10 15:45:33 -- @Last Modified by: detailyang -- @Last Modified time: 2017-02-19 13:29:41 -- https://www.w3.org/TR/cors/ local re_match = ngx.re.match local _M = { _VERSION = '0.2.1.5'} local Origin = 'Origin' local AccessControlAllowOrigin = 'Access-Control-Allow-Origin'...
local u = require 'utilities' require('lspsaga').init_lsp_saga() -- lsp provider to find the cursor word definition and reference u.map('n', 'gh', '<cmd>lua require(\'lspsaga.provider\').lsp_finder()<cr>', {noremap = true, silent = true}) -- code action u.map('n', '<leader>ca', '<cmd>lua require(\'lspsaga.codeaction...
local ESX = exports['es_extended']:getSharedObject() function getPlayerFromId(source) local steamid = false local license = false local discord = false local xbl = false local liveid = false local ip = false for k,v in pairs(GetPlayerIdentifiers(source))do if s...
--[[ ]]-- module("luci.controller.app.vendor", package.seeall) function index() local page = node("app", "vendor") page.target = firstchild() page.title = _("") page.order = 10 page.sysauth = "admin" page.sysauth_authenticator = "jsonauth" page.index = true entry({"app"}, firstchild(), _(""), 700) e...
vim.g["bujo#todo_file_path"] = tostring(os.getenv("HOME")) .. "/.cache/bujo" vim.g["bujo#window_width"] = 100
return { version = "1.1", luaversion = "5.1", tiledversion = "0.16.1", orientation = "orthogonal", renderorder = "right-down", width = 20, height = 6, tilewidth = 32, tileheight = 32, nextobjectid = 2, properties = {}, tilesets = {}, layers = { { type = "tilelayer", name = "Til...
//________________________________ // // NS2 CustomEntitesMod // Made by JimWest 2013 // //________________________________ Script.Load("lua/ScriptActor.lua") Script.Load("lua/Mixins/ModelMixin.lua") Script.Load("lua/ExtraEntitiesMod/LogicMixin.lua") Script.Load("lua/TeamMixin.lua") Script.Load("lua/ExtraEntitie...
MenuScene = Scene:extend() function MenuScene:onEnter() Scene.setScene(main) end
return { } --[[ { Name = 'Recipe: Enhance I', Type = 'CraftingRecipe', Rarity = 'Common', MUID = '8FF69EDBD803461C:CRAFT_Enhance1', RecipeBookPage = '1', Method = 'PrimaryItemEnhance', YieldItemName = '', IngredientAmount1 = '50', IngredientName1 = 'Shards', Ingred...
local Bilinear, parent = torch.class('nn.Bilinear', 'nn.Module') local function isint(x) return type(x) == 'number' and x == math.floor(x) end function Bilinear:__assertInput(input) assert(input and type(input) == 'table' and #input == 2, 'input should be a table containing two data Tensors') assert(input[...
--- Entity lifespan. -- -- @setting zombie.lifetime -- @settype int -- @default 300 (5 minutes) cmer_zombie.lifetime = tonumber(core.settings:get("zombie.lifetime")) or 300 --- Spawn rate frequency. -- -- -- @setting zombie.spawn_interval -- @settype int -- @default 36 -- @see [ABM definition](http://minetest....
local function try_staple(itemstack, placer, pointed) if pointed.type ~= "node" then return end if pointed.above.y - pointed.under.y ~= 0 then return end -- Node under must be a tree local node_under = minetest.get_node(pointed.under) local def_under = minetest.registered_nodes[node_under.name] or {} if no...
villageSivarraPhase4ConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "villageSivarraPhase4ConvoHandler", screens = {} } intro_not_eligible = ConvoScreen:new { id = "intro_not_eligible", leftDialog = "@conversation/fs_combat_healing_quest:s_48b1807b", -- "What?...
-- Config for Travis CI cmdline client -- https://github.com/travis-ci/travis.rb -- created on top of external debian chroot, prepared by debian-setup.cfg.lua -- using debian-sandbox.cfg.lua config file as base -- do not forget to install ruby and ruby-dev packages inside sandbox chroot defaults.recalculate_orig=defa...
local cld_cmd_util = {} cld_cmd_util.table_sep = " " function cld_cmd_util.display_table(o) headers = o.headers table_data = o.data column_widths = o.column_widths fmtspecs = {} if column_widths ~= nil then for k, v in pairs(column_widths) do fmtspecs[k] = "%-" .. (v + 1) .. ...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2129 --------------------------------------------------------------------------------------------------- -- Description: -- In case: -- 1) Mobile app is activa...
-- effect_id :: string: The effect_id specified in the trigger effect. -- surface_index :: uint: The surface the effect happened on. -- source_position :: Position (optional) -- source_entity :: LuaEntity (optional) -- target_position :: Position (optional) -- target_entity :: LuaEntity (optional) local function effec...
object_static_worldbuilding_furniture_frn_vet_couch_section_lg = object_static_worldbuilding_furniture_shared_frn_vet_couch_section_lg:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_frn_vet_couch_section_lg, "object/static/worldbuilding/furniture/frn_vet_couch_section_lg.iff")
--[[ *********************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/development ...
require('lsp_signature').setup({ handler_opts = { border = 'none', }, -- floating_window_above_cur_line = true, hint_prefix = ' ', zindex = 50, })
object_building_player_construction_construction_player_diner = object_building_player_construction_shared_construction_player_diner:new { } ObjectTemplates:addTemplate(object_building_player_construction_construction_player_diner, "object/building/player/construction/construction_player_diner.iff")
---@class GridCollisionClass @enum GridCollisionClass = {} --- --- 0 GridCollisionClass.COLLISION_NONE = 0 --- --- 1 GridCollisionClass.COLLISION_PIT = 1 --- --- 2 GridCollisionClass.COLLISION_OBJECT = 2 --- --- 3 GridCollisionClass.COLLISION_SOLID = 3 --- --- 4 GridCollisionClass.COLLISION_WALL = 4 --- --- 5 GridColl...
workspace "Akame" architecture "x64" startproject "imGui" configurations { "Debug", "Release" } ComDir={} ComDir["AkameCore"]="%{wks.location}/AkameCore/" IncludeDir={} IncludeDir["vendor"]="%{wks.location}/AkameCore/vendor" IncludeDir["glad"]="%{IncludeDir.vendor}/glad-akame-" Inc...
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require "ffi" local base = require "resty.core.base" local C = ffi.C local ffi_string = ffi.string local ngx = ngx local type = type local error = error local tostring = tostring local get_string_buf = base.get_string_buf local subsystem = ngx.config.subsystem l...
AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "" ENT.Author = "" ENT.AutomaticFrameAdvance = true ENT.Spawnable = false ENT.AdminSpawnable = false function ENT:Initialize() self:SetSolid(SOLID_NONE) self:SetNotSolid(true) self:DrawShadow(false) self:SetMoveType(MOVETYPE_NO...
----------------------------------- -- Area: Western Altepa Desert -- Mob: Western Sphinx ----------------------------------- local ID = require("scripts/zones/Western_Altepa_Desert/IDs") require("scripts/globals/missions") require("scripts/globals/status") ----------------------------------- function onMobInitialize...
Global( "PlayerHP", {} ) function PlayerHP:Init(anID) self.playerID = anID self.unitParams = {} self.objParams = {} self.shield = 0 self.hp = 0 self.lastShield = -1 self.lastHP = -1 --PlayerWounds.lua не достаточно, тк EVENT_UNIT_WOUNDS_COMPLEXITY_CHANGED не приходит на руническое проклятье и тд self.woundsC...
--[[ Copyright 2012 Rackspace 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 writing, software dis...
local container = 'backpack' --write your main bp's name local InboxFull = true -- don't touch local BpsCount = 6 -- amount of your stacked bps, these have to be stacked properly and without any items inside local CurItems = 0 -- don't touch local BpFull = false -- don't touch local Logout = false -- I have set d...
local ipairs = ipairs local tab_insert = table.insert local tab_new = require('resty.core.base').new_tab local balancer = require('apicast.balancer') local UpstreamSelector = require('upstream_selector') local Request = require('request') local Rule = require('rule') local _M = require('apicast.policy').new('Routing ...
if not _G.THREATLIB_LOAD_MODULES then return end -- only load if LibThreatClassic2.lua allows it if not LibStub then return end local ThreatLib, MINOR = LibStub("LibThreatClassic2", true) if not ThreatLib then return end local BROODLORD_LASHLAYER_ID = 12017 local KNOCK_AWAY_ID = 18670 ThreatLib:GetModule("NPC...
--[[ --==Contributers==-- - Rami Sabbagh (RamiLego4Game) ]] --TREE-2 Events System local reg = {} --The list of registered events local e = {} --The events system --- Register a new function to be called at a specific event. --P <name> (String): The name of the event. --P <func> (Function): The function to register...
local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) dofile(modpath.."/netherman.lua") --dofile(modpath.."/dragon.lua")
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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 -...
local K, C, L, _ = unpack(select(2, ...)) if C["chat"].enable ~= true or C["chat"].damage_meter_spam ~= true then return end local ipairs = ipairs local match = string.match local time = time local strsplit = strsplit local UIParent = UIParent -- Merge damage meter spam(SpamageMeters by Wrug and Cybey) local firstLi...
function numzero(s, c, z) if c == 0 then return (z == 0) and 1 or 0 elseif #s < c or z + c * s[1] > 0 or z + c * s[#s] < 0 then return 0 end local t = {} for i = 1, #s-1 do t[#t+1] = s[i+1] end return numzero(t, c-1, z + s[1]) + numzero(t, c, z) end for line in io.lines(arg[1]) do local s = {} ...
slot0 = class("WorldBossListPage", import("....base.BaseSubView")) slot0.Listeners = { onRankListUpdated = "OnRankListUpdated", onCacheBossUpdated = "OnCacheBossUpdated" } slot1 = { [970701] = { 411, 777 }, [970702] = { 411, 574 }, [970201] = { 296, 610, 0.95, 0.95 }, [970703] = { 1424, 126...
function EFFECT:Init( data ) --print("bourne bourne bourne yes ur gonna bourne") self.PartName = "flamethrower" self.StartPacket = data:GetStart() self.EntityV = data:GetEntity() self.Attachment = data:GetAttachment() if self.Attachment and IsValid(self.EntityV) then local owner = Entity(math.Round(self...
local packer = require("packer") packer.use({ "akinsho/nvim-bufferline.lua", requires = "kyazdani42/nvim-web-devicons", config = function() require("bufferline").setup({ options = { diagnostics = "nvim_lsp", offsets = { { filetype = "NvimTree", text = "File Explorer", text_align = "left" } }, }, })...
--ロイヤル・ストレート・スラッシャー --Script by mercury233 local s,id,o=GetID() function s.initial_effect(c) aux.AddCodeList(c,25652259,64788463,90876561) c:EnableReviveLimit() --cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE...
--Bans module for ULX GUI -- by Stickly Man! --Manages banned users and shows ban details xgui.prepareDataType( "bans" ) xgui.prepareDataType( "sbans" ) local xbans = xlib.makepanel{ parent=xgui.null } xbans.isPopulating = 0 xbans.showperma = xlib.makecheckbox{ x=445, y=10, value=1, label="Show Permabans", pa...
local TableUtil = {} function TableUtil.clone(tbl) local clone = {} for key, value in pairs(tbl) do if typeof(value) == "table" then clone[key] = TableUtil.clone(value) else clone[key] = value end end return clone end return TableUtil
---------------------------- -- Author: M. Utku Altinkaya -- utkualtinkaya@gmail.com ---------------------------- --Base class for all scenes Scene = {} function Scene:init() end function Scene:draw() end function Scene:update(dt) end function Scene:keypressed( key, unicode ) end function Scene:keyreleased( key, unic...
--[[ alert.lua a finish effect that displays the cooldown at the center of the screen --]] local Addon = _G[...] local L = _G.OMNICC_LOCALS local Frame = CreateFrame("Frame", nil, UIParent) Frame:SetPoint("CENTER") Frame:SetSize(50, 50) Frame:SetAlpha(0) Frame:Hide() local Icon = Frame:CreateTexture() Icon:SetAllP...
project "FractalPlayer" configurations { "Debug", "Release" } dependson { "FractalEngine" } kind "ConsoleApp" architecture "x64" language "C++" cppdialect "C++17" characterset ("MBCS") -- Set Directories targetdir (flBinPath) debugdir (flBinPath) objdir (flBuildsPath .. "/output/%{cfg.platfo...
-- SkyBlock plugin for cuberite. -- Before starting the server, you need to add a (configurable world name in Config.ini) -- world in the settings.ini under the section [Worlds] -- Example: World=skyblock PLUGIN = nil ISLAND_NUMBER = nil -- Gets increased, before a new island is created ISLAND_DISTANCE = nil -- Distan...
-- ProtectionAreas.lua -- Defines the main plugin entrypoint, as well as some utility functions --- Prefix for all messages logged to the server console PluginPrefix = "ProtectionAreas: "; --- Bounds for the area loading. Areas less this far in any direction from the player will be loaded into cPlayerAreas g_Are...
function onCreate() setProperty('cameraSpeed', 1.8); makeLuaSprite('sky', 'SonicP2/sky', -414, -440.8); setScrollFactor('sky', 1, 1); scaleObject('sky', 1.4, 1.4); makeLuaSprite('backtrees', 'SonicP2/backtrees', -290.55, -298.3); setScrollFactor('backtrees', 1.1, 1); scaleObject('backtrees', 1.2, 1....
require "./scripts/libcowgol" local args = {...} local infilename = args[2] local outfilename = args[3] local midcodes = loadmidcodes(infilename) local hfp = io.open(outfilename, "w") local function title(s) return s:sub(1, 1):upper()..s:sub(2):lower() end -- Midcode names. local first = true for m, t in pairs(m...
return PlaceObj("ModDef", { "title", "Rogue Rocket (Philip DeFranco) (Logo)", "version", 1, "version_major", 0, "version_minor", 1, "image", "Preview.png", "id", "ChoGGi_Logos_RogueRocket", "steam_id", "1739995106", "author", "BrowncoatTrekky & ChoGGi", "lua_revision", 1001569, "TagColonyLogos", true, "code...
local skynet = require "skynet" local sharedata = require "sharedata" local data_pool = {} local query_queue = {} local function query_sharedata(name) if data_pool[name] then return data_pool[name] end if not query_queue[name] then query_queue[name] = {} data_pool[name] = sharedata.query(name) local tmp_queue...
--- @class Logger --- @field defaultLogLevel LogLevel local Logger --- returns the global log history --- @return LoggerLogEntry[] function Logger.history()end --- sets or gets the global log history size --- @param size number|nil @desired number of log entries to keep in the history; if omitted, will return the cur...
local lsp = vim.lsp local format = {} local function nvim_create_augroup(group_name, definitions) vim.api.nvim_command("augroup " .. group_name) vim.api.nvim_command("autocmd!") for _, def in ipairs(definitions) do local command = table.concat(vim.tbl_flatten({ "autocmd", def }), " ") vim.api.nvim_command(comma...
local tango = require 'tango' local client_backend = "socket" local config = { address = os.getenv("TANGO_SERVER") or "localhost" } local connect = tango.client[client_backend].connect local client, android if config.address == "localhost" then os.execute("adb forward tcp:12345 tcp:12345") end describe("#BasicTest...
return ccompile{"main.c"};
local p = require 'pretty-print-ffi'.prettyPrint local loop = require 'uv-ffi' require 'safe-coro'(function () local timer = loop:newTimer() p("About to sleep", timer) timer:sleep(1000) p("Done sleeping!", timer) timer:close() end) loop:run('default')
--憶念の相剣 -- --Script by KillerDJSH function c101107067.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --remove local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(101107067,0)) e2:SetCategory(...
vim.o.termguicolors = true require('common.utils') require('config.settings') -- File auto commands require('config.files') require('config.mapping') require('config.theme') require('config.abbrev') -- Everything else we want to use fennel for -- Note: this runs AFTER fennel plugin configuration require('config.fennel'...
-- premake5.lua function AddWXWidgetStaticLibrary(libpath) wxwidgetOption = "lib" --links { "comctl32.lib" } -- necessary for WXWIDGET --links { "rpcrt4.lib" } -- necessary for WXWIDGET --defines { "UNICODE" } -- necessary for WXWIDGET --defines { "_UNICODE" } -- necessary for WXWIDGET includedirs{ libpath ...
local VariantSource = {} VariantSource.__index = VariantSource function VariantSource.For(baseName, count, extension) local varSrc = { Variants = {} } for i = 1, count do table.insert(varSrc.Variants, MultiSource.For(baseName .. string.format("%02d", i) .. extension)) end return setmetatable(varSrc, Varian...
AelsKoSGUI = AelsKoS:NewModule("GUI"); local mainWindow local scrollFrame local scrollBar local contentFrame local scrollItems = { count = 0 } local killData local activeSortMode = "" local sortFlag = true function AelsKoSGUI:toggle() if mainWindow == nil or not mainWindow:IsShown() then self:show() else ...
local Module = nn.Module -- You can use this to manually forget past memories in AbstractRecurrent instances function Module:forget() if self.modules then for i,module in ipairs(self.modules) do module:forget() end end return self end -- Used by nn.Sequencers function Module:remember(rem...
-- moneytweakdata.lua - MoneyTweakData:init, fixes infinite money loss at the results/exp screen. -- Must be in this seperate hook as the main init function is called on the loading of the tweak_data lua file, so this hook will be added after the main call of it has already taken place -- This method prevents issues wi...
function hsvToRgb(h, s, v) -- from https://love2d.org/wiki/HSV_color if s <= 0 then return v,v,v end h, s, v = h/256*6, s/255, v/255 local c = v*s local x = (1-math.abs((h%2)-1))*c local m,r,g,b = (v-c), 0,0,0 if h < 1 then r,g,b = c,x,0 elseif h < 2 then r,g,b = x,c,0 elseif...
local types = {} for _, key in ipairs(KEYS) do table.insert(types, redis.call('type', key)) end return types
--[[ TEMPLATE CHECKS =============== ]] check_parent = function (n, parent_type) it("appears as part of a " .. parent_type, function() expect(n:appears_as_child_of_type(parent_type)).should_be(true) end) end is_a_lone_feature = function (n) it("appears as a root node", function() expect(n:appears...
-- Default Fight AI fight_ai_name = "Default AI" fight_ai_monster_family = "*" fight_ai_monster_name = "*" function execute() local data = teal_fight_data local character = data.character character:MoveAndAttack() character:TakeCover() end
-- -- User: maks -- Date: 2019-02-14 -- Time: 13:16 -- local planeRenderInfo = { mesh = "models/plane.obj", material = Game.makeMaterial { diffuse = "textures/land.jpg", specularColor = {0.05, 0.08, 0.05}, shininess = 10 } } local scenery = { { Name = "camera", ...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2129 --------------------------------------------------------------------------------------------------- -- Description: -- In case: -- 1) There is a mobile ap...
--Copyright (c) 2013, Byrthnoth --All rights reserved. --Redistribution and use in source and binary forms, with or without --modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and t...
do singleton "BasicSingle" { message = "", } accessor "Message->message" function Initialize( self ) end end
local pkg = require 'aula.core.package' local M = {} function M.init() pkg.add('tpope/vim-surround') end return M
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end local steps = tonumber(param) if not steps then return false end local position = player:getPosition() position:getNextPosition(player:getDirection(), steps) position = player:getClosestFreePosition(position, f...
local json = require("dkjson") local socket = require("socket") socket.unix = require("socket.unix") local SOCK_PATH = "/var/run/yggdrasil.sock" local control = {} function control:request(command, args) if args == nil then args = {} end args["request"] = command local data = json.encode(args) local c = assert(...
include("shared.lua") function ENT:Draw() self:DrawModel() end net.Receive("OpenBarricadeMenu", function() local ent = net.ReadEntity() local player = net.ReadEntity() local entName = ent:GetClass() local entHealth = net.ReadInt(11) local playerBalance = player:GetNWInt("playerMoney") local upgra...
Colors = {} function Colors:load() self.buttonScale = 0.1 * utils.vh -- 0.5 local paddingScale = 1 if utils.isMobile then self.buttonScale = 0.6 * self.buttonScale paddingScale = 0.6 end local ButtonImage = love.graphics.newImage("assets/color.png") local ButtonWidth = ButtonI...
-- @brief Builds deck layout from table data. -- @brief The function which builds deck layout from table data. -- @param data The table data. -- @return The deck layout. function deckLayoutBuilder(data) -- validate if not data.components then error('Deck layout without components') end -...
Class = require("pl.class") Script = require("speedwalking.script") Types = require("pl.types") Class.Avalon_Walhalla_Zugang_Raus(Script) function Avalon_Walhalla_Zugang_Raus:setup() world.AddTriggerEx("avalon_walhalla_teich_ankunft_langsam", "*Toll. Du haettest eigentlich mehr von den ...
local cmd = vim.cmd local fn = vim.fn cmd( [[ call wilder#setup({'modes': [':', '/', '?']}) call wilder#set_option('use_python_remote_plugin', 0) call wilder#set_option('pipeline', [ wilder#branch( wilder#cmdline_pipeline({ 'use_python': 0, 'fuzzy': 1, 'fuzzy_filter': wilder#lua_fzy_filter(), }), wilder#vim_search_p...
-------------------------------------------------------------------------------- local class = require "lib.middleclass" -------------------------------------------------------------------------------- local GenericInput = class("GenericInput") function GenericInput:initialize(parent, left, top, width, options) sel...
local BaseClass = include('sh_actor_base.lua') local slib = slib local bgNPC = bgNPC local table = table local math = math local SERVER = SERVER local setmetatable = setmetatable -- BGN_ACTOR = {} function BGN_ACTOR:Instance(npc, npc_type, custom_uid, not_sync_actor_on_client, not_auto_added_to_list) local npc_data =...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) print('[^bitch-silahkutusu^0] - Baslatildi!') ESX.RegisterUsableItem("silahkutusu", function(source) local xPlayer = ESX.GetPlayerFromId(source) TriggerClientEvent('bitchdev:silahkutusuac', source) TriggerClientEvent('...
if !DOME_ENT then DOME_ENT = {} end local BlockData = {} BlockData.__index = BlockData function BlockData:GetShapeMode() return self.Shape.Type end function BlockData:GetPreventMode() return self.preventMode end function BlockData:SetSphere(radius) if not isnumber(radius) then return end self.Shape.Radius =...
-- telescope.nvim -- https://github.com/nvim-telescope/telescope.nvim vim.cmd 'packadd telescope.nvim' vim.cmd 'packadd telescope-symbols.nvim' vim.cmd 'packadd telescope-z.nvim' local telescope = require 'telescope' local actions = require 'telescope.actions' local previewers = require 'telescope.previewers' telesco...
local style = utaha.styleCollection style :addFont("font.normal", "res/fonts/wqy-zenhei.ttf", 20) :addFont("font.small", "res/fonts/wqy-zenhei.ttf", 12) :addFont("font.big", "res/fonts/wqy-zenhei.ttf", 20) style :setFont("test.font", "font.normal") :setColor("test.3", 0xff010200) :setSize("tes...
local ADDON_NAME, namespace = ... local L = namespace.L local addonName = "ArkInventory" local ArkInventoryMixin = {} function ArkInventoryMixin:GetName() return addonName end function ArkInventoryMixin:Init() hooksecurefunc(ArkInventory.API, "ItemFrameUpdated", function(...) self:OnFrameItemUpdate(...) end) en...
local tw, th = wm.getSize() local w, h = term.getSize() local recent = {} local pinned = {} local util = require("/lib/util") local textbox = require("/lib/textbox") local scroll = require("/lib/scrollwindow") local draw = require("/lib/draw") local file = util.loadModule("file") local theme = _G.wm.getTheme() loca...
name 'Lua Connection' author 'Gaada' description 'Gade Lua Connection' fx_version 'adamant' game 'gta5' server_scripts { 'server.lua', }
local cmd = vim.cmd local fn = vim.fn local defaults = { comment_italics = true, } local M = { Color = require('colorbuddy.init').Color, colors = require('colorbuddy.init').colors, Group = require('colorbuddy.init').Group, groups = require('colorbuddy.init').groups, styles = require('colorbudd...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local Stack = { } function Stack:new() local s = {} setmetatable(s, self) self.__index = self return s end function Stack:push(value) self[#self + 1]...
local json = require("snaker.utils.json") local _M = {} function _M:init() local req = { params = {}, body = {} } local request_method = ngx.var.request_method local request_args , request_body if "POST" == request_method then ngx.req.read_body() request_args = ng...
require 'kbd' stead.module_init(function() hook_keys('1','2','3','4','5','6','7','8','9','0'); end) game.kbd = stead.hook(game.kbd, function(f, s, down, key, ...) if down and key >= '0' and key <= '9' then if isDialog(stead.here()) then if key == '0' then key = '10' end local p = stead.here():srch(key); ...
local oil = require "oil" local oo = require "oil.oo" local assert = require "oil.assert" local UnorderedArraySet = require "loop.collection.UnorderedArraySet" local ProxyPushConsumer = require "oil.corba.services.event.ProxyPushConsumer" module("oil.corba.services.event.Supplie...