content stringlengths 5 1.05M |
|---|
local M = {}
local api = vim.api
local qfs = require('bqf.qfwin.session')
function M.filter_list(qwinid, co_wrap)
if not co_wrap then
return
end
local qs = qfs.get(qwinid)
local qlist = qs:list()
local qinfo = qlist:get_qflist({size = 0, title = 0})
local size = qinfo.size
if size... |
for PlayerID, PlayerLuaData in pairs(game.players) do
if (global.AllPlayers[PlayerID] and global.AllPlayers[PlayerID].sliding and global.AllPlayers[PlayerID].sliding == true) then
global.AllPlayers[PlayerID].StartingSurface = game.get_player(PlayerID).surface
end
end |
----------------------------------- IO Monad -----------------------------------
-- | mkIO : (a... -> b, a...) -> IO b
mkIO, mkIOfn, isIO = (function()
local _ioMetatable = {}
local _mkIO
_mkIO = function(f, ...)
local args = {...}
local io = {
run = function() return f(unpack(args)) end,
pipe = function(... |
--
-- Lua dissector for HDLC encapsulated over TCP (used for SCADA systems over TCP/IP)
-- The payload is interpreted as a DLMS/COSEM message (requires dlms.lua dissector)
--
-- Version 1.0
-- Last update: 28th March 2018
--
-- Developed as a part of IRONSTONE research project
--
-- (c) Petr Matousek, FIT BU... |
local util = require("util")
local BaseGroup = require("basegroup")
local DefenderGroup = {}
setmetatable(DefenderGroup, {__index = BaseGroup})
function DefenderGroup:new(player)
local defenderGroup = BaseGroup:new(player)
defenderGroup.is_defending = false
setmetatable(defenderGroup, {__ind... |
require'nvim-tree'.setup()
-- Maps
local map = vim.api.nvim_set_keymap
local options = { noremap = true, silent = true }
map('n', '<Leader>t', ':NvimTreeToggle<CR>', options)
map('n', '<Leader>k', ':NvimTreeClose<CR>', options)
map('n', '<Leader>f', ':NvimTreeFocus<CR>', options)
-- Package options
local g = vim.g
... |
modifier_npc_dialog = class({})
function modifier_npc_dialog:IsHidden()
return true
end
function modifier_npc_dialog:IsPurgable()
return false
end
function modifier_npc_dialog:OnCreated( params )
if IsServer() then
end
end
function modifier_npc_dialog:DeclareFunctions()
local funcs =
{
MODIFIER_EVENT_ON_AT... |
do
local MarginBatchBeamSearcher = torch.class('MarginBatchBeamSearcher')
function MarginBatchBeamSearcher:__init(rnn_size, state_tbl_size, cuda)
self.rnn_size = rnn_size
self.state_tbl_size = state_tbl_size -- basically num layers
self.resval = cuda and torch.Tensor():cuda() or torch.Tensor()
sel... |
local anims = {chica, tree, cupcakes, fredbare, happy, mangle, chica, puppet, balloon, glitch, raw}
local SB = 0
local SB = 1
local SB = 2
local SB = 3
local SB = 4
local SB = 5
local SB = 6
local SB = 7
local SB = 8
local SB = 9
function onEvent(name, value1, value2)
if name == 'Shadow Bonnie Glitch' then --whyrror... |
AuctionatorEventBusMixin = {}
function AuctionatorEventBusMixin:Init()
self.registeredListeners = {}
self.sources = {}
self.queue = {}
end
function AuctionatorEventBusMixin:Register(listener, eventNames)
if listener.ReceiveEvent == nil then
error("Attempted to register an invalid listener! ReceiveEvent me... |
CONFIG_HEAD_BG = CONFIG_HEAD_BG or {}
CONFIG_HEAD_BG[tostring(GameKind_HLSSM) .. tostring(GAME_STATE.ROOM) .. tostring(SEX_TYPE.BOY)] = "gameres/module/hlssm/ui/common/Hlssm_Game_Head_Bg_Boy.png"
CONFIG_HEAD_BG[tostring(GameKind_HLSSM) .. tostring(GAME_STATE.ROOM) .. tostring(SEX_TYPE.GIRL)] = "gameres/module/hlssm/ui/... |
local error_messages = {
["default"] = {
status = 500,
message = "服务器繁忙, 请稍后再试."
},
["mobile.invalid"] = {
status = 400,
message = "请输入合法的手机号."
},
["mobile.not.registered"] = {
status = 401,
message = "此手机号还未注册."
},
["mobile.already.exists"] = ... |
tr = node_scalar("TopRadius",5)
br = node_scalar("BaseRadius",8)
h = node_scalar("Height",5)
output("cone",cone(br,tr,h))
|
-- Set everything up.
-- Set up plugins first since subsequent code might require some setup from the
-- plugins.
require('plugins')
-- Options have to be loaded before maps since the leader key is set in options
-- and maps references it.
require('options')
require('maps')
require('autocommands')
require('lsp')
-- C... |
-- license:BSD-3-Clause
-- copyright-holders:Carl
local exports = {}
exports.name = "discord"
exports.version = "0.0.1"
exports.description = "Discord presence"
exports.license = "BSD-3-Clause"
exports.author = { name = "Carl" }
local discord = exports
function discord.startplugin()
local pipe = emu.file("rw")
loca... |
--okay so i did all of this without commenting at first and then i commented it all at once :P
local sans = {
canmove = 0,
speed = 120,
def_speed = 120,
width = 46,
height = 60
} --i'm sans. sans the table
sans.x = 100
sans.y = 100
sans.sheet = love.graphics.newImage("res/img/sans.png") --sans' s... |
--[[
Copyright 2016 Adobe Systems Incorporated. All rights reserved.
This file is licensed to you 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
Unl... |
local M = {}
function M.autocmd(event, triggers, operations)
local cmd = string.format("autocmd %s %s %s", event, triggers, operations)
vim.cmd(cmd)
end
M.autocmd("BufEnter", "*", "if &buftype == 'terminal' | :startinsert | endif")
M.autocmd("BufReadPost", "*", [[if line("'\"") > 0 && line ("'\"") <= line(... |
include 'premake'
make_solution 'pugilua'
platforms { "native","x32", "x64" }
lua = assert(dofile 'premake/recipes/lua.lua')
OS = os.get()
make_shared_lib('pugilua', {
"./pugilua/*.h",
"./pugilua/*.cpp",
"./deps/pugixml/src/*.hpp",
"./deps/pugixml/src/*.cpp"
})
includedirs {
'./deps/LuaBridge-1.0.2... |
local Tunnel = module("_core","libs/Tunnel")
local Proxy = module("_core","libs/Proxy")
API = Proxy.getInterface("API")
cAPI = Tunnel.getInterface("cAPI")
RegisterServerEvent('CKF_identity:charList')
AddEventHandler('CKF_identity:charList', function(source)
local _source = source
if _source == nil then
... |
local util = require('utils')
local on_attach = function(client, bufnr)
local opts = { silent=true }
util.bufmap(bufnr, "n", "<Leader>lD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts)
util.bufmap(bufnr, "n", "<Leader>ld", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
util.bufmap(bufnr, "n", "K", "<cmd>lua v... |
-- The functions hook directly into the native lua math object.
-- Rounds a given number to a designated decimal point.
function math.round(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end
-- Randomly returns -1 or 1.
local numTable = {-1, 1}
function math.randNonNull()
return nu... |
-- See Copyright Notice in the file LICENSE
-- This file should contain only test sets that behave identically
-- when being run with pcre or posix regex libraries.
local luatest = require "luatest"
local N = luatest.NT
local L = function(s) return (string.gsub(s, ".", "%0\0")) end
local function norm(a) return a==... |
object_mobile_som_sher_kar = object_mobile_som_shared_sher_kar:new {
}
ObjectTemplates:addTemplate(object_mobile_som_sher_kar, "object/mobile/som/sher_kar.iff")
|
-- Copyright 2014 Roger D <rogerdammit@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.mjpg-streamer", package.seeall)
function index()
require("luci.i18n")
if not nixio.fs.access("/etc/config/mjpg-streamer") then
return
end
local page = entry({"admin", "services", "m... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'matrix'
shared.ffi.cdef[[
typedef... |
-- Setting up some parameters to load the GLFW and macros
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Setting up some default configurations for the workspace
workspace "SEE"
architecture "x86_64"
startproject "Game"
configurations {
"Debug",
"Development",
... |
local BaseLexer = {}
BaseLexer.__index = {}
function BaseLexer.new(source)
return BaseLexer.constructor(setmetatable({}, BaseLexer), source)
end
function BaseLexer.constructor(self, source)
self.line = 1
self.line_begins = 0
self.position = 1
self.source = source
return self
end
function BaseLexer.__index:c... |
Script.Load("lua/HadesDevice/HadesDevice.lua") |
--[[
listcommands.lua
creates a new document and lists commands available to current context
version: 20200627_151604
originally by SwissalpS
The list will be different if, for example log view is active opposed
to a document.
If sort plugin is installed, the list will also be sorted.
--]]
... |
dofile("common.inc");
dofile("paint_common.inc");
local paintData = {
{
name = "Cabbage Juice",
ppName = "Cabbage",
color = {128, 64, 144},
enabled = true,
reactions = {
--[reaction index] (position in paintData) = reaction target (0 = white, 1 = red, 2 = green, 3 = blue)
--so ... |
return {
name = 'Seine Crossing',
checkpoints = {
LinearTransform(Vec3(-0.999991, -0.004277, 0.000034), Vec3(-0.004274, 0.998957, -0.045455), Vec3(0.000161, -0.045455, -0.998966), Vec3(41.715057, 12.737747, 216.617126)),
LinearTransform(Vec3(-0.717489, 0.000000, 0.696569), Vec3(0.000000, 1.00000... |
-- load delver backup file and turn it into tables
local delver = {}
function delver:LoadBackup()
-- skip without any required files
if not io.open("./cache/cards.sqlite") or not io.open("./cache/delver.sqlite") then
return nil
end
-- load and initialize delver files
local sqlite3 = require('lsqlite3')
... |
local MultiMarginCriterion, parent = torch.class('nn.MultiMarginCriterion', 'nn.Criterion')
function MultiMarginCriterion:__init()
parent.__init(self)
self.sizeAverage = true
end
function MultiMarginCriterion:updateOutput(input, target)
return input.nn.MultiMarginCriterion_updateOutput(self, input, target)
e... |
-- All in seconds
FOGGER_STARTUP = 30
FOGGER_PERIOD = 30*60
FOGGER_ON = 1*60
PUMP_STARTUP = 60
PUMP_PERIOD = 24*3600
PUMP_ON = 5*60
FAN_STARTUP = 15
FAN_PERIOD = 1*3600
FAN_ON = 3
TICK = 2
local function supertimer(startup, period, ontime, off_cb, on_cb)
local wait_tmr = tmr.create()
local seconds = startup... |
local ucursor = require 'luci.model.uci'.cursor()
local json = require 'luci.jsonc'
local server_section = arg[1]
local proto = arg[2]
local local_port = arg[3]
local server = ucursor:get_all('vssr', server_section)
local hysteria = {
server = server.server .. ":" .. tonumber(server.server_port),
obfs = server... |
local bgNPC = bgNPC
local EFL_NO_THINK_FUNCTION = EFL_NO_THINK_FUNCTION
local IsValid = IsValid
local CurTime = CurTime
local player_GetAll = player.GetAll
--
local bgn_enable = GetConVar('bgn_enable'):GetBool()
local bgn_disable_logic_radius = GetConVar('bgn_disable_logic_radius'):GetFloat() ^ 2
cvars.AddChangeCallba... |
local ffi = require "ffi";
ffi.cdef [[
void Sleep(int ms);
char *strstr(const char *str1, const char *str2);
]];
function ffi.readMemoryDWORD(addr)
if addr == 0 then
return nil;
end
return ffi.cast("uint32_t*", addr)[0]
end
function ffi.readMemoryInt32(addr)
if addr == 0 then
return... |
return {
metadata = {
{scaling_used = {"deLeva1996_segmentedTrunk"},
subject_age = {30.0},
subject_height = {1.70},
subject_weight = {80.00},
subject_gender = {"male"},
subject_pelvisWidth = {0.2400},
subject_hipCenterWidth = {0.1700},
subject_shoulderCenterWidth = {0.4000},
subject_heelAnkleXOffset =... |
return {
Dumper=require "DYaml.dumper",
Loader=require "DYaml.loader",
}
|
getglobal game
getfield -1 ReplicatedStorage
getfield -1 REvents
getfield -1 Internal
getfield -1 jxbf
getfield -1 InvokeServer
pushvalue -2
pcall 1 1 0 |
local function isempty(s)
return s == nil or s == '' or s == false
end
local function numberOrZero(num)
if (isempty(num)) then
return 0
else
return tonumber(num)
end
end
-- The redis id of the `to` account, of the form `accounts:{account_id}`, is where IOUs will be subtracted from
loca... |
local DF = _G ["DetailsFramework"]
if (not DF or not DetailsFrameworkCanLoad) then
return
end
local _
--> lua locals
local _rawset = rawset --> lua local
local _rawget = rawget --> lua local
local _setmetatable = setmetatable --> lua local
local _unpack = unpack --> lua local
local _type = type --> lua local
local ... |
chatCommands.trade = {
permissions = {'admin'},
event = function(player, args)
local player1 = string_nick(args[1]) or player
local player2 = string_nick(args[2])
if not player2 then return end
tradeSystem.invite(player1, player2)
end
} |
workspace "Stupefy"
architecture "x64"
startproject "Sandbox"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
os.mkdir("Stupefy/../Logs")
IncludeDir = {}
IncludeDir["G... |
local gameFile = brixy.ExtractedGame
local packages = gameFile.packages
local pmgr = brixy.studio.CoreGui.pmgr
local pmgr_add = pmgr:WaitForChild("Add Package")
function addPackage(packageId, canPurchase)
local URL = brixy:GetUrlFromPkgId(packageId)
local Request = brixy:PostAsync(URL)
local Decoded = br... |
describe("Test feature/scenario registration #ingame", function()
lazy_setup(function()
require("ingame.core")
require("ingame.functions")
require("ingame.logging")
require("faketorio.lib")
stub(faketorio.log, "print")
_G.defines = {
mouse_button_type = {... |
LinkLuaModifier("modifier_intrinsic_multiplexer", "modifiers/modifier_intrinsic_multiplexer.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_aghanims_talents", "items/aghanims.lua", LUA_MODIFIER_MOTION_NONE)
item_aghanims_scepter_2 = class(ItemBaseClass)
function item_aghanims_scepter_2:GetIntrinsicModi... |
local Wasabi = LibStub and LibStub('Wasabi', true)
if(not Wasabi) then
return
end
local textMethods = {}
function textMethods:SetText(str)
self.Text._content = str
self.Text:SetText(str)
end
function textMethods:SetFormattedText(...)
local str = string.format(...)
self.Text._content = str
self.Text:SetText(str)
... |
-- It uses data from central bank of Russia
--- and external service to get json from xml
-- Privacy and security is unknown
local rub = {
url = 'https://api.factmaven.com/xml-to-json/?xml='
.. 'https://www.cbr.ru/scripts/XML_daily.asp',
tools = require 'etc.api.tools',
}
function rub:course(wants)
local r... |
-- This is the lua module file for GPAW
local git_commit = '05aef767'
local version = 'git (commit ' .. git_commit .. ')'
local base = '/appl/nano/gpaw/git-' .. git_commit
local py_base = '/appl/nano/gpaw/python/2.7.13'
local bundle = 'git-341e9793'
help([[
GPAW ]] .. version .. [[
]])
prereq('gcc/4.9.3', 'm... |
--require 'SyHybrid'
SpiderLinks = {}
function SpiderLinks:showsessionlinks(sessionname)
local s = SC4WSession:new()
s:load(sessionname)
if s:getvalue('target_type') == 'Host(s)' then
SpiderLinks:showhostlinks(sessionname,s:getvalue('targets'),s:getvalue('ports'))
end
s:release()
end
function SpiderLinks:getl... |
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(577, '[XB] Demon Hunter - Havoc', inCombat, outCombat)
|
--[[ ============================================================================================================
Author: Rook, with help from Noya
Date: January 26, 2015
Called when the melee unit affected by the lifesteal aura lands an attack on a target. Applies a brief lifesteal
modifier if not attacking a str... |
require "object.character"
require "object.camera"
function create.interface(world,x,y,gid)
local int = {}
int.name="interface"
local x,y = toRender(1/2,1/2)
local dx = 2*x
local dy=2*y
int.draw=function()
if character[1] then
local compt=0
while compt<character[1].life do
tileset:add(100,gid.animati... |
local _M = {}
_M.created = {
type = "object",
properties = {
name = {
type = "string",
minLength = 3,
maxLength = 20,
},
enable_cors = {
type = "number",
enum = { 0, 1 }
},
description = {
type = 'st... |
return Def.Actor{
OffCommand=function(self)
self:sleep(0.5)
end
} |
local calc_util = require("scripts.calc.util")
return function(rates, entity, emissions_per_second)
local entity_prototype = entity.prototype
local fluid_prototype = entity_prototype.fluid
calc_util.add_rate(
rates.materials,
"output",
"fluid",
fluid_prototype.name,
fluid_prototype.localised... |
ns_tamer = ScreenPlay:new {
numberOfActs = 1,
planet = "mandalore",
}
registerScreenPlay("ns_tamer", true)
-----------------------------
--Start NsTamer ScreenPlay
-----------------------------
function ns_tamer:start()
if (isZoneEnabled(self.planet)) then
self:spawnMobiles()
self:spawnSceneObjects()
print("... |
require "fov"
PreciseShadowcasting = Class:newClass("PreciseShadowcasting",FOV)
function PreciseShadowcasting:new(lightPassesCallback, options)
return FOV.new(self,lightPassesCallback, options)
end
function PreciseShadowcasting:compute(x,y,R,callback)
callback(x,y,0,1)
if not self._lightPasses(x,y) then return ... |
--https://developer.valvesoftware.com/wiki/Player_speedmod
local DbgPrint = GetLogging("Trigger")
ENT.Base = "base_point"
ENT.Type = "point"
function ENT:Initialize()
DbgPrint("player_speedmod:Initialize")
end
function ENT:AcceptInput(inputName, activator, called, data)
DbgPrint("player_speedmod:AcceptInput... |
data:extend({
{
type = "item",
name = "biotech-fuel-cell",
icon = "__BioTech__/graphics/icons/fuel-cell-machine.png",
flags = { "goes-to-quickbar" },
subgroup = "biotech-equipment",
order = "e[other]",
place_result = "biotech-fuel-cell",
stack_size = 10
},
})
|
break_jaw = {
cast = function(player)
local aethers = 150000
-- 150s
local duration = 60000
if player.gmLevel > 0 then
aethers = 0
end
local magicCost = 600
if (not player:canCast(1, 1, 0)) then
return
end
player:setAether("break_jaw", aethers)
player:sendAction(1, 30)
player:sendStatu... |
return {
armexo = {
acceleration = 0.1,
activatewhenbuilt = true,
brakerate = 0.715,
buildcostenergy = 1500703,
buildcostmetal = 129144,
builder = false,
buildpic = "armexo.dds",
buildtime = 1250000,
canattack = true,
canguard = true,
canmove = true,
canpatrol = true,
canstop = ... |
function GrowModel( event )
local caster = event.caster
local ability = event.ability
Timers:CreateTimer(function()
local model = caster:FirstMoveChild()
while model ~= nil do
if model:GetClassname() == "dota_item_wearable" then
if not string.match(model:GetModelName(), "tree") then
... |
test = function()
local f = {}
local g = {}
local h = {}
local k = {}
getAttr("PASS", "CURRENT", "GridLevels", 0, h);
getAttr("PASS", "CURRENT", "GridCurrentLevel",0,f)
if f[1] == h[1] then
f[1] = 0
setAttr("PASS", "CURRENT", "GridCurrentLevel",0,f)
return false
else
f[1] = f[1] + 1
setAttr("PASS"... |
-- Not sure why this isn't working:
-- local source = { reg = vim.regex([[^\v%(lua/)?\zs.*\ze%(/init)?\.lua$]]) }
local source = { re = [[\v%(^|/)%(lua/)\zs.*\ze%(/init)?\.lua$]] }
-- For use with SourceCmd autocmd event
function source.fn(filename)
local res = dofile(filename)
local module = vim.fn.matchstr(file... |
-- A sample maze with a few randomly placed walls. Ship starts in bottom left
-- corner and needs to get to top right corner without hitting any walls. Due
-- to the randomness and lack of constraints on wall placement, it's possible
-- some mazes will not be solvable.
--
-- Snail is the only sample ship that can gener... |
function Behavior:Awake()
local r = nil
print( "~~~~~ Asset ~~~~~" )
r = Asset.Get( "whatever" )
if r ~= nil then
print( "Asset.Get 1", r )
end
r = Asset.Get( "Scene1", "sCeNe" )
if r ~= CS.FindAsset( "Scene1" ) then
print( "Asset.Get 2", r )
end
local d... |
minetest.after(2, function()
local world_path = minetest.get_worldpath()
local file, err = io.open(world_path .. "advtrains_tcbs.json", "w")
local data = advtrains.interlocking.db.save()
local tmp = {}
for _, entry in pairs(data.tcbs) do
local tcb = entry[1]
-- print(dump(tcb))
if tcb.... |
local http = require "http"
local shortport = require "shortport"
local slaxml = require "slaxml"
local stdnse = require "stdnse"
local string = require "string"
description = [[Requests information from a Subversion repository.
]]
---
-- @usage nmap --script svn-info <target>
--
-- @args http-svn-info.url This is a ... |
local api = vim.api
local M = {
signs = {
ERROR = "",
WARN = "",
INFO = "",
HINT = "",
},
severity = {
"ERROR",
"WARN",
"INFO",
"HINT",
},
buffer_severity = {},
}
function M.setup(signs)
signs = signs or {}
M.signs = vim.tbl_deep_extend("keep", M.signs, signs)
end
function M.update()
loca... |
-- dialog.lua
--
-- Version 0.2
--
-- Copyright (C) 2015 David I. Gross. All Rights Reserved.
--
-- This software is is protected by the author's copyright, and may not be used, copied,
-- modified, merged, published, distributed, sublicensed, and/or sold, without
-- written permission of the author.
--
-- The above co... |
local bufferline = require("bufferline")
local colors = require("core.colors").get()
bufferline.setup({
options = {
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
buffer_close_icon = "",
modified_icon = "",
close_icon = "",
show_close_icon = true,
left_trunc_marker = "",... |
--[[ All mode settings
main.register_mode("modename", {
full_name = "Mode Name", <required>
min_players = 1, <required>
drops = main.default_drops, <required>
starter_items = main.default_starter_items, <required>
drop_interval = main.default_drop_interval, <required>
pvp = <bool>, <default is false>
on_start =... |
-- Copyright (c) 2017-present, Facebook, Inc.
-- All rights reserved.
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
-- handles repeated ... |
local function lol(gfx)
local items = newItemList()
items:add(newEItem('spawn',13,9,gfx))
items:add(newEItem('goal',16,10,gfx))
items:add(newEItem('iceblock',19,11,gfx))
items:add(newEItem('iceblock',20,11,gfx))
items:add(newEItem('iceblock',21,11,gfx))
items:add(newEItem('iceblock',22,11,gfx))
items:add(newEItem('iceb... |
local path = (...):gsub("NeuralNetwork", "")
local Class = require(path .. "utils.class")
local checks = require(path .. "utils.checks")
local random = require(path .. "utils.random")
local Matrix = require(path .. "Matrix")
local json = require(path .. "deps.json.json")
local function sigmoid(x)
return 1 / (... |
-------------------------------------------------------------------------------
-- Adds a new sprite.
--
-- @param name (String) Name of the new sprite (e.g. "sprite1").
-- @param filename (String) Filename of the image to use for the sprite.
-- The filename is relative to th... |
--[[
################################################################################
#
# Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in th... |
return require('console').eval(...)
|
AddCSLuaFile()
local DbgPrint = GetLogging("MapScript")
local MAPSCRIPT = {}
MAPSCRIPT.PlayersLocked = false
MAPSCRIPT.DefaultLoadout =
{
Weapons =
{
"weapon_lambda_medkit",
"weapon_crowbar",
"weapon_pistol",
"weapon_smg1",
},
Ammo =
{
["Pistol"] = 18,
... |
-- load the base plugin object and create a subclass
local plugin = require("kong.plugins.base_plugin"):extend()
local Multipart = require "multipart"
local cjson = require "cjson.safe"
local utils = require "kong.tools.utils"
local jp = require "jsonpath"
local jsont = require "kong.plugins.aws-kinesis.jsontransform"
... |
--[[
Upbit Open API
## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com]
OpenAPI spec version: 1.0.0
Contact: ujhin942@gmail.com
Generated by: https://github.com/swagger-api/swagger-codeg... |
local _2afile_2a = "fnl/conjure/timer.fnl"
local _1_
do
local name_4_auto = "conjure.timer"
local module_5_auto
do
local x_6_auto = _G.package.loaded[name_4_auto]
if ("table" == type(x_6_auto)) then
module_5_auto = x_6_auto
else
module_5_auto = {}
end
end
module_5_auto["aniseed/mod... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Door Controller Bse"
ENT.Author = "Hysteria"
ENT.Category = "SBEP"
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.Purpose = "To open and close." |
-- ファイルをチャンク転送するスクリプト
-- このスクリプトと同じ場所のファイルをタイムシフト再生できる(容量確保録画には未対応): http://localhost:5510/video/chunk.lua?0=foo.ts
-- ディレクトリインデックス(http://localhost:5510/video/)に↓みたいなブックマークレットを適用すると便利
-- javascript:void((function(){var x=document.links;for(var i=0;i<x.length;i++){x[i].href=x[i].href.replace(/\/(?!chunk\.lua)([^\/]{... |
--[[]]
local fail = {}
local manage = {}
local string = {}
string[5] = " has a bad day"
string[7] = " is on a failing spree"
local message = nil
local function reset()
fail = {}
message = nil
end
local function fail_message(num, cn)
local manag = num
manag = tostring(manag)
local cn = tonumber(cn... |
local _, ADDONSELF = ...
local L = setmetatable({}, {
__index = function(table, key)
if key then
table[key] = tostring(key)
end
return tostring(key)
end,
})
ADDONSELF.L = L
--
-- Use https://www.curseforge.com/wow/addons/raidledger/localization to translate... |
SetAtmosphereCommand = Command:extends{}
SetAtmosphereCommand.className = "SetAtmosphereCommand"
function SetAtmosphereCommand:init(opts)
self.opts = opts
self._execute_unsynced = true
self.mergeCommand = "MergedCommand"
end
function SetAtmosphereCommand:execute()
if not self.old then
self.old... |
local ffi = require 'ffi'
local tds = {}
tds.C = ffi.load(package.searchpath('libtds', package.cpath))
return tds
|
---@class DebugLog : zombie.debug.DebugLog
---@field private m_enabledDebugTypes boolean[]
---@field private s_initialized boolean
---@field private s_stdout DebugLog.OutputStreamWrapper
---@field private s_stderr DebugLog.OutputStreamWrapper
---@field private m_originalOut PrintStream
---@field private m_originalErr P... |
local M = {}
M.url = 'lukas-reineke/cmp-under-comparator'
M.description = 'nvim-cmp comparator that respects underline'
M.requires = {
'nvim-cmp'
}
M.after = {
'nvim-cmp',
}
function M.config()
local cmp = require('cmp')
-- multiple setup calls will merge the config
cmp.setup {
comparators = {
c... |
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local List = requi... |
if not bit and not bit32 then
bit = require("bit")
end
bit = bit or bit32
local function chars2num(txt)
return (txt:byte(1) * 16777216) + (txt:byte(2) * 65536) + (txt:byte(3) * 256) + txt:byte(4)
end
local function limit(num)
return bit.band(num)
end
local z = 0 -- curb your linter errors
local _hex = {... |
module("device",package.seeeall)
-- Device Api
-- Bulk Device Operation
-- (not yet)
function bulkDeviceOperation(fa, iotName, id, auth)
local body = '{id:"'..id..'"}'
local b,c,h = fa.request{url="https://"..iotName..".azure-devices.net/devices?api-version=2016-11-14",
method = "POST",
heade... |
return {
summary = 'An object that stores pixel data for Textures.',
description = [[
An Image stores raw 2D pixel info for `Texture`s. It has a width, height, and format. The
Image can be initialized with the contents of an image file or it can be created with
uninitialized contents. The supported i... |
local MODULE = require(script:GetCustomProperty("ModuleManager"))
function COMBAT()
return MODULE:Get("standardcombo.Combat.Wrap")
end
local function META_AP()
return _G["Meta.Ability.Progression"]
end
local ROOT = script:GetCustomProperty("Root"):WaitForObject()
local EXPLOSION_VFX = script:GetCustomProperty("H... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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... |
Settings =
{
Name = "*FiboEma",
period = 30,
bars = 100,
line=
{
{
Name = "EMA",
Color = RGB(0, 128, 0),
Type = TYPE_LINE,
Width = 2
}
,
{
Name = "423.6%",
Color = RGB(0, 128, 255),
Type = TYPE_LINE,
Width = 1
}
,
{
Name = "261.8%",
Color = RGB(12... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.