content stringlengths 5 1.05M |
|---|
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
geo_spider_venom_rare = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/chemistry/spider_venom.iff",
craftingValues = {
{"power",25,100,0},
{"useCount",1,11,0},
},
customizationS... |
local skynet = require "skynet"
local harbor = require "skynet.harbor"
local function monitor_master()
harbor.linkmaster()
print("master is down")
skynet.exit()
end
skynet.start(function()
print("Log server start")
skynet.monitor "simplemonitor"
local log = skynet.newservice("globallog")
skynet.fork(monitor_ma... |
line = "hello"
prompt = "h"
print(vim.inspect(vim.fn.systemlist(string.format(
"echo '%s' | ~/tmp/fuzzy_test/target/debug/fuzzy_test '%s'",
line,
prompt
))))
|
class 'HControls'
function HControls:__init()
Events:Subscribe( "ModulesLoad", self, self.ModulesLoad )
Events:Subscribe( "EngHelp", self, self.EngHelp )
end
function HControls:EngHelp()
Events:Fire( "HelpRemoveItem",
{
name = "Управление"
} )
Events:Fire( "HelpAddItem",
{
name = "Contro... |
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildBaseComponentAdvancedVehicleFactory.lua#1 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (C) Petroglyph Games, Inc.
--
--
-- ***** ** * ... |
--[[Intention of this script is to inform user that battery of some door sensor could be empty and if RFXcom’s transceiver has crashed
Scripts runs every hour and checks has Domoticz received data from the door sensor(s) within current time
+ pre-defined time period. If not, notification email is sent.
Door sensor t... |
local lm = {}
lm.LM = require('onmt.lm.LM')
return lm
|
local Prop = {}
Prop.Name = "Mc Donalds"
Prop.Cat = "Stores"
Prop.Price = 2000
Prop.Doors = {
Vector(-1741.4699707031, -762.35198974609, -142.71899414063),
Vector(-1835.4699707031, -762.35198974609, -142.71899414063),
Vector(-1958.0300292969, -456.0119934082, -143),
}
GM.Property:Register( Prop ) |
local priest = {}
local spell = require "modules.spell"
local position = require "modules.position"
local function update_colBox(pPriest)
pPriest.colBox = pPriest.pos - pPriest.colBoxWidth/2
end
local function set_dir(pPriest)
local dir = PLAYER_POS - pPriest.pos
pPriest.facing = get_direction(dir,... |
-- Car profile
api_version = 4
Set = require('lib/set')
Sequence = require('lib/sequence')
Handlers = require("lib/way_handlers")
Relations = require("lib/relations")
find_access_tag = require("lib/access").find_access_tag
limit = require("lib/maxspeed").limit
Utils = require("lib/utils")
Measure = require("lib/measu... |
include "LinearMath"
include "BulletCollision"
include "BulletDynamics"
include "BulletSoftBody"
include "BulletSerialize/BulletFileLoader"
include "Demos/BasicDemo"
|
local selection = "1"
Script.serveEvent("Elements.OnSelection", "OnSelection")
--@setSelection(selection:string):
local function setSelection(s)
selection = s
Script.notifyEvent("OnSelection", selection)
end
Script.serveFunction("Elements.setSelection", setSelection)
--@getSelection():string
local function getSe... |
slot0 = class("BattleContributionResultLayer", import(".BattleActivityBossResultLayer"))
slot0.DURATION_WIN_FADE_IN = 0.5
slot0.DURATION_LOSE_FADE_IN = 1.5
slot0.DURATION_GRADE_LAST = 1.5
slot0.DURATION_MOVE = 0.7
slot0.DURATION_WIN_SCALE = 0.7
slot0.STATE_DEFEAT = "state_defeat"
slot0.STATE_CLEAR = "state_clear"
slot0... |
local map = require('utils').map
local wk = require('which-key')
local gitsigns = require('gitsigns')
local telescope = require('telescope.builtin')
map('n', '-', [[:lua require('lir.float').init()<cr>]], {noremap = true, silent = true})
-- close buffer
map('n', '<M-q>', [[:lua require('bufdelete').bufdelete(0, true)... |
require "lib/SECS"
require "lib/AnAL"
local speed = 125
local lassospeed = 10
local lassothrowspeed = 10
local ropelength = 300
local ropelengthSq = ropelength^2
local bulls
local walkAnim
local spinAnim
player = class:new()
local function getkey(k)
local lk = love.keyboard
if k == 'up' then
return lk.isDow... |
require('cutorch')
require('nn')
require('nnconv1d')
require('cunn')
require('libcunnconv1d')
return cunn
|
local loader = function(loader)
local socket = require("_cqueues.socket")
local cqueues = require("cqueues")
local errno = require("cqueues.errno")
local poll = cqueues.poll
local monotime = cqueues.monotime
local AF_INET = socket.AF_INET
local AF_INET6 = socket.AF_INET6
local AF_UNIX = socket.AF_UNIX
local SOCK_STR... |
local mType = Game.createMonsterType("Kroazur")
local monster = {}
monster.description = "Kroazur"
monster.experience = 2700
monster.outfit = {
lookType = 842,
lookHead = 19,
lookBody = 114,
lookLegs = 94,
lookFeet = 85,
lookAddons = 3,
lookMount = 0
}
monster.health = 3000
monster.maxHealth = 3000
monster.rac... |
local composer = require( "composer" )
------------------------------------------
--GLOBAL VARIABLE
------------------------------------------
centerX = display.contentCenterX -- привести к глобальной таблице G
centerY = display.contentCenterY
fullw = display.actualContentWidth
fullh = display.actualCon... |
function setup()
neat = love.graphics.newCanvas(window.screen.width, window.screen.height)
end
function update()
end
function draw()
local tmp = love.graphics.getCanvas()
love.graphics.setCanvas(neat)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(
window.screen.canvas,
window.screen.width / 2, ... |
--[[
Demonstrates a box that's attached via two different springs to the mouse.
On the X axis, the default values from RoactMotion are used.
On the Y axis, a much bouncier spring is used. It's a happy box.
The box contains its current position in text.
]]
local Players = game:GetService("Players")
local UserInpu... |
assert(arg and arg[0], "You ran this script incorrectly.")
--Get the location of our modules relative to here.
local baseDir = arg[0]:match("^(.*[\\/])")
baseDir = baseDir or "./"
assert(baseDir, arg[0] .. " No directory")
--Fixup the package path to be relative to this directory.
package.path = baseDir .. "m... |
object_draft_schematic_weapon_component_weapon_power_bit = object_draft_schematic_weapon_component_shared_weapon_power_bit:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_weapon_power_bit, "object/draft_schematic/weapon/component/weapon_power_bit.iff")
|
--[[
AcEZ - by gear4
Wrapper for Ace3
Example implementation
Copyright (c) 2017, Aaron Marais
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... |
local common = require "common"
--Part 2 was difficult.
--The necessary insight was that dances
--are associative if we keep parter moves and exchange moves
--in seperate structures.
--The associativity property allows us to calculate 1 billion
--dances in a fraction of a second.
local function parse_command(v)
loc... |
--- === plugins.finalcutpro.toolbox.vimeo ===
---
--- Vimeo Toolbox Panel.
local require = require
--local log = require "hs.logger".new "vimeo"
local dialog = require "hs.dialog"
local image = require "hs.image"
local config ... |
minetest.register_node("damocles_custom:transportation_animation", {
tiles = {
{
name = "hyperloop_door1IN.png",
animation = {
type = "vertical_frames",
aspect_w = 32,
aspect_h = 32,
length = 1.0,
},
}
},
light_source = 2,
sounds = default.node_sound_metal_defaults(),
groups = {cracky... |
-- TETA_BONITA MADE THE SCOPE EFFECT (WHEN YOU ENTER IN YOUR SCOPE AND WHEN YOU LEAVE IT)
include("shared.lua")
-- We need to get these so we can scale everything to the player's current resolution.
local iScreenWidth = surface.ScreenWidth()
local iScreenHeight = surface.ScreenHeight()
local SCOPEFADE_TIME = 0.4
fun... |
setting = {
usedKey = "b",
usedCommand = "hedit",
language = "english",
template = "default",
lockVehicleWhenEditing = true,
dragmeterEnabled = true,
}
|
-- Function to have roots found
function f (x) return x^3 - 3*x^2 + 2*x end
-- Find roots of f within x=[start, stop] or approximations thereof
function root (f, start, stop, step)
local roots, x, sign, foundExact, value = {}, start, f(start) > 0
while x <= stop do
value = f(x)
if value == 0 th... |
if SERVER then
AddCSLuaFile()
resource.AddFile("materials/vgui/ttt/icon_reflectdmg.vmt")
resource.AddFile("materials/vgui/ttt/perks/hud_reflectdmg.png")
end
ITEM.hud = Material("vgui/ttt/perks/hud_reflectdmg.png")
ITEM.EquipMenuData = {
type = "item_passive",
name = "ReflectDmg",
desc = "You can reflect damage ... |
return {
init_effect = "",
name = "",
time = 0,
color = "yellow",
picture = "",
desc = "英系buff",
stack = 1,
id = 40261,
icon = 40260,
last_effect = "",
effect_list = {
{
type = "BattleBuffAddAttrRatioCommander",
trigger = {
"onAttach"
},
arg_list = {
ability = "support",
convertRate... |
do class "BasicClassB" : extends "BasicClassA"
{
m_strString = "I'm class B!",
}
function Initialize( self )
end
function MyMethodFromB( self )
end
end |
-- Copyright 2014 Nikolay Konovalow
-- Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-- http://www.apache.org/licenses/LICENSE-2.0>
--$Version: 0.1 $
--$Author: major kolz $
instead_version "2.0.3";
require 'xact'
require 'format'
format.para = true; -- Отступы в начале абзаца;
format.dash = ... |
-- EE_SAVE: delete trailing spaces
local F = far.Flags
local function RemoveTrailingSpaces(Id, Event, Param)
if Event==F.EE_SAVE then
local info = editor.GetInfo()
if info then
for k=1,info.TotalLines do
local ln = editor.GetString(k,1)
local from = ln.StringText:find("%s+$")
i... |
local BulletProperties = Component.create("BulletProperties")
function BulletProperties:initialize(speed, radius)
self.speed = speed
self.radius = radius
end
|
return {
id = "closure_vs_table",
name = "Closure vs. Table Creation",
warmup = true,
repeats = 3e5,
cases = {
Table = "local t = {}",
Closure = "local function f() end",
}
}
|
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Dorian Nowakowski <burekssss3@gmail.com>
Discord: Rick#0157
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
BlockedWeapons = {
[38] = true,
}
function getElementSpeed(theElement, unit)
assert(isElement(theElement), "Bad arg... |
redis = (loadfile "redis.lua")()
io.write("Enter Tabchi ID : ")
local last = io.read()
io.write("\nEnter Full Sudo ID : ")
local sudo=io.read()
local text,ok = io.open("base.lua",'r'):read('*a'):gsub("TABCHI%-ID",last)
io.open("tabchi-"..last..".lua",'w'):write(text):close()
io.open("tabchi-"..last..".sh",'w'):write("w... |
local _, private = ...
-- Libs --
local Aurora = _G.Aurora
local Base = Aurora.Base
local Color = Aurora.Color
-- RealUI --
local RealUI = private.RealUI
local loc = RealUI.locale
local ToolTipColors = {
"|cFF269CFF", -- Header 1
"|cFFFF8000", -- Header 2
"|cFFFFFFFF", -- Plain Text
"|cFF909090... |
// Create new class
//include("classbase.lua")
local CLASS = {}
table.Merge(CLASS, CLASSBASE)
// Some settings for the class
CLASS.DisplayName = "Tankbuster"
CLASS.WalkSpeed = 150
CLASS.CrouchedWalkSpeed = 0.3
CLASS.RunSpeed = 220
CLASS.DuckSpeed = 0.3
CLASS.DrawTeamRing = false
// Called by spawn an... |
-- util.lua
-- Simple wrapper to make the config cleaner
function bind(mode, key, command, noremap)
vim.api.nvim_set_keymap(mode, key, "<Cmd>" .. command .. "<CR>", { noremap = noremap, silent = true })
end
|
fx_version 'cerulean'
games { 'rdr3', 'gta5' }
author 'nimaiso'
description 'no-npc'
version '1.0.0'
client_script "main.lua" |
-- Copyright 2020 Intel Corporation, Inc
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.rest_v1.app_rest", package.seeall)
local uci = require "luci.model.uci"
json = require "luci.jsonc"
io = require "io"
sys = require "luci.sys"
utils = require "luci.controller.rest_v1.utils"
func... |
local DataStoreService = game:GetService("DataStoreService")
local Teams = game:GetService("Teams")
local UserVocationDataStore = DataStoreService:GetDataStore("UserVocation")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local require = require(ReplicatedStorage:WaitForChild("Nevermore", 2))
local rq... |
modifier_more_movespeed = class({})
function modifier_more_movespeed:DeclareFunctions()
local funcs =
{
MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE,
}
return funcs
end
------------------------------------------------------------------------------------
function modifier_more_movespeed:GetModifierMoveSpeed_Absolute(... |
ultraschall={}
function ultraschall.GetAllTrackEnvelopes()
-- returns all TrackEnvelopes of the current project as a table, number of tracks, the first track that has an envelope, if the master track has an envelope(0) or not (-1)
-- the table works as follows:
-- TrackEnvelopeArray[Tracknumber][0] - number of envelop... |
local lipfs = require("luaipfs")
local ipfs = lipfs:new()
--Retrieve a file in data buffer
local file = io.open("dot.gif", "w+")
local data, err =
ipfs:cat("/ipfs/QmbZN6yqZF51dZVDP6NR9pksrwh3Tdh1wEwWZ75vRHd1m4/subdir/dotlink.gif")
if err then print(err) elseif file then file:write(data) end
file:close()
... |
-- StudioKnob.lua
require "Common"
TAU = math.pi * 2.0
function drawSpokes(dc, pt, innerRadius, outerRadius, minAngle, maxAngle, nbDivisions)
dc:pushStates()
dc:setStrokeColor(lightGrayColor)
for angle=minAngle, maxAngle, (maxAngle - minAngle) / nbDivisions do
local p1 = makePoint(pt.x + innerRa... |
data:extend({
{
type = 'technology',
name='dark-matter-scoop',
icon = '__dark-tech__/graphics/icons/dark-matter-scoop.png',
icon_size = 32,
effects = {{type = 'unlock-recipe', recipe='replication-lab'}},
prerequisites = {},
unit = research(50, 1, 0, 0, 15),
order='a-f-a',
},
... |
local M = {
bg = '#18191E', -- this gets set to the right value based on config
bg_light = '#18191E',
bg_dark = '#000000',
fg = '#FFFADE',
fg_alt = '#FFEE79',
black = '#21252D',
blacker_than_black = '#1F1F1F',
grey = '#8E8D8D',
red = '#FC2929',
red2 = '#FF5050',
green = '#44B273',
green2 = '#50C... |
local Data = require("core.Data")
Data.define_prototype("chara_chip")
Data.add(
"core.chara_chip",
{
_0 = {
integer_id = 0,
source = {
x = 0,
y = 0,
}
},
human_male = {
integer_id = 1,
source = {
x = 48,
... |
local cjson = require('cjson')
local dataset = require('dataset')
local file = require('pl.file')
local path = require('pl.path')
local tds = require('tds')
local threads = require('threads')
local torch = require('torch')
local utils = require('utils')
require('tds')
local cmd = torch.CmdLine()
cmd:text()
cmd:text('G... |
--[[
Lexical Tools - lua\weapons\gmod_tool\stools\cloaking.lua
Copyright 2010-2013 Lex Robinson
It's fading doors but you can't walk through it
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
... |
function UT.menus.main()
return {
custom = true,
title = "ultimate trainer " .. UT.version,
text = "By ChildOfSorrow",
button_list = {
{text = "documentation", callback_func = UT.documentation},
{text = "configuration", open_menu = UT.menus.configuration()},
... |
-----------------------------------
-- Area: Mhaura
-- NPC: Numi Adaligo
-- Involved In Quest: RYCHARDE_THE_CHEF
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(5... |
-- // FileName: PrivateMessaging.lua
-- // Written by: Xsitsu
-- // Description: Module that handles all private messaging.
local Chat = game:GetService("Chat")
local RunService = game:GetService("RunService")
local ReplicatedModules = Chat:WaitForChild("ClientChatModules")
local ChatModules = Chat:WaitForChild("ChatM... |
ITEM.name = "AS Report: 'Calderon'"
ITEM.desc = "A bound file consisting of a few 8 by 11 sheets of computer paper. The text on the pages is dense with tight spacing and a small font size in order to condense information. Exhibits are added in an appendix at the end. Stamped on the front page of the file is ‘AS Repo... |
--- The team library gives you access to the team system built into the Source engine, and allows you to create custom teams and get information about them.
_G.team = {}
--- Increases the score of the given team
--- @param index number @Index of the team
--- @param increment number @Amount to increase the team's sc... |
return {'amvb'} |
object_tangible_dungeon_mustafar_obiwan_finale_obiwan_finale_buff_crystal = object_tangible_dungeon_mustafar_obiwan_finale_shared_obiwan_finale_buff_crystal:new {
}
ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_obiwan_finale_obiwan_finale_buff_crystal, "object/tangible/dungeon/mustafar/obiwan_finale/obiw... |
require "src.utils"
local CONF = require "conf"
-- BULLET --
local Bullet = {}
local Bullet_mt = { __index = Bullet }
Bullet.ENTITY_TYPE = "Bullet"
function Bullet.new(x, y, vx, vy)
local o = {
x = x;
y = y;
vx = vx;
vy = vy;
life = 1.5;
alive = true;
}
setmetatable(o, Bullet_mt)
return o
end
func... |
ITEM.name = "Chunk of Rotten Meat"
ITEM.description = "A small clump of organic mass."
ITEM.longdesc = "You can't tell the origin of this meat, but there's mold on parts of it. This can't be good for you, but it might do in a pinch."
ITEM.model = "models/lostsignalproject/items/consumable/raw_bloodsucker.mdl"
ITEM.pri... |
fx_version 'adamant'
game 'rdr3'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
ui_page "NUI/SaltyWebSocket.html"
client_scripts {
"SaltyClient/bin/Debug/SaltyClient.net.dll"
}
server_scripts {
"SaltyServer/bin/Deb... |
---------------------------------------------------------------------------
-- Snort++ configuration
---------------------------------------------------------------------------
-- there are over 200 modules available to tune your policy.
-- many can be used with defaults w/o any explicit configuration.
-- use this con... |
export['cel.scroll'] {
[[Factory for the scroll metacel.]];
metaceldef['scroll'] {
source = 'cel';
factory = 'cel.scroll';
[[A scroll is a container cel with vertical and horizontal scrollbars]];
[[A scroll is composed of a vertical scrollbar, horizontal scrollbar, and a portal.
The subject ... |
--
-- Artificial Snow Control
-- Modul Utils
--
-- @autor Tom Wießner
-- @date 10/01/21
--
-- using only with premission by Alpin 3D Design
-- (c) Tom Wießner 2021
--
A3D = A3D or {};
function A3D.saveNav(get, str, getTableNil)
local list = {};
for word in string.gmatch(str, '([^.]+)') do
table.in... |
-- Source: https://www.domoticz.com/forum/viewtopic.php?t=23460#p180690
return {
on = { timer = { "at 00:01" },
devices = { "Pluviometre" } }, -- Your switch device triggered by ESP bucket full
logging = { level = domoticz.LO... |
describe('lift.config', function()
local config = require 'lift.config'
local diagnostics = require 'lift.diagnostics'
before_each(function()
config.reset()
config:new_parent('cli')
diagnostics.Verifier.set_new()
end)
it('is itself the global scope', function()
assert.is_string(config.LIFT_... |
-- Manage tasks with ease. Supports deadlines and timestamps
-- Highlights deadlines based on the time left till they are
-- they are over, for easier visual understanding.
-- To activate it in a file:
-- lua require('tasks')
-- Setup an autocommand:
-- autocmd BufEnter *.tasks lua require('tasks')
-- Variables -{{{
l... |
local t = Def.ActorFrame{};
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
t[#t+1] = Def.ActorFrame{
LoadActor("home_warn")..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-84);
OffCommand=cmd(linear,0.4;diffusealpha,0);
};
LoadActor("home_warn")..{
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-84;diffusealpha,0;zoom... |
local servers = require('nvim-lsp-installer.servers')
local server_available, requested_server = servers.get_server("jedi_language_server")
if server_available then
requested_server:on_ready(function ()
local opts = {}
requested_server:setup(opts)
end)
if not requested_server:is_installed() ... |
--[[ Pure Lua equivalent of lua-try (https://github.com/moteus/lua-try),
which again is based on luasockets newtry, protect and try functions.
Passes unittest of lua-try.
fix_return_values() trick taken from http://lua-users.org/wiki/FinalizedExceptions
License: MIT. Egil Hjelmeland.
]]
local error,get... |
#!/usr/bin/lua
package.path = "../?.lua;"..package.path
local fx = require( "fx" )
local F = require( "fx.functors" )
local Just, Nothing = require( "fx.functors.maybe" )()
local Left, Right = require( "fx.functors.either" )()
local Const = require( "fx.functors.const" )()
local Identity = require( "fx.functors.ident... |
local trigger = {}
trigger.name = "MaxHelpingHand/FlagToggleCameraTargetTrigger"
trigger.nodeLimits = {1, 1}
trigger.placements = {
name = "trigger",
data = {
lerpStrength = 0.0,
positionMode = "NoEffect",
xOnly = false,
yOnly = false,
deleteFlag = "",
flag = "fl... |
require('plenary.reload').reload_module('plenary')
-- TODO: We could add some stuff to delete this at the beginning to start fresh.
-- Probably would be useful to have an uninstall anyways
local neorocks = require('plenary.neorocks')
neorocks.install('luasocket')
-- local job = neorocks._get_setup_job(false)
-- neor... |
return {
config = {
option = {
smithing = {
display_hammer_level = {
name = "ハンマーLv表示",
doc = [[
所持しているハンマーのLvと経験値を表示します。
]],
variants = {
no = "しない",
level = "Lvを表示",
level_and_sps = "LvとSPS... |
require "blackjack"
site = Site
-- site.processors.md = markdownProcessor
site.processors.scss = {
process = cmdProcessor("scss"),
extension = "css"
}
site.processors.webm = {
process = cmdProcessor("cat"),
extension = "webm"
}
site:build()
|
--[A sshole
if game.Workspace.FilteringEnabled == true then
print("Filtering Disabled")
else
print("Filtering Enabled")
end
|
local NeP, g = NeP, NeP._G
NeP.Listener:Add(n_name..'_misc', 'LFG_PROPOSAL_SHOW', function()
if NeP.Interface:Fetch(n_name..'_Settings', 'LFG_acp', false) then
g.C_Timer.After(math.random(3, 8), g.AcceptProposal)
end
end)
local function ScanNewTalent(row)
local active_talent, new_talent;
-- scans
for co... |
require 'torch'
local signal = signal or {}
signal.C = require 'signal.ffi' -- keep the loaded C object around, so that it doesn't get garbage collected
local convolution = require 'signal.convolution'
for k,v in pairs(convolution) do
signal[k] = v
end
local fft = require 'signal.fft'
-- fft functions go into th... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: widgets.lua
-- brief: the widget manager, a call-in router
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the term... |
--[[---------------------------------------------------------
Panel: windowsJobs
-----------------------------------------------------------]]
local PANEL = {}
PANEL.localItem = {}
--[[---------------------------------------------------------
Function: Init
---------------------------------------------------... |
local g_Wnd, g_CatsList, g_StatsList
local g_OptsEdit, g_FilterEdit
local g_CloseBtn, g_CopyRightLabel
local g_Timer, g_UpdateTimer
local g_Target, g_TargetsList
local REFRESH_INTERVAL = 3000
addEvent("dbg_onPerfStats", true)
addEvent("dbg_onPerfStatsReq", true)
local function updateStats()
local cat = ... |
ITEM.name = "Box of Crude Rifle Rounds"
ITEM.model = "models/kek1ch/ammo_pkm.mdl"
ITEM.ammo = "ar2" -- type of the ammo
ITEM.ammoAmount = 60 -- amount of the ammo
ITEM.description = "A Cartridge that contains %s of Crude Rifle Rounds"
ITEM.chance = 31
ITEM.rare = true |
local event = require("event")
local computer = require("computer")
----------------------------------------------------------------------------------------------------------------
local buttons = {}
buttons.pressTime = 0.2
buttons.objects = {}
function buttons.setPressTime(time)
buttons.pressTime = time
end
funct... |
-- Copyright (c) 2021, The Pallene Developers
-- Pallene is licensed under the MIT license.
-- Please refer to the LICENSE and AUTHORS files for details
-- SPDX-License-Identifier: MIT
local typedecl = require "pallene.typedecl"
describe("Typedecl", function()
it("forbids repeated tags", function()
assert... |
local _, ns = ...
local oUF = ns.oUF
local function Update(frame, event, unit)
if(frame.unit ~= unit) then return end
ToshUnitFrames:Debug({frame=frame, event=event, unit=unit}, "TUF_Regions:Update")
if not frame.tuf_region then return end
local region = frame.tuf_region
if region.Update then reg... |
-- inlinec.lua
--
-- Cross platform Inline C/Cpp Library
-- modified by kioku / System K
--
-- Original by
-- (c) D.Manura, 2008.
-- Licensed under the same terms as Lua itself (MIT license).
-- http://lua-users.org/wiki/InlineCee
--
local luaIncludePathWin = [[C:\Lua\include]]
local luaLibraryPathWin ... |
-- Lithuanian mode:
-- Introduce an explicit dot above when lowercasing capital I's and J's
-- whenever there are more accents above.
-- (of the accents used in Lithuanian: grave, acute, tilde above, and ogonek)
local m = require 'lpeg'
return require 'parse.char.utf8.map.to_lower' + {
'\u{cc}' .. '\u{69}\u{307}\u{3... |
if not GetNetChannel and not CNetChan then
pcall(require, 'sourcenetinfo')
if not GetNetChannel and not CNetChan then
pcall(require, 'sourcenet3')
if not GetNetChannel and not CNetChan then
MsgC(Color(255, 127, 127), debug.getinfo(1).source .. " could not find sourcenet(info) binary module!\n")
return
end... |
local conf = {}
conf.token = "fantasy/lothar"
return conf
|
Config.PoliceEvidence = vector3(474.2242, -990.7516, 26.2638) -- /evidence # while near this point
Config.Stashes = {
--{ coords = vector3(474.2242, -990.7516, 26.2638), slots = 70, name = 'Police Evidence', job = 'police' }, --using command instead
{ coords = vector3(462.7252, -999.5868, 30.67834), slots = 70, name... |
-- local map = vim.api.nvim_set_keymap
local map = function (key)
local opts = { noremap = true }
for k, v in pairs(key) do
if 'string' == type(k) then opts[k] = v end
end
vim.api.nvim_set_keymap(key[1], key[2], key[3], opts)
end
map{ '!', 'kj', '<Esc>' }
map { 'n', '<C-n>', ':NvimTreeToggle<CR>' }
map {... |
Blessings = {}
Blessings.Credits = {
Developer = "Charles (Cjaker), DudZ",
Version = "2.0",
lastUpdate = "08/04/2020",
todo = {
"Insert & Select query in blessings_history",
"Add unfair fight reductio (convert the get killer is pvp fight with getDamageMap of dead player)",
"Gamestore buy blessing",
"Test a... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require "ISBaseObject"
---@class ISDPadWheels
ISDPadWheels = {}
local function isEquippedOrAttached(playerObj, item)
return player... |
local Whichkey = {
WhichKey = { fg = C.purple },
WhichKeySeperator = { fg = C.green },
WhichKeyGroup = { fg = C.cyan },
WhichKeyDesc = { fg = C.blue },
WhichKeyFloat = { bg = C.dark },
}
return Whichkey
|
execScript("common.lua")
-- pAltBarrage: spawns a series of cAltBarrage
function pAltBarrage(mTimes, mStep)
delay = getPerfectDelay(THICKNESS) * 5.6
for i = 0, mTimes do
cAltBarrage(i, mStep)
wait(delay)
end
wait(delay)
end
function pAltBarrage2(mTimes, mStep)
... |
AuctionatorScrollListLineShoppingListMixin = CreateFromMixins(AuctionatorScrollListLineMixin)
function AuctionatorScrollListLineShoppingListMixin:InitLine(currentList)
Auctionator.Debug.Message("AuctionatorScrollListLineShoppingListShoppingListMixin:InitLine()")
Auctionator.EventBus:RegisterSource(self, "Shopping... |
-- Copyright (C) by Kwanhur Huang
local modulename = "gdBase"
local _M = { _VERSION = '2.2.5.1', _NAME = modulename }
local ffi = require('ffi')
local libgd = require('resty.gd.libgd')
local tonumber = tonumber
local ffi_str = ffi.string
_M.gdVersion = ffi_str(libgd.gdVersionString())
_M.gdMaxColors = tonumber(li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.