content
stringlengths
5
1.05M
local drawableSprite = require("structs.drawable_sprite") local drawableLine = require("structs.drawable_line") local drawableNinePatch = require("structs.drawable_nine_patch") local drawableRectangle = require("structs.drawable_rectangle") local utils = require("utils") local zipMover = {} local themeTextures = { ...
function Welder:PerformWeld(player) local attackDirection = player:GetViewCoords().zAxis local success = false -- prioritize friendlies local didHit, target, endPoint, direction, surface = CheckMeleeCapsule(self, player, 0, self:GetRange(), nil, true, 1, PrioritizeDamagedFriends, nil, PhysicsMask.Flam...
local DB = require("app.libs.db") local db = DB:new() local comment_model = {} function comment_model:delete(user_id, comment_id) local res, err = db:query("delete from comment where id=? and user_id=?", {tonumber(comment_id), tonumber(user_id)}) if res and not err then return true else ...
local node_garden = { description = "Garden Fence", drawtype = "nodebox", tiles = { "myfences_wood.png", "myfences_wood.png", "myfences_wood.png^[transformR90", "myfences_wood.png^[transformR90", "myfences_wood.png", "myfences_wood.png", }, paramtype = "light", paramtype2 = "facedir", sunlight_propog...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- vehicles=0 root=getRootElement() resourceRoot=getResourceRootElement(getThisResource()) local nlOffsets={ [411]={-1,0,-0.6}, -- infernus [470]={-1,0,-0.4}, -- patriot [54...
local RunService = game:GetService("RunService") local Promise = require(script.Parent.Parent.Promise) local REQUIRED_ACTUATION = 0.2 --[=[ A Rebind is used for getting an input the user actuates. You can create a query with specific devices and inputs and then call [`Rebind:start`](/api/Rebind/start) to get a pr...
--TESTGAME = function() -- For testing local GAME = {} GAME.Name = "Test Game" GAME.Author = "ukgamer" GAME.Description = "Here's a test game. WASD to move the box!" local thePlayer = nil local x, y = 0, 0 local now = RealTime() local gameOverAt = 0 local gameState = 0 -- 0 = Attract mode 1 = Playing 2 = Waiting for ...
local ffi = require("ffi") local function cstr(s) local c_str = ffi.new("char[?]", #s) ffi.copy(c_str, s) return c_str end local M = {} M.cstr = cstr return M
invoker_cold_snap_lua = class({}) LinkLuaModifier( "modifier_invoker_cold_snap_lua", "lua_abilities/invoker_cold_snap_lua/modifier_invoker_cold_snap_lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_generic_stunned_lua", "lua_abilities/generic/modifier_generic_stunned_lua", LUA_MODIFIER_MOTION_NONE ) -------...
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local db = {} local command = {} function command.GET(key) return db[key] end function command.SET(key, value) local last = db[key] db[key] = value return last end skynet.start(function() -- 注册该服务的lua消息回调函数 skyne...
bark_mite_burrower_drone = Creature:new { objectName = "@mob/creature_names:bark_mite_burrower_drone", socialGroup = "mite", faction = "", level = 29, chanceHit = 0.36, damageMin = 290, damageMax = 300, baseXp = 2914, baseHAM = 7200, baseHAMmax = 8800, armor = 0, resists = {135,120,-1,170,-1,160,170,15,-1},...
lfs = require "lfs" json = require "BuildTools/json" -- arg[1] prefix -- arg[2] script-path -- arg[3] root-path JsonFileModify = nil for file in lfs.dir(arg[2]) do local ff = arg[2].."/"..file if file == arg[1]..".json" or file == "main"..arg[1]..".json"then local attr = lfs.attributes(ff) Json...
-- -- from src/luhn.c -- -- a part of main to isLuhn -- local M = require 'checkdigit' local isLuhn = M.isLuhn function p(s) print(("%s is %s."):format(s, isLuhn(s) and "valid" or "invalid")) end do p("5555555555554444") -- samples from https://en.wikipedia.org/wiki/Luhn_algorithm p("79927398713") p("8961019...
local main = require(game:WaitForChild("Nanoblox"))
-- LS2OVR beatmap parsing -- Part of Live Simulator: 2 -- See copyright notice in main.lua local love = require("love") local Luaoop = require("libs.Luaoop") local nbt = require("libs.nbt") local log = require("logging") local Util = require("util") local md5 = require("game.md5") local beatmapData =...
-- resty-gitweb@init.lua -- Preloads scripts and config for OpenResty workers. MUST be called by init_by_lua_file. -- Copyright (c) 2020 Joshua 'joshuas3' Stockin -- <https://git.joshstock.in/resty-gitweb> -- This software is licensed under the MIT License. -- Check for RESTY_GITWEB_ENABLE in environment variables i...
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local cjson = require "cjson" local changebody = require "kong.plugins.bodytoken.changebody" local req_get_headers = ngx.req.get_headers local pl_path = require "pl.path" local BodyTokenHandler = BasePlugin:extend() ...
local chipWidth = 26 local chipHeight = 26 local function checkChipCollision(x1,y1,w1,h1, x2,y2,w2,h2) return x1 < x2+w2 and x2 < x1+w1 and y1 < y2+h2 and y2 < y1+h1 end local chip { chipColor= "white" value = "1", x = 0, y = 0, w = CardWidth, h = CardHeight, visible = true, dragx = 0, dragy = 0, dra...
AbstractPackageHandler = class("AbstractPackageHandler") AbstractPackageHandler.ctor = function (slot0, ...) slot0._buffer = ByteArray.new() slot0._packageSize = 0 slot0._packageLenByteNum = 2 end AbstractPackageHandler.handlePackage = function (slot0, slot1) assert(false, "this method is supposed to be oveerride...
SleepTrapNpc = { click = function(block, npc) local animation = 2 if (block.blType == BL_PC) then if block.state == 1 then return end if not block:canPK(block) then return end if (block.state == 1) then return end block:sendMinitext("You stepped on a trap!") end block.attacke...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s53 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s53:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s53, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s53.iff")
local winreg = require"winreg" rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" hkey = winreg.openkey(rkey) for name, kind in hkey:enumvalue() do print("\nname: " .. name .. "\ntype: " .. hkey:getvaltype(name)) assert(kind == hkey:getvaltype(name)) end
--Year: 2009 Month:10 Day: 22 Hour: 16 Minute: 45 Second: 55 local userbot={} local recordIndex=0 local GameAgentFactory=require("samples.GameAgent") --recordIndex: 1 recordIndex=recordIndex+1 userbot[recordIndex]=GameAgentFactory.create("UserBot") userbot[recordIndex]:setTargetAttackable(0) userbot[recordIndex]:setSi...
local c = require("composer") local d = display.newText("opa", 10, 10)
-- import local UIWidgetModule = require 'candy.ui.light.UIWidget' local UIWidget = UIWidgetModule.UIWidget local EntityModule = require 'candy.Entity' ---@class UIWidgetGroup : UIWidget local UIWidgetGroup = CLASS: UIWidgetGroup ( UIWidget ) :MODEL {} EntityModule.registerEntity ( "UIWidgetGroup", UIWidgetGroup ) ...
-- There was a bug in the netbox module related to access -- to previously released memory. To understand the essence -- of error, you need to understand how GC works in Lua: -- - GC checks the reachability of objects in Lua in one cycle -- and cleans out those that were unreachable -- - Lua GC object is an entity wh...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") DEFINE_BASECLASS("base_rd3_entity") function ENT:Initialize() BaseClass.Initialize(self) self.energy = 0 self.damaged = 0 self.vent = false if WireAddon ~= nil then self.WireDebugName = self.PrintName self.Inputs = W...
return { name = "lumit", version = "0.1", description = "luvit module installer", author = "pancake <pancake@nopcode.org>", dependencies = { "json", "template", "irc" , "sdb" , "crypto" }, }
DRONES_REWRITE.Weapons["Grenade Launcher"] = { Initialize = function(self, pos, ang) local ent = DRONES_REWRITE.Weapons["Template"].Initialize(self, "models/dronesrewrite/autogrenadelauncher/autogrenadelauncher.mdl", pos, ang, "models/dronesrewrite/attachment4/attachment4.mdl", pos) ent.Grenade = { ["Explosive...
local Tunnel = module("_core", "lib/Tunnel") local Proxy = module("_core", "lib/Proxy") cAPI = Proxy.getInterface("API") API = Tunnel.getInterface("API") adding = true vpcreator = false inCustomization = false groundCam = nil hided = false spawnedCamera = nil choosePed = {} pedSelected = nil sex = nil InterP = false ...
LoadModelCommand = Command:extends{} LoadModelCommand.className = "LoadModelCommand" function LoadModelCommand:init(modelString) -- Since the introduction of the data packing/unpacking, is much more -- efficient passing tables than strings if modelString then self.mission = loadstring(modelString)(...
function eventChatCommand(name, message) local i, j local cmd, arg for k, v in ipairs({{'&lt;', '<'}, {'&amp;', '&'}}) do message = string.gsub(message, v[1], v[2]) end while true do i, j = string.find(message, '%s+') if i == nil then cmd = message arg = '' ...
-- BASED ON https://github.com/JustAPotota/Unfold local M = {} -- Modules local protoc = require("pb.protoc") -- Set up protoc ----------------- protoc.unknown_module = "" protoc.unknown_type = "" protoc.include_imports = true protoc:load(sys.load_resource("/proto/liveupdate_ddf.proto")) ----------------------------...
local onTab = false local song local steps local curInput = "" local frameX = 10 local frameY = 45 local frameWidth = capWideScale(360,400) local frameHeight = 350 local fontScale = 0.4 local tagsperpage = 14 local offsetX = 10 local offsetY = 20 local tagFunction = 1 local buttondiffuse = 0 local buttonheight = 10 loc...
-- empty string print("") -- a * 253 print("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") -- a * 254 print("aa...
-- Initialize our Namespace Table HelloPacrooti = {} HelloPacrooti.name = "HelloPacrooti" HelloPacrooti.version = "1.0.0" -- Summon Pacrooti!!! function HelloPacrooti.summon_pacrooti() SetCrownCrateNPCVisible(true) end -- Dismiss Pacrooti function HelloPacrooti.dismiss_pacrooti() SetCrownCr...
local _ -- A modified header class for the inventory system. -- Has the added functionality of a tabbar (of type BETTERUI_TabBarScrollList) ----------------------------------------------------------------------------- -- Alias the control names to make the code less verbose and more readable. local TABBAR ...
---------------------------------< -- Messages Application -- c_chat.lua ---------------------------------< function main() end function close() end function updateTile(tile,mode) end
local M = {} M.base_30 = { white = "#cdcecf", darker_black = "#121c29", black = "#192330", black2 = "#202a37", one_bg = "#252f3c", -- real bg of onedark one_bg2 = "#313b48", one_bg3 = "#3d4754", grey = "#495360", grey_fg = "#535d6a", grey_fg2 = "#5c6673", light_grey = "#646e7b", red...
WQTrackerDB = { ["profileKeys"] = { ["情伤难愈丶 - 凤凰之神"] = "Default", }, ["profiles"] = { ["Default"] = { ["quests_tracked"] = { ["Player-1515-040B5514"] = { }, }, ["rarescan"] = { ["recently_spotted"] = { [142508] = { 1545924591, -- [1] 943, -- [2] 0.476323843002319, -- ...
local community_pin_map = require("qnFiles/qnPlist/hall/community_pin"); local communityMessageListItem= { name="communityMessageListItem",type=0,typeName="View",time=0,x=0,y=0,width=1006,height=103,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=0,fillParentHeight=0, { name="bg",type=0,typeName="Image",time=9854...
-- -- A minimalist SILE class for a "resumé" (CV) -- 2021, Didier Willis -- License: MIT -- -- This is indeed very minimalist :) -- local plain = SILE.require("plain", "classes") local omicv = plain { id = "omicv" } -- Load all the support package we need so that the user -- can directly work on their content. N.B. Ot...
--nbody particles in love local lg = love.graphics lg.setDefaultFilter("nearest", "nearest") --dimension of the particles textures local dim = 64 --time passes faster or slower local timescale = 1.0 --break update step into multiple updates local steps_per_render = 1 --percentage of particles that exert force per-up...
print("Hello World from Init Config"); print("Value of test: " .. test);
local opengl = opengl or {} opengl.GL_DEPTH_BUFFER_BIT = 0x00000100 opengl.GL_STENCIL_BUFFER_BIT = 0x00000400 opengl.GL_COLOR_BUFFER_BIT = 0x00004000 opengl.GL_FALSE = false --0 opengl.GL_TRUE = true --1 opengl.GL_POINTS ...
local memory = ARGV
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras...
local Network = {} function Network:make(inp, out) local network = { input = {}, hiddens = {}, output = {}, } function network:randomize() local Layer = require "intelligence/layer" self.input = Layer:make(inp) for n = 1, 3 do self.hiddens[#self.hiddens + 1] = Layer:make(2) ...
local NodeEntityState = require "njli.statemachine.nodeentitystate" local Yap = {} Yap.__index = Yap local json = require('json') setmetatable(Yap, { __index = NodeEntityState, __call = function (cls, ...) local self = setmetatable({}, cls) self:create(...) return self end, }) functi...
#!/usr/bin/env lua -- vim: ts=2 sw=2 sts=2 et : local b4={}; for k,_ in pairs(_ENV) do b4[k]=k end local Lib=require("lib") local Keys=require("keys0") ---------------------------------------------------- --- Unit tests local Eg={} --- Run examples Eg.all = { "Run all (or some) examples.", function(my) loc...
local skyla = require "skyla" local stack = require "skyla.base.stack" local lfs = require "lfs" local record = require "record" local scene_graph_editor = require "scene_graph_editor" local property_editor = require "property_editor" local node_editor = require("node_editor") local stack = require "skyla.base.stack" ...
-- 天气菜单 local Api = require("coreApi") local http = require("http") function menu() local items = { 'nmc/天气 + 城市(简短,准确)', '近10天全国最高气温实况图 => 最高气温实况', '近10天全国最低气温实况图 => 最低气温实况', '24小时最高气温预报 => 最高气温预报', '24小时降水量预报 => 降水量预报', '1小时降水量实况 => 降水量', '全国逐时风 => 逐时风', ...
local vim = vim local lsp_semantic = require'lsp-semantic' local dirpath = debug.getinfo(1, 'S').source:match("@(.*[/\\])") local configs = {} return setmetatable({}, { __index = function (tbl, key) -- dofile is used here as a performance hack to increase the speed of calls to setup({}) -- dofile ...
------------------------------ -- function ------------------------------ function normalize_row(data) for i = 1,data:size(1) do datai = data[{i}] rm_na = datai[torch.eq(datai,datai)] rm_na:pow(2) v = torch.sum(rm_na) data[{i}]:div(math.sqrt(v)) end return data end
--[[ StaticPopupDialogs used in various areas ]] StaticPopupDialogs["ED_CANT_DISENCHANT_BLACKLIST"] = { text = "You cannot disenchant items on the blacklist.|n|nYou are currently viewing or editing a blacklist filter.", button1 = "Okay", timeout = 30, whileDead = false, hideOnEscape = true, preferredIn...
-- redis.log(redis.LOG_WARNING, 'start...') local key = KEYS[1] local period = tonumber(ARGV[1]) local count = tonumber(ARGV[2]) -- 每秒钟产生的令牌数 local tickets_per_sec = count / period -- 请求的令牌数 local required_tickets = tonumber(ARGV[3]) -- 快速失败阈值 local enale_degrade = ARGV[4] local degrade_strategy = ARGV[5] local degra...
--[[ Programmable robot ('hoverbot') mod for Minetest Copyright (C) 2018 Pilcrow182 Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. ...
local player = ... local meterFillLength = 136 local meterFillHeight = 18 -- local meterXOffset = _screen.cx + (player==PLAYER_1 and -1 or 1) * WideScale(238, 288) local meterXOffset = _screen.cx + (player==PLAYER_1 and -1 or 1) * WideScale(238, 288 + 84-27) local meterYOffset = 20 -- Compute PLAYER1 center for being...
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local typedecl = require "pallene.typedecl" -- Pallene IR is a lower level representation of Pallene that is easier for the optimizer...
local nearTable=false local animState=0 local animStateLU=getTickCount() table_position={} local Z local W local H local s_w, s_h = guiGetScreenSize () local function doPoolShot(x,y,x2,y2) local hit, hx,hy,hz, hitElement=processLineOfSight(x,y, Z, x2,y2,Z, false, false, false,true, false) if not hit or not hitEle...
include("middleclass.lua") include("uuid.lua") include("von.lua") include( "shared.lua" ) include("/classes/base.lua") include("/classes/stats.lua") include("/classes/character.lua")
BigWigs:AddColors("Grand Champions", { [-7534] = "blue", [66043] = {"blue","yellow"}, [67528] = "orange", [67534] = {"blue","yellow"}, }) BigWigs:AddColors("Eadric the Pure", { [66935] = "orange", }) BigWigs:AddColors("Argent Confessor Paletress", { [66515] = {"green","red","yellow"}, [66537] = "orange", [66...
application = { content = { scale = "adaptive", fps = 60, imageSuffix = { ["@2x"] = 2.0, }, }, }
--[[ Netherstorm -- Talbuk Doe.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, Ok...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.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, co...
game.AddParticles("particles/blaster_sparks.pcf") game.AddParticles("particles/skull_fx.pcf") game.AddParticles("particles/fire_test.pcf") game.AddParticles("particles/fire_test2.pcf") game.AddParticles("particles/splode_fx.pcf") game.AddParticles("particles/flamethrower_fx.pcf") game.AddParticles("particles/artillery_...
object_tangible_item_entertainer_console_stage_generated_backdrop_08 = object_tangible_item_entertainer_console_shared_stage_generated_backdrop_08:new { } ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_generated_backdrop_08, "object/tangible/item/entertainer_console/stage_generated_backdro...
self.i = 0 self:increment()
local ffi = require( "ffi" ) local glu = ffi.load("glu32"); GLU_FILL = 1; GLU_INSIDE = 4; GLU_LINE = 6; GLU_NONE = 8; GLU_OUTSIDE = 2; GLU_POINT = 5; GLU_SILHOUETTE = 7; GLU_SMOOTH = 3; ffi.cdef[[ typedef struct GLUnurbs GLUnurbs; typedef struct GLUquadric GLUquadric; typedef struct GLUtesselator GLUtes...
local genModelCode = require(PluginPath..'/NKG_GenerateModelCode') local genHotfixCode = require(PluginPath..'/NKG_GenerateHotfixCode') function onPublish(handler) if not handler.genCode then handler.genCode = false genHotfixCode(handler) fprint("使用NKG插件生成ET Hotfix代码完成") else handler...
-- flowerpot/documentation.lua -----Load documentation via doc_helper------------------------ local MP = minetest.get_modpath(minetest.get_current_modname()) local docpath = MP .. DIR_DELIM .. "doc" doc.add_category("flowerpot", { name = "_flowerpot_", description = "Flowerpot Documentation", build_formspec = doc.e...
--- === plugins.core.midi.prefs === --- --- MIDI Preferences Panel local require = require local log = require "hs.logger".new "prefsMIDI" local application = require "hs.application" local dialog = require "hs.dialog" local fnutils ...
Database_Hunter = {date="2020-09-05 13:00:44",lookup={["Beast Mastery"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [2335] = {}, [2343] = {}, [2336] = {}, [2331] = {}, [2345] = {}, [2337] = {}, [2344] = {}},["Marksmanship"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [233...
-- Model: resnet1.def.lua -- Description: ResNet model for face recognition with OpenFace, v1. -- Input size: 3x96x96 -- Number of Parameters from net:getParameters() with embSize=128: TODO -- Components: Mostly `nn` -- Devices: CPU and CUDA -- -- Brandon Amos <http://bamos.github.io> -- 2016-06-19 -- -- Copyright 2016...
--- Simple Input Patterns (SIP). -- SIP patterns start with '$', then a -- one-letter type, and then an optional variable in curly braces. -- -- sip.match('$v=$q','name="dolly"',res) -- ==> res=={'name','dolly'} -- sip.match('($q{first},$q{second})','("john","smith")',res) -- ==> res=={second='smith',first=...
-- Profile.lua -- by David Lannan -- copyright 2012 -- -- Profile.lua provides the API for users to log in using a number of internet based profile systems. -- Supported: -- Twitter, Facebook, OpenID, GoogleID (same as OpenID), MSN / Hotmail, ICQ -- Profile information can be shared. -- Each profile m...
--[[ Name: LibJSON-1.0 Author(s): ckknight (ckknight@gmail.com) Website: http://www.wowace.com/projects/libjson-1-0/ Description: A library to convert between Lua objects and serialized JSON objects License: MIT ]] local LibJSON = LibStub:NewLibrary("LibJSON-1.0", 1) if not LibJSON then return end LibJSON.NULL =...
--- -- The 'TexturePacker' class specifies a texture packer. -- A texture packer is a large image which contains many smaller sub-images. -- -- Using TexturePacker tools to export packer files. -- http://www.codeandweb.com/texturepacker -- -- @module TexturePacker local M = Class() --- -- Creates a new 'TexturePacker...
return import(".uiloader").new()
--[[ GD50 Pokemon Author: Colton Ogden cogden@cs50.harvard.edu Few franchises have achieved the degree of fame as Pokemon, short for "Pocket Monsters", a Japanese monster-catching phenomenon that took the world by storm in the late 90s. Even to this day, Pokemon is hugely successful, with ...
module(..., package.seeall) local s = stat local mean, std = s.mean , s.std local meanm = s.meanm local corr, cov = s.corr , s.cov local corrm, covm = s.corrm, s.covm local zscore = s.zscore local lda, pca = s.lda, s.pca function setup() X = matrix{1,2,3,4,5} X2 = matrix{5,4,6,7,8...
Player = game:GetService("Players").chrismash Name = "Ball" Gui = Instance.new("ScreenGui") Gui.Name = "Ball" TextLabel = Instance.new("TextLabel") TextLabel.Size = UDim2.new(0, 100, 0, 20) TextLabel.Position = UDim2.new(0, 500, 0, -20) TextLabel.BackgroundTransparency = 0.4 TextLabel.BackgroundColor3 = Color3.new(15...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.ores.items) then return end -- Setup inputs local inputs = { mod = "bobs", gr...
awful.rules.rules = { -- All clients will match this rule. { rule = { }, properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, keys = config.keys.client, buttons = config.buttons.client, screen = a...
local cmotan = require "cmotan" local _M = { _VERSION = "0.1.0" } local _serialize = function(params) if #params == 0 and params[0] ~= nil then return nil, nil end local stat, result = pcall(cmotan.simple_serialize, params) if not stat then return nil, result end return resu...
-- Minetest 0.4.7 mod: technic -- namespace: technic -- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl> technic = technic or {} technic.tube_inject_item = pipeworks.tube_inject_item or function (pos, start_pos, velocity, item) local tubed = pipeworks.tube_item(vector.new(pos), item) tubed:get_luaentity().start_p...
--- -- A collection of objects that are passed in the menu populate hooks. -- @author Mineotopia -- @module menuDataHandler menuDataHandler = {} local HELP_MENU_DATA = {} local HELP_MENU_DATA_OBJECT = {} local HELP_SUB_MENU_DATA = {} local HELP_SUB_MENU_DATA_OBJECT = {} --- -- Registers and returns a new help menu d...
local ok,e = pcall(dofile,"config.lua") if not ok then -- handle error; e has the error message print ("ERROR loading config " .. e) end function wifi_start() wifi.setmode(wifi.STATION) wifi.sta.config(station_cfg) wifi.sta.connect() print("Connecting to " .. station_cfg.ssid .. " ...") --co...
giant_decay_mite_sentry = Creature:new { objectName = "@mob/creature_names:giant_decay_mite_sentry", socialGroup = "mite", faction = "", level = 18, chanceHit = 0.31, damageMin = 160, damageMax = 170, baseXp = 1257, baseHAM = 3200, baseHAMmax = 3200, armor = 0, resists = {120,120,-1,5,5,-1,-1,-1,-1}, meatT...
AddEvent("OnKeyPress", function(key) if key == "E" then local x, y, z = GetPlayerLocation() -- Object interaction local objects = GetStreamedObjects() for key, object in pairs(objects) do local action = GetObjectPropertyValue(object, "action") if action ~= n...
-- devent_activate() -- Handles activating all dynamic events during on_load function devent_activate() if not global.dynamic_events then return end for k, v in pairs(global.dynamic_events) do if v.enabled == true then if k == "gui_selected_tab_changed" then sc...
local StateMachine = require "scripts/common/StateMachine" local utilities = require "scripts/common/utilities" local AnimParamUpdateFlags = require "scripts/Jack/AnimParamUpdateFlags" local util = { LerpAimingAnim = function(weaponcontroller, timeLeft, targetValue, deltaTime) local targetDiff = targetValue - weap...
return function(class) local fields = {} local o = setmetatable({}, { __tostring = function() return class.name .. ' instance' end }) o.is_object = true o.get = function(name) if fields[name.lexeme] then return fields[name.lexeme] end local method = class.find_method(o, name.lexeme) ...
/* * @package : rlib * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2018 - 2020 * @since : 1.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE SOFTWARE IS PROVIDED "AS IS",...
--- -- curl -X POST http://kong:8001/services/<service-name-or-id>/plugins \ -- -d "name=my-custom-plugin" \ -- -d "config.environment=development" \ -- -d "config.server.host=http://localhost" --- local require = require local kong = kong local BasePlugin = require "kong.plugins.base_plugin" lo...
local app = app app.logInfo("Setup global namespace...") local unitInputNames = { ["In1"] = 0, ["In2"] = 1, ["In3"] = 2, ["In4"] = 3 } local function connectUnitInput(unit, inputName, toObject, toPortName) local channel = unitInputNames[inputName] if channel == nil then app.logError("co...
AddCSLuaFile() local gballoon_pob = baseclass.Get("gballoon_path_object_base") -- internally sets ENT.Base and ENT.Type too ENT.PrintName = "#rotgb.gballoon_target" ENT.Category = "#rotgb.category.miscellaneous" ENT.ScriptedEntityType = "entity" ENT.Author = "Piengineer12" ENT.Contact = "http://steamcommunity.com/id/P...
-- See LICENSE for terms local r = const.ResourceScale local pms = { -- how much to mine each time mine_amount = 1 * r, -- how much to store in res pile (10*10 = 100) max_res_amount_man = 90 * r, -- how high we stack on the pile (10 per stack) max_z_stack_man = 9, -- amount in auto max_z_stack_auto = 250, max...
require('rentziass.utils.keymaps') NMap('<C-n>', ':NvimTreeToggle<CR>') NMap('<Leader>n', ':NvimTreeFindFile<CR>') NMap('<Leader>r', ':NvimTreeRefresh<CR>') require('nvim-tree').setup()
local data_dir = vim.fn.stdpath('data') local languageServerPath = data_dir .. "/lspinstall/angular" local lsp = require('modules.lsp') local tsProbeLoc = data_dir .. "/lspinstall/typescript/node_modules" local cmd = { "node", languageServerPath .. "/node_modules/@angular/language-server/index.js", "--std...