content stringlengths 5 1.05M |
|---|
print('test_many_string_operations begin')
for i = 1, 10000000 do
local s = "hello" .. tostring(i)
end
print('test_many_string_operations done') |
local ffi = require('ffi')
local radio = require('radio')
local jigs = require('tests.jigs')
local Bit = radio.types.Bit
describe("Bit type", function ()
it("size", function ()
-- Check underlying struct size
assert.is.equal(1, ffi.sizeof(Bit))
end)
it("operations", function ()
lo... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
include("textscreens_config.lua")
local hook_Add = hook.Add
function ENT:Initialize()
self:SetRenderMode(RENDERMODE_TRANSALPHA)
self:DrawShadow(false)
self:SetModel("models/hunter/plates/plate1x1.mdl")
self:SetMaterial("models/effects/vol... |
return function()
-- nice
if 69 == 420 then
print("thats really nice")
end
end |
-- C++ Keywords
return
[[bool catch class const_cast delete dynamic_cast explicit export
false friend inline mutable namespace new operator private protected
public reinterpret_cast static_cast template this throw true try
typeid typename using virtual wchar_t alignas alignof char16_t
char32_t constexpr declt... |
local bump = {
_VERSION = 'bump v2.0.1',
_URL = 'https://github.com/kikito/bump.lua',
_DESCRIPTION = 'A collision detection library for Lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
... |
return {
debugPhysics=false,
debug='*',
groundHeight=85,
currentPosition=0,
gameButtonSize=70,
gameButtonMargin=50,
actionButtonSize=100,
actionButtonMargin=60,
chadRunMoveX=30,
chadRunTransitionTime=150,
}
|
--Template for addition of new protocol 'q_meta'
--[[ Necessary changes to other files:
-- - packet.lua: if the header has a length member, adapt packetSetLength;
-- if the packet has a checksum, adapt createStack (loop at end of function) and packetCalculateChecksums
-- - proto/proto.lua: add PROTO.lua to the l... |
-- Include useful files or existing libraries. These are found in the `Scripts`
-- folder.
u_execScript("utils.lua")
u_execScript("common.lua")
u_execScript("commonpatterns.lua")
-- This function adds a pattern to the level "timeline" based on a numeric key.
function addPattern(mKey)
if mKey == 0 then pAltBarrage(ma... |
object_building_heroic_dark_tower_f = object_building_heroic_shared_dark_tower_f:new {
}
ObjectTemplates:addTemplate(object_building_heroic_dark_tower_f, "object/building/heroic/dark_tower_f.iff")
|
local PLUGIN = PLUGIN;
function PLUGIN:ClockworkAddSharedVars(globalVars, playerVars)
playerVars:Number("hunger", true);
playerVars:Number("thirst", true);
playerVars:Number("sleep", true);
end; |
require "path"
require "lua-sqlite3"
local db = sqlite3.open_memory()
assert( db:exec[[
CREATE TABLE test (col1, col2);
INSERT INTO test VALUES (1, 2);
INSERT INTO test VALUES (2, 4);
INSERT INTO test VALUES (3, 6);
INSERT INTO test VALUES (4, 8);
INSERT INTO test VALUES (5, 10);
]] )
assert( db:set... |
--[[
Here goes nothing, Ik hoop dat hij het doet =P NIet slecht voor een middagtje verveling tijdens ICT :P
]]
local undead_ID = 35451 -- Eerste Phase
local skeleton_ID = 35547 -- Tweede Phase
local ghost_ID = 35557 -- Derde Phase
local champion_ID = 35590 -- Risen Champion Add
local heraldSummoned = 0 -- Contro... |
Point = {}
function Point:new(x, y)
local o = { ['x'] = tonumber(x), ['y'] = tonumber(y)}
setmetatable(o, self)
self.__index = self
return o
end
function Point:to_string()
return "(" .. self.x .. "," .. self.y .. ")"
end
VentCoordinates = {}
function VentCoordinates:new(representation,allow_dia... |
--[[
More Blocks: registrations
Copyright © 2011-2020 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.S
local descriptions = {
["micro"] = "Microblock",
["slab"] = "Slab",
["slope"] = "Slope",
["panel"] = "Panel",
["stair"] = "Stair... |
me = game.Players.xSoulStealerx
if script.Parent.className ~= "HopperBin" then
h = Instance.new("HopperBin",me.Backpack)
h.Name = "PL thing"
script.Parent = h
end
sp = script.Parent
eq = false
bricka = Instance.new("Part",me.Character)
bricka.formFactor = 0
bricka.Size = Vector3.new(1,1,1)
bricka.CanCollide = false
... |
login_editText_phoneNum=[[]]
|
--[[
配置缓存操作模块,使用全局变量 _c 存储;
_c 在 ngx_lua 的 init_by_lua_file 指令执行文件 init.lua 中进行初始化
为支持多应用, 缓存存储在 _c[appname]中, appname 取自 ngx.var.APPNAME
--]]
local _M = {}
function _M.get(key, defaultvalue)
local appname = ngx.var.APPNAME or "onez"
if not _c[appname] then
return defaultvalue
end
return _c[appname][key] or def... |
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
--[[
d888 .d8888b. 888 d8b 888 888
d8888 d88P Y88b 888 Y8P 888 ... |
-----------------------------------------------------------------------------------
local ADDONNAME, THIS = ...;
-----------------------------------------------------------------------------------
-- localize
local GetContainerNumSlots, GetContainerItemInfo, GetItemInfo = GetContainerNumSlots, GetContainerItemInfo, ... |
--[[
################################################################################
#
# Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), t... |
#!/usr/bin/env lua
local fl = require( "fltk4lua" )
local fmt = string.format
fl.args( arg )
fl.get_system_colors()
fl.message( fmt( "Spelling check successful, %d errors found with %g%% confidence",
1002, 100*(15/77.0) ) )
fl.alert( fmt( [[
Quantum fluctuations in the space-time continuum detected,... |
--------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... |
C_ScriptedAnimations = {}
---@return ScriptedAnimationEffect[] scriptedAnimationEffects
---[Documentation](https://wow.gamepedia.com/API_C_ScriptedAnimations.GetAllScriptedAnimationEffects)
function C_ScriptedAnimations.GetAllScriptedAnimationEffects() end
---@class ScriptedAnimationBehavior
local ScriptedAnimationBe... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local Clockwork = Clockwork;
local COMMAND = Clockwork.command:New("CharGetUp");
... |
local function signal_id_to_rich_text_icon(signal_id)
local type = signal_id.type
if type == "virtual" then
type = "virtual-signal"
end
return "[" .. type .. "=" .. signal_id.name .. "]"
end
local function handle(entity)
local circuit = entity.get_control_behavior()
if circuit then
... |
local _, namespace = ...
local poption = LibStub('prist_option')
local username = UnitName('player');
local userrace = UnitRace('player')
local userclass = UnitClassBase('player')
local profile = poption.getProfile()
local function compare(a, b)
return a.weight < b.weight
end
local function indexIs(list, name)
... |
local log = require('log')
local json = require('json')
local logger = require('log')
vshard = require('vshard')
local function invalid_body(req, func_name, msg)
local resp = req:render{json = { info = msg }}
resp.status = 400
logger.info("%s(%d) invalid body: %s", func_name, resp.status, req.body)
r... |
--Caitlyn by SilentStar beta v1.3
assert(load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoKAAAAAAAAAAAAAQx8AQAABgBAAAdAQABYgEAAFwAAgB8AgAABwAAAQwCAAIEAAQDBQAEAAYEBAEbBQQBHAcICgUECAMGBAgBdgYAB1kCBAQbBQgBGAUMAFkEBAkFBAwCAAQABwAGAAVbBgQKlAQAACIABh1sAAAAXQAuAhsFDAMABAAEBAgQAnYGAAZsBAAAXAAmAxoFEAAbCRABAAgADHQIAAd2BAAAYAMUDFwABgMb... |
local texturesimg = {
{"img/2.png", "particleskid"},
{"img/3.png", "cloudmasked"},
{"img/3.png", "cardebris_01"},
{"img/3.png", "cardebris_02"},
{"img/3.png", "cardebris_03"},
{"img/3.png", "cardebris_04"},
{"img/3.png", "cardebris_05"},
{"img/4.png", "headlight1"},
{"img/5.png", "headlight"},
{"img/off.png", "vehiclel... |
xAdmin.Database.UseMySQL = true
xAdmin.Database.Creds = {}
xAdmin.Database.Creds.ip = XYZShit.DataBase.IP
xAdmin.Database.Creds.user = XYZShit.DataBase.Username
xAdmin.Database.Creds.password = XYZShit.DataBase.Password
xAdmin.Database.Creds.database = XYZShit.DataBase.Name
xAdmin.Database.Creds.port = XYZShit.DataBase... |
local http = require("resty.http")
--创建http客户端实例
local httpc = http.new()
local resp, err = httpc:request_uri("http://s.taobao.com", {
method = "GET",
path = "/search?q=hello",
headers = {
["User-Agent"] = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) C... |
return {'lopen','lopend','lopendebandwerk','loper','loperig','loperpaar','lopertje','lopenzaad','lopik','loppem','loppersum','lopes','lopez','lopulalan','lopende','loperige','lopers','lopertjes','lopikse','loppemse'} |
return function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings
local border = "single";
local prefix = 'g';
local o... |
t = workspace.yfc.Torso
pos = CFrame.new(t.Position.X, 1, t.Position.Z) * CFrame.Angles(t.CFrame:toEulerAnglesXYZ()) * CFrame.new(0, 0, -140)
Cols = {"Black", "White", "Black", "White", "Black", "White", "Black", "Bright red"}
CN = CFrame.new
CA = CFrame.Angles
MR = math.rad
MP = math.pi
function Part(P, Anch, Coll,... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
all = require "moonpie.tables.all",
any = require "moonpie.tables.any",
assign = require "moonpie.tables.assign",
concatArray = require "moonpie.tables.concat_arr... |
function love.load()
listOfRectangles = {}
end
function createRect()
rect = {}
rect.x = 100
rect.y = 100
rect.width = 70
rect.heigth = 90
rect.speed = 200
table.insert(listOfRectangles, rect)
end
function love.keypressed(key)
if key == "space" then
createRect()
end
end... |
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
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, publish, dis... |
--[[
Adobe Experience Manager (AEM) API
Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
OpenAPI spec version: 3.2.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for openapi-client.api.sling_api
Automatically ge... |
-- Copyright (C) 2018 by chrono
-- curl 127.1:82/upstream
local upstream = require "ngx.upstream"
---------------------
local names = upstream.get_upstreams()
for i,n in ipairs(names) do
local srvs,err = upstream.get_servers(n)
if not srvs then
ngx.say("failed to get servers in ", n)
goto c... |
import "CoreLibs/graphics"
import "CoreLibs/easing"
import "CoreLibs/timer"
import "CoreLibs/math"
import 'shared_funcs'
local graphics <const> = playdate.graphics
local geometry <const> = playdate.geometry
class('PlatformBase').extends(playdate.graphics.sprite)
function PlatformBase:updateImage()
local drawPoly... |
---@class xml
local xml = {
}
---@type xml
_G.xml = _G.xml or xml
---@class xml_asset
local xml_asset = {
---@type xml
content = nil
}
---@type xml_asset
_G.xml_asset = _G.xml_asset or xml_asset
|
require('general.settings')
|
if(GetRealmName() == "Blaumeux")then
WP_Database = {
["Ashbringer"] = "ST:719/99%SB:864/99%SM:1009/99%",
["Ebon"] = "ST:817/99%SB:808/99%SM:1052/99%",
["Vuvu"] = "ST:801/99%SB:870/99%SM:1025/99%",
["Deimosfobos"] = "ST:703/99%SB:842/99%LM:984/98%",
["Sharklol"] = "ST:806/99%SB:824/99%SM:928/99%",
["Forashona"] = "ST:79... |
ITEM.name = "Chainsword"
ITEM.description = "Chainswords are the preferred close combat melee weapon of the military forces of the Imperium of Man."
ITEM.model = "models/joazzz/warhammer40k/weapons/chainsword.mdl"
ITEM.class = "tfa_zad_chainsword"
ITEM.weaponCategory = "melee"
ITEM.width = 2
ITEM.height = 6
ITEM.price ... |
local PLUGIN = PLUGIN
PLUGIN.name = "Vehicle: Remastered"
PLUGIN.author = "Black Tea"
PLUGIN.desc = [[Vehicle Item Plugin with pretty good compatibility.
\nFollowing vehicle mods are supported:
\nDefault Source Vehicles, SCARS]]
-- Vehicle Plugin Tutorial is here.
-- https://docs.google.com/document/d/1m-9H4MCWo4Fgvg9... |
--- Item IDS given reasonable names
---
---@type BuffomatAddon
local TOCNAME, BOM = ...
BOM.ItemId = {}
BOM.ItemId.Mage = {}
BOM.ItemId.Mage.ManaEmerald = 22044
BOM.ItemId.Mage.ManaRuby = 8008
BOM.ItemId.Mage.ManaCitrine = 8007
BOM.ItemId.Mage.ManaJade = 5513
BOM.ItemId.Mage.ManaAgate = 5514
BOM.ItemId.Warlock = {}... |
Config = {}
-- Limit, unit can be whatever you want. Originally grams (as average people can hold 25kg)
Config.Limit = 65
-- Default weight for an item:
-- weight == 0 : The item do not affect character inventory weight
-- weight > 0 : The item cost place on inventory
-- weight < 0 : The item add place on invento... |
local L = BigWigs:NewBossLocale("Black Rook Hold Trash", "zhCN")
if not L then return end
if L then
L.arcanist = "复活的奥术师"
L.champion = "失魂的勇士"
L.swordsman = "复活的剑士"
L.archer = "复活的弓箭手"
L.scout = "复活的斥候"
L.councilor = "幽灵顾问"
L.dominator = "魔怨支配者"
end
|
function checkReplicasStatus(obj)
hs = {}
replicasCount = getNumberValueOrDefault(obj.spec.replicas)
replicasStatus = getNumberValueOrDefault(obj.status.replicas)
updatedReplicas = getNumberValueOrDefault(obj.status.updatedReplicas)
availableReplicas = getNumberValueOrDefault(obj.status.availableReplicas)
... |
require('game.game_objects.shop_level')
require('game.globals')
Shopworld = class(GameWorld, function(t, pl)
GameWorld.init(t)
t.player = pl
end)
-- Draw
function Shopworld:draw()
self.level:draw()
self.player:draw()
end
-- Update
function Shopworld:update()
self.level:update()
self.player:update()
print(fade... |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
wOS.ALCS = wOS.ALCS or {}
wOS.ALCS.Config = wOS.ALCS.Config or {}
wOS.ALCS.Config.Character = wOS.... |
-- Internal custom property
local KILL_TRIGGER = script:GetCustomProperty("KillTrigger"):WaitForObject()
-- nil OnBeginOverlap(Trigger, Object)
-- Kills a player when they enter the trigger
function OnBeginOverlap(trigger, other)
if other:IsA("Player") then
other:Die()
end
end
-- Connect trigger overl... |
slot0 = class("GuildShowAssultShipPage", import(".GuildEventBasePage"))
slot0.getUIName = function (slot0)
return "GuildShowAssultShipPage"
end
slot0.OnLoaded = function (slot0)
slot0.scrollrect = slot0:findTF("frame/scrollrect"):GetComponent("LScrollRect")
slot0.closeBtn = slot0:findTF("frame/close")
slot0.progr... |
-- This script will add link and its data to the storage.
--
-- KEYS[1] fromId
-- KEYS[2] toId
-- ARGV link data
local addLink = require('graph.addLink')
addLink(KEYS[1], KEYS[2], ARGV)
|
-- Configure the coordinates where the strippers should be placed.
local strippers = {
{type=5, hash=0x2970a494, x=112.159, y=-1287.326, z=28.459, a=265.902},
{type=5, hash=0x2970a494, x=108.440, y=-1289.298, z=28.859, a=338.700},
{type=5, hash=0x2970a494, x=108.181, y=-1304.807, z=28.769, a=186.893},
{typ... |
local _dirname_ = debug.getinfo(1, "S").source:sub(2):match("(.*[/\\])")
package.path = _dirname_ .. "?.lua;" .. package.path
utils = require "utils"
-- load conky config tables including font definitions
if conky == nil then
conky = {}
end
dofile(conky_config)
-- remove unavailable fonts
local function _check_f... |
ITEM.Name = 'Red Backpack'
ITEM.Price = 0
ITEM.Model = 'models/modified/backpack_1.mdl'
ITEM.Attachment = 'chest'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, p... |
return NOTESKIN:LoadActor("UpLeft","Hold Head")..{
--InitCommand=cmd(rotationy,180);
--BaseRotationY=180;
}; |
slot0 = class("PlazaModule")
requireLuaFromModule("plaza.model.PlazaModel")
requireLuaFromModule("plaza.controller.PlazaController")
requireLuaFromModule("plaza.view.PlazaView")
slot0.ctor = function (slot0)
ClassUtil.extends(slot0, BaseUIModule, true, PlazaModel, PlazaView, PlazaController)
end
slot0.show = functi... |
local fs = kernel.modules.vfs
local iFREE = 0
local iDIR = 1
local iFILE = 2
local SUPERBLOCK = "\60c4BBxBxI8I8I8I8I8I8c16"
local INODE = "\60BHHHxI8I4I8I8I8I8xxxxxxxxxxxx"
local INODE_SIZE = 64
local DPB = "\60I8BBI8I4xx"
assert(INODE_SIZE == string.packsize(INODE))
local function closeall(tab)
for _, f in pai... |
return {
break_statement = 1,
nil_literal_expression = 2,
boolean_literal_expression = 3,
number_literal_expression = 4,
do_statement = 5,
return_statement = 6,
string_literal_expression = 7,
variable_argument_expression = 8,
function_expression = 9,
parameter_declaration = 10,
table_literal_expre... |
--[[ Guild member right-click dropdowns ]]
StaticPopupDialogs["GUILDPANEL_LEADERCHANGE"] = {
text = GF_STR_LEADERCHANGE,
button1 = BSF_STR_APPLY,
button2 = TEXT("CANCEL"),
OnAccept = function(this)
StaticPopup_Show("GUILDPANEL_LEADERCHANGE2",GuildPanel.SelectedMember["name"]);
end,
OnCancel = function()
Gu... |
return {
AppID = "wx1991b5548755fae8",
AppSecret = "384067139e2faefeb1af361dc93876b3"
} |
Locales['br'] = {
-- Inventory
['inventory'] = 'inventário %s / %s',
['use'] = 'usar',
['give'] = 'dar',
['remove'] = 'remover',
['return'] = 'voltar',
['give_to'] = 'dar para',
['amount'] = 'quantidade',
['giveammo'] = 'dar munição',
['amountammo'] = 'quantidade de munição',
['noammo'] = 'voce nã... |
--
-- Theme
--
Theme = {}
--- Load the theme
Theme.load = function()
if term.isColor() then
-- Menu bar
Theme["menu bar background"] = colors.white
Theme["menu bar background focused"] = colors.gray
Theme["menu bar text"] = colors.black
Theme["menu bar text focused"] = colors.white
Theme["menu bar fla... |
print('Hellor Worlder!')
iojx.enable_termcb(iojx.current_context())
iojxx.timer(iojx.current_context(), function ()
print('timer_a (3) triggered')
iojxx.timer(iojx.current_context(), function ()
print('timer_b (3) triggered, pid', iojx.util.getpid())
iojxx.timer(iojx.current_context(), function ()
print(... |
local E, L, V, P, G = unpack(ElvUI);
local EEL = E:GetModule("ElvuiEnhancedAgain");
local MB = E:GetModule("MinimapButtons");
P["eel"]["minimap"] = {
['minimapcords'] = {
['enable'] = false,
['locationdigits'] = 1
},
['minimapbar'] = {
['enable'] = false,
['skinStyle'] = 'HORIZ... |
local _, Inventorian = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Inventorian")
local ItemCache = LibStub("LibItemCache-1.1")
local ItemSearch = LibStub("LibItemSearch-Inventorian-1.0")
local Item = CreateFrame("Button")
local Item_MT = {__index = Item}
Inventorian.Item = {}
Inventorian.Item.prototype = Item
... |
AddCSLuaFile "shared.lua"
include "shared.lua"
local urllib = url
local FilenamePattern = "([^/]+)%.%S+$"
local FilenameExtPattern = "([^/]+%.%S+)$"
SERVICE.TitleIncludeExtension = true -- include extension in title
function SERVICE:GetMetadata( callback )
if not self._metadata then
local title
local pattern... |
local blueButton = {
name = 'blue',
image = love.graphics.newImage('assets/blueButton.png'),
width = 0,
height = 0,
x = 0,
y = 0
}
blueButton.width = blueButton.image:getWidth()
blueButton.height = blueButton.image:getHeight()
return blueButton
|
--[[
Title: Adv. Dupe 2 Filing Clerk (Clientside)
Desc: Reads/writes AdvDupe2 files.
Author: AD2 Team
Version: 1.0
]]
--[[
Name: WriteAdvDupe2File
Desc: Writes a dupe file to the dupe folder.
Params: <string> dupe, <string> name
Return: <boolean> success/<string> path
]]
function AdvDupe2.WriteFile(name,... |
return {'nijd','nijdas','nijdassen','nijdasserig','nijdassig','nijdig','nijdigaard','nijdigheid','nijdnagel','nijgen','nijging','nijlbaars','nijlgans','nijlpaard','nijlreiger','nijnagel','nijpen','nijpend','nijper','nijptang','nijver','nijveraar','nijverheid','nijverheidsconsulent','nijverheidsgewas','nijverheidsonderw... |
fx_version 'cerulean'
game 'gta5'
version '1.0.4'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'server.lua',
}
client_script 'client.lua'
shared_script 'config.lua'
ui_page {
'html/alerts.html',
}
files {
'html/alerts.html',
'html/main.js',
'html/style.css',
}
|
return {'kachel','kachelbuis','kachelglans','kachelhout','kachelpijp','kachelplaat','kachelsmid','kacheltje','kachelwarmte','kachelplaats','kachelkraan','kachelweer','kachtem','kachelbuizen','kachelhoutjes','kachelpijpen','kachelplaten','kachels','kachelsmeden','kachelt','kacheltjes'} |
---
--- Generated by MLN Team (http://www.immomo.com)
--- Created by MLN Team.
--- DateTime: 2019-09-05 12:05
---
local _class = {
_name = 'MinePagerView',
_version = '1.0'
}
---@public
function _class:new()
local o = {}
setmetatable(o, {__index = self})
return o
end
---@public
function _class:ro... |
--[[
Element object for storing rendering info
]]
local Element = {}
Element.defaults = {
x = 0, --X screen position
y = 0, --Y screen position
z = 1, --Z screen position
r = 0, --number of radians to rotate image
psp_x = 1/8, --Positive space proportion on x axis
psp_y = 1/8, --Positive space propo... |
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
local apiURL = "http://api.steampowered.com/IPlayerService/IsPlayingSharedGame/v0001/?key=%s&steamid=%s&appid_playing=4000&format=json";
-- Called when a player attempts to connect to the server.
function PLUGIN:CheckPassword(steamID, ipAddress, svPassword, clPasswor... |
-- Objects contains simple objects. These objects are simple in that they typically
-- don't do a whole lot. They're also not metatable-based. The quintessential simple
-- object is a value object. It supports a few useful methods to talk to it, but the
-- object is ultimately humble in its pursuits.
--
-- While these ... |
local Srv = require 'solstice.server'
local Chat = require 'solstice.chat'
local CHAT_SYMBOL_ADMIN = 'admin_'
Chat.RegisterSymbol(CHAT_SYMBOL_ADMIN, Srv.VerifyAdmin)
Chat.RegisterCommand(
CHAT_SYMBOL_ADMIN,
"lua",
"Lua related commands",
function(chat_info)
local act = chat_info.param:split(' ')
... |
-----------------------------------------
-- Spell: Bio II
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/utils")
... |
-- Stand Power Crazy Diamond
local s, id = GetID()
function s.initial_effect( c )
-- You can only control 1 "${SP} Crazy Diamond".
c:SetUniqueOnField(1, 0, id)
-- Can only be equipped to a "${SU} Kujo Jotaro" you control.
aux.AddEquipProcedure(c, 0, aux.FilterBoolFunction(Card.IsCode, 1090076072))
-- Destroy ... |
--- Implement the /fg (/fixgroups) console command.
local A, L = unpack(select(2, ...))
local M = A:NewModule("fgCommand")
A.fgCommand = M
local H, HA = A.util.Highlight, A.util.HighlightAddon
local format, gsub, print, strlen, strlower, strmatch, strsub, strtrim = format, gsub, print, strlen, strlower, strmatch, strs... |
require 'winapi'
k,err = winapi.open_reg_key [[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers]]
if not k then return print('bad key',err) end
print(k:get_value("1"))
k:close()
k,err = winapi.open_reg_key [[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]]
t = k:ge... |
--- Friction joint proxy class.
-- This class is derived from @{JointProxy}.
--
-- @classmod FrictionJointProxy
--- Local anchor A.
-- @tfield vec2 localAnchorA
--- Local anchor B.
-- @tfield vec2 localAnchorB
--- Max force.
-- @tfield number maxForce
--- Max torque.
-- @tfield number maxTorque
|
--[[
Nome : Igor Matheus Andrade Torrente
RA : 169820
Turma : L
Professor : Rafael Santos de O. Alves
]]--
require("secante")
require("newton")
require("bissec")
require("comonfunc")
--variaveis dos erros
local bissecError = 0.01
local newtonError = 0.0000001
local secError = 0.0000... |
--- GENERATED CODE - DO NOT MODIFY
-- AWS IoT (iot-2015-05-28)
local M = {}
M.metadata = {
api_version = "2015-05-28",
json_version = "",
protocol = "rest-json",
checksum_format = "",
endpoint_prefix = "iot",
service_abbreviation = "",
service_full_name = "AWS IoT",
signature_version = "v4",
target_prefix = ... |
require "scripts.core.item"
require "gamemode.Spark.modifiers.modifier_hp"
require "gamemode.Spark.modifiers.modifier_all_stats"
require "gamemode.Spark.modifiers.modifier_mana"
Dragon_Totem = class(Item)
function Dragon_Totem:OnCreated ()
self:SetCastingBehavior(CastingBehavior(CastingBehavior.PASSIVE));
-- need t... |
return {
name = 'LineStyle',
description = 'The styles in which lines are drawn.',
constants = {
{
name = 'rough',
description = 'Draw rough lines.',
},
{
name = 'smooth',
description = 'Draw smooth lines.',
},
},
} |
local data = _G.data
-------------------------------------------------------------------------------------
data:extend({
{
type = "recipe",
name = "small-storage-tank",
energy_required = 30,
enabled = false,
ingredients = {
{"pump", 1},
{"pipe", 4},
{"storage-tank", 1}
},
result = "small-storage... |
--[[
SKINS
]]
if CLIENT then
-- Skin table
Q1HUD.Skins = {};
-- Parameters
Q1HUD.DefaultSkin = "Default";
--[[
Adds a selectable skin
@param {string} name
@param {table} data
@void
]]
function Q1HUD:AddSkin(name, data)
self.Skins[name] = data;
end
--[[
Returns a skin's d... |
data.raw["assembling-machine"]["assembling-machine-8"].crafting_categories = {"crafting", "advanced-crafting", "crafting-with-fluid", "end-game-crafting"}
data.raw["assembling-machine"]["assembling-machine-8"].ingredient_count = 20
data.raw["assembling-machine"]["assembling-machine-8"].crafting_categories = {"crafting"... |
local server_mgr = require "server.server_mgr"
local Log = require "log.logger"
local Env = require "env"
local global_define = require "global.global_define"
local ServerType = global_define.ServerType
function g_net_event_server_connect(server_id)
local server_info = server_mgr:get_server_by_id(server_id)
if serv... |
pg = pg or {}
pg.enemy_data_statistics_149 = {
[10101006] = {
cannon = 14,
reload = 150,
speed_growth = 0,
cannon_growth = 1200,
rarity = 3,
air = 0,
torpedo = 85,
dodge = 11,
durability_growth = 27500,
antiaircraft = 40,
luck = 0,
reload_growth = 0,
dodge_growth = 156,
hit_growth = 210,
... |
local assets =
{
Asset("ANIM", "anim/glommer_statue.zip"),
Asset("ANIM", "anim/glommer_swap_flower.zip")
}
local prefabs =
{
"glommer",
"glommerflower",
"marble",
}
SetSharedLootTable( 'statueglommer',
{
{'marble', 1.00},
{'marble', 1.00},
{'marble', 1.00},
{'bell_blueprint', 1.00},
})
loca... |
local mod = get_mod("ranaldsblessing")
mod.randomize = function()
mod:pcall(function()
if Managers.state.game_mode:level_key() ~= "inn_level" then
mod:echo("Can only randomize at the Keep.")
return
end
local player = Managers.player:local_player()
local career_name = player:career_name()
... |
--- A double-linked list implementation
local Is = require('stdlib/utils/is')
-- @class LinkedListNode
-- @usage local llnode = linkedlist.append(item)
local LinkedListNode = setmetatable(
{
_module_name = 'linked_list',
_class_name = 'LinkedListNode',
_is_LinkedListNode = true,
_mt... |
function draw_connection(o,ratio)
ratio = ratio or 0.9
--love.graphics.setColor(0,100,200)
local p = o.parent
if(p) then
if(o.r < p.r) then
p,o=o,p
end
local x1, y1 = o:getPosition()
local x2, y2 = p:getPosition()
--[[if(not shadows) then
y1 = y1 + o.z
y2 = y2 + p.z
end]]
local tangent = (o... |
local FrameCount = Class('FrameCount')
-- 初期化処理
function FrameCount:init()
self.frame_count = 0
self.active = true
end
function FrameCount:update(dt)
if self.active then
self.frame_count = self.frame_count + 1
end
end
function FrameCount:stop()
self.active = false
end
function FrameCount... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.