content
stringlengths
5
1.05M
-- (c) 2014 RDashINC -- -- Linux kernel, in computercraft. -- Will at one point adheed to Linux Kernel standards. -- Open Source, and object oriented. -- -- License: MIT -- Author: RainbowDashDC -- Contributors: see CREDITS -- URL: http://github.com/ccLinux/kernel -- -- Specifications & Planning moved to: http://bit.ly...
local p=nil local propEventPlayer = script:GetCustomProperty("EventPlayer") local propEventNPC = script:GetCustomProperty("EventNPC") local propMUID = script:GetCustomProperty("MUID") local instance=World.SpawnAsset(propMUID) local listener=nil function OnTurnOn(player) --print("gizmo on "..player.name) ...
--libs local Class = require("lib.class") local SM = require("lib.state_machine") local Anim = require("lib.animations") local Sprite = require("lib.sprite") --local camera = require("lib.camera") local Player = Class:derive("player") --Data local fox local run_sound local bite_sound --Animations local ...
--- An object that represents a memory blob, with various useful operations. -- @classmod MemoryBlob -- -- 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 -- w...
project "oiio" if _ACTION == "vs2019" then location ("../builds/VisualStudio2019/projects") end kind "StaticLib" language "C++" cppdialect "C++17" flags { "MultiProcessorCompile" } defines {"OIIO_STATIC_DEFINE", "EMBED_PLUGINS"} targetdir ("../builds/bin/" .. outputdir .. "/%{prj.name}") objdir...
workspace "Extension" configurations { "Debug", "Release" } startproject "Test" -- A project defines one build target project "Lib" location "src" kind "SharedLib" language "C" staticruntime "off" files { "src/**.h", "src/**.c" } defines { "STRIP_PYTHON", "EXT_SO" } ...
function love.load() require("player_obj") require("game_obj") require("title_obj") require("tile_functions") --Load sounds turfsound = love.audio.newSource("resources/turfsound.wav", "static") stealsound = love.audio.newSource("resources/stealsound.wav", "static") enemysound = love.audio.newSource("resources...
GameOverState = BaseState:extend() function GameOverState:enter(gameState) self.level = Text("Your Level: " .. tostring(gameState.level), gFonts['medium'], WINDOW_WIDTH/2, WINDOW_HEIGHT/3) self.score = Text("Your Score: " .. tostring(gameState.score), gFonts['medium'], WINDOW_WIDTH/2, 2*WINDOW_HEIGHT/3) se...
local SIGNAL_HP = "hp" local SIGNAL_SH = "sh" local SIGNAL_ERS = "ers" gleisbildDatei = "gleisbild.txt" stellwerkName = "Test" bildschirm = "right" modem = "top" speichereFahrstrassen = true -- Richtung: r = nach rechts, l = nach links signale = { ["A"] = {x = 09, y = 05, richtung = "r", stelle_hp ...
ENT.Base = "stalker_ai" ENT.Type = "ai" ENT.Author = "ERROR" ENT.Contact = "" ENT.Information = "" ENT.Category = "SNPCs" ENT.Spawnable = false ENT.AdminOnly = false
--[[ AscendScripting Script - This software is provided as free and open source by the staff of The AscendScripting Team.This script was written and is protected by the GPL v2. The following script was released by a AscendScripting Staff Member. Please give credit where credit is due, if modifying, redistributing and/...
local logEcho = ulx.convar( "logEcho", "2", "Echo mode 0-Off 1-Anonymous 2-Full", ULib.ACCESS_SUPERADMIN ) local logEchoColors = ulx.convar( "logEchoColors", "1", "Whether or not echoed commands in chat are colored", ULib.ACCESS_SUPERADMIN ) local logEchoColorDefault = ulx.convar( ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "DustStromStart", Effects = { PlaceObj('CreatePlanetaryAnomaly', { 'id', "MysteriousDomeStructure", 'display_name', T(11397, --[[StoryBit WindsOfChange_0 display_name]] "Mysterious Dom...
local d = { node_water = "air", node_cave_liquid = "air", } local function v_n(f, td) return function(def) return aurum.biomes[f](b.t.combine(d, td or {}, def)) end end local v_base = v_n("v_base", { y_min = 4, depth_top = 2, depth_filler = 2, }) local v_under = v_n("v_under", { y_max = 3, node_stone = "auru...
-- local kRagdollTime = 20 * 1 -- local kRagdollDissolveDelay = kRagdollTime - 5 -- function Ragdoll:OnCreate() -- Entity.OnCreate(self) -- local now = Shared.GetTime() -- self.dissolveStart = now + kRagdollDissolveDelay -- self.dissolveAmount = 0 -- if Server then -- self:AddTimedCallb...
RobotLegs = Sprite:extend("RobotLegs") RobotLegs.offsets = { idle = {{0,0}, {0,0}, {0,0}, {0,-1}, {0,-1}, {0,-1}}, walk = {{0,0}, {0,0}, {0,-1}, {0,0}, {0,0}, {0,-1}} } function RobotLegs:new(...) RobotLegs.super.new(self, ...) self:setImage("enemies/robot_legs", 8) self.anim:add("idle", {1, 1, 1, 2, 2, 2}, nil,...
local M = {} -- table information begin local tableName = 'wikiEntry' -- table information end local Util = require "sora.util" function M.new(o,isSingleton) local ins local SoraModelMysql = require 'sora.model.mysql' if isSingleton then setmetatable(M, { __index = SoraModelMysql:new() }) ins = { tableName = t...
---- -- Our "Auto-Join" button. -- -- Widget that extends `Button` and creates our "Auto-Join" button with an icon (`Icon`). -- -- **Source Code:** [https://github.com/dstmodders/mod-auto-join](https://github.com/dstmodders/mod-auto-join) -- -- @classmod widgets.AutoJoinButton -- @see widgets.Button -- @see widgets.Ico...
require "table-helpers" require "unit-test" function size_test() if unit_test.assert(5, table.size({1,2,3,4,5}), "Size failure") then if unit_test.assert(0, table.size({}), "Zero element failure") then return true end end return false end function contains_value_test() if unit_test.assert(true, ...
local component = require("component") local buffer = require("doubleBuffering") local image = require("image") local event = require("event") local ecs = require("ECSAPI") local serialization = require("serialization") local unicode = require("unicode") ---------------------------------------------------------------...
local fs = require 'lib.filesystem' -- Save copied tables in `copies`, indexed by original table. function deepcopy(orig, copies) copies = copies or {} local orig_type = type(orig) local copy if orig_type == 'table' then if copies[orig] then copy = copies[orig] else ...
-- A solution contains projects, and defines the available configurations solution "CityGisProcess" location("build/" .. _ACTION) targetdir "bin" configurations { "Debug", "Release" } -- A project defines one build target project "CityGisProcess" kind "ConsoleApp" language "C++" files { "source/process/*.cpp", ...
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "zhTW") if not L then return end --@localization(locale="zhTW", format="lua_additive_table")
ITEM.name = "Monster Energy Ultra White, 500ml" ITEM.description = "An aluminium can with energy drink inside." ITEM.longdesc = "Monster Energy is an energy drink that was introduced by Hansen Natural Company (now Monster Beverage Corporation) in April of 2002. The caffeine content of most Monster Energy drinks is appr...
--行动前 焱青 function onStart(target, buff) if GetFightData().fight_id == 11010100 then target[1211] = 300 --速度 target[1301] = 0 --防御 target[1501] = 100000 --血量 target[1001] = 20876 --攻击 end end --大回合开始前 function afterAllEnter(target, buff) if GetFightData().fight_id == 10100704...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_hoodwink_...
require("mod.oo_en.data.init")
{{Inventory_Start}}this:add_item("{{CurItem_Value_ScriptName}}"){{CurItem_Quantity_Not_Equal_One_Start}} this:get_item({{CurItem_Index}}):set_value("Quantity", {{CurItem_Quantity}}){{CurItem_Quantity_Not_Equal_One_End}}{{CurItem_Is_Equipped_Start}} this:equip_item(this:get_item({{CurItem_Index}})){{CurItem_Is_Equippe...
return PlaceObj("ModDef", { "title", "Drones Use Nearest Waste Dump", "id", "ChoGGi_DronesUseNearestWasteDump", "steam_id", "2065605741", "pops_any_uuid", "82ce2e51-b1b4-43fd-ba74-de6a2674763b", "lua_revision", 1001569, "version", 6, "version_major", 0, "version_minor", 6, "image", "Preview.png", "author", "C...
local caffeine = hs.menubar.new() local obj = {} local on_message = 'caffeinated' local off_message = 'wait sleep' local on_icon = "☕️🙄" local off_icon = "😴" function obj:init(mod, key) function setCaffeineDisplay(state) if state then hs.alert.show(on_message) caffeine:setTitl...
object_tangible_saga_system_rewards_planet_hologram_dantooine_02 = object_tangible_saga_system_rewards_shared_planet_hologram_dantooine_02:new { } ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_planet_hologram_dantooine_02, "object/tangible/saga_system/rewards/planet_hologram_dantooine_02.iff")
slot0 = class("CalcCatteryExpCommand", pm.SimpleCommand) slot0.execute = function (slot0, slot1) slot5 = slot1:getBody().isPeriod if not getProxy(CommanderProxy).GetCommanderHome(slot3) then return end slot0.commanderExps = {} slot7 = slot4:getConfig("exp_number") for slot11, slot12 in pairs(slot6) do if ...
class 'Pong' function Pong:__init() Events:Subscribe( "MouseMove", self, self.MouseMove ) Events:Subscribe( "LocalPlayerInput", self, self.LocalPlayerInput ) Events:Subscribe( "Render", self, self.Render ) Events:Subscribe( "PreTick", self, self.ClientTick ) Network:Subscribe( "StartUp", self, self.Start...
-- https://github.com/benjamingr/RegExp.escape/blob/master/polyfill.js return function(value) local result, _, gsub_err = ngx.re.gsub(value, "[\\\\^$*+?.()|[\\]{}]", "\\$0", "jo") if gsub_err then ngx.log(ngx.ERR, "regex error: ", gsub_err) end return result end
data:extend{ { type = "item", name = "dyson-statite", icon = "__base__/graphics/icons/satellite.png", icon_size = 32, flags = {"goes-to-main-inventory"}, subgroup = "intermediate-product", order = "m[dyson-swarm]-h[statite]", stack_size = 5 }, ...
#!/usr/bin/env lua -- single-dir.lua, Gather all dependencies of Lua module together -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use. local single_dir = require "single-dir" single_dir.restoreSearchers() local BASH_CODE = [[ # SDO = single-dir-out SDO=$(cd "$(dirname "${BASH_SOURCE[0]}")...
-- _ _ _ _ _ -- / \ | | | | | __ ___ _(_) -- / _ \ | | |_ | |/ _` \ \ / / | -- / ___ \| | | |_| | (_| |\ V /| | -- /_/ \_\_|_|\___/ \__,_| \_/ |_| -- -- github: @AllJavi -- local awful = require('awful') local tasklist_panel = require('layout.tasklist-panel') local top_panel...
local HallProxy = class("HallProxy", BaseProxy) local ScoketService = ScoketService function HallProxy:LoginGuestReq() ScoketService.connectSuccBack = function () local data = {} data.mac_address = Tool.GetDeviceUID() ScoketService.SendMessage(NetCmd.Hall_CS_Login,data) end ScoketSe...
#!/usr/bin/env lua local t = require 'tapered' package.path = '../src/?.lua;' .. package.path local split = require 'split'.split local s, got s = ',foo,bar' got = split(s, ',') t.is(#got, 3, "split(',foo,bar', ',') should have three fields.") t.is(got[1], '', 'First item should be empty field.') t.is(got[2], 'foo', ...
return (require 'Enum') { 'criticallyhit', }
local Opcodes = require("runtime/vm/opcodes") local Instruction = { value = nil, MAXARG_Bx = (1 << 18) - 1, -- 262143 MAXARG_sBx = ((1 << 18) - 1) >> 1, -- 131071 } --[[ 31 22 13 5 0 +-------+^------+-^-----+-^----- |b=9bits |c=9bits |a=8bits|op=6| +-------+^------+-^--...
local errorModel = "models/error.mdl" local PANEL = {} AccessorFunc(PANEL, "animationTime", "AnimationTime", FORCE_NUMBER) local function SetCharacter(self, character) self.character = character if (character) then self:SetModel(character:GetModel()) self:SetSkin(character:GetData("skin", 0)) local bodygro...
n = io.read("*number", "*l") B = io.read() count = 0 for i in string.gmatch(B, "010") do count = count + 1 end print(count)
--[[ Copyright 2012 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...
-- this is an example config that allows to run steam client in sandbox. -- using external debian chroot (debian jessie), use download-debian-jessie-chroot.sh to download and prepare rootfs archive. -- see steam-howto.txt for info about other preparations needed to install and run steam inside sandbox. -- using debian...
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper" -- Test code for loadouts local loadouts_module = ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("loadouts", GAME_ID, "loadout_defs") local test_loadouts = false if test_loadouts then print("Testing Loadouts (disable in lo...
local class = require "class" local M = {} local function fileExists(n) local f = io.open(n) if f ~= nil then io.close(f) return true else return false end end M.Audio = class() do function M.Audio:_init(...) self.head = {} self.samples = {} local args = {...} if args[1] and fi...
require("test/bustedhelper_stage_intro") require("common_stage_intro") require("resources/visual_ingame_addon") -- stage_intro mostly uses ingame visuals local stage_intro_state = require("stage_intro/stage_intro_state") local coroutine_runner = require("engine/application/coroutine_runner") local postprocess = requ...
#!/usr/bin/env lua -- server.lua -- -- This script does the same as running bin/cucumber-lua -- i.e starts a wire server to execute steps. -- But it uses the local cucumber sources instead of the -- system-wide luarocks install: package.path = './src/?.lua;' .. package.path require("cucumber"):StartListening()
local banner = { directory = { Hearts="Hearts", Arrows="Arrows" }, width = 418, zoom = 0.7, } -- the Quad containing the bpm and music rate doesn't appear in Casual mode -- so nudge the song title and banner down a bit when in Casual local y_offset = SL.Global.GameMode=="Casual" and 50 or 46 local af = Def.ActorFr...
local ItemPurchaseSystem = dofile(GetScriptDirectory() .. "/constants/ItemPurchaseSystem") local ItemsToBuy = { "item_tango", "item_flask", "item_recipe_magic_wand", --大魔棒7.14 "item_branches", "item_branches", "item_magic_stick", "item_boots", "item_energy_booster", --秘法 "item_ring_of_regen", "item_branches", "it...
STRICT = true DEBUG = true require 'loveframes' require 'zoetrope' require 'gamelib/polygon' require 'gamelib/unit' require 'gamelib/gamemap' require 'gamelib/dialogue' require 'gamelib/worldmap' require 'gamelib/character' require 'gamelib/item' require 'levels/test' require 'levels/cave' require 'gameover' require 'i...
function makeKey(thePlayer, commandName, keyType, keyID) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then if(getElementData(thePlayer,"job")==6)then if not (keyType) or not (keyID) then outputChatBox("SYNTAX: /" .. commandName .. " [Key Type: 1=Vehicle 2=House 3=Business][Key ...
--狗头人战士 local m=14010026 local cm=_G["c"..m] function cm.initial_effect(c) --Tactical roll local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,1)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT...
-- VARIABLES =================================================================== local owner_particle = nil timer = 0.0 emitRate = 1024.0 interval = 0.5 speed = 2.0 constructed = false -- FUNCTIONS ===================================================================...
--[[----------------------------------------------------------------------------------------------------------------------- Start a vote -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Vote" PLUGIN.Descriptio...
ITEM.Name = 'Backpack' ITEM.Price = 100 ITEM.Model = 'models/props_c17/SuitCase_Passenger_Physics.mdl' ITEM.Bone = 'ValveBiped.Bip01_Spine2' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyCl...
--[[ returns the string of the unique id that Lua uses (the pointer of the object). does so by clearing the mt and getting the tostring() that means if the mt itself has a __metatable field then things could go wrong --]] local function getuid(obj) local mt = getmetatable(obj) setmetatable(obj, nil) local uid = asse...
return { style = { [32] = { -- Default fore = "#FFFFFF", back = "#000000" }, [33] = { -- Line Number fore = "#FFFFFF", back = "#A0A0A0" }, [34] = { -- Brace Highlight fore = "#FFFFFF", back = "#009000", bold = true }, [35] = { -- Unmatched Brace ...
local AddonName, AddonTable = ... -- These items drop in multiple dungeons AddonTable.multi = { 109805, 109806, 109807, 109808, 109809, 109810, 109811, 109812, 109816, 109817, 109818, 109820, 109821, 109822, 109823, 109824, 109825, 109826, 1098...
local function CanOverrideLeaveActionStatus(status) for i,prefix in pairs(Vars.LeaveActionData.Prefixes) do if string.find(status, prefix) then return true end end return false end -- LeaveAction damage is delayed after its first application in combat, due to a forced half second wait for the status object t...
local datacenter = require 'skynet.datacenter' local cjson = require 'cjson.safe' local httpdown = require 'http.download' local class = require 'middleclass' local pkg_api = require 'pkg.api' local ioe = require 'ioe' local lfs = require 'lfs' local api = class("FREEIOE_APP_CONF_CENTER_API") local api_header = { Ac...
Config = {} Config.Teleporters = { ['hopital'] = { ['Job'] = 'none', ['Enter'] = { ['x'] = -349.13, ['y'] = -113.08, ['z'] = 38.43, ['Information'] = '[E] Garage', }, ['Exit'] = { ['x'] = 1004.07, ['y'] = -2997.59, ['z'] = -40.64, ['Information'] = '[E] Sortir du garage' } }...
local leveldb = require 'leveldb' opt = leveldb.options() opt.createIfMissing = true opt.errorIfExists = false db = leveldb.open(opt, 'types.db') assert(db:put("string", "Oh hai Mark!")) assert(db:put("number", 123456)) assert(db:put("boolean", true)) function check(val, expected) assert(type(val) == expected, "exp...
local md5 = require("md5") function filter_open(email, page) buffer = "" hexdigest = md5.sumhexa(email:sub(2, -2):lower()) end function filter_close() html("<span class='libravatar'><img class='inline' src='//seccdn.libravatar.org/avatar/" .. hexdigest .. "?s=13&d=retro' /><img class='onhover'...
item = {} item.__index = item function item:new(type_name) local newItem = {} local data = possibleLoot[type_name] for key, val in pairs(data) do if (type(val) ~= "function") then newItem[key] = data[key] end end if (data.new ~= nil) then data.new(newItem) end newItem.type = newItem.type or "other" ne...
local Config = package_require 'snippets.config' local log = package_require 'snippets.log' local Editor = package_require 'snippets.editor' local SnippetStack = package_require 'snippets.stack' local function pget(t, ...) for i = 1, select('#', ...) do local idx = select(i, ...) if ...
--[[ Render Blips ]]-- local blipStorage = {} local radar_camera = 184 Citizen.CreateThread( function() for _, info in pairs( CameraLocations ) do if not info.hidden or ClientDebugMode then local blip = AddBlipForCoord( info.pos.x, info.pos.y, info.pos.z ) SetBlipSprite( blip, ...
dantooine_voritor_jungle_lair_neutral_medium_boss_01 = Lair:new { mobiles = {{"horned_voritor_lizard",1}}, bossMobiles = {{"spiked_slasher",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"}, ...
--[[ Implements motion for a single set of values and a single child object. Example: Roact.createElement(RoactMotion.SimpleMotion, { style = { x = RoactMotion.spring(10), }, render = function(values) return Roact.createElement(MyThing, { x = x, }) end }) When the value passed to ...
---@class RBBurnt : zombie.randomizedWorld.randomizedBuilding.RBBurnt RBBurnt = {} ---@public ---@param arg0 BuildingDef ---@return void function RBBurnt:randomizeBuilding(arg0) end
-- Player.lua -- Provides special API implementations for cPlayer API functions return { ["cPlayer:GetName()"] = function(a_Simulator, a_Self) return rawget(getmetatable(a_Self), "simulatorInternal_Name") or a_Simulator:createInstance({Type = "string"}) end, ["cEntity:GetWorld()"] = function(a_Simulator, a_...
Ship = Ship or {} setmetatable(Ship,{ __index = ShipTemplateBased })
--[[ post to nggRest. rest call returns data in result['data'] on success rest call returns error message in result['error'] on error. Nothing else will be in the return array rest call may also return a debugging result['message'] in addtion to data rest call may also return a warning message in reslut['warning'] in...
load(atleast("a","1.3")) load(atleast("b","1.3"))
-- Api.lua -- @Author : Dencer (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 10/18/2019, 1:11:20 PM -- ---- LUA local type, next = type, next local pairs = pairs local select = select local format = string.format local tinsert = table.insert local tonumber = tonumber local assert = assert local ...
object_tangible_component_reverse_engineering_modifier_bit = object_tangible_component_reverse_engineering_shared_modifier_bit:new { } ObjectTemplates:addTemplate(object_tangible_component_reverse_engineering_modifier_bit, "object/tangible/component/reverse_engineering/modifier_bit.iff")
function Client_PresentConfigureUI(rootParent) local initialValue = Mod.Settings.RandomizeAmount; local initialNegatives = Mod.Settings.AllowNegative; if initialValue == nil then initialValue = 2; end if initialNegatives == nil then initialNegatives = false; end local vert = UI.CreateVerticalLayoutGroup(root...
--[[ 虚拟箭矢 missile = nil, --[必须]虚拟箭矢的特效 animateScale = 1.00, --虚拟箭矢的动画速度 scale = 1.00, --虚拟箭矢的模型缩放 hover = 0.00, --虚拟箭矢的初始离地高度 speed = 500, --每秒冲击的距离(可选的,默认1秒500px) acceleration = 0, --冲击加速度(可选的,每个周期[0.02秒]都会增加一次) height = 0, --飞跃高度(可选的,默认0) shake = 0, --摇摆振幅程度度[0.00~1.00|rand](可选的,默认...
local S = aurum.get_translator() aurum.farming.register_crop("aurum_farming:carrot", { texture = "aurum_farming_carrot", description = S"Carrot", max = 3, seed = {}, product = { groups = {edible = 7, dye_source = 1, color_orange = 1}, on_use = minetest.item_eat(7), }, drops = function(i) if i == 3 then ...
print("Hello World") return 1
ELONA.data:add( "core.chara", { foo = {}, } ) ELONA.data:add( "core.item", { foo = {}, } )
yatm.fluids.fluid_registry.register("yatm_foundry", "molten_copper", { description = "Molten Copper", groups = { molten = 1, metal = 1, molten_metal = 1, }, tiles = { source = "yatm_molten_copper_source.png", flowing = "yatm_molten_copper_flowing.png", }, fluid_tank = { groups = {...
-- PVP STUFF function GetTycoon(player) for i,v in pairs(workspace.Tycoons:GetChildren()) do if game.Players:FindFirstChild(v.Owner.Value) == player then return v end end return nil end local function CreatePermTag(Permission, Parent) local Tag = Instance.new("BoolValue") Tag.Name = Permission Tag.Parent ...
local port = require "oil.port" local comp = require "oil.component" local base = require "oil.arch.corba.server" module "oil.arch.corba.intercepted.server" RequestListener = comp.Template({ interceptor = port.Receptacle, }, base.RequestListener)
local a_dom=nil local font = guiCreateFont(":psz-gui/font/font.ttf",20) if not font then font="default-bold-small" end local md = {} md.win = guiCreateWindow(0.29,0.26,0.41,0.27,"Dom",true) guiWindowSetMovable(md.win,false) guiWindowSetSizable(md.win,false) md.lbl_dom = guiCreateLabel(0.28,0.10,0.46,0.08,"Opi...
local source = {...} local template = "_source/template/main.lhtml" local site_vars = require '_deployment.site_vars' site_vars.init() -- read file, apply theme, do stuff for _,filepath in ipairs(source) do print() print("READING: " .. filepath) print() local file, e = io.open(filepath, "r") local fileinfo...
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { underline = true, virtual_text = { prefix = "~", spacing = 4, }, signs = true, update_in_insert = false, }) vim.fn.sign_define( "DiagnosticSignError", { text = "", texthl = "DiagnosticErr...
-- -- Useful code snips -- some own ones, some collected from the lua wiki -- -- 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 right...
return { id = "face_epic", price = 750, onSale = true, }
local Spell = { } Spell.LearnTime = 360 Spell.Category = HpwRewrite.CategoryNames.Special Spell.ApplyFireDelay = 0.4 Spell.Description = [[ Vaporizes your body and sends the vapor wherever you want. ]] Spell.ForceAnim = { ACT_VM_PRIMARYATTACK_5 } Spell.NodeOffset = Vector(-392, -618, 0) local speed = 4000 local ...
-- lifted from https://gist.github.com/rjhilgefort/07ce5cdd3832083d7e94113d54372b1c local sendEscape = true local ctrlKeyTimer = hs.timer.delayed.new(0.15, function() sendEscape = false end) local lastMods = {} local flagsChangedHandler = function(event) local newMods = e...
function checkfornumbers(str) a = string.find(str, "%a") if a > 0 then return true else return false end end if checkfornumbers("Ololol") == true then print("True") else print("False") end
--[[ Hero selection module for D2E. This file basically just separates the functions related to hero selection from the other functions present in D2E. ]] --Constant parameters SELECTION_DURATION_LIMIT = 30 --Class definition if HeroSelection == nil then HeroSelection = {} HeroSelection.__index = HeroSelection e...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local quote = {} local mattata = require('mattata') local json = require('dkjson') local redis = require('libs.redis') function quote:init() quote.commands = mattata...
if not modules then modules = { } end modules ['lang-exc'] = { version = 1.001, comment = "companion to lang-ini.mkiv", author = "Hans Hagen", copyright = "ConTeXt Development Team", license = "see context related readme files", dataonly = true, } -- Here we add common exceptions. Thi...
local V = { Name = "GMC Syclone", Class = "prop_vehicle_jeep", Category = "TDM Cars", Author = "TheDanishMaster, freemmaann, Turn 10", Information = "A drivable GMC Syclone by TheDanishMaster", Model = "models/tdmcars/gmc_syclone.mdl", //Vehicle Controller VC_Lights = { //Pos can be a simple Ve...
math.random({{Tale_Condition_RandomValue_MinValue}}, {{Tale_Condition_RandomValue_MaxValue}}) {{Tale_Condition_RandomValue_Operator}} {{Tale_Condition_RandomValue_CompareValue}}
------------------ -- Wizard class -- ------------------ -- -- No Issue Yet -- pclasses.api.register_class("wizard", { on_assigned = function(pname, inform) if inform then -- minetest.sound_play("pclasses_full_wizard", {to_player=pname, gain=1}) minetest.chat_send_player(pname, "You are now a wizard.") end ...
if mods["base"] then liquify2.create(data.raw["item"]["coal" ], {r=038, g=038, b=038}, 010); -- color: "coke" (the bottle looks to dark with coal) liquify2.create(data.raw["item"]["stone" ], {r=193, g=143, b=053}, 010); liquify2.create(data.raw["item"]["iron-ore" ], {r=070, g=124, ...