content stringlengths 5 1.05M |
|---|
require("prototypes.sci.sct-pre-recipe")
-- additional item ---------------------------
require("prototypes.advanced-plastics")
-- -------------------------------------------
require("prototypes.angel-tweak")
require("prototypes.game-progress")
-- recipe tweak ------------------------------
require("prototypes.recip... |
---------------------------------------------------------------------------------------------------
--
--filename: game.mgr.data.RoomData
--date:2019/10/17 11:58:22
--author:heguang
--desc:管理房间数据
--
---------------------------------------------------------------------------------------------------
local strClassName =... |
--Variable
local amount = "666"
local remote = game.ReplicatedStorage.introfired
--Stats
remote:FireServer("Ninjutsu", amount)
remote:FireServer("Genjutsu", amount)
remote:FireServer("Taijutsu", amount)
remote:FireServer("Speed", amount)
remote:FireServer("Weapon", amount)
remote:FireServer("Strength", amount) |
ai = {}
--TODO: Use an item (probably split them up based on healing vs attacking)
--TODO: Notice items, move towards them and pick them up
--TODO: Handle pack animal behavior
--TODO: Dedicated decision-making for healing
--TODO: Swapping equipment if you find something better
--Possible arguments: "noRunning", "... |
-- RP Tags
-- by Oraibi, Moon Guard (US) server
-- This work is licensed under the Creative Commons Attribution 4.0 International
-- (CC BY 4.0) license.
local RPTAGS = RPTAGS;
RPTAGS.queue:WaitUntil("UTILS_COLOR",
function(self, event, ...)
RPTAGS.utils = RPTAGS.utils or {};
RPTAGS.utils.color = RPTAGS.utils.... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local ScrollingTextWindow = require(script.Parent.Parent:WaitForChild("Resources"):WaitForChild("ScrollingTextWindow"))
local Command = BaseCommand:Extend()
--[[
Creates the command.... |
local surface_SetDrawColor = surface.SetDrawColor
local surface_DrawTexturedRect = surface.DrawTexturedRect
local surface_DrawRect = surface.DrawRect
local surface_SetMaterial = surface.SetMaterial
local gU = Material("vgui/gradient_up")
local gD = Material("vgui/gradient_down")
local gR = Material("vgui/gradient-r")
... |
require("compiler-ssr/src")
require("compiler-ssr/__tests__/utils")
describe('ssr: text', function()
test('static text', function()
expect(getCompiledString()):toMatchInlineSnapshot()
end
)
test('static text with template string special chars', function()
expect(getCompiledString()):toMatchInlineSnapsh... |
project "CEGUIDirect3D9Renderer"
language "C++"
kind "SharedLib"
targetname "CEGUIDirect3D9Renderer"
targetdir(buildpath("mta"))
includedirs {
"../../include",
"../../../freetype/include",
"../../dependencies/pcre-8.12"
}
links {
"CEGUI-0.8.7",
"freetype",
"pcre-8.12",
"dbghelp",
... |
module("shadows.Star", package.seeall)
Shadows = require("shadows")
Light = require("shadows.Light")
Transform = require("shadows.Transform")
Star = setmetatable( {}, Light )
Star.__index = Star
Star.__type = "Star"
Star.Star = true
Star.Blur = true
halfPi = math.pi * 0.5
function Star:new(World, Radius)
-- ... |
includeexternal ("../function.lua")
create_console_project("020_Real-time Approximation to Large Convolution Kernel") |
-- Atlas configuration
--
-- This is the implementation of the configuration interface
-- and should be considered private API.
local luv = require "luv"
local default_config = require "atlas.default_config"
local Configuration = {}
Configuration.__index = Configuration
local function _init(_, user_config)
local s... |
local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
local env_variables = test_env.env_variables
describe("Basic tests #blackbox #b_util", function()
before_each(function()
test_env.setup_specs()
end)
it("Lu... |
if SERVER then
include("firewagon/sv_firewagon.lua")
AddCSLuaFile("firewagon/cl_firewagon.lua")
end
if CLIENT then
include("firewagon/cl_firewagon.lua")
end |
Cellmap = Object:extend()
function Cellmap:new(cell_x, cell_y, cell_width, cell_height)
self.cell_x = cell_x
self.cell_y = cell_y
self.cell_width = cell_width
self.cell_height = cell_height
self.cells = {}
end
function Cellmap:init()
local hor_bound_up = self.cell_height
local ... |
local
PushUISize, PushUIColor,
PushUIStyle, PushUIAPI,
PushUIConfig, PushUIFrames = unpack(select(2, ...))
local _sysdockPrefixName = "PushUIFramesSystemDock"
local _colorUsage = {0.22, 0.56, 0.66}
local _colorSysStat = {0.81, 0.71, 0.5}
local lcontainer = "PushUIFramesLeftDockContainer"
local ltint = ... |
object_tangible_loot_creature_loot_collections_meatlump_newspaper_07 = object_tangible_loot_creature_loot_collections_shared_meatlump_newspaper_07:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_newspaper_07, "object/tangible/loot/creature/loot/collections/meatlump_newspape... |
-- 用户信息
local user = {
usr = "201413640731", -- 在这里输入用户名
pwd = "yourpasswd", -- 在这里输入密码
net = "SNET", -- 网络类型,SNET: 校园网(school net),INET: 互联网(internet),默认为SNET
ispc = "true", -- login as a PC if @ispc is true, else login as a mobile phone
}
-- 软件设置
local sys = {
ser = "10.... |
local TwodyObject = {
Abstract = require "Abstract.init",
Class = require('Class.init'),
ClassType = require('ClassType.init'),
Interface = require('Interface.init'),
Object = require('Object.init'),
}
return TwodyObject
|
require("Menu/MainMenu/mainMenuStyle.lua")
--this = SceneNode()
ExportForm = {}
function ExportForm.new()
local self = {}
local form
local optionsForm
local exportPanel
local loadingSprite
local pathTextField
function self.hide()
form:setVisible(false)
end
function self.show()
-- form:... |
local Log = require "log"
local date = require "date"
local string = require "string"
local schar = string.char
local sbyte = string.byte
local sformat = string.format
local ssub = string.sub
local tn = tonumber
local M = {}
function M.pack(msg, lvl, now)
local Y, M, D = now:getdate(... |
-- Copyright 2022 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... |
local bench = script and require(script.Parent.bench_support) or require("bench_support")
function test()
local ts0 = os.clock()
for i=1,100000 do
local t = { a = 1, b = 2, c = 3, d = 4, e = 5, f = 6 }
end
local ts1 = os.clock()
return ts1-ts0
end
bench.runCode(test, "LargeTableCtor: hash") |
---
-- An animation element using the @{love:AnAL} library.
-- @classmod Animation
-- @alias Animation
local class = require("middleclass")
local AnAL = require("AnAL")
local Base = require("silicone.elements.Base")
local Animation = class("silicone.Animation", Base)
---
-- Internal.
-- Internal methods
-- @section ... |
local jifenRecordView_layout=
{
name="jifenRecordView_layout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="shadeBg",type=1,typeName="Image",time=31057625,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParen... |
object_tangible_component_weapon_quest_blaster_power_handler_faux_bowcaster = object_tangible_component_weapon_quest_shared_blaster_power_handler_faux_bowcaster:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_quest_blaster_power_handler_faux_bowcaster, "object/tangible/component/weapon/quest/blas... |
otherScript = nil;
timeToCallOtherScript = 0.0;
function Init()
otherScript = self;
timeToCallOtherScript = 0.0;
end
function Kill()
end
function Update()
local deltaT = Timer:GetSecDelta();
if(otherScript ~= nil) then
timeToCallOtherScript = timeToCallOtherScript - deltaT;
if(timeToCallOtherScript < 0.0) th... |
local resty_redis = require 'resty.redis'
local index = require 'resty.redimension'
local concat = table.concat
local redis = resty_redis:new()
redis:set_timeout(1000)
local ok, err = redis:connect('127.0.0.1', 6379)
if not ok then print('error:', err) end
local idx = index:new(redis, 'people-by-salary', 2)
idx:index... |
local M = {}
local composer = require( "composer" )
local physics = require( "physics" )
-- define vars
local spawnHandlerTimer
local group
local lastSpawnGroundObjects
local lastSpawnFloatingObjects
local lastSpawnObstacle
local lastSpawnObsSeq
local outlineCache -- to reduce CPU usage
-- assets dir
local pickD... |
local qrgen = {}
local mattata = require('mattata')
local URL = require('socket.url')
function qrgen:init(configuration)
qrgen.arguments = 'qrgen <string>'
qrgen.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('qrgen').table
qrgen.help = configuration.commandPrefix .. 'qrgen - Convert... |
--------------------------------
-- @module Event
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @function [parent=#Event] isStopped
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Event] getType
-- @param self
-- ... |
pg = pg or {}
pg.enemy_data_statistics_311 = {
[14500901] = {
cannon = 55,
reload = 150,
speed_growth = 0,
cannon_growth = 0,
rarity = 3,
air = 85,
torpedo = 0,
dodge = 11,
durability_growth = 0,
antiaircraft = 125,
luck = 0,
reload_growth = 0,
dodge_growth = 156,
hit_growth = 210,
star =... |
KEY = "F5";
fn = {
window = {},
tab = {},
tabpanel = {},
edit = {},
button = {},
label = {},
gridlist = {},
combobox = {}
}
local screenW, screenH = guiGetScreenSize()
fn.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 313) / 2, 453, 313, "Finans ("..KEY..")", fal... |
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_rulebook\cr_classes.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
SetSource({
SourceLong="Core Rulebook",
SourceShort="CR",
SourceWeb="http://paizo.com/store/downloads/pathfinder/pathf... |
local M = {}
M.functions = {}
function M.execute(id)
local func = M.functions[id]
if not func then
error("Function doest not exist: " .. id)
end
return func()
end
local map = function(mode, key, cmd, opts, defaults)
opts = vim.tbl_deep_extend("force", { silent = true }, defaults or {}, opts or {})
i... |
local cpath = select(1, ...) or "" -- callee path
local function nTimes(n, f, x) for i = 0, n - 1 do x = f(x) end return x end -- calls n times f(x)
local function rmlast(str) return str:sub(1, -2):match(".+[%./]") or "" end -- removes last dir / file from the callee path
local cpppdpath = nTimes(4, rmlast, cpath) -- c... |
function sysCall_threadmain()
targetHandle = sim.getObjectHandle('Target')
pathHandle = sim.getObjectHandle('PathPickRelease')
sim.followPath(targetHandle, pathHandle, 1, 0, 0.01, 0)
end
function sysCall_cleanup()
end |
--
-- Name: premake-wix/wix.lua
-- Purpose: Define the WindowsPhone action(s).
-- Author: Michael Schwarcz
-- Created: 2016/11/03
-- Copyright: (c) 2016 Michael Schwarcz
--
local p = premake
p.modules.wp = {}
local m = p.modules.wp
function p.config.isArmArch(cfg)
return c... |
--Start of Global Scope---------------------------------------------------------
-- Create tcp ip client
-- luacheck: globals gClient
gClient = TCPIPClient.create()
if not gClient then
print('Could not create TCPIPClient')
end
TCPIPClient.setIPAddress(gClient, '127.0.0.1')
TCPIPClient.setPort(gClient, 2120)
TCPIPCl... |
setenv("JDK32",1)
|
local load_time_start = os.clock()
local funcs = {}
function funcs.pos_to_string(pos)
return "("..pos.x.."|"..pos.y.."|"..pos.z..")"
end
local r_corr = 0.25 --remove a bit more nodes (if shooting diagonal) to let it look like a hole (sth like antialiasing)
-- this doesn't need to be calculated every time
local f_1... |
gg.alert("BAKIMDA")
|
--[[
- Author: yoosan, SYSUDNLP Group
- Date: 16/3/11, 2016.
- Licence MIT
--]]
require('torch')
require('sys')
require('lfs')
require('nn')
require('nngraph')
require('optim')
require('xlua')
include('utils/misc.lua')
include('utils/data.lua')
include('model/GRU.lua')
include('model/LSTM.lua') |
ABILITY_ATTACK = 3
ABILITY_ICE = 5
ABILITY_SLASH = 6
ABILITY_THROW = 7
ABILITY_KICK = 8
ABILITY_PLANT = 9
ABILITY_FIRE = 10
ABILITY_ROLL = 11
ABILITY_BURROW = 12
ABILITY_HEAL = 13
function play_sample_later(name, delay)
local t
if (delay > 0) then
t = create_idle_tween(delay)
else
t = {}
end
... |
-- A component to render metrics from the user input
local convert = require "convert"
local Glyph = require "glyph"
local Metric = require "metric"
local Box = require "box"
local Actions = {
canvas = nil,
style = {
skew_yx = 0.1,
skew_xy = -0.2,
margin_right = 50,
margin_bottom = 80,
color =... |
function love.keypressed(key, scancode, isrepeat)
local x, y = love.mouse.getPosition()
local mx, my = fromScreen(x, y)
if key == "return" then
app.enterPressed = true
end
-- first handle actions that are allowed to repeat when holding key
local dx, dy = 0, 0
if key == "left" then... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
---@class ISTicketsUI : ISPanel
ISTicketsUI = ISPanel:derive("ISTicketsUI");
ISTicketsUI.messages = {};
local FONT_HGT_SMALL = getTex... |
-----------------------------------
-- Attachment: Flashbulb
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
pet:addListener("AUTOMATON_ATTACHMENT_CHECK", "ATTACHMENT_FLASHBULB", function(automaton, target)
local master = autom... |
hook_enabled = false
function hook(ev)
if not hook_enabled then return end
local info=debug.getinfo(2)
for k, v in pairs(info) do
io.write(" "..tostring(k)..":"..tostring(v).." |")
end
for i = 1, 5 do
local k, v = debug.getlocal(2, i)
io.write("| "..tostring(k)..":"..tostring(v).." ")
end
io... |
-- Angel's Petrochemical Processing
seablock.overwrite_setting('bool-setting', 'angels-disable-bobs-electrolysers', true)
seablock.overwrite_setting('bool-setting', 'angels-disable-bobs-chemical-plants', true)
seablock.overwrite_setting('bool-setting', 'angels-disable-bobs-distilleries', true)
seablock.overwrite_settin... |
object_static_structure_dathomir_static_zombie_arm = object_static_structure_dathomir_shared_static_zombie_arm:new {
}
ObjectTemplates:addTemplate(object_static_structure_dathomir_static_zombie_arm, "object/static/structure/dathomir/static_zombie_arm.iff")
|
-- Цены на тюнинг
local tuningPrices = {
-- Покраска кузова
body_color = {0, 1},
-- Смена номерного знака
numberplate = {0, 1},
-- Смена высоты подвески
suspension = {0, 1},
-- Спойлеры
spoiler_color = {0, 1},
spoilers = {
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
... |
local class = require 'lib.middleclass'
local inspect = require 'lib.inspect'
local Blocks = require 'src.blocks'
local MapSystem = require 'src.mapsystem'
local Entity = require 'src.entity'
local Player = class('Player', Entity)
local frc, acc, dec, top, low = 700, 500, 6000, 350, 50
local jumpAccel = -100
function... |
--local ide_debug = require('ide-debug')
--ide_debug.enable_debugger(9999)
local test = require('luatest')
local group = test.group('unit')
group.prototype_and_inheritance = function()
local Object = require('object')
function Object.symbol()
return '!'
end
local Cat = Object:extend()
fu... |
--- 模块功能:通话功能测试.
-- @author openLuat
-- @module call.testCall
-- @license MIT
-- @copyright openLuat
-- @release 2018.03.20
module(...,package.seeall)
require"cc"
require"audio"
--来电铃声播放协程ID
local coIncoming
local function callVolTest()
local curVol = audio.getCallVolume()
curVol = (curVol>=7... |
-- NEW SPELLS
local _DimensionalRift = 196586;
local _Eradication = 196412;
local _LifeTap = 1454;
local _SummonDarkglare = 205180;
local _CallDreadstalkers = 104316;
local _GrimoireFelguard = 111898;
local _DemonicEmpowerment = 193396;
local _ThalkielsConsumption = 211714;
local _Demonbolt = 157695;
local _HandofDoom ... |
--Default random balancer. this balancer randomly select upstreams from given
--list. if one upstream is blamed, this upstream will be unselectable for given
--suspendSpan time.
local tableUtils=require "suproxy.utils.tableUtils"
local utils=require "suproxy.utils.utils"
local OrderedTable=tableUtils.OrderedTable
... |
--- ObjectBridge module.
SB_COMMAND_DIR = SB_DIR .. "command/"
SB.Include(SB_COMMAND_DIR .. 'command.lua')
SB.IncludeDir(SB_COMMAND_DIR)
SB_STATE_DIR = SB_DIR .. "state/"
SB.Include(SB_STATE_DIR .. 'state_manager.lua')
SB.Include(SB_STATE_DIR .. 'abstract_state.lua')
SB.IncludeDir(SB_STATE_DIR)
--- ObjectBridge clas... |
return {'hso'} |
--- This module will simplify automation of many common tasks such
-- as waiting for various asynchronous operations to finish.
-- All functions expect to be run inside a coroutine (this is what
-- cucumber already does in the wire server).
-- To use this module you need to make sure to call update() and
-- on_message(... |
--MoveCurve
--H_Tohka/JumpFlash JumpFlash
return
{
filePath = "H_Tohka/JumpFlash",
startTime = Fixed64(9437184) --[[9]],
startRealTime = Fixed64(47186) --[[0.045]],
endTime = Fixed64(87031808) --[[83]],
endRealTime = Fixed64(435159) --[[0.415]],
isZoom = false,
isCompensate = false,
curve = {
[1] = {
time... |
---------------------------------------------------------------------------------------------------
--
--filename: game.dialog.MessageBox
--date:2019/11/20 11:30:06
--author:heguang
--desc:通用消息框
--
---------------------------------------------------------------------------------------------------
local strClassName = ... |
-- Rafael Alcalde Azpiazu - 20 Apr 2018
-- Facultade de Informática da Coruña - Universidade da Coruña
-- This table defines all common constants.
local Constants = {
-- Cell map types
CellType = {
SEA = "sea", -- Represents a sea bioma cell
OCEAN = "ocean", -- Represents a ocean bioma cell... |
context('Disabling aliases ', function()
local _ = require 'allen'
test('Not defining ALLEN_ALIASES before calling Allen will not import aliases', function()
assert_nil(_.capFirst)
assert_nil(_.capEach)
assert_nil(_.caps)
assert_nil(_.cap)
assert_nil(_.isLower)
assert_nil(_.isUpper)
assert_nil(... |
function config.init()
bind = {}
var = {}
function config.updateVar()
var = {}
function add(name, default)
--if (default ~= console[name]) then
table.insert(var, "launcher config "..name.." \""..console[name].."\"")
--end
end
function _add(name, default, value)
--if (default ~= value) then
... |
type Person = {
id: string,
name: string,
age: int,
fn: (number, number) => number
}
type C2<S> = {
id: string,
name: string,
storage: S,
sayHi: (int) => S
}
type G1<T1, T2, T3> = {
a: T1,
b: T2,
c: T3
}
type G2<T> = G1<int, T, C2<Person> >
type G3 = G2<string>
let M: C2<Person> = {}
let storage:... |
object_static_structure_general_decontamination_chamber = object_static_structure_general_shared_decontamination_chamber:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_decontamination_chamber, "object/static/structure/general/decontamination_chamber.iff")
|
Unpack = table.unpack or unpack
local Conversion = {}
Conversion.__index = Conversion
function Conversion:new()
local class = {}
----------VARIABLES-------------
----------VARIABLES-------------
setmetatable( class, Conversion )
return class
end
function Conversion:CNameToNameStr... |
--[[
MrInfoQuest1.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
This is the dialogue you can have with Mr Info in Overworld on the Beach.
]]--
return {
type = "quest",
dialogues = {
--- 1) Help to check the map ---------------------
{
... |
--[[ https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
1 function Dijkstra(Graph, source):
2 dist[source] ← 0 // Initialization
3
4 create vertex set Q
5
6 for each vertex v in Graph:
7 if v ≠ source
8 dist[v] ← INFINITY // U... |
local args = ...
local player = args.player
local pn = ToEnumShortString(player)
local percent
if args.side then percent = args.side else
local stats = STATSMAN:GetCurStageStats():GetPlayerStageStats(pn)
local PercentDP = stats:GetPercentDancePoints()
percent = FormatPercentScore(PercentDP)
-- Format the Percentag... |
local a=require("computer")local b=require("filesystem")local c=require("term")local d=require("text")local e=require("unicode")local f={C_NAME="XAF Core",C_INSTANCE=false,C_INHERIT=false,static={}}function f:getExecutorInstance()local g={}g.run=function(self,h,...)assert(type(h)=="function","[XAF Core] Expected FUNCTI... |
-----------------------------------------
-- ID: 5009
-- Scroll of Hunters Prelude
-- Teaches the song Hunters Prelude
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(401)
end
function onItemUse(target)
target:addSpell(401)
end
|
local FramesCounter = {
frames = 0.0,
next = 0.0,
time = 0.0,
fps = 0.0
}
function FramesCounter.getFPS(dt)
FramesCounter.frames = FramesCounter.frames + 1
FramesCounter.time = FramesCounter.time + dt
if FramesCounter.time > FramesCounter.next then
FramesCounter.fps = FramesCounter... |
--[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... |
-- utf8
vim.g.encoding = "UTF-8"
vim.o.fileencoding = 'utf-8'
-- jkhl keep 8 line arround cursor
vim.o.scrolloff = 8
vim.o.sidescrolloff = 8
-- relative number
vim.wo.number = true
vim.wo.relativenumber = true
vim.wo.cursorline = true
vim.wo.signcolumn = "yes"
vim.wo.colorcolumn = "80"
-- tab space
vim.o.tabstop = 4
vi... |
local http = require "socket.http"
local cjson = require "cjson"
local crypt = require "crypt"
local Answer = require "app.answer"
function exit()
os.exit(0)
end
function help()
print([=[
connect(ip,port,[master_linkid]) ->
tcp connect to ip:port and return a linkobj
e.g:
linkobj = connect("12... |
----------------------------------------
-- Forge
----------------------------------------
gForge_GlobalSettings = {}
gForge_CharacterSettings = {}
function Forge:Initialize()
if self.Initialized then
return
end
self.Initialized = true
Forge.CharacterSettings = gForge_CharacterSettings
se... |
if data.raw["lab"]["lab-2"] and data.raw["item"]["fu_space_probe_science_item"] then
table.insert(data.raw["lab"]["lab-2"].inputs, "fu_space_probe_science_item")
end |
print("This was made for @[{_VERSION}]")
|
#!/usr/bin/lua
local DHCP_FILE = '/tmp/dhcp.leases'
local dhcp_parser = {}
dhcp_parser.__index = dhcp_parser
function dhcp_parser.new()
log("dhcp_parser.new()")
local self = setmetatable({}, dhcp_parser)
if info.io == nil then
info.io = {}
end
if info.io.dhcp == nil then
info.io.dhcp = {}
... |
Brama = createObject (2990, 1527.4000244141, 663.59997558594, 13.60000038147, 0, 0, 359.75)
function OtworzBrame ()
moveObject ( Brama, 1000, 1527.4000244141, 663.59997558594, 13.60000038147 )
end
addCommandHandler("c2", OtworzBrame )
function ZamknijBrame ()
moveObject ( Brama, 1000, 1527.4000244141, 663.59997558594,... |
local ChargeInfoUI = class("ChargeInfoUI", BaseUI)
function ChargeInfoUI:ctor()
self:load(UriConst.ui_chargeInfo, UIType.PopUp, UIAnim.MiddleAppear)
end
function ChargeInfoUI:Refresh()
local data = Player.info
if data then
self.input_name.text = Player.info.recharge_name
self.input_phone.t... |
local build_dir = "build/" .. _ACTION
--------------------------------------------------------------------------------
workspace "Grisu"
configurations { "release", "debug" }
platforms { "x64", "x86" }
filter { "platforms:x64" }
architecture "x86_64"
filter { "platforms:x86" }
archite... |
-- Super Mario Land autosplitter for LiveSplit
-- Trysdyn Black, 2016 https://github.com/trysdyn/bizhawk-speedrun-lua
-- Requires LiveSplit 1.7+
world = -1
stage = -1
boss = false
local function init_livesplit()
pipe_handle = io.open("//./pipe/LiveSplit", 'a')
if not pipe_handle then
error("\nFailed ... |
require "classes.constants.screen"
require "sqlite3"
SQLite={}
function SQLite:new()
local this = display.newGroup()
local public = this
local private = {}
local background = display.newImageRect("img/backgroundNotifications.png", 360, 570)
local labelTitle = display.newText("SQLite demo", 20, 30,... |
-- The Great Computer Language Shootout
-- http://shootout.alioth.debian.org/
-- contributed by Mike Pall
require 'benchmarks/bench'
local co = coroutine
local wrap, yield = co.wrap, co.yield
if co.cstacksize then co.cstacksize(1) end -- Use minimum C stack.
local function link(n)
if n > 1 then
local cofunc = ... |
local stack = Stack.New()
stack:Push("v1")
stack:Push("v2")
assert(stack:GetCount() == 2)
assert(stack:Peek() == "v2")
assert(stack:Pop() == "v2")
assert(stack:Peek() == "v1")
assert(stack:GetCount() == 1)
stack:Clear()
assert(stack:GetCount() == 0) |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("ActionBar")
local AB = _ActionBar
function R:TestBossButton()
if ExtraActionBarFrame:IsShown() then
ExtraActionBarFrame.intro:Stop()
ExtraActionBarFrame... |
local args, options = require("shell").parse(...)
if options.help then
print([[`echo` writes the provided string(s) to the standard output.
-n do not output the trialing newline
--help display this help and exit]])
return
end
io.write(table.concat(args," "))
if not options.n then
print()
end
|
--[[
desc: TIME, a lib that encapsulate time function.
author: Musoucrow
since: 2018-5-8
alter: 2018-12-17
]]--
local _delta = 0
local _time = 0
local _fps = 0
local _stddt = 17
local _updateTime = 0
local _frame = 0
local _calmness = false
local _TIME = {} ---@class Lib.TIME
---@return number
function _TIME.Get... |
function MakeHat(name)
local fname = "hat_"..name
local symname = name.."hat"
local texture = symname..".tex"
local prefabname = symname
local assets=
{
Asset("ANIM", "anim/"..fname..".zip"),
--Asset("IMAGE", texture),
}
if name == "miner" then
table.insert(ass... |
#!/usr/bin/env tarantool
uuid = require('uuid');
box.cfg {
listen = '0.0.0.0:3333'
}
box.once('init', function()
box.schema.user.grant('guest', 'read,write,execute', 'universe')
local mapping_space = box.schema.create_space('mapping')
mapping_space:format({
{name='resource_id', type='unsigned... |
local M = {}
local defaults = require "formatter.defaults"
local util = require "formatter.util"
M.jsbeautify = util.copyf(defaults.jsbeautify)
M.prettydiff = util.withl(defaults.prettydiff, "javascript")
M.prettier = util.copyf(defaults.prettier)
M.prettierd = util.copyf(defaults.prettierd)
M.denofmt = util.copy... |
local noxy_trees = {}
local mathfloor = math.floor
local mathceil = math.ceil
noxy_trees.disabled = { -- Disables the spreading of these specific entities.
["dead-dry-hairy-tree"] = true,
["dead-grey-trunk"] = true,
["dead-tree"] = true,
["dead-tree-desert"] = true,
["dry-hairy-tree"] = tru... |
test_run = require('test_run').new()
test_run:cmd("restart server default")
-- Deploy a cluster.
SERVERS = { 'autobootstrap1', 'autobootstrap2', 'autobootstrap3' }
test_run:create_cluster(SERVERS, "replication", {args="0.03"})
test_run:wait_fullmesh(SERVERS)
-- gh-3247 - Sequence-generated value is not replicated in ... |
-----------------------------------------
-- ID: 5480
-- Black Mage Die
-- Teaches the job ability Wizard's Roll
-----------------------------------------
function onItemCheck(target)
return target:canLearnAbility(tpz.jobAbility.WIZARDS_ROLL)
end
function onItemUse(target)
target:addLearnedAbility(tpz.jobAbil... |
return
{
[11] = {id=11,text={key='/demo/1',text="测试1"},},
[12] = {id=12,text={key='/demo/2',text="测试2"},},
[13] = {id=13,text={key='/demo/3',text="测试3"},},
[14] = {id=14,text={key='',text=""},},
[15] = {id=15,text={key='/demo/5',text="测试5"},},
[16] = {id=16,text={key='/demo/6',text="测试6"},},
[17] = {id=17,text={key='/d... |
dofilepath("data:scripts/debug.lua")
dout("Loading Crate_locate.lua of Turanic")
crate_Motherships =
{
"tur_shipyard",
}
crate_Carriers =
{
"tur_carrier",
"tur_resourcecontroller",
}
|
local utils = require "telescope.utils"
local K = {}
K._get_resources = function(opts)
local resource_list = utils.get_os_command_output({"kubectl", "get", opts["resource"], "-A"})
table.remove(resource_list, 1)
return resource_list
end
K._describe_resource = function(entry, opts)
local tmp_table = vim.split(ent... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.