content
stringlengths
5
1.05M
-- perf local tconcat = table.concat local PostgreSqlHelpers = {} -- build location execute name function PostgreSqlHelpers.location_for(options) name = { 'gin', options.adapter, options.host, (options.port or ''), options.database, } return tconcat(name, '|'):gsub...
LPCONFIG = { DISMOUNT = true, CAM = false, GINV = true, FINV = true, SINV = nil, DINV = true, SUMM = true, EBG = true, LBG = true, QBG = true, RBG = true, SBG = false, AQUE = true, LOOT = true, EPLATE = false, FPLATE = false, HPLATE = false, RIGHT = true, ZG = 1, DUEL = false, NO...
--------------------------------------------------------------------------------------------------- ---multi_page_menu_selector.lua ---author: Karl ---date: 2021.5.11 ---desc: Defines a selector for text menu that has multiple pages ---------------------------------------------------------------------------------------...
-- vim:foldmethod=marker local r = require 'repl' -- we don't call it 'repl' so we don't shadow -- repl in the plugin environment pcall(require, 'luarocks.loader') require 'Test.More' local utils = require 'test-utils' plan(5) local clone = r:clone() do -- basic tests {{{ local with_plugin...
--[=[ @class CameraGamepadInputUtility ]=] local CameraGamepadInputUtility = {} -- K is a tunable parameter that changes the shape of the S-curve -- the larger K is the more straight/linear the curve gets local k = 0.35 local lowerK = 0.8 local function SCurveTransform(t) t = math.clamp(t, -1, 1) if t >= 0 then ...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_underlord...
--[[注意:只支持默认数字连续键值!!!]] BehTree.StackList = {} local this = BehTree.StackList this.count = 0 function this:New() self.stack_list = {} setmetatable(self, this) this.__index = this return self end function this:Push(element) self.count = self.count+1 self.stack_list[self.count] = element end function this:Pop() ...
-- gcf calculates the greatest common factor of x and y -- implementation uses the Euclidean Algorithm -- https://en.wikipedia.org/wiki/Euclidean_algorithm function gcf(x, y) -- Greatest common factor of x and x is x. if x == y then return x end -- Swap order such that y > x. if x > y then ...
return { recursiveToString = require(script.recursiveToString), }
function div(a, b) return math.floor(a/b) end t = {} function pali(a) local y, c = 1, a while c > 0 do t[y], y, c = c % 10, y + 1, div(c, 10) end y = y - 1 for x = 1, y/2 do if t[x] ~= t[y] then return false end y = y - 1 end return true end for line in io.lines(arg[1]) do local ...
-- Cacher -- By default, use uri as the hash key local function default_hash_key () return ngx.var.uri end local function default_set () error('set must be specified') end local function default_get () error('get must be specified') end local function default_load () error('load must be specified') end ...
--- -- @class PANEL -- @section DComboBoxTTT2 local PANEL = {} Derma_Hook(PANEL, "Paint", "Paint", "ComboBoxTTT2") Derma_Install_Convar_Functions(PANEL) --- -- @accessor boolean -- @realm client AccessorFunc(PANEL, "m_bDoSort", "SortItems", FORCE_BOOL) --- -- @ignore function PANEL:Init() self.DropButton = vgui.C...
-------------------------------------------------------------------------------- -- NordVPN Status Widget -- Icon shows connected/disconnected, notification shows more details -- More details could be found here: -- https://bitbucket.org/easlice/awesome-as-widgets -- @author Andrew Slice -- @license MIT --------------...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local tools = require('app.helpers.tools') local GVMemberListController = class("GVMemberListController", Controller):include(HasSignals) local SoundMng = require "app.helpers.SoundMng" fun...
local Handler = require("cmdhndlr.core.handler").Handler local M = {} local BuildRunner = {} M.BuildRunner = BuildRunner function BuildRunner.new(bufnr, ...) local handler, err = Handler.new("build_runner", bufnr, ...) if err ~= nil then return nil, err end vim.validate({ build = { handler.build, "functi...
--- Check whether a string is a suffix of self. -- @param s The suffix string to check for. -- @return True if self ends with s, otherwise false. -- @usage string.suffix("abcdef", "def") -- returns true -- @usage string.suffix("abcdef", "e") -- returns false function string:suffix(s) local pos = #self - #s + 1 local ...
local _, Private = ... if Private.initialized then local name = "nerien_ovale_deathknight_blood" local desc = string.format("[9.1] %s: Death Knight - Blood", Private.name) local code = [[ # Adapted from "[9.1.0] Advanced Blood Death Knight Guide for M+" # by Kyrasis-Stormreaver. # https://docs.google.com/document/d...
-- 协议号规范 -- 0x0100 ~ 0x0fff 服务器给客户端发 -- 0x1000 ~ 0x4fff 与游戏服之间的rpc -- 0x9000 ~ 0xcfff 玩家离线操作 local opcode = {} local code2name = {} local code2module = {} local code2simplename = {} local code2session = {} local code2urlrequest = {} local function REG(code, message_name, urlrequest, session) assert(not code2name[...
package.path = package.path .. ";../src/?.lua" local serialize = require "savelua" it("handles a basic table", function() local basicTable = { 1, 2, 3, one = 1, two = 2, three = 3 } local serialized = serialize(basicTable) local deserialized = (loadstring or load)(serialized) ass...
-- Reboot mod for Minetest -- Waits for the last player to leave then shuts the server down -- -- Copyright © 2018 by luk3yx -- -- 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 rest...
-- [impl->dsn~get-a-role-mask~1] --[[ CREATE OR REPLACE LUA SCALAR SCRIPT BIT_POSITIONS(num DOUBLE) EMITS(pos DOUBLE) AS --]] function run(ctx) num = ctx.num index = 1 while num > 0 do rest = math.fmod(num, 2) if rest == 1 then ctx.emit(index) end num = (num - res...
module 'bugly' path = "../../frameworks/libxgame/src/bugly" headers = [[ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "cclua/xlua.h" #include "bugly/CrashReport.h" ]] make_luacls = function (cppname) cppname = string.gsub(cppname, "^cclua::", "cclua.") cppname = strin...
local config = { max_depth = { include = 100, expansion = 100, eval = 100 }, reserved = { appendvararg = "_Appendvararg", defined = "_Defined", dw = "_Dw", identity = "_Identity", labelcontext = "_Labelcontext", litmap = "_Litmap", macrounique = "_Macrounique", model ...
-- cclog cclog = function(...) print(string.format(...)) end -- for CCLuaEngine traceback function __G__TRACKBACK__(msg) cclog("----------------------------------------") cclog("LUA ERROR: " .. tostring(msg) .. "\n") cclog(debug.traceback()) cclog("----------------------------------------") end lo...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["B...
-- Exposed variables local FRIENDLY_EXPLOSION = script:GetCustomProperty("FriendlyExplosionDamage") local EXPLOSION_DAMAGE_RANGE = script:GetCustomProperty("ExplosionDamageRange") local EXPLOSION_RADIUS = script:GetCustomProperty("ExplosionRadius") local EXPLOSION_KNOCKBACK_SPEED = script:GetCustomProperty("ExplosionK...
return { win = { conquer_lesimas = "信じられない!あなたはネフィアの迷宮「レシマス」を制覇した!", watch_event_again = "達成のシーンをもう一度再現する?", window = { arrived_at_tyris = function(_1, _2, _3) return ("%s年%s月%s日に、あなたはノースティリスに到着した。") :format(_1, _2, _3) end, caption = "制覇までの軌跡",...
ENT.Type = "brush"; ENT.Base = "base_brush"; function ENT:GoToNextLevel() game.ConsoleCommand( "changelevel " .. self.NextMap .. "\n" ); end function ENT:AcceptInput( name ) if( name == "ChangeLevel" ) then self:GoToNextLevel(); end end function ENT:Touch( e ) if( !self.NoTouch ) then self...
require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages -- ensure_installed = { "norg", "norg_meta", "norg_table", "haskell", "cpp", "c", "javascript", "markdown" }, sync_install = false, -- install languages synchr...
-- look_cleanios.lua drawing engine configuration file for Ion. if not gr.select_engine("de") then return end de.reset() mainfont = "xft: Sans-10" boldfont = "xft: Sans-10:weight=bold" bigfont = "xft: Sans-14" bigboldfont = "xft: Sans-14:weight=bold" de.defstyle("*", { shadow_colour = "#ffffff", highlight_c...
local m = {} function m.run(db_info) local db = require("common.db") local log = require("common.log") local tables = require("db.table.zone_table") local dbname = db_info.db local luamysql = luasql.mysql() local con, err = luamysql:connect("", db_info.user, db_info.password, db_info.ip, db_info.port) con:ex...
require("commons") -- Color lookup utils local function stringifyColorLookup(colorLookup) local result = "{\n" for _, value in ipairs(colorLookup) do result = result .. "\t{" .. value[1] .. ", \"" .. value[2] .. "\"}\n" end result = result .. "}" return result end local function wrapColorLookupTimestamps(color...
local spell = {} spell["element"] = [[Support]] spell["cost"] = 20 spell["desc"] = [[Revives one ally with half their HP]] spell["target"] = [[Dead]] spell["name"] = [[Recarm]] spell["costtype"] = [[SP]] spell["blurb"] = [[ has been revived!]] function spell.activate() state.context.cost(spell.costtype, spell.cost...
---@class hattribute 属性系统 hattribute = { max_move_speed = 522, max_life = 999999999, max_mana = 999999999, min_life = 1, min_mana = 1, max_attack_range = 9999, min_attack_range = 0, threeBuff = { -- 每一点三围对属性的影响,默认会写一些,可以通过 hattr.setThreeBuff 方法来改变系统构成 -- 需要注意的是三围只能影响commo...
-- Resets game function restartGame() player.shieldImg = playerShieldImg player.img = imagesPlayerBasic[2] player.bullet = imagesBulletBasic[2] backgroundImg = backgroundImges[1] -- reset timers createEnemyTimer = ENEMY_TIMER -- moving player back to default position and reseting player opt player....
AddCSLuaFile() -- Custom Quake Entity base -- For item spawners --[[------------------------------------------------------------------------------------------------------ Necessary info --------------------------------------------------------------------------------------------------------]] ENT.Base = 'b...
-------------------------------- -- @module SkeletonAnimation -- @extend SkeletonRenderer -- @parent_module sp -------------------------------- -- -- @function [parent=#SkeletonAnimation] setTrackCompleteListener -- @param self -- @param #spTrackEntry entry -- @param #function listener -- @return Skelet...
CannonBehavior = {} CannonBehavior.e = {} ------------------------------------------------------ -- System events ------------------------------------------------------ function CannonBehavior:new() local u = {} setmetatable(u, self) self.__index = self return u end function CannonBehavior:onConnect(opt) ...
--!strict local None = newproxy(false)::any return None
return {'hickory','hicham','hickorys','hichams'}
-- Creates a rope at the specific position, that extends in the specified direction when not attached to any entities. __ Add_Rope(pos.x,pos.y,pos.z,0.0,0.0,0.0,20.0,4,20.0,1.0,0.0,false,false,false,5.0,false,NULL) When attached, Position<vector> does not matter When attached, Angle<vector> does not matter Rope Type...
-- -- Copyright (c) 2016, 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. -- -- extracts fea...
----------------------------------- -- Area: Windurst Woods -- NPC: Chat Manual -- Type: Tutorial NPC -- !pos 10.928 1.915 -40.094 241 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(6106) end function onEventUpdate(player,csid,option) ...
-- From https://github.com/Funk66/vim return { yamlls = { settings = { yaml = { hover = true, completion = true, validate = true, schemaStore = { enable = true, url = "https://www.schemastore.org/api/json/catalog.json", }, schemas = { ["https://raw.githubusercontent.com/awsl...
-- power/register.lua --[[ Machine Registration API ]] local me = microexpansion local power = me.power -- [function] Register machine function me.register_machine(itemstring, def) -- Set after_place_node def.after_place_node = function(pos, player) if def.after_place_node then def.after_place_node(pos, playe...
local scene = sl.Scene.empty(sl.device) local node = scene:createNode() local spectator = node:addComponent('Spectator') assert(spectator) spectator:setMovementSpeed(123) assert(spectator:movementSpeed() == 123) spectator:setMouseSensitivity(123) assert(spectator:mouseSensitivity() == 123)
-- Usage: filedecrypt.lua [file] [password] > decryptedfile -- -- Decrypts everything from [file] and writes decrypted data to stdout. -- Do not use for real decryption, because the password is easily viewable -- while decrypting. -- require("aeslua"); if (#arg ~= 2) then print("Usage: filedecrypt.lua [file] [passwo...
local helpers = require "spec.helpers" local json = require "cjson" local paseto = require "paseto.v2" local utils = require "kong.tools.utils" local encode_base64 = ngx.encode_base64 for _, strategy in helpers.each_strategy() do describe("Plugin: paseto (access) [#" .. strategy .. "]", function() local proxy_c...
--[[ Copyright (C) Udorn (Blackhand) 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 option) any later version. This program is distributed in the...
-- Generated by LairTool tatooine_evil_settlement_neutral_medium_theater = Lair:new { mobiles = {{"evil_settler",4},{"domestic_eopie", 1}}, spawnLimit = 12, buildingsVeryEasy = {"object/building/poi/tatooine_evil_settlers_large2.iff","object/building/poi/tatooine_evil_settlers_large3.iff"}, buildingsEasy = {"object...
object_tangible_furniture_decorative_wod_sm_potted_plant_09 = object_tangible_furniture_decorative_shared_wod_sm_potted_plant_09:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_sm_potted_plant_09, "object/tangible/furniture/decorative/wod_sm_potted_plant_09.iff")
require ("map") require ("file") require ("control") require ("interface") require ("player") TICKRATE = 1/80 function love.run() if love.math then love.math.setRandomSeed(os.time()) end if love.load then love.load(arg) end local previous = love.timer.getTime() local lag ...
local Debugger = require("hotswitch-hs/lib/common/Debugger") local TimeChecker = require("hotswitch-hs/lib/common/TimeChecker") local CanvasConstants = require("hotswitch-hs/lib/common/CanvasConstants") local doesShowOnMainScreen = true local function calcBaseCanvasFrame(orderedWindows) local panelH = #orderedWin...
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_CURSED) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) local spell = Spell("instant") function spell.onCastSpell(creature, variant) return combat:execute(creature, variant) en...
local name = "car_cyan" local definition = ... definition.description = "Cyan car" definition.inventory_image = "inv_car_cyan.png" definition.wield_image = "inv_car_cyan.png" definition.textures = {"car_cyan.png"} vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
require("iuplua") multitext = iup.text{ multiline = "YES", expand = "YES" } item_open = iup.item{title="Open"} item_save = iup.item{title="Save"} item_exit = iup.item{title="Exit"} function item_exit:action() return iup.CLOSE end file_menu = iup.menu{item_open,item_save,iup.separator{},item_exit} sub1_menu = ...
-- @module ae.ui.SlideRightGesture -- @group UI -- @brief Slide right gesture. local SlideRightGesture = ae.oo.class() -- @func -- @brief Creates a slide right gesture with no listener. -- @return The gesture. -- @func -- @brief Creates a slide right gesture. -- @param listener The function called when the g...
--[[ VeKtor, Background Music Engine replacement local E = unpack(select(2, ...)); --Import: Engine ]] BINDING_HEADER_VEKTOR = GetAddOnMetadata(..., "Title") local AddOnName, Engine = ... local AddOn = LibStub("AceAddon-3.0"):NewAddon(AddOnName, "AceConsole-3.0") Engine[1] = AddOn _G[AddOnName] = Engine funct...
local M = {} function M.config() require("indent_blankline").setup({ char = "│", use_treesitter = true, show_current_context = true, filetype_exclude = { "NvimTree", "Preview", "__doc__", "dashboard", "dashpreview", ...
class("ActivityBossSPFScene", import(".ActivityBossSceneTemplate")).getUIName = function (slot0) return "ActivityBossSPFUI" end return class("ActivityBossSPFScene", import(".ActivityBossSceneTemplate"))
local Native = require('lib.native.native') ---@class FogModifier : Agent local FogModifier = class('FogModifier', assert(require('lib.oop.agent'))) ---<static> createRect ---@param forWhichPlayer Player ---@param state FogState ---@param where Rect ---@param useSharedVision boolean ---@param afterUnits boolean ---@r...
local theming_configs = { "bufferline", "dashboard", "symbolsoutline", "nord", "lualine", "blankline", "transparent" } local others_configs = {"presence", "autosave", "neoscroll", "spotify"} local coding_configs = { "treesitter", "gps", "gitsigns", "lspconfig", "lspsign", "null", "betteresc", "snippet...
local CoreGui = game:GetService("CoreGui") local RunService = game:GetService("RunService") local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local t = InGameMenuDependencies.t local UIBlox = InGam...
---@class EquipOwn_Change local EquipOwn_Change = DClass("EquipOwn_Change", BaseComponent) _G.EquipOwn_Change = EquipOwn_Change function EquipOwn_Change:ctor() self.messager = Messager.new(self) end function EquipOwn_Change:addListener() self.messager:addListener(Msg.EQUIP_UPDATE_SHOWEQUIPS, self.updateShowLi...
local namespace = require('namespace') local ComponentRemovedEv = namespace.class("ComponentRemovedEv") function ComponentRemovedEv:initialize(entity, componentName) self.entity = entity self.componentName = componentName end return ComponentRemovedEv
include('shared.lua') local function Include(e2, directives, includes, scripts) if scripts[e2] then return end local code = file.Read("expression2/" .. e2 .. ".txt") -- removed CLIENT as this is client file -- local code -- if CLIENT the code = file.Read("expression2/" .. e2 .. ".txt") if not code then re...
return function() hs.osascript.applescript([[ if application "Terminal" is running then tell application "Terminal" do script "" activate end tell else tell application "Terminal" activate end tell end if ]]) end
-- pacman -S clangd require('lspconfig').clangd.setup{}
-- Export everything from legends mode --[====[ exportlegends ============= Controls legends mode to export data - especially useful to set-and-forget large worlds, or when you want a map of every site when there are several hundred. The 'info' option exports more data than is possible in vanilla, to a :file:`region-...
--player stats Player = { HP = 5, ATK = 1, DEF = 1, MAXHP = 5 } --inventory Inventory = { Stick = {NAME = 'Stick', ATK = 1, DEF = 0, EQUIPPED = false} } --enemies Enemies = { Goblin = {HP = 3, ATK = 1, DEF = 0, MAXHP = 3} } --checked acts La = false Check = false Follow = false --Con...
#!/usr/bin/lua5.3 m = io.read("*number") n = io.read("*number") function isPrime(x) if x <= 1 then return false end if ('23579'):find(tostring(x)) then return true end for i = 2, math.ceil(math.sqrt(math.sqrt(x)+x)) do if x % i == 0 then return false end end return true end cnt = 0 x = 2 whi...
Account = model 'account' { email = field 'string' {length=254}, username = field 'string' {length=64}, passsalt = field 'string' {length=128}, passhash = field 'string' {length=256}, photourl = field 'string' {length=128}, accountstate = field 'integer' {}, balance = field 'float' {} } Sta...
-- Player Note processing and saving function ElderScrollsOfAlts:ShowCharacterNote(self) local charactername = ElderScrollsOfAlts.savedVariables.selected.charactername --Select the Row ElderScrollsOfAlts.debugMsg("ShowCharacterNote:"," SelChar=",tostring(ElderScrollsOfAlts.savedVariables.selected.charactername...
test_static() print("test_cclosure return", test_cclosure({name = "chendong", email = "baisaichen@live.com"})) print("int_static == ", int_static) print("int_static == ", get_userdata_property(int_static)) set_userdata_property(int_static, 100) print("int_static == ", get_userdata_property(int_static)...
hook.Add("PlayerSetModel","pimpmybot",function(ply) if ply:SteamID() == "BOT" then ply:SetModel("models/AntLion.mdl") -- modify models/AntLion.mdl by any model end end)
local mongodb = require("libs/mongodb"); function onRequest(headers, matches, requestText) local mdbConn = mongodb.new("mongodb://localhost:27017/"):connect(); local collection = mdbConn:getCollection("taplection", "users"); local result = collection:find({ _id = { ["$oid"] = "57359c4fad475040b80057d1" } }); colle...
function DIALOG() NODE(0) SAY("Wow! Today is my lucky day!") ANSWER("Won?",1) ANSWER("Piss off! Leave me in peace!",100) NODE(1) SAY("You can say that again! I cleaned them out! In the lottery! 10 000 Credits in one shot. Madness!") ANSWER("I can see, Lucky streak.",2) NODE(2) SAY(...
require "lightspeed".setup { ignore_case = false, exit_after_idle_msecs = {unlabeled = 1000, labeled = nil}, -- s/x grey_out_search_area = true, highlight_unique_chars = true, jump_on_partial_input_safety_timeout = 400, match_only_the_start_of_same_char_seqs = true, substitute_chars = {[...
att.PrintName = "The Great Journey" att.Icon = Material("snowysnowtime/2k/ico/sgico/greatjourney.png", "smooth mips") att.Description = "Great Journey for the CAWS" att.Desc_Pros = { " The Great Journey waits for no one, brother." } att.Desc_Cons = { } att.Slot = "skin_hcesg" att.Free = true att.ActivateElements...
local mock_time = require("deftest.mock.time") local time_string = require("eva.libs.time_string") local eva = require("eva.eva") return function() describe("Eva Promocode", function() before(function() eva.init("/resources/tests/eva_tests.json") mock_time.mock() mock_time.set(0) end) it("Basic code r...
local Native = require('lib.stdlib.native') local converter = require('lib.stdlib.enum.converter') ---@class minimapicon local minimapicon = { } return minimapicon
voiceData = {} radioData = {} callData = {} mumbleConfig = { debug = false, -- enable debug msgs voiceModes = { {2.5, "Whisper"}, -- Whisper speech distance in gta distance units {8.0, "Normal"}, -- Normal speech distance in gta distance units {20.0, "Shouting"}, -- Shout speech distance...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseUseTool_pb', package.seeall) local BSEUSETOOL = protobuf.Descriptor(); local BSEUSETOOL_SESSIONID_FIELD = protobuf.FieldDescriptor(); local BSEUSETOOL_SLOT_FIELD = protobuf.FieldDescriptor(); BSEUSETOOL_SESSIONID_FIELD.name = "...
-------------------------------------------------------------------------------- -- Easydoorbell Speaker Entity Clientside Init -------------------------------------------------------------------------------- include( "shared.lua" ) function ENT:Draw() self:DrawModel() end
-------------------------------- -- @module MenuItemFont -- @extend MenuItemLabel -- @parent_module cc -------------------------------- -- Returns the name of the Font.<br> -- js getFontNameObj<br> -- js NA -- @function [parent=#MenuItemFont] getFontNameObj -- @param self -- @return string#string ret (return value:...
function _G.RELOAD(...) return require("plenary.reload").reload_module(...) end function _G.R(name) RELOAD(name) return require(name) end
--[[ Copyright (C) 2013 Lex Robinson This code is freely available under the MIT License. See the LICENSE file for more information. --]] function EFFECT:Init(edata) self.pos = edata:GetOrigin(); self.amount = edata:GetScale(); self.start = CurTime(); self.length = 3; self.finish = self.start + self.length;...
-- Rectangle.lua -- babyjeans -- --- Rectangle = class("Rectangle") function Rectangle:init(x, y, w, h) self.x = x self.y = y self.w = w self.h = h end function Rectangle:min() return { x=self.x, y=self.y } end function Rectangle:max() return { x=self.x+self.w, y=self.y+self.h } end function Rectangle:contai...
--[[--------------------------------------------------------- Super Cooking Panic for Garry's Mod by Xperidia (2020) -----------------------------------------------------------]] AddCSLuaFile() function GM.PlayerMeta:IsValidPlayingState() return self:Alive() and self:Team() ~= TEAM_SPECTATOR and self:Team()...
local v,s,t,f = require("Vec2"),require("Size"),true,false return {"Array",{"Phyx.Disk","circle","Dynamic",v(0,0),0,v(0,0),90,1,0.4,0.4,0,0,f,v(0,-10),f,f,0,f,"Model/duality.clip|s5",v(0,0)}}
local Timer = require 'vendor/timer' local sound = require 'vendor/TEsound' return { name = 'hempleaf', position_offset = { x = 0, y = 0 }, height = 7, width = 16, damage = 18, antigravity = true, jumpkill = false, hp = 2, tokens = 0, tokenTypes = { -- p is probability ceiling and this list should ...
--[[ © 2021 Tony Ferguson, do not share, re-distribute or modify without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ ) ]] local DARKRP = {} DARKRP.name = "DarkRP" DARKRP.gamemodeCallback = function() return DarkRP and true or false end DARKRP.isPolice = function( play...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.rules.fog_of_war.actions", function() local Actions = require "game.rules.fog_of_war.actions" local Position = require "game.rules.world.position" local mockSt...
#!/usr/bin/env luajit -- package.path = "../?.lua;../?/init.lua;" .. package.path package.path = package.path .. ";" .. os.getenv("P4_WORKSPACE") .. "/DebLua/?.lua" require "lua_shell" local wd = pshell.pwd() local git_dir = os.getenv("LXGIT") package.path = git_dir.."/?.lua;".. package.path -- package.path = git_d...
fx_version 'bodacious' game 'gta5' name 'prof_motoristaPub' description '' server_scripts { '@vrp/lib/utils.lua', 'config/config.lua', 'server/main.lua' } ui_page 'html/index.html' client_scripts { '@vrp/lib/utils.lua', 'config/unloadType.lua', 'config/busType.lua', 'config/routes/*.lua', 'confi...
--- just a silly wrapper for the kepler file logger --EVENTS: --[[ <initialize source="core"> log this </initialize> ]] --[[ <loadUtilities source="core"> finish: log this </loadUtilities> ]] --[[ <loadConfig source="core"> finish: log this </loadConfig> ]] --[[ <loadCore source="core"> finish: log this </loadC...
return require 'hydro.solver.grhd-behavior'(require 'hydro.solver.fvsolver')
local _, nCore = ... function nCore:RegisterDefaultSetting(key, value) if nCoreDB == nil then nCoreDB = {} end if nCoreDB[key] == nil then nCoreDB[key] = value end end function nCore:SetDefaultOptions() nCore:RegisterDefaultSetting("AltBuy", true) nCore:RegisterDefaultSetting("...
--- -- @class PANEL -- @section DCardTTT2 local PANEL = {} local MODE_DEFAULT = ShopEditor.MODE_DEFAULT local MODE_ADDED = ShopEditor.MODE_ADDED local MODE_INHERIT_ADDED = ShopEditor.MODE_INHERIT_ADDED local MODE_INHERIT_REMOVED = ShopEditor.MODE_INHERIT_REMOVED --- -- @ignore function PANEL:Init() self:SetContentA...
local print = print local ipairs = ipairs local io = io local os = os local oop = require "loop.base" module("latt.ConsoleResultViewer", oop.class) function __new(self, result) return oop.rawnew(self, { result = result, }) end function show(self) print("==============================================") print("...