content
stringlengths
5
1.05M
GLib.UTF8 = {} local math_floor = math.floor local string_byte = string.byte local string_char = string.char local string_len = string.len local string_lower = string.lower local string_find = string.find local string_format = string.format local string_gsub = string.gsub local string_sub = string.su...
-- Creator: Shush -- Date: 27/5/2020 -------------------- -- BLACK KING BAR -- -------------------- LinkLuaModifier("modifier_item_imba_black_king_bar", "components/items/item_black_king_bar", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_imba_black_king_bar_buff", "components/items/item_black_king_bar", ...
local M={} local tones={ BV= 246, C = 261, XC = 277, D = 294, XD = 311, E = 329, F = 349, XF = 369, G = 391, XG = 415, A = 440, XA = 466, B = 493, c = 523, xc = 554, d = 587, xd = 622, e = 659, f = 698, xf = 740, g = 784, xg = 830, a = 880, xa = 932, b = 987, z = 0 } local pr...
--[[ 16747 PS_Tyrannus_Openning01 16748 PS_Tyrannus_Openning02 16749 PS_Tyrannus_Openning03 16750 PS_Tyrannus_Openning04 16751 PS_Tyrannus_Openning05 16752 PS_Tyrannus_Forgemaster01 16753 PS_Tyrannus_Krick01 16754 PS_Tyrannus_Krick02 16755 PS_Tyrannus_Ambush01 16756 PS_Tyrannus_Ambush02 16757 PS_Tyrannus_GauntletStart0...
-- $Id$ -- -- All rights reserved. Part of the ALua project. -- Detailed information regarding ALua's license can be found -- in the LICENSE file. -- -- -- This module creates a hashtable optimized to access the keys as array. -- module("alua.util.khash", package.seeall) local function put(self, key, value) loca...
HitConfig = { } HitConfig[100001]={id=100001,lockLevel=1000,maxFrame=20,hitColor={255,0,0,255},event1=1,eventType1=7,eventId1=200001,event2=1,eventType2=2,eventId2=100004} HitConfig[100002]={id=100002,lockLevel=1000,maxFrame=20,hitColor={255,0,0,255},event1=1,eventType1=7,eventId1=200001,event2=1,eventType2=2,eventId2=...
// Language files language.Add("Undone_Translate", "Undone Translate")
-- more in depth point = { x = 10, y = 20 } print(point["x"]) print(point.x)
require('assets/scripts/object') require('assets/scripts/Utility/uiUtilities') PauseMenu = Object:new() function PauseMenu:init() self:createPanel() self.pauseMenuPanel:get("UIRect").isEnabled = false end function PauseMenu:createPanel() self.pauseMenuPanel = Game.makeActor { Name = "PauseMenuPanel", Tran...
-- -- Author: DoooReyn -- Date: 2016-01-20 20:59:37 -- local ListView = ccui.ListView -------------------------------------------------------------- ------------Below Are Custom UIListView Parameters------------ -------------------------------------------------------------- ListView._sliderBar = nil --Sl...
---------------------------------------------------------------------------------- --- Total RP 3 --- Directory --- --------------------------------------------------------------------------- --- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) --- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@tota...
-- Copyright 2018 Yahoo Inc. -- Licensed under the terms of the Apache license. Please see LICENSE.md file -- distributed with this work for terms. --[[ This is where we define the metrics for Fili. Metrics are formulas (for example, formulas of aggregations and post-aggregations that we send down to Druid). These fo...
local command = require 'aula.core.command' command.set('W', 'w') command.set('W', 'w') command.set('Wq', 'wq') command.set('Q', 'q') command.set('Qa', 'qa') command.set('QA', 'qa')
-- Various email and tell mod support -- This function takes the position of a vendor and alerts the owner if it has just been emptied local email_loaded = minetest.get_modpath("email") local tell_loaded = minetest.get_modpath("tell") local mail_loaded = minetest.get_modpath("mail") function fancy_vend.alert_owner_i...
------------------------------------------------------ -- ___ _ -- -- | __| |___ _ __ _____ __ _____ _ _ -- -- | _|| / -_) '_ \/ _ \ V V / -_) '_| -- -- |___|_\___| .__/\___/\_/\_/\___|_| -- -- _ _ |_| _ _ _ ...
TOOL.Category = "EMod Tools" TOOL.Name = "E-ToolBox" TOOL.Tab = "EMod" TOOL.Information = { { name = "left" }, { name = "right" } } function TOOL:LeftClick(trace) if (IsValid(trace.Entity) and trace.Entity:IsPlayer()) then return false end if (CLIENT) then return true end if (not util.IsValidPhysicsObject(...
----------------------------------------- -- ID: 18581 -- Item: Carbuncle's Pole -- Item Effect: Restores 160-220 HP ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") function onAdditionalEffect(player,target,damage) local ch...
require "utils" require "trycatch" require "PiniAPI" require "cocos.cocos2d.json" require "BuiltIn_Animation" math.randomseed(os.time()) ENGINE_LOG = nil XLSX_CLEAR = nil REFRESH_BUILD_PATH = nil local luaj = nil local Utils = nil local PiniLib = nil local fileUtil = nil local xlsxCache = {} local ROOT_PATH = nil lo...
function load_puzzle() return { {0,0,0,0,0}, {0,1,1,1,0}, {0,1,1,1,0}, {0,1,1,1,0}, {0,1,1,1,0}, } end
--[[ HEADLESS RSRT DRIVER Summary: The headless RSRT driver implements the minimum required functionality to transmit and receive data on an RSRT bus. Remarks: * On any top-level declaration, the "local" keyword can be removed, degrading performance but decreasing code size. * All two-letter symbo...
-- Internal custom properties local PANEL = script:GetCustomProperty("Panel"):WaitForObject() local DIALOG_TEXT = script:GetCustomProperty("Text"):WaitForObject() local BACKGROUND = script:GetCustomProperty("Background"):WaitForObject() -- Constants local TEXT_LETTER_COLUMN_SIZE = DIALOG_TEXT.fontSize / 2 local TEXT_L...
-- Networking [Server] -- Kenji local ReplicatedStorage = game:GetService("ReplicatedStorage") local networkImplEvent = Instance.new("RemoteEvent") networkImplEvent.Name = "network" networkImplEvent.Parent = ReplicatedStorage.kenji local Networking = {} local exports = {} local WEAK_MT = setmetatable({}, {__mode = "...
local package, insert, getfenv, require, setmetatable, assert, setfenv, unpack, loadstring, create, resume = package, table.insert, getfenv, require, setmetatable, assert, setfenv, unpack, loadstring, coroutine.create, coroutine.resume; local supported_files = {'lua'}; local preload, loaded, split, getSplitter = packa...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ return function(loveframes) ---------- module start ---------- -- multichoice object local newobject = loveframes.NewObject...
local doc = {} function doc:newSandbox() local env = {banana = banana.Clone(banana)} env.banana.RootNamespace = {} return env,env.banana end function doc:sandboxRunCode(code,env,src) pcall(function() local fn = CompileString(code,src) debug.setfenv(fn,env) fn(env) end) end ...
VSTPlugin = MultiOutUGen:new({name="VSTPlugin"}) local Serverdefault = require"sclua.Server".Server() -- function takes a string that behaves like a file to be read local function StrStream(strg) local strptr = 1 local str = strg local strfile = {} function strfile:read(len) local oldstrptr = st...
ys = ys or {} slot1 = ys.Battle.BattleResourceManager ys.Battle.BattleCannonBullet = class("BattleCannonBullet", ys.Battle.BattleBullet) ys.Battle.BattleCannonBullet.__name = "BattleCannonBullet" ys.Battle.BattleCannonBullet.Ctor = function (slot0, slot1, slot2) slot0.Battle.BattleCannonBullet.super.Ctor(slot0, slot1...
local bzutil = require("__bzcarbon__.data-util"); local util = require("util") if mods.Krastorio2 then if bzutil.me.use_fullerenes() then -- Add extra nanotube recipes. -- This could be moved to data-updates in future if necessary data:extend({ { type = "recipe", name = "imersium-plate-n...
----------------------------------- -- -- INHIBIT_TP -- Reduces TP Gain By a % Factor -- ----------------------------------- function onEffectGain(target, effect) target:addMod(tpz.mod.INHIBIT_TP, effect:getPower()) end function onEffectTick(target, effect) end function onEffectLose(target, effect) target:de...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Utilities = ReplicatedStorage.Utilities local Assert = require(Utilities.Assert) local Functions = require(Utilities.Functions) local Music = require(ReplicatedStorage.Music) local Tutorial = require(ReplicatedStorage.Tutorial) --local BookPouch = req...
description 'Example of custom dispatch for ballas and vagos gangs' client_scripts { 'config.lua', 'client.lua' } dependency 'essentialmode'
local function user_print_name(user) local text = '' if user.first_name then text = user.first_name..' ' end if user.last_name then text = text..user.last_name end if user.title then text = user.title end return text or user.print_name:gsub('_', ' ') end local function returnids(cb_extra, s...
#!/usr/bin/lua --**************************** --Function: Set vlanid related to certain wan --Usage: Run change_vlan.lua with wan_name and vlanid you want to set. '1' means to add switch_vlan if not find vlanid --Example: lua change_vlan.lua wan4 1099 1 --**************************** local uci = require "luci.model.u...
local function body() print 'body' end local co = coroutine.create(body) coroutine.resume(co)
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local greenCode = greenCode; local pairs = pairs; local math = math; greenCode.hint = greenCode.kernel:NewLibrary("Hint"); greenCode.hint.stored = {}; if SERVER then function green...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
-- TODO: figure out why this don't work vim.fn.sign_define( "LspDiagnosticsSignError", { texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError" } ) vim.fn.sign_define( "LspDiagnosticsSignWarning", { texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning" } ) ...
--locals local render_target_first = render.GetScreenEffectTexture(0) local render_target_second = render.GetScreenEffectTexture(1) ----localized functions local entity_meta = FindMetaTable("Entity") local fl_cam_End2D = cam.End2D local fl_cam_End3D = cam.End3D local fl_cam_Start2D = cam.Start2D local fl_cam_St...
BLT.Items.Slider = BLT.Items.Slider or class(BLT.Items.Item) local Slider = BLT.Items.Slider Slider.type_name = "Slider" function Slider:Init() self.value = self.value or 1 self.size_by_text = false Slider.super.Init(self) self.step = self.step or 1 self.value = tonumber(self.value) or 0 self.float...
data:extend({ { type = 'custom-input', name = 'controllinator-debug-pause', key_sequence = 'F10', }, { type = 'custom-input', name = 'controllinator-debug-step', key_sequence = 'F11', }, { type = 'custom-input', name = 'controllinator-d...
-- pre require settings vim.g.nvim_tree_show_icons = { files = 0, folders = 1, folder_arrows = 1, git = 0, } vim.g.nvim_tree_icons = { folder = { default = 'F', open = 'F', empty = 'E', empty_open = 'E', arrow_open = ".", arrow_closed = '>' } } vim.g.nvim_tree_quit_on_open = 1 requi...
local MandelbrotCheck = function(workX, workY) return ((workX * workX) + (workY * workY)) < 4.0 end local GameObject = CS.UnityEngine.GameObject local Vector3 = CS.UnityEngine.Vector3 local Quaternion = CS.UnityEngine.Quaternion function TestMandelbrot(sb) local data = 0.0 local iterations = 4 local width = 64 loc...
CampSprite = class("CampSprite", function (...) return BuildingBaseSprite:create(...) end) CampSprite.type = "UniqueBuilding" Temple:initBuildingHP(CampSprite) function CampSprite:onEnter() self:adjustBarPosition(0, 10) end function CampSprite:create(...) campSprite = CampSprite.new(IMG_BUILDING_CAMP) campSpr...
local layerBase = require("games/common2/module/layerBase"); require("games/common2/module/playerInfo/playerInfoLogic"); --[[ 用户详情信息 ]] local PlayerLayout = class(layerBase); PlayerLayout.ctor = function(self) self.m_curSeat = -1; end PlayerLayout.dtor = function(self) PlayerInfoLogic.releaseInst...
Args = {{ Login = '{0}', Password = '{1}', Character = '{2}' }} function Main() if(AccountLoginUI and AccountLoginUI:IsVisible()) then DefaultServerLogin(Args['Login'], Args['Password']) elseif(CharacterSelectUI and CharacterSelectUI:IsVisible()) then for charIndex = 0, GetNumCharacters() do if ...
Speedometer = {} Speedometer.visible = false local DRAW_POST_GUI = false local SPEED_SECTORS_COUNT = 134 local screenWidth, screenHeight = guiGetScreenSize() local originalSize = 400 local width, height = Utils.screenScale(250), Utils.screenScale(250) local screenOffset = Utils.screenScale(20) local fallbackTo2d = fa...
--[[ ============================================================================================================ Author: Rook Date: February 1, 2015 Called when Butterfly is cast. Removes the evasion from all Butterflies in the player's inventory and replaces it with a single instance of bonus movespeed. ========...
CatalogueClearAll(); CreateNewMetricProject(); local electcat =AddNewCatalogue("Electrical", ""); CatalogueAddType(electcat,'ELECTRICAL_JOINT','WIRE','WIRE_INSULATION','CABLE','ELECTRICAL_CONDUIT', 'ELECTRIC_APPLIANCE','ELECTRIC_LIGHT'); local waccat =AddNewCatalogue("Wires and Cables", electcat ); CatalogueAddTyp...
-- features marked as "TODO" - are long-term goals, -- that will be implemented after other features complete and working as intended. -- example config for sandbox and exec profile -- following global identifiers (tables) reserved for system use: -- loader (used by bash-lua-helper), some helper stuff: loader.workdi...
local function setup() require("toggleterm").setup({ open_mapping = require("mappings").functions_terminal, }) end return { setup = setup, }
local SpatialDownSampling, parent = torch.class('nn.SpatialDownSampling', 'nn.Module') local help_desc = [[ Applies a 2D down-sampling over an input image composed of several input planes. The input tensor in forward(input) is expected to be a 3D tensor (nInputPlane x width x height). The number of output planes will ...
--[[customData = { type = "custom", reference = "MyAddonCustomControl", --(optional) unique name for your control to use as reference refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh width = "full", --or "half" (optional) } ]] local widgetVersion = 6 loca...
local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local widget = require('util.widgets') local font = require("util.font") -- widgets for the monitor bar local ram = require("widgets.ram")({ layout = "horizontal", mode = "progressbar", bar_size = 100 }) local volume =...
pork = { use = function(player) local health = 128 player:sendAction(8, 25) player.attacker = player.ID player:addHealthExtend(health, 0, 0, 0, 0, 0) if player.health == player.maxHealth then player:sendMinitext("You feel satiated.") end end } rare_pork = { use = function(player) local health = 3...
-- -- Aliases for map generator outputs -- minetest.register_alias("mapgen_stone", "default:stone") minetest.register_alias("mapgen_dirt", "default:dirt") minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass") minetest.register_alias("mapgen_sand", "default:sand") minetest.register_alias("mapgen...
--!A cross-platform build utility based on Lua -- -- 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...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local UF = E:GetModule('UnitFrames'); --Cache global variables --Lua functions local unpack = unpack --WoW API / Variables local UnitIsWarModePhased = UnitIsWarModePhased local texCoords = { [1] = {1 / 128, 33 ...
----------------------------------- -- Area: Garlaige Citadel [S] -- NPC: Randecque -- !pos 61 -6 137 164 -- Notes: Gives Red Letter required to start "Steamed Rams" ----------------------------------- require("scripts/globals/settings") require("scripts/globals/keyitems") local ID = require("scripts/zones/Garlaige_Ci...
-- obtain mouse state local mouseX = screen.getMouseX() local mouseY = screen.getMouseY() local mouseState = screen.getMouseState() -- convert mouse coordinates to HSV local h = mouseX * 255 local s = 255 local v = 255 if mouseY < 0.5 then s = (mouseY*2) * 255 end if mouseY > 0.5 then v = (1 - ((mouseY-0.5)*...
module("luci.controller.changewifi", package.seeall) function index() entry({"admin" , "changewifi"}, cbi("changewifi"), _("修改wifi信息"), 100) end
--[[ Name: HttpService.lua / init.lua Author: DontRevealMe Description: Provides an httpservice queuing system --]] local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Framework")) local Signal = require("Signal") local Promise = require("Promise") local HttpService = game:GetService...
------------------ -- Cells are agents used to represent the space. They are also known as tiles or patches in other systems. -- @classmod -- Cell local class = require 'Thirdparty.pl.class' local Cell = class.Cell(Agent) ------------------ -- Cell constructor. -- When a new Cell is created, some properties are giv...
local patch_id = "GAMESTATE_ADD_AGENT_RM_OLD_SKIN" if not rawget(_G, patch_id) then rawset(_G, patch_id, true) print("Loaded patch:"..patch_id) local old_fn = GameState.AddAgent GameState.AddAgent = function(self, agent) local result = old_fn(self,agent) agent.original_skin = nil ...
return { PlaceObj('ModItemCode', { 'name', "Crime", 'FileName', "Code/Crime.lua", }), PlaceObj('ModItemCode', { 'name', "CrimeUI", 'FileName', "Code/CrimeUI.lua", }), PlaceObj('ModItemCode', { 'name', "DomesticViolence", 'FileName', "Code/DomesticViolence.lua", }), PlaceObj('ModItemCode', { 'name', "FirstRespond...
local socket = require("socket") client = socket.connect("google.com", 80) client:send("GET /robots.txt HTTP/1.0\r\n\r\n") while true do s, status, partial = client:receive(1024) print(s or partial) if status == "closed" then break end end client:close()
-- soft.lua v0.1 -- Copyright (c) 2016 Ulysse Ramage -- 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, copy, modify, merge, pu...
-- -- acme.lua -- -- ACME v2 protocol client implementation for HAProxy Lua host -- -- ACME RFC: -- https://tools.ietf.org/html/draft-ietf-acme-acme-12 -- -- Copyright (c) 2017-2020. Adis Nezirovic <anezirovic@haproxy.com> -- Copyright (c) 2017-2020. HAProxy Technologies, LLC. -- -- Licensed under the Apache License, V...
addEventHandler ( 'onClientPlayerDamage', root, function ( ) if ( isElement ( source ) ) then if ( getElementModel ( source ) == 217 or getElementData ( source, "isGodmodeEnabled" ) == true ) then cancelEvent ( ) end end end )
local display = {} local sharedDirector = cc.Director:getInstance() -- check device screen size local glview = sharedDirector:getOpenGLView() local size = glview:getFrameSize() display.sizeInPixels = {width = size.width, height = size.height} local w = display.sizeInPixels.width local h = display.sizeInPixe...
function GBayEntityPageFull(DFrame, data) if IsValid(HomePanel) then HomePanel:Remove() end if IsValid(HomePanel2) then HomePanel2:Remove() end if not IsValid(DFrame) then return end HomePanel = vgui.Create("DFrame", DFrame) HomePanel:SetPos(50, 180) HomePanel:SetSize(DFrame:GetWide() - 60, DFrame:Get...
local Line = {} function Line:new(world, x1, y1, x2, y2) local line = {} setmetatable(line, self) self.__index = self line.b = love.physics.newBody(world, 0, 0, 'static') line.s = love.physics.newEdgeShape( x1, y1, x2, y2 ) line.f = love.physics.newFixture( line.b, line.s ) line.color = { math.ran...
---- -- @file WorldInput ---- Brief description. -- @return <#return value description#> function WorldInput:WorldInput() end ---- Brief description. -- <#Description#> -- @return <#return value description#> function WorldInput:getClassName() end ---- Brief description. -- <#Description#> -- @return <#return valu...
-- luacheck: globals unpack vim local nvim = vim.api --[[ -> iron -- Here is the complete iron API. -- Below is a brief description of module separation: -- -->> behavior: -- Functions that alter iron's behavior and are set to be used -- within configuration by the user -- -- -->> memory: -- Iron's repl dat...
-- A progress bar. Simple functional component, nothing to see here. local Roact = require(game:GetService("ReplicatedStorage"):WaitForChild("Roact")) local c = Roact.createElement local Bar = {} Bar.Direction = { Horizontal = 0; Vertical = 1; } Bar.Origin = { Left = 0; Middle = 1; Right = 2; Top = 0; Bottom ...
----------------------------------- -- Area: Misareaux Coast -- NPC: Spacial Displacement -- Entrance to Riverne Site #A01 and #B01 ----------------------------------- require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) ...
-- icarus v1.3.0 -- -- I warn you, fly a middle -- course: go too low & water -- will weigh you down; -- go too high and the sun's -- fire will burn you. -- keep to the middle way. -- -- (plug in midi keyboard first) -- E1 = time -- E2 = filter -- E3 = feedback -- K1,2,3 bounce -- speeding up time more easily -- destro...
electrician_energy_absorption = class( AbilityBaseClass ) LinkLuaModifier( "modifier_electrician_energy_absorption", "abilities/electrician/electrician_energy_absorption.lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function electrician_energy_absor...
spider_egg_sack = class( AbilityBaseClass ) LinkLuaModifier( "modifier_spider_egg_sack", "modifiers/modifier_spider_egg_sack", LUA_MODIFIER_MOTION_NONE ) ------------------------------------------------------------------------- function spider_egg_sack:GetIntrinsicModifierName() return "modifier_spider_egg_sack" end...
-- A set of functions which aids the other lua scripts local function toFactorioUnit(settings, kmH) if settings.global["aircraft-speed-unit"].value == "imperial" then kmH = kmH * 1.609 --Thanks google! end -- Convert the lua speed into km/h with * 60 * 3.6 return kmH / 216 end -- Converts fac...
--[[ Info.lua --]] return { appName = "Raw Plus Jpeg", author = "Rob Cole", authorsWebsite = "www.robcole.com", donateUrl = "http://www.robcole.com/Rob/Donate", platforms = { 'Windows', 'Mac' }, pluginId = "com.robcole.lightroom.RawPlusJpeg", xmlRpcUrl = "http://www.robcole.com/Rob/...
output_directory = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/" build_directory = "%{wks.location}/build/bin/" .. output_directory .. "%{prj.name}" int_build_directory = "%{wks.location}/build/bin-int/" .. output_directory .. "%{prj.name}" project_dirs = { engine = "%{wks.location}/projects/hydra", sandbox...
-- Thanks Acecool and HandsomeMatt for your code local function generateCircle( radius ) local seg = 100 local cir = {} table.insert( cir, { x = 0, y = 0, u = 0.5, v = 0.5 } ) for i = 0, seg do local a = math.rad( ( i / seg ) * -360 ) table.insert( cir, { x = radius / 2 + math.sin( a )...
-- Copyright 2011 by Jannis Pohlmann -- -- This file may be distributed and/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/p...
local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local clickable_container = require('widget.clickable-container') -- Variable used for switching panel modes right_panel_mode = 'today_mode' lo...
vim.cmd "colorscheme tokyonight"
local _ = require ('ludash') local observable = require('rx.observable') return function() return observable(_.noop) end
--------------------------------------------------------------------------------------------------- -- --filename: game.ui.battle.PausePanel --date:2019/11/21 16:21:51 --author:heguang --desc:暂停面板 -- --------------------------------------------------------------------------------------------------- local strClassName ...
pg = pg or {} pg.enemy_data_statistics_180 = { [11800312] = { cannon = 0, battle_unit_type = 35, rarity = 1, speed_growth = 0, pilot_ai_template_id = 20001, air = 0, luck = 0, dodge = 0, wave_fx = "danchuanlanghuaxiao2", cannon_growth = 0, speed = 15, reload_growth = 0, dodge_growth = 0, id...
function plas_wall_images() return {single = { layers = { { filename = "__PCPRedux__/graphics/plastic-wall/wall-single.png", priority = "extra-high", width = 32, height = 46, variation_count = 2, line_length = 2, shift =...
-------------------------------------------------------------------------- -- This class is manages the hash table that stores the "environment" -- variables that Lmod controls. Each instant of Var holds a single -- environment variable, path, local variable, shell function or alias. -- This class is at the core of Lm...
-- Condition local equals = require "resty.taurus.condition.equals" local contains = require "resty.taurus.condition.contains" local startwith = require "resty.taurus.condition.startwith" local endwith = require "resty.taurus.condition.endwith" local range = require "resty.taurus.condition.range" local has_fields = re...
local CropManager = {} CropManager.__index = CropManager local index = 1 local Crop = require "game.crops.Crop" function CropManager:new(tilemap) local ins = setmetatable({}, self) ins._crops = {} ins._tilemap = tilemap or {} Signal.register('cropTick', function () ins:tick() end) Signal.register('save...
local g = vim.g g.indentLine_char = '│' g.indent_blankline_use_treesitter = true g.indentLine_faster = 1 g.indentLine_fileTypeExclude = {'tex', 'markdown', 'txt', 'startify', 'packer'} g.indent_blankline_show_first_indent_level = false g.indent_blankline_show_trailing_blankline_indent = false
if (SERVER) then AddCSLuaFile() end --Panzerfaust sound.Add({ name="Weapon_Panzerfaust.Explode", volume = 1.0, sound = "weapons/panzerfaust/panzerfaust_detonate_01.wav", level = 140, --how loud are booms? channel = CHAN_STATIC }) sound.Add({ name="Weapon_Panzerfaust.Single", volume = 1.0, sound = "weapons/panz...
modifier_storegga_avalanche_thinker = class({}) -------------------------------------------------------------------------------- function modifier_storegga_avalanche_thinker:IsHidden() return true end -------------------------------------------------------------------------------- function modifier_storegga_avalan...
-- type = github -- DO NOT REMOVE THIS LINE! local name = "uplift" local version = "2.6.4" local org = "gembaadvantage" local repo = "uplift" local base_url = "https://github.com/" .. org .. "/" .. repo food = { name = name, description = "Semantic versioning the easy way. Powered by Conventional Commits. Buil...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_DS = require(script:GetCustomProperty("APIDifficultySystem")) local API_D = require(script:GetCustomProperty("APIDamage")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local RANGE = 0.0 local COOLDOWN = 18.0 local MA...
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
require("stategraphs/commonstates") local actionhandlers = { -- ActionHandler(ACTIONS.GOHOME, "action"), -- ActionHandler(ACTIONS.EAT, "eat"), } local events= { CommonHandlers.OnLocomote(false, true), CommonHandlers.OnFreeze(), CommonHandlers.OnAttacked(), CommonHandlers.OnDeath(), CommonH...
ASTEROID_SIZE = 100 -- here since we will use it in multiple files, but can also be an asteroid attribute show_debugging = false function calculateDistance(x1, y1, x2, y2) return math.sqrt(((x2 - x1) ^ 2) + ((y2 - y1) ^ 2)) end