content
stringlengths
5
1.05M
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_InvasionInfo C_InvasionInfo = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_InvasionInfo.AreInvasionsAvailable) ...
-- See LICENSE for terms function OnMsg.ColonistBorn(colonist) colonist.name = colonist:GetDisplayName() .. " " .. UICity.day end
local ui ui = UI.Animation({{ "sprites/UI/loading.png", 4, 3, 140, 140 }}, 55, 25, { { pic = 1, id = 1, next = 2, wait = 30 }, { pic = 2, id = 2, next = 3, wait = 30 }, { pic = 3, id = 3, next = 4, wait = 30 }, { pic = 4, id = 4, next = 5, wait = 30 }, { pic = 5, id = 5, next = 6, wait = 30 }, { pic...
----------------------------------- -- Area: Port San d'Oria -- NPC: Door: Arrivals Entrance -- !pos -24 -8 15 232 ----------------------------------- require("scripts/globals/settings"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:getZPo...
u_skins.file = minetest.get_worldpath() .. "/u_skins.mt" u_skins.load = function() local input = io.open(u_skins.file, "r") local data = nil if input then data = input:read('*all') end if data and data ~= "" then local lines = string.split(data,"\n") for _, line in ipairs(lines) do data = string.split(lin...
local g = golly() local ov = g.overlay ov("create 1000 1000") local op = require "oplus" -- Constants Start BoxRadius = 6 InputSize = (BoxRadius*2+1)*(BoxRadius*2+1) OutputCells = { {0, 0}, {0, 1}, {1, 0}, {1, 1} } Inputs = 4 Outputs = #OutputCells Population = 300 DeltaDisjoint = 2.0 DeltaWeights = 0.4 Delta...
vim.api.nvim_set_keymap( "n", "gs+", '<Cmd>lua require("hop").hint_lines_skip_whitespace({ direction = require("hop.hint").HintDirection.AFTER_CURSOR })<CR>', { noremap = true } ) vim.api.nvim_set_keymap( "n", "gs-", '<Cmd>lua require("hop").hint_lines_skip_whitespace({ direction = require("...
DRONES_REWRITE.Weapons["Railgun"] = { Initialize = function(self, pos, ang) local ent = DRONES_REWRITE.Weapons["Template"].Initialize(self, "models/dronesrewrite/railgun/railgun.mdl", pos, ang) ent.PrimaryAmmo = 200 ent.PrimaryAmmoMax = 200 ent.PrimaryAmmoType = { DRONES_REWRITE.AmmoTypes.RailgunSticks } r...
Name="yfc" player=game.Players[Name] char=player.Character Weld=nil Welds={} Damage=5 Speed=55 Walk=char.Humanoid.WalkSpeed pcall(function() char.Lance:remove() end) Pl=player.PlayerGui pcall(function() Pl.En:remove() end) Gui=Instance.new("ScreenGui") Gui.Parent=Pl Gui.Name="En" function XY(x,y) if type(x)=="number" ...
local _, Engine = ... local Module = Engine:GetModule("ActionBars") local BarWidget = Module:SetWidget("Bar: 1") -- Lua API local select = select local setmetatable = setmetatable local tinsert, tconcat, twipe = table.insert, table.concat, table.wipe -- WoW API local CreateFrame = CreateFrame local GetNumShapeshiftFo...
#!/usr/bin/env lua -- MoonODE example: enums.lua local ode = require("moonode") print(table.unpack(ode.enum("jointtype"))) print(table.unpack(ode.enum("param"))) print(table.unpack(ode.enum("amotormode"))) print(table.unpack(ode.enum("geomtype"))) print(table.unpack(ode.enum("axesorder"))) print(table.unpack(ode.enum(...
local player_factory = {} function player_factory.newPlayer() local player = { sprite = nil, position = {x = 0, y = 0}, scale = 1, speed = 12, anchor = {x = 0, y = 0} } function player:load() self.sprite = love.graphics.newImage("player.png") self.sprite:setFilter("nearest", "nearest") end functio...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "DialogTitleNew", group = "CCC", id = "CommandCenterTitle", PlaceObj('XTemplateTemplate', { '__template', "DialogTitleNew", 'Margins', box(115, 0, 0, 0), 'Title', T(431862968979, --[[XTemplate CommandCent...
--[[ Filename: DebugClassC.lua Author: Sam@ke --]] DebugClassC = {} function DebugClassC:constructor(parent) self.mainClass = parent self.player = getLocalPlayer() self.screenWidth, self.screenHeight = guiGetScreenSize() self.scaleFactor = (1 /1080) * self.screenHeight self.width = self.screenWidth * 0.8 s...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local SetCategoryAndSubcategory = require(Modules.AvatarExperience.AvatarEditor.Actions.SetCategoryAndSubcategory) local SetCurrentToastMessage = require(Modules.NotLApp.Actions.SetCurrentToastMessage) local Utils = require(Mod...
local Menu = require 'lib.menu' local Game = require 'src.game.Game' local MainMenu = Game:addState('MainMenu') function MainMenu:enteredState() self:log('Entering MainMenu') self.menu = Menu:new({ { 'Start Game', function() self:pushState('Play') end }, { 'Options', function() self:gotoState('Options...
return {[102400000]=true,[1]=true,[102400003]=true,[4]=true,[30212101]=true,[1114120]=true,[10]=true,[311001100]=true,[13]=true,[30212110]=true,[311001103]=true,[201130000]=true,[201130003]=true,[22]=true,[200114200]=true,[131101]=true,[102400030]=true,[31]=true,[131104]=true,[311001121]=true,[34]=true,[3211300]=true,[...
---------------------------------------------------------------- -- Diplomacy and Advisors Buttons inside the leaderhead screen -- modified by bc1 from 1.0.3.144 brave new world code -- fix spinning globe bug ---------------------------------------------------------------- include "TradeLogic" local Co...
local Connection = require 'connection' -- This is a simple wrapper around raw libuv streams that lets -- us have pull-style streams with a nice coroutine based interface. -- Read calls will block till there is data. -- Write calls will block will the buffer is no longer full (applying backpressure). -- The read calls...
__TS__PromiseState = __TS__PromiseState or ({}) __TS__PromiseState.Pending = 0 __TS__PromiseState[__TS__PromiseState.Pending] = "Pending" __TS__PromiseState.Fulfilled = 1 __TS__PromiseState[__TS__PromiseState.Fulfilled] = "Fulfilled" __TS__PromiseState.Rejected = 2 __TS__PromiseState[__TS__PromiseState.Rejected] = "Rej...
-- Copyright 2022 SmartThings -- -- 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 ...
pashnaIntel = { itemTemplates = { "object/tangible/loot/dungeon/corellian_corvette/rebel_assassin_filler01.iff", "object/tangible/loot/dungeon/corellian_corvette/rebel_assassin_filler02.iff", "object/tangible/loot/dungeon/corellian_corvette/rebel_assassin_intel.iff" }, } pashnaTicketInfo = { depPlanet = "corellia", f...
function init() object.setOutputNodeLevel(0, true) end
-- volmon.lua -- an awesome wm plugin that uses pactl subscribe to watch for changes to the default sink state -- this allows the volume widget to update as volume changes instead of relying on a timer local awful = require("awful") -- tracking for registered widgets local registered_widgets = {} local volmon = {} -...
--- === plugins.finalcutpro.timeline.colorboardv2 === --- --- Color Board Plugins. local require = require --local log = require "hs.logger".new "colorBoard" local deferred = require "cp.deferred" local fcp = require "cp.apple.finalcutpro" local go ...
---@class CS.UnityEngine.ScreenCapture ---@type CS.UnityEngine.ScreenCapture CS.UnityEngine.ScreenCapture = { } ---@overload fun(filename:string): void ---@overload fun(filename:string, superSize:number): void ---@param filename string ---@param optional stereoCaptureMode number function CS.UnityEngine.ScreenCapture.C...
--[[ File: http-queue/DataUtils.lua Description: Data structures and basic synchronization utilities SPDX-License-Identifier: MIT ]] local dataUtils = {} -- Small linked list implementation function dataUtils.newLLNode(item) return {Data = item, Prev = nil, Next = nil} end function dataUtils.addNode...
if ( !sql.TableExists( "cookies" ) ) then sql.Query( "CREATE TABLE IF NOT EXISTS cookies ( key TEXT NOT NULL PRIMARY KEY, value TEXT );" ) end module( "cookie", package.seeall ) local CachedEntries = {} local BufferedWrites = {} local function GetCache( key ) local entry = CachedEntries[ key ] if entry == ...
--[[ Change/remove some nodes of AST. Removed nodes: * string elements * <whitespace> Changed nodes: * <.value> added for nodes with single string element * <assign_or_call> - exact type resolved. Subnode may sink up. * <var_or_call> - exact type resolved * <local_statement> - exact type...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) ENT.ExplodeSound = { 1, 2, 4, 5, 6, 8 } ENT.DebrisSound = Sound( "weapons/c4/c4_exp_deb2.wav" ) ENT.DebrisSound2 = Sound( "weapons/debris2.wav" ) ENT.BeepSound = Sound( "weapons/c4/c4_beep1.wav" ) ENT.Damage = 400 ENT.Radius = 600 fun...
return { entities = { {"storage-tank-remnants", {x = -6.5, y = -6.5}, {dir = "east", }}, {"fish", {x = -3.05, y = -4.86}, {}}, {"fish", {x = -2.09, y = -4.65}, {}}, {"pipe", {x = 1.5, y = -6.5}, {}}, {"pipe-remnants", {x = 3.5, y = -7.5}, {}}, {"pipe", {x = 3.5, y = -6.5}, {}}, {"pipe", ...
local List = require 'pandoc.List' lean_web_editor_url = "https://leanprover-community.github.io/lean-web-editor/#code=" current_code = "" function encodeChar(chr) return string.format("%%%02X",string.byte(chr)) end function encodeString(str) local output, t = string.gsub(str,"[^%w]",encodeChar) return ...
package("cjson") set_homepage("https://github.com/DaveGamble/cJSON") set_description("Ultralightweight JSON parser in ANSI C.") set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip", "https://github.com/DaveGamble/cJSON.git") add_versions("1.7.10", "80a0584410656c8d8da2ba...
name = "Schwarzkirsche" description = "Schwarzkirsche is mixed character from other character on dst or other mods. Keep in mind if you enable multiple other from mods, this mods might broken/error or not working. Currently we are (i'm) trying to make this mod can be played on ds, sw, or even hamlet. So, be patient." ...
LIVRE = 1 OCUPADO = 2 RESERVADO = 3
-- TVmaze List ---------------- -- 公共部分 -- 脚本信息 info = { ["name"] = "TVmazeList", ["id"] = "Kikyou.b.TVmazeList", ["desc"] = "TVmaze 剧集日历脚本(测试中,不稳定) Edited by: kafovin \n".. "从 tvmaze.com 刮削剧集的日历时间表。", ["version"] = "0.1.1", -- 0.1.1.20220503_build } -- 设置项 settings = { ["schedule_info_ty...
--- C++ OpenGL library -- @module configure.modules.opengl local M = {} --- Find OpenGL library -- -- @param args -- @param args.compiler A compiler instance function M.find(args) local build = args.compiler.build local library_filenames = {} if build:target():is_windows() then table.append(library_filenames, '...
local NewCasting = {} _G.NewCasting = NewCasting local name = "" local back = CreateUIComponent("Texture", "CastingBarBack", "CastingBarFrame") _G.CastingBarBack = nil back:SetSize(192, 17) back:SetTexture("Interface/Addons/XBar/Img/Striped") CastingBarFrame:SetLayers(1, back) local tex = "Interface/Addons/XBar/Img/Ca...
----------------------------------------------------------------------------------------------- -- Client Lua Script for WSRPHousing -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "Window" require "GameLib" require "...
-- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purp...
function momoTweak.recipe.Zinc() local AddIng = momoIRTweak.recipe.SafeAddIngredient local ITEM = momoIRTweak.FastItem local FLUID = momoIRTweak.FastFluid local myItem = momoTweak.item local ZINC = myItem.zinc local NEW = momoIRTweak.recipe.NewRecipe local UnlockAt = momoIRTweak.recipe.UnlockAtRef local zinc =...
Sidebar = class("BarList") function Sidebar:initialize(hud, title, x, y) self.hud = hud self.title = title self.x = x self.y = y self.width = 73 self.info = {} self.bars = {} self.notifications = {} self.lastYDiff = 0 end function Sidebar:addInfo(name, value) local info = {} info["label"] = L...
VERSION = "1.4.0" local micro = import("micro") local config = import("micro/config") local buffer = import("micro/buffer") -- Returns Loc-tuple w/ current marked text or whole line (begin, end) function getTextLoc() local v = micro.CurPane() local a, b, c = nil, nil, v.Cursor if c:HasSelection() then ...
-- operating system widget type for *BSD -- Copyright (C) 2019 mutlusun <mutlusun@users.noreply.github.com> -- -- This file is part of Vicious. -- -- Vicious 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, ...
local lib = import("a"); return cbinary( "c", { ccompile("main.c"), lib, } );
require("EventMgr") local function TestCallback_1() print("Callback_1") end local function TestCallback_2(param) print("Callback_2") print(param.id) print(param.pwd) end local EventMgr = EventMgr:Instance() EventMgr:RegisterEvent(1, 1, TestCallback_1) EventMgr:RegisterEvent(2, 1, TestCallback_2) Even...
{{/* Main Giveaway CC. Supports execCC invoke. Usage: Read README.md Recommended Trigger: Command trigger with trigger `giveaway` (Can also work with `regex` and `starts with` triggers if triggers are correctly set) */}} {{/* CONFIGURATION VALUES START */}} {{$giveawayEmoji := `🎉`}}{{/* ...
local network_message = {} network_message.validateMessage = function(json) if json == nil or json['protocol'] ~= PROTOCOL or type(json['targets']) ~= 'table' then return false end isTarget = false for k,v in pairs(json['targets']) do if v == NODE_ID or v == 'ALL'...
#!/usr/bin/env tarantool ------------ -- Output Writer -- ... -- @module watcher -- @author hernandez, raciel -- @license MIT -- @copyright Raciel Hernández 2021 ------------ local l = require('lulpeg') l.locale(l) local alpha = l.alpha local digit = l.digit local function short(ou, ...) local arg = {...} l...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_POISONFIELD_PVP) combat:setArea(createCombatArea(AREA_WALLFIELD, AREADIAGONAL_WALLFIELD)) function onCastSpell(creature...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local UNITAPPEARANCE_PB = require("UnitAppearance_pb") local DOODADINFO_PB = require("DoodadInfo_pb") module('SceneCfg_pb') SCENECFG = protobuf.Descriptor(); local SCENECFG_SCENEID_FIELD = protobuf.FieldDescriptor(); local SCENECF...
-- If the laptop is on battery, the VO set in the config will be choosen, -- else the one defined with „hqvo“ is used. local hqvo = "opengl-hq:dither-depth=auto:gamma-auto:interpolation:fancy-downscaling=no:icc-profile-auto:icc-cache=~/.config/mpv/tmp/icc-cache:blend-subtitles=yes" local utils = require 'mp.utils' if m...
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} local SendChatMessage = _G.SendChatMessage if ChatThrottleLib then SendChatMessage = function(...) ChatThrottleLib:SendChatMessage("NORMAL", "EPGP", ...) ...
return {'jojo','jojobeleid','jojoen','jojanneke','jojootje','jojootjes','jojos','jojode','jojannekes'}
return Def.ActorFrame{ OnCommand=cmd(sleep,1); LoadActor("map_shutter01")..{ InitCommand=cmd(horizalign,right;xy,SCREEN_CENTER_X+225,SCREEN_CENTER_Y;zoom,1.35;); }; LoadActor("map_shutter01")..{ InitCommand=cmd(horizalign,right;xy,SCREEN_CENTER_X-225,SCREEN_CENTER_Y;zoom,1.35;rotationz,180;); }; --...
require "NSDictionary" class(NSMutableDictionary, NSDictionary); function NSMutableDictionary:create() return self:get(runtime::invokeClassMethod("NSMutableDictionary", "dictionary")); end function NSMutableDictionary:setObjectForKey(obj, key) if obj.id ~= nil then obj = obj:id(); end runtime...
--[[ Copyright 2012 The lev Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
-- Includes #include '../include/widgets.lua' -- Globals local g_ScrW, g_ScrH = guiGetScreenSize() local g_Gui local g_NeonColorWnd, g_VehColorWnd, g_VehColor1Wnd, g_VehColor2Wnd, g_VehLightsColorWnd, g_NametagColorWnd local g_Skins, g_UpgradeNames = false, false local g_AvatarPreviewPath = false -- Events ...
-------------------------------- -- @module ShatteredTiles3D -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- @function [parent=#ShatteredTiles3D] create -- @param self -- @param #float float -- @param #size_table size -- @param #int int -- @param #bool bool -- @return ShatteredT...
require("configs.editor.gist")() require("configs.editor.gitsigns")() require("configs.editor.translator")() require("Comment").setup()
if game:GetService("RunService"):IsServer() then -- Server side return require(script.server) else -- Client side return require(script.client) end
-- File copier. Should work. -- local args = {...} if #args < 2 then error("usage: cp SOURCE DESTINATION") return false end fs.copy(shell.resolvePath(args[1]), shell.resolvePath(args[2]))
require 'cunn' require 'cudnn' require './lib/LeakyReLU' torch.setdefaulttensortype("torch.FloatTensor") -- ref: https://github.com/torch/nn/issues/112#issuecomment-64427049 local function zeroDataSize(data) if type(data) == 'table' then for i = 1, #data do data[i] = zeroDataSize(data[i]) end else...
-- space create/drop space = box.schema.space.create('test', { engine = 'sophia' }) sophia_dir()[1] space:drop() sophia_schedule() sophia_dir()[1] -- index create/drop space = box.schema.space.create('test', { engine = 'sophia' }) index = space:create_index('primary') sophia_dir()[1] space:drop() sophia_schedule() ...
Locales['br'] = { -- Cloakroom ['cloakroom'] = 'Vestiário', ['ems_clothes_civil'] = 'Roupa Normal', ['ems_clothes_ems'] = 'Entrar como Socorrista', -- Vehicles ['veh_menu'] = 'véhicule', ['veh_spawn'] = 'Aperte ~INPUT_CONTEXT~ para pegar veiculo', ['store_veh'] = 'Aperte ~INPUT_CONTEXT~ para guardar Vei...
-- Pawn by Vger-Azjol-Nerub -- www.vgermods.com -- © 2006-2018 Green Eclipse. This mod is released under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 license. -- See Readme.htm for more information. -- -- Korean resources ------------------------------------------------------------ local function Pa...
ShaguWidget = CreateFrame("Frame", "ShaguWidget", WorldFrame) ShaguWidget:RegisterEvent("ADDON_LOADED") ShaguWidget:SetScript("OnEvent", function() if strfind(arg1, "ShaguWidget") then -- load default config if not ShaguWidget_config then ShaguWidget_config = ShaguWidget.defconfig end -- create...
local skynet = require "skynet" local max_client = 64 skynet.start(function() print("[LOG]",os.date("%m-%d-%Y %X", skynet.starttime()),"Server start") skynet.newservice("talkbox") local watchdog = skynet.newservice("watchdog") skynet.call(watchdog, "lua", "start", { port = 10101, maxclient = max_client, }) ...
local Prop = {} Prop.Name = "Rockford Transit Authority" Prop.Government = true Prop.Doors = { Vector( -1394, 4220, 596 ), Vector( -1486, 4220, 596 ), } GM.Property:Register( Prop )
-- Attempt to approve a request to sign data. -- -- Contents of request are as follows: -- - ip: the IP address of the requesting server (string) -- - client: the name of the client presenting the request, as defined by its certificate (string) -- - timestamp: the Unix timestamp of the request (number) -- - acc...
TOOL.Category = "Seamless Portals" TOOL.Name = "#Tool.portal_resizer_tool.name" if CLIENT then language.Add("Tool.portal_resizer_tool.name", "Portal Resizer") language.Add("Tool.portal_resizer_tool.desc", "Sets the size of portals") TOOL.ConvarX = CreateClientConVar("seamless_portal_size_x", "1", false, true, "Se...
local core = require('core') local TestResult = core.Object:extend() function TestResult:message() return self._message end function TestResult:set_message(message) self._message = message return self end function TestResult:severity() return self._severity end function TestResult:set_severity(severity) se...
local Assert = require(script.Parent._Util.Assert) local assertTypeOf = Assert.prepTypeOf("isDark") local GetLuminance = require(script.Parent.GetLuminance) return function(colour: Color3): boolean assertTypeOf("colour", "Color3", colour) return GetLuminance(colour) < .5 end
local override = Material("engine/occlusionproxy") local aimpoint = Material("reticles/eotech_reddot") function SWEP:DrawAimpoint(pos, ang) if halo.RenderedEntity() == self then return end local scale = self.ModelScale render.SetStencilEnable(true) render.SetStencilWriteMask(255) render.SetStencilTestMask(...
local function onResourceStart() if (Core) then Core:new() end end local function onResourceStop() if (Core) then delete(Core:i()) end end addEventHandler((g_isServer and "onResourceStart" or "onClientResourceStart"), resourceRoot, onResourceStart) addEventHandler((g_isServer and "onRe...
local crond = require('./cron/crond') p(crond) crond = crond.start({ debug = true, crontab='crontab' }) p(crond)
---- -- @file WorldStateBuilder ---- Brief description. -- <#Description#> -- @return <#return value description#> function WorldStateBuilder:calculateSerializeBufferSize() end ---- Brief description. -- <#Description#> -- @param btSerializer <#btSerializer description#> -- @return <#return value description#> func...
local Skynet = require "skynet" local Log = require "log" local function __init__() Skynet.newservice('debug_console', Skynet.getenv("CONSOLE_PORT")) Skynet.newservice('hello_world') Skynet.exit() end Skynet.start(__init__)
fx = { style = "STYLE_SPRAY", properties = { property_16 = { name = "Particle_Scale", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0.15, 1, 0.15, }, }, property_15 = { name = "Gravwell_Strength", type = "VARTYPE_ARRAY_TIMEFLOAT", value = ...
local Hand = { device = "hand/left" } setmetatable(Hand, {__index=letters.Node}) local Hand_mt = { __index = Hand } function Hand:new(o) o = letters.Node.new(self, o) setmetatable(o, Hand_mt) o.model = letters.headset.newModel and letters.headset.newModel(o.device) o.from = lovr.math.newVec3() o.to = lo...
HelloWorld("Ruud op den Kelder");
return {'wcs'}
#!/usr/bin/env luajit local xmlua = require("xmlua") -- HTML to be parsed local html = [[ <html> <body> <p>Hello</p> </body> </html> ]] -- If you want to use text in a file, you need to read file content by yourself. -- local html = io.open("example.html"):read("*all") -- Parses HTML local success, documen...
local syntax = require('matchparen.syntax') local ts = require('matchparen.treesitter') local utils = require('matchparen.utils') local win = require('matchparen.missinvim').win local search = {} ---Returns clojure for finding `pattern` on the `line` and below ---@param pattern string ---@param line integer 0-based l...
local oldLookupTechData = LookupTechData function LookupTechData(techId, fieldName, default) if fieldName == kTechDataSupply then if techId == kTechId.AdvancedArmoryUpgrade then return kAdvArmorySupply - kArmorySupply elseif techId == kTechId.UpgradeRoboticsFactory then return kARCFactorySupply - k...
-- Class: Sprite -- A sprite receives all update-related events and draws -- itself onscreen with its draw() method. It is defined -- by a rectangle; nothing it draws should be outside that -- rectangle. -- -- In most cases, you don't want to create a sprite directly. -- Instead, you'd want to use a subclass tailored t...
-- by Qige <qigezhao@gmail.com> -- 2017.06.30 local uci = require 'uci' local ccff = {} function ccff.execute(cmd) if (cmd) then local pipe = io.popen(cmd) local prompt = pipe:read("*all") io.close(pipe) return prompt end return nil end ccff.conf = {} function ccff.conf.get(conf, sec, opt) local result...
local S = conduits.S local strings = conduits.strings local api = trinium.api local bifrost_dust = trinium.materials.materials.bifrost:get"dust" local texture = api.get_fs_texture(bifrost_dust) local times = {S"Day", S"Night"} local function temporal_controller_fs(mode, time, leftover) return ([=[ size[8,7] list[...
return { printname = "UMF Tools", dependencies = {"framework"}, realms = {"hud"} }
-- Rendezvous MissionSetup = function() DATLoad("3_03.DAT", 2) LoadAnims() ClockSet(18, 30) ToggleHUDComponentVisibility(11, false) ToggleHUDComponentVisibility(4, false) ToggleHUDComponentVisibility(0, false) SoundDisableSpeech_ActionTree() end main = function() Rendezvous() end...
---@meta ---@class cc.EventListenerAcceleration :cc.EventListener local EventListenerAcceleration={ } cc.EventListenerAcceleration=EventListenerAcceleration ---* ---@param callback function ---@return boolean function EventListenerAcceleration:init (callback) end ---* / Overrides ---@return self function EventLis...
--- @module.randomseed local io = require("io") local mm = require("math") local randomseed = {} local randinit = 0 function randomseed.init() if randinit == 1 then return end local devrandom devrandom = io.open("/dev/urandom", "rb") if devrandom then local rnd = devrandom:read(4) ...
disk.getMountPath = function(side) return coroutine.yield("syscall", "disk.getMountPath", side) end fs.list = function(path) return coroutine.yield("syscall", "fs.list", path) end fs.exists = function(path) return coroutine.yield("syscall", "fs.exists", path) end fs.getDrive = function(path) return coroutine.yi...
fx_version "cerulean" game {"gta5"} author "left#2118" description "Rebirths Core" version "1.0.0" lua54 "yes" loadscreen_manual_shutdown 'yes' loadscreen_cursor 'yes' files { "build/ui/**/*", "build/ui/index.html", } ui_page "build/ui/index.html" client_scripts { "build/client/**/*.js", "src/code...
-- Auto-Apply when editing chezmoi-managed files vim.api.nvim_command([[ autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --no-tty --source-path % ]]) -- set options for mutt mail-editing vim.api.nvim_command([[ augroup fileype_mail autocmd! autocmd BufNew, BufRead /tmp/azmo/mutt-* set ft=mail " ...
--[[ Copyright 2016 GitHub, 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 writing, software distr...
-- Copyright 2014 David Mentler -- Vector meta local meta = FindMetaTable( "Vector" ) function meta:ProjectOnto( vec ) return self:Dot(vec) / vec:Dot(vec) * vec end physmesh = {} -- Point, Normal -> Plane function physmesh.ToPlane( point, normal ) local proj = point:ProjectOnto( normal ) local di...
Define = { } Define.On_Scene_Load_Finish = "On_Scene_Load_Finish" Define.On_Scene_Load_Begin = "On_Scene_Load_Begin"
local debug_getlocal = debug.getlocal local string_byte = string.byte local string_find = string.find local string_format = string.format local string_sub = string.sub gbc = gbc or {} -- disable create unexpected global variable local _g = _G function gbc.SetGlobal(name, value) rawset(_g, name, value) end setme...
----------------------------------- -- Area: The Boyahda Tree (153) -- NPC: qm1 (???) -- Quests: Shoot First, Ask Questions Later (Detonator WSNM "Beet Leafhopper") -- !pos -11 -19 -177 153 ----------------------------------- local ID = require("scripts/zones/The_Boyahda_Tree/IDs") require("scripts/globals/wsquest") -...