content
stringlengths
5
1.05M
--弹窗管理器 local PopupLayerManager = class("PopupLayerManager") local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun") local kMaskLayerName = "popup_layer_mask" function PopupLayerManager:ctor(scene) self._scene = scene self._mask = nil self._layers = {} --self._layerOrderMask = 1000000...
local world = { current_scene, } function world:new (o) o = o or {} -- create object if user does not provide one setmetatable(o, self) self.__index = self return o end function world:load_scene (scene) self.current_scene = scene self.current_scene:initialize() end function world:_update() self.curr...
--final = final drive ratio of car --gearratio[6] = gear ratio in 6th gear --tcircumference = tire circumference gearratio = {} acceleration = 3.7 redline = 6000 final = 3.39 gearratio[1] = 3.37 gearratio[2] = 1.99 gearratio[3] = 1.33 gearratio[4] = 1.00 gearratio[5] = .67 gearratio[6] = 0 tcircumference = 6.65 price...
local Vendor = script.Parent.Parent local Roact = require(Vendor.Roact) local Background = require(script.Parent.Background) return function(target) local element = Roact.createElement(Background) local handle = Roact.mount(element, target) return function() Roact.unmount(handle) end end
#!/usr/bin/env lua local constants = require "kong.constants" local cutils = require "kong.cli.utils" local signal = require "kong.cli.utils.signal" local args = require("lapp")(string.format([[ Restart the Kong instance running in the configured 'nginx_working_dir'. Kong will be shutdown before restarting. For a zer...
package.cpath = "../../luarocks/lib/lua/5.1/?.so;"..package.cpath package.path = "../../.luarocks/share/lua/5.1/?.lua;../../.luarocks/share/lua/5.1/?/init.lua;../../luarocks/share/lua/5.1/?.lua;../../luarocks/share/lua/5.1/?/init.lua;"..package.path local protobuf = require "mumble" local proto = { VERSION=0, UDPTU...
print "[lua] This is runme.lua" -- test program for embedded lua -- we do not need to load the library, as it was already in the interpreter -- but let's check anyway assert(type(example)=='table',"Don't appear to have loaded the example module") -- note: we will copy the functions from example table into global -- th...
--htp2 local storyboard = require( "storyboard" ) local scene = storyboard.newScene() local widget = require( "widget" ) local physics = require("physics"); physics.start(); physics.setScale( 60 ) physics.setGravity( 0, 0 ) physics.setDrawMode( "normal" ) local sfx = require( "sfx" ) local json = req...
--- === cp.config === --- --- Manage CommandPost's constants and settings. local require = require local application = require("hs.application") local console = require("hs.console") local fs = require("hs.fs") local settings = require("hs.settings") local window = require("hs.window") local prop...
---------------------------------------------------------------------- -- This script defines following loss function : -- -- + negative-log likelihood, using log-normalized output units (SoftMax) -- -- Ritambhara Singh ---------------------------------------------------------------------- require 'torch' -- ...
--- Component to block input on specify zone by node -- @module druid.blocker --- Component events -- @table Events -- @tfield druid_event on_click On release button callback -- @tfield druid_event on_enable_change On enable/disable callback --- Component fields -- @table Fields -- @tfield node node Trigger node loc...
-- concommand.Add("bet_place", function(player, cmd, args) -- local targetPlayer = player.GetByAccountID(args[1]) -- local betAmount = tonumber(args[2]) -- local expectedScore = tonumber(args[3]) -- local targetHole = Minigolf.Holes.All[args[4]] -- Wont work since now contains course name as well -- local activeHo...
--@mode customization function sysCall_init() require 'simTest' simulationCount=0 end function sysCall_nonSimulation() simulationCount=simulationCount+1 sim.writeCustomDataBlock(sim_handle_app,'@tmpsimulationCount',sim.packInt32Table{simulationCount}) sim.startSimulation() end function sysCall_se...
---@class RadarPanel : zombie.ui.RadarPanel ---@field private playerIndex int ---@field private xPos float ---@field private yPos float ---@field private offx float ---@field private offy float ---@field private zoom float ---@field private draww float ---@field private drawh float ---@field private mask Texture ---@fi...
fx_version 'cerulean' game 'gta5' description 'QB-TruckRobbery' version '1.0.0' shared_script '@qb-core/import.lua' server_script 'server/main.lua' client_script 'client/main.lua'
function Physic_Special_Pushblock(Map_ID, X, Y, Z) local Player_Number = Map_Block_Get_Player_Last(Map_ID, X, Y, Z) if Map_Block_Get_Type(Map_ID, X, Y, Z-1) == 0 then Map_Block_Move(Map_ID, X, Y, Z, X, Y, Z-1, 1, 1, 5) elseif Map_Block_Get_Type(Map_ID, X, Y, Z-1) ~= 0 then local VX, VY, VZ = 0, 0, 0 local...
erupt_mage = { cast = function(player) local spellName = "Erupt" if not player:canCast(1, 1, 0) then return end local damage = math.ceil(25 + (player.level * 2) + math.floor(((player.will + 1) / 2) * 1.5)) local x = {-1, 0, 1, 0} local y = {0, -1, 0, 1} if (player.magic < 80) then player:sendMin...
-- Notice: All parts of this code is protected -- with following license: -- https://github.com/MishraShivendra/node_mcu_py_email/blob/master/LICENSE.md -- Corporate/commercial usage is restricted. -- Author: Shivendra Mishra -- Environment: Node MCU v0.9 -- Created: 1-Mar-2016 -- Description: -- Following script re...
local ni = require('neural.interface') local Util = require('util') local os = _G.os while true do local target = Util.find(ni.sense(), 'name', '///////') if target then if math.abs(target.x) < 2 and math.abs(target.z) < 2 then ni.lookAt(target) ni.swing() os.sleep(.5) else ...
local lspconfig = require 'lspconfig' local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true -- capabilities.textDocument.completion.completionItem.documentationFormat = { 'markdown' } -- capabilities.textDocument.completion.completion...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('FriendInfoLite_pb', package.seeall) local FRIENDINFOLITE = protobuf.Descriptor(); local FRIENDINFOLITE_UID_FIELD = protobuf.FieldDescriptor(); local FRIENDINFOLITE_NICKNAME_FIELD = protobuf.FieldDescriptor(); local FRIENDINFOLITE_L...
local os = require('os') local math = require('math') -- format - format of a string ('default', 'short' or 'dev') -- available options: -- `stream` - output stream, defaults to stdout -- `immediate` - write log line on request instead of response, defaults to false function logger (format, options) options = opt...
--- File : utils.lua --- Brief : --- Author : Enrico Fraccaroli --- Date : 29/11/2016 --- Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com> --- Permission is hereby granted, free of charge, to any person obtaining a --- copy of this software and associated documentation files (the "Software"), --...
local balls = {} -- no. AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") balls.model = { "models/dav0r/hoverball.mdl", "models/maxofs2d/hover_basic.mdl", "models/maxofs2d/hover_classic.mdl", "models/maxofs2d/hover_rings.mdl" } balls.bombswitch = 0 function ENT:Initialize() self.Enti...
require("turtle") -- For more shapes please refer to: http://www.conwaylife.com/patterns/all.zip io.stdout:setvbuf("no") local life = require("lifelib") local common = require("common") local nTime = 0.02 local W, H, ID = 1000, 500, 2 local tParam = { -- Init via structure -- Init va string {Sta = "ob", Ar...
-- premake4.lua solution "words" configurations { "Release" } include "./lib" include "./tests" include "./utils"
local Addon = select(2, ...) local Menu = Addon:CreateClass('Frame') local L = LibStub('AceLocale-3.0'):GetLocale('Dominos-Config') local nextName = Addon:CreateNameGenerator('Menu') local MENU_WIDTH = 428 local MENU_HEIGHT = 320 function Menu:New(parent) local menu = self:Bind(CreateFrame('Frame', nextName(), p...
local function s(n) local new = game.Lighting.LootDrops[n]:Clone() new.Parent = workspace new:MoveTo(workspace.ThatOneRevenge.Torso.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10))) end t ={"ACOG","M4A1","STANAGAmmo100","STANAGAmmo100","MilitaryPackBlack","EngineParts","ArmorPlates","ScrapMetal"} for i...
local function ccLock(ply, args) if ply:EntIndex() == 0 then print(DarkRP.getPhrase("cmd_cant_be_run_server_console")) return end local trace = ply:GetEyeTrace() local ent = trace.Entity if not IsValid(ent) or not ent:isKeysOwnable() or ply:EyePos():DistToSqr(ent:GetPos()) > 40000 ...
local M = {} M.config = function () require('lualine').setup { options = { theme = 'vscode', }, tabline = {}, sections = { lualine_a = {'mode'}, lualine_b = {{ 'FugitiveHead', icon = '' }, 'diff', 'diagnostics'}, lualine_c = {'filename'}, lualine_x = {'encoding', 'filef...
local ok, hls = pcall(require, "hlslens") if not ok then return end -- The setup method is not working, so have to set calm_down manually hls._config.calm_down = true hls.setup { calm_down = true, } local nmap = vim.keymap.nnoremap nmap { [[<CMD>execute('normal! ' . v:count1 . 'n')<CR>]], [[<CMD>lua require(...
-- Copyright 2016 Google Inc, NYU. -- -- 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 agree...
local mod = DBM:NewMod(1984, "DBM-AntorusBurningThrone", nil, 946) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17553 $"):sub(12, -3)) mod:SetCreatureID(121975) mod:SetEncounterID(2063) mod:SetZone() mod:SetUsedIcons(1, 2, 3, 4, 5) mod:SetHotfixNoticeRev(16964) mod.respawnTime = 25 mod...
module("luci.controller.nps",package.seeall) function index() if not nixio.fs.access("/etc/config/nps") then return end entry({"admin", "services", "nps"}, cbi("nps"), _("Nps Setting"), 100).dependent = true entry({"admin", "services", "nps", "status"}, call("status")).leaf = true end function status() local e...
--- --- Chip Identification --- RK27XX = {} function RK27XX.init() hwstub.soc:select("rk27xx") end require 'rk27xx/lradc'
--[[ 95 Awesome WM config github.com/copycat-killer --]] theme = {} theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/95" theme.wallpaper = theme.dir .....
module(..., package.seeall) local decl = require "tundra.decl" local depgraph = require "tundra.depgraph" local common_blueprint = { Source = { Required = true, Help = "Source filename", Type = "string", }, Target = { Required = true, Help = "Target filename", Type = "string", }, }...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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 $Id$ ]]-- req...
Config = { Controls = { 22, 25, 59, 60, 62, 63, 64, 68, 86, 87, 88, 89, 90, 91, 120, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 136, 249, 266, 267, 268, 269, 278, 279, 280, 281 }, ConfirmTime = 120.0, IdleTime = 1800.0, }
---- -- @file SceneState ---- Brief description. -- <#Description#> -- @return <#return value description#> function SceneState:calculateSerializeBufferSize() end ---- Brief description. -- <#Description#> -- @param btSerializer <#btSerializer description#> -- @return <#return value description#> function SceneStat...
--[=[ Tracks a player's character's humanoid @class HumanoidTracker ]=] local Janitor = require(script.Parent.Parent.Parent.Janitor) local Promise = require(script.Parent.Parent.Parent.Promise) local Signal = require(script.Parent.Parent.Parent.Signal) local ValueObject = require(script.Parent.ValueObject) local Hu...
--Crate minetest.register_craft({ output = 'crates_and_barrels:crate', recipe = { {'','group:wood','group:wood'}, {'','group:wood','group:wood'}, } }) minetest.register_node("crates_and_barrels:crate", { description = "Wood Crate", paramtype2 = "facedir", place_param2 = 0, tiles = {"crates_and_barrels_crat...
object_tangible_saga_system_rewards_planet_hologram_dathomir = object_tangible_saga_system_rewards_shared_planet_hologram_dathomir:new { } ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_planet_hologram_dathomir, "object/tangible/saga_system/rewards/planet_hologram_dathomir.iff")
--[[ Hidden Layer base class --]] local InputLayer = torch.class('dmn.InputLayer') function InputLayer:__init(config) assert(config.emb_dim ~= nil, "Must specify embed dimensions") assert(config.num_classes ~= nil, "Must specify number of classes") assert(config.dropout_prob ~= nil, "Must specify dropout pr...
--- Class for generating (custom) generators. -- @classmod lqc.generator -- @alias Gen local Gen = {} local Gen_mt = { __index = Gen } --- Creates a new generator for generating random values. -- @param pick_func a function that randomly creates a certain datatype. -- @param shrink_func a function that shrinks (sim...
-- 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...
--RoboLang Sparksammy Mystery Rewrite Edition FILE LOADER --I had 0 look at the source code of RoboCode, but knew what it did early on. --So I worked on a "Mystery ReWrite" that I showed only very early progress and when it was finished on to Oklomsy, the creator. --Credit to him for the creation of RoboCode BTW. ...
return { description = "serpent : Lua serializer and pretty printer", homepage = "https://github.com/pkulchenko/serpent", license = "MIT", name = "serpent", require = { luajit = "2.0" }, version = "0.28-103" }
component_interface = "0.0.0.0" component_ports = { 5347 }
----------------------------------------- -- ID: 5254 -- Item: Hyper-Potion -- Item Effect: Restores 250 HP ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") function onItemCheck(target) if (target:getHP() == target:getMax...
#!/usr/bin/env lua -- MoonFreeType example: listcharmaps.lua ft = require("moonfreetype") fontfile = arg[1] if not fontfile then print("Usage: " .. arg[0] .. " <fontfile>") return end -- Create a library: lib = ft.init_freetype() -- Create a face, loading from fontfile: face = ft.new_face(lib, fontfile) -- List all...
require("lib.lclass") class "Component" Component.idCounter = 0 function Component:Component() Component.idCounter = Component.idCounter + 1 self.id = Component.idCounter self.typeName = "ERROR" end function Component:getId() return self.id end function Component:getType() return self.typeName end
local tap = require('util/tap') local util = require('util') local assert = require('assert') local lutils = require('lutils') local test = tap.test test("uv.guess_handle", function(expect, uv) local types = { assert(uv.guess_handle(0)), assert(uv.guess_handle(1)), assert(uv.guess_handle(2)...
env = require('test_run') test_run = env.new() engine = test_run:get_cfg('engine') msgpack = require('msgpack') -- -- gh-1557: box.NULL in indexes. -- box.NULL == msgpack.NULL box.NULL == nil msgpack.decode(msgpack.encode({box.NULL})) format = {} format[1] = { name = 'field1', type = 'unsigned' } format[2] = { nam...
-- Fluidity for Minetest 5.0.0+ -- Copyright (c) 2018 Evert "Diamond" Prants <evert@lunasqu.ee> fluidity = rawget(_G, "fluidity") or {} local mpath = minetest.get_modpath("fluidity") fluidity.modpath = mpath function fluidity.fluid_short(str) return string.lower(str):gsub("%s", "_") end -- Molten metals dofile(mpa...
--[[ desc: Jump, a gear for jump business. author: Musoucrow since: 2018-11-13 ]]-- local _Gear = require("core.gear") local _Easemove = require("actor.gear.easemove") ---@class Actor.Gear.Jump : Core.Gear ---@field protected _transform Actor.Component.Transform ---@field protected _process int ---@field protected...
--[[ FHIR Formats Copyright (C) 2016 Vadim Peretokin 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 la...
local has_telescope, telescope = pcall(require, "telescope") if not has_telescope then error "This extension requires telescope.nvim (https://github.com/nvim-telescope/telescope.nvim)" end if vim.fn.has('python3') == 0 then error('telescope-maven-search requires python3 support, try installing python3-pynvim') e...
-- @file premake5.lua -- ######################################################################### -- Global compile settings -- python tool define IS_WINDOWS = string.match(_ACTION, 'vs') ~= nil -- header directory FS_HEADER_DIR = "../../frame/frameheader/" -- All libraries output directory FS_OUTPUT_BASE_DIR = "....
local L = LibStub("AceLocale-3.0"):NewLocale("StatWeightScore", "zhTW"); if not L then return end -- L["AlternativeStatDisplayNames_Crit"] = "" L["AlternativeStatDisplayNames_Spellpower"] = "法術能量" -- Needs review L["CharacterPane_CM_Tooltip"] = "總分不適用於降低裝備等級的挑戰模式地城中" L["CharacterPane_Tooltip_Title"] = "評量屬性分數" L["Char...
local defaults = require("rynkai.config").options local palette = require("rynkai.colors." .. defaults.theme) local C = require("rynkai.fn").set_schemes(palette) local M = {} M.setSyntax = function() local syntax = { Comment = { fg = C.base04 }, -- just comments Constant = { fg = C.base0C }, -- (preferred) any co...
CustomizableWeaponry:addFireSound("CW_L85A2_FIRE", "weapons/cw_l85a2/fire.wav", 1, 110, CHAN_STATIC) CustomizableWeaponry:addFireSound("CW_L85A2_FIRE_SUPPRESSED", "weapons/cw_l85a2/fire_suppressed.wav", 1, 92, CHAN_STATIC) CustomizableWeaponry:addReloadSound("CW_L85A2_MAGOUT", "weapons/cw_l85a2/magout.wav") Customizab...
-- See LICENSE for terms function OnMsg.ClassesPostprocess() local building = XTemplates.customRocketExpedition[1] -- check for and remove existing template ChoGGi.ComFuncs.RemoveXTemplateSections(building, "ChoGGi_Template_ChoGGi_ForceLaunch", true) table.insert(building, 1, PlaceObj("XTemplateTemplate", { "C...
graul_marauder = Creature:new { objectName = "@mob/creature_names:graul_marauder", socialGroup = "graul", faction = "", level = 173, chanceHit = 10.75, damageMin = 1095, damageMax = 1900, baseXp = 16411, baseHAM = 120000, baseHAMmax = 125000, armor = 2, resists = {175,155,190,190,190,155,155,155,-1}, meatT...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Packages.Roact) local RoactRodux = require(Modules.Packages.RoactRodux) local UIBlox = require(Modules.Packages.UIBlox) local withStyle = UIBlox.Style.withStyle local EquipSlots = require(Modules....
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2612, 2612, 2612, -2, -2, -2); GetItem(174, 700); GetItem(186, 2); if InTeam(36) == false then goto label0 end; do return end; ::label0:: AddEthics(-2); do return end;
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## STATS:Extend EXAMPLE USAGE: Reports:NewReportType(newStat,eventList,onEvents,update,click,focus,blur) #############################...
local typed = require 'typed' local function hi(msg) typed.func(_, 'string')(msg) print(msg) end hi('hello') -- No errors hi(1) -- bad argument #1 to 'hi' (string expected, got number)
function beatHit(beat) end function stepHit(step) if step == 62 then playActorAnimation('boyfriend','hey',true) end end
nyagos.alias.sudo = function(args) if #args <= 0 then nyagos.shellexecute("runas",nyagos.exe) return end local prog = args[1] table.remove(args,1) assert(nyagos.shellexecute("runas",prog,table.concat(args," "),nyagos.getwd())) end share._clone = function(action) local...
--[=[ Mock lexical scanner for raw text. Exists in this format for the sake of keeping in style with the other lexers. List of possible tokens: - raw --]=] local lexer = {} --- Create a plain token iterator from a string. -- @tparam string s a string. function lexer.scan(s) local function lex(first_arg) f...
--[[ Food - SV Meta ]]-- local PLAYER = FindMetaTable("Player") function PLAYER:SetFood(amount) local worked = true if( amount > RUST_FOOD_MAX )then amount = RUST_FOOD_MAX worked = false elseif( amount < RUST_FOOD_MIN )then amount = RUST_FOOD_MIN worked = false e...
---@meta ---@class cc.Console :cc.Ref local Console={ } cc.Console=Console ---* starts listening to specified TCP port ---@param port int ---@return boolean function Console:listenOnTCP (port) end ---* log something in the console ---@param buf char ---@return self function Console:log (buf) end ---* delete c...
--[[ Module:ShapeFactory Author:DylanYang Time:2021-01-26 19:26:46 ]] local Circle = require("patterns.creational.factory.Circle") local Rectangle = require("patterns.creational.factory.Rectangle") local Square = require("patterns.creational.factory.Square") local _M = Class("ShapeFactory") function _M.pu...
local rolepane = {} local meta = rolepane function meta:hello() print("role pane say hello") end return meta
 ----------------------------- -- configure textures here -- ----------------------------- local rb2_normal_texture = "Interface\\AddOns\\rTextures\\gloss"; local rb2_flash_texture = "Interface\\AddOns\\rTextures\\flash"; local rb2_hover_texture = "Interface\\AddOns\\rTextures\\hove...
local WHC = Apollo.GetAddon("WHCCalendar") local List = { } function List.Init() local self = { d = { } } function self:new() return {first = 0, last = -1} end function self:push(list, value) local last = list.last + 1 list.last = last list[last] = value end function self:pop(list) local firs...
return {'ulke'}
-- =========================================================================== -- CQUI Great People Popup replacement file -- CQUI dynamically adjusts the size of various elements in the Great People popup. -- This requires access to variables not exported in the Firaxis unmodified version -- CQUI changes marked, s...
modifier_apocalypse_apocalypse = class({}) function modifier_apocalypse_apocalypse:OnCreated(t) if IsServer() then self:StartIntervalThink(0.03) end local ability = self:GetAbility() self.magic_resistance_per_second_pct = ability:GetSpecialValueFor("magic_resistance_per_second_pct") self.damage_per_second_pct =...
do do airplane.makeFlatDonut = function(r,step) local model = {} local pts1 = {} local pts2 = {} for a = 0,360,step do table.insert(pts1, vec3d( r * math.sin(deg2rad(a)), 0, r * math.cos(deg2rad(a)))) table.insert(pts2, vec3d( 2 * r * math.sin(deg2rad(a)), 0, ...
checkItemQuanty = function(item, quant, player) if not players[player].bag then return end if #players[player].bag == 0 then return false end for i, v in next, players[player].bag do if v.name == item then if v.qt >= quant then return v.qt end end end return false end
if(select(2, UnitClass('player')) ~= 'DRUID') then return end --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; local error = _G.error; local print = _G.print; local pairs = _G.pairs; local next = _...
Server = { Routes = {}, Middlewares = {} } InvokeHttpRequest = nil if SetHttpHandler == nil then SetHttpHandler = function(cb) InvokeHttpRequest = function(requestData, responseData) responseData.send = function(data) print("Sending", data) end ...
local modShape = createColSphere(2386.2431640625, 1049.4853515625, 10.8203125, 10) function startModding(element, matchingDimension) if (getElemenType(element)=="vehicle" and matchingDimension) then local upgrades = getVehicleCompatibleUpgrades(element) local thePlayer = getVehicleController(element) ...
local function LoggerMiddleware(store) return function(nextDispatch) return function(action) print(action.type) nextDispatch(action) end end end return LoggerMiddleware
-- This code is reverse engineered from the original AWS sdk. Specifically: -- https://github.com/aws/aws-sdk-js/blob/c175cb2b89576f01c08ebf39b232584e4fa2c0e0/lib/credentials/remote_credentials.js local function makeset(t) for i = 1, #t do t[t[i]] = true end return t end local kong = kong local ENV_RELATIV...
if turn == 1 then booleans["GottenBackup"] = false end if turn == 1 and booleans["GottenBackup"] == false then RequestBackup() Wait(2000) booleans["GottenBackup"] = true EnableChargeAttack() character_4:UseSkill(3) character_4:UseSkill(2) character_3:UseSkill(1) character_3:UseSkill(2) character_2:UseSkill(3)...
-- import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local E, L, V, P, G = unpack(ElvUI) -- get the DataBars module local EDB = E:GetModule("DataBars") local ETT = E:GetModule("Tooltip") local EPDBC = E:GetModule("EPDBC") local module_name, private_table = ... -- translate the module's name. normally I w...
require("common/commonGameLayer") local invitational_info = require(ViewPath .. "hall/invitational/invitational_info") local InvitationalInfoItem = require("hall/invitational/widget/invitationalInfoItem") local InvitationalSlideRanking = require("hall/invitational/widget/invitationalSlideRanking") --我创建的邀请赛 loca...
ffi = require "ffi" require "LDYOM.Scripts.baseNode" class = require "LDYOM.Scripts.middleclass" Node = bitser.registerClass(class("NodeGetTimerTime", BaseNode)); Node.static.name = imgui.imnodes.getNodeIcon("func")..' '..ldyom.langt("CoreNodeGetTimerTime"); function Node:initialize(id) BaseNode.initialize(self,id)...
project "vhacd" kind "StaticLib" if os.is("Linux") then buildoptions{"-fPIC"} end includedirs { "../inc","../public", "../../../src" } files { "*.cpp", "*.h" }
#!/usr/bin/env lua5.3 TESTS = { --cmd = true, --luacov = 'lua5.3 -lluacov' --valgrind = true, --REENTRANT = true --COMPLETE = true stats = { count = 0, trails = 0, bytes = 0, visits = 0, } } if TESTS.luacov then require 'luacov' os.remove('luacov.stats.out...
att.PrintName = "KOMPNVS" att.Icon = Material("entities/acwatt_optic_eomptsnv.png") att.Description = "A modified version of the KOMPS, but with a night vision device attached. Quite heavy." att.SortOrder = 40 att.Desc_Pros = { "Precision sight picture", "Increased zoom", "Night vision picture", ...
local enums = require("consts.celeste_enums") local birdNpc = {} birdNpc.name = "bird" birdNpc.depth = -1000000 birdNpc.nodeLineRenderType = "line" birdNpc.justification = {0.5, 1.0} birdNpc.texture = "characters/bird/crow00" birdNpc.nodeLimits = {0, -1} birdNpc.fieldInformation = { mode = { options = enu...
ITEM.name = "Flare" ITEM.throwent = "nut_flare" ITEM.throwforce = 800 ITEM.desc = "A Flare that brightens the area around it." ITEM.price = 300
local vec2 = require "CPML.vec2" local function new(_pos, _direction) local projectile = { id = "projectile", pos = _pos, size = vec2(15, 15), speed = 1000, color = {r = 0, g = 1, b = 1}, direction = _direction, death = false, damage = 5, } function projectile:update(dt) sel...
-- premake5.lua project "shaderc" kind "StaticLib" language "C++" staticruntime "on" targetdir ("build/" .. outputdir .. "/%{prj.name}") objdir ("obj/" .. outputdir .. "/%{prj.name}") files { "libshaderc/include/shaderc/shaderc.h", "libshaderc/include/shaderc/shaderc.hpp", "libshaderc/src/shaderc.cc", ...
local function hash(orig_crc, byte) local crc local x; x = ((orig_crc >> 8) ~ byte) & 0xff; x = x ~ (x >> 4); crc = (orig_crc << 8) ~ (x << 12) ~ (x << 5) ~ x; crc = crc & 0xffff; return crc end local function ccitt_16(byte_array) local crc = 0xffff for i in ipairs(byte_array) do ...
--[[-- by ALA @ 163UI/网易有爱, http://wowui.w.163.com/163ui/ CREDIT shagu/pfQuest(MIT LICENSE) @ https://github.com/shagu --]]-- ---------------------------------------------------------------------------------------------------- local __addon, __ns = ...; if __ns.__dev then setfenv(1, __ns.__fenv); end local _G = _G;...