content stringlengths 5 1.05M |
|---|
local queries = require("nvim-treesitter.query")
local M = {}
function M.init()
require("nvim-treesitter").define_modules({
rainbow = {
module_path = "rainbow.internal",
is_supported = function(lang)
return queries... |
local M = {}
local platform = system.getInfo("platform")
local hasFacebook
local hasTwitter
local hasWeibo
local canShowShareDialog
, showShareDialog
, showPopup
, getSocialButtons
function M.share(params)
if canShowShareDialog() then
showShareDialog(params)
end
end
function canShowShareDialog()
local isAv... |
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- JavaScript LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'javascript'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
lo... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("unff","UsefulFunCommands","Removes all force fields from the gi... |
-- Copyright 2017-2022 Jason Tackaberry
--
-- 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 applicable law or agr... |
local component = require "component"
local serialization = require "serialization"
local shell = require "shell"
local eeprom = component.eeprom
local args, ops = shell.parse(...)
print(args)
if #args < 3 then
print("You need to specify all 3 coords (x,y,z order)")
os.exit()
end
local pos = serialization.seri... |
return {
'halloween',
'carnival',
'ghosts',
'trick or treat',
'costume',
'candy',
'candycorn',
'snickers',
'reeses cups',
'candied apples',
'ghouls',
'goblin',
'frankenstein',
'graveyard',
'haunted house',
'monster',
'scary',
'spooky',
'dracula... |
-- https://www.w3schools.com/colors/colors_names.asp
local _, Addon = ...
local DCL = Addon.DethsColorLib
if DCL.__loaded then return end
DCL.CSS = {
AliceBlue = "F0F8FF",
AntiqueWhite = "FAEBD7",
Aqua = "00FFFF",
Aquamarine = "7FFFD4",
Azure = "F0FFFF",
Beige = "F5F5DC",
Bisque = "FFE4C4",
Black = "0... |
--scifi_nodes by D00Med
scifi_nodes = {}
local MP = minetest.get_modpath("scifi_nodes")
if minetest.get_modpath("xpanes") then
dofile(MP.."/panes.lua")
end
dofile(MP.."/common.lua")
dofile(MP.."/builder.lua")
dofile(MP.."/chest.lua")
dofile(MP.."/plants.lua")
dofile(MP.."/nodes.lua")
dofile(MP.."/doors.lua")
dofil... |
local API_RE = require(script:GetCustomProperty("APIReliableEvents"))
local FORCE_CLOSE_BUTTON = script.parent
local VIEW_NAME = FORCE_CLOSE_BUTTON:GetCustomProperty("ViewName")
FORCE_CLOSE_BUTTON.clickedEvent:Connect(function() API_RE.Broadcast("ForceCloseViewByName", VIEW_NAME) end) |
test_run = require('test_run').new()
engine = test_run:get_cfg('engine')
box.sql.execute('pragma sql_default_engine=\''..engine..'\'')
-- Verify that constraints on 'view' option are working.
-- box.cfg()
-- Create space and view.
box.sql.execute("CREATE TABLE t1(a, b, PRIMARY KEY(a, b));");
box.sql.execute("CREATE ... |
local admins = {"FreakingHulk", "nutkitten"}
local datastore = game:GetService("DataStoreService")
game.Players.PlayerAdded:Connect(function(p)
p.Chatted:Connect(function(msg)
if msg:lower():sub(1,6) == ":kick " then
local plr = msg:lower()
if plr:sub(7,10) == "all" then
... |
FLAG.PrintName = "Stalker";
FLAG.Flag = "S";
FLAG.Team = TEAM_STALKER;
FLAG.Loadout = { "weapon_cc_stalker" };
function FLAG.ModelFunc( ply )
return "models/stalker.mdl";
end
|
-- MTE "CASTLE DEMO" ----------------------------------------------------------
local composer = require("composer")
local myData = require("RotateConstrainComposer.mydata")
myData.prevMap = nil
myData.nextMap = "map1"
--SETUP D-PAD ------------------------------------------------------------
myData.controlGroup = di... |
local DBAB = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local BlackBox = Instance.new("Frame")
local TextLabel_2 = Instance.new("TextLabel")
local TextLabel_3 = Instance.new("TextLabel")
local TextLabel_4 = Instance.new("TextLabel")
local TextButton = Insta... |
-- coding: utf-8
--[[
-- PLEASE DO "NOT" EDIT THIS FILE!
-- This file is generated by script.
--
-- If you want to apply corrections visit:
-- http://rom.curseforge.com/addons/DungeonLoots/localization/
--]]
return
{
["Boss_TT"] = "Boss %d: %s (%d)",
["Boss2_TT"] = "Loots -> %s (%d)",
["BossInstance"] = "Bosse zu Inst... |
player_manager.AddValidModel( "PMC3_04", "models/player/PMC_3/PMC__04.mdl" ) list.Set( "PlayerOptionsModel", "PMC3_04", "models/player/PMC_3/PMC__04.mdl" ) |
local dc1 = DifficultyIndexColor(1)
local dc2 = DifficultyIndexColor(2)
local image = ThemePrefs.Get("VisualTheme")
local t = Def.ActorFrame{
OffCommand=cmd(linear,1)
}
-- centers
t[#t+1] = Def.ActorFrame {
InitCommand=cmd(diffusealpha,0);
OnCommand=cmd(x,_screen.cx;y,_screen.cy+50;diffusealpha,1;decele... |
return function (Data)
local NeedAddReturn = false
return ValidLua(Data, NeedAddReturn)
end
|
name = "[SW]托托莉Totooria"
description =
[[托托莉.赫尔蒙德 阿兰德的炼金术师
初始智商高,血量低,攻击力低
吃聪明豆升级,吃龙人心洗点
不同的等级能自动学到不同的生存特技
可以读书,可以制造更多的物品
自带托托莉的法杖,可以升级
高级的法杖能有更多的用处
]]
author = "柴柴"
version = "1.9.0"
forumthread = ""
api_version = 6
dont_starve_compatible = true
reign_of_giants_compatible = true
dst_compatible ... |
local AddPrefabPostInit = AddPrefabPostInit
GLOBAL.setfenv(1, GLOBAL)
local nightmare_prefabs =
{
"crawlinghorror",
"terrorbeak",
"swimminghorror",
}
local function sanity_reward_postinit(inst)
if not TheWorld.ismastersim then return end
local oldOnKilledByOther = inst.components.combat.onkilledb... |
local I2C = require("hardware.i2c")
local M = Class()
local REG_SECOND = 0x0
local REG_MINUTE = 0x1
local REG_HOUR = 0x2
local REG_DAY = 0x3
local REG_DATE = 0x4
local REG_MONTH = 0x5
local REG_YEAR = 0x6
local REG_CTRL = 0x7
local REG_RAM = 0x8
function M:init(bus)
self.i2c = I2C.new(bu... |
-- Chinese Translation Valkyrie@CWDG
if GetLocale() ~= "zhCN" then return end
local media = LibStub("LibSharedMedia-3.0")
--Event and Damage option values
SCT.LOCALS.OPTION_EVENT1 = {name = "伤害", tooltipText = "显示受到的近战伤害与其他伤害(火焰、摔落等)"};
SCT.LOCALS.OPTION_EVENT2 = {name = "未击中", tooltipText = "显示敌人未击中你的近战攻击"}... |
local theme_path = require("gears.filesystem").get_configuration_dir() .. "theme/"
local theme = {}
theme.wallpaper_name = "lake"
theme.wallpaper_dir = theme_path .. "dynamic-wallpaper"
theme.wallpaper = function(s)
local h = os.date("*t", os.time()).hour
return theme.wallpaper_dir .. "/" .. theme.wallpaper_... |
AddCSLuaFile()
local function rb655_property_filter( filtor, ent, ply )
if ( type( filtor ) == "string" && filtor != ent:GetClass() ) then return false end
if ( type( filtor ) == "table" && !table.HasValue( filtor, ent:GetClass() ) ) then return false end
if ( type( filtor ) == "function" && !filtor( ent, ply ) ) ... |
----------------------------------------------------------------------------
-- LuaJIT ARM64BE disassembler wrapper module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
------------------------------------------------------------------... |
if not modules then modules = { } end modules ['luat-fmt'] = {
version = 1.001,
comment = "companion to mtxrun",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local format = string.format
l... |
--Ext.AddPathOverride("Public/Game/GUI/characterSheet.swf", "Public/lx_luxen_gm_rulesystem_ff4dba5a-16e3-420a-aa51-e5c8531b0095/Game/GUI/characterSheet.swf")
-- Ext.Require("SRP_StatsPatching.lua")
-- Ext.Require("SRP_ShadowPower_Client.lua")
Ext.Require("BootstrapShared.lua")
-- Ext.Require("Stats/Client/CustomStatsCl... |
module("Editor",package.seeall);
function Point(x, y, size, coler, alpha)
if not EDIT then return end
for j = -size/2, size/2 do
for k = -size/2, size/2 do
obj.putpixel(x + j, y + k, coler, alpha);
end
end
end |
local AddonName, MethodDungeonTools = ...
MethodDungeonTools.U = {}
local U = MethodDungeonTools.U
U.count_if = function(t, func)
local count = 0
for k, v in pairs(t) do
if func(v) then
count = count + 1
end
end
return count
end
U.lerp = function(a, b, alpha)
return ... |
return {
mod_description = {
en = "Any Weapon"
},
} |
-- title: Axayacalt Tomb
-- author: VERHILLE Arnaud - gist974@gmail.com
-- desc: Axayacalt's Tomb Port for TIC-80
-- graphics: 24x24 tiles & sprites by Petitjean & Shurder
-- script: Lua
-- INIT --------------------------------------------------------
----------------------------------------------------------------... |
local model = require "tiled.model"
local function TileAdapter(...)
local self = {
indices = arg
}
function self.getDataIterator(tiledTable)
local layerIdx = 1
local dataIdx = 1
return function()
while layerIdx <= #tiledTable.layers do
local layer = tiledTable.layers[layerIdx]
... |
function onStepHit()
if curStep == 639 then
makeAnimatedLuaSprite('sans','sans',100, 350);
addAnimationByPrefix('sans','idle','poopshitter bop',24,true);
scaleObject('sans', 1, 1);
addLuaSprite('sans', true)
end
if curStep == 640 then
makeAnimatedLuaSprite('poopshitterBG-trump... |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
wOS.ALCS = wOS.ALCS or {}
wOS.ALCS.Config = wOS.ALCS.Config or {}
wOS.ALCS.Config.Crafting = wOS.A... |
--- 模块功能:算法功能测试.
-- @author openLuat
-- @module crypto.testCrypto
-- @license MIT
-- @copyright openLuat
-- @release 2018.03.20
module(...,package.seeall)
require"utils"
--[[
加解密算法结果,可对照
http://tool.oschina.net/encrypt?type=2
http://www.ip33.com/crc.html
http://tool.chacuo.net/cryptaes
进行测试
]]
local slen = string.l... |
-- el codigo es un desastre, lo se, sorry :c
-- pero funciona :)
-- ~ serivesmejia
local class = require "lib.lua-oop"
local gameover_stage = require "game.stages.gameover_stage"
require "engine.core"
require "engine.stage"
require "engine.stage.object"
require "engine.objects.basic"
require "util.color"
require "ut... |
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Guslam
-- Starts Quest: Borghertz's Hands (AF Hands, Many job)
-- !pos -5 1 48 244
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/q... |
if not yatm_data_network then
return
end
|
local entity = {}
entity["level"] = [[32]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Agilao]]
entity["spellDeck"][2] = [[]]
entity["spellDeck"][3] = [[Tarunda]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[]]
entity["spellDeck"][6] = [[]]
entity["heritage"] = {}
entity["heritage"][1] = [[Fire]]
en... |
handlerConnect = nil
canScriptWork = true
addEventHandler('onResourceStart', getResourceRootElement(),
function()
handlerConnect = dbConnect( 'mysql', 'host=' .. get"*gcshop.host" .. ';dbname=' .. get"*gcshop.dbname", get("*gcshop.user"), get("*gcshop.pass"))
if handlerConnect then
dbExec( handlerConnect, "CREATE T... |
--------------------------------------------------------------------------------
-- modules that extend functionality of the string.
--------------------------------------------------------------------------------
local M = {}
setmetatable(M, {__index = string})
local string = M
---------------------------------------... |
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
local startSounds = {
"npc/overwatch/radiovoice/on1.wav",
"npc/overwatch/radiovoice/on3.wav",
"npc/metropolice/vo/on2.wav"
};
local endSounds = {
"npc/metropolice/vo/off1.wav",
"npc/metropolice/vo/off2.wav",
"npc/metropolice/vo/off3.wav",
"npc/metropolice/vo/... |
workspace "Apate"
architecture "x64"
startproject "Sandbox"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir["GLFW"] ... |
controller = class("controller")
function controller:initialize()
self.currentPlayer = 1
players[self.currentPlayer].beingControlled = true
self.team = 1
self.bulletCooldown = 0
end
function controller:update(dt)
if not players[self.currentPlayer] then
self:switchToRandom()
end
if players[self.currentP... |
ESX = nil
local playerInventory = {}
local Stashs = {}
local Drops = {}
local ESXItems = {}
local Shops = {}
local invopened = {}
local openedinventories = {}
local Gloveboxes = {}
local Trunks = {}
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
print( ('^1[%s]^2 is starting..^7'):format(... |
return Def.ActorFrame{
Def.Quad{
InitCommand=cmd(setsize,SCREEN_WIDTH,SCREEN_HEIGHT/2;diffuse,color("0,0,0,1");xy,SCREEN_CENTER_X,SCREEN_CENTER_Y;valign,1);
OnCommand=cmd(y,SCREEN_CENTER_Y;linear,0.3;y,SCREEN_CENTER_Y-SCREEN_HEIGHT/2);
};
Def.Quad{
InitCommand=cmd(setsize,SCREEN_WIDTH,SCREEN_HEIGHT/2;dif... |
local M = {}
M.file_browser = function()
local cwd = require('telescope.utils').buffer_dir()
-- https://github.com/nvim-telescope/telescope-file-browser.nvim#mappings
require('telescope').extensions.file_browser.file_browser({
cwd = cwd,
follow = true,
hidden = true,
no_ignore = true,
})
end
M... |
---- -*- Mode: Lua; -*-
----
----
----
---- © Copyright IBM Corporation 2016.
---- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html)
---- AUTHOR: Jamie A. Jennings
function luac(name)
local luac_bin = ROSIE_HOME .. "/... |
function characterExist(cid)
if not cid then return false end
local exist = MySQL.scalar.await([[
SELECT id
FROM characters
WHERE id = ?
]],
{ cid })
if not exist then return false end
return true
end
function getCharacter(cid, info)
if not cid then return 0 end
... |
return
function()
local Person = {
new = function(self)
local o = {}
setmetatable(o, self)
o.addedToPop = false
o.age = 0
o.ancName = ""
o.ancRoyal = false
o.birth = 0
o.birthplace = ""
o.cbelief = 0
o.children = {}
o.cIndex = 0
o.city = nil
o.death = 0
o.d... |
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec
-- Command line: A:\Work\MODDING\Github\TTDS-NoOutlines\WDC_pc_WalkingDead403_data\RiverShorelineNight_temp.lua
-- params : ...
-- function num : 0 , upvalues : _ENV
require("AI_PlayerProjectile.lua")
local kScript = "RiverShor... |
return {
include = function()
includedirs "../vendor/enet/include/"
links { 'ws2_32', 'winmm' }
end,
run = function()
language "C"
kind "StaticLib"
files_project "../vendor/enet/" {
"*.c"
}
end
} |
require 'torch'
require 'nn'
require 'image'
require 'optim'
local loadcaffe_wrap = require 'loadcaffe_wrapper'
--------------------------------------------------------------------------------
local cmd = torch.CmdLine()
-- Basic options
cmd:option('-style_image', 'examples/inputs/seated-nude.jpg',
'Styl... |
AddCSLuaFile()
if( CLIENT ) then
SWEP.PrintName = "Entity Position Helper";
SWEP.Slot = 0;
SWEP.SlotPos = 0;
SWEP.CLMode = 0
end
SWEP.HoldType = "fists"
SWEP.Category = "Nutscript"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_pistol.mdl"
SWEP.WorldModel ... |
require("imlua")
require("iuplua")
require("iupluaimglib")
require("iupluaim")
require("cdlua")
require("iupluacd")
--********************************** Images *****************************************
function load_image_PaintLine()
local PaintLine = iup.imagergba
{
width = 16,
height = 16,
pixels ... |
---------------------------------------------------------------------------
-- lm_monst.lua
-- Create a monster on certain events
--------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- This marker creates a monster o... |
------------------------------------------------------------------------------------------------------
-- Local variables
------------------------------------------------------------------------------------------------------
local Cryolysis3 = Cryolysis3;
local L = LibStub("AceLocale-3.0"):GetLocale("Cryolysis3");
--... |
-- function readCSV(filename, itemnames)
-- read CSV file if itemnames is set, use the first line as item name
-- returns table[1..nlines] of tables with items,
-- and returns table with ordered heading (needed to rewrite)
-- function writeCSV(t, filename, heads)
-- write table t as CSV file; if heads passed use head... |
require( "utils" )
medusa_mystic_snake_dm2017 = class({})
--------------------------------------------------------------------------------
function medusa_mystic_snake_dm2017:OnSpellStart()
local hTarget = self:GetCursorTarget()
if hTarget == nil or hTarget:IsInvulnerable() then
return
end
self.radius = self:... |
--
-- Copyright (c) 2017-2018 Nicholas Corgan (n.corgan@gmail.com)
--
-- Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
-- or copy at http://opensource.org/licenses/MIT)
--
local pkmn = require("pkmn")
local pkmntest_utils = require("pkmntest_utils")
local luaunit = require("luaunit")
loca... |
local M = {}
local server
wifi.ap.config({ssid = "TomatoHeart"})
print("\nCurrent SoftAP configuration:")
for k,v in pairs(wifi.ap.getconfig(true)) do
print(" "..k.." :",v)
end
print(" IP:", wifi.ap.getip())
function M.start(cb)
if wifi.getmode() ~= wifi.STATIONAP then
wifi.setmode(wifi.STATIONAP)
print("Swit... |
function Clone_Copy(slot0, slot1)
if type(slot0) ~= "table" then
return slot0
elseif slot1[slot0] then
return slot1[slot0]
end
slot1[slot0] = {}
slot3 = type(slot0) == "table" and slot0.__ctype == 2
for slot7, slot8 in pairs(slot0) do
if slot3 and slot7 == "class" then
slot2[slot7] = slot8
else
sl... |
-- Manually converted to Lua from:
-- https://github.com/w3c/web-platform-tests/blob/8c07290db5014705e7daa45e3690a54018d27bd5/dom/nodes/Element-getElementsByClassName.html
local gumbo = require "gumbo"
local ElementList = require "gumbo.dom.ElementList"
local NodeList = require "gumbo.dom.NodeList"
local input = [[
<... |
return {
mod_name = {
en = "Weapon Switch Fix"
},
mod_description = {
en = "Fix for all the weapon switching foibles."
},
} |
-----------------------------------
--
-- Zone: Bostaunieux_Oubliette (167)
--
-----------------------------------
local ID = require("scripts/zones/Bostaunieux_Oubliette/IDs")
require("scripts/globals/conquest")
-----------------------------------
function onInitialize(zone)
UpdateNMSpawnPoint(ID.mob.DREXERION_TH... |
local screen = require("OS2D.screens.screen")
local screenmanager = {
states = {};
current = screen:new();
}
function screenmanager:registerstate(name, state)
state = state or screen:new()
state.screenmanager = self
self.states[name] = state
return state
end
function screenmanager:switchstate... |
-- TODO: not sure if this warrants its own library... perhaps make it more full-featured?
-- Functionality to disable our custom UI listeners.
local custom_ui_listeners_enabled = true
local custom_ui_listeners = {}
-- Disables our custom UI listeners while calling given func with no arguments.
-- If return_pcall_rvs... |
---------------------------------------------------------------------
CLASS: SQNodeMoveTo ( SQNode )
:MODEL{
Field 'target' :type( 'vec2' ) :getset( 'Target' )
}
function SQNodeMoveTo:__init()
self.target = { 0, 0 }
end
function SQNodeMoveTo:getTarget()
return unpack( self.target )
end
function SQNodeMoveTo:set... |
--[[
=== test_moe.lua
]]
------------------------------------------------------------------------
local moe = require "he.moe"
local he = require"he"
--~ he.pp(moe)
--~ print("crypto and nonce generation: ", moe.use())
local a, b = moe.use()
assert(a == "plc" or a == "luazen")
assert(b == "randombytes" or b == "... |
-- HTTP-message = start-line
-- *( header-field CRLF )
-- CRLF
-- [ message-body ]
--
-- start-line = request-line / status-line
--
-- request-target = origin-form
-- / absolute-form
-- / authority-form
-- / a... |
-- vim : ft=lua ts=2 sw=2 et:
local _,ne,nw,nw4,sw,sw4,ne46,w26,sw46
_ = 0
ne={{_,_,_,1,2,_}, -- bad if lohi
{_,_,_,_,1,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_}}
nw={{2,1,_,_,_,_}, -- bad if lolo
{1,_,_,_,_,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_},
{_,_,_,_,_,_}}
nw4... |
--[[
@Authors: Ben Dol (BeniS)
@Details: Paths bot module handler for module registration
and control.
]]
dofile('paths.lua')
-- required by the event handler
function PathsModule.getModuleId()
return "PathsModule"
end
PathsModule.dependencies = {
"BotModule"
}
--[[ Default Options ]]
PathsModu... |
-- Initialize I2C bus with SDA on GPIO0, SCL on GPIO2
-- https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#new_gpio_map
i2c.setup(0, 3, 4, i2c.SLOW)
-- Initialize PCA9685 PWM controller
-- Args:
-- i2c bus id (should be 0)
-- i2c address (see pca9685 datasheet)
-- mode - 16-bit value, low byte is MODE1, ... |
--------------------------------
-- @module Scene
-- @extend Node
-- @parent_module cc
--------------------------------
-- @function [parent=#Scene] getPhysicsWorld
-- @param self
-- @return PhysicsWorld#PhysicsWorld ret (return value: cc.PhysicsWorld)
--------------------------------
-- @function [parent=#... |
------------------------------------------ Библиотеки -----------------------------------------------------------------
local component = require("component")
local colorlib = require("colorlib")
local event = require("event")
local gpu = component.gpu
local printer = component.printer3d
local hologram = component.h... |
--[[
An implementation of Promises similar to Promise/A+.
]]
local tutils = require(script.Parent.tutils)
local PROMISE_DEBUG = true
-- If promise debugging is on, use a version of pcall that warns on failure.
-- This is useful for finding errors that happen within Promise itself.
local wpcall
if PROMISE_DEBUG then
... |
-- @Date : 2016-04-19 17:21:31
-- @Author : MiaoLian (mlian@ulucu.com)
-- @Version : 1.0
-- @Description :
local ngx_re_match = ngx.re.match
local lib_printable = require("application.lib.sim_printable_lib")
local _M = { _VERSION = '0.01' }
local mt = { __index = _M }
function _M.check_number(self,... |
getgenv().Color = Color3.fromRGB(141, 115, 245)
getgenv().Material = Enum.Material.ForceField
game.RunService.Heartbeat:Connect(function()
if (workspace.CurrentCamera["Left Arm"] ~= nil) then
for i, v in pairs(workspace.CurrentCamera:GetChildren()) do
if (v:IsA("Model") and v.Name:find("A... |
-- Change the target FPS here. See README.md for notes on choosing a value.
local targetFps = 50
-- Change this if you want the addon to mess with the FPS counter. This is turned off by default because it's hacky
-- and ugly.
local hackTheFpsCounter = false
local DDPID = {}
DDPID.version = 1
DDPID.name = "DD... |
local NeP, g = NeP, NeP._G
local KEYBINDS = {
-- Shift
['shift'] = function() return g.IsShiftKeyDown() end,
['lshift'] = function() return g.IsLeftShiftKeyDown() end,
['rshift'] = function() return g.IsRightShiftKeyDown() end,
-- Control
['control'] = function() return g.IsControlKeyDown() end,
... |
-- This script was generated by Lokasenna_Show only specified tracks.lua
local settings = {
showsiblings = false,
showparents = false,
tcp = false,
mcp = true,
matchonlytop = true,
search = "Guitar",
showchildren = true,
matchmultiple = true,
}
local info = debug.getinfo(1,'S');
script_path = info.source:... |
return {
-- Polar Night
dark_black = '#2e3440', -- bg
black = '#3b4252',
dark_black_inactive = "#353B49",
bright_black = '#434c5e',
gray = '#4c566a',
-- Custom
darkish_black = '#3B414D',
-- grayish = '#667084',
grayish = '#7b88a1',
dark_black_alt = '#2B303B',
-- Snow St... |
object_tangible_quest_outbreak_group_boss_fight_terminal = object_tangible_quest_outbreak_shared_group_boss_fight_terminal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_outbreak_group_boss_fight_terminal, "object/tangible/quest/outbreak/group_boss_fight_terminal.iff")
|
local serpent = require("nes.libs.serpent")
local UTILS = require("nes.utils")
local CPU = require("nes.cpu")
local band, bor, bxor, bnot, lshift, rshift = bit.band, bit.bor, bit.bxor, bit.bnot, bit.lshift, bit.rshift
local map, rotatePositiveIdx, nthBitIsSet, nthBitIsSetInt, range, bind =
UTILS.map,
UTILS.rot... |
-- Online Player List Soft Module
-- Displays a list of current players
-- Uses locale player-list.cfg
-- @usage require('modules/common/online-player-list')
-- ------------------------------------------------------- --
-- @author Denis Zholob (DDDGamer)
-- github: https://github.com/deniszholob/factorio-softmod-pack
-... |
local cm = require("codim")
cm.set_video_opts {
width = 1920,
height = 1080,
output = "out.mp4",
fps = 24,
}
cm.fill_frame("#000")
cm.draw_rect {
x = 10,
y = 10,
width = 1920 - 20,
height = 20,
color = "#0055ff",
}
local function read_file(file_path)
local f ... |
local EdgeListMap = {}
function EdgeListMap:new(o)
if not (o and o.edgeLists) then
error("Required Property edgeLists is missing")
end
setmetatable(o, self)
self.__index = self
self.edgeListMap = {}
for _, edgeList in ipairs(o.edgeLists) do
if edgeList.type and e... |
-- 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.
local tnt = require ... |
---@class CS.FairyEditor.ComponentAsset.DisplayListItem
---@field public packageItem CS.FairyEditor.FPackageItem
---@field public pkg CS.FairyEditor.FPackage
---@field public type string
---@field public desc CS.FairyGUI.Utils.XML
---@field public missingInfo CS.FairyEditor.MissingInfo
---@field public existingInstance... |
CampDialogLayer = class("CampDialogLayer", function ( )
return cc.Layer:create()
end)
CampDialogLayer.instance = nil
local function buySoldierTemple(self, prefix)
local goldCount = GM:getGoldCount()
local ui = self:getChildByName("UI")
local campLevel = GM:getLevel("Camp")
local cost = GM:getSoldierCost(prefix... |
----------------------------------------------------------------------
-- CGAL multi delaunay ipelet description
----------------------------------------------------------------------
label = "k order Delaunay"
about = [[
This ipelet is part of the CGAL_ipelet package. See www.cgal.org.
]]
-- this variable will stor... |
---
-- @module ParcelGrid
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Class = require( 'lib.Middleclass' )
local Parcel = require( 'src.map.procedural.Parcel' )
-- ------------------------------------------------
-- Module
-- --... |
local _, class = UnitClass("player")
local returndata = {}
local summeddata = {}
local function findpattern(text, pattern, start)
if (text and pattern and (string.find(text, pattern, start))) then
return string.sub(text, string.find(text, pattern, start))
else
return ""
end
end
local function round... |
--[[
Notify players of enabled mutators via chat and tab menu
--]]
local vmf = get_mod("VMF")
local _were_enabled_before = false
-- #####################################################################################################################
-- ##### Local functions #########################################... |
--hookshit
-- self explanatory
local hooknum = 0
function hook.RunOnce(str, func)
hooknum = hooknum + 1
local c = "temporary_hook_" .. hooknum
hook.Add( str, c, function( ... )
func( ... )
hook.Remove(str, c)
end)
end
-- ever have some retarded code that executes once in a while or a ... |
---@diagnostic disable: undefined-global
local palette = require 'nord-palette'
local base = require 'base'
-- vim-startify
-- > mhinz/vim-startify
local clrs = palette.clrs
local pkg = function()
return {
StartifyFile {fg = clrs.nord11},
StartifyFooter {fg = clrs.nord7},
StartifyHeader {fg = clrs.nord1... |
--[[------------------------------------------------------------------------------------------------------
Edit this
--------------------------------------------------------------------------------------------------------]]
local addon_name = 'CQB Base'
local required_version = 2.1
--[[---------------------... |
GhostBan = GhostBan or {}
--[[-------------------------------------------------------------------------
DON'T CHANGE CONFIG IN THIS FILE, USE IN-GAME CONFIG MENU
---------------------------------------------------------------------------]]
GhostBan.CanHurt = false -- Ghost can hurt other players / entities ( Amityvi... |
local mtint = require("mtint")
local _, err = pcall(function()
mtint.interrupt(1)
end)
assert(err:match(mtint.error.unknown_object))
assert(mtint.error.unknown_object == "mtint.error.unknown_object")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.