content
stringlengths
5
1.05M
local g = vim.g g.indentLine_enabled = true g.indentLine_setColors = true
AnimConfig = { } AnimConfig[100001]={id=100001,animName='attack1',fadeTime=0} AnimConfig[100002]={id=100002,animName='attack2',fadeTime=0} AnimConfig[100003]={id=100003,animName='beHit1',fadeTime=0} AnimConfig[100004]={id=100004,animName='beHit2',fadeTime=0} AnimConfig[100005]={id=100005,animName='bowRight',fadeTime=0}...
--item-group if data.raw["item-group"]["bob-logistics"] then data.raw["item-group"]["bob-logistics"].icon = "__morebobs__/graphics/moreshiny/cat/electronics-machine-chip.png" end if data.raw["item-group"]["bob-logistics"] then data.raw["item-group"]["bob-logistics"].icon_size = 128 end if data.raw["item-group"]["bob-ge...
require "ISUI/ISUIElement" ---@class ISButtonPrompt : ISUIElement ISButtonPrompt = ISUIElement:derive("ISButtonPrompt"); local FONT_HGT_LARGE = getTextManager():getFontHeight(UIFont.Large) --************************************************************************-- --** ISPanel:initialise --** --********************...
local peds = { --[[ {205, 376.89, -65.85, 1001.5, 10, 0, 179.37377929688}, {205, 376.89, -65.85, 1001.5, 10, 1, 179.37377929688}, {205, 376.89, -65.85, 1001.5, 10, 2, 179.37377929688}, {205, 376.89, -65.85, 1001.5, 10, 3, 179.37377929688}, {205, 376.89, -65.85, 1001.5, 10, 4, 179.37377929688}, {205, 376.89, -65.8...
local test = require("cp.test") local Retry = require("cp.rx.go.Retry") local Throw = require("cp.rx.go.Throw") local insert = table.insert return test.suite("cp.rx.go.Retry"):with { test("Retry UpTo 10", function() local results = {} local message = nil lo...
local coroutine = require "coroutine" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local wsdd = require "wsdd" description = [[ Retrieves and displays information from devices supporting the Web Services Dynamic Discovery (WS-Discovery...
local R = require "rigel" local RM = require "generators.modules" local f = require "fixed_float" local types = require "types" local T = types local C = require "generators.examplescommon" local J = require "common" local G = require "generators.core" local GAUSS = {14 , 62 , 104 , 62 , 14} local harris = {} local...
return {'rekenhof','rek','rekbaar','rekbaarheid','rekband','rekbank','rekel','reken','rekenaar','rekenaarster','rekenapparaat','rekenarij','rekenautomaat','rekenblad','rekenboek','rekenbord','rekencapaciteit','rekencentrum','rekeneenheid','rekenen','rekenfout','rekening','rekeninghouder','rekeningnummer','rekeningoverz...
require("plugins.fugitive.settings") require("plugins.fugitive.commands")
return { summary = 'Different types of audio devices', description = [[ When referencing audio devices, this indicates whether it's the playback or capture device. ]], values = { { name = 'playback', description = 'The playback device (speakers, headphones).' }, { name = 'captu...
-- -- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- local rl = {...
CreateConVar("_FAdmin_immunity", 1, {FCVAR_GAMEDLL, FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE}); FAdmin.Access = FAdmin.Access or {} FAdmin.Access.ADMIN = {"user", "admin", "superadmin"} FAdmin.Access.ADMIN[0] = "noaccess" FAdmin.Access.Groups = FAdmin.Access.Groups or {} FAdmin.Access.Privileges = FA...
local map = require'util'.map local nmap = require'util'.nmap local imap = require'util'.imap -- Map leader key to Space. map('', '<Space>', '<Nop>') vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- I hate escape more than anything else. imap('jk', '<esc>') -- Horizontal screen scroll. nmap('<c-f>', '10zl') nmap(...
if (SERVER) then AddCSLuaFile ("shared.lua") SWEP.Weight = 5 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if (CLIENT) then SWEP.PrintName = "Flashbang" SWEP.Slot ...
local skynet = require "skynet" require "skynet.manager" local cluster = require "skynet.cluster" local cjson = require "cjson" local date = require "date" local db_helper = require "db_helper" local mysql_utils = require "mysql_utils" local CMD = {} function CMD.start(db) cluster.register("halldbmgr") end funct...
-- Use here only an even value local LINE_SIZE = 79 local printHead = function() print("|" .. string.rep("¯", LINE_SIZE - 2) .. "|\n|" .. string.rep(" ", LINE_SIZE - 2) .. "|") end local printTail = function() print("|" .. string.rep(" ", LINE_SIZE - 2) .. "|\n|" .. string.rep("_", LINE_SIZE - 2) .. "|" ) end local pri...
local defaultParticleProps = require(script.Parent.defaultParticleProps) local Llama = require(script.Parent.Parent.Parent.Parent.Llama) local Types = require(script.Parent.Parent.Types) type GooeyParticleProps = Types.GooeyParticleProps local function reconcileParticleProps(props: GooeyParticleProps): () props = Ll...
require("strict") function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil e...
local ffi = require("ffi") local util = require("pretty-fold.util") local wo = vim.wo local fn = vim.fn local api = vim.api ffi.cdef('int curwin_col_off(void);') local M = { foldtext = {}, -- Table with all 'foldtext' functions. ft_ignore = {} -- Set with filetypes to be ignored. -- config = {} } -- Labels ...
giant_kimogila = Creature:new { objectName = "@mob/creature_names:giant_kimogila", socialGroup = "kimogila", faction = "", level = 300, chanceHit = 30.0, damageMin = 2000, damageMax = 4000, baseXp = 22500, baseHAM = 290000, baseHAMmax = 390000, armor = 2, resists = {135,180,20,180,20,20,200,20,125}, meatTy...
-- Handles the /mobsound command function HandleMobSoundCommand(Split, Player) -- Show usage info is second split is empty if Split[2] == nil then Player:SendMessageInfo("Usage: ".. Split[1] .." <mobtype> <sound>") Player:SendMessageInfo("Available types: bat, blaze, chicken, cow, creeper, enderdragon, enderman, ...
-- Copyright 2006-2021 Mitchell. See LICENSE. -- SQL LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('sql') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Keywords. lex:add_rule...
server = 'http://wigymtv.herokuapp.com/' vertigoMode = false vertigoOrientation = 1 --1=clockwise, -1=counter-clockwise, 0=please dont scale = .5 scrWidth = 1920 scrHeight = 1080 primaryColor = { 0.12941176470588235294117647058824, 0.58823529411764705882352941176471, 0.95294117647058823529411764705882 } -- If it's Li...
-- ========= -- NETWORKER -- ========= Ext.RegisterNetListener('S7_AuxFunctions::UserInfoSync', function (channel, payload) local package = Ext.JsonParse(payload) or {} UserInformation = Integrate(UserInformation, package.UserInfo) UserInformation = Integrate(UserInformation, package.UserSpec) end)
--[[ module:IteratorTest author:DylanYang time:2021-02-18 01:33:59 ]] local BookShelf = require("patterns.behavioral.iterator.BookShelf") local Book = require("patterns.behavioral.iterator.Book") local super = require("patterns.BaseTest") local _M = Class("IteratorTest", super) function _M.protected:DoExe...
--荒神仪-花武神 local m=14000245 local cm=_G["c"..m] cm.named_with_war=1 function cm.initial_effect(c) --tograve local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) ...
local PID = {} local Common = game.ReplicatedStorage.Pioneers.Common local Util = require(Common.Util) local defaultPIDInfo = {PreviousError = 0, I = 0, SetPoint = 0, Kp = 0.03, Ki = 0, Kd = 0} function PID.getValue(info, input, dt) assert(info, "invalid info passed to PID.getValue") assert(input, "invalid...
RegisterKeyMapping('fish', 'Start Fishing', 'keyboard', FishingConfig.key) local MessageColor = { success = 210, warning = 180, error = 160, info = 0 } ClFishing = { TestingProgressActive = false, PromptActive = false, ShowMessage = function(message, messageType) BeginTextCommandTh...
-- alnbox, alignment viewer based on the curses library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use describe("alnbox.makePair", function() it("converts pair of colors to pair number", function() local makePair = require 'alnbox.makePair' assert.equal(7, makePair(0, 0...
class("GuildGetSupplyAwardCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() if not getProxy(GuildProxy):getData() then return end if not slot4:isOpenedSupply() then pg.TipsMgr:GetInstance():ShowTips(i18n("guild_supply_no_open")) return end if slot4:getSupplyCnt() <= 0...
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "MeetMe - Common Settings", "Common settings for MeetMe phone conferences.") meetme = cbimap:section(TypedSection, "meetmegeneral", "General MeetMe Options") meetme.addremove = false m...
--[[ geometric intersection routines from simple point tests to shape vs shape tests optimised pretty well in most places. options for boolean or minimum separating vector results continuous sweeps (where provided) also return the time-domain position of first intersection TODO: refactor vector storage to be...
local ESX = exports["es_extended"]:getSharedObject() local spawnedTrees = {} CreateThread(function () local p = promise.new() for i = 1, #Config.Trees do ESX.OneSync.SpawnObject(Config.Trees[i].model, Config.Trees[i].coords.xyz, Config.Trees[i].coords.w, function(entity) spawnedTrees[#spawnedTrees...
local player = {} local bw = 36 local bh = 64 function player.initialize() player.dir = 'right' player.bufferWidth = bw player.bufferHeight = bh player.buffer = {x=0,y=0} player.pos = {x=0,y=0} player.vel = {x=0,y=0} player.runSpeed = 200 player.jumpVel = -375 player.width = 24 player.height = 36 ...
-- Data Service -- Crazyman32 -- February 3, 2017 --[[ Server: PLAYER DATA METHODS: DataService:Set(player, key, value) DataService:Get(player, key) DataService:Remove(player, key) DataService:OnUpdate(player, key, callback) DataService:Flush(player) DataService:FlushKey(player, key) DataS...
local minionAssigner = {} local btnsDir = "ui/actions"; local transName = "highTrans"; function minionAssigner:init(context, layer) self.context = context; self.layer = layer; --self.uiConst = context.uiConst; local uiConst = context.uiConst; local bounds = context.displayBounds...
require("strict") local hook = require("Hook") local dbg = require("Dbg"):dbg() local mapT = { grouped = { ['/Compilers/'] = "Complr Dep. ", ['/Core.*'] = "Core Modules", }, } function avail_hook(t) local availStyle = masterTbl().availStyle dbg.print{"avail hook called: availStyle: ",av...
local api = vim.api local user_options = require('sqls.user_options') local M = {} local function show_results_handler(mods) return function(err, _, result, _, _, _, _) assert(not err, err and err.message) local bufnr = api.nvim_create_buf(false, true) api.nvim_buf_set_lines(bufnr, 0, 1, ...
-- -- tests/actions/vstudio/cs2005/propertygroup.lua -- Validate configuration <PropertyGroup/> elements in Visual Studio 2005+ .csproj -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_cs2005_propertygroup = { } local suite = T.vstudio_cs2005_propertygroup local cs2005 = premake...
lure.dom = {} -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function lure.dom.init() -- NODE TYPE DEFINITIONS lure.dom.nodeTypes = {} lure.dom.nodeTypes[1] = "ELEMENT_NODE" lure.dom.nodeTypes[2] = "ATTRIBUTE_NODE" lure.dom.nodeTypes[3] = "TEXT_NODE" lure.dom.nodeType...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { AchieveCfg = { { Dec = "Chapter 1", Id = 1, Param = { 280103 }, Reward = { { 1001002, 50 }, ...
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## --]] --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; --[[ ADDON ]]-- local SV = _G['SVUI']; lo...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Grimrail Enforcers", 1195, 1236) if not mod then return end mod:RegisterEnableMob(80805, 80808, 80816) -- Makogg Emberblade, Neesa Nox, Ahri'ok Dugru mod.engageId = 1748 mod.respa...
local filter_info = [==========[This is filter version 202010012000 This software is Copyright (c) 2020 by Benct Philip Jonsson. This is free software, licensed under: The MIT (X11) License http://www.opensource.org/licenses/mit-license.php ]==========] local concat, insert, remove, pack, unpack do local _obj_0...
vim.cmd [[ hi ErrorMsg ctermfg=Red ctermbg=237 ]]
// RAWR! hook.Add("CheckPassword", "MyPublicId_CheckPassword", function(steamid64, ipAdd, svPassword, clPassword, name) if (mypublicid.TestID(steamid64) == false) then return false, mypublicid.config.message end // We won't return true ever, let other hooks have a try. // We only p...
--[[ Copyright (c) 2013, Ricky Gall All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
local doc = [[Usage: run stat.lua < file -- report summary statistics of each line -- any blank lines will be skipped]] if select('#', ...) > 0 then print(doc); return end local a, sum, NR = {}, 0, 0 local tonumber = tonumber for x in io.lines() do x = tonumber(x) if x then sum = sum + x ...
require "utils" Visitor = {} function Visitor.new() self = {} self.args = {} self.locals = {} self.variables = {} setmetatable(self, Visitor) Visitor.__index = Visitor return self end Expr = {} function Expr.new(kind) self = {} self.kind = kind setmetatable(self, Expr) ...
local _servers = { {0,"202.134.87.4", "", "Diyixian.com Limited - (HK)"}, {0,"169.255.152.118", "", "ALBIDEYNET - Bongor (TD)"}, {0,"89.221.2.168", "", "net-and-phone GmbH - Essen (DE)"}, {0,"122.155.6.206", "", "CAT Telecom Public Company Limited - (TH)"}, {0,"5.83.92.254", "84.236.142.130", "ServiHosting...
package.path = package.path .. ";../?.lua" require "HelpHandler" HelpHandler.name("TestApp") --This must also come before HelpHandler.handle, however it doesn't matter if it's called/set before or after HelpHandler.version() HelpHandler.version("1.0") HelpHandler.handle("usage: help dialogue example")
ccexp = ccexp or {} ---TMXLayer object ---@class TMXLayer : Node local TMXLayer = {} ccexp.TMXLayer = TMXLayer -------------------------------- --- Returns the position in points of a given tile coordinate.<br> ---param tileCoordinate The tile Coordinate.<br> ---return The position in points of a given tile coordinate...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.test_helpers.file_assertions", function() it("can assert that a file exists", function() assert.file_exists("moonpie/test_helpers/file_assertions.lua") ...
#!/usr/local/openresty/bin/resty -- Copyright (C) 2017 by chrono print(type(jit)) print(jit.version) print(jit.version_num) print(jit.os) print(jit.arch) print(jit.status())
return(function(l,...)local p="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local n=l[.8426667679299912];local I=l[((#{}+734288875))];local d=l[(583361843)];local x=l[((#{657;430;}+358058720))];local F=l[(678045180)];local B=l[(426718132)];local G=l['WitzB'];local c=l[((#...
------------------------------------------------------------------------------ -- Configuration System (global, transient, hierarchical key=value store) ------------------------------------------------------------------------------ -- Gathers vars from the command-line, config files and environment. -- Initial scope hi...
describe("crossplot MainKeyValueStoreBasedEventBus", function() local eaw_env = require("spec/eaw_env") local require_utilities = require("spec/require_utilities") before_each(function() eaw_env.setup_environment() require_utilities.replace_require() require("crossplot/KeyValueStore...
----------------------------------- -- Area: Metalworks -- NPC: Kaela -- Type: Adventurer's Assistant -- !pos 40.167 -14.999 16.073 237 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) ...
local lua_zip = require "luazip" local t = {} t["1.txt"] = "a" t["2.txt"] = "b" local str = lua_zip.zip_to_string(t) local file=assert(io.open("1.zip","wb")) file:write(str) file:close()
function EFFECT:Init(data) local ent = data:GetEntity() local radius = data:GetRadius() local magnitude = data:GetMagnitude() local reversed = tobool(data:GetColor()) local color = reversed and LIB_APERTURE.FUNNEL_REVERSE_COLOR or LIB_APERTURE.FUNNEL_COLOR local dir = reversed and -1 or 1 if not self.Emitter t...
--------------------------------------------- -- Orcish Counterstance -- Used only by Orcs in Wings of the Goddess Areas. -- Certain NMs may have a higher power version of the tpz.effect. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") require("s...
hook.Add("LoadFonts", "ixCombineViewData", function() surface.CreateFont("ixCombineViewData", { font = "Courier New", size = 16, antialias = true, weight = 400 }) end) local animationTime = 1 DEFINE_BASECLASS("DFrame") local PANEL = {} AccessorFunc(PANEL, "bCommitOnClose", "CommitOnClose", FORCE_BOOL) fu...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
snet.REQUEST_LIFE_TIME = snet.REQUEST_LIFE_TIME or 2 snet.REQUEST_LIMITS_LIST = snet.REQUEST_LIMITS_LIST or {}
local Object = require "Object" local View = Object:clone() -- a view of one or more nodes in the media library -- a view has a title and icon (displayed at the top), and a list of nodes -- (displayed in the main window) which the user can scroll through. It -- also needs to remember where it is in that list so that i...
-- while a = 10 while (a < 20) do print("a:", a) a = a + 1 end -- for range function f(x) print("f evaluated") return x*2 end for i=1, f(5) do -- f will be only evaluated at the first time print("i", i) end -- for iter a = {"one", "two", "three"} for i, v in ipairs(a) do print("i", i, "v", v) ...
function renoise_note_of (note, octave) return (octave - 1) * 12 + (note - 1) end function frequency_of_renoise_note (note) -- In the formula, A4 is 49 -- For the value calculated above, A4 is 57 local n = note - 57 + 49 return 440 * math.pow(2, (n - 49) / 12) end function name_of_renoise_...
-- 辅助支持表 local cx_help = require"CX_AEG插件辅助函数库" -- 创建合适的函数环境 cx_help.table.merge(_G,cx_help) -- 脚本名 script_name = "复查小助手" -- 脚本描述 script_description = "用于检查当前轴文件可能存在的问题" -- 作者 script_author = "晨轩°" -- CX插件扩展值 -- 脚本签名(同一脚本签名请保持不变,签名不能含特殊字符,防止配置冲突) script_signature = "com.chenxuan.查轴助手" -- 版本号 script_version = "2.0.0" ...
-- MSGD -- Nesterov's momentum, see e.g. Sutskever et al., ICML 2013 -- Author: Sixin Zhang (zsx@cims.nyu.edu) require 'optim' function optim.msgd(opfunc, w, config, state) local config = config or {} local state = state or config local lr = config.lr or 0 local lrd = config.lrd or 0 local lrp = config.lrp ...
-- This file is generated by proto-gen-lua. DO NOT EDIT. -- The protoc version is 'v3.19.2' -- The proto-gen-lua version is 'Develop' local protobuf = require "protobuf.protobuf" local registry = require "protobuf.registry" local imports_test_a_2_m3_pb_desc = require "imports.test_a_2.m3_pb_desc" local imports_test...
-- == Ping == -- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com> -- License: MIT License (see LICENSE file) -- Description: ping -- -- History: -- 2018/01/04: 0.0.1: first version, using net.dns.resolve() for now (that isn't ICMP but we get some number of the network speed) return function(...) table.r...
HC = require 'hardoncollider' function on_collide(dt, shape_a, shape_b) -- determine which shape is the ball and which is not local other if shape_a == ball then other = shape_b elseif shape_b == ball then other = shape_a else -- no shape is the ball. exit return end ...
help([[ For detailed instructions, go to: https://conda.io/docs/ ]]) whatis("URL: https://conda.io/docs/") whatis("Description: Package, dependency and environment management for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN") setenv("ANACONDA_PYTHON", "/opt/anaconda/bin/python") prep...
if not modules then modules = { } end modules ['x-flow'] = { version = 1.001, comment = "companion to m-flow.mkvi", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- when we can resolve mpco...
-- project set_project("quark") -- set xmake minimum version set_xmakever("2.5.1") -- set project version set_version("1.0.0", {build = "%Y%m%d%H%M"}) -- set language set_languages("c99", "cxx20") add_cxxflags("-fcoroutines") -- include project sources includes("src", "test", "demo") task("ie") on_run("script...
return { 'rcarriga/nvim-dap-ui', opt = true, keys = { '<leader>de', '<leader>dv', }, modules = { 'dapui' }, after = { 'nvim-dap' }, config = function () require('plugins.dapui.config') require('plugins.dapui.keys').setup() end, }
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISOvenUITimedAction : ISBaseTimedAction ISOvenUITimedAction = ISBaseTimedAction:d...
-- Keyboard -- Crazyman32 -- December 28, 2017 --[[ Boolean Keyboard:IsDown(keyCode) Boolean Keyboard:AreAllDown(keyCodes...) Boolean Keyboard:AreAnyDown(keyCodes...) Keyboard.KeyDown(keyCode) Keyboard.KeyUp(keyCode) --]] local Keyboard = {} Keyboard.__index = Keyboard local userInput = game:GetSe...
function love.load() playingAreaWidth = 300 playingAreaHeight = 388 pipeSpaceHeight = 100 pipeWidth = 54 birdX = 62 birdWidth = 30 birdHeight = 25 reset() end function reset() birdY = 200 birdYSpeed = 0 pipe1X = playingAreaWidth pipe1SpaceY = newPipeSpaceY() pipe2X = playingAreaWidth + ((pla...
--[[ Disable.lua --]] if app then app:call( Call:new{ name='Disable', async=false, guard=App.guardSilent, main=function( call ) -- _G.enabled = false - obsolete. app:logInfo( app:getAppName() .. " is disabled - it must be enabled for updating and metadata functionality..." ) end } ) end...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local _M = function(role,data) if not data.pos or not data.itemtype then return 2 end data.pos = tonumber(data.pos) data.itemtype = tonumber(data.itemtype) if data.itemtype < 1 or data.itemtype ...
gBinds_Up = {} gBinds_Down = {} _GetKeyName = GetKeyName function GetKeyName (keycode) if keycode == 7 then return "wheelup" end if keycode == 6 then return "wheeldown" end return _GetKeyName(keycode) end function UnbindAll () gBinds_Up = {} gBinds_Down = {} end function BindUp (keyname,fun,arg) gBinds_Up[GetNa...
vision = class({}) function vision:fow_check(unit,location) dummy = CreateUnitByName("npc_dummy_unit", location, false, nil, nil, DOTA_TEAM_NEUTRALS) bool = unit:CanEntityBeSeenByMyTeam(dummy) UTIL_Remove(dummy) return bool end
 function test() local t = {}; table.insert(t, "a"); table.insert(t, "b"); table.insert(t, "c"); table.insert(t, "d"); print("Table Length: " .. #t); return t; end; local t = test(); print("Table LengthR: " .. #t);
local plugin = require("kong.plugins.base_plugin"):extend() local access = require "kong.plugins.aaint.access" function plugin:new() plugin.super.new(self, "aaint") end function plugin:access(plugin_conf) plugin.super.access(self) access.execute(plugin_conf) end plugin.PRIORITY = 900 --after OAuth plugin 100...
-----------------------------------------------------------| --[[ Read Me Everything from systems in strike team to adding Weapons/equipment, GameModes and Lootcrates. #Maps in github Loadout: Lets players Swap weapons and loadouts. Main Game: It is the main game. ...
inspect = require("third_party/inspect") local Vector, Quad, Entity, Static, Background textures, loaded_objects, background_objects, gui, player, size, bounds, time, gdt, game_state = {}, {}, {}, {}, {}, {}, {}, 0, 0, "start_game" Vector = require("modules/Vector") Sprite = require("modules/Sprite") Static ...
local config = { waters = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}, fishable = {4608, 4609, 4610, 4611, 4612, 4613, 7236}, spawning = {4614, 4615, 4616, 4617, 4618, 4619}, holes = {7236}, corpses = { [10499] = {...
pin = 7 status, temp, humi, temp_dec, humi_dec = dht.read(pin) temp = (temp*9)/5 + 32 if status == dht.OK then -- Float firmware using this example print("DHT Temperature:"..temp..";".."Humidity:"..humi) elseif status == dht.ERROR_CHECKSUM then print( "DHT Checksum error." ) elseif status == dht.ERROR_TI...
return { width = 12, height = 12, ground = { 0, 0, 0, 0, 0, 2, 3, 3, 0, 0, 0, 0, 0, 0, 2, 0, 1, 2, 0, 3, 3, 0, 0, 0, 0, 2, 3, 2, 3, 3, 3, 2, 2, 0, 0, 0, 1, 3, 1, 3, 0, 3, 1, 3, 1, 2, 0, 0, 3, 2, 3, 2, 2, 1, 2, 3, 2, 1, 1, 0, 2, 0, 3, 3, 2, 1, 1, 1, 2, 2, 2, 0, 1, 2, 3, 3, 3, 2, 1, 1, 2, 3, 2, 0, 0, 0...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local TestEZ = require(ReplicatedStorage.Modules.TestEZ) local Otter = ReplicatedStorage.Modules.Otter TestEZ.TestBootstrap:run({ Otter }, TestEZ.Reporters.TextReporter)
local dl = require 'dataload._env' local DataLoader = torch.class('dl.DataLoader', dl) function DataLoader:index(indices, inputs, targets, ...) error"Not Implemented" end function DataLoader:sample(batchsize, inputs, targets, ...) self._indices = self._indices or torch.LongTensor() self._indices:resize(batch...
AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "" ENT.Author = "" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.uniqueID = "" ENT.model = "" ENT.amount = 0 function ENT:Initialize() self:SetModel( self.model ) self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_V...
local m = {} local log = require("common.log") local sec_tick = require("common.sec_tick") local msg_define = require("common.msg_define") local event = require("common.event") m.tables = {} m.tick_id = nil function m.create_big_table(name, after_load_fun) if m.tables[name] then log.Error("create_big_table reper...
function onCreate() makeLuaSprite('Exesky', 'Exesky', -800, -500); setScrollFactor('Exesky', 0.9, 0.9); makeLuaSprite('Execorpse', 'Execorpse', 350, 500); setScrollFactor('Execorpse', 0.9, 0.9); scaleObject('Execorpse', 0.9, 0.9); makeLuaSprite('ExeAnim', 'ExeAnim', -600, -200); setScrollFactor('ExeAnim', ...
ITEM.name = "Mushroom" ITEM.description = "A tasty edible mushroom." ITEM.model = "models/devcon/mrp/props/mushroom_2.mdl" ITEM.height = 1 ITEM.width = 1 ITEM.price = 3 ITEM.functions._eat = { name = "Eat", tip = "Eat", icon = "icon16/arrow_switch.png", OnRun = function(item) local client = item.player cl...
local Suite = require "loop.test.Suite" local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ Worker = { execs = 0 } function Worker:count() return self.execs end function Worker:work(t...
--mysql_agent.lua local mrandom = math.random local router_mgr = quanta.get("router_mgr") local MysqlAgent = singleton() function MysqlAgent:__init() end --发送数据库请求 function MysqlAgent:execute(sql, hash_key, db_name) return router_mgr:call_mysql_hash(hash_key or mrandom(10000), "mysql_execute", db_name o...
-- com_explo return { ["com_explo"] = { usedefaultexplosions = false, fakelight = { air = false, class = [[CSimpleGroundFlash]], count = 4, --4 ground = true, water = false, properties = { colormap ...