content stringlengths 5 1.05M |
|---|
local spinner = {}
-- Copied from github.com/EmmanuelOga/easing
-- This function was contributed by Kikito
local inOutQuad = function(t, b, c, d)
t = math.min(math.max(t, 0), 1)
t = t / d * 2
if t < 1 then
return c / 2 * t^2 + b
else
return -c / 2 * ((t - 1) * (t - 3) - 1) + b
end
e... |
--[[
LuCI - Lua Configuration Interface - dump1090 support
Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
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... |
--[[
Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
A copy of the MIT License is included in this file.
Terms of the MIT License:
-------------... |
----------------------------------------------------
-- global.lua - 全局变量
--
-- Author : Chunhui Ren <renchunhui2008@gmail.com>
-- License: MIT License
----------------------------------------------------
-- $HOME 系统环境变量
HOME = vim.fn.expand('$HOME')
-- 判断是否是 macOS
IS_MAC = vim.loop.os_uname().system == 'Darwin'
-- ... |
local callingArguments = {...};
local Path = shell.dir().."/";
--wget run https://raw.githubusercontent.com/BHNowaru/ccirc/main/importer.lua
local names = {
["irc-client"] = true,
["irc-host"] = true,
["irc-server"] = true
}
if (callingArguments[1] == "-s") then-- -s for select
callingArguments = {table... |
---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local utils... |
require('level')
-- Apothecaries are learned men and women, who ground their knowledge in
-- a study of the elements. As a result, they gain intelligence as they
-- become more experienced.
local function apothecary_stat_gain_fn(creature_id, level)
if level == 1 then
identify_item_type(creature_id, CITEM_TYPE_P... |
-- Both clientside and serverside initialize, do not edit!
if SERVER then AddCSLuaFile() end
local SHAREDCODE = 0
local CLIENTSIDECODE = 1
local SERVERSIDECODE = 2
local function includelua( file, realm )
if SERVER and realm ~= SERVERSIDECODE then print("AddCSLuaFile", file ) AddCSLuaFile( file ) end
if realm == S... |
alert("stupid", "Some Stupid Title"); |
local PANEL = {}
function PANEL:Init()
self.IsMenuMessage = true
end
function PANEL:SetMessage(uid)
self.Message = impulse.MenuMessage.Data[uid]
self.Message.colour = ColorAlpha(self.Message.colour, 170)
self.desc = vgui.Create("DLabel", self)
self.desc:SetPos(50, 40)
self.desc:SetSize(self:GetWide() - 60, sel... |
local _, core = ...;
local _G = _G;
local MonDKP = core.MonDKP;
local L = core.L;
function MonDKP:ToggleDKPModesWindow()
if core.IsOfficer == true then
if not core.ModesWindow then
core.ModesWindow = MonDKP:DKPModesFrame_Create();
-- Populate Tabs
MonDKP:DKPModes_Main()
MonDKP:DKPModes_Misc()
end
... |
-- 必须有PROJECT和VERSION这两个信息
-- 这个DEMO需要V0003及以上的固件
PROJECT = "otademo"
VERSION = "1.0.0"
PROJECT_KEY = "01kgGFLlsfAabFuwJosS4surDNWOQCVH"
log.info("version", VERSION) -- 打印版本号,就能知道是否升级成功
local sys = require "sys"
-- 生成OTA的URL
-- local iot_url = "http://iot.nutz.cn/api/site/firmware_upgrade"
local iot_url = "http:/... |
JustTeleported = false
function DrawText3Ds(x, y, z, text)
SetTextScale(0.35, 0.35)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
SetTextCentre(true)
AddTextComponentString(text)
SetDrawOrigin(x,y,z, 0)
DrawText(0.0, 0.0)
local facto... |
#! /usr/bin/lua
require( "common" )
Items = data( "items" )
-- this contains a memory dump that's been hit with
-- "od -t x1", had all the new lines/addresses removed and
-- then been trimmed to only include the relevant data
local DataPath = "monsters/carves.txt"
local sep =
{
blocks = 2,
monster = nil
}
local ... |
--[[ ============================================================================================================
Author: Rook
Date: February 23, 2015
Called when Power Word is cast. Applies an armor buff if cast on an ally, and an armor debuff if cast on an enemy.
==================================================... |
MAP_ROOMS = {}
MAP_ROOMS[1] = {}
MAP_ROOMS[2] = {}
MAP_ROOMS[3] = {}
MAP_ROOMS[4] = {}
MAP_ROOMS[5] = {}
MAP_ROOMS[6] = {}
MAP_ROOMS[7] = {}
MAP_ROOMS[8] = {}
PLAYER_SPAWNS = {}
table.insert(PLAYER_SPAWNS, {
location = Vector(-3040.000, 2200.000, 40.000),
rotation = Rotator(0.000000, 0.000000, 0.000000)
}... |
local path = mod_loader.mods[modApi.currentMod].scriptPath
local DecoChievo = require(path .."achievements/decoChievo")
local DecoSurfaceCentered = require(path .."achievements/decoSurfaceCentered")
local fontChievo = sdlext.font("fonts/NunitoSans_Bold.ttf", 19)
local shadowl, shadowc, shadowr
local function createUi... |
local test = require('test')
local Matrix2x3 = Matrix2x3
local Vector3 = Vector3
test.suite('Matrix2x3 Library')
test.test('creation', function()
local m = Matrix2x3.new()
test.assert_equal(#m, 6)
test.expect_equal(m:get(1, 1), 1)
test.expect_equal(m:get(1, 2), 0)
test.expect_equal(m:get(1, 3), 0)... |
local Card = require("app.demo.jasonhuang.card.Card")
local oneCard
local function createOnePoker()
local card = Card:create()
oneCard = card
return card
end
local function createPokerSetPanel()
local layer = cc.Layer:create()
local colorBtn = ccui.Button:create("Images/jasonhuang/btn... |
------------------------------------------------------------------------------------------------
-- 1Version ver. OneVersion-1.6.0
-- Authored by Chrono Syz -- Entity-US / Wildstar
-- Build a50c7d6d094803b86bf8936f1fb180ac508c272c
-- Copyright (c) Chronosis. All rights reserved
--
-- https://github.com/chronosis/1... |
-- scaffolding entry point for rapidjson
return dofile("rapidjson.lua")
|
-------------------------------------------------------------------------------
-- 64-bit hash insert fields tests
-------------------------------------------------------------------------------
hash = box.schema.space.create('tweedledum')
tmp = hash:create_index('primary', { type = 'hash', parts = {1, 'unsigned'}, uni... |
--------------------------------------------------------------------------------
-- lobby.lua
--------------------------------------------------------------------------------
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local table_insert, string_len = table.insert, string.len
local INFO_MSG = tengine.INFO... |
---
-- @module Equipment
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Log = require( 'src.util.Log' )
local Observable = require( 'src.util.Observable' )
local ItemFactory = require( 'src.items.ItemFactory' )
local Container = req... |
LANGUAGE = {
schemaName = "Metro Roleplay",
tying = "Tying...",
unTying = "Untying...",
isTied = "Tied",
fTiedUp = "You have been tied up.",
fBeingTied = "You are being tied up.",
tiedUp = "They have been tied up.",
beingTied = "They are being tied up.",
beingUntied = "They are being untied.",
searchingCorpse... |
-- int residenitial inside x64c > levels > interiors > int_props
--<Item>v_bar</Item>
--<Item>v_bathroom</Item>
--<Item>v_electrical</Item>
--<Item>v_kitchen</Item>
--<Item>v_office</Item>
sofas = {
[1] = { ["object"] = "miss_rub_couch_01", ["price"] = 300, ["name"] = "Old Flowered Couch" },
[2] = { ["object"] = "p... |
-----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Song Runes
-- Finishes Quest: The Old Monument
-- !pos -244 16 -280 118
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/titles")
require("scripts/globals/quests")
local ID = require("scripts/zones/... |
--[[----------------------------------------------------------------------------
Application Name:
EdgeMatcherSingle
Summary:
Teaching the shape of a "golden" part and matching an identical object with full
rotation in the full image.
How to Run:
Starting this sample is possible either by running the a... |
local LSM = LibStub("LibSharedMedia-3.0")
if LSM == nil then return end
LSM:Register('font',"Century Gothic Bold", [[Interface\AddOns\ElvUI_KlixUI\media\fonts\CenturyGothicB.ttf]])
LSM:Register('font',"Days", [[Interface\AddOns\ElvUI_KlixUI\media\fonts\Days.ttf]])
LSM:Register('font',"Expressway", [[Interface\AddOns\... |
local Constants = require "utils.constants"
function love.conf(t)
t.window.width = Constants.SCREEN_WIDTH
t.window.height = Constants.SCREEN_HEIGHT
-- t.window.fullscreen = true
end
|
local fsutil = require "fsutil"
local function find_exe()
local i = 0
while arg[i] ~= nil do
i = i - 1
end
return i + 1
end
local function update_arg()
for i = 1, #arg do
if arg[i] == "-e" then
table.remove(arg, i)
table.remove(arg, i)
break
... |
local api = {
abtesting = {},
accountinformation = {},
accountsettings = {},
adconfiguration = {},
ads = {},
api = {},
assetdelivery = {},
auth = {},
avatar = {},
badges = {},
billing = {},
catalog = {},
cdnproviders = {},
chat = {},
clientsettings = {},
clientsettingscdn = {},
contentstore = {},
cont... |
local colors = require'lualog.colors'
local Colorizer = {}
Colorizer.__index = Colorizer
Colorizer.__call = function(cls,...)
return cls.new(...)
end
local ustring = function(value)
return '\u{001b}['..value..'m'
end
function Colorizer.new(options)
-- options = options or {}
local c = {}
-- c.leve... |
local PLUGIN = PLUGIN;
-- Called when the local player's crafting is rebuilt.
function PLUGIN:PlayerCraftingRebuilt(panel, categories)
local craftingName = Clockwork.option:GetKey("name_crafting", true);
if (!self.craftingPanel) then
self.craftingPanel = panel;
end;
if (Clockwork.config:Get("craftingMenu"):G... |
require("prototypes.category")
require("prototypes.items")
require("prototypes.weapons")
require("prototypes.meat-bots")
require("prototypes.boilers")
require("prototypes.tiles")
require("prototypes.recipes")
require("prototypes.technology")
|
function PoisonFly.main()
end
function PoisonFly.LaunchDamageSound(_ARG_0_)
end
|
--
-- from src/eulerian.c
--
-- Eulerian to eulerianNumber
--
local function eulerianNumber(n, k)
if k == 0 then return 1 end
if k < 0 or k >= n then return 0 end
return (k+1) * eulerianNumber(n-1,k) + (n-k) * eulerianNumber(n-1,k-1)
end
return {
eulerianNumber = eulerianNumber
}
|
Bomb = Class{
function(self, position)
self.health = 100
self:reset()
self.position = position
self.image = love.graphics.newImage('art/bomb.png')
--percentage bar for bomb
self.difuseImg = love.graphics.newImage('art/difuse.png')
self.numbers= {}
self.numbers.img = love.graphics.newImage('art/numb... |
NL.CommModeWhisper = "WHISPER"
NL.CommTarget = UnitName("player")
NL.CommModeRaid = "RAID";
NL.CommAction = {}
NL.CommAction.SSonCD = "SSonCD"
NL.CommAction.BroadcastTable = "DataRefresh"
NL.CommAction.RequestAssignments = "GetAssignmentData"
NL.CommAction.AssigmentResponse = "AssignmentResponse"
NL.CommAction.Assign... |
-- Console will output last character in each line (when training).
-- Also check https://www.atitd.org/wiki/tale6/User:Skyfeather/VT_OCR for more info on OCR
dofile("common.inc");
dofile("settings.inc");
offsetX = 102;
offsetY = 72;
function doit()
askForWindow("Train OCR\n\nType a single letter/number... |
local Theme = require("motras_theme")
describe("Theme", function ()
local theme = Theme:new{
theme = {
platformLeft = {
moduleName = "hamburg_platform_left.module",
},
metadata = {
excludes = { "shelter" }
},
... |
--Change this to edit the Opening Key (Other Keys at wiki.fivem.net/wiki/Controls)
VEM.KBKey = 56
--Change this to enable/disable automatic vehicle repair when enabling an extra
VEM.DisableAutoRepair = true
--Change "false" to "true" to disable the Menu for Non-Admins
VEM.OnlyForAdmins = false
|
-- the efect settings
local colorizePed = {}
local specularPower = 1.3
local effectMaxDistance = 10
local isPostAura = true
-- don't touch
local scx, scy = guiGetScreenSize ()
local myRT = nil
local myShader = nil
local isMRTEnabled = false
local wallShader = {}
local PWTimerUpdate = 110
effectOn = false
pwEffectEna... |
return {
boxCheckmark=love.graphics.newQuad(380,36,38,36,512,256),
boxCross=love.graphics.newQuad(380,0,38,36,512,256),
boxTick=love.graphics.newQuad(386,210,36,36,512,256),
button00=love.graphics.newQuad(0,94,190,49,512,256),
button01=love.graphics.newQuad(190,49,190,45,512,256),
button02=love.graphics.newQuad(1... |
--- Copyright (c) 2020 Sammy James
local ADDON_NAME = ...
local CC = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
assert(CC, ADDON_NAME .. "not found")
local DP = CC:NewModule("DataProvider", "AceConsole-3.0", "AceEvent-3.0")
local LOC = LibStub("AceLocale-3.0"):GetLocale(ADDON_NAME)
function DP:OnEnable(...)
CC... |
local AddSet = function(setName)
if (gSettings.AllowAddSet == false) then
print(chat.header('LuAshitacast') .. chat.error('Your profile has addset disabled.'));
return;
end
if (gProfile == nil) then
print(chat.header('LuAshitacast') .. chat.error('You must have a profile loaded to u... |
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system({
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_path,
})
end
vim.cmd([[
augro... |
project_root = "../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-cpu")
uuid("0109c91e-5a04-41ab-9168-0d5187d11298")
kind("StaticLib")
language("C++")
links({
"xenia-base",
})
includedirs({
project_root.."/third_party/llvm/include",
project_root.."/third_party/gflags/s... |
function test_remove_if(t)
t:are_equal(table.remove_if({1, 2, 3, 4, 5, 6}, function (i, v) return (v % 2) == 0 end), {1, 3, 5})
t:are_equal(table.remove_if({a = 1, b = 2, c = 3}, function (i, v) return (v % 2) == 0 end), {a = 1, c = 3})
end
function test_find_if(t)
t:are_equal(table.find_if({1, 2, 3, 4, 5,... |
level = {}
level.pillarTarget = 30.0
level.pillarIndex = 0
pillar = {}
pillar.sprite = sprites.triangle
pillar.topposition = {x = 0.0, y= 10.0, z= 0.0}
pillar.topscale = {x = 15.0, y = 20.0}
pillar.bottomposition = {x = 10.0, y= 10.0, z= 0.0}
pillar.bottomscale = { x = 15.0, y = 20.0}
pillars = {}
function level:... |
bt.register_action("SetWaypointHere", {
tick = function(node, data)
local pos = {x= data.pos.x, y= data.pos.y, z= data.pos.z}
data.waypoints[node.wpname] = pos
return "success"
end,
ctor = function(name)
return {
wpname=name or "_"
}
end,
})
bt.register_action("SetWaypoint", {
tick = function(n... |
local AddPrefabPostInit = AddPrefabPostInit
GLOBAL.setfenv(1, GLOBAL)
AddPrefabPostInit("bat",function(inst)
local function MakeTeam(inst, attacker)
local leader = SpawnPrefab("teamleader")
leader.components.teamleader:SetUp(attacker, inst)
leader.components.teamleader:BroadcastDistress(ins... |
require "SvgWriter"
require "vmath"
require "Viewport"
require "SubImage"
require "GridAxis"
require "PixelImage"
require "_utils"
-- Sizing
local imageSize = vmath.vec2(350, 350);
local subImages = SubImage.SubImage(1, 1, imageSize.x, imageSize.y, 0, 50);
local coordSize = 6;
local coordWidth = coordS... |
object_tangible_meatlump_event_meatlump_container_01_12 = object_tangible_meatlump_event_shared_meatlump_container_01_12:new {
}
ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_container_01_12, "object/tangible/meatlump/event/meatlump_container_01_12.iff")
|
--[=[
@within PresenceTypeEnum
@prop Offline 0
@readonly
Offline presence.
]=]
--[=[
@within PresenceTypeEnum
@prop Online 1
@readonly
Online presence.
]=]
--[=[
@within PresenceTypeEnum
@prop InGame 2
@readonly
In game presence.
]=]
--[=[
@within PresenceTypeEnum
... |
local _, Addon = ...
local Dominos = LibStub('AceAddon-3.0'):GetAddon('Dominos')
local ProgressBar = Dominos:CreateClass('Frame', Dominos.ButtonBar)
-- remove any modes from a list that are not currently loaded
local function cleanupModes(modes)
for i = #modes, 1, -1 do
local mode = modes[i]
if not Addon.progress... |
data:extend({
{
type = "item",
name = "lo-storage-tank",
icon = "__LoStorageTank__/graphics/icon/lo-storage-tank.png",
icon_size = 32,
flags = {"goes-to-quickbar"},
subgroup = "storage",
order = "b[fluid]-b[lo-storage-tank]",
place_result = "lo-storage-tank",
stack_size = 10
},
... |
-- Mesure la distance avec le module ultra-son de 15cm à 2m
-- Attention le module à ultra-son doit être alimenté en 5V !
print("\n 0_ultra_son.lua zf200707.0717 \n")
speed_air = 382 -- en m/s
zlength_min = 12 -- en cm
zlength_max = 56 -- en cm
zlength_brut = 0
zlength = 33
zlen... |
return {'oegaritisch','oeganda','oegandees','oegstgeest','oegstgeestenaar','oegstgeester','oegstgeests','oegema','oegaritische'} |
--- Point a current element but lag behind for a smoother experience
-- @classmod LagPointCamera
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CameraState = require("CameraState")
local SummedCamera = require("SummedCamera")
local Spring = require("Spring")
local LagPo... |
supplyLimit("CaptureFrigate",12)
supplyLimit("Carrier",4)
|
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/SpaceMode/GroundToSpaceDisable.lua#1 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (C) Petroglyph Games, Inc.
--
--
-- ***** ** * *
-- * ... |
package.path = package.path .. ';script/?.lua;tools/?.lua'
local fs = require 'bee.filesystem'
local util = require 'utility'
local function loadLocaleFile(filePath)
local fileContent = util.loadFile(filePath:string())
local data = {
map = {},
list = {},
}
if not fileContent then
... |
ottomanic:importFoldersOrFiles( "Import Folders or Files" )
return true |
local Driver = require 'st.driver'
local log = require 'log'
local utils = require 'st.utils'
local json = require 'dkjson'
local capabilities = require 'st.capabilities'
local socket = require 'cosock'
local function disco(driver, opts, cont)
print('starting disco', utils.stringify_table(opts))
local device_list ... |
local core = require "sys.core"
local mysql = require "sys.db.mysql"
local json = require "sys.json"
local gateway = require "saux.gac2gasgatewayproxy"
local pb = require "pb"
local protoc = require "protoc"
local socket = require "sys.socket"
local db = require "DbMgr"
local dateUtil = require "utils/dateutil"
require... |
-- CHECKBOX
goo.checkbox = class('goo checkbox', goo.object)
goo.checkbox.image = {}
function goo.checkbox:initialize(parent)
super.initialize(self,parent)
self:setSkin()
self.checkState = 'unchecked'
self.w = 16
self.h = 16
end
function goo.checkbox:setSkin()
goo.checkbox.image.unchecked = love.graphics.newImag... |
local MODNAME = minetest.get_current_modname()
local api = rawget(_G, MODNAME)
function api.get_bullet_start_data(player)
local look_dir = player:get_look_dir()
local spawnpos = vector.offset(player:get_pos(), 0, player:get_properties().eye_height, 0)
spawnpos = vector.add(spawnpos, player:get_eye_offset())
spawnp... |
require ("lib.lclass.init")
class "PlanetOverviewEndEvent"
function PlanetOverviewEndEvent:PlanetOverviewEndEvent ()
end
|
local observable = require('rx.observable')
local observer = require('rx.observer')
return function(eventName)
return observable(function(destination)
local connection = Events.Connect(
eventName,
destination.next
)
return function()
connection:Disconnec... |
local S = farming.intllib
-- beetroot
minetest.register_craftitem("farming:beetroot", {
description = S("Beetroot"),
inventory_image = "farming_beetroot.png",
groups = {food_beetroot = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_t... |
object_ship_yt1300_tier9 = object_ship_shared_yt1300_tier9:new {
}
ObjectTemplates:addTemplate(object_ship_yt1300_tier9, "object/ship/yt1300_tier9.iff")
|
if vim.g.vscode then
return
end
-- change neovim's diagnostic signs
-- credits: https://github.com/folke/trouble.nvim/issues/52
local icons = require('jonz94.icons')
local signs = {
-- for neovim 0.6+
DiagnosticSignError = icons.error,
DiagnosticSignHint = icons.hint,
DiagnosticSignInfo = icons.info,
Dia... |
local class = require "lib.middleclass"
--- @class Cell
--- @field new fun(self: Cell, x: integer, y: integer, size: integer)
local Cell = class("Cell")
--- @param x integer @ The x coordinate of the cell
--- @param y integer @ The y coordinate of the cell
--- @param size integer @ The size of the cell in pixels
fun... |
-- See LICENSE for terms
return {
PlaceObj("ModItemOptionToggle", {
"name", "EnableVegetation",
"DisplayName", T(302535920011694, "Enable Vegetation"),
"Help", T(302535920011695, "Turn off to hide vegetation."),
"DefaultValue", true,
}),
PlaceObj("ModItemOptionToggle", {
"name", "ToggleBushes",
"Display... |
--# selene: allow(unused_variable)
---@diagnostic disable: unused-local
-- Send messages via iMessage and SMS Relay (note, SMS Relay requires OS X 10.10 and an established SMS Relay pairing between your Mac and an iPhone running iOS8)
--
-- Note: This extension works by controlling the OS X "Messages" app via AppleScr... |
--[[
First, we need to lay out the concepts of how I think roblox events work.
Roblox's management on the surface works like this:
‣ Instance
‣ Event (RBXScriptSignal)
‣ Connect
‣ Connection Data (RBXScriptConnection)
‣ Connected
... |
--[[
modify from skynet
by colin
]]
local debug = debug
local table = table
local FUNC_TEMP=[[
local $ARGS
return function(...)
$SOURCE
end,
function()
return {$LOCALS}
end
]]
local temp = {}
local function wrap_locals(co, source, level, ext_funcs)
if co == coroutine.running() then
level = level + 3
end
local ... |
local main_menu
local game
local lib
main_menu = {
event = {
["state_changed"] = function(self, event)
print("main menu enter!")
love.graphics.setBackgroundColor(0, 0, 0)
self.play_button.font = game._c.font.menu_button
self.quit_button.font = game._c.font.menu_button
game.state:set_state("title")
... |
-- A jousting ship. Starts the battle by strafing to the side to avoid the
-- initial collision, then tries to stay away from the dangerous edges of the
-- stage while otherwise moving directly at the enemy.
ship = nil
world = nil
function init(shipRef, worldArg)
ship = shipRef
world = worldArg
ship:setName("Jo... |
local months = {Jan = 1, Feb = 2, Mar = 3, Apr = 4, May = 5, Jun = 6,
Jul = 7, Aug = 8, Sep = 9, Oct = 10, Nov = 11, Dec = 12}
function pacman_b_filter(line, start)
local t = {string.match(line, '%[(%d+)-(%d+)-(%d+) (%d+):(%d+)')}
local b = false
if #t == 5 then
local lt = os.time{year=t... |
--
-- tests/config/test_links.lua
-- Test the list of linked objects retrieval function.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("config_links")
local config = premake.config
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
premake.actio... |
local bind = {}
-- bind options
function bind.bind_option(options)
for k, v in pairs(options) do
if v == true or v == false then
vim.api.nvim_command("set " .. k)
else
vim.api.nvim_command("set " .. k .. "=" .. v)
end
end
end
return bind
|
local PLUGIN = PLUGIN
PLUGIN.name = "Hidden Stash System Spawning"
PLUGIN.author = "verne"
PLUGIN.desc = "Simple autospawning hidestash system."
PLUGIN.stashspawnpoints = PLUGIN.stashspawnpoints or {}
ix.util.Include("sh_definitions.lua")
if SERVER then
local spawntime = 1
function PLUGIN:ItemShouldSave(entity)
... |
return {
version = "1.5",
luaversion = "5.1",
tiledversion = "1.8.4",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 24,
tilewidth = 40,
tileheight = 40,
nextlayerid = 5,
nextobjectid = 14,
properties = {},
tilesets = {
{
name = "alley",
firstgid =... |
expose('addon', function()
local versions = {
'Vanilla',
'TBC',
'Mainline',
}
for _, version in ipairs(versions) do
describe(version, function()
it('runs', function()
local api = require('wowless.runner').run({
otherAddonDirs = { 'addon/Wowless' },
version = versi... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local module = {}
-- FIXME: These should be surfaced to top-level APIs
local WeaponsClient = require(ReplicatedStorage.Packages.Chickynoid.Client.WeaponsClient)
local EffectsModule = require(ReplicatedStorage.Packages.Chickynoid.Client.Effects)
function m... |
local _, private = ...
if private.isClassic then return end
--[[ Lua Globals ]]
-- luacheck: globals select
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ AddOns\Blizzard_LookingForGuildUI.lua ]]
function Hook.Loo... |
AddCSLuaFile()
local PLAYER_META = FindMetaTable("Player")
if SERVER then
function GM:GetSpectatorTargets()
return team.GetPlayers( LAMBDA_TEAM_ALIVE )
end
function PLAYER_META:SetSpectator()
local ent = table.Random( GAMEMODE:GetSpectatorTargets() )
self:SetNW2Bool("Spectator"... |
-- Tiled
local pages = {isDownloadable = true, pageNum=1 }
return pages |
local lib = _3DreamEngine
local notInitError = "Transform not initialized, call reset() at least once."
local I = mat4:getIdentity()
local class = { }
function class:reset()
self.transform = I
return self
end
function class:setTransform(t)
self.transform = t
self.inverseTransform = false
self.dynamic = true
r... |
-- 테이블을 문자열로
local Table_to_str = {}
local esc = function(s)
local ic = {'\\', '"', "'", '\a', '\b', '\f', '\n', '\r', '\t', '\v'}
local oc = {'\\', '"', "'", 'a', 'b', 'f', 'n', 'r', 't', 'v'}
for i, c in ipairs(ic) do
s = s:gsub(c, '\\'..oc[i])
end
return s
end
local keyname = function(k)
if k ~= k... |
require "util"
require "library.constants"
require "library.mathlibs"
--/c game.local_player.surface.create_entity({name="medium-explosion", position=game.local_player.position, force=game.local_player.force})
--local newExplosion = util.table.deepcopy(data.raw.explosion["medium-explosion"])
--newExplosion.name = "new... |
-- Called OnProjectileHitUnit inside Action in ActOnTargets
function BallHit(keys)
local caster = keys.caster
local target = keys.target
local ability = keys.ability
local caster_intelligence = caster:GetIntellect()
local target_location = target:GetAbsOrigin()
local ability_level = ability:GetLevel() - 1
l... |
local player = ...
local pn = ToEnumShortString(player)
local mods = SL[pn].ActiveModifiers
local IsUltraWide = (GetScreenAspectRatio() > 21/9)
local NumPlayers = #GAMESTATE:GetHumanPlayers()
-- -----------------------------------------------------------------------
-- first, check for conditions where we might not dr... |
object_tangible_collection_gem_round_hueable_01 = object_tangible_collection_shared_gem_round_hueable_01:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_gem_round_hueable_01, "object/tangible/collection/gem_round_hueable_01.iff") |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... |
-- Include persistence library
if not _G.persistence then require 'includes/persistence' end
-- Load base config
config = require("config")
modules = require("modules")
--[[
START CORE
]]
piepan.On('connect', function(e)
config.admins = persistence.load("data/adminsList.dat")
config.mods = persistence.load(... |
BUI_Store_ParametricList_Screen = ZO_Gamepad_ParametricList_Screen:Subclass()
function BUI_Store_ParametricList_Screen:New(...)
local object = ZO_Gamepad_ParametricList_Screen.New(self)
--object:Initialize(...)
return object
end
function BUI_Store_ParametricList_Screen:Initialize(control, createTabBar, a... |
local L = BigWigs:NewBossLocale("Temple of Sethraliss Trash", "zhTW")
if not L then return end
if L then
L.dust_devil = "充能塵魔"
L.marksman = "荒漠神射手"
L.fang = "利牙刺客"
L.rider = "覆鱗葉殼蟲騎士"
L.tender = "無信看管者"
L.incubator = "瘋狂孵育者"
L.nimbus = "躁亂雨雲"
L.doctor = "瘟疫醫生"
end
L = BigWigs:NewBossLocale("Galvazzt", "zhTW")
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.