content stringlengths 5 1.05M |
|---|
local M = {}
local filetype = "cpp"
local function not_implemented()
error("Not yet implemented for cpp")
end
function M.remove_types()
-- TODO: Fix query issues for fried function, I want to keep the type
-- on which is applied the function.
return vim.treesitter.parse_query(filetype, [[
(pa... |
-- Dovecot authentication backend for Prosody
--
-- Copyright (C) 2011 Kim Alvefur
--
local log = require "util.logger".init("sasl_imap");
local setmetatable = setmetatable;
local s_match = string.match;
local t_concat = table.concat;
local tostring, tonumber = tostring, tonumber;
local socket = require "socket"
lo... |
local M = {}
--- Extends sub list of the table.
-- @param tbl table: A table of lists.
-- @param key any: A key of the sub list.
-- @param value any: A new value placed in the sub list.
function M.grow_sublist(tbl, key, value)
if tbl[key] == nil then
tbl[key] = { value }
else
table.insert(tbl[k... |
data:define_type("god")
data:add_multi(
"core.god",
{
{
id = "mani",
legacy_id = 1,
},
{
id = "lulwy",
legacy_id = 2,
},
{
id = "itzpalt",
legacy_id = 3,
},
{
id = "ehekatl",
legacy_id = 4,
},
... |
#!/usr/bin/env lua
--- Tests on dumocks.ReceiverUnit.
-- @see dumocks.ReceiverUnit
-- set search path to include src directory
package.path = "src/?.lua;" .. package.path
local lu = require("luaunit")
local mru = require("dumocks.ReceiverUnit")
require("test.Utilities")
_G.TestReceiverUnit = {}
--- Verify construc... |
--[[
Useful functions to manipulate strings, based on similar implementations in other standard libraries.
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local require = require(ReplicatedStorage:WaitForChild("Nevermore"))
local t = require("t")
local Functions = require(script.Parent.Functions)
lo... |
local class = require('opus.class')
local Event = require('opus.event')
local UI = require('opus.ui')
local Util = require('opus.util')
UI.StatusBar = class(UI.Window)
UI.StatusBar.defaults = {
UIElement = 'StatusBar',
backgroundColor = 'lightGray',
textColor = 'gray',
height = 1,
ey = -1,
}
function UI.Statu... |
--[[
Inital page for when the menu opens. Right now this is an empty page
]]
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local InitalPage = Roact.PureComponent:extend("InitalPage")
functio... |
local Tables = require('Common.Tables')
local ModSpawns = require('Spawns.Priority')
local Test = {
UseReadyRoom = true,
UseRounds = true,
StringTables = {},
PlayerTeams = {
Blue = {
TeamId = 1,
Loadout = 'NoTeam',
},
},
Settings = {
RoundTime = {
Min = 5,
Max = 30,
Value = 10,
},
},
AiS... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:7e48340e56f3166be8728301312604eb:dcf7111b5d5c68d74a40afab3cbea017:82471236ac072b2a4b221f4904720680$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
local class = require 'lib.30log'
local ImageCache = class('ImageCache')
function ImageCache:init()
self.images = {}
end
function ImageCache:load(file_name)
print(file_name)
self.images[file_name] = love.graphics.newImage(file_name)
end
function ImageCache:unload(file_name)
self.images[file_name]:release()
e... |
--[[
The MIT License
Copyright (C) 2021 - 2022 Tony Wang
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, ... |
--------------------------------
-- @module ImFontGlyph
-- @parent_module imgui
---@class imgui.ImFontGlyph
local ImFontGlyph = {}
imgui.ImFontGlyph = ImFontGlyph
--------------------------------
--- Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian a... |
--// Package Metadata
return {
Name = "System.Core";
Version = 1.0;
Description = [[ This package is responsible for the core functionality of Adonis. It provides core server & client loading and communication ]];
Author = "Sceleratis";
Package = script.Parent;
Dependencies = {
"System.Utilities"
};
Setting... |
local ffi = require("ffi")
local C = ffi.C
local foundation = require("foundation")
-- Window types and functions
ffi.cdef[[
typedef struct window_config_t window_config_t;
typedef struct window_t window_t;
typedef void (* window_draw_fn)(window_t*);
int window_module_initialize(const window_config_t);
void windo... |
M = {}
function M.parse_csv_line(line, sep)
if not line then return nil end
if not sep then sep = ',' end
local values = {}
local pos = string.find(line, sep)
if string.sub(line, 1, 1) == '[' then
local arr_end_pos = string.find(line, ']')
if arr_end_pos then pos = arr_end_pos + 1 e... |
--ใจใฏใฝใทในใฟใผใปในใใฉ
--
--Scripted by KillerDJ
function c100417014.initial_effect(c)
aux.AddCodeList(c,100417013)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100417014,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(... |
--====================================================================--
-- corovel/corona/network.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby g... |
data:extend({
{
type = "recipe",
name = "wooden-wall",
enabled = true,
normal =
{
ingredients = { {"wood", 4} },
result = "wooden-wall",
result_count = 2,
energy_required = 1,
},
expensive =
{
ingredients = { {"wood", 4} },
result = "wooden-wall",
res... |
local fs = require('fs')
local Emitter = require('core').Emitter
local Buffer = require('buffer').Buffer
-- https://www.kernel.org/doc/Documentation/input/joystick-api.txt
local function parse(buffer)
local event = {
time = buffer:readUInt32LE(1),
number = buffer:readUInt8(8),
value = buffer:readUInt1... |
-- --------------------------------------------------------
-- non-RainbowMode (normal) background
local file = ...
local anim_data = {
color_add = {0,1,1,0,0,0,1,1,1,1},
diffusealpha = {0.05,0.2,0.1,0.1,0.1,0.1,0.1,0.05,0.1,0.1},
xy = {0,40,80,120,200,280,360,400,480,560},
texcoordvelocity = {{0.03,0.01},{0.03,0... |
function init()
message.setHandler("setState", function(_, _, state)
animator.setAnimationState("screen", state)
end)
end
|
--V4 Engines
ACF.RegisterEngineClass("V4", {
Name = "V4 Engine",
})
do -- Diesel Engines
ACF.RegisterEngine("1.9L-V4", "V4", {
Name = "1.9L V4 Diesel",
Description = "Torquey little lunchbox; for those smaller vehicles that don't agree with petrol powerbands",
Model = "models/engines/v4s.mdl",
Sound ... |
local L = (...)
local oop = L:get("lcore.utility.oop")
local sound = L:get("whack.sound")
local game_music
game_music = oop:class()({
state_changing = function(self, to)
if (not to.game_music) then
sound:fade("music-game")
end
end,
state_changed = function(self, from)
if (not from.game_music) then
sou... |
EtcdClientResult = EtcdClientResult or class("EtcdClientResult")
function EtcdClientResult:ctor()
self.fail_event = nil
self.fail_code = 0
self.op_result = nil
end
function EtcdClientResult:prase_op_result(json_str)
self.op_result = rapidjson.decode(json_str)
end
function EtcdClientResult:to_json()
... |
function map(f, ...)
local t = {}
for k, v in ipairs(...) do
t[#t+1] = f(v)
end
return t
end
function timestwo(n)
return n * 2
end
function squared(n)
return n ^ 2
end
function partial(f, ...)
local args = ...
return function(...)
return f(args, ...)
end
end
times... |
FPP = FPP or {}
FPP.DisconnectedPlayers = FPP.DisconnectedPlayers or {}
local PLAYER = FindMetaTable("Player")
local ENTITY = FindMetaTable("Entity")
/*---------------------------------------------------------------------------
Checks is a model is blocked
------------------------------------------------------------... |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(8)
--!./tcltestrunner.lua
-- 2001 September 15
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive othe... |
local createEnum = import("../createEnum")
return createEnum("VerticalAlignment", {
Center = 0,
Top = 1,
Bottom = 2,
}) |
-- LocaleKeysCleanUp.lua
-- Author: Rubgrsch
-- License: MIT
-- This code helps you find unused localeKeys in your WoW addon.
-- What may cause false positive
-- 1. keys in comments
-- 2. keys separated among lines
-- 3. keys doesn't match any patterns, e.g. L[ThisIsVariable]
-- Notes:
-- 1. Filenames in output only... |
return ondemand('aurora.fs')
|
local ParticlesPlus = {}
local Presets = {}
local Internal = {
Smoke = {};
}
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local DebrisService = game:GetService("Debris")
local HTTPS = game:GetService("HttpService")
local function shallowCopy(original)
... |
-- Copyright 2014-2015 Greentwip. All Rights Reserved.
local opening = import("app.core.gameplay.control.layout_base").create("opening")
local sprite = import("app.core.graphical.sprite")
function opening:onLoad()
local initiate = cc.CallFunc:create(function()
self:opening_intro_a()
... |
-----------------------------------------------------------------------------------------------
local title = "Mole Hills"
local version = "0.0.3"
local mname = "molehills"
-----------------------------------------------------------------------------------------------
-- Idea by Sokomine
-- Code & textures by Mossma... |
-- In KBX, ReverseOn is the default state.
return Def.ActorFrame {
-- Background Gradient
Def.Quad {
InitCommand=function(self) self:x(0):diffuse(0,0,0,0.75):scaletoclipped(64,192) end,
ReverseOnCommand=function(self) self:fadetop(0.25) end,
ReverseOffCommand=function(self) self:fadebottom(0.25) end
},
-- ... |
local Path = require(script.Parent.Path)
local ScriptManager = {}
ScriptManager.__index = ScriptManager
function ScriptManager.new(root)
local self = setmetatable({}, ScriptManager)
self.Root = root
return self
end
function ScriptManager:GetObject(path)
return Path.GetObjectAt(path, self.Root)
end
function Sc... |
if not jit or not jit.status or not jit.status() then return end
for i=1,100 do
if i==50 then jit.flush(2) end
for j=1,100 do end
for j=1,100 do end
end
jit.flush()
local function f() for i=1,100 do end end
for i=1,100 do local x = gcinfo(); f() end
jit.flush()
local function fib(n)
if n < 2 then return 1... |
mound_mite = Creature:new {
objectName = "@mob/creature_names:mound_mite",
socialGroup = "self",
faction = "",
level = 9,
chanceHit = 0.27,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 675,
baseHAMmax = 825,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_insect",
meatAmount = 5,
... |
-- _.iterRight.lua
--
_.iterRight = function(value)
if _.isString(value) then
local i = #value + 1
return function()
if _.gt(i, 1) then
i = i - 1
local c = value:sub(i, i)
return i, c
end
end
... |
--[[
LuCI - Lua Configuration Interface
$Id: wifimanager.lua 2/17/2016
$ hostle@fire-wrt.com
]]--
local sys = require ("luci.sys")
local m, s, o
m = Map("wifimanager", translate("Wifi Manager"), translate("Here you can configure your WifiManager Settings"))
m.on_after_commit = function()
sys.exec("reload_config &... |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class AbilityIntegerField
local AbilityIntegerField = {
ButtonPositionNormalX = 0x61627078, --ABILITY_IF_BUTTON_POSITION_NORMAL_X
ButtonPositionNormalY = 0x61627079, --ABILITY_IF_BUTTON_POSITION_NORMAL_Y
... |
local set = vim.opt_local
set.tabstop = 2
set.softtabstop = 2
set.shiftwidth = 2
set.wrap = false
|
local EZban = {}
local DS = game:GetService("DataStoreService")
local MS = game:GetService("MessagingService")
local store = game:GetService("DataStoreService"):GetDataStore("TimeBanInfo")
local Timenow = os.time()
local plrs = game:GetService("Players")
local updatetime = coroutine.create(function()
while ... |
User = game.Players.LocalPlayer
--lego
Char = User.Character
moving = false
Position = 1
cen = Instance.new("Part", User.Character)
cen.BottomSurface = "Smooth"
cen.TopSurface = "Smooth"
cen.CanCollide = false
cen.formFactor = "Symmetric"
cen.Size = Vector3.new(1,1,1)
cen.BrickColor = BrickColor.new("Really black")
cen... |
ITEM.name = "Exohelm (No Visor)"
ITEM.description = "A high-end helmet."
ITEM.longdesc = "This helmet resembles that of an ordinary exoskeleton, but differs sightly from its standard counterpart and has differing protective characteristics. Good protection from gunfire and high calibre rounds in combination with anomal... |
#!/usr/bin/env tarantool
local test = require("sqltester")
test:plan(1)
--!./tcltestrunner.lua
-- 2010 April 15
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive ot... |
local fs = require("filesystem")
local http = require("http")
local args = {...}
local url = args[1]
local outPath
if not url then
print("Usage: wget <url> [file name]")
return true
end
if args[2] then
outPath = fs.joinPath(shell.getWorkingDirectory(), args[2])
else
outPath = fs.joinPath(shell.getWor... |
local imgr = {}
imgr.rng = love.math.newRandomGenerator()
imgr.set = nil
imgr.idx = -1
function imgr.setSet(s)
imgr.set = s
imgr._shuffle()
imgr.idx = 0
end
function imgr._shuffle()
for i, v in ipairs(imgr.set) do
local j = imgr.rng:random(i, #imgr.set)
imgr._swap(i, j)
end
end
function imgr._swa... |
--- Tools for working with tiles.
-- A tile represents a 1 unit<sup>2</sup> on a surface in Factorio.
-- @module Tile
-- @usage local Tile = require('stdlib/area/tile')
-- @see LuaTile
local Tile = {_module_name = 'Tile'}
setmetatable(Tile, {__index = require('stdlib/core')})
local Is = Tile.Is
local Game = require('... |
function onEvent(name)
if name == 'Note NO' then
if value1 == '1' then
setProperty('opponentStrums.visible', false)
end
if value1 == '2' then
setProperty('opponentStrums.visible', true)
end end end |
--[[
Title: SessionsData
Author(s): big
CreateDate: 2019.07.24
ModifyDate: 2021.09.24
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local SessionsData = NPL.load('(gl)Mod/WorldShare/database/SessionsData.lua')
------------------------------------------------------------
... |
---@meta
---@class ccs.ArmatureDataManager :cc.Ref
local ArmatureDataManager={ }
ccs.ArmatureDataManager=ArmatureDataManager
---* brief remove animation data<br>
---* param id the id of the animation data
---@param id string
---@return self
function ArmatureDataManager:removeAnimationData (id) end
---* Add ... |
module(..., package.seeall)
local constants = require("apps.lwaftr.constants")
local fragmentv6 = require("apps.lwaftr.fragmentv6")
local fragv6_h = require("apps.lwaftr.fragmentv6_hardened")
local ndp = require("apps.lwaftr.ndp")
local lwutil = require("apps.lwaftr.lwutil")
local icmp = require("apps.lwaftr.icmp")
lo... |
---
-- String buffer facilities.
--
-- Lua's string operations are very flexible and offer an easy-to-use way to
-- manipulate strings. Concatenation using the <code>..</code> operator is such
-- an operation. The drawback of the built-in API however is the way it handles
-- concatenation of many string values. Since s... |
local K, C, L, _ = select(2, ...):unpack()
local argcheck = oGlow.argcheck
local colorTable = setmetatable(
{},
{__index = function(self, val)
argcheck(val, 2, "number")
local r, g, b = GetItemQualityColor(val)
rawset(self, val, {r, g, b})
return self[val]
end}
)
local createBorder = function(self, point)... |
local util = {}
function util.disableFastUpToDateCheck(projectNames)
require "vstudio"
local p = premake;
local vc = p.vstudio.vc2010;
function disableFastUpToDateCheck(prj, cfg)
for _, value in pairs(projectNames) do
if prj.name == value then
vc.element("DisableFastUpToDateCheck", nil, "true")
end
... |
---
--- time.lua
---
--- Copyright (C) 2018-2020 Xrysnow. All rights reserved.
---
--
local M = {}
local ffi = require('ffi')
local k32 = ffi.load('kernel32')
ffi.cdef [[
BOOL QueryPerformanceFrequency(
LARGE_INTEGER *lpFrequency
);
BOOL QueryPerformanceCounter(
LARGE_INTEGER *lpPerformanceCount
);
void Sleep(
... |
local Table = require("Utils.Table")
local ScenarioUtils = {}
function ScenarioUtils.create_item_chests(surface, position, force, items, chest_type)
local chest
local created_chests = {}
if not chest_type then chest_type = "steel-chest" end
local function create_chest()
local pos = surface.fin... |
--[[
MIT License
Copyright (c) 2021 Michael Wiesendanger
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, mod... |
--[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... |
local name_comparable = require("spec.name_comparable")
local make_fake_player = require("spec.fake_playerobject")
---@param name string
---@param owner? string
local function make_fake_planet(name, owner)
local planet_type = name_comparable(name)
function planet_type.Get_Name()
return name
end
... |
-----------------------------------
-- Namas Arrow
-- Skill Level: N/A
-- Description: Additional Effect: Temporarily improves Ranged Accuracy
-- Aligned with the Light Gorget, Snow Gorget & Aqua Gorget.
-- Properties
-- Element: N/A
-- Skillchain Properties: Light/Distortion
-- Modifiers: STR: 40% AGI: 40%
-- Damage M... |
local att = {}
att.name = "md_rugersup"
att.displayName = "22LR Suppressor"
att.displayNameShort = "Suppressor"
att.isSuppressor = true
att.statModifiers = {DamageMult = -0.2}
if CLIENT then
att.displayIcon = surface.GetTextureID("atts/saker")
att.description = {[1] = {t = "Suppressor and barrel extension.", c = Cu... |
function love.conf(t)
t.identity = "bitmapfontcreator"
t.window.title = "Bitmapfontcreator - loading..."
-- t.console = true
t.window.resizable = true
t.modules.audio = false
t.modules.data = false
-- t.modules.event = false
-- t.modules.font = false
-- t.modules.graphics = false
-- t.modules.image = false... |
local ffi = require("ffi")
require "lj2intelxed.obj.xed-chip-enum"
#include "xed-error-enum"
#include "xed-iclass-enum"
#include "xed-reg-enum"
#include "xed-operand-element-type-enum"
ffi.cdef[[
typedef struct xed_operand_storage_s {
xed_uint64_t disp;
xed_uint64_t uimm0;
xed_uint16_t mem_width;
xed_... |
-- Lua bindings for /Volumes/Brume/Celedev CodeFlow/CodeFlow Sample Applications/TextKitSimpleLayout/TextKitSimpleLayout/PathImageView.h
-- Generated by Celedevยฎ LuaBindingsGenerator on 2015-09-16 12:27:42 +0000
-- Objective C interface: @interface PathImageView
local PathImageView = objc.classInterface ("PathImageV... |
-----------------------------------
-- Area: West Ronfaure
-- NPC: Aaveleon
-- Involved in Quest: A Sentry's Peril
-- !pos -431 -45 343 100
-----------------------------------
require("scripts/globals/npc_util")
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)... |
local GAME_LAYER =
{
LAYER_SKYBOX = 1,
LAYER_GAME = 2,
LAYER_UI = 3,
LAYER_ACTOR = 4,
LAYER_ZOOM = 5,
LAYER_OSD = 6,
LAYER_COUNT = 7,
}
local s_CF =
{
cc.CameraFlag.DEFAULT,
cc.CameraFlag.USER1,
cc.CameraFlag.USER2,
cc.CameraFlag.USER3,
cc.CameraFlag.USE... |
local applicationHotkeys =
{
{'c', 'iTerm'},
{'d', 'Google Chrome Canary'},
{'f', {'ForkLift', 'Finder'}},
{'g', 'Firefox'},
{'h', 'Dash'},
{'i', {'VLC', 'Spotify'}},
{'n', 'Numi'},
{'o', 'Skype', 'focus'},
{'r', 'ReadKit'},
{'s', 'Mailbox (Beta)'},
{'t', 'Trello'},
{'u', 'Google Chrome'},
{'... |
PoliticalParty = class("PoliticalParty")
function PoliticalParty:init(data)
local politicalTable = loadjson(".\\tables\\political_party.JSON")
self.leadership = choice(politicalTable["leadership"])
self.economic_policy = choice(politicalTable["economic_policy"])
self.important_issues = choice(pol... |
require 'torch'
require 'nn'
require 'cunn'
require 'cudnn'
require 'lfs'
require 'paths'
local ffi = require 'ffi'
image = require 'image'
local models = require 'models/init_test'
local opts = require 'opts'
local DataLoader = require 'dataloader'
local checkpoints = require 'checkpoints'
opt = opts.parse(arg)
show ... |
CustomizableWeaponry:addFireSound("DELISLE_FIRE", {"weapons/cwdelisle/fire-1.wav","weapons/cwdelisle/fire-2.wav","weapons/cwdelisle/fire-3.wav"}, 1, 60, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("DELISLE_BOLT", "weapons/cwdelisle/dlbolt.wav")
CustomizableWeaponry:addReloadSound("DELISLE_MAGOUT", "weapons/cwdeli... |
package.path = '../src/?.lua;src/?.lua;' .. package.path
pcall(require, 'luarocks.require')
local nats = require 'nats'
local params = {
host = '127.0.0.1',
port = 4222,
}
local client = nats.connect(params)
local function subscribe_callback(payload)
print('Received data: ' .. payload)
end
-- client:en... |
--------------------------------------------------
--HEARTH
------------------------------------------------
--Functions
----------
-- On construct
-- set form
local hearth_on_construct = function(pos)
local inv = minetest.get_meta(pos):get_inventory()
inv:set_size("fuel", 1)
local meta = minetes... |
purge_mage = {
cast = function(player, target)
local magic = 30
if not player:canCast(1, 1, 0) then
return
end
if (player.magic < magic) then
player:sendMinitext("You do not have enough mana.")
return
end
target:removeDuras(venoms)
player:sendMinitext("You cast Purge.")
player:sendAction(6... |
--- This is a simple module which contains a function
-- @module fancy.module
--- @tparam string a A string
return function(a) end
|
showconsole()
mydir="./"
open(mydir .. "dyneboard10.fem")
mi_saveas(mydir .. "temp.fem")
mi_seteditmode("group")
for n=0,10 do
mi_analyze()
mi_loadsolution()
mo_groupselectblock(1)
fz=mo_blockintegral(19)
print((10-n)/10,fz)
if (n<10) then
mi_selectgroup(1)
mi_move... |
local map = vim.api.nvim_buf_set_keymap
local noremap = { noremap = true }
-- Hot Reload
map(0, "n", "<leader>r", "<cmd>FlutterReload<cr>", noremap)
-- Hot Restart
map(0, "n", "<leader>R", "<cmd>FlutterRestart<cr>", noremap)
-- Open log vertically.
map(0, "n", "<leader>v", "<cmd>FlutterVSplit<cr>", noremap)
|
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem(Config.Useitem, function(source)
local _source = source
local identifier = ESX.GetPlayerFromId(_source).identifier
local image = Config.SteamIdentifiers[identifier]
local xPlayer = ESX.GetPlayerFromId(source)
if xPla... |
--- **AceTimer-3.0** provides a central facility for registering timers.
-- AceTimer supports one-shot timers and repeating timers. All timers are stored in an efficient
-- data structure that allows easy dispatching and fast rescheduling. Timers can be registered
-- or canceled at any time, even from within a running ... |
luaj = require(cc.PACKAGE_NAME .. ".luaj")
function io.exists(path)
return CCFileUtils:sharedFileUtils():isFileExist(path)
end
function io.readfile(path)
return CCFileUtils:sharedFileUtils():getFileData(path)
end
|
local RunService = game:GetService("RunService")
local function useCameraDistance(hooks, origin)
local distance, set = hooks.useState(math.huge)
hooks.useEffect(function()
local conn = RunService.Heartbeat:Connect(function()
local camera = workspace.CurrentCamera
if camera then
set((origin - camera.CFr... |
FACTION.name = "Metro Dweller"
FACTION.description = "A dweller of the post-apocalyptic Metro tunnels."
FACTION.color = Color(150, 125, 100, 255)
FACTION.isDefault = true
FACTION.models = {
"models/half-dead/metrollfix/a1b1.mdl",
"models/half-dead/metrollfix/a3b1.mdl",
"models/half-dead/metrollfix/a2b1.mdl",
"... |
---@class ClimateHistory : zombie.iso.weather.ClimateHistory
ClimateHistory = {}
---@public
---@param arg0 ClimateManager
---@return void
function ClimateHistory:init(arg0) end
---@public
---@param arg0 ClimateManager
---@return void
function ClimateHistory:updateDayChange(arg0) end
|
-- -----------------------------------------------------------
--
-- AUTO-KEEP-GUI-OPEN.LUA
-- Version: 1.0.1
-- Author: VideoPlayerCode
-- URL: https://github.com/VideoPlayerCode/mpv-tools
--
-- Description:
--
-- Intelligently switches mpv's "keep-open" behavior based on
-- whether you are running in video-mode or ... |
local plr = game.Players.LocalPlayer
local chr = plr.Character
local maus = plr:GetMouse()
local PGui=plr.PlayerGui
local lleg = chr["Left Leg"]
local rleg = chr["Right Leg"]
local larm = chr["Left Arm"]
local rarm = chr["Right Arm"]
local hed = chr.Head
local rutprt = chr.HumanoidRootPart
local torso = chr.Torso
local... |
--luacheck: no self
local curdir = std.getinfo(1).source:gsub("^(.+[\\/])[^\\/]+$", "%1"):gsub("^@", "");
local mrd = {
lang = false;
words = {};
dirs = {''};
dict_file = 'dict.mrd';
}
local msg = dprint or print
local function debug(...)
if DEBUG then
dprint(...)
end
end
local function cache_add(cache, key,... |
local myutils = require 'myutils'
local utils = require 'utils'
local image = require 'image'
local BatchProviderVID = torch.class('fbcoco.BatchProviderVID')
-- DEBUG flag
local DEBUG = false
function BatchProviderVID:__init(anno, transformer, opt)
assert(transformer,'must provide transformer!')
self.anno = an... |
object_intangible_vehicle_mustafar_panning_droid_pcd = object_intangible_vehicle_shared_mustafar_panning_droid_pcd:new {
}
ObjectTemplates:addTemplate(object_intangible_vehicle_mustafar_panning_droid_pcd, "object/intangible/vehicle/mustafar_panning_droid_pcd_.iff") |
return {
canonShootingFrequency = 2, -- shoots per second
canonBulletsVelocity = 20, -- meters per second
spaceShipForwardVelocity = 10, -- meters per second
asteroidsAngularVelocityRange = {-math.pi, math.pi}, -- radians per second
explosionDuration = 0.1, -- seconds
manoeuveringEnginesThrust =... |
function curry(func, ...)
local args = {...}
local cArgs = #args
return function(...)
local m = select('#', ...)
for i = 1, m do
args[cArgs + i] = select(i, ...)
end
return func(unpack(args, 1, cArgs + m))
end
end |
require "scripts.core.ability"
require "gamemode.Spark.modifiers.modifier_piercing_light"
PiercingLight = class(Ability)
function PiercingLight:OnCreated ()
self:SetCastingBehavior(CastingBehavior(CastingBehavior.PASSIVE));
end
function PiercingLight:GetModifiers ()
return {
"modifier_piercing_light"
}
end
ret... |
-- rocket_flare
return {
["rocket_flare"] = {
usedefaultexplosions = false,
largeflash = {
air = true,
class = [[CBitmapMuzzleFlame]],
count = 1,
ground = true,
underwater = 1,
water = true,
prop... |
--[[ Netherstorm -- Nuramoc.lua
This script was written and is protected
by the GPL v2. This script was released
by BlackHer0 of the BLUA Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- BlackHer0, Septe... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local stringstream = require("string_stream")
SwitchRepeatExprInvalid = class.class(KaitaiStruct)
function SwitchRepeat... |
local Action = require "action"
local Unequip = Action:extend()
Unequip.name = "unequip"
Unequip.targets = {targets.Unequip}
function Unequip:perform(level)
local equipment = self:getTarget(1)
self.owner.slots[equipment.slot] = false
end
return Unequip
|
-----------------------------------
-- Area: Riverne-Site_B01
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.RIVERNE_SITE_B01] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ... |
ITEM.name = "Revolver"
ITEM.desc = "A slow yet powerful firearm that fires .44 Magnum Rounds"
ITEM.model = "models/arxweapon/revolver.mdl"
ITEM.class = "m9k_mrp_revolver"
ITEM.weaponCategory = "sidearm"
ITEM.width = 2
ITEM.height = 1
ITEM.price = 300 |
local S = contraptions_mod.S
minetest.register_node("useful_contraptions:vacuum_putter_on", {
description = S("Vacuuming Putter"),
_doc_items_longdesc = S("A vacuuming putter that collects items in its range and puts them into a chest below."),
_doc_items_usagehelp = S("Right-click the vacuuming putter or send a me... |
local Suite=CreateTestSuite("wow.api.Buffs");
function Suite:TestBuff()
Assert.Succeed(UnitBuff, "Unit buff must succeed");
end;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.