content stringlengths 5 1.05M |
|---|
-----------------------------------------------------------------------------------------------------------------------
-- RedFlat volume indicator widget --
--------------------------------------------------------------------------------... |
-- Do not edit! This file was generated by blocks/signal/addconstant_spec.py
local radio = require('radio')
local jigs = require('tests.jigs')
jigs.TestBlock(radio.AddConstantBlock, {
{
desc = "Number constant, 256 ComplexFloat32 inputs, 256 ComplexFloat32 output",
args = {2.5},
inputs = {... |
require("prototypes.custom-input")
require("prototypes.tools")
local default_gui = data.raw["gui-style"].default
if default_gui.invisible_button == nil then
default_gui.invisible_button = {
type = "button_style",
font = "default-dialog-button",
size = 28,
padding = 4,
right_margin = -6,
top_margin = -3,
... |
--[[
© 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 IsValid = IsValid;
local ScrW = ScrW;
local Sc... |
-- Copyright (C) Dejiang Zhu (doujiang24)
local corehelper = require "system.helper.core"
local pairs = pairs
local ipairs = ipairs
local table_sort = table.sort
local str_upper = string.upper
local md5 = ngx.md5
local _M = { _VERSION = '0.01' }
local function join_args(args)
local keys, str = {}, ''
for ... |
--Creator of the lua mini#0009 , JonBossTV on the forum , GIFT ME A SUB :scary:
--shoutout to my bros mae , raz , vald and my beta testers mix & blazk , I'm giving out miniyaw source code cause I'm superior hacker , enjoy!
--local variables for API. Automatically generated by https://github.com/simpleavaster/gslua/blob... |
local API = require('./API')
local Socket = require('./Socket')
local Cache = require('../utils/Cache')
local Emitter = require('../utils/Emitter')
local Stopwatch = require('../utils/Stopwatch')
local Invite = require('../containers/Invite')
local User = require('../containers/snowflakes/User')
local Guild = re... |
CustomizableWeaponry:addFireSound("50EAGLE_FIRE", "weapons/heyo_deag/44-1.wav", 1, 125, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("50EAGLE_MAGOUT", "weapons/heyo_deag/magout.wav")
CustomizableWeaponry:addReloadSound("50EAGLE_MAG", "weapons/heyo_deag/mag.wav")
CustomizableWeaponry:addReloadSound("50EAGLE_MAGIN",... |
Person = class()
-- Person states
PERSON_KILL =-1
PERSON_BORN = 0
PERSON_SHIP = 1
PERSON_LEVI = 2
PERSON_LOST = 3
PERSON_SAFE = 4
PERSON_FALL = 5
PERSON_BYE = 6
function Person:init(x,y,angle)
-- you can accept and set parameters here
self.x = x
self.y = y
self.angle = angle
local r= math.random(1... |
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local gears = require("gears")
local gfs = require("gears.filesystem")
local spawn = require("awful.spawn")
local HOME_DIR = os.getenv("HOME")
local WIDGET_DIR = HOME_DIR .. '/.config/awesome/noobie'
local ICONS_DIR = ... |
local Runner = require "nvim-test.runner"
local jest = require "nvim-test.runners.jest"
local cypress = Runner:init({
command = { "./node_modules/.bin/cypress", "cypress" },
args = { "run" },
file_pattern = jest.config.file_pattern,
find_files = jest.config.find_files,
}, {
javascript = jest.queries.javascri... |
local telescope = require('telescope')
local wiki_telescope = require('wiki.telescope')
return telescope.register_extension { exports = {
files = wiki_telescope.files,
titles = wiki_telescope.titles,
keywords = wiki_telescope.keywords,
outgoing = wiki_telescope.outgoing,
live_gr... |
--bind client tunnel interface
vRPpc = {}
Tunnel.bindInterface("vRP_paycheck",vRPpc)
function vRPpc.notifyPicture(icon, type, sender, title, text)
SetNotificationTextEntry("STRING")
AddTextComponentString(text)
SetNotificationMessage(icon, icon, true, type, sender, title, text)
DrawNotification(false, ... |
--MCmobs v0.4
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
mobs:register_mob("mobs_mc:illusioner", {
type = "monster",
attack_type = "shoot",
shoot_interval = 0.5,
arrow = "mobs:arrow_entity",
shoot_offset = 1.5,
stepheight = 1.2,
hp_min = 30,
hp... |
--#ENDPOINT POST /insights
-- listInsights
local insightsByGroup = {}
local emptyList = {}
setmetatable(emptyList, {['__type']='slice'})
local addNumber = {
id = "addNumbers",
name = "Add Numbers",
description = "Sum one data point and a user-defined value",
constants = {
{
name = "adder",
typ... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel( "models/sf_models/sf_oil_lamp.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
--self:SetMoveType( MOVETYPE_NONE )
self.RenderMode = 1
self:SetRenderMode(RENDERMODE_TRANSALPHA)
self:SetColor(Color(25... |
local lookupIcon = {
-- Player = "noncommercial/hero",
Bandit = {"noncommercial/bandit", "Basic immobile turret. Fires directly forward."},
Wall = {"noncommercial/wall", "Immovable obstruction."},
BossFlame = {"noncommercial/boss_flame", "Flamethrower boss."},
BossSlam = {"noncommercial/boss_slam", "Bodyslam ... |
Tree_siteText={branchname="Nachrichten pro Seite",
{branchname="example2.de",
{branchname="title2 for the text2",
"This is the text2 corresponding to the title2. ",
},
},
{branchname="example.de",
{branchname="title for the text",
"This is the text corresponding to the title. ",
},
},
}
|
BrotherBags = {
["碧玉矿洞"] = {
["落赎"] = {
{
"4306::::::::41:::::::;19", -- [1]
"4306::::::::41:::::::;20", -- [2]
"5637::::::::41:::::::;3", -- [3]
"3712::::::::41:::::::;8", -- [4]
"12037::::::::41:::::::;4", -- [5]
"12203::::::::41:::::::", -- [6]
"4235::::::::41:::::::", -- [7]
"... |
RegisterServerEvent("alerte:askForAlerte")
AddEventHandler("alerte:askForAlerte", function()
local source = source
TriggerEvent("es:getPlayerFromId", source, function(user)
user.alert("Faire le plein ?", "Les prix sont en baisse, seulement 50$ le litre", {event = "station:unfillTankContainer"})
end)
end) |
object_tangible_component_weapon_new_weapon_enhancement_melee_slot_one_s11 = object_tangible_component_weapon_new_weapon_shared_enhancement_melee_slot_one_s11:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_melee_slot_one_s11, "object/tangible/component/weapon/new_weapon/en... |
-----------------------------------
-- Area: Bastok Mines
-- NPC: Gumbah
-- Finishes Quest: Blade of Darkness, Inheritance
-- !pos 52 0 -36 234
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/quests")
require("scripts/globals/settings")
require("scripts/globals/wsquest"... |
function handle_record(record)
record:set("TRX_LINK", string.format('<a href="trx:%s">%s</a>', record:get('TRANSID'), record:get('TRANSID')));
record:set("TRX_LINK_GO", string.format('<a href="trxid:%s">%s</a>', record:get('TRANSID'), record:get('Account')));
end
function complete(result)
end |
AddCSLuaFile()
local function FloatEquals(x,y) return math.abs(x-y) < 1.19209290E-07 end
DEFINE_BASECLASS "weapon_csbasegun"
CSParseWeaponInfo(SWEP, [[WeaponData
{
"MaxPlayerSpeed" "260"
"WeaponType" "SniperRifle"
"FullAuto" 0
"WeaponPrice" "2750"
"WeaponArmorRatio" "1.7"
"CrosshairMinDistance" "5"
... |
HighScore = class('HighScore')
function HighScore:initialize()
self.destroyScores = {
[Blob] = 5,
[Tank] = 25,
[Healer] = 10,
[Ninja] = 40,
[Megabyte] = 500,
[Sweeper] = 15 --sweeper
}
self.accuracyScore = 100 -- get this many points with 100% accuracy in a wave
self.ricochetBonus = 100 -- get this b... |
local spell = {}
spell["element"] = [[Support]]
spell["desc"] = [[All allies enter battle with heightened defences]]
spell["passive"] = true
spell["name"] = [[Auto-Marakukaja]]
function spell.activate()
require("data/spells/Marakukaja").activate(true)
end
return spell
|
GNLib.Colors = {}
-- > Palette from https://flatuicolors.com/palette/defo
GNLib.Colors.Turquoise = Color(26, 188, 156, 255)
GNLib.Colors.GreenSea = Color(22, 160, 133, 255)
GNLib.Colors.Emerald = Color(46, 204, 113, 255)
GNLib.Colors.Nephritis = Color(39, 174, 96, 255)
GNLib.Colors.PeterRiver = Color(52, 152, 219, 2... |
--- Convert an extended avro-schema (collections) to a GraphQL schema.
local schema = require('graphql.convert_schema.schema')
local convert_schema = {}
convert_schema.convert = schema.convert
return convert_schema
|
local engine, ns = ...
-- link internal map name to level number
local mapsLevels = {
["game/sp/intro/intro"] = 1,
["game/sp/resource_ops/resource_ops"] = 2,
["game/sp/resource_ops_foundry/resource_ops_foundry"] = 3,
["game/sp/surface1/surface1"] = 4,
["game/sp/argent_tower/argent_tower"] = 5,
... |
-- Copyright (C) 2012 by wubenqi
-- Distributable under the terms of either the Apache License (Version 2.0) or
-- the GNU Lesser General Public License, as specified in the COPYING file.
--
-- By: wubenqi<wubenqi@gmail.com>
--
------------------------------------------------------------------------------------------... |
minetest.register_craftitem("yatm_bees:synthetic_brood_comb_empty", {
basename = "yatm_bees:synthetic_brood_comb",
base_description = "Synthetic Brood Comb",
description = "Empty Synthetic Brood Comb",
groups = {
wax_comb = 1,
empty_comb = 1,
empty_synthetic_brood_comb = 1,
},
inventory_image... |
local Class = require "Base.Class"
local Base = require "PinView.Control"
local ply = app.SECTION_PLY
local Gate = Class {}
Gate:include(Base)
function Gate:init(args)
Base.init(self, args)
self:setClassName("PinView.Gate")
-- required arguments
local name = args.name or app.logError("%s.init: name is missing... |
local lib=dofiled("lib/misc")
local eg=dofiled("lib/eg")
local cocomo=require("xomo/cocomo")
eg.all {
one = function(self)
local function say()
print("")
--lib.o(i.x)
lib.oo {effort= self.y.effort,
loc = self.x.loc,
risk = self.y.risk,
pcap = self.x.pcap}
end
... |
obj1 = {}
function obj1:f1(a, b)
print(tostring(a) .. tostring(b) .. str)
end |
--- Functions for creating primitive shapes.
-- @module worldedit.primitives
local mh = worldedit.manip_helpers
--- Adds a sphere of `node_name` centered at `pos`.
-- @param pos Position to center sphere at.
-- @param radius Sphere radius.
-- @param node_name Name of node to make shere of.
-- @param hollow Whether t... |
for _, funcName in ipairs({
"HasFlag",
"IsDev",
"IsMod",
"IsAdmin",
"IsOwner",
}) do
local func = User[funcName]
Main[funcName] = function(self, ...)
local user = self:GetUser()
if not user then return false end
return func(user, ...)
end
Export(Main, funcName)
end |
local luacheck = require "luacheck"
local fs = require "luacheck.fs"
local multithreading = require "luacheck.multithreading"
local version = {}
version.luacheck = luacheck._VERSION
if rawget(_G, "jit") then
version.lua = rawget(_G, "jit").version
else
version.lua = _VERSION
end
if fs.has_lfs then
local lf... |
local ArmorShop = File:extend()
function ArmorShop:new(text)
ArmorShop.super.new(self, "armor shop")
Art.new(self, "armor_shop")
self.player:regainHealth()
self.costs = {
helmet = 50,
breastplate = 20,
shield = 40,
gauntlets = 40
}
if not Events.hasBeenInArmo... |
require("Menu/MainMenu/mainMenuStyle.lua")
require("Menu/towerImage.lua")
require("Game/campaignData.lua")
--this = SceneNode()
Shop = {}
function Shop.new(camera)
--mainAreaPanel = Panel()
local self = {}
--camera = Camera()
local form
local parentForm
local shopPanel = nil
local crystalCountLabel = nil
local ... |
local K, C = unpack(KkthnxUI)
local Module = K:GetModule("ActionBar")
local _G = _G
local table_insert = _G.table.insert
local CreateFrame = _G.CreateFrame
local hooksecurefunc = _G.hooksecurefunc
local RegisterStateDriver = _G.RegisterStateDriver
local UIParent = _G.UIParent
local cfg = C.Bars.BarExtra
local paddin... |
TidyPlatesWidgetData = {
["UnitLastSeen"] = {
["肯瑞托召唤师"] = 3883,
["暴风城卫兵"] = 3883,
["拍卖师希尔顿"] = 3883,
["基霸爱世人"] = 3883,
["约翰·伯恩赛德"] = 3883,
["旅店老板奥里森"] = 3883,
["切尔西租借仔"] = 3883,
["死亡执行者"] = 3883,
["天地会你麻痹"] = 3883,
["军官普米洛"] = 3883,
["尼莫"] = 3883,
["牛顿·伯恩赛德"] = 3883,
["迪安诺"] ... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("player.lua")
-- include: executes a Lua Script
-- AddCSLuaFile: sends the file to clients and adds it to their cache
-- GM -> Gamemode (which is a class inside the game)
function GM:PlayerConnect( name, ip ) --shared function
print( "Player: " .. name ... |
solution "00_MySolution"
configurations {"Debug", "Release"}
configuration "Release"
flags { "Optimize", "StaticRuntime", "NoRTTI", "NoExceptions"}
configuration "Debug"
flags { "Symbols", "StaticRuntime" , "NoRTTI", "NoExceptions"}
platforms {"x32", "x64"}
configuration "x32"
libdirs {"$(ATISTREAM... |
-- Include NutScript content.
resource.AddWorkshop("207739713")
-- Include features from the Sandbox gamemode.
DeriveGamemode("sandbox")
-- Define a global shared table to store NutScript information.
nut = nut or {util = {}, meta = {}}
-- Send the following files to players.
AddCSLuaFile("cl_init.lua")
AddCSLuaFile(... |
codeFolder = '../code/'
require('torch')
require(codeFolder..'rbm')
require(codeFolder..'ProFi')
require(codeFolder..'dataset-from-tensor.lua')
require 'paths'
torch.manualSeed(101)
torch.setdefaulttensortype('torch.FloatTensor')
torch.setnumthreads(2)
--train_mnist,val_mnist,test_mnist = mnist.loadMnist(50)
-- {
-... |
AddEventHandler('gameEventTriggered', function(eventName, args)
if eventName == 'CEventNetworkEntityDamage' then
local victim = args[1]
local culprit = args[2]
local isDead = args[4] == 1
if isDead then
local origCoords = GetEntityCoords(victim)
local... |
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kiwi-i/wallys-ui-fork/master/lib.lua", true))()
local Window = library:CreateWindow('Those Who Remain')
local Window2 = library:CreateWindow('Otherssss')
Window:Section('Ammo') -- Ammo Section
local ammoon = Window:Button("AutoAmmo On", funct... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
local TEAMOPERATE_PB = require("TeamOperate_pb")
local TEAMEXTRAINFO_PB = require("TeamExtraInfo_pb")
local TEAMMEMBERTYPE_PB = require("TeamMemberType_pb")
module('TeamOPArg_pb')
TEAMOPARG = protobuf.Descriptor();
local TEAMOPARG... |
require "src/core/arrays"
local rule = {}
rule.__index = rule
function rule.new(antecedent, consequent)
assert(#(antecedent) > 0)
local self = setmetatable({}, rule)
self.antecedent = antecedent
self.consequent = consequent
return self
end
function rule.infer(self, basis)
local first = fir... |
function ConvertTitle(title)
local MARK='mark mdl-color--accent mdl-color-text--accent-contrast'
local title=title:gsub('%[(新)%]', '<span class="'..MARK..'">%1</span>')
:gsub('%[(終)%]', '<span class="'..MARK..'">%1</span>')
:gsub('%[(再)%]', '<span class="'..MARK..'">%1</span>')
:gsub('%[(交)%]', '<span ... |
yatm.mesecon_hubs = {
NetworkMeta = assert(yatm_mesecon_hubs.NetworkMeta),
wireless_network = assert(yatm_mesecon_hubs.wireless_network),
}
|
-- A filesystem wrapper
local ok, lfs = pcall(require, "lfs")
if (lfs) then
return require("undulate.fs.lfs")
end
local ok, love = pcall(require, "love")
if (love) then
return require("undulate.fs.love")
end
if (jit) then
return require("undulate.fs.luajit")
end
error("Undulate requires eithe... |
data:extend({
{
type = "recipe",
name = "sb-wood-bricks-charcoal",
category = "smelting",
enabled = false,
energy_required = 3.5,
ingredients = {{"wood-bricks", 1}},
result = "wood-charcoal",
result_count = 5,
subgroup = "petrochem-coal"
},
{
type = "recipe",
name = "so... |
local memreader = require('memreader')
local sleep = require('sleep')
local D2Reader = require('d2info.d2reader')
local Output = require('d2info.output')
local Config = require('d2info.config')
local GameState = require('d2info.gamestate')
local windcon = require('windcon')
memreader.debugprivilege(true)
local reader... |
local Object=require("logic/src/Object");
local Player=Object:New("[Class] Player");
local ServiceType=require("ServiceType");
local config=require("GameConfig");
local Mysql=require("database/mysql_center");
local PlayerState=require("logic/const/PlayerState");
local Util=require("logic/Util");
Mysql.Connect();
funct... |
---
-- @module mqtt_library
-- ~~~~~~~~~~~~~~~~
-- Version: 0.4-SNAPSHOT
-- -------------------------------------------------------------------------- --
-- Copyright (c) 2011-2012 Geekscape Pty. Ltd.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclips... |
DeriveGamemode( "sandbox" )
GM.Name = "HeroRP"
GM.Author = "FNOX"
GM.Email = "thefnox@gmail.com"
RP = {}
|
local utils = require('me.utils')
local map = utils.map
local home = utils.home
if vim.fn.has('win32') ~= 0 then
vim.g.python3_host_prog = home .. '/scoop/apps/python/current/python.exe'
else
vim.g.python3_host_prog = '/usr/bin/python'
end
vim.opt.expandtab = true
vim.opt.softtabstop = 4
vim.opt.shiftwidth = ... |
return {'yael','yaels'} |
colored_eggs = {}
local MP = minetest.get_modpath("colored_eggs").."/"
dofile(MP.."colors.lua")
-- particles
local spawn_particles = function(pos, palette_index)
local s = 1
minetest.add_particlespawner({
amount = 10,
time = 0.01, -- seconds to spawn all particles
minpos = {x=pos.x, y=pos.y, z=pos.z},
ma... |
-------------------------------------------------------------------------------
-- Copyright (C) Hispidence 2013-2021
--
--
-- gameManager.lua
--
-- Uses global variables from main.lua even though it doesn't actually INCLUDE
-- main.lua WHAT THE HELL.
--------------------------------------------------------------------... |
local class = require 'lib.middleclass'
local Map = class('Map')
local function parseWorldString(str)
str = str:gsub(' ', '')
local result = {cells = {}}
local width = #(str:match("[^\n]+"))
result.width = width
local y,x = 1,1
for row in str:gmatch("[^\n]+") do
assert(#row == width, 'Map is not al... |
--[[
Copyright 2020 Illia B. (selplacei)
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 agree... |
local PSBT = PSBT
local ModuleProto = PSBT.ModuleProto
local PSBT_Skills = ModuleProto:Subclass()
local CBM = CALLBACK_MANAGER
local PSBT_EVENTS = PSBT.EVENTS
local PSBT_MODULES = PSBT.MODULES
local PSBT_AREAS = PSBT.AREAS
local _
l... |
local Point = {}
Point.__index = Point -- create class
-- Setters
function Point:__newindex(k, v)
if k == 'mass' then
assert(type(v) == 'number')
rawset(self, 'mass', math.abs(v))
rawset(self, 'radius', 5 * math.sqrt(self.mass / math.pi))
elseif k == 'radius' then
assert(type(v) == 'number')
ra... |
local tt = require "util.table"
local function item(k,v)
return {
key = k,
value = v,
}
end
local settings = {
has = {},
}
local function get(k)
local i = settings.has[k]
if i ~= nil then
return i.value
end
end
local function set(k,v)
local i = item(k,v)
set... |
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.uid == 3018 then
if player:getStorageValue(Storage.ExplorerSociety.QuestLine) == 60 then
player:setStorageValue(Storage.ExplorerSociety.QuestLine, 61)
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
end
end
return true
end |
local upperclass = require(LIBXML_REQUIRE_PATH..'lib.upperclass')
local utils = require(LIBXML_REQUIRE_PATH..'lib.utils')
local DOMCDATA = require(LIBXML_REQUIRE_PATH..'dom.cdata')
--
-- Define class
--
local Comment = upperclass:define("DOMComment", DOMCDATA)
--
-- Class constructor
--
function priv... |
local mod = get_mod("rebalthp")
--Text Localization
mod:add_text("bloodlust_name", "Bloodlust")
mod:add_text("reaper_name", "Reaper")
mod:add_text("vanguard_name", "Vanguard")
mod:add_text("regrowth_name", "Regrowth")
mod:add_text("rebalthp_regrowth_desc", "Melee critical stikes gives you 1.5 temporary health and mele... |
return {'cilinder','cilinderblok','cilinderbureau','cilinderhorloge','cilinderinhoud','cilinderoppervlak','cilinderslot','cilindersymmetrie','cilindervormig','cilindrisch','cilinderwand','cilinderglas','cilindervlak','cilinderkop','cilindervorm','cilia','cillekens','cillessen','cilinderbureaus','cilindercoordinaten','c... |
--[[
G codes accept certain addresses as parameters, by convention in the order that follows. I have only included the addresses that this program makes use of, but extras are easily handled simply by adding them to this table.
Typically X, Y, and Z are destination coordinates. I, J, and rarely K are typically intermed... |
local PSBT = PSBT
local ModuleProto = PSBT.ModuleProto
local PSBT_Cooldowns = ModuleProto:Subclass()
local CBM = CALLBACK_MANAGER
local PSBT_EVENTS = PSBT.EVENTS
local PSBT_MODULES = PSBT.MODULES
local kVerison = 1.0
function PSBT_Co... |
function addRobot(x,y)
local r = {}
r.x = x
r.y = y
r.dx = math.random(20) + 5
r.dy = math.random(20)
table.insert(robots, r)
return r
end
function updateRobot(r)
r.x = r.x + r.dx
r.y = r.y + r.dy
r.dx = r.dx - 1
r.dy = r.dy - 1
if r.dx < 0 then r.dx = 0 end
if r.dy < 0 then r.dy = 0 end
end... |
local beautiful = require("beautiful")
local wibox = require("wibox")
local spawn = require("awful.spawn")
local volume = {}
local volume_icon_name = "audio-volume-high-symbolic"
local function parse_output(stdout)
local level = string.match(stdout, "(%d?%d?%d)%%")
if stdout:find("%[off%]") then
volume_icon_n... |
MuiStringMap = Class('MuiStringMap')
function MuiStringMap.__mt.__index:init(path)
self.path = path
self.list = false
end
function MuiStringMap.__mt.__index:getList()
if(self.list) then return self.list end
local node = xmlLoadFile(self.path)
if(not node) then return false end
self.list = {}
... |
function getSinCos(x, y, xt, yt)
local akat, gkat
akat = xt - x
gkat = yt - y
local hypo = math.sqrt(math.pow(gkat, 2) + math.pow(akat, 2))
local sin = gkat/hypo
local cos = akat/hypo
return sin, cos
end
function getRadian(x, y, xt, yt)
local akat, gkat
akat = xt - x
gkat = yt ... |
require("mineunit")
mineunit("core")
mineunit("player")
mineunit("default/functions")
sourcefile("init")
describe("mapblock_lib.get_mapblock", function()
it("returns proper coordinates", function()
local mapblock_pos = mapblock_lib.get_mapblock({ x=1, y=1, z=1 })
assert.not_nil(mapblock_pos)
assert.equals(0, ... |
-- title: spade
-- author: pke1029
-- desc: Realistic cel shader for a sphere.
-- script: lua
-- sorce code available at
-- https://github.com/pke1029/tic-spade
PI = 3.1415
sin = math.sin
cos = math.cos
max = math.max
min = math.min
abs = math.abs
sqrt = math.sqrt
floor = math.floor
vec3d = {
new = function(x, y, ... |
--[[Author informations]]
--
SWEP.Author = "Manix84";
SWEP.Contact = "https://steamcommunity.com/id/manix84";
if (SERVER) then
AddCSLuaFile();
CreateConVar("discord_muter_dart_time", 15, FCVAR_ARCHIVE, "How long to mute the player.");
end
if CLIENT then
SWEP.PrintName = "Muter Dart";
SWEP.Slot = 6;
SWEP.Vie... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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... |
local config = {}
local confighandler = require(engine.path .. 'utils.LIP')
function config.load(file)
local data = confighandler.load(file)
return data
end
function config.save(name, tbl)
confighandler.save(name, tbl)
end
return config |
-- ---------------------------------- --
-- ------------ Deadline ------------ --
-- ------ by: SKPG, Tasty Kiwi ------ --
-- ---------------------------------- --
-- import helpers
local player_helper = require("/dynamic/helpers/player_helpers.lua")
local color_helper = require("/dynamic/helpers/color_helpers... |
-- Autogenerated from KST: please remove this line if doing any edits by hand!
local luaunit = require("luaunit")
require("expr_if_int_ops")
TestExprIfIntOps = {}
function TestExprIfIntOps:test_expr_if_int_ops()
local r = ExprIfIntOps:from_file("src/process_coerce_switch.bin")
luaunit.assertEquals(r.is_eq_... |
-- Navigation plugin configuration, keybind documentation,
-- and other bits for jumping about
local function setup()
vim.cmd([[
packadd which-key.nvim
]])
local which_key = require('which-key')
which_key.setup {
window = {
border = 'none',
position = 'bottom',
... |
local _, T = ...
local EV, L, U, S = T.Evie, T.L, T.Util, T.Shadows
local FollowerList, MissionRewards
local function GenBoardMask()
local m, MP = 0, CovenantMissionFrame.MissionTab.MissionPage
for i=0,12 do
local f = MP.Board.framesByBoardIndex[i]
if f and f.name and f:IsShown() then
m = m + 2^i
end
end
... |
Animation = {
__name = "sol.Animation.user"
}
Arrowtrap = {
__index = "function: 0000020E8E230C90",
__name = "sol.Arrowtrap.user",
__newindex = "function: 0000020E8E230690"
}
BEG = {
ALTAR_DESTROYED = 1,
BOMBBAG_THROWN = 3,
QUEST_NOT_STARTED = 0,
SPAWNED_WITH_BOMBBAG = 2,
SPAWNED_WITH_TRUECROWN = 4,
... |
-- Returns true if x is prime, and false otherwise
function isprime (x)
if x < 2 then return false end
if x < 4 then return true end
if x % 2 == 0 then return false end
for d = 3, math.sqrt(x), 2 do
if x % d == 0 then return false end
end
return true
end
-- Returns table of prime number... |
local Craft = require('craft2')
local Event = require('event')
local itemDB = require('itemDB')
local Milo = require('milo')
local UI = require('ui')
local Util = require('util')
local colors = _G.colors
local context = Milo:getContext()
local device = _G.device
local os = _G.os
--[[ Configu... |
local window
function init(name)
window = g_ui.displayUI('tvCam')
window:setVisible(false)
onlineTv(name)
end
function terminate()
disconnect(g_game, { onGameStart = online,
onGameEnd = destroy })
destroy()
end
function onlineTv(name)
window:setVisible(true)
changelogText ... |
--[[
Purpose: Provides utility functions used by libraries and core
framework files.
--]]
nut.util = {}
AdvNut.hook.Add("EntityKeyValue", "nut_StoreKeyValues", function(entity, key, value)
entity.nut_KeyValues = entity.nut_KeyValues or {}
entity.nut_KeyValues[key] = value
end)
--[[
Purpose: Since Entity:GetKeyV... |
#!/usr/bin/env lua
--------------------------------------------------------------------------------
-- @script IDL Descriptor Pre-Loader
-- @version 1.0
-- @author Renato Maia <maia@tecgraf.puc-rio.br>
local _G = require "_G"
local arg = _G.arg
local assert = _G.assert
local ipairs = _G.ipairs
local pairs = _G.pairs... |
object_building_mustafar_dungeon_monster_lair_must_monster_lair = object_building_mustafar_dungeon_monster_lair_shared_must_monster_lair:new {
customObjectName = "Sher Kar Lair",
}
ObjectTemplates:addTemplate(object_building_mustafar_dungeon_monster_lair_must_monster_lair, "object/building/mustafar/dungeon/monster_lai... |
local helpers = require("cphelper.helpers")
local fn = vim.fn
local extend = vim.list_extend
local insert = table.insert
local M = {}
-- Run a test case
--- @param case number #Case no.
--- @param cmd string #Command for running the test
--- @return table, number #The result to display and whether or not the test pass... |
local Text = { }
Text.x = 0
Text.y = 0
Text.width = 100
Text.height = lui.theme.font.default:getHeight()
Text.focusable = false
Text.text = "<text>"
Text.align = 'left'
Text.font = lui.theme.font.default
Text.textColor = lui.the... |
require("vue/__tests__/e2eUtils")
local globalStats = nil
-- [ts2lua]请手动处理DeclareFunction
describe('e2e: svg', function()
local = setupPuppeteer()
function assertPolygon(total)
expect():toBe(true)
end
function assertLabels(total)
local positions = nil
local i = 0
repeat
local textPos... |
--[[
Program name: Lolmer's AE2+OpenComputers Enchanted Books Combiner Script
Version: 0.0.1
Programmer: Lolmer
Last update: 2015-03-24
Pastebin: http://pastebin.com/TBD
GitHub: https://github.com/sandalle/opencomputers-programs/ae2/combine-enchanted-books/
Description:
This script will scan through the connected Appl... |
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'tlaplus'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Translation
local translation = token(l.PREPROCESSOR, '\\*' * l.space^0 * (P('BEGIN') + P('END')) * l.space^1 * ... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:4343e35bd992daa42b9c5411cc7c9c4d:5a8d8142cde4887da4445cd7c47a6d2a:cf8ab4992190eb44f97f06311ef326d7$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
--!The Make-like Build Utility based on Lua
--
-- 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 L... |
local cfg = {}
-- define static transformers
-- see https://github.com/ImagicTheCat/vRP modules documentation to understand the transformer concept/definition
cfg.transformers = {
{
-- example transformers
title="Body training", -- menu name
color={255,125,0}, -- color
max_units=1000,
units_per... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.