content stringlengths 5 1.05M |
|---|
require(PluginPath..'/scripts/gen_setting')
require(PluginPath..'/scripts/code_writer')
require(PluginPath..'/scripts/gen_lua')
App.consoleView:Clear()
---@param handler CS.FairyEditor.PublishHandler
function onPublish(handler)
local setting = GenSetting.new()
if setting:IsGenLua() then
handler.genCod... |
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec
-- Command line: A:\Steam\twd-definitive\scripteditor-10-31-20\definitive_lighting_improvements\WDC_pc_WalkingDead201_data\Episode_temp.lua
-- params : ...
-- function num : 0 , upvalues : _ENV
Episode_Init = function()
-- fun... |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
local drone = self:GetNWEntity("DronesRewriteDrone")
if drone:IsValid() then
local ang = (self:GetPos() - LocalPlayer():GetPos()):Angle()
ang.p = 0
ang:RotateAroundAxis(ang:Up(), -90)
ang:RotateAroundAxis(ang:Forward(), 90)
cam.Start3D2D(self:Ge... |
--[[--ldoc desc
@module CardBase
@author KevinZhang
Date 2018-06-20 18:06:56
Last Modified by VincentZhang
Last Modified time 2018-09-03 18:17:20
]]--出牌规则库基类
local CardBase = class(LibBase, "CardBase")
local __defaultTab = {
__index = function (t,k)
local v = {};
rawset(t,k,v);
return v;
en... |
function vector_magnitude(v)
return sqrt(v[1] * v[1] + v[2] * v[2])
end
function vector_normalize(v)
m = vector_magnitude(v)
if (m == 0) then return v end
return { v[1] / m, v[2] / m }
end
function vector_scale(v, s)
return { v[1] * s, v[2] * s }
end
function vector_add(v1, v2)
return ... |
local app = app
local Env = require "Env"
local Class = require "Base.Class"
local Object = require "Base.Object"
local off = 0
local fg = 1
local bg = 2
local MuteGroup = Class {}
MuteGroup:include(Object)
function MuteGroup:init()
self:setClassName("MuteGroup")
self.channels = {}
self.soloist ... |
------------------
-- Window class --
------------------
require "lfs"
-- Window class table
window = {}
-- List of active windows by window widget
window.bywidget = setmetatable({}, { __mode = "k" })
-- Widget construction aliases
local function entry() return widget{type="entry"} end
local function eventbox... |
--[[
(C) Copyright 2014 William Dyce
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Lesser General Public License
(LGPL) version 2.1 which accompanies this distribution, and is available at
http://www.gnu.org/licenses/lgpl-2.1.html
This library is distri... |
function onCreate()
makeLuaSprite("Sky","hell", -200,-150)
addLuaSprite("Sky",false)
setLuaSpriteScrollFactor("Sky", 0.2,0.2);
makeLuaSprite("Sky2","middlethinghellbob", -200,-150)
addLuaSprite("Sky2",false)
setLuaSpriteScrollFactor("Sky2", 0.3,0.3);
makeLuaSprite("Sky3","theydead", -2... |
----------------------------------------------------------------------------------------------------
--
-- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
-- its licensors.
--
-- For complete copyright and license terms please see the LICENSE at the root of this
-- distribution (the "Li... |
-- Block kills/Unkills for 1.3 second
local function SetCooldown(curChar)
local player = curChar:GetPlayer()
if not player then return end
player:SetValue("LL_KillCoolDown", true)
_Timer.Simple(1.3, function()
player:SetValue("LL_KillCoolDown", false)
end)
end
-- Unkill player
local func... |
local K, C, L = unpack(select(2, ...))
local Module = K:GetModule("Automation")
local _G = _G
local IsInInstance = _G.IsInInstance
local C_DeathInfo_GetSelfResurrectOptions = _G.C_DeathInfo.GetSelfResurrectOptions
local C_Map_GetBestMapForUnit = _G.C_Map.GetBestMapForUnit
local function PLAYER_DEAD()
-- If player h... |
local bundle = require('luvi').bundle
local fs = require('fs')
local los = require('los')
local path = require('luvi').path
function fs.extname(filename)
return filename:match('%.[^./]+$') or ''
end
function fs.basename(filename)
return filename:match('[^/]+$'):sub(1, -#fs.extname(filename) - 1)
end
local functi... |
{data={name="133T-5G61L", author="7paperplane"}, blocks={
{0x1cafc0, {48.174, 0}, command={faction=1880}},
{0x1cafc7, {122.871, 24.27}, 1.257},
{0x1cafc7, {122.871, 40.451}, 1.257},
{0x1cafc7, {117.85, 132.082}},
{0x1cafc7, {113.597, 118.992}, 0.628},
{0x1cafc2, {112.785, 108.402}, 0.628},
... |
local class = require("pl.class")
local tablex = require("pl.tablex")
---@class CommandManager : Class
local M = class()
function M:_init() self.commands = {} end
function M:get(command) return self.commands[command] end
function M:add(command)
self.commands[command.name] = command
if command.aliases then
... |
local upgradeButton1Z = {
state = false,
object = Find("Skill 1 - Upgrade 1"),
unlocked = true,
id = 11
}
local upgradeButton2Z = {
state = false,
object = Find("Skill 1 - Upgrade 2"),
unlocked = false,
id = 12
}
local upgradeButton3Z = {
state = false,
object = Find("Skill 1 - U... |
local weapon_class = 'weapon_quest_structure_tool'
sgui.RouteRegister('qsystem/editor/quest/structures', function(quest)
net.Start('sv_qsystem_open_structure_editor')
net.SendToServer()
local is_back = true
local frame = vgui.Create('DFrame')
frame:SetPos(20, 20)
frame:SetSize(550, 350)
frame:SetTitle('Select ... |
-- Additional recipes if Space Exploration mod is enabled
local util = require("__bztitanium__.data-util");
if mods["space-exploration"] then
se_delivery_cannon_recipes["titanium-ore"] = {name= "titanium-ore"}
se_delivery_cannon_recipes[util.titanium_plate] = {name= util.titanium_plate}
if mods["Krastorio2"] the... |
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local responses = require "kong.tools.responses"
local app_helpers = require "lapis.application"
local decode_base64 = ngx.decode_base64
local encode_base64 = ngx.encode_base64
local encode_args = ngx.encode_args
local tonu... |
--------------------------------
-- @module TransitionSlideInR
-- @extend TransitionSlideInL
-- @parent_module cc
--------------------------------
-- returns the action that will be performed by the incoming and outgoing scene
-- @function [parent=#TransitionSlideInR] action
-- @param self
-- @return Act... |
function getDataFromSettings ()
setElementData(localPlayer, "DENsettings.helmetenabled", exports.DENsettings:getPlayerSetting("helmetenabled"))
end
addEvent("AURhelmet.getDataFromSettings", true)
addEventHandler("AURhelmet.getDataFromSettings", localPlayer, getDataFromSettings) |
-- 3D UI classes
-- Assumes pl, ent and mode are in namespace
namespace "standard"
local DebugHand = require "app.debug.hand"
local ui3 = {}
-- This "magic" value is set to the surface being processed whenever ui3 synthesizes a click.
-- A ui2 can use this to learn the "true" source of an event was ui3.
... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
local CreateFrame = CreateFrame
local hooksecurefunc = hooksecurefunc
local function LoadSkin()
if E.private... |
-- Handles populating the recipe picker dialog
function open_recipe_picker_dialog(flow_modal_dialog)
local player = game.get_player(flow_modal_dialog.player_index)
local ui_state = get_ui_state(player)
local product = ui_state.selected_object
flow_modal_dialog.parent.caption = {"fp.add_recipe"}
flo... |
local BRACKET = {
['['] = ']',
['{'] = '}',
["'"] = "'",
['"'] = '"',
}
local pprint = require('pprint')
if not unpack then unpack = table.unpack end
-- time to reinvent the wheel...
local deque = require('deque')
local function remove_item(array, value)
for i, v in ipairs(array) do
if v =... |
local config = require("rust-tools.config")
local inlay = require("rust-tools/inlay_hints")
local M = {}
function M.handler(_, result)
if result.quiescent and not M.ran_once then
if config.options.tools.autoSetHints then
inlay.set_inlay_hints()
inlay.setup_autocmd()
end
if config.options.tools.on_initial... |
-- imgui demo script
-- Folke Will 2018-07-15
-- It is suggested to look at the window created by this script while reading this.
if not SUPPORTS_FLOATING_WINDOWS then
-- to make sure the script doesn't stop old FlyWithLua versions
logMsg("imgui not supported by your FlyWithLua version")
return
end
-- im... |
require "busted.runner"()
describe("Warnning", function()
_G.print = function() end
describe("Nil", function()
it("should have an warn message", function()
local warning = require "ptable.warning"
spy.on(_G, "print")
warning.Nil("test", nil)
... |
-- server-only mod, exit early on client
if not GLOBAL.TheNet:GetIsServer() then do return end end
local json = require("json")
modimport("lib/const") -- imports "C"
modimport("lib/util") -- imports "util"
modimport("lib/logging") -- imports "Log"
modimport("client/discord") -- imports "DiscordClien... |
PROJECT_NAME = path.getname(os.getcwd())
minko.project.library("minko-plugin-" .. PROJECT_NAME)
minko.plugin.enable { "ssl" }
files {
"include/**.hpp",
"src/**.cpp",
"src/**.hpp"
}
includedirs {
"include",
"src"
}
configuration { "html5" }
excludes {
"src/minko/net/NativeWebSocketImpl.hpp",
... |
object_static_structure_content_meatlump_sewer_pipe_single_2ends_s03 = object_static_structure_content_meatlump_shared_sewer_pipe_single_2ends_s03:new {
}
ObjectTemplates:addTemplate(object_static_structure_content_meatlump_sewer_pipe_single_2ends_s03, "object/static/structure/content/meatlump/sewer_pipe_single_2ends_s... |
---------------------------------------------------------------------------------
-- @author dreamlover
-- @brief This is a sample lua file with comments.
---------------------------------------------------------------------------------
-----------------------------------------------------------------------------... |
local checkpoints = require("Checkpoints/checkpoints")
local nocrap = require("Modules.Dregu.no_crap")
local timed_doors = require("Modules.GetimOliver.timed_door")
local neobabylon2 = {
identifier = "neobabylon 2",
title = "Neo Babylon1 2: Emergency Access Doors",
theme = THEME.NEO_BABYLON,
width = 8,... |
object_tangible_food_generic_dish_meat_jerky = object_tangible_food_generic_shared_dish_meat_jerky:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dish_meat_jerky, "object/tangible/food/generic/dish_meat_jerky.iff")
|
return function(x, y)
local sprite = component.sprite.new()
sprite.name = 'red_beetle'
local transform = component.transform.new()
transform.pos.x = x
transform.pos.y = y
local body = component.body.new()
body.type = 2
body.layer = 5
body.left = -0.25
body.right = 0.25
bod... |
-- Import SM for statusbar-textures, font-styles and border-types
local SharedMedia = LibStub("LibSharedMedia-3.0");
-- Import translation
local L = WeakAuras.L;
-- Create region options table
local function createOptions(id, data)
-- Region options
local options = {
texture = {
type = "... |
require "c2xa.extend"
require "c2xa.moving"
action = action or {}
function action.create_enemy( setting )
return cc.CallFunc:create(function()
local enemy
local default = {
duration = 10.0,
point = 1000,
fire = nil,
}
setting = ex... |
local key = KEYS[1]
local value = ARGV[1]
redis.replicate_commands()
if (redis.call('exists', key) == 1 and redis.call('get', key) == value)
then
return redis.call('del', key)
end
return 0 |
data:extend({
{
type = "string-setting",
name = "robots-help",
setting_type = "startup",
default_value = "No",
allowed_values = {"Yes", "No"}
},
{
type = "string-setting",
name = "alternative-science-r1",
setting_type = "startup",
default_value = "No",
allowed_values = {"Yes", "No"}
}
}) |
local args = ({...})[1]
local tickPos = args.PositionX
local diff = args.Difficulty
local trackPN = args.TrackPN
local FindSteps = function(song) return song:GetOneSteps(GAMESTATE:GetCurrentStyle():GetStepsType(), diff) end
if trackPN then
FindSteps = function()
local steps = GetCurrentStepsPossiblyCPU(tra... |
local key = require('lib/keybindings')
key.map('n', '<leader>ff', "<cmd>lua require('telescope.builtin').find_files()<CR>", { noremap = true })
key.map('n', '<leader>fg', "<cmd>lua require('telescope.builtin').live_grep()<CR>", { noremap = true })
key.map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffe... |
--[[
Copyright (c) 2016-2018 Calvin Rose and contributors
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, p... |
-- LPSConfig Keymaps
local opts = { noremap=true, silent=true }
local map = vim.api.nvim_set_keymap
-- map('n', '<space>e', '<Cmd>lua vim.diagnostic.open_float()<CR>', opts)
-- map('n', '[d', '<Cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
-- map('n', ']d', '<Cmd>lua vim.diagnostic.goto_next()<CR>', opts)
-- map('n',... |
object_tangible_loot_generic_usable_stim_syringe_generic_lt_4 = object_tangible_loot_generic_usable_shared_stim_syringe_generic_lt_4:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_stim_syringe_generic_lt_4, "object/tangible/loot/generic/usable/stim_syringe_generic_lt_4.iff")
|
-- *********************************************************
-- ** Deadly Boss Mods - GUI **
-- ** http://www.deadlybossmods.com **
-- *********************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich (Tanda... |
--
-- Implementation of the command line interface as called by 'lua-mud(1)'
--
local lua_mud = require 'mud.mud'
local iptables_rb = require("mud.rulebuilders.iptables")
local mud_cli = {}
--
-- internal functions
--
function help(rcode, error_msg)
if error_msg ~= nil then
print("Error: " .. error_msg)
pr... |
--
-- http://p-monster.hatenablog.com/entry/2013/02/22/215402
--
-- Const = require "const"
-- test = Const:new{"aa", "bb", cc = 100}
-- print(test.aa) --> "aa"
-- print(test.bb) --> "bb"
-- print(test.cc) --> 100
-- print(#test) --> 0 (Lua5.1) or 3 (Lua5.2)
-- print(test:len()) --> 3
--print(test.dd) --> error :... |
project "Premake"
kind "Utility"
targetdir(TARGET_DIR)
objdir(OBJ_DIR)
files{
"%{wks.location}/**premake5.lua"
}
postbuildmessage "Regenerating project files with Premake5!"
postbuildcommands{
"\"%{prj.location}bin/premake5\" %{_ACTION} --file=\"%{wks.location}premake5.lua\""
} |
--[[
Write a function to compute the volume of a right circular cone, given its height and the angle between a generatrix and the axis.
]]
function conevolume(h, theta)
r = h * math.tan(theta)
return math.pi * r^2 * h / 3
end
print(conevolume(1, math.rad(45))) --> 1.0471975511966
|
---
-- Trouble in Terrorist Town 2
include("ttt2/libraries/spawn.lua")
include("ttt2/libraries/entity_outputs.lua")
ttt_include("sh_init")
ttt_include("sh_cvar_handler")
ttt_include("sh_sprint")
ttt_include("sh_main")
ttt_include("sh_shopeditor")
ttt_include("sh_network_sync")
ttt_include("sh_door")
ttt_include("sh... |
--glue library, see http://code.google.com/p/lua-files/wiki/glue
local glue = {}
function glue.index(t)
local dt={} for k,v in pairs(t) do dt[v]=k end
return dt
end
function glue.keys(t)
local dt={} for k in pairs(t) do dt[#dt+1]=k end
return dt
end
function glue.update(dt,...)
for i=1,select('#',...) do
loc... |
local t = Def.ActorFrame{};
if GAMESTATE:IsPlayerEnabled('PlayerNumber_P1') then
--P1 Score Frame
t[#t+1]=Def.ActorFrame{
InitCommand=cmd(addy,-14);
LoadActor("MIXScoreFrame")..{
InitCommand=cmd(x,THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX"));
};
};
end;
if GAMESTATE:IsPlayerEnabl... |
local ENUM_METATABLE = {}
ENUM_METATABLE.__index = ENUM_METATABLE
return function(rawEnum, api)
local self = {
_api = api,
Name = rawEnum.Name,
}
return setmetatable(self, ENUM_METATABLE)
end |
positions = {}
rmarkers = {}
rblips = {}
mType = ""
mSize = 0
currentMarkerIndex = 0
rType = 0
function raceMarkerHit(hitElement, sameDim)
if (hitElement == localPlayer and sameDim) then
if (currentMarkerIndex < #positions) then
currentMarkerIndex = currentMarkerIndex + 1
if (rType == 1) then
showNextMark... |
local M = {}
local config = require("coverage.config")
local signs = require("coverage.signs")
local highlight = require("coverage.highlight")
local summary = require("coverage.summary")
local report = require("coverage.report")
--- Setup the coverage plugin.
-- Also defines signs, creates highlight groups.
-- @param... |
function onEnterTrigger(context, trigger, collider)
DisableMovementInput(context);
DisableAbilityInput(context);
player = GetPlayerCharacter(context);
PlaySound(context, "kid_help_1.adpcm");
DisplayTextbox(context, "Crusader", "What's that noise?");
YieldUntilInput(trigger);
PlaySound(context, "kid_h... |
--New
object_tangible_storyteller_prop_base_shared_storyteller_prop_base = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/storyteller/prop/base/shared_storyteller_prop_base.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_storyteller_prop_base_shared_storyteller_prop_base, "object... |
require'devices.GenericDevice'
DarkskySensor = {props = {}}
function DarkskySensor:new(o, opt)
local self = GenericDevice:new(o, opt)
self:extend(DarkskySensor)
self.props.value = ""
return self
end
function DarkskySensor:onWeatherData(eventParam)
self:onChangeProp({name = "value", value = eventParam.value})
en... |
local base = (...):gsub('%.?init$', '')
cpml = require(base.."/cpml")
iqm = require(base.."/iqm")
obj_reader = require(base.."/obj_reader")
ffi = require "ffi"
--anim9 = require "quinta/anim9"
local quinta = {
_LICENSE = "Quinta 3D is distributed under the terms of the MIT license. See LICENSE.",
_URL =... |
local ViewBase = require("games/common2/module/viewBase");
local MatchTipsView = class(ViewBase,false);
MatchTipsView.s_controls = {
txtNotification = 1;
bg = 2;
}
MatchTipsView.ctor = function ( self,seat,viewConfig)
super(self, viewConfig);
self.m_ctrls = MatchTipsView.s_controls;
self:setFil... |
if not(pcall(require, "aniseed.compile")) then
vim.api.nvim_command("PlugInstall")
end
local dir = vim.api.nvim_call_function("stdpath", {"config"})
require("aniseed.compile").glob("**/*.fnl", dir .. "/fnl", dir .. "/lua")
require("config")
|
return {
version = "1.5",
luaversion = "5.1",
tiledversion = "1.6.0",
name = "page01_img",
tilewidth = 54,
tileheight = 54,
spacing = 0,
margin = 0,
columns = 0,
objectalignment = "unspecified",
tileoffset = {
x = 0,
y = 0
},
grid = {
orientation = "orthogonal",
width = 1,
... |
local utils = require('metrics.utils')
local ok, membership = pcall(require, 'membership')
if not ok then
return { update = function() end }
end
local collectors_list = {}
-- from https://github.com/tarantool/cartridge/blob/cc607f5a6508449608f3953a3f93669e8c8c4ab0/cartridge/issues.lua#L375
local function update_... |
includeFile("tangible/collection/reward/buddy_painting_02.lua")
includeFile("tangible/collection/reward/col_reward_tatooine_vistas_painting.lua")
includeFile("tangible/collection/reward/buddy_painting_01.lua")
includeFile("tangible/collection/reward/datapad_painting_reward.lua")
includeFile("tangible/collection/reward/... |
se_weapons = {
EnergyBlaster = {
Name = "Energy Blaster",
Damage = 5,
Shots = 3,
Charge = 0,
IgnoreShileds = false,
ShotChanse = 70,
MaxCharge = 10
},
SimpleMissle = {
Name = "Simple Missle",
Damage = 20,
Shots = 1,
Charge = 0,
IgnoreShileds = true,
ShotChanse =... |
local Data = require('__stdlib__/stdlib/data/data')
Data{
type = 'sound',
name = 'nano-sound-build-tiles',
aggregation = {max_count = 3, remove = true, count_already_playing = true},
variations = {
{filename = '__base__/sound/walking/grass-01.ogg', volume = 1.0},
{filename = '__base__/s... |
mini_rosh_root = class(AbilityBaseClass)
LinkLuaModifier("modifier_mini_rosh_root_applier", "abilities/neutrals/oaa_mini_rosh_root.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_mini_rosh_root_effect", "abilities/neutrals/oaa_mini_rosh_root.lua", LUA_MODIFIER_MOTION_NONE)
function mini_rosh_root:GetIntrins... |
local boxWidth = SCREEN_CENTER_X*0.9
local boxHeight = SCREEN_HEIGHT*0.1
local boxColor = color("0,0,0.625,0.375")
return Def.Quad{ InitCommand=cmd(zoomto,boxWidth,boxHeight;diffuse,boxColor;diffusebottomedge,Brightness(boxColor,0.5)); }; |
-- Author : Ahmed A. Khfagy
-- done in CS50 intorduction to game Design course
-- this is the class for the entering high score state
EnterHighScoreState = Class{__includes = BasicState}
local chars = {
[1] = 65,
[2] = 65,
[3] = 65
}
local highlightedChar = 1
function EnterHighScoreState:enter(params)
... |
script_name = "Em-dash"
script_description = "I do not have an em-dash key on my keyboard"
script_author = "garret"
script_version = "2021-04-05"
em = "—"
function append(sub, sel)
for si, li in ipairs(sel) do
local line = sub[li]
line.text = line.text..em
sub[li] = line
end
aegisub.set_undo_point(script_name)... |
local HUD = Ambi.Base.HUD
HUD.Add( 0, 'Nothing' ) |
getgenv().Aimbot.Settings = {
SendNotifications = true,
SaveSettings = true, -- Re-execute upon changing
ReloadOnTeleport = true,
Enabled = true,
TeamCheck = false,
AliveCheck = true,
WallCheck = false, -- Laggy
Sensitivity = 0, -- Animation length (in seconds) before fully locki... |
#!/usr/bin/env lua
-- MoonODE example: mass.lua
local ode = require("moonode")
local glmath = require("moonglmath")
ode.glmath_compat(true)
local vec3, mat3 = glmath.vec3, glmath.mat3
-- add metamethods for printing masses:
local mt = getmetatable(ode.mass())
mt.__tostring = function(m)
return "total="..m.total.." ... |
-- !! Global changes !!
function string:split(sep)
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, function(c) fields[#fields+1] = c end)
return fields
end
function string:chomp()
local output = self:gsub("\n$", "")
return output
end
function string:t... |
K9_Config = {}
K9_Config = setmetatable(K9_Config, {})
K9_Config.DogModel = "A_C_Rottweiler" -- Set dog model of your choice
K9_Config.PedRestricted = true -- [true means the menu is restricted to cop peds. false means the menu can be used by everyone.]
K9_Config.VehicleRestricted = true -- [true means the dog can onl... |
local dbug = true
local function dprint(...)
if dbug then
print(...)
end
end
dprint("Loading libraries")
local lfs = require("lfs")
local modules = {}
for item in lfs.dir("libraries") do
if not item:match("^%.") and item:match("%..lua$") then
modules[item:match("^.+%.lua$"):lower()] = require(item)
-- This s... |
--- === plugins.finalcutpro.preferences.general ===
---
--- Final Cut Pro General Preferences
local require = require
local fcp = require "cp.apple.finalcutpro"
local html = require "cp.web.html"
local i18n = require "cp.i18n"
local execute = os.execute
local plugin = {
i... |
--
-- Copyright (c) 2016, 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 M = { }
... |
object_building_kashyyyk_frn_kash_hospital_bed = object_building_kashyyyk_shared_frn_kash_hospital_bed:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_frn_kash_hospital_bed, "object/building/kashyyyk/frn_kash_hospital_bed.iff")
|
local base = require("kong.plugins.mtls_certs_manager.base")
local _M = base:extend()
local consumers = kong.db.consumers
function _M:check_instance_exists(instance_name)
local consumer = consumers:select_by_username(instance_name)
return consumer ~= nil
end
function _M:get_consumer(instance_name, description)
... |
data:extend(
{
{
type = "item",
name = "arithmetic-combinator",
icon = "__base__/graphics/icons/arithmetic-combinator.png",
flags = { "goes-to-quickbar" },
subgroup = "logics",
place_result="arithmetic-combinator",
order = "b[combinators]-a[arithmetic-combinator]",
stack_size= 50,
},
... |
SauroConf.stuff = {}
SauroConf.stuff.sweet = false
SauroConf.numbs = {}
SauroConf.numbs.wat = "TESTERINO"
SauroConf.numbs[1] = 5
--table.insert(SauroConf.numbs, "WAT")
SauroConf[1] = {}
SauroConf[1].wat = "TEST" |
local EntityComponent = require "smee.game_core.entitycomponent"
local Table = require "sandbox.utl.table"
local UnitComponent = EntityComponent:subclass("UnitComponent")
function UnitComponent:initialize(owner)
EntityComponent.initialize(self, owner)
self.max = {}
self.base = {}
self.current = {}
... |
sptbl["gen_sinesum"] = {
files = {
module = "ftbl.c",
header = "ftbl.h",
example = "ex_gen_sinesum.c",
},
func = {
name = "sp_gen_sinesum",
},
params = {
{
name = "argstring",
type = "char *",
description = [[A list of am... |
local currentFires = {}
RegisterNetEvent("thermite:StartClientFires")
AddEventHandler("thermite:StartClientFires", function(x,y,z,arg1,arg2)
if #(vector3(x,y,z) - GetEntityCoords(PlayerPedId())) < 100 then
local fire = StartScriptFire(x,y,z,arg1,arg2)
currentFires[#currentFires+1]=fire
end
end)
RegisterNe... |
-- Simple frame rate overlay
-- (C) Nick Smith 2014
frameRateOverlay = {}
function frameRateOverlay.update(event)
local fps = 1 / system.deltaTime
if frameRateOverlay.count == 5 then
frameRateOverlay.average = frameRateOverlay.total / 5
frameRateOverlay.count = 0
frameRat... |
--- === cp.apple.compressor.app ===
---
--- The `cp.app` for Apple's Compressor.
local require = require
local app = require("cp.app")
local fcpApp = app.forBundleID("com.apple.Compressor")
return fcpApp
|
require('lsp.cmp').setup()
local lsp_installer = require 'nvim-lsp-installer'
local installer_config = require 'lsp.config'
local lspconfig = require 'lsp.lspconfig'
local icons = require 'lsp.icons'
local null_ls = require 'lsp.null-ls'
local nlspsettings = require 'lsp.nlspsettings'
local capabilities = vim.lsp.proto... |
function PANEL:Init()
self.PerformLayoutFrame = vgui.GetControlTable("DFrame").PerformLayout
local parent = self:GetParent()
local menu_bar = parent:Find("DMenuBar")
if menu_bar then self:SetPos(parent:GetWide() - 160, menu_bar.y + menu_bar:GetTall())
else self:SetPos(parent:GetWide() - 160, parent:GetTall() - 2... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "DebugUIs/DebugMenu/Base/ISDebugSubPanelBase";
---@class NewFogDebug : ISDebugSubPane... |
function AsProcessMsg(player)
local pdata = Player.fromEl(player)
local spamInterval = Settings.spam_interval
local ticks = getTickCount()
if(pdata.lastMsg and (ticks - pdata.lastMsg) < spamInterval) then
local name = getPlayerName(player)
if(pdata.antispamWarning and (ticks - pdata.antispamWarning) < ... |
local function populateAPI(t)
local api = {}
for k,v in pairs(t) do
api[k] = {
type = (type(v) == "function" and "function" or "value"),
description = "",
returns = "",
}
end
return api
end
return {
wx = {
type = "lib",
description = "wx lib",
childs = populateAPI(wx),
... |
--[[
/*===========================================================================*
* Arch Engine - "Testers/windowConfig.lua" *
* *
* This is a tester script. It's purpose is to test some functionalities, *... |
-- luasnip setup
local luasnip = require("luasnip")
local lspconfig = require("lspconfig")
local lspkind = require("lspkind")
local M = {}
function M.setup()
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_backspace = function()
local c... |
if redis.call('get', KEYS[1]) == ARGV[1] then
redis.call('pexpire', KEYS[1], ARGV[2])
return true
end
return false |
--print("Reloading SectorMapScreenMajor")
gametypeScope = "major"
dofilepath("data:scripts\\utilfunc.lua")
dofilepath("data:scripts\\TMG_objectdata.lua")
dofilepath("data:scripts\\TMG_initialstate.lua")
dofilepath("data:scripts\\TMG_initialfleet.lua")
dofilepath("player:TestMissionGrid\\TMG_savegame.lua")
dofilepath("p... |
return {'apegapen','apekool','apelazarus','apenbroodboom','apengeslacht','apengezicht','apenhaar','apenjaren','apenkolonie','apenkooi','apenkooien','apenkop','apenland','apenliefde','apennoot','apenpak','apenrots','apensoort','apenspel','apenstaart','apenstaartje','apenstreek','apentuin','aperij','aperitief','aperitief... |
module(...,package.seeall)
local app = require("core.app")
local freelist = require("core.freelist")
local packet = require("core.packet")
local link = require("core.link")
local transmit, receive = link.transmit, link.receive
local ffi = require("ffi")
local C = ffi.C
--- # `Source` app: generate synthetic packets... |
function importTextures2()
txd = engineLoadTXD ( "dust2.txd" )
engineImportTXD ( txd, 13051 )
col = engineLoadCOL ( "dust2.col" )
dff = engineLoadDFF ( "dust2.dff", 0 )
engineReplaceCOL ( col, 13051 )
engineReplaceModel ( dff, 13051 )
engineSetModelLODDistance(13051, 2000)
end
setTimer ( importTextur... |
local Lib = {}
Lib.FileCache = {};
-- Summary file:
-- dd/mm/yy -> day
-- Others could possibly be stored to... (week/month/year) but is that really necessary? Nah.
--Lib.SummaryFileName = "Summary.txt" -- Unused
local JSON = require "cjson"
function Lib:Unpack(target)
for i,v in pairs(self) do
if target[v] then... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.