content stringlengths 5 1.05M |
|---|
--[[
MIT License
Copyright (c) [2021] [Juan de la Parra - DLP Wings]
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, mo... |
#!/usr/bin/lua
-- Implements an automaton by Elliott Hird.
-- Not sure what it was supposed to do...
m = {}
x = 0
while 1 do
m[m[0] or 0] = x
x = m[(m[0] or 0) + 1]
m[0] = x
end
|
function make_heavy_gunshot_sounds(volume)
return
{
{
filename = "__base__/sound/fight/heavy-gunshot-1.ogg",
volume = 0.45
},
{
filename = "__base__/sound/fight/heavy-gunshot-2.ogg",
volume = 0.45
},
{
filename = "__base__/sound/fight/heavy-... |
function match(match, _M)
local _ = _M.new_ip;
local ip = _"10.20.30.40";
assert_equal(match(ip, _"10.0.0.0", 8), true);
assert_equal(match(ip, _"10.0.0.0", 16), false);
assert_equal(match(ip, _"10.0.0.0", 24), false);
assert_equal(match(ip, _"10.0.0.0", 32), false);
assert_equal(match(ip, _"10.20.0.0", 8), tr... |
--[[
Copyright (c) 2014, Robert 'Bobby' Zenz
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, this
list of conditions and the fo... |
cubedispenser = class:new()
function cubedispenser:init(x, y, r)
--PHYSICS STUFF
self.cox = x
self.coy = y
self.x = x-1
self.y = y-1
self.speedy = 0
self.speedx = 0
self.width = 2
self.height = 2
self.static = true
self.active = true
self.category = 7
self.mask = {true, false, false, false, false, false, ... |
local ui = require 'lib.LoveUIView'
local Button = ui.Button
local View = ui.View
local ObjectCollection = ui.extends(View,"ObjectCollection")
local unselect, select
function ObjectCollection.new(nRow,nCol,x,y,width,height)
local self = ObjectCollection.newObject(x,y,width,height)
self.nRow = nRow
self.nCol = n... |
#! /usr/local/bin/lua
-----------------------------------------------------------------------------
-- Copyright (c) 2013, Benjamin Heath (benjamin.joel.heath@gmail.com)
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the foll... |
local Native = require('lib.stdlib.native')
---@class LeaderBoard : Agent
local LeaderBoard = class('LeaderBoard', require('lib.stdlib.oop.agent'))
---destructor
---@return void
function LeaderBoard:destructor()
--@debug@
checkobject(self, LeaderBoard, 'destructor', 'self')
--@end-debug@
return Native.Destroy... |
--[[
Which of the following are valid numerals? What are their values?
.0e12
.e12
0.0e
0x12
0xABFG
0xA
FFFF
0xFFFFFFFF
0x
0x1P10
0.1e1
0x01.1
]]
local numerals = {
".0e12",
".e12",
"0.0e",
"0x12",
"0xABFG",
"0xA",
"FFFF",
"0xFFFFFFFF",
"0x",
"0x1P10",
"0.1e1",
"0x0.1p1"
}
for _, value in pai... |
-- Toggle Hammerspoon Console
hs.hotkey.bind({"cmd", "alt", "ctrl"}, 'y', hs.toggleConsole)
|
bj_PI = 3.14159265358979323846
bj_E = 2.71828182845904523536
bj_CELLWIDTH = 128.0
bj_CLIFFHEIGHT = 128.0
bj_UNIT_FACING = 270.0
bj_RADTODEG = 180.0 / bj_PI
bj_DEGTORAD = bj_PI / 180.0
bj_TEXT_DELAY_QUEST = 20.00
bj_TEXT_DELAY_QUESTUPDATE = 20.00
bj_TEXT_DELAY_QUESTDONE = 20.00
bj_TEXT_DELAY_QUESTFAILED = 20.00
bj_TEXT_... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.ui.create_character.basic_information", function()
local BasicInformation = require "game.ui.create_character.basic_information"
local Character = require "game.r... |
-- Simple test for QLink status
local modem = peripheral.find("modem")
modem.open(6464)
modem.transmit(6464,6464,{sType = "requestStatus"})
local t = os.startTimer(2)
while true do
local e = {os.pullEvent()}
if e[1] == "modem_message" then
if e[3] == 6464 then
if type(e[5]) == "table" then
if e[5... |
#!/usr/bin/lua
-- Sidef executor in Lua
String = setmetatable({
__index = function(self, i)
return String[i]
end,
concat = function(self, arg)
return String(self.value .. arg.value)
end,
say = function(self)
self:concat(String("\n")):print();
end,
print = functio... |
-- based on https://github.com/cheapie/mail
laptop.register_app("mail", {
app_name = "Mail",
app_icon = "laptop_email_letter.png",
app_info = "Send Electronic Mail",
formspec_func = function(app, mtos)
local cloud = mtos.bdev:get_app_storage('cloud', 'mail')
if not cloud then
mtos:set_app("mail:nonet")
r... |
return {
size = { w = 17, h = 11 },
cells = {
{0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
{1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1},
{0,0,0,0,0,0,0,0,1,0... |
speed = 1
cameraSpeed = math.pi / 8
rot = math.pi / 2
light = tracer.SpotLight(tracer.Color(1, 1, 1), tracer.Vec(2, 5, 0), tracer.Vec(0, 0, 0), math.pi / 12, math.pi / 9)
tracer.scene:addLight(light)
function tick(dt)
local obj = tracer.scene:getObject(3)
obj.transform = obj.transform * tracer.Mat.fromRotationZ(dt ... |
if not file.Exists("ghomes_system/mails/", "DATA") then
file.CreateDir("ghomes_system/mails/")
end
util.AddNetworkString("ghomes_requestlastmail")
util.AddNetworkString("ghomes_writenote")
util.AddNetworkString("ghomes_newmail")
ghomes.mail = ghomes.mail or {}
function ghomes.mail.savemail(sid)
local target = "ghom... |
--[[************************************************************
Stdlib written by Jason Lee Copyright (c) 2018
This software is free to use. You can modify it and
redistribute it under the terms of the MIT license.
--************************************************************]]
return function(threa... |
local neu = {} -- neuron functions
neu.new = function (data)
local input_amount = data.input_amount or 25
local output_amount = data.output_amount or 4
local layers_amount = data.layers_amount or 4
local layer_breadth = data.breadth or 4
local header = {input_amount=input_amount, -- input nodes
output_amou... |
--- === cp.apple.finalcutpro.cmd.Commands ===
---
--- The list of available commands (depending on search and/or [CommandGroup](cp.apple.finalcutpro.cmd.CommandGroups.md])
--- that can be mapped to a keyboard shortcut.
local require = require
--- local log = require "hs.logger".... |
local logger = require "logger"
local SDL = require "SDL"
-- Calculo tablas para acelerar el acceso al video del Spectrum
-- arrays de words
-- Given the vertical coordinate of a pixel, gives the starting memory address for the pixels of the corresponding
-- pixel row.
local D_PixelAddressArray = {}
for y = 0, 191 d... |
--[[
Asset Loader and Manager
]]
local lib
local asset
asset = {
sound_directory = "asset/sound/",
image_directory = "asset/image/",
font_directory = "asset/font/",
loaded = {},
get = function(self, name)
return self.loaded[name]
end,
play_sound = function(self, name)
self.loaded[name]:stop()
self.loa... |
bt.register_action("SetWaypointHere", {
tick = function(node, data)
local pos = {x= data.pos.x, y= data.pos.y, z= data.pos.z}
data.waypoints[node.wpname] = pos
return "success"
end,
ctor = function(name)
return {
wpname=name or "_"
}
end,
})
bt.register_action("SetWaypoint", {
tick = function(n... |
local path = "games/common/game_result/anim/coin_rotate_pin.png"
local coin_rotate_pin_map = {
["9.png"] = {
file=path,
x=2,y=2,
width=70,height=70,
rotated=false
},
["2.png"] = {
file=path,
x=74,y=2,
width=70,height=70,
rotated=false
},
["4.png"] = {
file=path,
x=146,y=2,
width=70,height... |
#!/usr/bin/env tarantool
local tap = require('tap')
local popen = require('popen')
local process_timeout = require('process_timeout')
local fio = require('fio')
local clock = require('clock')
local fiber = require('fiber')
--
-- gh-2717: tarantool console quit on sigint.
--
local file_read_timeout = 60.0
local file_r... |
-- See LICENSE for terms
local options
local mod_GlobalDomeCount
local mod_RespectIncubator
local mod_BypassNoNurseries
local mod_UltimateNursery
-- fired when settings are changed/init
local function ModOptions()
mod_GlobalDomeCount = options:GetProperty("GlobalDomeCount")
mod_RespectIncubator = options:GetPropert... |
return {
name = "phantom-token",
fields = {{
config = {
type = "record",
fields = {
{ introspection_endpoint = { type = "string", required = true } },
{ client_id = { type = "string", required = true } },
{ client_secret = { type = ... |
function loop(n)
local ret = ""
local last = ""
for i = 2, n do
ret = last.."ret"..i
last = "last"..i
end
return ret
end
local N = 1000000
print(loop(N))
|
--[[
Mock version of ContextActionService so we can simulate input.
Because this is all tested from studio and we need it to be automatic, this
allows us to fake key presses and other input types so that we're fairly
certain everything will work in a live game.
]]
local t = require(script.Parent.t)
local types = ... |
ruRU_questgiver_greeting = {
[""..st_c..", eh? i am krazek, baron revilgaz's secretary. i know everything about the goings on in this jungle and beyond. perhaps you'd be interested in knowing the going price on oil in ratchet? no? looking for work, maybe? i can help you there."] = ""..ST_C..", а? Я Кразек, секретарь б... |
return {
whitelist_globals = {
['.'] = {
'instance', 'accessors', 'properties', 'include', 'parent', 'static', 'meta', 'missing_property', 'super', 'new'
},
["spec"] = {
'it', 'describe', 'before_each', 'before', 'after', 'after_each',
'raise', 'spy', 'context', 'setup', 'teardown', 'moo... |
local config = {}
function config.nvim_lsp()
require('modules.completion.lspconfig')
end
function config.telescope()
if not packer_plugins['plenary.nvim'].loaded then
vim.cmd [[packadd plenary.nvim]]
vim.cmd [[packadd popup.nvim]]
end
require('telescope').setup {
defaults = {
layout_config =... |
local mod = DBM:NewMod(1470, "DBM-Party-Legion", 10, 707)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15190 $"):sub(12, -3))
mod:SetCreatureID(95888)
mod:SetEncounterID(1818)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 213576 213583 19725... |
local base_total = 0;
local credit_total = 0;
local avail_total = 0;
function handle_record(record)
local prefix = record:get("PFX_SYMBOL");
local suffix = record:get("SFX_SYMBOL");
local balance = record:get("Balance");
local credit = record:get("CreditLimit");
local available = record:get("Availa... |
hook.Add('PostCleanupMap', 'BGN_ResetAllGlobalTablesAndVariables', function()
bgNPC:ClearActorsConfig()
bgNPC.actors = {}
bgNPC.factors = {}
bgNPC.npcs = {}
bgNPC.fnpcs = {}
end)
cvars.AddChangeCallback('bgn_enable', function(convar_name, value_old, value_new)
if tonumber(value_new) == 0 then
bgNPC:ClearActors... |
--[[
AutoHideController.lua
@Author : DengSir (tdaddon@163.com)
@Link : https://dengsir.github.io
]]
local MAJOR, MINOR = 'AutoHideController', 2
local GUI = LibStub('tdGUI-1.0')
local AutoHideController, oldminor, ns = GUI:NewClass(MAJOR, MINOR, 'Frame')
if not AutoHideController then return end
LibStub('AceTime... |
local ssl_fixtures = require "spec.fixtures.ssl"
local helpers = require "spec.helpers"
local cjson = require "cjson"
for _, strategy in helpers.each_strategy() do
describe("/certificates with DB: #" .. strategy, function()
local client
lazy_setup(function()
helpers.get_db_utils(strategy, {
"... |
-- Credits: Darklord (Dota 12v12)
DisableHelp = DisableHelp or {}
RegisterCustomEventListener("set_disable_help", function(data)
local to = data.to;
if PlayerResource:IsValidPlayerID(to) then
local playerId = data.PlayerID;
local disable = data.disable == 1
PlayerResource:SetUnitShareMaskForPlayer(playerId, t... |
object_mobile_dressed_dark_jedi_male_zab_02 = object_mobile_shared_dressed_dark_jedi_male_zab_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_male_zab_02, "object/mobile/dressed_dark_jedi_male_zab_02.iff")
|
local api = vim.api
local empty_3f = vim.tbl_isempty
local contains_3f = vim.tbl_contains
local map = vim.tbl_map
local min = math.min
local max = math.max
local ceil = math.ceil
local function inc(x)
return (x + 1)
end
local function dec(x)
return (x - 1)
end
local function clamp(val, min0, max0)
if (val < min0)... |
local tablex = require "pl.tablex"
local pretty = require "pl.pretty"
local utils = require "kong.tools.utils"
local cjson = require "cjson"
local setmetatable = setmetatable
local re_find = ngx.re.find
local concat = table.concat
local insert = table.insert
local assert ... |
local tileTemplates = require('src/tileTemplates')
local key = require('src/ents/key')
local TILE_NAMES = {}
TILE_NAMES['02550255'] = tileTemplates.WALL
TILE_NAMES['00255255'] = tileTemplates.DESTRUCTABLE
TILE_NAMES['2552550255'] = tileTemplates.WARP_LEFT
TILE_NAMES['0255255255'] = tileTemplates.WARP_RIGHT
TILE_NAMES[... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local _M = function(role,data)
role.activitylist:refresh()
return 0
end
return _M
|
-- Resource Metadata
fx_version 'cerulean'
games { 'rdr3', 'gta5' }
author 'SC-Dev'
description 'Fblock Zone'
version '1.0.0'
client_scripts {
'fblock.lua',
}
|
--// options for objectivetracker //--
local _, ns = ...
local L = ns.L
local LUI = LolzenUI.L
local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, addon)
if addon == "LolzenUI_Options" and LolzenUIcfg.modules["objectivetracker"] == true then
local title = ns... |
--[[
[] Author: Martynas Petuska
[] E-mail: martynas.petuska@outlook.com
[] Date: April 2018
--]]
local UpdateInfo = ADDON.UpdateInfo;
local PinType = ADDON.Constants.PinType;
local Sizes = ADDON.Sizes;
local UI = ADDON.UI;
--====================================================== CLASS =========================... |
function SpawnProp(pl, command, args)
if GAMEMODE:GetRound() == 1 then
if util.IsValidProp(args[1]) and !string.find(string.lower(args[1]),"cargo") then
if pl:GetRemainingProps() == 0 then
pl:ChatPrint("You do not have any props left.")
return false
end
local vStart = pl:GetShootPos()
local vFor... |
ltnh_events = {
map_gui_opened = {},
map_gui_closed = {},
map_checked = {},
map_text_changed = {},
map_elem_changed = {},
map_clicked = {},
map_slider = {},
}
ltnh_events.on_gui_opened = function(event)
if not event.entity or not ltnh_events.map_gui_opened[event.entity.name] then re... |
local numKeyArgs = 1
-- Arguments:
-- Keys: <WriteLockKey>
-- Params: <LockToken>
-- Returns:
-- { 0 } - Lock was previously released or expired
-- { 1 } - Lock released
if redis.call("get", KEYS[1]) == ARGV[1] then
redis.call("del", KEYS[1])
return { 1 }
else
return { 0 }
end
|
-- API
local Constants_API = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API"))
local UTIL_API = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API"))
local viewRange = script:GetCustomProperty("ViewRange")
local gameStateManager = script:GetCustomProperty("GameStateManager"):WaitFo... |
local base = "@PKG@/settarg"
local settarg_cmd = pathJoin(base, "@settarg_cmd@")
prepend_path("PATH",base)
setenv("LMOD_SETTARG_CMD", settarg_cmd)
set_shell_function("settarg", 'eval $($LMOD_SETTARG_CMD -s sh "$@")',
'eval `$LMOD_SETTARG_CMD -s csh $*`' )
set_shell_function("gett... |
local _2afile_2a = "fnl/aniseed/fennel.fnl"
local _0_0
do
local name_0_ = "aniseed.fennel"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed... |
-- Base64-decoding
-- Sourced from http://en.wikipedia.org/wiki/Base64
-- Author Daniel Lindsley
-- License BSD https://github.com/toastdriven/lua-base64
local index_table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
local function to_binary(integer)
local remaining = tonumber(integer)
local... |
Script:ReloadScript("scripts/materials/PhysicsSounds.lua")
-- simple entity
BasicEntity = {
Name = "BasicEntity",
Properties = {
object_Model = "",
aianchorAIAction = "",
fAnchorRadius = 0,
Physics = {
bRigidBody=0, -- True if rigid body.
bRigidBodyActive = 1, -- If rigid body is originally created ... |
class "Riven"
class "Download"
function Riven:__init()
self:Variables()
self:Menu()
self:Callbacks()
self:AutoUpdater()
self:LoadTableOrbs()
self:LoadOrb()
end
function Riven:Variables()
self.Version = 3.8
self.QTarget = nil
self.QCount = 0
self.LastQ = 0
self.SelectedTarget = nil
self.RTime =... |
--[[
CREATE OR REPLACE SCRIPT LIST_ALL_ROLES() RETURNS TABLE AS
--]]
-- [impl->dsn~listing-all-roles~1]
exit(query("SELECT ROLE_NAME, ROLE_ID FROM ::s.EXA_ROLES_MAPPING",
{ s = exa.meta.script_schema }))
--[[
/
--]] |
require "lxp"
local count = 0
callbacks = {
StartElement = function (parser, name)
io.write("+ ", string.rep(" ", count), name, "\n")
count = count + 1
end,
EndElement = function (parser, name)
count = count - 1
io.write("- ", string.rep(" ", count), name, "\n")
end
}
p... |
local awful = require('awful')
local gears = require("gears")
local menubar = require("menubar")
require('awful.autofocus')
local beautiful = require('beautiful')
local hotkeys_popup = require('awful.hotkeys_popup').widget
local modkey = require('configuration.keys.mod').modKey
local altkey = require('configuration.k... |
local ROT = require((...):gsub(('.[^./\\]*'):rep(1) .. '$', ''))
local Path = ROT.Class:extend("Path")
function Path:init(toX, toY, passableCallback, options)
self._toX = toX
self._toY = toY
self._fromX = nil
self._fromY = nil
self._passableCallback = passableCallback
self._options = { topology = 8 }
if... |
local ffi = require("ffi")
local errno = require("std_ffi.errno")
local ffi_new = ffi.new
local ffi_str = ffi.string
local C = ffi.C
local _M = {
O_RDONLY = tonumber('00000000', 8),
O_WRONLY = tonumber('00000001', 8),
O_RDWR = tonumber('00000002', 8),
O_CREAT = tonumber('00000100', 8),
O_EXCL = to... |
function createToggle(bool, text)
end
function draw()
end |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras of Aerie ... |
#!/usr/bin/env luajit
-- ./cycsub_r.lua FILE
local afile = ...
local dat = io.open(afile, "rb"):read("*a")
local key = "\x3c\x7c\x33\x5e\x0a\x71\x0d\x5b"
local function cycsub_dec(buffer, key)
local j = #buffer
local out = ""
local checksum = 0
local keyIndex = 0
while j >= 1 do
local roundKey = bit.band(ch... |
-- file created: 2010-03-16
local F = far.Flags
local dialog = require "far2.dialog"
local Cfg, M = ...
local Guid1 = win.Uuid("05d16094-0735-426c-a421-62dae2db6b1a")
local function ExecuteDialog (aData, aMsgTitle)
local D = dialog.NewDialog()
local offset = 5 + math.max(M.mBtnHighTextColor:len(), M.mBtnSelHighTe... |
_=loadfile and loadfile("TQAE.lua"){
refreshStates=true,
debug = { onAction=true, http=false, UIEevent=true },
--offline = true,
copas = true,
--readOnly=true,
}
--%%name="API Verifier"
--%%type="com.fibaro.binarySwitch"
local fmt = string.format
local EM = hc3_emulator.EM
local function callAPI(host,path,... |
QBCore.Functions.CreateUseableItem("fitbit", function(source, item)
local Player = QBCore.Functions.GetPlayer(source)
TriggerClientEvent('qb-fitbit:use', source)
end)
RegisterServerEvent('qb-fitbit:server:setValue')
AddEventHandler('qb-fitbit:server:setValue', function(type, value)
local src = source
l... |
local ffi = require('ffi')
local header = [[
typedef unsigned int mx_uint;
typedef float mx_float;
typedef void *PredictorHandle;
typedef void *NDListHandle;
const char* MXGetLastError();
int MXPredCreate(const char* symbol_json_str,
const void* param_bytes,
int... |
local S = farming.intllib
--[[
-- place cocoa
local function place_cocoa(itemstack, placer, pointed_thing, plantname)
local pt = pointed_thing
-- check if pointing at a node
if not pt or pt.type ~= "node" then
return
end
local under = minetest.get_node(pt.under)
-- return if any of the nodes are not regis... |
--
-- A manifest of all the game's assets
--
manifest =
{
scripts =
{
['main.lua'] =
{
path = "code/main.lua"
},
['BitmapText.lua'] =
{
path = "code/ui/BitmapText.lua"
},
['PrintTable.lua'] =
{
p... |
-- Copyright (C) 2017-2020 DBotThePony
-- 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, publis... |
GAMESTAGE_BASEPLACE = 1
GAMESTAGE_BUILD = 2
GAMESTAGE_PLAY = 3
DAC.DefaultGameStage = GAMESTAGE_BASEPLACE
DAC:RegisterGameStage(GAMESTAGE_BASEPLACE, {
name = "SETUP",
showOnHud = true,
pvp = false,
nextStage = nil,
color = Color(0, 130, 255)
})
DAC:RegisterGameStage(GAMESTAGE_BUILD, {
name = "BUILD",
showOnHu... |
format_version = "1.0"
-- Note that changing this file requires a Reason/Recon restart
-- Max 40 chars
long_name = "Noise Synth"
-- Max 20 chars
medium_name = "Noise Synth"
-- Max 10 chars
short_name = "NoiseSynth"
product_id = "org.porternet.noisesynth"
manufacturer = "meromorph"
version_number = "1.1.0b5"
device... |
local menori = require 'menori'
local application = menori.Application
local ml = menori.ml
local vec3 = ml.vec3
local quat = ml.quat
local love_logo = menori.ImageLoader.load('example_assets/love_logo.png')
-- Creating a node for drawing an object.
local SpriteNode = menori.Node:extend('SpriteNode')
function Sprit... |
AttackStyleName = FlyRound
Data = {
howToBreakFormation = StraightAndScatter,
axisRotation = 15,
maxAxisRotation = 15,
circleSegmentAngle = 45,
angleVariation = 0.2,
circleHeight = -300,
distanceFromTarget = 1200,
distanceVariation = 0.1,
percentChanceOfCutting = 5,
minSegmentsToCut = 1,
... |
object_draft_schematic_genetic_engineering_combiner_use_capsule = object_draft_schematic_genetic_engineering_shared_combiner_use_capsule:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_genetic_engineering_combiner_use_capsule, "object/draft_schematic/genetic_engineering/combiner_use_capsule.iff")
|
-- Tests for pollard_rho.lua
local rho = require 'pollard_rho'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
l... |
-- FS.lua
-- David Skrundz
--
-- FS.forEachFile("lua", function(name) print(name) end)
-- FS.deleteAll()
-- FS.cleanup()
-- data = FS.read(file)
-- FS.write(file, data)
FS = {}
function FS.forEachFile(extension, callback)
local files = file.list()
for name, _ in pairs(files) do
if stringHasSuffix(name, extensi... |
Notify("START")
p=require("podman")
p({
NAME = "sys_dns",
URL = "coredns",
TAG = "1.8.3",
CPUS = "3",
MEM = "512m",
})
|
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local CTasklist = require "game.template.task"
local _M = CTasklist:extends()
_M.class = "role.main_tasklist"
_M.push_name = "main_tasklist"
_M.changed_name_in_role = "main_tasklist"
return _M |
BasicEnemyGun = Entity:extend()
function BasicEnemyGun:new(obj, offsetX, recoil)
self.offsetX = offsetX
self.obj = obj
self.x = self.obj.x + self.obj.w/2 + self.offsetX
self.y = self.obj.y + self.obj.h/2
self.tweener = Timer.new()
self.recoil = recoil
self.originalPos = { x = self.obj.x + self.obj.w/2 +... |
RegisterNetEvent("caue-racing:recieveCreateData")
AddEventHandler("caue-racing:recieveCreateData", function(pRaceName, pRaceType, pRaceThumbnail, pCheckpoints)
local src = source
local aliases = exports["caue-base"]:getChar(src, "aliases")
local distanceMap = 0.0
for i, v in ipairs(pCheckpoints) do
... |
#!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all co... |
local skynet = require "skynet"
-- openmygateserver
skynet.start(function()
skynet.error("Server start")
local gateserver = skynet.newservice("mygateserver") --启动的网关服务
skynet.call(gateserver, "lua", "open", { --需要给网关服务发送open消息,来启动监听
port = 8083, --监听的端口
maxclient = 2, -... |
-------------------------------------------------------------------------------------------
--
-- raylib [core] example - Color selection by mouse (collision detection)
--
-- This example has been created using raylib 1.6 (www.raylib.com)
-- raylib is licensed under an unmodified zlib/libpng license (View raylib.h f... |
-- draw text
set_callback(function(draw_ctx)
-- get a random color
local color = math.random(0, 0xffffffff)
-- zoom the font size based on frame
local size = (get_frame() % 199)+1
local text = 'Awesome!'
-- calculate size of text
local w, h = draw_text_size(size, text)
-- draw to the cen... |
--[[
module:ProgramNode
author:DylanYang
time:2021-02-12 21:44:28
]]
local CommandListNode = require("patterns.behavioral.interpreter.CommandListNode")
local super = require("patterns.behavioral.interpreter.Node")
local _M = Class("ProgramNode", super)
local public = _M.public
_M.cmdListNode = nil
functi... |
--- === cp.ui.Column ===
---
--- Represents an `AXColumn` `axuielement`.
local axutils = require "cp.ui.axutils"
local Element = require "cp.ui.Element"
local Column = Element:subclass("cp.ui.Column")
--- cp.ui.Column.matches(element) -> boolean
--- Function
--- Checks if the `axuiel... |
--- Parser for DAT syntax. Inherited from @{l2df.class.parser|l2df.class.BaseParser} class.
-- @classmod l2df.class.parser.dat
-- @author Abelidze
-- @copyright Atom-TM 2019
-- @deprecated
local core = l2df or require(((...):match('(.-)class.+$') or '') .. 'core')
assert(type(core) == 'table' and core.version >= 1.0, ... |
local Constants = require(script.Parent.Parent.Parent.Constants)
local Promise = require(script.Parent.Parent.Parent.Parent.Promise)
local throttle = require(script.Parent.throttle)
local cooldowns = {}
local writeQueues = {}
local function throttleCooldown(methodName, dataStore, key, ...)
if cooldowns[dataStore] ==... |
forest_mite = Creature:new {
objectName = "@mob/creature_names:forest_mite",
socialGroup = "mite",
faction = "",
level = 14,
chanceHit = 0.3,
damageMin = 160,
damageMax = 170,
baseXp = 714,
baseHAM = 2000,
baseHAMmax = 2400,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_insect",
meatAmount ... |
local ADDON, Addon = ...
local Util = Addon.Util
local function eventHandlerSystem(self, event, msg)
local ROLL_REGEX = RANDOM_ROLL_RESULT
ROLL_REGEX = gsub(ROLL_REGEX, "%(", "%%(")
ROLL_REGEX = gsub(ROLL_REGEX, "%-", "%%-")
ROLL_REGEX = gsub(ROLL_REGEX, "%)", "%%)")
ROLL_REGEX = gsub(ROLL_REGEX, "%%1%$s", ... |
---@class CS.UnityEngine.JointDrive : CS.System.ValueType
---@field public positionSpring number
---@field public positionDamper number
---@field public maximumForce number
---@type CS.UnityEngine.JointDrive
CS.UnityEngine.JointDrive = { }
return CS.UnityEngine.JointDrive
|
local _ENV = mkmodule('plugins.fortplan')
require('dfhack.buildings')
function construct_building_from_params(building_type, x, y, z)
local pos = xyz2pos(x, y, z)
local bld, err =
dfhack.buildings.constructBuilding{type=building_type, pos=pos}
if err then error(err) end
return bld
end
ret... |
data:extend({
{
type = "gun",
name = "heli-flamethrower",
icon = "__base__/graphics/icons/flamethrower.png",
icon_size = 64,
flags = {"hidden"},
subgroup = "gun",
order = "a[basic-clips]-b[tank-machine-gun]-c[flamethrower-ammo]",
attack_parameters =
... |
--[[
This module is invoked as part of the building of the monolith.
It should be invoked as such:
<lua-program> file1 file2 ... fileN
It will write the processed lua code to standard output. The order
is preserved.
]]
local strings = require('strings')
local tables = require('tables')
local moduleTemplate... |
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- a start screen of vim or nvim
use 'mhinz/vim-startify'
-- animatial statusline
use 'windwp/windline.nvim'
-- treesitter
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
-- which-key
... |
--[[ Divided Maze ]]
ROT=require 'src.rot'
function love.load()
f =ROT.Display(80,24)
dm=ROT.Map.DividedMaze:new(f:getWidth(), f:getHeight())
dm:create(calbak)
end
function love.draw() f:draw() end
local update=false
function love.update()
if update then
update=false
dm:create(calbak)
... |
-- Utility Table functions
-- This Library is not for a bunch of for-loop wrapper functions.
-- Either write your own for-loops or learn python instead
-- @author Validark
local Resources = require(game:GetService("ReplicatedStorage"):WaitForChild("Resources"))
local Table = {}
function Table.Move(a1, f, e, t, a2)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.