content stringlengths 5 1.05M |
|---|
local queries = require("nvim-treesitter.query")
local M = {}
function M.init()
require "nvim-treesitter".define_modules {
textsubjects = {
module_path = "nvim-treesitter.textsubjects",
enable = false,
disable = {},
prev_selection = nil,
keymaps ... |
--Class for third type of enemy sprites
Enemy4 = {
}
function Enemy4:new(X,Y)
s = Enemy:new(X,Y)
setmetatable(s, self)
setmetatable(self, Enemy)
self.__index = self
s.health = 4
s.maxHealth = 0
s.score = 50
s.NUMROUTES = 1
s.attackPower = 1
s.maxVelocityY = 200
--s.accelerationY = 50
s.y = General.screenH... |
local Texture = {}
Texture.__index = Texture
function Texture.create()
local texture = {}
setmetatable(texture, Texture)
texture.id = ch2d.texture.create()
return texture
end
function Texture:remove()
return ch2d.texture.remove(self.id)
end
function Texture:loadFromFile(filename)
return ch2... |
local citrixxml = require "citrixxml"
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
description = [[
Extracts the name of the server farm and member servers from Citrix XML
service.
]]
---
-- @usage
-- nmap --script=citrix-enum-servers-xml -p 80,443,8080 <host>
--... |
isLoggedIn = true
local PlayerJob = {}
local JobsDone = 0
local LocationsDone = {}
local CurrentLocation = nil
local CurrentBlip = nil
local hasBox = false
local isWorking = false
local currentCount = 0
local CurrentPlate = nil
local CurrentTow = nil
local selectedVeh = nil
local TruckVehBlip = nil
RegisterNetEvent('... |
local modpath = minetest.get_modpath("mtfs")
dofile(modpath .. "/api.lua")
if minetest.settings:get_bool("mtfs.enable_builtin") ~= false then
dofile(modpath .. "/planes.lua")
end
|
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local assert = require("luassert")
local say = require("say")
local function array_matches(state, arguments)
local expected = arguments[1]
local tested = ar... |
local config = require("lspconfig").pyright.document_config
require("lspconfig/configs").pyright = nil -- important, immediately unset the loaded config again
config.default_config.cmd[1] = "./node_modules/.bin/pyright-langserver"
return vim.tbl_extend("error", config, {
install_script = [=[
[[ ! -f package.js... |
local Me = game.Players.LocalPlayer
Attkin = false
if script.Parent.className ~= "HopperBin" then
local h = Instance.new("HopperBin", Me.Backpack)
h.Name = "Ring"
script.Parent = h
end
ca = Instance.new("Part")
ca.Parent = char
ca.BrickColor = BrickColor.new("Really red")
ca.formFactor = "Symmetric" ... |
local bit = require("bit")
-- start bigint.lua
--
-- Copyright (c) 2010 Ted Unangst <ted.unangst@gmail.com>
--
-- 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 c... |
local function pad_right(s, width)
return s .. (' '):rep(width - #s)
end
local function parse(results)
local stats = {}
for _, result in ipairs(results) do
local t1, t2, outcome = result:match('^([^;]+);([^;]+);([^;]+)$')
if t1 and t2 and outcome then
stats[t1] = stats[t1] or { w = 0, l = 0, d = ... |
workspace "SyncTool"
configurations { "Release", "Debug" }
platforms { "x86", "x86_64" }
location "build"
targetdir "build"
objdir "build/obj"
project "SyncTool"
kind "consoleApp"
language "C++"
targetname "synctool"
flags "StaticRuntime"
filter "system:windows"
files "sources/win... |
return require 'parse.char.utf8.set.Letter.Uppercase'
+ require 'parse.char.utf8.set.Other_Uppercase'
|
local CoNLLXUtils = torch.class('CoNLLXUtils')
include '../utils/shortcut.lua'
CoNLLXUtils.ROOT_MARK = '###root###'
function CoNLLXUtils.normalizeNumber(str)
local function match(str, pat)
local istart, iend = str:find(pat)
return istart ~= nil and iend ~= nil and iend - istart + 1 == str:len()
end
... |
--
--
--
dofile(yatm_drones.modpath .. "/entities/scavenger_drone.lua")
|
-- Sometimes HRT's spawn without a team set which crashes the game
-- Set a default team for cop units if they dont have a team
Hooks:PreHook(CopMovement, "team", "inf_setcopteamifnoteam", function(self)
if not self._team then
self:set_team(managers.groupai:state()._teams[tweak_data.levels:get_default_team_... |
-- Asset Loading
TextureMap = {
TEST = "SPR_Default.png",
BOB = "SPR_RockLee.png"
} |
-- Plugin configuration: nvim-scrollview
-- ============================================================================
vim.g.scrollview_column = 1
|
local L = Grid2Options.L
Grid2Options:RegisterStatusOptions("threat", "combat", function(self, status, options, optionParams)
self:MakeStatusColorOptions(status, options, optionParams)
self:MakeSpacerOptions(options, 30)
options.disableBlink = {
type = "toggle",
name = L["Disable Blink"],
desc = L["Di... |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
function onSortCompare(w1, w2)
if w1.initresult.getValue() ~= w2.initresult.getValue() then
return w1.initresult.getValue() < w2.initresult.getValue();
end
if w1.init.getValue() ~= w2.init.ge... |
-- Additions to the posix module (of luaposix).
local M = require "posix_c"
local posix = M
local bit
if _VERSION == "Lua 5.1" then bit = require "bit" else bit = require "bit32" end
--- Create a file.
-- @param file name of file to create
-- @param mode permissions with which to create file
-- @return file descriptor... |
function Social_OnGossip(unit, event, player)
unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(0,"Show Me Who's In The World", 1,0)
unit:GossipMenuAddItem(0,"What Revision Are We Running?", 2,0)
unit:GossipMenuAddItem(0,"BattleGrounds", 4,0)
unit:GossipMenuAddItem(0,"Arena's", 5,0)
unit:GossipMenuAd... |
AddCSLuaFile()
local VehicleName = "St. Law. County Ford Taurus 2013"
local EMV = {}
EMV.Siren = "STLAWRENCE"
EMV.Skin = 19
EMV.Color = Color(255,255,255)
---CUSTOM COLORS---
local B = "BLUE"
local R = "RED"
local A = "AMBER"
local W = "WHITE"
local G = "GREEN"
local DR = "D_RED"
local CW = "C_WHITE"
local SW =... |
--FullCombo base from moonlight by AJ
local pn = ...;
assert(pn);
local t = Def.ActorFrame{};
local pStats = STATSMAN:GetCurStageStats():GetPlayerStageStats(pn);
local function GetPosition(pn)
if Center1Player() then
return SCREEN_CENTER_X
else
return THEME:GetMetric("ScreenGameplay","Player".. ToEnumShortStr... |
--
local M = {}
M.typecodes = 'bBuhHiIlLqQfd'
---@class ArrayType
local ArrayType = class('ArrayType', {})
function ArrayType:ctor(typecode, initializer)
end
M.ArrayType = ArrayType
return M
|
collectgarbage()
pcall()
xpcall()
function funcName(apple)
end
|
local window, editing_window = nil
-- creating the ped
local previewPed = nil
local defaultModel = 211
function createShopPed()
local ped = createPed(defaultModel, 203.9697265625, -157.8291015625, 1000.5234375)
setElementFrozen(ped, true)
setElementRotation(ped, 0, 0, 182)
setElementDimension(ped, 23)--2193
setE... |
local function new_board()
return {
winner = false,
score = 0,
last_number = 0,
rows = {}
}
end
local function cell_number(number)
return tonumber(number)
end
local function board_cell(number, enabled)
return {
number = cell_number(number),
enabled = enabled,
}
end
... |
function msg_rvc(data)
local msg = data
local input_text = (msg.content.text or ''):lower()
local group_chat = msg.chat_id
local sender_id = msg.sender_user_id
if msg.content._ then
msg.type = msg.content._:lower()
end
if not database:sismember("bot:groups:count", group_chat) then
database:sadd("bot:groups... |
local serv = require(game:GetService("ReplicatedStorage"):WaitForChild("Services"))
local Players, ReplicatedStorage = serv.getM{"Players", "ReplicatedStorage"}
local LocalPlayer = Players.LocalPlayer
ReplicatedStorage.Name = "stop"
print("no shut up", ReplicatedStorage.Name, "i won't stop") |
test_run = require('test_run').new()
fiber = require('fiber')
--
-- gh-6057: while CONFIRM is being written, there might appear async
-- transactions not having an LSN/signature yet. When CONFIRM is done, it covers
-- these transactions too since they don't need to wait for an ACK, but it
-- should not try to complete... |
local skynet = require "skynet"
skynet.start(function()
skynet.error("======================= test normal service")
-- newservice(name, ...) 启动一个名为name的新服务. 等待到初始化函数结束才会返回
local counter1 = skynet.newservice("counter", 1)
local counter2 = skynet.newservice("counter", 2) -- 新的服务
print("counter1 address:", counte... |
AddCSLuaFile()
SWEP.Base = "weapon_gwbase"
SWEP.Name = "Blast Off"
SWEP.AbilityDuration = 3
SWEP.AbilityDescription = "Launches all seekers into the air after a short delay.\nThe seekers are stuck in the air for at least $AbilityDuration seconds.\n\nDoes not work well indoors."
function SWEP:Ability()
if SERVER ... |
-- This does not use acpi as it does not work on my laptop.
local setmetatable = setmetatable
local string = { match = string.match }
local tonumber = tonumber
local io = require("io")
module("temp")
local temp = {}
local function infos(line)
local name, current, high, crit
= string.match(line, "(.+): +... |
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Glyke
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Upper_Jeuno/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
... |
---
--- Generated by MLNUI(https://github.com/momotech/MLN)
--- Created by momo.
--- DateTime: 2020-07-18 11:08
---
local _class = {
---@private
_currentIndex = nil,
_progressBar = nil,
_subviews = {},
_animCache = {},
_onSelected = nil,
_autoAnimTime = 0.2,
_viewpager = nil,
---@pu... |
local function shuffle(tbl)
local size = #tbl
for i = size, 1, -1 do
local rand = math.random(size)
tbl[i], tbl[rand] = tbl[rand], tbl[i]
end
return tbl
end
local function create_entity_chain(surface, entity, count, straightness)
if not surface then return end
if not entity then return end
if not count ... |
-- $Id$
--
-- All rights reserved. Part of the ALua project.
-- Detailed information regarding ALua's license can be found
-- in the LICENSE file.
--
module("alua.codec.stream", package.seeall)
require("alua.codec")
-- Aliases
local dump = alua.codec.dump
local load = alua.codec.load
--
-- Send a internal message.... |
object_mobile_space_comm_ep3_red_tie_operative = object_mobile_shared_space_comm_ep3_red_tie_operative:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_ep3_red_tie_operative, "object/mobile/space_comm_ep3_red_tie_operative.iff")
|
--[[ ========================================================================
" .___ .__
" _____ ____ __| _/ | | __ _______
" / \ / _ \ / __ | | | | | \__ \
" | Y Y ( <_> ) /_/ | | |_| | // __ \_
" |__|_| /\____/\____ | /\ |____/____/(____ ... |
--------------------------------
-- @module Controller
-- @parent_module cc
---@class cc.Controller
local Controller = {}
cc.Controller = Controller
--------------------------------
--- Activate receives key event from external key. e.g. back,menu.
--- Controller receives only standard key which contained within enu... |
--[[ newtransfer.lua
Transfer a file to a computer running "newslaved.lua"
--]]
local PROG = "newtransfer"
local VERSION= "Mo2221"
local SLAVE_PORT = 666
local ACK_PORT = 667
local STRENGTH = 255
local CHUNK_SIZE = 1500
local component = require("component")
local event = require("event")
local filesystem = requir... |
local ffi = require 'ffi'
local gl = require 'ffi.OpenGL'
local class = require 'ext.class'
local table = require 'ext.table'
local GetBehavior = require 'gl.get'
local GLShader = require 'gl.shader'
-- optional stuff:
local GLAttribute = require 'gl.attribute'
local GLArrayBuffer = require 'gl.arraybuffer'
-- TODO in... |
------------------------------------------------------------
-- AntorusBurningThrone.lua
--
-- Abin
-- 2017/8/31
------------------------------------------------------------
local module = CompactRaid:GetModule("RaidDebuff")
if not module then return end
local TIER = 7 -- Legion
local INSTANCE = 946 -- Antorus Burnin... |
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_essentials\ce_templates.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
SetSource({
SourceLong="Bestiary",
SourceShort="B1",
SourceWeb="http://paizo.com/store/downloads/pathfinder/pathfi... |
require("Comment").setup(require("keybindings").comment)
|
local BaseStation = {data = ""}
BaseStation.__index = BaseStation
function byteToUint32(a,b,c,d)
local _int = 0
if a then
_int = _int + bit32.lshift(a, 24)
end
_int = _int + bit32.lshift(b, 16)
_int = _int + bit32.lshift(c, 8)
_int = _int + d
if _int >= 0 then
return _int
... |
local BASE_MENU = {}
function BASE_MENU:Init()
self:SetTitle("")
self:ShowCloseButton(false)
self:SetDraggable(false)
self:SetSizable(false)
self.OriginalSetSize = vgui.GetControlTable("DFrame").SetSize
self.OriginSetPos = vgui.GetControlTable("DFrame").SetPos
self.Outline = vgui.Create("DPanel")
if se... |
--exports.DENmysql:query("UPDATE crimes SET crime=? WHERE userid=? AND timestamp=?",toJSON(accountToday[accName]),userid,theStamp)
--local t2 = exports.DENmysql:query( "SELECT timestamp FROM crimes WHERE userid=? AND timestamp=?",userid,11111111)
local currentRanks = {}
--[[local setSWATRank = {
["epozide"] = true,
[... |
data:extend({
{
type = "armor",
name = "power-armor-mk3",
icon = "__military-extended__/graphics/items/armor/power-armor-3.png",
flags = {"goes-to-main-inventory"},
resistances =
{
{
type = "laser",
decrease = 10,
percent = 15
},
{
type = "phys... |
ITEM.name = "Acid"
ITEM.description = "itemAcidDesc"
ITEM.price = 2
ITEM.model = "models/mosi/fallout4/props/junk/components/acid.mdl" |
function wait(time)
local callTime = os.clock() + (time/1000)
repeat until os.clock() > callTime
end
|
local large_monster = {};
local singletons;
local customization_menu;
local config;
local language;
local table_helpers;
local health_UI_entity;
local stamina_UI_entity;
local rage_UI_entity;
local screen;
local drawing;
local ailments;
local player;
local body_part;
local part_names;
large_monster.list = {};
functi... |
--- Various geometric intersections
-- @module intersect
local current_folder = (...):gsub('%.[^%.]+$', '') .. "."
local vec3 = require(current_folder .. "vec3")
local constants = require(current_folder .. "constants")
local intersect = {}
-- ray = { position, direction }
-- min = vec3
-- max = ve... |
local plugin = {}
plugin.name = "Lower"
plugin.version = "1.0"
function plugin.after_cmd_toggle_mouse_mode(text)
res = eon_indent()
-- print("Result: %s\n", res)
return tostring(text):lower()
end
function plugin.on_prompt_callback(action)
print("prompt callback on lua!", action)
end
function plugin.star... |
local fs = require('diagnosticls-configs.fs')
return {
sourceName = 'phpcbf',
command = fs.executable('phpcbf', fs.Scope.COMPOSER),
args = { '-' },
isStdout = true,
ignoreExitCode = true,
rootPatterns = { 'composer.json' },
}
|
ffi = require "ffi"
require "LDYOM.Scripts.baseNode"
class = require "LDYOM.Scripts.middleclass"
Node = bitser.registerClass(class("NodeMoveObject", BaseNode));
Node.static.mission = true;
Node.static.name = imgui.imnodes.getNodeIcon("func")..' '..ldyom.langt("CoreNodeMoveObject");
function Node:initialize(id)
Base... |
local module = {}
local targets = require(game:GetService('ReplicatedStorage').Common.Targets)
local list = {}
function module.Start(character)
local info = {}
local connections = {}
local humanoid = character:WaitForChild('Humanoid')
local root = character:WaitForChild('HumanoidRootPart')
info.mod... |
--- Tests a regression with table hashing
local hash = {}
hash[1973991797] = true
hash[545443859] = nil
hash[1916327852] = true
hash[1973991797] = nil
hash[1911281436] = true
hash[764085945] = true
|
/*==============================================================================================
Expression Advanced: Component -> Timers.
Creditors: Rusketh, Oskar94
==============================================================================================*/
local LEMON, API = LEMON, LEMON.API
local Component =... |
CAbstractInputOutput = class(CBaseObject,
function (self, procHandle , hwnd)
self.procHandle = procHandle;
self.hwnd = hwnd;
end
);
function CAbstractInputOutput:read(Handle, type, Address )
local result = nil;
local counter = 1;
local limit = 5;
repeat
result = process.read(Handle, type, Address)
coun... |
include("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
ENT.NextHeal = 0
ENT.HealthAmount = 40
function ENT:OnRemove()
if self.Sound then self.Sound:Stop() self.Sound = nil end
end
function ENT:Initialize()
self.Entity:SetModel("models/dronesrewrite/aihealer/aihealer.mdl")
self.Entity:Physi... |
-- uninhm
-- https://atcoder.jp/contests/abc175/tasks/abc175_c
-- math
x, k, d = io.read("*n","*n","*n")
x = math.abs(x)
if math.abs(x) // d >= k then
print(math.abs(x) - k*d)
elseif (k - x // d) % 2 == 0 then
print(math.abs(x - x // d * d))
else
print(math.min(math.abs(x - x // d * d - d), math.abs(x - x // d... |
local ElevatorEngine = {}
ElevatorEngine.__index = ElevatorEngine
function ElevatorEngine.Init(Elevator,UserSettings,DevSettings)
local function HandleError(Type,Message)
if Type == "Warning" then
warn(Message)
elseif Type == "Error" then
error(Type)
end
end
... |
--[[
Brasilian Portuguese Localization
--]]
local ADDON = ...
local L = LibStub('AceLocale-3.0'):NewLocale(ADDON, 'ptBR')
if not L then return end
--keybinding text
L.ToggleBags = 'Abrir mochila'
L.ToggleBank = 'Abrir banco'
--system messages
L.NewUser = 'Novo utilizador detetado, configuração padrão carregada'
L.... |
local skynet = require "skynet"
local syslog = require "syslog"
local dbpacker = require "db.packer"
local dump = require "common.dump"
local FlagOffline = 0
local FlagOnline = 1
local onlineTab = {}
local table = table
local assert = syslog.assert
local database
local CMD = {}
function CMD.cmd_open (source, conf)
... |
mapEffects = require "lib/mapEffects"
-- TODO: unlearn skills
--ms.teachSkill(20000014, -1, 0, -1);
--ms.teachSkill(20000015, -1, 0, -1);
--ms.teachSkill(20000016, -1, 0, -1);
--ms.teachSkill(20000017, -1, 0, -1);
--ms.teachSkill(20000018, -1, 0, -1);
target.direction_mode = false
target.reserved_effect(map... |
simvis_attributes =
{
melee_size = 1,
melee_block_ratio = 20,
melee_unsynced_damage_ratio = 40,
selection_volume = 1.0,
selection_ground = 1.0,
-- Shadow Types:
-- 0 = None
-- 1 = blob (rotated by light dir)
-- 2 = blob (rotated by object dir)
-- 3 = shadow map
-- 4 = stencil shadow vo... |
module("luci.controller.rpi", package.seeall)
function index()
if not nixio.fs.access("/boot/config.txt") then
return
end
entry({"admin", "system", "rpi"}, cbi("admin_system/rpi"), "RaspberryPi", 65)
end
|
function kickGui()
local screenW, screenH = guiGetScreenSize()
kickWindow = guiCreateGridList((screenW - 235) / 2, (screenH - 116) / 2, 235, 90, false)
guiSetAlpha(kickWindow, 0.90)
guiSetProperty(kickWindow, "AlwaysOnTop", "True")
guiSetVisible(kickWindow,false)
kwEditBoxReason = guiCreateEdit(10, 27, 215, 25, ... |
CLO_Contexts = CLO_Contexts or {}
---Context_CheckDrainableContent
---@param _playerNum number
---@param _context ISContextMenu
---@param _items table
local function Context_CheckDrainableContent(_playerNum, _context, _items)
---@type table
local items = CLO_Context.ConvertInventoryItemsToArray(_items)
i... |
---------------------------------------------------------------------------------------------------
-- func: checklocalvar <varName> {'player'/'mob'/'npc'} {name/ID}
-- desc: checks player or npc local variable and returns result value.
-----------------------------------------------------------------------------------... |
project "lua"
kind "StaticLib"
language "C"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
-- Headers
"src/lua.hpp",
"src/lapi.h",
"src/lauxlib.h",
"src/lcode.h",
"src/lctype.h",
... |
object_tangible_dungeon_mustafar_decrepit_droid_factory_workstation = object_tangible_dungeon_mustafar_decrepit_droid_factory_shared_workstation:new {
}
ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_decrepit_droid_factory_workstation, "object/tangible/dungeon/mustafar/decrepit_droid_factory/workstation.i... |
object_tangible_loot_creature_loot_collections_shattered_shard_unknown_08 = object_tangible_loot_creature_loot_collections_shared_shattered_shard_unknown_08:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_shattered_shard_unknown_08, "object/tangible/loot/creature/loot/collections/sh... |
--------------------------------
-- @module ImPlot
-- @parent_module implot
local ImPlot = implot
--------------------------------
local ImPlotFlags = {}
--- Options for plots.
ImPlot.ImPlotFlags = ImPlotFlags
--- Options for plots.
ImPlot.Flags = ImPlotFlags
--- the mouse position, in plot coordinates, will be d... |
describe("Tower of Hanoi", function()
local tower_of_hanoi = require("misc.tower_of_hanoi")
it("should correctly move all disks from the first to the third pole", function()
local disks = { { 5, 4, 3, 2, 1 }, {}, {} }
local function move(from, to)
local disk = assert(table.remove(disks[from]))
local top_dis... |
function onCreate()
if not lowQuality then
makeLuaSprite('zavodila-bg', 'zavodila-bg', -600, -200);
setLuaSpriteScrollFactor('zavodila-bg', 0.9, 0.9);
end
addLuaSprite('zavodila-bg', false);
close(true);
end |
dialog = {}
dialog.welcome = {{pic="player", pos=0, word="xxx"},{pic="zhangsan", pos=1, word="yyy"}}
return dialog
|
local max_entity_id = 1000000000000 -- If you need more, there's a problem with your code
local luaentity = {}
pipeworks.luaentity = luaentity
luaentity.registered_entities = {}
local filename = minetest.get_worldpath().."/luaentities"
local function read_file()
local f = io.open(filename, "r")
if f == nil then re... |
BasicMonster = class('BasicMonster')
function BasicMonster:initialize()
end
function BasicMonster:take_turn()
local monster = self.owner
if data.map.tiles[self.owner.x][self.owner.y].visibility == special_colors.fov_visible then
if monster:distance_to(data.player.character) >= 2 then
m... |
--- collect RSSI values at fixed distance from desired AP
--- for each AP create a list of RSSI value
--- print RSSI values on screen periodically
wifi.setmode(1)
R={};tmp={} --initialize list of APs and table of RSSI
for itr=2,6 do R[itr] = {} end
--get average value of a intger list
function listAv... |
-- logic helper
function can_enter_and_leave_gauntlet_qty(pbs, tanks)
if AUTOTRACKER_ENABLE_DEBUG_LOGGING_LOGIC then
print(string.format("called can_enter_and_leave_gauntlet_qty: pbs %s, tanks %s",pbs, tanks))
end
local value = wand({
wor({
can_fly(),
speed(),
... |
-- tile-collision module
-- assumes the attachment module
function coll_tile_help(pos, per, spd, pos_rad, per_rad, dir, a, hit_func, solid_func)
local coll_tile_bounds = function(pos, rad)
return flr(pos - rad), -flr(-(pos + rad)) - 1
end
local pos_min, pos_max = coll_tile_bounds(pos + spd, pos_rad)
... |
module(..., package.seeall)
local Utils = require("Systems.Utils");
local _dictionary = {};
local _lang = "en";
local _numWords = 0;
local _letterValues = {};
local _onLoadComplete = nil;
function getLetterValue(self, letter)
return _letterValues[letter:upper()] or 0;
end
function getWordValue(self, word)
if (co... |
require 'math'
function basen(n, b)
n = math.floor(n)
if not b or b == 10 then return tostring(n) end
digits = "0123456789abcdefghijklmnopqrstuvwxyz"
t = {}
sign = ""
if n < 0 then
sign = "-"
n = -n
end
repeat
d = (n % b) + 1
n = math.floor(n / b)
table.insert(t, 1, digits:sub(d,d))
until n == 0
re... |
function getOnModifyPrefix ()
if Global.CLIENT then
return "client_onModify_"
else
return "onModify_"
end
end
Variable = class()
function Variable:__toString ()
return "Variable"
end
function isVariable (v)
return is_a(v, Variable)
end
------------------------------------------------
__SV_PREFIX = "__SV_"
... |
if(GetRealmName() == "Pagle")then
WP_Database = {
["Klappo"] = "ST:821/99%SB:860/99%SM:1096/99%",
["Jele"] = "ST:804/99%SB:842/99%SM:1056/99%",
["Tweet"] = "ST:853/99%SB:846/99%LM:989/98%",
["Burywar"] = "ST:795/99%SB:822/99%LM:947/97%",
["Rh"] = "ST:830/99%SB:867/99%SM:1104/99%",
["Sinista"] = "ST:820/99%SB:870/99%SM:... |
-- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- conntrack.lua -- Connection tracking for IPv4/IPv6 TCP/UDP sessions
--
-- This module exposes the following API:
--
-- define(tablename)
-- define a named connection tracking table.
--
-- clear()
-- clears all tracking tables.
--... |
require "ngx.ssl"
require "resty.lock"
require "resty.lrucache"
|
if not momoTweak.compatibility.underGroundPipePack then momoTweak.compatibility.underGroundPipePack = {} end
function momoTweak.compatibility.underGroundPipePack.Recipe()
-- small-pipe-coupler
-- underground-pipe-segment-t1
data.raw.technology["advanced-underground-piping"].prerequisites = {momoTweak.sci2_unlockTec... |
local parsers = require "nvim-treesitter.parsers"
local queries = require "nvim-treesitter.query"
local tsutils = require "nvim-treesitter.ts_utils"
local M = {}
M.avoid_force_reparsing = {
yaml = true,
}
M.comment_parsers = {
comment = true,
jsdoc = true,
phpdoc = true,
}
local function get_first_node_at_l... |
-- Includes
#include 'obfuscation.lua'
-- Include guard
#if(includeGuard()) then return end
-- Deprecated
#EV_SERVER_VERIFICATION = "\"onClientRafalhShared1\""
#VERIFY_SERVER_FUNC = "verify"
#SERV_VERIFICATION_KEY = OBFUSCATE('8_ccDr-8')
#EV_VERIFIER_READY = OBFUSCATE('AOGltgWlbU')
#EV_VERIFY_REQ = OBFUS... |
local bplib = require("bplib")
local runner = require("bptest")
local src = runner.srcscript()
-- Setup --
store = arg[1] or "RAM"
runner.setup(bplib, store)
src_node = 4
src_serv = 3
dst_node = 72
dst_serv = 43
rpt_node = 0
rpt_serv = 0
cst_node = 4
cst_serv = 3
dflt_paytype = 10
dflt_timeout = 10
dflt_bundlelen = ... |
Scene_GameOver = Scene_Base:extend("Scene_GameOver")
function Scene_GameOver.prototype:constructor()
Scene_Base.prototype.constructor(self)
Audio_Manager:playBGM("game_over")
self._img = Assets.graphics.title.back
self._timeout = 5
self._opacity = 0
self._font = Assets.fonts.silver(64)
self.update = self... |
-- Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/)
--
-- 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 ... |
--- Class that represents a truetype packing context.
--
-- **N.B.** These APIs are only lightly tested at the moment, so use at your own risk!
-- @classmod Packing
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Softwar... |
--
-- ▀▀█ ▀
-- ▄▄▄▄ █ ▄ ▄ ▄▄▄▄ ▄▄▄ ▄ ▄▄ ▄▄▄
-- █▀ ▀█ █ █ █ █▀ ▀█ █ █▀ █ █ ▀
-- █ █ █ █ █ █ █ █ █ █ ▀▀▀▄
-- ██▄█▀ ▀▄▄ ▀▄▄▀█ ▀█▄▀█ ▄▄█▄▄ █ █ ▀▄▄▄▀
-- █ ▄ █
-- ▀ ▀▀
--
--
-- => ... |
--[[
Copyright (c) 2010 Matthias Richter
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, publish, distribu... |
project "imgui"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "On"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"include/imgui/imconfig.h",
"include/imgui/imgui.h",
"inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.