content stringlengths 5 1.05M |
|---|
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
local packer_job = {
--[[nazwa = {
start_job_marker = {x,y,z}, - miejsce markera do rozpoczęcia pracy
spawn_vehicle_position = {x,y,z,rx,ry,rz}, - miejsce respienia się g... |
description = [[
Retrieves a list of all eDirectory users from the Novell NetWare Core Protocol (NCP) service.
]]
---
--
--@output
-- PORT STATE SERVICE REASON
-- 524/tcp open ncp syn-ack
-- | ncp-enum-users:
-- | CN=admin.O=cqure
-- | CN=cawi.OU=finance.O=cqure
-- | CN=linux-l84tadmin.O=cqure
-- | CN... |
FileTree = {}
-- root of the tree, set in FileTreeInit
FileTree.Root = {}
local KeyMap = require'filetree/key_map'
local TreeNode = require'filetree/tree_node'
local Path = require'filetree/path'
local Config = require'filetree/config'
FileTree.WinSize = 30
FileTree.BufID = nil
FileTree.HlID = nil
FileTree.Cursor... |
--[[
sequence - functional + oo wrapper for ordered tables
mainly beneficial when used for method chaining
to save on typing and data plumbing
]]
local path = (...):gsub("sequence", "")
local class = require(path .. "class")
local table = require(path .. "tablex") --shadow global table module
local functional = re... |
require 'torch'
require 'image'
require 'paths'
local dataset = {}
dataset.dirs = {}
dataset.fileExtension = ""
dataset.originalScale = 64
dataset.scale = 32
dataset.nbChannels = 3
-- cache for filepaths to all images
dataset.paths = nil
-- Set one or more directories to load images from
-- @param dirs Table of dir... |
vehicle_generator "airtug" { -54.26639938354492, -1679.548828125, 28.4414, heading = 228.2736053466797 }
spawnpoint 'a_m_y_hipster_01' { x = -287.41, y = -332.035, z = 18.288 }
-- |
return require("kong.plugins.pre-function._schema")("post-function")
|
------------------------------------------------------------------------------
-- BMP085 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
-- Heavily based on work of Christee <Christee@nodemcu.com>
--
-- Example:
-- dofile("bmp085.lua").read(sda, scl)
----------... |
describe("Numbers", function()
it("can be added", function()
assert.True(1 + 1 == 2)
end)
-- Busted's `--filter` uses Lua patterns so magic characters need to be escaped with %.
it("can add with magic ( ) . % + - * ? [ ^ $", function()
assert.True(1 + 1 == 2)
end)
end)
|
local addon = LibStub("AceAddon-3.0"):GetAddon("WSAttendance")
local L = LibStub("AceLocale-3.0"):GetLocale("WSAttendance")
local LibCopyPaste = LibStub("LibCopyPaste-1.0")
local LibJSON = LibStub("LibJSON-1.0")
function addon:ExportLog(log)
local json = LibJSON.ToJSON({log = log})
LibCopyPaste:Copy(L.name, js... |
local particles = {}
particles[1] = {}
for i = 1, 18 do
local str = tostring(i)
for i = 1, 3-#str do str = "0"..str end
particles[1][i] = Material("panicritual/particles/fire/particle_2_frames/"..str)
end
particles[2] = {}
for i = 1, 25 do
local str = tostring(i)
for i = 1, 3-#str do str = "0"..str end
particl... |
EventController = EventController or {}
slot0 = print
EventController.init = function (slot0)
slot0._eventListenerArr = {}
slot0._objectEvent = {}
end
EventController.addEventListener = function (slot0, slot1, slot2, slot3, slot4, slot5)
slot5 = slot5 or false
slot4 = slot4 or 0
if not slot1 then
slot0("注册的是空... |
v1 = paf.tutorial.Vector3f(1,1,2);
v1.z = 1;
print(v1.length);
v2 = paf.tutorial.Vector3d(2,2,1);
v2.v[2] = 2;
print(v2:getLength());
|
local Aflag = 0
local Bflag = 0
local bflag = false
local xflag = false
local wflag = false
local eflag = false
local fflag = false
local gflag = true
local matchall = true
local optstr= "0123456789A:B:C:EFGHILPSRUVZabce:f:hilnoqrsuvwxy"
local pattern = ""
local opt_table = {}
function getopt(optstring, ...)
loca... |
--
-- Obiaway v0.1
--
-- Copyright (c) 2013, ReaperX
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, thi... |
minetest.register_node("sn_villages:bell", {
description = "Bell",
tiles = {
"nextgen_bell_top.png",
"nextgen_bell_bottom.png",
"nextgen_bell.png",
"nextgen_bell.png",
"nextgen_bell.png",
"nextgen_bell.png"
},
drawtype = "nodebox",
paramtype = "light",
groups = {cracky = 2},
node_box = {
type = "fix... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local oUF = E.oUF
-- Cache global variables
-- Lua functions
-- WoW API / Variables
local UnitExists = UnitExists
local UnitIsUnit = UnitIsUnit
local C_Timer_After = C_Timer.After
local function MouseOnUnit(frame)
... |
#!/usr/bin/love .
-- Copyright 2021 (C) Nelson "darltrash" Lopez
-- All rights reserved
local lume = require("lib.lume")
local log = require("lib.log")
local lynp = require("lib.Lynput")
local lang = require("lan")
_G.DEBUGMODE = tonumber(os.getenv("MINK_DEBUG") ) == 1
_G.EDITMODE = tonumber(os... |
--[[
lds - LuaJIT Data Structures
Copyright (c) 2012 Evan Wies. All righs reserved.
See the COPYRIGHT file for licensing.
Exercises lds.Deque
--]]
local ffi = require 'ffi'
local lds = require 'lds/Deque'
local double_t = ffi.typeof('double')
local dd_t = lds.DequeT( double_t )
local dd = dd_t()
assert( #dd == ... |
--[[
moneyFrame.lua
A money frame object
--]]
local MODULE = ...
local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')]
local L = LibStub('AceLocale-3.0'):GetLocale(ADDON)
local MoneyFrame = Addon:NewClass('GuildMoneyFrame', 'Frame', Addon.MoneyFrame)
MoneyFrame.Type = 'GUILDBANK'
--[[ Update ]]--
... |
local release = {}
function release:getVersionCollection()
return self._versionCollection
end
function release:getStableVersion()
local stable = self:getStable()
local stable_versions = self._versionCollection:find(
function(o)
return o:getIdentifier() == stable
end)
return stable_versions[1]
en... |
--------------------------------
-- @module ParallaxNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- Adds a child to the container with a local z-order, parallax ratio and position offset.<br>
-- param child A child node.<br>
-- param z Z order for drawing priority.<br>
-- param parallax... |
--plates
if not mods["angelssmelting"] then
--plates
if data.raw["item"]["tin-plate"] then data.raw["item"]["tin-plate"].icon = "__morebobs__/graphics/moreshiny/icons/plates/tin-plate.png" end
if data.raw["item"]["tin-plate"] then data.raw["item"]["tin-plate"].icon_size = 32 end
if data.raw["item"]["silver-plate"]... |
-- vim:fdm=marker
local lsp = require('lspconfig')
local bufferline = require('bufferline')
local colorizer = require('colorizer')
local saga = require('lspsaga')
local treesitter = require('nvim-treesitter.configs')
local galaxyline = require('galaxyline')
local bufferline = require(... |
local diff = {
["axisDiffs"] = {
["a2001cdnil"] = {
["name"] = "Pitch",
["removed"] = {
[1] = {
["key"] = "JOY_Y",
},
},
},
["a2002cdnil"] = {
["name"] = "Roll",
["removed"] = {
[1] = {
["key"] = "JOY_X",
},
},
},
["a2003cdnil"] = {
["name"] = "Rudder",
["rem... |
mod = Instance.new("Model", Workspace.acb227)
mod.Name = "C4"
script.Parent = workspace.acb227
local handle1 = Instance.new("Part")
handle1.Parent = mod
handle1.Name = "Head"
handle1.Size = Vector3.new(3, 1, 3)
handle1.CFrame = CFrame.new(15, 5, 15)
handle1.Anchored = true
handle1.CanCollide = true
handle1.Lock... |
local font = love.graphics.newFont("font/SFPixelate.ttf", 25)
hudDrawer = {}
function hudDrawer.draw()
-- now draw the hud
love.graphics.origin()
love.graphics.setColor(255, 255, 255, 255)
local x, y = love.mouse.getPosition()
if showHelp then
loadScreen_draw()
else
... |
--[[
--=====================================================================================================--
Script Name: Blank Script, for SAPP (PC & CE)
--=====================================================================================================--
]]--
api_version = "1.12.0.0"
function OnScriptLoad()
... |
local CORSPolicy = require('apicast.policy.cors')
describe('CORS policy', function()
describe('.rewrite', function()
local ngx_exit_spy
describe('when the request is a CORS preflight', function()
setup(function()
ngx_exit_spy = spy.on(ngx, 'exit')
-- Set ngx req and vars to emulate a ... |
--[[
Blueprint String
Copyright (c) 2016 David McWilliams, MIT License
This library helps you convert blueprints to text strings, and text strings to blueprints.
Saving Blueprints
-----------------
local BlueprintString = require "blueprintstring.blueprintstring"
local blueprint_table = {
entities = blueprint.get_b... |
local __exports = LibStub:NewLibrary("ovale/Frame", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local AceGUI = LibStub:GetLibrary("AceGUI-3.0", true)
local Masque = LibStub:GetLibrary("Masque", true)
local __Icon = LibStub:GetLibrary("ovale/Icon")
local OvaleIcon = __Ico... |
local function cbrt(num: number): number
return (math.abs(num)^(1/3))*math.sign(num)
end
return cbrt |
local telescope = require("telescope")
telescope.load_extension("lsp_handlers")
telescope.setup({
vimgrep_arguments = {
"ag",
"--nogroup",
"--nocolor",
"--vimgrep",
},
extensions = {
lsp_handlers = {
code_action = {
telescope = require("telescope.themes").get_dropdown({}),
... |
--[[
Copyright 2012 Rackspace
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 writing, software
dis... |
-- I DID NOT MAKE THIS
-- Script for DAHOOD
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Sytr0n/Sytrob/main/Solar"))()
|
function DetermineCurrentActivity()
local ped = GetPlayerPed(-1)
if IsPedInAnyVehicle(ped, false) then
local MPH_FACTOR = 2.23693629
local speed_mph = GetEntitySpeed(ped) * MPH_FACTOR
if IsPedGettingIntoAVehicle(ped) then
return "Getting into a Vehicle"
end
... |
local Widget = include('lib/widget')
--
-- ActionWidget
--
local ActionWidget = Widget:extend()
ActionWidget.VALUE_INSET = {6, 10}
ActionWidget.ACTION_LEVEL = 4
ActionWidget.VALUE_LEVEL = 10
function ActionWidget:new(rect, actions)
ActionWidget.super.new(self, rect)
self._actions = actions
self._which_acc = 1.... |
require("scripts.core.item")
require("scripts.core.game")
require("scripts.factory")
-- item factory
ItemFactory = class(Factory)
function ItemFactory:GetFactoryName()
return "item"
end
function ItemFactory:GetType()
local item = Item()
item.entityId = self.entityId
Debug.Log("Running factory method for: " .. i... |
CloneClass( SavefileManager )
Hooks:RegisterHook("SaveFileManagerOnSave")
function SavefileManager._save(self, slot, cache_only, save_system)
Hooks:Call("SaveFileManagerOnSave", self, slot, cache_only, save_system)
return self.orig._save(self, slot, cache_only, save_system)
end
|
local NavMeshGenerator = require(script:GetCustomProperty("NavMeshGenerator"))
local NAVMESH_FOLDER = script:GetCustomProperty("NAVMESH_FOLDER"):WaitForObject()
local NavMesh = {}
_G.NavMesh = NavMesh
NavMesh.rectangles = NavMeshGenerator.GetRectangles(NAVMESH_FOLDER)
function pointToNode(point) -- get a "n... |
-- dorf_tables has job distribution configurations, random number information for attributes generation, job configurations, profession configurations, dwarf types(ie. attributes/characteristic) configurations
-- usage: loaded by dwarf-op.lua
-- by josh cooper(cppcooper) [created: Dec. 2017 | last modified: 2020-02-21]... |
---------------------
-- Save File class --
---------------------
local ShopItem = require 'src/shop/ShopItem'
local File = {}
function File.save()
if love.filesystem.getInfo('save.sav') ~= nil then
local moneyBackup, highestScoreBackup, type, level
local itemsBackup = {}
local lineNumbe... |
--------------------------------------------------
-- =============== Autorun File ===============
-- *** Copyright (c) 2012-2017 by DrVrej, All rights reserved. ***
-- No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
-- without the prior written consent of the author, unless... |
version https://git-lfs.github.com/spec/v1
oid sha256:83ef8d07fd27bd1f4ff50de4ae3251b5f627611830e8d6e0262441d35a45e74f
size 5802017
|
vehicleRepairs = {} |
createbaseprojectcpp("ImGui", "StaticLib")
files
{
"imgui_impl_opengl3.cpp",
"imgui_impl_opengl3.h",
"imgui_impl_glfw.cpp",
"imgui_impl_glfw.h",
"imconfig.h",
"imgui.h",
"imgui.cpp",
"imgui_demo.cpp",
"imgui_draw.cpp",
"imgui_internal.h",
"imgui_tables.cpp",
"imgui_widgets.cpp",
"imstb_re... |
local player = {}
--Player mechanic data--
player.inputDirectionHeld = Vector(0, 0)
player.inputAngle = 0
player.influencedDirection = Vector(0, 0)
--player physics data--
player.moveSpeed = Vector(0, 0)
--Movement data
player.moveAccel = 0.45
player.moveDeccel = 0.55
player.moveTop = 8
--air movement data
player.... |
CLASS.name = "Overwatch Standard Unit"
CLASS.faction = FACTION_OTA
CLASS.isDefault = true
function CLASS:OnSet(client)
local character = client:GetCharacter()
if (character) then
character:SetModel("models/willardnetworks/combine/soldier.mdl")
end
end
CLASS_OWS = CLASS.index
|
-- assume that eid is some existing entity id
function example_factory_add()
origin = scene.components.origin.add(eid)
end
function example_factory_get()
origin, found = scene.components.origin.get(eid)
end
function example_factory_remove()
scene.components.origin.remove(eid)
end
function example_compon... |
--class/messageloop: the thread message loop function.
setfenv(1, require'winapi')
require'winapi.window'
require'winapi.accelerator'
require'winapi.windowclass'
WM_UNREGISTER_CLASS = WM_APP+1 --unregister window class after window destruction
function ProcessMessage(msg)
local window = Windows.active_window
if win... |
--[[
module:CommandTest
author:DylanYang
time:2021-02-11 18:35:06
]]
local Stock = require("patterns.behavioral.command.Stock")
local BuyOrder = require("patterns.behavioral.command.BuyOrder")
local SellOrder = require("patterns.behavioral.command.SellOrder")
local Broker = require("patterns.behavioral.comm... |
local verse = require "verse";
local now = socket.gettime;
local xmlns_sm = "urn:xmpp:sm:2";
function verse.plugins.smacks(stream)
-- State for outgoing stanzas
local outgoing_queue = {};
local last_ack = 0;
local last_stanza_time = now();
local timer_active;
-- State for incoming stanzas
local handled_stanz... |
--[[
License : GLPv3, see LICENCE in root of repository
Authors : Nikolay Fiykov, v1
--]]
-- ==========================
-- ==========================
-- ==========================
local lu = require("luaunit")
local nodemcu = require("nodemcu")
local tools = require("tools")
function testConnectTo()
nodemcu.reset... |
------------------------------------------------------------
-- credits go to: https://github.com/nuke-haus/thestalker --
------------------------------------------------------------
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.MaxDamage = 1000
ENT.MinDamage = 30
function ENT:SetCollides(bool)
self.Collides = ... |
local a = {
table = {
[1] = 5,
},
};
function a:c()
return __js[[1]]
end
function a:b()
print(self.table[a:c()])
end
a:b();
|
PolyZone = {}
function PolyZone:Create()
end
|
return {'gabardine','gabbe','gabben','gabber','gabberhouse','gabarit','gabon','gabonees','gaborone','gabriel','gaby','gabe','gabi','gabor','gabriel','gabriela','gabriella','gabrielle','gabrielle','gabel','gabeler','gabardines','gabes','gabbers','gabriels','gabes','gabis','gabors','gabriels','gabrielas','gabriellas','ga... |
-- **********************************************************************
-- This demo shows various UI controls you can use in your code
-- **********************************************************************
screen = Screen()
screen.rootEntity.snapToPixels = true
demoShape = ScreenLabel("DEMO", 64, "mono")
demoSha... |
---------------------------------------------------------------------------------------------
-- @ CloneTrooper1019, 2019
---------------------------------------------------------------------------------------------
-- [PNG Library]
--
-- A module for opening PNG files into a readable bitmap.
-- This implementation w... |
local component = require('component')
local prefix = require("prefixunit")
local function handle(settings)
local g
if settings.addr then
local addr = component.get(settings.addr, "nc_geiger_counter")
if not addr then
return "Geiger Counter Not Found", 0xFF0000
end
... |
local fs = require 'bee.filesystem'
local config = require 'config'
local util = require 'utility'
local lang = require 'language'
local client = require 'provider.client'
local lloader = require 'locale-loader'
local m = {}
local function getDocFormater()
local version = config.config.runtime.versio... |
local DataStoreService = game:GetService('DataStoreService')
local DataStore = DataStoreService:GetDataStore('DataStore')
local DefaultStats = {
['Example'] = 100,
}
local With_DataStores = true
local Save_Cooldown = 10
function Save(Player)
if With_DataStores == true then
local StatsData = {}
for i, v in pair... |
local class = require 'middleclass'
local registerAsserts = require 'registerAsserts'
local stuart = require 'stuart'
registerAsserts(assert)
describe('RDD', function()
local sc = stuart.NewContext()
it('takeSample() works when RDDs contain Vector classes', function()
local DenseVector = class('DenseVecto... |
--[[
____ _ _ _
/\ / __ \| | (_) |
/ \ | | | | | _| |__
/ /\ \| | | | | | | '_ \
/ ____ \ |__| | |____| | |_) |
/_/ \_\___\_\______|_|_.__/
]]--
_G.AQLibVersion = "1.25"
-- Don't touch anythi... |
-----------------------------------
-- Area: La Theine Plateau
-- Mob: Mad Sheep
-----------------------------------
require("scripts/globals/regimes")
require("scripts/quests/tutorial")
-----------------------------------
function onMobDeath(mob, player, isKiller)
tpz.regime.checkRegime(player, mob, 69, 1, tpz.r... |
local files = require 'files'
local searcher = require 'core.searcher'
local await = require 'await'
local define = require 'proto.define'
local vm = require 'vm'
local util = require 'utility'
local guide = require 'parser.guide'
local converter = req... |
local config_paths = require('config_paths')
local prettier_path = config_paths.prettier_path()
local formatter_filetypes = {
javascript = {},
svelte = {},
typescript = {},
}
if prettier_path ~= nil then
local prettier_formatter = function()
return {
exe = prettier_path,
args = {"--stdin-file... |
-- Copyright 2019, Mansour Moufid <mansourmoufid@gmail.com>
local chirpy = {}
local array = require('array')
local nu = require('libnu')
local pointer = require('pointer')
function chirpy.sendstate(state)
local s = array.copy(state)
for x, t in pairs(s.pointers) do
s[x] = pointer.pack(t, s[x])
en... |
local _, addon = ...
local fmt = string.format
function addon:OnCommReceived(prefix, message, _, sender)
if prefix ~= addon._commPrefix or sender == self.playerName then return end
local command, data = strsplit("|", message)
if not command then return end
if self.db.profile.debug then
self:... |
local VEHICLE_CAMERA_CONFIG = {
-- (hz) Camera response stiffness along the pitch axis
pitchStiffness = 0.5,
-- (hz) Camera response stiffness along the yaw axis
yawStiffness = 2.5,
-- (s) Delay after use input before the camera can begin autorotating
autocorrectDelay = 1,
-- (studs/s) Minimum vehicle speed b... |
dofile('data/modules/scripts/blessings/blessings.lua')
local blessingCharms = Action()
function blessingCharms.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return Blessings.useCharm(player, item)
end
for blessingId = 10341, 10345 do
blessingCharms:id(blessingId)
end
blessingCharms:register()
|
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onGetFormul... |
object_tangible_food_crafted_dessert_corellian_fried_icecream_s02 = object_tangible_food_crafted_shared_dessert_corellian_fried_icecream_s02:new {
}
ObjectTemplates:addTemplate(object_tangible_food_crafted_dessert_corellian_fried_icecream_s02, "object/tangible/food/crafted/dessert_corellian_fried_icecream_s02.iff")
|
-- Load the test file.
dofile("./mods/utils/test.lua")
-- Load the file for testing.
dofile("./mods/utils/list.lua")
dofile("./mods/utils/mathutil.lua")
dofile("./mods/utils/numberutil.lua")
dofile("./mods/utils/tableutil.lua")
test.start("numberutil")
test.run("format", function()
test.equals("12", numberutil.f... |
--[[
Mojang Authentication API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
OpenAPI spec version: 2020-06-05
Generated by: https://openapi-generator.tech
]]
-- game_profile class
local game_profile = {}
local game_profile_mt = {
__name = "ga... |
-- list of setnode commands
local data = {
{ name = "default:stone", pos = { x=1, y=0, z=1 } },
{ name = "default:stone", pos = { x=-1, y=0, z=-1 } }
}
-- initial start
if event.type == "program" then
mem.pos = 1
interrupt(1)
end
-- timer interrupt
if event.type == "interrupt" then
local entry = data[mem.pos]
... |
-- Clothes n stuff
local acc = {
tricorn = {},
hook = {},
}
table.insert(armor.elements, "mask")
armor:register_armor("pirate:patch", {
description = "Eye patch",
inventory_image = "pirate_patch_inv.png",
groups = {armor_mask = 1, armor_use = 1000},
})
minetest.register_entity("pirate:tricorn", {
initial_proper... |
local _M = {}
_M["10"] = {
["Id"] = 10,
["Orient"] = 1,
["Sex"] = 0,
["RHandInitPos"] = { 0.4,-1,-1.8, } ,
["RHandInitRot"] = { 0,0,0,0, } ,
["RHandDiuszOffset"] = { 0.154,-1.965,0.123, } ,
["RHandTakeOffset"] = { -0.39,-1.445,-1.546, } ,
["RHandLeadOffset"] = { -0.592,-1.954,-1.111, } ,
["RHan... |
local cpath = select(1, ...) or "" -- callee path
local function rmlast(str) return str:sub(1, -2):match(".+[%./]") or "" end -- removes last dir / file from the callee path
local cdpath = rmlast(cpath) -- callee dir path
local cpdpath = rmlast(cdpath) -- callee parent dir path
local lib = require (cpdpath .. "Lib/lib... |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
local config = {
positions = {
["OutlandSul"] = { x = 1026, y = 1074, z = 13 },
["OutlandNorte"] = { x = 1022, y = 1074, z = 13 },
["OutlandLeste"] = { x = 1030, y = 1074, z = 13 },
["Outlands"] = { x = 1026, y = 1068, z = 13 },
["BoostMachines"] = { x = 1032, y ... |
local self = {}
GLib.Rendering.Meshes.Mesh = GLib.MakeConstructor (self, GLib.Rendering.Meshes.IMesh)
function self:ctor (graphicsDevice, vertexLayout, vertexCount, indexCount, meshFlags)
self.GraphicsDevice = graphicsDevice
self.Flags = meshFlags
self.VertexBuffer = self.GraphicsDevice:CreateVertexBuffer (vert... |
local mutantCactus = {}
function mutantCactus:load(param)
self.type = "cactus"
self.obsolete = false
self.width = math.floor(drawSize * 0.8)
self.height = drawSize
self.jumpHeight = drawSize * 18
self.x = config.display.width * 1.5
self.y = param.ground - self.height
self.yVel = 0
self.xVel = -para... |
function name()
return syn.crypt.encrypt(game:GetService("HttpService"):GenerateGUID(false),
[[
UmZwTFgvcDYxK2lIcHQ4OGhyZjRHR2lPWW9KU1A4bjJPWDNQdmxzYmNEekpqcmdEM0ZJZ1
pCOTVXYmFWTnNORUxHN3pmR1EvTUMzUTBGZDZud2lQUUdNMFdtRnJWT3dYaE1YOFJJY0hhd
0xrejBKa1p3N3dWNUlKUjhmZFRiOG1PbjRLa2RTVTNkOEFBSW95L0... |
-- This file is part of SUIT, copyright (c) 2016 Matthias Richter
local BASE = (...):match('(.-)[^%.]+$')
local theme = {}
theme.color = {
normal = {bg = { 66, 66, 66}, fg = {188,188,188}},
hover = {bg = { 50,153,187}, fg = {255,255,255}},
active = {bg = {255,153, 0}, fg = {225,225,225}}
}
-- HELPER
function ... |
--
-- Addon _fiu_init.lua
-- Author marcob@marcob.org
-- StartDate 27/02/2017
--
local addon, cD = ...
function cD.getItemNumericRarity(r)
local rarity = {}
if r == nil then r = "common" end
rarity["sellable"] = 1
rarity["common"] = 2
rarity["uncommon"] = 3
rarity["rare"]... |
-- Include Helix content.
resource.AddWorkshop("1267236756")
-- Include features from the Sandbox gamemode.
DeriveGamemode("sandbox")
-- Define a global shared table to store Helix information.
ix = ix or {util = {}, meta = {}}
-- Send the following files to players.
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("core/sh... |
what is the point of table.getn when there is #table,c# is better than c++; its so obvious,that shit was so retarded im bout to respond in another language.. 黑鬼他媽的閉嘴沒有人想听到你停止製作樂高黑客你他媽的婊子,yo i just moved to another country to find who asked,lua is better because its different than the similarity of other languages like ... |
local match = require("luassert.match")
local BehaviourTree = require 'lib/behaviour_tree'
local InvertDecorator = BehaviourTree.InvertDecorator
describe('InvertDecorator', function()
local subject
before_each(function()
subject = InvertDecorator:new()
end)
describe(':initialize', function()
it('shoul... |
--
-- Copyright 2016, Grinn
--
-- SPDX-License-Identifier: MIT
--
local dbus = require 'easydbus.core'
-- utils
local resume = coroutine.resume
local running = coroutine.running
local yield = coroutine.yield
local unpack = unpack or table.unpack
-- wrappers
local function task(func, ...)
local args = {...}
a... |
local ChatMutePlayers = {}
local MetaPlayer = FindMetaTable("Player")
function ShouldBlockChat(ply, txt, tChat, pIsDead)
if table.HasValue(ChatMutePlayers, ply) then
return true
end
end
hook.Add("OnPlayerChat", "CheckIsChatMuted", ShouldBlockChat)
function MetaPlayer:IsChatMuted()
if table.HasValue(Ch... |
mp.options = require 'mp.options'
state = {}
state.enabled = false
options = {}
options.target = 'auto'
mp.options.read_options(options)
function on_sub_text_change(name, text)
result = mp.command_native({
name = 'subprocess',
capture_stdout = 'yes',
args = { 'trans', '-shell', '-brief', '-no-warn', '-... |
object_tangible_component_weapon_mustafar_2h_tulrus_sword_core = object_tangible_component_weapon_mustafar_shared_2h_tulrus_sword_core:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_mustafar_2h_tulrus_sword_core, "object/tangible/component/weapon/mustafar/2h_tulrus_sword_core.iff")
|
local Template = {}
function Template:open(file)
lp("Template:open")
end
function Template:render(file, params)
lp("Template:open", file, params)
end
return Template
|
local Rect = require "src.objs.rect"
local factory = {}
function factory.spawnRect()
-- rects.add(newRect)
table.insert(rects, Rect())
end
function factory.toggle(key, state)
for _, v in ipairs(rects) do
v[key] = state
end
end
function factory.printObjs()
for _, v in ipairs(rects) do
... |
object_creature_player_shared_abyssin_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/player/shared_abyssin_male.iff"
}
ObjectTemplates:addClientTemplate(object_creature_player_shared_abyssin_male, "object/creature/player/shared_abyssin_male.iff")
----------------------------------... |
stringstore.noita = stringstore.noita or {}
stringstore.noita.global = function(base_name)
GlobalsSetValue(base_name, "<managed by stringstore>")
return {
set_type = function(key, val)
GlobalsSetValue(base_name .. "." .. key .. ".type", val)
end,
set = function(key, val)
GlobalsSetValue(base_name .. ".... |
ESX = nil
local PlayerData = {}
local aircraftSpawned = false
local aircraft = nil
local waypoint = true
local waypointPosition = {x = nil, y = nil, z = nil}
local headingArrow = 0
local farmedZone = 0
local smoking = false
local times = 0
local PlayerData = {}
local aircraftBlip = AddBlipForCoord(Config.Z... |
--
-- demo startup shell
--
band = bit.band;
bor = bit.bor
brshift = bit.rshift
function testfs()
local function cat(path)
local catf = sys.open(path, sys.OREAD)
if not catf then
print("cat: could not open file")
return
end
local dbuf = bufio.mkBuffer(512)
... |
return {
x=0,
y=250,
spacing=200,
fontHeight=30
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.