content stringlengths 5 1.05M |
|---|
-- include useful files
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "utils.lua")
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "common.lua")
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "commonpatterns.lua")
-- this function adds a pattern to the timeline based ... |
#!/usr/bin/env luajit
local env = setmetatable({}, {__index=_G})
if setfenv then setfenv(1, env) else _ENV = env end
require 'symmath.tests.unit.unit'(env, 'tests/unit/matrix')
timer(nil, function()
for n in ([[a b c d t t_x t_y t_z]]):gmatch'%S+' do
env[n] = env.var(n)
end
env.theta = env.var'\\theta'
-- vectors
e... |
-- Test on sink optimization.
-- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
-- Portions taken verbatim or adapted from LuaJIT testsuite
-- Copyright (C) 2005-2017 Mike Pall.
jit.opt.start(3, "sink")
local assert... |
--------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... |
DefaultClothes = {}
DefaultClothes.body = "tshirt_ls_dirty"
DefaultClothes.legs = "pants_combat5"
DefaultClothes.feet = "trainers_hitop1"
function getDefaultClothes(name)
if name then
return DefaultClothes[name]
end
end
function calculateClothesSellPrice(price)
if type(price) ~= "number" then
... |
--注册小兵类型
ArmyType = {}
ArmyType[0] = {} --学园都市
ArmyType[1] = {} --罗马正教
ArmyType[0][0] = {} --学园都市左路
ArmyType[0][0][0] = |hfoo| --学园都市左路近战
ArmyType[0][0][1] = |earc| --学园都市左路远程
ArmyType[0][0][2] = |hkni| --学园都市左路攻城
ArmyType[0][1] = {} --学园都市中路
ArmyType[0][1][0]... |
local WardUtils = require(GetScriptDirectory() .. "/Wardlogic")
local MWardSpot = {};
local MWardSpotTowerFall = {};
local AggressiveSpot = {};
local nWardCastRange = 500;
local nThresholdDist = 1200;
local wt = nil;
function GetDesire()
if GetGameState()~=GAME_STATE_PRE_GAME and GetGameState()~= GAME_STATE_GAME_I... |
-- GenernalAbandonTip.lua
-- Author:Demon
-- Date:2016/3/17
-- Last modification:
-- Description:老背包的道具物品丢弃操作的二次确认弹窗
-- Note:
require("hall/backpack/data/backpackDataInterface");
local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWithName")
local GenernalAbandonTip = class(hallLayerBaseWithName,f... |
return function()
local Cleaner = require(script.Parent)
local function noop()
end
local empty = {}
local Object = {}
Object.__index = Object
function Object.new(fn)
return setmetatable({_fn = fn}, Object)
end
function Object:set(fn)
self._fn = fn
end
... |
-- Copyright (c) 2015-present, 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.
require('torch')
l... |
function startUI(time, text)
SendNUIMessage({
type = "ui",
display = true,
time = time,
text = text
})
end
function closeUI(...)
SendNUIMessage({
type = "ui",
display = false
})
end |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Human Eye"
ITEM.model = Model("models/gibs/humans/eye_gib.mdl")
ITEM.width = 1
ITEM.height = 1
ITEM.description = "Optical illusion. It's chicken."
ITEM.category = "Non-Approved Food";
ITEM.restoreHealth = ... |
local game = {}
local g = require "global"
local function unit()
return love.graphics.getHeight()/5
end
local gui = gooi.newPanel({
x = 0,
y = 0,
w = love.graphics.getWidth(),
h = love.graphics.getHeight(),
layout = "game",
group = "game"
})
local healthBar = gooi.newBar({
value = 1,... |
local function syncElementPosition(element, value)
local x, y, z = unpack(value)
edf.edfSetElementPosition(element, x, y, z)
end
local function syncElementRotation(element, value)
local rx, ry, rz
if type(value) == "number" then --Z rotation
rx, ry, rz = 0, 0, value
else --XYZ rotation
rx, ry, rz = ... |
function start(song)
print("Did you hear what happened to Joe?")
print("Who's Joe?")
print("JOE MAMA GET REKT LMAO")
end
function update(elapsed)
local currentBeat = (songPos / 1000)*(bpm/60)
for i =0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 32 * math.sin((currentBeat + i*0.25) * math.pi... |
------------------------------
-- Area: Aydeewa Subterrane
-- NM: Bluestreak Gyugyuroon
------------------------------
require("scripts/globals/hunts")
------------------------------
function onMobDeath(mob, player, isKiller)
tpz.hunts.checkHunt(mob, player, 464)
end
|
-- modbus data pack functions
local class = require 'middleclass'
local packer = class("Modbus_Data_Pack_Class")
local be_fmts = {
int8 = '>i1',
uint8 = '>I1',
int16 = '>i2',
uint16 = '>I2',
int32 = '>i4',
uint32 = '>I4',
int64 = '>i8',
uint64 = '>I8',
float = '>f',
double = '>d',
}
local le_fmts = {
int8... |
-- codesketch 00
-- Title: wobble
-- Author: Nika Otiashvili
local lg = love.graphics
local sin15 = math.sin(math.pi / 6)
local sin45 = math.sin(math.pi / 2)
local sin30 = math.sin(math.pi / 3)
local rhomb_color = {66/255, 161/255, 86/255}
local pillar_left_color = {0/255, 105/255, 146/255}
local pillar_right_color ... |
local verse = require "verse";
local events = require "util.events";
local jid = require "util.jid";
local room_mt = {};
room_mt.__index = room_mt;
local xmlns_delay = "urn:xmpp:delay";
local xmlns_muc = "http://jabber.org/protocol/muc";
function verse.plugins.groupchat(stream)
stream:add_plugin("presence")
stream... |
local old_CMFCSR_init = CrimeSpreeTweakData.init
function CrimeSpreeTweakData:init(tweak_data)
old_CMFCSR_init(self, tweak_data)
self.randomization_cost = 0
self.randomization_multiplier = 0
end
|
local _M = {}
_M.null = {"NULL"}
local lunajson = require "lunajson.lunajson"
function _M.decode(jsonstr)
return lunajson.decode(jsonstr, nil, _M.null)
end
function _M.encode(value)
return lunajson.encode(value, _M.null)
end
return _M
|
local cjson = require 'cjson'
local ts = require 'threescale_utils'
local redis = require 'resty.redis'
local red = redis:new()
function check_return_url(client_id, return_url)
local res = ngx.location.capture("/_threescale/redirect_uri_matches",
{ vars = { red_url = return_url ,
client_id = clie... |
local clang = require 'compiler.gcc'
local globals = require 'globals'
local function shell(command)
local f = assert(io.popen(command, 'r'))
local r = f:read 'l'
f:close()
return r
end
local function update_target(context, flags, attribute)
local target = attribute.target
if not t... |
nssm:register_mob("nssm:black_widow", "Black Widow", {
type = "monster",
hp_max = 26,
hp_min = 19,
collisionbox = {-0.4, 0.00, -0.4, 0.4, 0.8, 0.4},
visual = "mesh",
mesh = "black_widow.x",
textures = {{"black_widow.png"}},
visual_size = {x=2, y=2},
makes_footstep_sound = true,
v... |
-- English localization file for enUS and enGB.
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = AceLocale:NewLocale("Omen", "enUS", true)
if not L then return end
-- Main Omen window
L["<Unknown>"] = true
L["Omen Quick Menu"] = true
L["Use Focus Target"] = true
L["Test Mode"] = true
L["Open ... |
local metrics = require('metrics')
local default_metrics = {
network = require('metrics.default_metrics.tarantool.network'),
operations = require('metrics.default_metrics.tarantool.operations'),
system = require('metrics.default_metrics.tarantool.system'),
replicas ... |
-----------------------
-- Shop by SDK --
-- gcshop_c.lua --
-----------------------
shop_GUI = nil
amount_GCS = 0
forumID = nil
------------------------------------
-- Building and toggling the shop --
------------------------------------
addEvent('onShopInit')
function startUp()
if not shop_GUI then
... |
vec2mt = {
__add = function(v1,v2)
return vec2(v1.x + v2.x, v1.y + v2.y)
end,
__sub = function(v1,v2)
return vec2(v1.x - v2.x, v1.y - v2.y)
end,
__unm = function(self)
return vec2(-self.x, -self.y)
end,
__mul = function(s,v)
return vec2(s * v.x, s * v.y)
end,
__len = function(self)
... |
local skynet = require "skynet"
local netpack = require "netpack"
local socket = require "socket"
local sproto = require "sproto"
local sprotoloader = require "sprotoloader"
local WATCHDOG
local host
local send_request
local CMD = {}
local REQUEST = {}
local client_fd
local user_id = "defaultuser"
function print_tab... |
local isNukeMissionRunning = false
local bIsPostNuke = false
AddEventHandler("sv_startNukeMission", function()
print("Start the mission everywhere!")
isNukeMissionRunning = true
bIsPostNuke = false
TriggerClientEvent("cl_startNukeMission", -1)
end)
RegisterServerEvent("sv_startNukeMission")
-- Make sure that pla... |
local setmetatable = setmetatable
local pairs=pairs
local type=type
local table=table
local z=z
local wibox=require("wibox")
local awful=require("awful")
local beautiful = require("beautiful")
module("z.it.tag")
tag={
id=1,
label="",
rules=nil,
widget_background=nil,
textbox=nil,
icon=nil,
... |
return require('./lib/piblib') |
local locationTracker = require("locationtracker")
local robot = require("component").robot
local sides = require("sides")
robot.move(sides.down)
robot.turn(false)
print(locationTracker.position, locationTracker.orientation) |
--- A doubly-linked, double-ended @{Deque} of items.
-- Implements a Deque as a @{LinkedList}, providing the same performance
-- characteristics as the @{LinkedList}.
--
-- LinkedDeque implements all optional @{Deque}, @{Queue}, and @{Collection}
-- methods.
--
-- **Implements:** @{Deque}, @{Queue}, @{Collection}, @{En... |
--[[
example file from sluacurses.
File shows a simple example of starting ncurses through sluacurses.
--]]
local Curses = require("sluacurses") --load sluacurses into program
initscr() --start ncurses
noecho() --dont display keystrokes to screen
curs_set(0) --d... |
local Class = require '30log'
context('Mixins', function()
test('are set of functions that can be imported into a class', function()
local mixin = {
foo = function() end,
bar = function() end,
baz = function() end
}
local theClass = Class()
assert_nil(theClass.foo)
a... |
local http = require("socket.http")
local url = require("socket.url")
local serpent = require("serpent")
local test_support = {}
local DEFAULT_OIDC_CONFIG = {
redirect_uri = "http://localhost/default/redirect_uri",
logout_path = "/default/logout",
discovery = {
authorization_endpoint = "http://127.0.0.... |
--Made by Towren. Free to use under the MIT License.
local module = {}
module.fireServer = function(event)
event:FireServer()
print("Fired server.")
end
module.fireClient = function(event, player)
event:FireClient(player)
print("Fired client.")
end
module.fireAllClients = function(event)
event:FireAllClients()... |
function Initialize()
Path2Var = SKIN:MakePathAbsolute(SKIN:GetVariable('@'))
CurrentConfig = SKIN:GetVariable('CurrentConfig')
steamLibs = {}
return #steamLibs
end
function Update()
Path2exe = SKIN:GetMeasure('mSteamPath'):GetStringValue()
Path2exe = Path2exe:sub(2, #Path2exe - 1)
... |
sql_host = "localhost"
sql_port = "3306"
sql_user = ""
sql_passwd = ""
sql_db = "online" |
forsaken_force_drifter = Creature:new {
objectName = "@mob/creature_names:forsaken_force_drifter",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "force",
faction = "",
level = 80,
chanceHit = 0.8,
damageMin = 625,
damageMax = 960,
baseXp = 7668,
baseHAM = 11000,
baseHAMmax = 14000,
arm... |
-- TEsound v1.3, a simplified sound system for Love 2D
-- Created by Ensayia (Ensayia@gmail.com) and expanded by Taehl (SelfMadeSpirit@gmail.com)
TEsound = {} -- Namespace
TEsound.channels = {} -- This holds the currently playing sound channels
TEsound.volumeLevels = {} -- Volume levels that multiply the volumes of... |
-----------------------------------------
-- ID: 5198
-- Item: Dish of Spaghetti Vongole Rosso +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 20
-- Health Cap 95
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 35
-- Store TP 6
-----------------------------------------
... |
local playsession = {
{"adam1285", {128156}},
{"Phoenix27833", {1711}},
{"MovingMike", {106224}},
{"maksik_name", {6712}},
{"Dammpi", {159609}},
{"jeffertoot", {152139}},
{"EPO666", {149513}},
{"Knugn", {96729}},
{"625dennis", {130342}},
{"NikolaB131", {111741}},
{"lakatarm", {3047}},
{"untouchablez", {6119... |
-- Copyright 2019
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.mywebserver", package.seeall)
local uci = require "luci.model.uci".cursor()
--local sqlite3 = require("lsqlite3")
local dbo = require("mylib.my-database-tools")
function get_nl(file)
nlines=0
lines = {}
for line in io.li... |
-- mini bootstrap pour le OLED NodeMCU mini D1
print("\ninit_oled_minid1.lua zf20180724.2251 \n")
tmr.alarm(0, 10000, tmr.ALARM_SINGLE, function()
dofile("oled_first_minid1.lua")
dofile("web_oled_minid1.lua")
dofile("telnet_srv.lua")
dofile("wifi_ap_start.lua")
end)
|
-- unselectable lamp-panel
entity = table.deepcopy(data.raw["lamp"]["lamp-panel"])
local REMOVE_KEY = "-remove-"
overwriteContent(entity, {
name = "display-unselectable-panel",
icon = "__integratedCircuitry__/graphics/icons/display-unselectable-panel.png",
icon_size = 32,
order = "zzzz",
selection_box ... |
local n_name, NeP = ...
local L = function(val) return NeP.Locale:TA('Settings', val) end
local NeP_ver = tostring(NeP.Version.major.."."..NeP.Version.minor.."-"..NeP.Version.branch)
function NeP.Interface:Update()
NeP.ButtonsSize = NeP.Interface:Fetch(n_name..'_Settings', 'bsize', 40)
NeP.ButtonsPadding = NeP.Int... |
--[[
Copyright © 2020 Alwin Garside
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Re... |
-- Lua script (trivial) for listing injection based spit on line
-- Author christophe Ponsard - 2020
-- usage: launch using command line -console -autoboot_script C:\DEV\NAM-IP-WEB\DAI\script-line.lua
-- launch emulator
-- type inject(<path_to_file_to_inject>) to inject on a line basis with a normal CR (\n) at the ... |
--These items are now split across files depending on the tech trees they are related to.
--scienceprototyper, magicprototyper etc. |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterCommand(Config.CommandName, function(src)
local xPlayer = ESX.GetPlayerFromId(src)
local result = MySQL.Sync.fetchAll('SELECT * FROM users WHERE identifier = @identifier', {
['@identifier'] = xPlayer.identifier
... |
help([[
]])
local pkgName = myModuleName()
local pkgVersion = myModuleVersion()
local pkgNameVer = myModuleFullName()
conflict(pkgName)
prereq("json")
local opt = os.getenv("JEDI_OPT") or os.getenv("OPT") or "/opt/modules"
local base = pathJoin(opt,"core",pkgName,pkgVersion)
setenv("nlohmann_json_schema_valida... |
item_greater_tranquil_boots = class(ItemBaseClass)
LinkLuaModifier( "modifier_item_greater_tranquil_boots", "items/farming/greater_tranquil_boots.lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_item_greater_tranquil_boots_sap", "items/farming/greater_tranquil_boots.lua", LUA_MODIFIER_MOTION_NONE )
-------... |
CECastSpell = {}
CECastSpell.__index = CECastSpell
function CECastSpell:Create(state, owner, spell, targets)
local this =
{
mState = state,
mOwner = owner,
mSpell = spell,
mTargets = targets,
mIsFinished = false,
mCharacter = state.mActorCharMap[owner],
}
... |
local _M = {}
_M['translate'] = function (sentence)
local ret
local lang_code = _G.languageEnv or 'zh-cn'
local tranelem = bamboo.i18n[sentence]
if tranelem then
ret = bamboo.i18n[sentence][lang_code]
end
if ret then
return ret
else
return sentence
end
end
... |
function love.conf(t)
t.title = "Tutor13 图形界面"
end
|
--[[
Minetest Mod Storage Drawers - A Mod adding storage drawers
Copyright (C) 2017-2020 Linus Jahn <lnj@kaidan.im>
Copyright (C) 2016 Mango Tango <mtango688@gmail.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "S... |
-- 'lewis6991/gitsigns.nvim'
return function(c)
return {
{ 'GitSignsAdd', c.green, c.dark_black },
{ 'GitSignsChange', c.yellow, c.dark_black },
{ 'GitSignsDelete', c.red, c.dark_black },
}
end
|
meta.name = "Pot Randomizer"
meta.version = "WIP"
meta.description = "Random container contents and player stats."
meta.author = "Dregu"
register_option_int("max_health", "Max starting health", 20, 4, 99)
register_option_int("max_bombs", "Max starting bombs", 20, 4, 99)
register_option_int("max_ropes", "Max starting r... |
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Welcome to Miner's Haven!"; -- Required. Has to be a string!
Color = Color3.new(0.1, 1, 0.2); -- Cyan is (0, 255 / 255, 255 / 255). Optional, defaults to white: Color3.new(255 / 255, 255 / 255, 243 / 255)
})
game.ReplicatedStorage.SystemAlert.OnClientEvent:c... |
-- Copyright 2013 Arman Darini
local math = require "math"
----------------------------------------------------------
math.sign = function(value)
if value > 0 then return 1; elseif value < 0 then return -1; else return 0; end
end
----------------------------------------------------------
math.round = function(x)
r... |
--[[
Copyright 2017 wrxck <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local weather = {}
local mattata = require('mattata')
local https = require('ssl.https')
local http = require('socket.http')
local url = require('socket.url')
local json = require('dkjson')
... |
title = 'IV - The Only One'
chapter = 'Part 2 - There Are Still Others'
function run()
warnEnemies = true
warnEnemiesTime = 0.7
local simple = 'simpleball'
local divide1 = 'multiball'
local grey = 'grayball'
local super = 'superball'
local f1 = formation {
type = 'around',
angle = 0,
target = vector:new... |
--[[
Copyright 2014 Google Inc. 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... |
return {
scenario = {
_ = {
test_room = {
test_room = {
name = "テストシナリオ",
description = "テスト用のシナリオです。"
}
}
}
}
} |
local name, _FishMaster = ...;
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k, v in pairs(o) do
if type(k) ~= 'number' then
k = '"' .. k .. '"'
end
s = s .. '[' .. k .. '] = ' .. dump(v) .. ','
end
return s .. '} ... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Components = require "moonpie.ui.components"
local connect = require "moonpie.redux.connect"
local store = require "game.store"
local FogOfWar = require "game.rules.fog_of_wa... |
-- vim : ft=lua ts=2 sw=2 et:
require "col"
require "lib"
local Sym = {n=1, pos=0, txt="", most=0, seen={}}
function Sym.new(txt,pos) return col(isa(Sym),txt,pos) end
function Sym:add(x, new)
if x == the.type.skip then return x end
if self.some then self.some:add(x) end
self.n = self.n + 1
self.seen[x] =... |
local function start_repl(env)
local readline = env.readline
local client = env.client
env["help"] = function()
print("There is no help for the damned")
end
print("Welcome to "..client.user.username.." repl")
local function read()
readline.readLine("[discord]: ",function(status,message)
local ... |
vim.cmd ([[
inoreabbrev dist distribution
inoreabbrev hypo hypothesis
inoreabbrev regr regression
inoreabbrev lm Y_i = \beta_0 + \beta_1X_i + \epsilon_i
inoreabbrev ftr We fail to reject the null hypothesis.
inoreabbrev rej We reject the null hypothesis
inoreabbrev pr print(
cnoreabbrev vc /home/rheslin/dotfiles/nvim/
... |
#! /usr/bin/lua
require( "common" )
local Charms = data( "charmsFiltered" )
local lenmm = table.getn( Charms ) - 1 -- len--
local function getCharmJSON( charm )
local out = "[" .. charm.slots
if charm.skills[ 1 ] then
out = out .. "," .. charm.skills[ 1 ].id .. "," .. charm.skills[ 1 ].points
end
if charm.s... |
m = Map("dawn", "Hearing Map", translate("Hearing Map"))
m.pageaction = false
s = m:section(NamedSection, "__hearingmap__")
function s.render(self, sid)
local tpl = require "luci.template"
tpl.render_string([[
<%
local utl = require "luci.util"
local status = require "luci.tools.ieee80... |
fx_version 'adamant'
games { 'gta5' }
ui_page "html/html/inventory.html"
files {
"html/*",
"html/fonts/typography/*",
"html/fonts/icons/*",
"html/html/*",
"html/scripts/*",
"html/styles/*",
"html/assets/*",
"html/assets/inventory/*",
}
client_scripts {
"@_core/libs/utils.lua",
"client.lua"
}
server_script... |
Constants = {
Identifiers = {
'steam', 'license', 'license2', 'discord',
'xbl', 'live', 'fivem', 'ip',
},
Discord = {
Base = 'https://discord.com/api/',
Version = 'v9',
},
} |
-- Base class for games running in Dolphin emulator.
-- Imports.
package.loaded.utils = nil
local utils = require 'utils'
local readIntLE = utils.readIntLE
local subclass = utils.subclass
package.loaded.valuetypes = nil
local valuetypes = require 'valuetypes'
local MemoryValue = valuetypes.MemoryValue
package.loade... |
local value = Instance.new("TextLabel")
|
--
-- Lua module demo
--
-- adjust the package path to include the demo dir
package.path = "demo/?.lua;"..package.path
-- load the package
require "color"
-- use the package
print(color.red)
print(color.green)
|
-----------------------------------
-- Area: The Garden of Ru'Hmet
-- Mob: Ix'aern DRG's Wynav
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("hpTrigger", math.random(10,75));
end;
function onMobFight(mob,target)... |
function CatmullRomCams.CL.Tab()
return spawnmenu.AddToolTab("CRCCams", "CRCCams", "gui/silkicons/camera")
end
hook.Add("AddToolMenuTabs", "CatmullRomCams.CL.Tab", CatmullRomCams.CL.Tab)
|
---- 除外システム
local f = require 'functional'
local p = require 'shiki.parser'
local unicode = require 'shiki.unicode'
local escape = {}
-- pair format
--[[
{
{
['begin'] = string or { string },
['end'] = string or { string }
}
, ...}
]]
local fresh = 0
local function gen_fresh_id()
fresh = fresh + 1
... |
local helpers = require('test.functional.helpers')(after_each)
local exec_lua = helpers.exec_lua
local eq = helpers.eq
local clear = helpers.clear
local pathroot = helpers.pathroot
local meths = helpers.meths
local curbufmeths = helpers.curbufmeths
local funcs = helpers.funcs
local root = pathroot()
describe('vim.fil... |
local globbing = require "luacheck.globbing"
local fs = require "luacheck.fs"
local cur_dir = fs.get_current_dir()
local function check_match(expected_result, glob, path)
glob = fs.normalize(fs.join(cur_dir, glob))
path = fs.normalize(fs.join(cur_dir, path))
assert.equal(expected_result, globbing.match(glob,... |
object_tangible_gcw_battlefield_rebel_token = object_tangible_gcw_shared_battlefield_rebel_token:new {
}
ObjectTemplates:addTemplate(object_tangible_gcw_battlefield_rebel_token, "object/tangible/gcw/battlefield_rebel_token.iff")
|
--[[
Props:
itemId (string)
itemType (string)
leftPadding = optional (int)
rightPadding = optional (int)
bottomPadding = optional (int)
showMoreButton = optional (bool)
ZIndex = optional (int)
]]
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Marketplac... |
local Scheduler = require('app.helpers.Scheduler')
local SoundMng = require('app.helpers.SoundMng')
local tools = require('app.helpers.tools')
local ConvertToTableView = require('app.helpers.ConvertToTableView')
local cache = require('app.helpers.cache')
local app = require('app.App'):instance()
local GVSetScor... |
--------------------------------
-- @module TransitionSlideInT
-- @extend TransitionSlideInL
-- @parent_module cc
--------------------------------
-- Creates a transition with duration and incoming scene.<br>
-- param t Duration time, in seconds.<br>
-- param scene A given scene.<br>
-- return A autoreleas... |
require("compiler-core/src/ast/NodeTypes")
require("compiler-core/src/ast")
require("compiler-core/src/ast/ElementTypes")
require("@vue/shared")
require("compiler-core/src/runtimeHelpers")
require("compiler-core/src/utils")
require("compiler-core/src/transforms/hoistStatic")
function createTransformContext(root, )
l... |
serialization_version = 1.0
BULLET = {}
BULLET.initializeEnt = function (self,ent, x, y)
ent.target_angle = 0
ent.speed = 0.1
ent.death_time = -1
ent.dead = false
ent.anim = "alive"
ent.homing = false
ent.target = nil
ent.shooter = nil
ent.canHurtOthers = false
ent.noclip = false
ent.damage = ... |
local M = {}
--[[
该文件记录服务器中用到的mongodb collection的生成函数和文档, 方便后期文档生成
文档记录:
*. 函数参数说明
*. 记录collection的所有doc可能出现的字段
]]
--[[
本文档是mongodb所有的文档的定义,要求如下:
* 每个字段都必须在此备注;
* 字符串用"xxx";
* 数字用123;
* _id字段必须写明是什么数据,比如$outerid;
]]
--[[
用户id映射关系:
outerid即外部平台的id,如QQ、微信的unionid(以前叫openid)、手机号;
openid即平台账号id,与outerid一一对... |
---
--- ViewPagerAdapter是Lua中,用于在lua的window上,针对ViewPager设置的适配器。
--- Created by wang.yang
--- DateTime: 2020-07-24
--- 版本号 每次修改完内容后需要自动增加版本号/或者保证不会影响老版本
--- @version 1.0
local _class = {}
_class._type = 'ui'
_class._version = '1.0'
_class._classname = 'ViewPagerAdapter'
function ViewPagerAdapter()
return _class:ne... |
local K, C, L = unpack(select(2, ...))
if C.ActionBar.Enable ~= true then return end
-- Lua API
local _G = _G
local string_gsub = string.gsub
local unpack = unpack
-- Wow API
local GetFlyoutID = _G.GetFlyoutID
local GetFlyoutInfo = _G.GetFlyoutInfo
local GetNumFlyouts = _G.GetNumFlyouts
local hooksecurefunc = _G.hook... |
--===================================================================================
-- zGameServer
-- ----------------------------------------------------------------------------------
-- Description: Master skill effect formuls
-- ----------------------------------------------------------------------------------
-- ... |
local info = {
name = "SpringBoard_widget",
desc = "Game-independent editor (widget)",
author = "gajop",
license = "MIT",
layer = 1001,
enabled = true,
-- handler = true,
}
-- new addonhandler currently disabled
if addon and addon.InGetInfo and false then
widget =... |
require('../lib/utilities')
--[[Author: LearningDave
Date: october, 19th 2015.
Changes the displayed icon of a item depending on the hero's origin(village)
]]
function foreheadProtectorChangeIcon(hero, itemName)
local village = GameRules.heroKV[hero:GetName()]["Village"]
local itemIndex = GetItemIndex(itemName, h... |
return {
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onAttach"
},
arg_list = {
rant = 1000,
target = "TargetSelf",
skill_id = 4041
}
}
}
},
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onAttach"
},
arg_li... |
function love.conf(t)
t.title = "Scrolling Shooter Tutorial"
t.version = "0.10.1"
t.window.width = 480
t.window.height = 800
t.console = true -- For Windows debugging
end
|
return function()
local Core = require(script.Parent.Core)
local createElement = require(script.Parent.createElement)
local Reconciler = require(script.Parent.Reconciler)
local GlobalConfig = require(script.Parent.GlobalConfig)
local Component = require(script.Parent.Component)
it("should be extendable", functi... |
-----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ??? (Sacrificial Goblet NM)
-- !pos 300 1 255 159
-----------------------------------
local ID = require("scripts/zones/Temple_of_Uggalepih/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, np... |
createObject(10039,2546.3908691406,1862.2561035156,19.200265884399,0,0,0,0,0)
createObject(10039,2603.41796875,1909.0716552734,19.54102897644,0,0,270.78198242188,0,0)
createObject(10039,2595.6708984375,1893.2740478516,19.485185623169,0,0,270.78198242188,0,0)
createObject(10025,2648.0891113281,1838.4644775391,11.3638... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.