content
stringlengths
5
1.05M
local log = require("log") local Api = require("coreApi") local json = require("json") local http = require("http") --local sqlite3 = require ("luasql.sqlite3") local function contains(table, val) for i = 1, #table do if table[i] == val then return true end end return false end function ...
-- Author : Ahmed A. Khfagy -- made in CS50 into to Game Development -- this class represents the score state ScoreState = Class{__includes = BasicState} function ScoreState:enter(params) self.score = params end function ScoreState:update(dt) if love.keyboard.wasPressed('enter') or love.keyboard.wasPress...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 12.7 SWEP.CaseLength = 32.6 SWEP.MuzVel = 261.154 SWEP.Attachments = { [1] = {"reflex"}, [2] = {"laser"}} SWEP.InternalParts = { [1] = {{key = "ergonomichandle"}}, [2] = {{key = "burstconvert"}}} if ( CLIENT ) then SWEP.PrintName = "...
#!/usr/bin/lua -- Tool for reading elekctro phase meter values combinates with HDO signal from -- I2C device, and sending these values throw MQTT. local signal = require("posix.signal") local unistd = require("posix.unistd") local systime = require("posix.sys.time") local time = require("posix.time") local syslog = re...
local shell = {} shell.language = "glsl" shell.category = "default" shell.name = "default" shell.vertex = [[ attribute vec2 a_Position; attribute vec3 a_TexCoord; attribute vec4 a_ColorScale; attribute vec4 a_UserData; uniform P_DEFAULT float u_TotalTime; uniform P_DEFAULT float u_DeltaTime; uniform P_UV vec4 u_Te...
--[[ Copyright (c) 2011-2014 chukong-inc.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, publish, dis...
--display and composer settings H = display.contentHeight W = display.contentWidth local composer = require( "composer" ) -- Hide status bar display.setStatusBar( display.HiddenStatusBar ) -- Seed the random number generator math.randomseed( os.time() ) require ("ssk2.loadSSK") _G.ssk.init() display.setDefault("magTex...
local zones = {} function CreateZone(minx, miny, maxx, maxy, z, enter_event, leave_event) local x_diff = maxx - minx local y_diff = maxy - miny local obj = CreateObject(335, minx + (x_diff) / 2, miny + (y_diff) / 2, z + 50, 0, 0, 0, x_diff / 100, y_diff / 100, 3) AddObjectInDimension(obj, GetDimension...
local RunService = game:GetService("RunService") local Package = game:GetService("ReplicatedStorage").Fusion local Observer = require(Package.State.Observer) local Value = require(Package.State.Value) return function() it("should fire connections on change", function() local state = Value(false) local observer =...
----------------------------------- -- Area: Batallia Downs -- NPC: qm2 (???) -- Pop for the quest "Chasing Quotas" ----------------------------------- local ID = require("scripts/zones/Batallia_Downs/IDs"); require("scripts/globals/keyitems"); function onTrigger(player,npc) local sturmtigerKilled = player:getC...
local skynet = require "skynet" local string = string local table = table local unpack = unpack local assert = assert local redis_manager local batch = false local redis = {} local command = {} setmetatable(command, { __index = function(t,k) local cmd = string.upper(k) local f = function(self, ...) if batch th...
bt.register_action("FindNodeInRange", { tick = function(node, data) if data.region == nil or node.regionEmpty == true then print("could not find node in active range") return "failed" end return "success" end, reset = function(node, data) local r = data.region; if r == nil then -- game resta...
--[[-- h1. four.V4 4D float vectors Given a vector @v@ we denote by @vi@ its one-based @i@th component. --]]-- local lub = require 'lub' local four = require 'four' local lib = lub.class 'four.V4' -- h2. Constructor and accessors --[[-- @V4(x, y, z, w)@ is a vector with the corresponding components. @...
-- Given a parsed .SVD file (in Lua table form), print out some registers -- Generic version. Useful for Pico and GD32? -- Strip any trailing spaces or tabs, then append a newline. function out(format, ...) local s = string.format(format, ...) s = s:gsub("[ ]+$", "") io.write(s .. "\n") end -- Function ...
include("names") include("set_names") imenilac1 = math.random(7) + 1; imenilac2 = math.random(5) + 1; factor = math.random(10); cinilac =(imenilac1*imenilac2 - imenilac1 - imenilac2 + 1) ostalo = cinilac * factor ukupno = imenilac1 * imenilac2 * factor
--Electric Train local neockys_trains_1 = table.deepcopy(data.raw['item-with-entity-data']['locomotive']) neockys_trains_1.name = "nt-train-electric" neockys_trains_1.icon = "__Neockys-Trains__/graphics/loc.png" neockys_trains_1.order = "a[train-system]-fz[diesel-locomotive]" neockys_trains_1.place_result = "nt-tr...
object_tangible_collection_gem_square_hueable_01 = object_tangible_collection_shared_gem_square_hueable_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_gem_square_hueable_01, "object/tangible/collection/gem_square_hueable_01.iff")
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Delay = 6300000, Effects = {}, Enables = { "ChildrenOfTomorrow_TheAdvent2_Repeatable", }, Prerequisites = {}, ScriptDone = true, Text = T(404362775314, --[[StoryBit ChildrenOfTomorrow_TheAdvent2 T...
local dreamBlock = {} dreamBlock.name = "dreamBlock" dreamBlock.fillColor = {0.0, 0.0, 0.0} dreamBlock.borderColor = {1.0, 1.0, 1.0} dreamBlock.nodeLineRenderType = "line" dreamBlock.nodeLimits = {0, 1} dreamBlock.placements = { name = "dream_block", data = { fastMoving = false, below = false, ...
local delta = 0 local size = 0 local cw = nil local clump_inner = Material("arccw/hud/clump_inner.png", "mips smooth") local clump_outer = Material("arccw/hud/clump_outer.png", "mips smooth") local aimtr_result = {} local aimtr = {} function SWEP:ShouldDrawCrosshair() if GetConVar("arccw_override_crosshair_off"):...
-- Copyright 2016-2019, Firaxis Games -- =========================================================================== -- CityPanel v3 -- =========================================================================== include("AdjacencyBonusSupport") -- GetAdjacentYieldBonusString() include("CitySupport") include("Civ6Common...
function Binomial( n, k ) if k > n then return nil end if k > n/2 then k = n - k end -- (n k) = (n n-k) numer, denom = 1, 1 for i = 1, k do numer = numer * ( n - i + 1 ) denom = denom * i end return numer / denom end
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 Character getfield -1 HumanoidRootPart getglobal CFrame getfield -1 new pushnumber 323 pushnumber 41 pushnumber 1930 pcall 3 1 0 setfield -3 CFrame
local trump = {} local mattata = require('mattata') function trump:init(configuration) trump.arguments = 'trump <target>' trump.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('trump').table trump.help = configuration.commandPrefix .. 'trump <target> - Trump somebody (or something). I...
local S = minetest.get_translator("bobcraft_blocks") local function chest_formspec(chest_pos) local pos = chest_pos.x .. "," .. chest_pos.y .. "," .. chest_pos.z local formspec = "size[9,9]" .. "list[nodemeta:" .. pos .. ";main;0,0.3;9,4;]" .. "list[current_player;main;0,4.5;9,3;9]" .. "list[current_player;m...
local clamp,floor = math.Clamp,math.floor local min = math.min -- Local variables local function IsColdWorld() local mapEnt = StormFox.MAP.Entities()[1] if not mapEnt.coldworld then return false end return mapEnt.coldworld > 0 end local function lerpAnyValue( amount, currentValue, targetValue ) if not curr...
SettingsSliderItem = setmetatable({}, SettingsSliderItem) SettingsSliderItem.__index = SettingsSliderItem SettingsSliderItem.__call = function() return "SettingsItem", "SettingsItem" end function SettingsSliderItem.New(label, max, startIndex, barColor) local data = { Base = BasicTabItem.New(label or ""...
-- load standard vis module, providing parts of the Lua API require('vis') lisp_file_types ={"clj", "cljs" , "lisp", "cljx", "cljc", "edn"} function paredit_remove_filetype (x) for k,v in pairs(lisp_file_types)do if v == x then lisp_file_types[k]=nil end end end function paredit_add_filetype (x)...
local mt = getmetatable(_G) if mt == nil then mt = {} setmetatable(_G, mt) end function mt.__newindex(t, k, v) return rawset(t, k, v) end
-- *********************************************************************************************************************** -- THIS IS THE MAIN CODE FOR THE GAME -- *********************************************************************************************************************** -- needed helper files requir...
local Time = {} local Config = require 'Config' local _LogT, _LogD, _LogI, _LogW, _LogE = require('unity.Debug').GetLogFuncs('[TIME]') local timestamp = csharp.timestamp; local Unity = require 'unity.Unity' local UnityTime = Unity.Time -- realtime since startup, for measuare execution time function Time.RS() return ...
#!/usr/bin/env lua local bench = require"bench" local aux = require"bench-aux" local lib = ... or aux.optenv("BENCH_L", "bench-wheel.so") local limit = tonumber(aux.optenv("BENCH_N", 1000000)) local step = tonumber(aux.optenv("BENCH_S", limit / 100)) -- expire 1/1000 * #timeouts per clock update local exp_step = ton...
local coroutine_running = coroutine.running local coroutine_resume = coroutine.resume local mm = require "mm" local log = require "prailude.log" local xpcall_with_args; do local ver = ({Q="Lua 5.1",R="Lua 5.2",S="Lua 5.3"})[("").dump(function() end):sub(5,5)] or "LuaJIT" xpcall_with_args = ver ~= "Lua 5.1" end l...
local Terminal = require('opus.terminal') local trace = require('opus.trace') local Util = require('opus.util') local colors = _G.colors local os = _G.os local peripheral = _G.peripheral local printError = _G.printError local shell = _ENV.shell local term = _G.term local window = _G.w...
pg = pg or {} pg.enemy_data_statistics_392 = { [242211] = { cannon = 23, reload = 150, speed_growth = 0, cannon_growth = 1848, pilot_ai_template_id = 10001, air = 0, base = 213, dodge = 14, durability_growth = 84700, speed = 18, luck = 0, reload_growth = 0, dodge_growth = 100, battle_unit_t...
-- this file is loaded after all modules are loaded and initialized -- you can place any custom user code here print 'Greed started.'
local utils = {} local socket = require("lunasdl.socket") utils.now = socket.gettime utils.since = function(ts) return utils.now() - ts end function utils.assertf(level, condition, ...) -- Alternative to assert(). -- Returns condition if it is true, otherwise raises an error() -- level = same as in error() -- ... =...
newoption { trigger = "renderer", value = "API", description = "Choose a renderer", allowed = { { "opengl", "OpenGL (macOS, linux, Windows)" }, --{ "dx11", "DirectX 11 (Windows only)" }, --{ "metal", "Metal (macOS, iOS only)" }, --{ "vulkan", "Vulkan (Windows, linux, ...
--------------------------------------------- -- Hundred Fists -- Meant for Ix'Aern (MNK) --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") -----------------------------------------...
local playsession = { {"remarkablysilly", {3903}}, {"Ed9210", {1447431}}, {"tykak", {1867124}}, {"Trashbull", {303944}}, {"Genocide_General", {145476}}, {"terradus", {1210117}}, {"drill95", {9405}}, {"cahesar", {1452826}}, {"Menander", {2096176}}, {"Atoms", {1314782}}, {"MikeTheMike2014", {103100}}, {"Evilh...
{"1":{"1":"[13519.7041 8958.2109 1010.6108]","2":"[13489.5928 8861.2695 1010.6136]","3":"[13308.9775 8378.4873 1010.6621]","4":"[13115.1406 7900.6929 1010.6783]","5":"[12941.6631 7417.5024 1010.6921]","6":"[12815.3154 6916.0967 1010.6605]","7":"[12746.4346 6405.4492 1010.5943]","8":"[12717.0625 5891.3296 1010.6243]","9...
require("Foundation") require("Crypto") -- MD5 function Crypto_Sample_md5() local result = Encoding:hexEncode(Crypto:md5("Hello LuaScriptCore!")); print(result); end -- SHA1 function Crypto_Sample_sha1() local result = Encoding:hexEncode(Crypto:sha1("Hello LuaScriptCore!")); print(result); end --...
solution "Protocol" includedirs { "src", "external", "tools", "." } platforms { "x64" } configurations { "Release", "Debug" } flags { "Symbols", "ExtraWarnings", "EnableSSE2" } rtti "Off" configuration "Release" flags { "OptimizeSpeed" } defines { "NDEBUG" } project "C...
local Plugin = script.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Utility = require(Plugin.Core.Util.Utility) local Constants = require(Plugin.Core.Util.Constants) local ContextGetter = require(Plugin.Core.Util.ContextGetter) local ContextHelper = require(Plugin.Core.U...
ITEM.name = "Армированный брезентоывй лист" ITEM.desc = "Толстый плотный лист текстильной ткани, армированный кевларом. Достаточно большой лист, можно залатать несколько поврежденных участков. \n\nХАРАКТЕРИСТИКИ: \n-военное изделие \n-высококачественное издение \n-используется в крафте" ITEM.price = 11520 ITEM.exRe...
local PLUGIN = PLUGIN local function openItemBank(invID) local itemBankInventory = ix.item.inventories[invID] itemBank = vgui.Create("ixInventory", inventoryframe) ownPanel = vgui.Create("ixInventory", inventoryframe) ownPanel:SetInventory(LocalPlayer():GetCharacter():GetInventory()) ownPanel:Cente...
local Factory = require("support.factory") Factory.define("dota_unit", function(attributes) return CDOTA_BaseNPC(attributes) end)
--[[ - SKYNET SIMPLE ( https://github.com/viticm/skynet-simple ) - $Id client.lua - @link https://github.com/viticm/skynet-simple for the canonical source repository - @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com ) - @license - @user viticm( viticm.ti@gmail.com ) - @date 2020/08/11 16:25 - @uses Th...
require "vectors" require "pp" local playerPosition local playerVelocity local currentFallRate local currentWorldOffset local currentPowerLevel local elapsedTime local nextFoodSpawnTime local extraFoodSpawnTime local BASE_FALL_RATE = 60 local FALL_RATE_ACCELERATION = 2 local JUMP_SPEED = 600 local PLAYER_DRAG = 1 loc...
local Modules = require ('map.modules') return function (state) local modules, message = Modules.load ( state.settings.script.input, state.settings.script.package.path) if not modules then return nil, message end state.modules = modules return true end
local PowerGrid = Class('PowerGrid') function PowerGrid:initialize(game, x, y, roomHash) self.game = game self.x = x self.y = y self.screenX = 0 self.screenY = 0 self.hitboxX = 0 self.hitboxY = 32 self.hitboxWidth = 64 self.hitboxHeight = 48 self.animationName = 'offline' s...
package.path = '../lib/?;../lib/?.lua;'..package.path require 'utils.DataHandler' require 'utils.ConfHandler' require 'Runtime.Coredp' if #arg <= 0 then print("<main> missing arguments") os.exit() end -- compile configurations (from parts or composite confs) local configs = ConfHandler.GetFullConfs(arg) -- run C...
-- This is used to make the actual houses db = exports.UCDsql:getConnection() function makeHouses() -- owner, interiorID, x, y, z, houseName, currentPrice, boughtForPrice, initialPrice, sale, open if (type(houseName) ~= "string") then return false end if (type(x) ~= "number") or (type(y) ~= "number") or (type(z) ~...
--This was programmed by vissequ#1301 (Discord). You may use this any way you wish, but please do not remove this credit. local plr = game:GetService("Players").LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local h = char:WaitForChild("Humanoid") local root = char:WaitForChild("HumanoidRootPart")...
--[[ Controller Class Author: zipang github.com/zipang The Controller is responsible for unifying all INPUTS (keyboard, gamepads) into a single object. Actions can be registered on specific keys or buttons evants ]] Class = require("lib.hump.class") local unpack = unpack or table.unpack local ...
-- Generated by CSharp.lua Compiler local System = System local SlipeExports local SlipeMtaDefinitions local SlipeSharedElements local SystemXml System.import(function (out) SlipeExports = Slipe.Exports SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedElements = Slipe.Shared.Elements SystemXml = System.Xml...
--_swap tool____________ minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing) pos.y = pos.y local name = minetest.get_node(pos).name if name ~= "default:sand" and name ~= "default:silver_sand" and name ~= "default:desert_sand" then return end pos.y = pos.y ...
-- https://github.com/nvim-treesitter/nvim-treesitter local wo = vim.wo -- Folding wo.foldmethod = "expr" wo.foldexpr = "nvim_treesitter#foldexpr()" require("nvim-treesitter.configs").setup( { ensure_installed = "maintained", -- https://github.com/nvim-treesitter/nvim-treesitter#highlight ...
local helpers = {} local auto_space = require("nvim-autospace") auto_space.setup({ rule = { ['$']= { before = {prev = "[a-zA-Z0-9'\"%]%)]", next = "."}, after = {prev = ".", next = "[a-zA-Z0-9'\"%(]"} }, } }) local eq = assert.are.same function helpers.feed(text, feed_opts) fe...
---@classmod Faction Faction = Class{} ---Initiate a faction from its definition. You shouldn't use this function, the game uses it at loadtime to instantiate the factions. --@param data Table. The table of faction data. --@return self Faction. The faction itself. function Faction:init(fid) local data = possibleFact...
local PluginRoot = script.Parent.Parent.Parent.Parent local Roact = require(PluginRoot.Libs.Roact) local Utilities = require(PluginRoot.Core.Modules.Utilities) local RunService = game:GetService("RunService") local CircleMarquee = Roact.PureComponent:extend("CircleMarquee") function CircleMarquee:init() self.state ...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
Talk(0, "又有一群大蜘蛛,我得小心点,免得当了蜘蛛的点心.", "talkname0", 1); if TryBattle(64) == true then goto label0 end; Dead(); do return end; ::label0:: ModifyEvent(-2, 32, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2);--by fanyu|战斗结束,移除蜘蛛。场景10-编号32-35,42 ModifyEvent(-2, 33, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2); Modi...
local _ENV = TEST_CASE "test.hex" local misc_binary_data = { "", "x\0y", "\0\15\240\255", } function test_trivial_obj () local obj = Filter:new("hex_lower") is("", obj:result()) obj = Filter:new("hex_upper") is("", obj:result()) end function test_misc_lowercase () for num, input in ip...
function HandleSetSpawnCommand(Split, Player) local Response local World = Player:GetWorld() local PlayerX = Player:GetPosX() local PlayerY = Player:GetPosY() local PlayerZ = Player:GetPosZ() if World:SetSpawn(PlayerX, PlayerY, PlayerZ) then Response = SendMessageSuccess(Player, string.format("Successfully c...
-- Function Availability FileWriteLineFast("test/output.txt", "Function Availability", FM_WRITE); local fa = dofile("test/common/function_availability.lua"); fa.FunctionSupported(TtfInit, "MTR_TtfInit", TtfFunctionSupported); fa.FunctionSupported(TtfQuit, "MTR_TtfQuit", TtfFunctionSupported); fa.FunctionSupported(TtfL...
local M = {} local calc_functions = require "core.calc_functions" local relations = require "core.relations" local offers = require "core.offers" local event_system = require "core.event_system" local scenarios_modifiers = { consequences = require "scripts.scenarios_modifiers.consequences" } local is_player local di...
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
return {'osama','osamas'}
-- ** -- * Basic object handling Object={ def=function(t,e) local this={} if e then this=e end for k,v in pairs(t) do if type(v)=="function" and k~="new" then this[k]=v end end return this end } -- ** -- * Generic device with file interface to get/set attributes Device={ new=function(cla...
-- small utility functions for lua-gd if not gd then gd = require("gd") end -- return if an image is a truecolor one gd.isTrueColor = function(im) if im == nil then return nil end local gdStr = im:gdStr() if gdStr == nil then return nil end return (gdStr:byte(2) == 254) end -- create a blank truecol...
-- handler file for both the pre-function and post-function plugin return function(plugin_name, priority) local loadstring = loadstring local insert = table.insert local ipairs = ipairs local config_cache = setmetatable({}, { __mode = "k" }) local ServerlessFunction = { PRIORITY = priority, VERSION ...
object_tangible_loot_loot_schematic_planning_table_keren_imp_schematic = object_tangible_loot_loot_schematic_shared_planning_table_keren_imp_schematic:new { } ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_planning_table_keren_imp_schematic, "object/tangible/loot/loot/schematic/planning_table_keren_i...
AddCSLuaFile() local Status = {} Status.Success = 1 Status.Failure = 2 -- Action: execute provided tick function. -- The tick function should return Status.Success or Status.Failure local ActionMeta = { Tick = function(self) return self.tickFunc() end } ActionMeta.__index = ActionMeta ...
local g = vim.g local cmd = vim.cmd g.tokyonight_style = 'night' g.tokyonight_colors = { bg = '#121212', bg_dark = '#101010', bg_sidebar = '#101010' } cmd[[colorscheme tokyonight]] -- Highlight yanked regions cmd([[ augroup HighlightYank autocmd! au TextYankPost * silent! lua vim.highlight.on_yank{higroup=...
-- helper frame local f = CreateFrame('frame') f:SetScript('OnEvent', function() this[event](this, arg1) end) -- the almighty _G :] setglobal('_G', getfenv(0)) -- some not yet available Lua functions _G['select'] = function(num, ...) -- return number of arguments if num == '#' then return getn(a...
local class = require("heart.class") local heartTable = require("heart.table") local M = class.newClass() function M:init(game, config) self.game = assert(game) self.spriteEntities = assert(self.game.componentEntitySets.sprite) self.spriteComponents = assert(self.game.componentManagers.sprite) self.color = co...
function to_eval_string(data) if type(data) == "string" then return string.format( [["%s"]], data ) elseif type(data) == "number" then return string.format( [[%f]], data ) elseif type(data) == "boolean" and data == true then return "true" elseif type(data) == "boolean" and data...
-- defines a factorial function norn(x,y) return(x^2 + y^2)^0.5 end function twice(x) return 2*x end function fact(n) if n == 0 then return 1 else return n * fact(n-1) end end --print("enter a number:") --a = io.read("*n") --print(fact(a))
local args = {...} local config = dofile(assert(args[1])) local CL, FN, COL, S = dofile(config.LuaRootDir..'/root.lua') local Pm = FN.newPathManager() local commandString = args[2] local commandArgs = {} for i=3,#args do table.insert(commandArgs, args[i]) end --------------------------------------------------- Comma...
-- ? modules not required in main or any file required by main (__root module or submodules) are not included in the bundle require("reporter"); require("luabundle"); require("global"); local githubTrigger = require("githubTrigger"); local reporterTrigger = require("reporterTrigger"); -- ? load external lib -- require...
local Device = require "device" local uxn = require "uxn" local Uxn = uxn.Uxn function init_zero_page(memory) for i = 0, 255 do memory[i] = 0x00 end end function load_program(memory, program) for i = 1, #program do memory[i+255] = program[i] end -- Don't forget a trailing BRK memory[#program+256]...
local gui = require("__flib__.gui") local on_tick_n = require("__flib__.on-tick-n") local table = require("__flib__.table") local constants = require("constants") local formatter = require("scripts.formatter") local gui_util = require("scripts.gui.util") local recipe_book = require("scripts.recipe-book") local shared...
return Def.ActorFrame{ Def.Quad{ InitCommand=cmd(FullScreen,diffuse,color("0,0,0,1")) }; LoadActor("bg")..{ InitCommand=cmd(CenterX;valign,0;y,SCREEN_TOP); }; LoadActor("base")..{ InitCommand=cmd(Center;diffusealpha,0); }; };
--[[ Upbit Open API ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com] OpenAPI spec version: 1.0.0 Contact: ujhin942@gmail.com Generated by: https://github.com/swagger-api/swagger-codeg...
local _M = {} local templates = require "openresty_org.templates" local i18n = require "openresty_org.i18n" local c = {} function _M.process(key, stash, i18n) stash.c = c c.l = i18n.translate return templates.process(key, stash) end return _M
--- -- @module RoduxActions -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local RoduxActionFactory = require("RoduxActionFactory") local Table = require("Table") local RoduxActions = {} RoduxActions.ClassName = "RoduxActions" function RoduxActions.new(init...
local apps = require('configuration.apps') local filesystem = require('gears.filesystem') -- List of apps to start once on start-up return { run_on_start_up = { -- compositer 'picom --config ' .. '~/.config/picom/picom.conf', -- Network Manager Applet --'nm-applet --indicator', -- wifi -- Bluet...
-- is.lua - Type checking for Lua -- Copyright 2016 Jack Wilsdon -- -- 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...
Player = {} PlayerState = { Idle = 0, Accelerating = 1, HoveringLeft = 2, HoveringRight = 3, AcceleratingHoveringLeft = 4, AcceleratingHoveringRight = 5 } -- Player constructor function Player.new() local self = {} local bullets = {} local sprites = { idle = love.graphics....
return Def.ActorFrame { LoadActor("pay") .. { Condition = GAMESTATE:GetCoinMode() == "CoinMode_Pay", OnCommand = function(self) self :xy(SCREEN_CENTER_X, SCREEN_CENTER_Y + 120) :diffuseshift() :effectcolor1(0.5, 0.5, 0.5, 1) :effectcolor2(1, 1, 1, 1) end }, LoadActor("free") .. { Condition...
object_tangible_storyteller_prop_pr_lambda_shuttle_static_s01 = object_tangible_storyteller_prop_shared_pr_lambda_shuttle_static_s01:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_lambda_shuttle_static_s01, "object/tangible/storyteller/prop/pr_lambda_shuttle_static_s01.iff")
local api = vim.api local ts = vim.treesitter local configs = require "nvim-treesitter.configs" local parsers = require "nvim-treesitter.parsers" local queries = require'nvim-treesitter.query' local locals = require'nvim-treesitter.locals' local ts_utils = require'nvim-treesitter.ts_utils' local M = {} function M.se...
function template() local extension = vim.fn.expand('%:e') local check_file = templates.."skel."..extension local file = io.open(check_file, "r") if file ~= nil then io.close(file) local command = "read "..check_file vim.cmd(command) else print("Template doesn't exist...
hook.Add("xWarnLoaded", "xWarnLoadedWOB", function(admin, target) if xWarn.Config.WarnOnBan then hook.Add("xAdminPlayerBanned", "xWarnHandleBan", function(target, admin, reason, time, archiveEntryId) if time == 0 then return end -- No need to do this for permabans xWarn.Database.CreateWarn((type(target) == "P...
local Unit = require("engine.unit.Unit") local Mine = {} function Mine.create(group, x, y, options) local newMine = Unit.create("Mine", group, x, y, options) return newMine end return Mine
local status_ok, _ = pcall(require, "null-ls") if not status_ok then return end local null_ls = require("null-ls") local formatting = null_ls.builtins.formatting local codeActions = null_ls.builtins.code_actions local completion = null_ls.builtins.completion -- register any number of sources simultaneously local s...
table.insert(data.raw.technology["laser-rifle-1"].effects,{ type = "unlock-recipe", recipe = "electric-vehicles-lo-voltage-transformer" }) table.insert(data.raw.technology["laser-rifle-1"].effects,{ type = "unlock-recipe", recipe = "electric-vehicles-regen-brake-controller" }...
local Condition = require "condition" local BaffledBrute = Condition:extend() BaffledBrute.name = "Baffled Brute" BaffledBrute.description = "You are not smart, but at least you're strong. +2 ATK -2 MGK" function BaffledBrute:getATK() return 2 end function BaffledBrute:getMGK() return -2 end return BaffledBrute...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.Author = "baristaner." ENT.Spawnable = true ENT.AdminOnly = true ENT.PrintName = "Koruyucu Kalkan" ENT.Category = "Abluka Sistemi" ENT.Can = abluka.kalkancan function ENT:SetupDataTables() self:NetworkVar( "Bool", 0, "PlayerRepairing" ) end