content
stringlengths
5
1.05M
--------------------------------------------- -- Tarutaru Warp II -- End Ark Angel TT teleport --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") ------------------------------------...
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, implicitVars=true, MathJax=true} local chart = Tensor.Chart{coords={t,x,y,z}} local flatChart = Tensor.Chart{coords={T,X,Y,Z}, symbols='ABCDEFGHIJKLMNOPQRS...
class 'rinka' function rinka:initProps() -- FOR AI_SHOWING_IDLE self.cur_shootDelay = 0 self.target_detected=false end function rinka:__init(npc_obj) self.npc_obj = npc_obj self.def_shootDelay = smbx_utils.ticksToTime(50) self.def_speed = 3 self.player_pos_detector = self.npc_o...
local forth = require 'forth' if arg[ 1 ] then forth.script (arg[ 1 ]) else forth.run ( ) end
vim.cmd [[ au BufRead,BufNewFile tsconfig.json set filetype=jsonc autocmd BufRead .babelrc set filetype=json autocmd BufRead .eslintrc set filetype=json autocmd BufRead .tslintrc set filetype=json ]]
--[[---------------------------------------------------------------------------- Implementation of the sections shown in the export dialog. Copyright (C) 2007-2009 Arnaud Mouronval <arnaud.mouronval@yahoo.com> Copyright (C) 2007 Moritz Post <mail@moritzpost.de> Released under the GNU GPL. -------------------------...
#!/usr/bin/env lua local gl = require("moongl") local glfw = require("moonglfw") local SCR_WIDTH, SCR_HEIGHT = 800, 600 local vertex_shader_source = [[ #version 330 core layout (location = 0) in vec3 aPos; void main() { gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0); } ]] local fragment_shader_source = [[ #versi...
fx_version 'cerulean' games { 'rdr3', 'gta5' } author 'nimaiso' description 'ShowID' version '1.0.0' client_scripts{ "client.lua" }
PlantConfig = { TypeModifiers = { --npk = nitrogen, phosphorus and potassium content (nutrients) --each ground type affects quality --players can alter by adding water, fertilizer --planting on farmland has best quality but risky, easily spotted, etc. --water = starting water...
local app = require 'app' local store = require 'hawk/store' local utils = require 'utils' local Gamestate = require 'vendor/gamestate' local camera = require 'camera' local sound = require 'vendor/TEsound' local fonts = require 'fonts' local state = Gamestate.new() local Player = require 'player' local window = requi...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); ...
------------------------------------------------------------------------------------------------ -- The Object Pool module. -- -- Simple module for Corona for reusing objects instead of creating new ones. -- -- @module objectpool -- @author Łukasz Durniat -- @license MIT -- @copyright Łukasz Durniat, Apr-2018 -------...
--- Socket Object. -- Supports IPv4, IPv6 and UNIX (POSIX only) families. -- @cstyle instance module "nixio.Socket" --- Get the local address of a socket. -- @class function -- @name Socket.getsockname -- @return IP-Address -- @return Port --- Get the peer address of a socket. -- @class function -- @name Socket.getpe...
local consts = require 'lcoap.protocol.consts' local Option = require 'lcoap.protocol.option' local Message = {} Message.__index = Message local function randuint(bytes) return math.random(bytes << 8 + 1) - 1 end function Message.new(args) return setmetatable({ message_id = assert(args.message_id), ...
local dbcrows = require('dbc').rows local function rowsForBuild(version, data) local iterfn, iterdata = dbcrows(data, '{' .. version.sig .. '}') local function wrapfn(...) local t = iterfn(...) return t and setmetatable(t, version.rowMT) or nil end return wrapfn, iterdata end return { build = rowsFo...
--- Loads all of the serializers for the world local file = require('functional/file') local dir = 'classes/world/serializers/' local files = file.scandir(dir, true, false) for _, f in ipairs(files) do if f:sub(-7) ~= 'all.lua' and f:sub(-4) == '.lua' then require(dir .. f:sub(1, -5)) end end
local L = CookeryWizLanguage.language CookeryWizOptions = EasyFrame:new() CookeryWizOptions.name = "CookeryWizOptions" CookeryWizOptions.cookeryWiz = nil CookeryWizOptions.contentControl = nil CookeryWizOptions.characterComboBox = nil CookeryWizOptions.characterDropdown = nil CookeryWizOptions.externalCh...
import 'test/data/import/circular-self.lua' () return { }
local role = {} -- override event from blueprint function role:ReceiveBeginPlay() self.handle = self.OnFire:Add(function(value,name) print("Trigger onfire",value,name) end) self:Super() print("role:ReceiveBeginPlay") print("setupfire") end -- override event from blueprint function...
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your optio...
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "cannonPower", number = 500 } }, { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onRemove" }, arg_list = { ...
local K, C, L = unpack(select(2, ...)) local Module = K:NewModule("Installer") local _G = _G local SetCVar = _G.SetCVar local CreateFrame = _G.CreateFrame local IsAddOnLoaded = _G.IsAddOnLoaded function Module:ResetInstallData() KkthnxUIData[K.Realm][K.Name] = {} if (KkthnxUIConfigPerAccount) then KkthnxUIConfi...
CaerdonMount = {} CaerdonMountMixin = {} --[[static]] function CaerdonMount:CreateFromCaerdonItem(caerdonItem) if type(caerdonItem) ~= "table" or not caerdonItem.GetCaerdonItemType then error("Usage: CaerdonMount:CreateFromCaerdonItem(caerdonItem)", 2) end local itemType = CreateFromMixins(CaerdonMountMixin) ...
StateMachine = class{} function StateMachine:init(states) self.states = states -- [name] -> function that returns state self.current = { render = function() end, update = function() end, enter = function() end, exit = function() end, } end function StateMachine:...
#!/usr/bin/env tarantool local tap = require('tap') local test = tap.test('gh-6330-table-new') test:plan(2) local t = table.new(16, 0) test:ok(t, 'table new') -- The following test relies on the internal table representaion and on -- the way LuaJIT calculates the table lenght. Without preallocation -- it would be #t...
Objects = { createObject ( 16644, 2782.7, -1120.6, 93.1, 0, 0, 64 ), createObject ( 16644, 2775.02, -1136.2, 93.1, 0, 0, 63.995 ), createObject ( 16644, 2767.8999, -1150.6, 93.1, 0, 0, 63.745 ), createObject ( 16644, 2754.3999, -1177.8, 79.63, 0, 330, 63.743 ), createObject ( 980, 2753.5, -1174.2, 71.2, 0, 0, 180.25 )...
item_faerie_custom = class({}) function item_faerie_custom:OnSpellStart() self:GetCaster():Heal(self:GetSpecialValueFor("heal"), self:GetCaster()) self:PlayEffects() self:SpendCharge() end function item_faerie_custom:PlayEffects() EmitSoundOn("DOTA_Item.FaerieSpark.Activate", self:GetCaster() ) l...
locksound = false local pillused = true RegisterNetEvent('dix-oblivionpill:piluleoubli') AddEventHandler('dix-oblivionpill:piluleoubli', function() Citizen.CreateThread(function() while true do Citizen.Wait(0) if pillused == true then StartScreenEffect("DeathFailOut", 0, 0) if...
--- Component local Component = {} Component.__index = Component --- Creates a new Component. -- @param populate A function that populates the Bag with values -- @return A Component object function Component.new(populate) local component = setmetatable({ __populate = populate, __isComponent = true, ...
return {'ineen','ineendraaien','ineengedoken','ineengedrongen','ineengedrukt','ineengrijpen','ineenkrimpen','ineenlopen','ineens','ineenschrompelen','ineenschuiven','ineenslaan','ineenstorten','ineenstorting','ineenstrengelen','ineenvlechten','ineenvloeien','ineenzakken','ineenzetten','ineffectief','ineffectiviteit','i...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
--[[ 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$ ]]-- loc...
object_mobile_dressed_imperial_mechanic_nils_cridmeen = object_mobile_shared_dressed_imperial_mechanic_nils_cridmeen:new { } ObjectTemplates:addTemplate(object_mobile_dressed_imperial_mechanic_nils_cridmeen, "object/mobile/dressed_imperial_mechanic_nils_cridmeen.iff")
local path, pid, luaapi = ... local function dofile(filename, ...) local f = assert(io.open(filename)) local str = f:read "a" f:close() local func = assert(load(str, "=(BOOTSTRAP)")) return func(...) end dofile(path.."/script/debugger.lua","windows",path,pid,luaapi)
function main() local socket socket = uv.createConnection('127.0.0.1', 8080, function () print('connected') print(socket) socket:onData( function(data) print('received: ' .. data) socket:write('HTTP/1.1 200 OK\r...
local Package = game:GetService("ReplicatedStorage").Fusion local captureDependencies = require(Package.Dependencies.captureDependencies) local sharedState = require(Package.Dependencies.sharedState) return function() it("should set a dependency set contextually", function() local dependencySet = {} captureDepend...
local afm_ui = require("afm-ui") local afm_data = require("afm-data") local thread = require("thread") local ev = require("event") local component = require("component") local nfr = component.getPrimary("nc_fission_reactor") local tunnel = nil -- get tunnel, if available pcall(function () tunnel = component.tunnel end...
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
-- -- User: pat -- Date: 9/1/15 -- require 'torch' require 'optim' require 'UniversalSchemaEncoder' local TransEEncoder, parent = torch.class('TransEEncoder', 'UniversalSchemaEncoder') function TransEEncoder:build_scorer() -- layers to compute score for the positive and negative samples local rel = nn.Select...
local ErrorBuilder = import("errors.lua") local types = import("types.lua") ----------------------- -- Placeholder Class -- ----------------------- local mt = { __class_name = "Placeholder" } -- Returns the event from a placeholder object. local function get_event(obj) return getmetatable(obj).event end -- Returns...
-- Shifts player control over to another unit in adventure mode. -- author: Atomic Chicken -- based on "assumecontrol.lua" by maxthyme, as well as the defunct advtools plugin "adv-bodyswap" -- calls "modtools/create-unit" for nemesis and histfig creation --@ module = true local utils = require 'utils' local validArgs...
-- This file is used to add additional options in the player's context menu. properties.Add("FScript.ForceCreateCharacter", { MenuLabel = FScript.Config.ScriptPrefix .. FScript.Lang.ForceCharacterCreation, Order = 1, MenuIcon = "icon16/user_add.png", Filter = function(self, entity, player) if not FScript.IsVali...
-- ###################### -- ### NVIM INIT FILE ### -- ###################### -- Basic settings vim.api.nvim_command 'runtime config.vim' vim.api.nvim_command 'runtime autogroups.vim' vim.api.nvim_command 'runtime mappings.vim' -- Plugins and their setup require 'plugin/packer' require 'init/packer_compiled' -- Func...
---@class happ happ = {} require "happ.core.happ_object" require "happ.utils.utils_lua" require "happ.utils.utils_unity" require "happ.module.module_asset" require "happ.module.module_view" require "happ.module.view.view" require "happ.module.view.view_fgui" require "happ.module.view.view_window" require "happ.modu...
#!/usr/bin/env luajit -- (c) 2014 Stephen McGill dofile'include.lua' local util = require'util' local processes = { 'run_dcm', 'run_imu', 'state_wizard', 'camera_wizard', 'vision_wizard', 'world_wizard', 'gc_wizard', } local is_running = {} for _, v in ipairs(processes) do is_running[v] = false end lo...
-- Label parameters -- Copyright (C) 2018, Eagle Dynamics. -- labels = 0 -- NONE -- labels = 1 -- FULL -- labels = 2 -- ABBREVIATED -- labels = 3 -- DOT ONLY -- Off: No labels are used -- Full: As we have now -- Abbreviated: Only red or blue dot and unit type name based on side -- Dot Only: Onl...
local sourcevalue = "library"; local sourceclass = nil; local sourceitems = {}; local dragging = false; function onInit() -- set the hover cursor setHoverCursor("hand"); -- get the source value if source then sourcevalue = source[1]; end -- get the class value if class then sourcecla...
local PANEL = {} function PANEL:Init() self.bgcol = MAIN_COLORD self.Limit = 100 self:SetPadding( 1 ) self:SetSpacing( 1 ) self:SetAutoSize(false) self:EnableHorizontal( false ) self:EnableVerticalScrollbar( true ) self.VBar.Paint = function(s) end self.VBar.btnGrip.Paint = function(s,w,h) DrawRect( 2 , 0 ,...
--Random quotes,phrases and memes from various rhythm gaming communities /o/ --(that you may or may not be familar with.... heck i don't even know the references for some of these) --mainly from ossu, stepman and bms -- Also (hopefully helpful) tips regarding the game/theme,etc. --------------------------------------...
{3015234, 3015233}, {3015235, 3015234}, {3014944, 3015235}, {3014945, 3014944}, {3014946, 3014945}, {3014947, 3014946}, {3014948, 3014947}, {3080507, 3014948}, {3080544, 3080507}, {3080545, 3080544}, {3080546, 3080545}, {3080547, 3080546}, {3080548, 3080547}, {3080549, 3080548}, {3080543, 3080549}, {30...
termID = nil --turtle direction. 0 means not facing that direction yDirection = 1 xDirection = 0 --turtle relative positioning curx = 0 cury = -3 curdepth = 0 --send a message to the terminal local function sendMessage(message) if termID ~= -1 then rednet.send(termId, message) end end --[[ these functions cau...
--[[ Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved @file PageJudge.lua @author sunnnychan@gmail.com @date 2016/03/12 11:27:24 @brief Page judge ]]-- local BDLOG = require('lua.bdlib.BdLogWrite') local setmetatable = setmetatable local tostring = tostring local require = require local type = type local pair...
-- menubar dofile(zwm.spoonPath.."utilities.lua") menubar = hs.menubar.new() function set_workspaces() local c = zwm.config local all_spaces = get_spaces() local current = spaces.activeSpace() local inactive_before_text = "" local inactive_after_text = "" local separator = "" local active_text =...
commandArray = {} print("fbnetdev-running") return commandArray
LinkLuaModifier("modifier_boss_cursed_zeld_three_cores", "heroes/bosses/cursed_zeld/three_cores.lua", LUA_MODIFIER_MOTION_NONE) boss_cursed_zeld_three_cores = { GetIntrinsicModifierName = function() return "modifier_boss_cursed_zeld_three_cores" end, } modifier_boss_cursed_zeld_three_cores = { IsPurgable = functio...
help( [[ This module loads R 3.3.1 into the environment ]]) whatis("Loads R, a tool for statistical analysis") local version = "3.3.1" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/R/"..version prepend_path("PATH", pathJoin(base, "bin")) prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib64")) prepend_p...
local top local whee local border = 5 local inputX = THEME:GetMetric("ScreenNetSelectBase", "ChatInputX") local inputY = THEME:GetMetric("ScreenNetSelectBase", "ChatInputY") local inputWidth = THEME:GetMetric("ScreenNetSelectBase", "ChatTextInputWidth") * 0.4 local inputHeight = 25 local outputX = THEME:GetMetric("S...
----------------------------------- -- Area: Windurst Waters -- NPC: Maysoon -- Starts and Finishes Quest: Hoist the Jelly, Roger -- Involved in Quests: Cook's Pride -- !pos -105 -2 69 238 ----------------------------------- local ID = require("scripts/zones/Windurst_Waters/IDs"); require("scripts/globals/settings"); ...
Common = { Skins = { Male = { 'a_m_m_indian_01' }, Female = {} } } RelationshipTypes = { { Hash = GetHashKey('CIVMALE'), Gang = -1 }, { Hash = GetHashKey('CIVFEMALE'), Gang = -1 }, { Hash = GetHashKey('SECURITY_GUARD'), Gang = -1 }, { Hash = GetHashKey('AMBIENT_GANG_LOST'), Gang = -1 }, { Hash = GetHas...
meta = { -- ID of your mod; Make sure this is unique! -- Will be used for identifying the mod in dependency lists -- Will be changed to workshop ID (ensuring uniqueness) when you upload the mod to the workshop id = "DebuggerExample", -- Name of your mod; You may want this to be unique, but it's no...
C_SpecializationInfo = {} ---@return boolean canUse ---@return string failureReason ---[Documentation](https://wow.gamepedia.com/API_C_SpecializationInfo.CanPlayerUsePVPTalentUI) function C_SpecializationInfo.CanPlayerUsePVPTalentUI() end ---@return boolean canUse ---@return string failureReason ---[Documentation](ht...
tetris = {} map = {} graphics = { tileSize = 20, } pieces = { { color = "purple" , map = {{1, 1, 1, 1}} }, { color = "yellow", map = {{1, 1}, {1, 1}} }, { color = "red", map = {{1, 0}, {1, 1}, {0, 1}}}, { color = "green", map = {{0, 1}, {1, 1}, {1, 0}}}, { color = "pink", map = {{1, 0}, {1, 1}, {1, 0}}}, { color =...
-- Game World -- Collision's callbacks local beginContact = function(fixtureA, fixtureB, contact) -- Get entities that are being in contact local entityA = fixtureA:getUserData() local entityB = fixtureB:getUserData() -- If entity has endContact mehtod, execute it if entityA.beginContact then entityA:beginContac...
#!usr/bin/env lua-5.4 local words = {} for line in io.stdin:lines() do if line:match("[^%s]") then for word in line:gmatch("%s*([^%s]*)%s*") do if #word > 0 then word = word:lower() words[word] = (words[word] or 0) + 1 end end end end local wordlist = {} fo...
local function aFunction(...) local i = debug.getinfo(...) if not i then print("none") else print(i.name, i.currentline, i.source) end end local function foo(...) aFunction(...) return 1 -- avoid TCO end foo(1) --> =aFunction 2 luatest foo(2) --> =foo 11 luatest foo(0) --> =g...
local scellepLoader = {} function scellepLoader:Init() local Loader = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local LoadStatus = Instance.new("TextLabel") local LoaderCorner = Instance.new("UICorner") local BGSlider = Instance.new("TextLabel") local BGSliderCorner = Instance.new("UICorne...
local ffi = require "ffi" local table = require "table" local base = require "eelua.core.base" local EE_Document = require "eelua.core.EE_Document" local EE_Frame = require "eelua.core.EE_Frame" local unicode = require "unicode" local C = ffi.C local ffi_new = ffi.new local ffi_cast = ffi.cast local tinsert ...
local CastleNathria = LibStub("AceAddon-3.0"):GetAddon("BestInSlotRedux"):NewModule("CastleNathria") local CN = "CN" function CastleNathria:OnEnable() local L = LibStub("AceLocale-3.0"):GetLocale("BestInSlotRedux") local castleNathriaName = C_Map.GetMapInfo(1735).name self:RegisterExpansion("Shadowlands", EXPANS...
local alert = {} function alert.showOnly(text, duration, size) alert.close() alert.show(text, duration, size) end function alert.close() hs.alert.closeAll(0) end function alert.show(text, duration, size) duration = duration or 0.5 size = size or 24 local radius = size - 4 hs.alert.show( text, ...
-- Floyd-Warshall "all pairs-shortest" algorithm implementation -- See : http://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm -- Note : this implementation (and tests) were roughly translated to -- Lua from Diego Allen's implementation of the same problem. -- See : https://github.com/kennyledet/Algorithm-Im...
-- Objective-C return { name = "Objective-C", lexer = 3, extensions = "m,h", keywords = { [0] = { name = "Primary Keywords", keywords = require "c_keywords" }, [1] = { name = "Secondary Keywords", keywords = require "objc_keywords" }, [2] = { name = "Doc Keyword...
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Script: HeliTrim -- Author: Carsten Lynker -- Version: 1.2 -- Build: 2019-07-19 -- Licence: Same as FlyWithLua (MIT licence) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --...
-- Hi! -- Save this as ~/.hydra/init.lua and choose Reload Config from the menu import = require('utils/import') import.clearCache() config = import('config') function config:get(keyPath, default) local root = self for part in string.gmatch(keyPath, "[^\\.]+") do root = root[part] if root == ...
local DLib = DLib local Color = Color local table = table DLib.skin.icons = { } do local _accum_0 = { } local _len_0 = 1 local _list_0 = { 'blue', 'green', 'orange', 'pink', 'purple', 'red', 'yellow' } for _index_0 = 1, #_list_0 do local color = _list_0[_index_...
local indicator = "Off" RegisterNetEvent('pv:syncIndicator') AddEventHandler('pv:syncIndicator', function (playerId, IStatus) if GetPlayerFromServerId(playerId) ~= PlayerId() then local ped = GetVehiclePedIsIn(GetPlayerPed(GetPlayerFromServerId(playerId)), false) if IStatus == "Off" then SetVehicleIndicatorLig...
--action event pack --B_30102 return { ["MSkill_1_1"] = { [1] = { type = "EffectSave", time = Fixed64(0) --[[0]], realTime = Fixed64(0) --[[0]] }, [2] = { type = "LookTarget", time = Fixed64(0) --[[0]], realTime = Fixed64(0) --[[0]], lookTargetSpeed = Fixed64(5242880) --[[5]], lookTarg...
--[[ QNET ROBLOX BAN MODULE ~By EramsorGR, part of the NSE Network group. Protect by an MIT License Copyright (c) 2020 Nicholas S. 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 with...
local view, colors, styles = view, lexer.colors, lexer.styles -- required colors colors.yellow = 0x66bab2 -- highlight color from editing.lua colors.orange = 0x222222 -- highlight color from editing.lua colors.red = 0x6161c2 -- diff lexer colors.green = 0x81cc81 -- diff lexer colors.base0 = 0x1d1616 co...
local PANEL = {} AccessorFunc(PANEL, "bReadOnly", "ReadOnly", FORCE_BOOL) function PANEL:Init() self:SetSize(ScrW() * 0.45, ScrH() * 0.65) self:SetTitle("") self:MakePopup() self:Center() local header = self:Add("DPanel") header:SetTall(34) header:Dock(TOP) self.vendorName = header:Add("DLabel") self.vend...
local theme={colors={normal={blue={0.54117647058824,0.70196078431373,0.70980392156863,1},green={0.74509803921569,0.70980392156863,0.35686274509804,1},cyan={0.48235294117647,0.74117647058824,0.64313725490196,1},white={0.8156862745098,0.7843137254902,0.77647058823529,1},red={0.79607843137255,0.37647058823529,0.4666666666...
if nil == cc.Terrain then return end cc.Terrain.CrackFixedType = { SKIRT = 0, INCREASE_LOWER = 1, } cc.Animate3DQuality = { QUALITY_NONE = 0, QUALITY_LOW = 1, QUALITY_HIGH = 2, }
-- Please dont remove my rights -- Made by Oscar_Moe_Jadi --for High Style and Arab Master -- Menu state local showMenu = false -- Keybind Lookup table local keybindControls = { ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, [...
local accesslog = {} local cjson = require "cjson" local json_encode = cjson.encode -- dynamic metadata filter name local DMFN = "com.reblaze.curiefense" local LOG_KEY = "request.info" local function get_log_table(request_map) -- handle is userData which is not serializable local entries = { ["geo"] = "...
return { game = require(... ..".game"), gameOver = require(... ..".gameOver"), gameWin = require(... ..".gameWin"), intro = require(... ..".intro"), }
local utils = require("rust-tools.utils.utils") local M = {} local latest_buf_id = nil function M.execute_command(command, args, cwd) local full_command = utils.chain_commands({ utils.make_command_from_args("cd", { cwd }), utils.make_command_from_args(command, args), }) -- check if a buffer with the latest i...
ENT.Base = "base_ai" ENT.Type = "ai" ENT.PrintName = "Auto Body Shop NPC" ENT.Category = "Other" ENT.Author = "TheAsian EggrollMaker" ENT.Contact = "theasianeggrollmaker@gmail.com" ENT.Purpose = "" ENT.Instructions = "" ENT.AutomaticFrameAdvance = true ENT.Spawnable = true ENT.AdminSpawnable = false
object_mobile_skeleton_bm_cat_domestic = object_mobile_skeleton_shared_bm_cat_domestic:new { } ObjectTemplates:addTemplate(object_mobile_skeleton_bm_cat_domestic, "object/mobile/skeleton/bm_cat_domestic.iff")
local is_show = false local the_admin = "Administrator" local the_owner = "Gracz" local the_reason = "Nadmierne odwalanie" local the_punish = "Kara" addEventHandler("onClientRender",getRootElement(), function() -- Jakiś warunek wyświetlania if is_show then local screen_x, screen_y = guiGetScreenSize() dxDr...
AddCSLuaFile() resource.AddFile("materials/mute-icon.png") if (CLIENT) then local drawMute = false local muteIcon = Material("materials/mute-icon.png") net.Receive("drawMute", function() drawMute = net.ReadBool() end) hook.Add("HUDPaint", "ttt_discord_bot_HUDPaint", function() if drawMute then surface.Se...
local file = require 'files.file' ---@class files local mt = {} mt.__index = mt mt.type = 'files' mt._fileCount = 0 ---@type table<uri, file> mt._files = nil local function findNames(uri, text) local names = {} for name in text:gmatch("[%w_]+") do names[name] = names[name] and names[name] + 1 or 1 ...
require "Scripts/Heroes/IHero" WarriorHero = { _name = "Warrior", _hp = 10, _sglClickAblPath = "Scripts/Heroes/Warrior Hero/MeleeSweep.lua", _dblClickAblPath = "Scripts/Heroes/Warrior Hero/ThrownDagger.lua", _spritesheetPath = "Images/Entities/Hero/Hero_SS.sprites", _animPath = "Images/Entities/Hero/Hero_Walk.an...
module(..., package.seeall) require"audio" function sdCardTask() sys.wait(5000) --挂载SD卡,返回值0表示失败,1表示成功 io.mount(io.SDCARD) --第一个参数1表示sd卡 --第二个参数1表示返回的总空间单位为KB local sdCardTotalSize = rtos.get_fs_total_size(1,1) log.info("sd card total size "..sdCardTotalSize.." KB") ...
require("src.lua.utils.vector") require("src.lua.utils.math") require("coord") require("ui") love.window.setTitle("Path Maker/Viewer") love.window.setIcon(love.image.newImageData("icon.png")) love.window.maximize() local width, height = love.graphics.getDimensions() local currentMode = "line" local wasDown = false loc...
box.cfg.wal_mode space = box.schema.space.create('tweedledum') index = space:create_index('primary', { type = 'hash' }) space:insert{1} space:insert{2} space:insert{3} space.index['primary']:get(1) space.index['primary']:get(2) space.index['primary']:get(3) space.index['primary']:get(4) box.snapshot() box.snapshot() sp...
package("linux-headers") set_homepage("https://kernel.org/") set_description("Header files of the Linux kernel") set_license("GPL-2.0-only") add_urls("https://cdn.kernel.org/pub/linux/kernel/$(version).tar.xz", "https://mirrors.edge.kernel.org/pub/linux/kernel/$(version).tar.xz", ...
-- Some utility functions that shouldn't be exposed. local ffi = require "ffi" return { -- https://github.com/stevedonovan/Penlight/blob/master/lua/pl/path.lua#L286 format_path = function(path) local np_gen1,np_gen2 = '[^SEP]+SEP%.%.SEP?','SEP+%.?SEP' local np_pat1, np_pat2 = np_gen1:gsub('SEP','/'), np_gen2:g...
AddCSLuaFile( ) ENT.Type = "anim" ENT.Spawnable = false ENT.AutomaticFrameAdvance = true local Sequences = { [""] = { stand = "idle_all_01", //idle_all_01 walk = "walk_all", run = "run_all_01", crouch = "cidle_all", crouch_walk = "cwalk_all" }, ["pistol"] = { stand = "idle_pistol", walk = "walk_pistol", ...
-- Clientside language stuff -- Need to build custom tables of strings. Can't use language.Add as there is no -- way to access the translated string in Lua. Identifiers only get translated -- when Source/gmod print them. By using our own table and our own lookup, we -- have far more control. Maybe it's slower, but may...
#!/usr/bin/env lua tlc = require "tlc" program = [[#include <stdio.h> int main(int argc, char **argv) { printf("Hello, %s!\n", argv[1]); return 0; }]] assert(type(tlc) == "table") ctx = tlc.new() assert(type(ctx) == "userdata") assert(ctx:setoutputtype(tlc.output.memory)) assert(ctx:compilestring(program)) ...
-- robot_gateway.lua 机器人测试网关 local skynet = require "skynet" ---------------------------------------------------------------------------------------- -- 服务名。 local _test_client_service = "mock/test_client_service" ---------------------------------------------------------------------------------------- local M = {} loc...