content
stringlengths
5
1.05M
ardour { ["type"] = "EditorAction", name = "Toggle All Plugins and Sends", license = "MIT", author = "Lorenzo Gabriele", description = [[Toggle all Plugins and sends on all tracks]] } function factory () return function () if deactivating_lolgab == nil then deactivating_lolgab = 1 end if al...
local table = Elona.require("table") local string = Elona.require("string") local remove = {} local redirect = {} for key, asset in pairs(data.raw["core.asset"]) do if asset.file then if string.match(asset.file, "^__core__") then table.insert(remove, key) elseif string.match(asset.file, "^__BUI...
minetest.register_tool("rangedweapons:forcegun", { description = "" ..core.colorize("#35cdff","Force gun\n") ..core.colorize("#FFFFFF", "Completelly harmless... by itself...\n")..core.colorize("#FFFFFF", "It's projectile will push either the entity it hits directly, or everyone near the node it collides with far away...
--[[ Copyright (C) 2015 Real-Time Innovations, Inc. 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...
Player = Player or {} --- add a upgrade display for the engineering station --- @deprecated The integration will probably change, because I think having some kind of menu structure might be the better option --- @param self --- @param player PlayerSpaceship --- @param config table --- @field label string the label f...
return Import("ga.CoreByte.CoreBase.Database")
ENT.Base = "dronesrewrite_base" ENT.DrrBaseType = "walker" ENT.Type = "anim" ENT.PrintName = "PLOT-130" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "Drones Rewrite" ENT.AdminOnly = true ENT.UNIT = "PLOT" ENT.Model = "models/dronesrewrite/plotdr/plotdr.mdl" ENT.Weight = 4000 ENT.SpawnHeight = 32 EN...
return {'fade','fading','fado','fadozangeres','fadime','fados','fadozangeressen','fadimes'}
local Llama = require(script.Parent.Parent.Vendor.Llama) local StudioStyleGuideColors = Enum.StudioStyleGuideColor:GetEnumItems() local StudioStyleGuideModifiers = Enum.StudioStyleGuideModifier:GetEnumItems() local CONSTANTS = { TextBox = { Font = Enum.Font.SourceSansSemibold; }; } local function GetTheme() ---@...
local BulletTear = Projectile:extend("BulletTear") function BulletTear:new(x, y, dir) BulletTear.super.new(self, x, y) self:setImage("bosses/emotilord/tear") self.dir = dir self.velocity.x = _.random(230, 600) * dir self.rotate = 1 * dir self.angleOffset = PI * -dir self.velocity.y = _.random(-300, -500) sel...
resource_manifest_version "77731fab-63ca-442c-a67b-abc70f28dfa5" this_is_a_map 'yes' files { 'shellpropsv5.ytyp' } data_file 'DLC_ITYP_REQUEST' 'shellpropsv5.ytyp'
local defensiveModule = require "module.DefensiveFortressModule" local View = {}; function View:Start() self.root=CS.SGK.UIReference.Setup(self.gameObject) self.view=self.root.view end function View:InitData(data) self.BossData=data and data.BossData self.LastHP=data and (data.LastHP>=0 and data.LastHP or 0) se...
-- yleaf(yaroot@gmail.com) if GetLocale() ~= "zhCN" then return end local L = DBM_SpellsUsed_Translations L.TabCategory_SpellsUsed = "冷却助手" L.AreaGeneral = "常规设置" L.Enable = "开启冷却计时" L.Show_LocalMessage = "显示本地提示" L.Enable_inRaid = "只显示团队成员的冷却信息" L.Enable_inBattleground = "战场中同样启用" L.Enable_Portal...
--[[ 和STL map 不同的是,这并不能指定类型 ]] _ENV=namespace "container" using_namespace "luaClass" ---@class map local map=class ("map"){ public{ FUNCTION.map; FUNCTION.del; FUNCTION.has; FUNCTION.get; FUNCTION.insert; FUNCTION.onFun; FUNCTION.siz...
local api = vim.api local utils = {} -- Function taken from NvimChad utils.map function(mode, lhs, rhs, opts) local options = {noremap = true, silent = true} if opts then options = vim.tbl_extend("force", options, opts) end api.nvim_set_keymap(mode, lhs, rhs, options) end utils.nmap function(...
local function FixLazers() for k,v in pairs(ents.FindByClass("env_laser")) do local ts = v:GetSaveTable().LaserTarget if(ts && ts != "") then local t = ents.FindByName(ts)[1] if(t) then local tp = t:GetParent() t:SetParent(nil) --source doesn't enjoy moving things that have parents local p = v:Ge...
local g_ForbWords = {} function CsPreprocessStr(str) local offsets = {} for i = 1, #str do table.insert(offsets, i) end str = str:lower() local tmp = 0 str = str:gsub('()#%x%x%x%x%x%x', function(idx) table.removeMultiple(offsets, idx - tmp, 7) tmp = tmp + 7 return '' end) tmp ...
require 'nn' -- Network-in-Network -- achieves 92% with BN and 88% without local model = nn.Sequential() local function Block(...) local arg = {...} model:add(nn.SpatialConvolution(...)) model:add(nn.SpatialBatchNormalization(arg[2],1e-3)) model:add(nn.ReLU(true)) return model end Block(3,192,5,5,1,1,2,2)...
------------------------------------------------------------------------------------------- -- -- raylib [shapes] example - Draw raylib custom color palette -- -- This example has been created using raylib 1.6 (www.raylib.com) -- raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) ...
LinkLuaModifier( "modifier_animation_translate_permanent_string", "libraries/modifiers/modifier_animation_translate_permanent_string.lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier("modifier_arcana_dbz", "modifiers/modifier_arcana_dbz.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_arcana_rockelec", "modifi...
-- Item data (c) Grinding Gear Games return { -- Weapon: One Handed Mace [[ 裂颅【仿品】 刚猛巨锤 等级需求: 40, 131 Str 联盟: 夺宝奇兵 固定基底词缀: 1 敌人被晕眩时间延长 30% -5000 命中值 此武器进行的所有攻击皆是暴击 ]], [[ 康戈的战炎【仿品】 惧灵重锤 等级需求: 67, 212 Str replica: true 联盟: 夺宝奇兵 固定基底词缀: 1 有 25% 几率使晕眩时间延长 1 倍 附加 (43-56) - (330-400) 基础物理伤害 暴击后获得 4 秒的【猛攻】状态 +(15-20)% 所有元素...
--[[TODO Player needs to be able to do the following to a book (ignoring the gui/input): -Favourite -Like -Dislike -Mark as read -Mark as unread -Add to book pouch To support that functionality, we need client side functions that signal remotes that the server side is listening to. ]] local ReplicatedStorage = g...
function init() setName("Colorizer") setDesc("Colors texture") setSize(108, 24+64+8+4+18+18+18+18+7+4) addOutput(24+32) addInput("Texture", 24+64+8+8) addCRamp(24+64+8+18+4) end function apply() colorize() end
local lpeg = require('lpeg') -- Copyright 2006-2020 Robert Gieseke. See License.txt. -- NSIS LPeg lexer -- Based on NSIS 2.46 docs: http://nsis.sourceforge.net/Docs/. local lexer = require('syntaxhighlight.textadept.lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S ...
require "Car" require "Utils" -- Mutation constants local WheelRadiusMutRange = 6 local WheelShapeIndexMutRange = 2 -- wheel's position local BodySideMutRange = 10 -- These parameters are not mutable! local BodyNumSides = 10 local BodyDensity = 4 local BodySideMin = 25 local BodySideMax = 80 local WheelD...
-- Keeps track of all the actions that were performed so they can be played -- back on new clients. return { new = function() return {} end }
local playsession = { {"ManuelG", {431500}}, {"ISniffPetrol", {395529}}, {"ZeroBeta", {425055}}, {"MovingMike", {421569}}, {"tykak", {420446}}, {"rlidwka", {137626}}, {"Zorin862", {397623}}, {"jackazzm", {404602}}, {"Arnietom", {180087}}, {"OmegaLunch", {382662}}, {"guruthrill", {369655}}, {"Vegadyn", {3108...
local _M = {} local sayHi = function() print("Hi,I'm from myluamodule.") end _M.sayHi = function() sayHi() end return _M
local root = script.Parent.Parent local includes = root:FindFirstChild("includes") local BuiltInPalettes = require(includes:FindFirstChild("BuiltInPalettes")) local Roact = require(includes:FindFirstChild("Roact")) local Components = root:FindFirstChild("Components") local ColorBrewerPalettes = require(Components:Fin...
local map = vim.api.nvim_buf_set_keymap local noremap = { noremap = true } map(0, "n", "h", "<Plug>(dirbuf_up)", noremap) map(0, "n", "l", "<Plug>(dirbuf_enter)", noremap)
----------------------------------- -- -- -- ----------------------------------- function onEffectGain(target,effect) target:recalculateAbilitiesTable() local bonus = effect:getPower() local regen = effect:getSubPower() target:addMod(tpz.mod.WHITE_MAGIC_COST, -bonus) target:addMod(tpz.mod.WHITE_MA...
local ServerData local NeedRefresh = false net.Receive("FScript.ViewCharacterDatabase.SendServerData", function() ServerData = net.ReadTable() NeedRefresh = true end) net.Receive("FScript.ViewCharacterDatabase.OpenMenu", function() local DermaFrame = vgui.Create("DFrame") DermaFrame:SetSize(FScript.ResponsiveWidt...
-- Our base collectable basecollectable = { sprite = 10, x = 0, y = 0, width = 1, height = 1, dy = 0, box = { xleft = 1, xright = 5, yup = 0, ydown = 7 }, floaty = 0, floatingup = true, maxlifespan = 60 * 4, lifespan = 0, floatheight = 2, cashtype = false, healthtype = fals...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmADnD1() local obj = GUI.fromHandle(_obj_newObject("for...
vim.cmd([[set runtimepath=$VIMRUNTIME]]) vim.cmd([[set packpath=/tmp/nvim/site]]) local package_root = '/tmp/nvim/site/pack' local install_path = package_root .. '/packer/start/packer.nvim' -- IMPORTANT: update the sumneko setup if you need lua language server -- I installed it in '/github/sumneko/lua-language-server...
--[[ (C) Copyright 2014 William Dyce All rights reserved. This program and the accompanying materials are made available under the terms of the GNU Lesser General Public License (LGPL) version 2.1 which accompanies this distribution, and is available at http://www.gnu.org/licenses/lgpl-2.1.html This library is distri...
 --A reference to all of the dialogue triggers in the level --The property should be the parent object of all of the triggers local dialogueTriggers = script:GetCustomProperty("Triggers"):WaitForObject():GetChildren() --Table for storing the event listeners of each trigger local interactionListeners = {} function O...
-- Globally defined because these will be used literally everywhere class = require 'lib.hump.class' gs = require 'lib.hump.gamestate' vector = require 'lib.hump.vector' inspect = require 'lib.inspect.inspect' bump = require 'lib.bump.bump' function math.sign(x) if x < 0 then return -1 end return ...
local fn = vim.fn local M = {} local p = { single = "'(.-)'", double = '"(.-)"', } ---Take a users command arguments in the format "cmd='git commit' dir=~/dotfiles" ---and parse this into a table of arguments ---{cmd = "git commit", dir = "~/dotfiles"} ---@see https://stackoverflow.com/a/27007701 ---@param args ...
--[[ TheNexusAvenger Creates buffer and non-buffer slingshot ammo. --]] local SlingshotBallCreator = {} local Tool = script.Parent local Handle = Tool:WaitForChild("Handle") local SlingshotBallScript = script:WaitForChild("SlingshotBallScript") local PlayerDamagerScript = Tool:WaitForChild("PlayerDamager") local Co...
data:extend({ { type = "item", name = "train-tracker", icon = "__Vehicle_Radar__/graphics/radar2_icon.png", icon_size = 32, subgroup = "transport", order = "a[train-system]-x[train-tracker]", place_result = "train-tracker", stack_size = 5 }, { type = "item", name = "vehicul...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local M = {} M.config = function() local status_ok, gp = pcall(require, "nvim-gps") if not status_ok then vim.notify "nvim-gps not found" return end gp.setup { disable_icons = false, -- Setting it to true will disable all icons icons = { ["class-name"] = " ", -- Classes and class-like ...
beremaConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "theme_park_nym_conv_handler", screens = {} } ---------- --Only if player is on nym quest ---------- nym_sent_you = ConvoScreen:new { id = "nym_sent_you", leftDialog = "@celebrity/lok_gambler:nym_sent_you", -- I...
return { "rcarriga/nvim-dap-ui", config = function() local dapui = require("dapui") dapui.setup({ icons = { expanded = "−", collapsed = "+" }, mappings = { -- Use a table to apply multiple mappings expand = { "<CR>", "<2-LeftMouse>" }, open = "o", remove = "d", ...
--Rock libraries console = require 'loveconsole.console' console:initialize({ name = "main", extend = true, buffer_width = 80, buffer_height = 50, font = "res/fonts/press-start-2p.ttf", font_size = 16, }) colors = require 'loveconsole.colors' class = require 'middleclass' --utility functions util = require 'lib.u...
local units = {} units.measures = { ['length'] = dofile('definitions/length.lua'), ['area'] = dofile('definitions/area.lua'), ['mass'] = dofile('definitions/mass.lua'), ['volume'] = dofile('definitions/volume.lua'), ['each'] = dofile('definitions/each.lua'), ['temperature'] = dofile('definition...
local M = {} local map = vim.api.nvim_set_keymap local options = { noremap = true } M.start = function() map('n', '<leader>mb', '<CMD>FloatermNew --autoclose=2 --height=0.9 --width=0.9 btm<CR>', options) -- Bottom app (brew install clementtsang/bottom/bottom) map('n', '<leader>md', '<CMD>FloatermNew --autoclose=...
-------------------------------------------------------------------------------- --[[ Dusk Engine Demo: Spin --]] -------------------------------------------------------------------------------- display.setStatusBar(display.HiddenStatusBar) local textureFilter = "nearest" display.setDefault("minTextureFilter", textur...
-- Cameron K Titus Assignment 4 -- CS331 UAF Spring 2018 -- Based on rdparser4 and assn4_code.txt local parseit = {} lexit = require "lexit" -- For lexer iteration local iter local state local lexer_out_s local lexer_out_c -- For current lexeme local lexyString = "" local lexyCat = 0 -- Symbolic constants for aSe...
function Vector2(x, y) return {x = x, y = y} end function Vector3(x, y, z) return {x = x, y = y, z = z} end function DegToRad(d) return math.pi * d / 180 end init_config_file = "rosbuild_ws/simulator/init_config.lua" -- example of loading human crow scenario configs -- init_config_file = "config/human_crowd_sc...
return { armbats = { acceleration = 0.036, brakerate = 0.093, buildangle = 16384, buildcostenergy = 89150, buildcostmetal = 7004, builder = false, buildpic = "armbats.dds", buildtime = 60000, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, ca...
am.addCMD("ban", "Bans a player", "Administration", function(caller, target, reason, server, duration) local isPlayer = type(target) == "Player" // Notifications if (!duration || duration.seconds == 0) then am.notify(nil, am.green, caller:Nick(), am.def, " has banned ", am.red, isPlayer && target:Nick() || targe...
local lavaSandwich = {} lavaSandwich.name = "MaxHelpingHand/CustomSandwichLava" lavaSandwich.depth = 0 lavaSandwich.placements = { name = "lava_sandwich", data = { direction = "CoreModeBased", speed = 20.0, sandwichGap = 160.0, hotSurfaceColor = "ff8933", hotEdgeColor = ...
-- https://github.com/hrsh7th/vim-gindent/blob/ca389426eb111507e56c792894cf3299b6439ced/lua/gindent/syntax.lua local M = {} function M.get_treesitter_syntax_groups(cursor) local bufnr = vim.api.nvim_get_current_buf() local highlighter = vim.treesitter.highlighter.active[bufnr] if not highlighter then return...
ITEM.name = ".454 Casull Ammo" ITEM.model = "models/gmodz/ammo/454.mdl" ITEM.ammo = "454casull" ITEM.ammoAmount = 8 ITEM.maxRounds = 16 ITEM.description = "Ammo box that contains .454 Casull caliber" ITEM.price = 23000 ITEM.rarity = { weight = 20 }
local core = require "core" local command = {} command.map = {} local always_true = function() return true end function command.add(predicate, map) predicate = predicate or always_true if type(predicate) == "string" then predicate = require(predicate) end if type(predicate) == "table" then local cla...
while wait(0.1) do local dir = game.CoreGui.RobloxGui.PlayerListContainer.ScrollList for i,v in pairs(dir:GetChildren()) do if game.Workspace:findFirstChild(v.Name) then local role = game.Players[v.Name].Character:findFirstChild("Role") if role then if role.Value ...
local M = Class(DisplayObject) function M:init(w, h) self.super:init() local assets = assets self:addChild(DisplayShape.new(w, h) :setSource(Pattern.texture(assets:loadTexture("widgets/radiobutton/bg.png")):setExtend(Pattern.EXTEND_REPEAT)) :paint()) local radiobutton = Widget.RadioButton.new({x = 100, y = ...
require "Polycode/Resource" class "GLSLProgram" (Resource) TYPE_VERT = 0 TYPE_FRAG = 1 function GLSLProgram:__index__(name) if name == "type" then return Polycore.GLSLProgram_get_type(self.__ptr) end end function GLSLProgram:__set_callback(name,value) if name == "type" then Polycore.GLSLProgram_set_type(se...
local game = {} game.Game = require("heart.game.Game") return game
m = Map("snmpd") -- SNMP -- s = m:section(NamedSection, "daemon", "snmp", translate("SNMP")) s.anonymous = true en = s:option(Flag, "enabled", translate("Enable SNMP")) en.rmempty = false return m
-- Copyright 2021 HDBSD -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -- -- 2. Redistr...
--战场盛放之花 local m=14010035 local cm=_G["c"..m] function cm.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(cm.tg) e1:SetOperation(cm.op) c:RegisterEffect(e1) e...
local pkg = "/cm/shared/apps/openblas/0.2.14" setenv( "BLASDIR", pathJoin(pkg,"lib")) prepend_path("LD_LIBRARY_PATH", pathJoin(pkg,"lib"))
local mod = get_mod("Squig-Pig") -- Your mod code goes here. -- https://vmf-docs.verminti.de Managers.package:load("units/weapons/player/wpn_empire_handgun_02_t2/wpn_empire_handgun_02_t2_3p", "global") local unit_path = "units/squig_herd/grn_squig_herd_01" local num_inv = #NetworkLookup.inventory_packages local num_...
--[[ Copyright 2021 Bilal2453. 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 agreed to in...
return { transportFever2Path = '/cygdrive/d/Spiele/steamapps/common/Transport Fever 2/res/scripts' }
project "GoogleTest" kind "StaticLib" language "C++" systemversion "latest" targetdir "../../Bin/%{cfg.buildcfg}" --CB: using the unity build file files { "include/gtest/**.h", "scr/**.h", "src/gtest-all.cc" } includedirs { "include", "." } configuration "macosx" linkoptions { "-std=c++...
local assert = require('luassert') local lfs = require('lfs') local check_logs_useless_lines = { ['Warning: noted but unhandled ioctl']=1, ['could cause spurious value errors to appear']=2, ['See README_MISSING_SYSCALL_OR_IOCTL for guidance']=3, } local eq = function(exp, act) return assert.are.same(exp, act)...
local t = require( "taptest" ) local trunc = require( "trunc" ) t( trunc( 1.2 ), 1 ) t( trunc( 1.7 ), 1 ) t( trunc( -2.2 ), -2 ) t( trunc( -2.7 ), -2 ) t()
object_tangible_item_som_frn_holo_mustafarian_a_reward = object_tangible_item_som_shared_frn_holo_mustafarian_a_reward:new { } ObjectTemplates:addTemplate(object_tangible_item_som_frn_holo_mustafarian_a_reward, "object/tangible/item/som/frn_holo_mustafarian_a_reward.iff")
local o = vim.opt local a = 4 -- Indent o.smartindent = true -- I prefer tabs over spaces o.expandtab = false o.tabstop = a o.shiftwidth = a -- Clipboard o.clipboard = "unnamedplus" -- Mouse o.mouse = "a" -- Undo o.undofile = true -- Search o.ignorecase = true o.smartcase = true o.incsearch = true -- Filetypes v...
vim.cmd 'let g:ranger_map_keys = 0' vim.cmd 'let g:gitgutter_map_keys = 0' -- vim.g.tokyonight_style = "night" -- vim.cmd 'hi VertSplit guifg=DarkGrey' -- vim.cmd 'hi BufTabLineActive guibg=bg' -- vim.cmd 'hi lspReference ctermfg=red guifg=red ctermbg=green guibg=green' vim.cmd 'let vim_markdown_preview_pandoc=1' vim.c...
--Override any of these values by using `MyDataStore:SetGlobals(globals)` return { -- Datastore identity TITLE = "global"; VERSION = 0; -- Intervals / tries AUTOSAVE_INTERVAL = 10 * 60; -- Minutes TIMEOUT = 60; -- Seconds before kicking for no data RETRIES_BEFORE_KICK = 3; SAVE_ATTEMPTS = 20; -- Messages E...
local BattleCutscene, super = Class(Cutscene) local function _true() return true end function BattleCutscene:init(group, id, ...) local scene, args = self:parseFromGetter(Registry.getBattleCutscene, group, id, ...) self.move_targets = {} self.waiting_for_text = nil self.waiting_for_enemy_text = nil ...
-- 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_naga_sire...
local eclipse = require "nvim-lsp-installer.core.clients.eclipse" ---@async ---@param receipt InstallReceipt return function(receipt) return eclipse.fetch_latest_jdtls_version():map_catching(function(latest_version) if receipt.primary_source.version ~= latest_version then return { ...
require("zen-mode").setup { window = { width = 121, height = 0.9, options = { signcolumn = "no", number = false, relativenumber = false }, }, plugins = { options = { enabled = true, showcmd = false }, gitsigns = { enabled = true }, tmux = { enabled = true }, }, on_open = function(win) ...
local __exports = LibStub:NewLibrary("ovale/simulationcraft/unparser", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __definitions = LibStub:GetLibrary("ovale/simulationcraft/definitions") local UNARY_OPERATOR = __definitions.UNARY_OPERATOR local BINARY_OPERATOR = __...
require "lmk" require "lmkutil" require "lmkbase" local assert = assert local error = error local io = io local ipairs = ipairs local lmk = lmk local lmkbase = lmkbase local lmkutil = lmkutil local os = os local print = print local tostring = tostring local type = type module (...) add_files = lmk.add_files_local ap...
local flowTable = { "gmod_mcore_test 1", "mat_queue_mode -1", "cl_threaded_bone_setup 1", "cl_threaded_client_leaf_system 1", "r_threaded_particles 1", "r_threaded_renderables 1", "r_queued_ropes 1", "studio_queue_mode 1", "r_decals 2048", "mp_decals 2048", "mat_wateroverlaysize 4", "r_ForceWaterLeaf 0", "...
local Prop = {} Prop.Name = "Twin Apartments 2b" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -5388, -3657, 590 ), Vector( -5247, -3732, 590 ), } GM.Property:Register( Prop )
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Customizing your Character", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/outfit.png"}, {type = CONTENT_TYPES.TEXT, value = "A fun task within the PSoul is the clothing customization of your character. To open the clothes w...
-- Written by bc1 using Notepad++ local GameInfo = GameInfoCache -- warning! booleans are true, not 1, and use iterator ONLY with table field conditions, NOT string SQL query local max = math.max local format = string.format local tostring = tostring local IsMultiplayerGame = PreGame.IsMultiplayerGame local GetActiv...
local function lol(gfx) local items = newItemList() items:add(newEItem('spawn',5,6,gfx)) items:add(newEItem('goal',8,7,gfx)) items:add(newEItem('score',26,21,gfx)) local decs = {} decs[1] = {1, 5, 7} decs[2] = {1, 6, 7} decs[3] = {1, 7, 7} local nmys = {} nmys[1] = {5, 11, 4} nmys[2] = {5, 12, 4} nmys[3] = {5, 14, 5} n...
Spring.Utilities = Spring.Utilities or {} ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- -- bool deep: clone subtables. defaults to false. not safe with circular tables! function Spring.Utilities...
local brokeAllowanceGuide= { name="brokeAllowanceGuide",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shiled",type=0,typeName="Image",time=105625572,x=276,y=197,width=1,height=1,nodeAlign=kAlignTopLeft,visible=1,fillParent...
--[[ A debug session is created when a player starts debugging a specific contraption. Although multiple debug session can be active at the same time, a single player can only have one debug session enabled, and any entity can only be inside one debug session. Modifications to a contraption whilst a debug session is ...
local cjson = require "cjson" local basic_serializer = require "kong.plugins.log-serializers.basic" local BasePlugin = require "kong.plugins.base_plugin" local StdoutLogHandler = BasePlugin:extend() StdoutLogHandler.PRIORITY = 9 StdoutLogHandler.VERSION = "0.0.1" function StdoutLogHandler:new() StdoutLogHandler.su...
return { -- A request line can parse to something invalid. INVALID_REQUEST_LINE = 1, -- HTTP method is not implemented. METHOD_NOT_IMPLEMENTED = 2, -- HTTP version is not supported. VERSION_NOT_SUPPORTED = 3, }
return { HOOK_PLAYER_FISHED = { CalledWhen = "A player gets a reward from fishing.", DefaultFnName = "OnPlayerFished", -- also used as pagename Desc = [[ This hook gets called after a player reels in the fishing rod. This is a notification-only hook, the reward has already been decided. If a plugin needs to ...
cfg.debug = true cfg.wifi_check_count = 5 cfg.wifi_check_interval = 1000 cfg.submit_interval = 15000 cfg.thingspeak_api_key = '0123456789ABCDEF' cfg.graphite_host = 'example.com' cfg.graphite_port = 2003 cfg.elastic_url = 'http://example.com/' cfg.elastic_index = 'sensors' cfg.elastic_auth = '01234567890123456789012345...
-- MONKEY: guarda a imagem, posicao inicial e dimensoes local img = canvas:new('monkey.png') local dx, dy = img:attrSize() local monkey = { img=img, x=10, y=10, dx=dx, dy=dy } -- BANANA: guarda a imagem, posicao inicial e dimensoes local img = canvas:new('banana.png') local dx, dy = img:attrSize() local banana = { img...
slot2 = "SlwhJettonCcsView" SlwhJettonCcsView = class(slot1) SlwhJettonCcsView.onCreationComplete = function (slot0) slot8 = slot0.view ClassUtil.extends(slot2, slot0, ZoomPopUpChildView, true, slot0, slot0.bg) slot0._layerView = slot0.view slot0._layerJetton = slot0.view.layer_jetton slot0.layerAnimal = slot0....
----------------------------------------- -- ID: 5831 -- Item: Lucid Elixir II -- Item Effect: Restores 75% of HP and MP ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/msg") function onItemCheck(target) if target:getMaxHP() == target:getHP() and target:getMax...
-- Author: Wesley, Duclier and Luis -- Lexical analyser of math language local lexer = {} -- File to be opened local file = nil local reservedWords = {'print'} local currentLine = nil local currentFileLine = 0 local currentFileColumn = 0 local currentState = 'idle' function lexer.parseFile(fileName) --file = io.open...
local function simpleprogram(name) cprogram { name = name, srcs = { "./"..name..".c" }, deps = { "h+emheaders", "modules/src/alloc+lib", "modules/src/data+lib", "modules/src/object+lib", "modules/src/system+lib", } } installable { name = name.."-pkg", map = { ["$(INSDIR)/bin/"..name] =...
require "include/protoplug" attack = 0.005 release = 0.005 polyGen.initTracks(8) pedal = false TWOPI = 2*math.pi local freq = 6*TWOPI/44100 function newChannel() new = {} new.pressure = 0 new.phase = 0 new.f = 0 new.pitch = 0 new.pitchbend = 0 new.vel = 0 return new end channels = ...
local skynet = require("skynet") local socketdriver = require("socketdriver") local queue = require "skynet.queue" local socketfd local TAG = 'BYGATESERVER' local BYGateServer = {} local socket_pool = setmetatable( {}, { __gc = function(p) for id, v in pairs(p) do socketdriver.close(id) -- don't ne...