content stringlengths 5 1.05M |
|---|
function RGBA (r, g, b, a)
r = r or 255
g = g or 255
b = b or 255
a = a or 1
return {r/255, g/255, b/255, a}
end |
hook.Add("PlayerCanHearPlayersVoice", "XYZDogVoiceBlocker", function(listener, talker)
if talker:Team() == TEAM_SHERIFFK9 then
return false
end
end)
hook.Add("PlayerSpawn", "XYZDogWeapons", function(ply)
if not (ply:Team() == TEAM_SHERIFFK9) then return end
timer.Simple(1, function()
if not IsValid(ply) then r... |
vim.cmd [[autocmd FileType lua setlocal foldmethod=marker]]
-- File Imports
require("core.plugins")
require("core.settings")
require("core.mappings")
require("configs")
|
local mroot = os.getenv("MODULEPATH_ROOT")
local mp_loop = os.getenv("MODULEPATH_LOOP")
if (mp_loop) then
prepend_path("MODULEPATH", pathJoin(mroot,"2Core"))
end
|
--------------------------------
-- @module IndexFormat
-- @parent_module ccb
--- Enum ccb.IndexFormat
---@class ccb.IndexFormat
local IndexFormat = {}
ccb.IndexFormat = IndexFormat
---@type number
IndexFormat.U_SHORT = 0
---@type number
IndexFormat.U_INT = 1
return nil
|
local movement = ECS.System({COMPONENTS.position, COMPONENTS.move_speed, COMPONENTS.direction}, {COMPONENTS.position, COMPONENTS.jump, "jump"})
function movement:update(dt)
local e
for i = 1, self.pool.size do
e = self.pool:get(i)
local pos = e:get(COMPONENTS.position).pos
local speed = e:get(COMPONENTS.move_s... |
-- Current.lua
-- @Author : Dencer (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 1/2/2020, 9:55:26 PM
--
---- LUA
local select = select
---- WOW
local GetBankSlotCost = GetBankSlotCost
local GetContainerItemInfo = GetContainerItemInfo
local GetContainerNumFreeSlots = GetContainerNumFreeSlots
lo... |
local util = require("spec.util")
describe("array argument", function()
it("catches error in array elements", util.check_type_error([[
local function a(arg: {string})
print(arg)
end
function main()
a({"a", 100})
a(100)
end
]], {
{ y = 6, msg = 'argument 1... |
local drone = component.proxy(component.list("drone")())
local modem = component.proxy(component.list("modem")())
local sides = {}
sides.negy = 0
sides.posy = 1
sides.negz = 2
sides.posz = 3
sides.negx = 4
sides.posx = 5
local COMMS_PORT = 0x1F48
-- Absolute position in world.
local pos = {}
pos.x = 5123
pos.y = 42
p... |
---
-- Dawid Ferenczy 2017 - 2018
-- http://github.com/ferenczy/dotfiles
-- Modified from Cmder's clink.lua script
-- Original script: https://github.com/cmderdev/cmder/blob/development/vendor/clink.lua
-- Script location: %UserProfile%\AppData\Local\clink\
-- Setting the prompt in clink means that commands wh... |
file = "logs/basic.%Y-%m-%d_%H-%M.log"
fileWithTimeFormat = true
topic = "basic2"
autocreat = true
fileOwner = "nobody:nobody"
autoparti = true
partition = -100
startpos = "LOG_START"
|
local class = require 'middleclass'
local util = require 'util'
-- クラス:次のレベルまでの経験値
local NextLevel = class 'NextLevel'
-- 組み込み
NextLevel:include(require 'Readonly')
-- 初期化
function NextLevel:initialize(t)
t = t or {}
self.exps = t or {}
end
-- オーバーライド:比較
function NextLevel:__eq(other)
return util.equa... |
MODULE.Name = "Platform"
MODULE.ClientOnly = true
MODULE.Defines = {
"NAZARA_PLATFORM_SDL2"
}
MODULE.Libraries = {
"NazaraCore",
"NazaraUtility",
"SDL2"
}
MODULE.Files = {
"../src/Nazara/Platform/SDL2/**.hpp",
"../src/Nazara/Platform/SDL2/**.cpp"
}
MODULE.OsDefines.Windows = {
"SDL_VIDEO_DRIVER_WINDOWS=1"
}... |
-- ERMAGHERD PLS DONT STEEL M8
function hookItUpM8()
-- Load up teh shitz
bild = engineLoadDFF("adams-garage/files/ce_terminal1.dff", 13295)
engineReplaceModel(bild, 13295)
bildtxd = engineLoadTXD("adams-garage/files/ce_terminal.txd")
engineImportTXD(bildtxd, 13295)
bildcol = engineLoadCOL("adams-garage/files/c... |
object_tangible_terminal_terminal_syren5_shield_generator = object_tangible_terminal_shared_terminal_syren5_shield_generator:new {
}
ObjectTemplates:addTemplate(object_tangible_terminal_terminal_syren5_shield_generator, "object/tangible/terminal/terminal_syren5_shield_generator.iff")
|
function init(value)
-- A stackable script will add its deformation on top
-- of existing one but will consume more CPU power
stackable = true
py = 0.0
width = get_width()
height = get_height()
half_height = height / 2
inv_width = 1.0 / width
if stackable == false then
v0x = get_vertices_x()
vx = get_ver... |
require("lang.vim").format()
require("lang.vim").lint()
require("lang.vim").lsp()
require("lang.vim").dap()
|
local lu = require('luaunit')
local File = require('lib.file')
local Day10 = require('day10.day10')
TestDay10 = {}
function TestDay10:setUp()
self.input_test = File:lines_from('day10/input-test.txt')
self.input = File:lines_from('day10/input.txt')
end
function TestDay10:test_find_illegal_character_score()
... |
--
-- Author: zen.zhao88@gmail.com
-- Date: 2015-12-03 15:04:56
--
local Action = class("Action",b3.BaseNode)
function Action:ctor(nodeData)
Action.super.ctor(self,nodeData)
self.category = b3.Com.ACTION
end
return Action |
--; ============================================================
--; Lua Minecraft
--; ============================================================
selectMinecraft = {
["Minecraft"] = {
iconName = "Minecraft",
iconMask = "Minecraft"
},
["Minecraft Dungeons"] = {
iconName = "Minecraft Dun... |
local PaperdollService ={
Listeners = {},
Paperdolls = {},
Initialize = function (self)
LoadResources(
"./UserInterface/"..SystemData.Settings.Interface.customUiName.."/OpenCore/Service/Paperdoll",
"PaperdollWindow.xml",
"PaperdollWindow.xml"
)
end,
Shutdown = function (sel... |
WHITE_IP{
"192.168.1.11";
"192.168.2.0/24";
}
FILTER{
}
JAIL{
purge_interval = 10;
-- Defaults for all jails
default = {
-- parameters to actions
parameters = {
};
};
}
ACTION{
}
LOG{
level = "trace";
file = {
log_dir = "./logs",
log_name = "event.log",
max_si... |
local module = {}
-- GLOBALS
_G.I2CINIT = 0
local sla = 0x3c -- I2C address of display
local bus_id = 0 -- I2C bus number
local lineoffset = {0, 5}
local hasframe = 0
local function line2pixel(l)
return 14 + (l * 15)
end
-- API
function module.update()
disp:sendBuffer()
end
function m... |
local client_screen_size, entity_get_local_player, entity_get_player_weapon, entity_get_prop, entity_is_alive, globals_frametime, renderer_gradient, ui_get, ui_new_checkbox, ui_new_color_picker, ui_new_slider, ui_reference, ui_set, ui_set_callback, ui_set_visible = client.screen_size, entity.get_local_player, entity.ge... |
local serverInfo = TalkAction("!serverinfo")
function serverInfo.onSay(player, words, param)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Server Info:"
.. "\nExp rate: " .. getRateFromTable(experienceStages, player:getLevel(), configManager.getNumber(configKeys.RATE_EXP))
.. "\nSkill rate: " .. configManager.getN... |
local class = require 'vendor.middleclass'
local Heap = class('Heap')
local valid_types = {
min = true,
max = true,
}
-- Initializes the heap.
-- Type can be one of 'min' or 'max'. Defaults to 'min'.
-- Returns an instance of Heap.
function Heap:initialize(type)
self._nodes = {}
type = type or 'min'
self:s... |
villageElderPhase4ConvoTemplate = ConvoTemplate:new {
initialScreen = "intro",
templateType = "Lua",
luaClassHandler = "villageElderConvoHandler",
screens = {}
}
intro = ConvoScreen:new {
id = "intro",
leftDialog = "@conversation/village_elder_4:s_8aa931e3", -- Be careful, we've received information that the Sit... |
local input_fluid_box = {
base_area = 1,
pipe_connections = {
{
position = {
-1.5,
0.5
}
},
{
position = {
1.5,
0.5
}
}
},
production_type = 'input-output'
}
local resource_categories = {
'basic-solid',
'mi-basic'
}
if data.raw['mining... |
local path = require 'lib.path'
local Codes = require 'lib.codes'
local fun = require 'lib.fun'
local Writer = {
merge_strings = require 'scripts.make.write-strings'.merge,
write_strings = require 'scripts.make.write-strings'.write,
write_entries = require 'scripts.make.write-cdb'
}
local script_template = [[--... |
--[[
// FileName: RodSystem.lua
// Written by: Jake Baxter
// Version: v0.0.0-alpha.3
// Description: Prepares NWSpacek Rod System for driving system. To learn how to use this check "rod values.txt" in the github.
// Contributors:
--]]
local Plugin = {}
Plugin.GloballyAccessible = {}
Plugin.Name = "RodS... |
function API.Slot(slotId, itemId, itemAmount, ammoInClip, ammoInWeapon, infoData)
local self = {}
-- self.slotId = slotId
self.itemId = itemId
self.itemAmount = itemAmount
self.itemData = API.getItemDataFromId(itemId)
self.ammoInClip = ammoInClip
self.ammoInWeapon = ammoInWeapon
self.it... |
-- --
-- --This module try to match new clients to pre-defined arguments
-- --It can be used to override Tyrannical or set special rules
-- --when spawning clients. It use both X11 clients and
-- --FreeDesktop.org Startup notifications for matching commands
-- --
-- -- 1) Spawn command, get the PID and SN_ID
-- -- 2) ... |
local L = LibStub("AceLocale-3.0"):NewLocale("RENovate", "enUS", true)
L["Mission list"] = true
L["Display mission cost"] = true
L["Mission dispatch"] = true
L["Use improved follower panel"] = true
L["Display impact that follower have on mission chance and some other additional information."] = true
L["Calculate impac... |
local skynet = require 'skynet'
return {
get = function(req, res)
local user = lwf.ctx.user
if not user then
return res:redirect('/user/login')
end
local cfg = skynet.call("CFG", "lua", "get", "starter")
local uptime = skynet.now() // 100
local upday = uptime // (24 * 60 * 60)
local upyear = upday ... |
if Wearables == nil then
_G.Wearables = class({})
end
LinkLuaModifier("modifier_wearable_visuals", "libraries/modifiers/modifier_wearable_visuals.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_wearable_visuals_status_fx", "libraries/modifiers/modifier_wearable_visuals.lua", LUA_MODIFIER_MOTION_NONE)
Lin... |
-- ====================================================================================================================
-- ====================================================================================================================
-- Copyright (c) 2017 Ryan Brock. All rights reserved.
-- Licensed under the MIT... |
druid_instance_quest = {
quest = function(maps, owner)
local player = Player(owner)
local guitext = ""
local stage1_total = 20
if player.registry["druid_quest"] == 0 then
player.registry["druid_quest"] = 1
local minX = 0
local maxX = getMapXMax(map)
local minY = 0
local maxY = getMapYMax(map)
... |
DarkRP.initDatabase = DarkRP.stub{
name = "initDatabase",
description = "Initialize the DarkRP database.",
parameters = {
},
returns = {
},
metatable = DarkRP
}
DarkRP.storeRPName = DarkRP.stub{
name = "storeRPName",
description = "Store an RP name in the database.",
parameters ... |
myFont = guiCreateFont( "font.ttf", 15 )
myFont4 = guiCreateFont( "font3.ttf", 15 )
markers = {
{"Boat",-20.02, -1653.76, 1.2,int=0,pos={-1.66,-1657.23,1.48,329},cam={-25.377, -1645.16, 7.91, 56.61, -1697.885, -14.411, },spawn={-8.11,-1648.37,1.09,183,-19.41,-1634.84,2.33,262}},--LSBOAT
{"Boat",-2188.49, 2413.02, 4.15... |
local luaunit = require("luaunit")
local types = require("lualife.types")
local Size = require("lualife.models.size")
local Point = require("lualife.models.point")
local Field = require("lualife.models.field")
local PlacedField = require("lualife.models.placedfield")
local matrix = require("lualife.matrix")
-- luachec... |
function round (x)
local f = math.floor(x)
if (x == f) or (x % 2.0 == 0.5) then
return f
else
return math.floor(x + 0.5)
end
end
|
-- 取房屋信息
local mysql = require("core.driver.mysql")
local cjson = require "cjson"
local arg = ngx.req.get_uri_args()
local res
local query = [[select h.ID as HOUSE_CODE,h.HOUSE_ORDER,h.HOUSE_UNIT_NAME,h.IN_FLOOR_NAME,h.HOUSE_AREA,h.USE_AREA,
h.COMM_AREA,h.SHINE_AREA,h.LOFT_AREA,
(select _VALUE from DB_PLAT_SYST... |
require('utils')
local item = require("../item");
local image = require("../image")
return {
name = "Monkeying around",
amount = 1,
weight = 0.1,
description = "A monkey looks interested in you.",
heads = {
effectDescription = "-3 hp (20%)",
effect = function (state)
if love.mat... |
--@ multiprofilecommon generalmissile
-- Multi profile module (generalmissile)
MultiProfile_Init(GeneralMissile)
|
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local eval = helpers.eval
local source = helpers.source
describe('WinScrolled', function()
before_each(clear)
it('is triggered by scrolling vertically', function()
source([[
set nowrap
let... |
--[[
--=====================================================================================================--
Script Name: Swat, for SAPP (PC & CE)
Description: An extremely simple adaptation of "swat" from Halo Reach.
Copyright (c) 2020, Jericho Crosby <jericho.crosby227@gmail.com>
* Notice: You can use this documen... |
-- LinearRegression.lua
-- define class LinearRegression
-- torch libraries
require 'nn'
require 'optim'
-- local libraries
require 'Trainer'
require 'Validations'
do
local LinearRegression = torch.class('LinearRegression')
function LinearRegression:__init(inputs, targets,
... |
module("luci.controller.passwall", package.seeall)
function index()
if not nixio.fs.access("/etc/config/passwall") then
return
end
entry({"admin", "services", "passwall"}, firstchild(), "PassWall Plus+", 99).dependent = true
entry({"admin", "services", "passwall", "main"},cbi("passwall/main"), _("Main"), 1... |
for line in io.lines(arg[1]) do
print(tonumber("0x" .. line))
end
|
local others = {
-- Bufferline
BufferLineFill = { fg = C.grey_9, bg = C.grey_4 },
BufferLineBackground = { fg = C.grey_9, bg = C.grey_4 },
BufferLineBufferVisible = { fg = C.fg, bg = C.bg },
BufferLineBufferSelected = { fg = C.fg, bg = C.bg, style = C.none },
BufferLineTab = { fg = C.fg, bg = C.bg },
BufferLine... |
-- Disable animation when repositioning windows
hs.window.animationDuration = 0
hs.loadSpoon("SpoonInstall")
local hyper = { "ctrl", "alt" }
-- Load all spoons with their respective settings
for plugin, configuration in pairs({
AppLauncher = {
hotkeys = {
c = "Calendar",
d = "Discord",
f = "F... |
description "vrp_tattoos"
--ui_page "ui/index.html"
dependency "vrp"
client_scripts{
"lib/Proxy.lua",
"lib/Tunnel.lua",
"client.lua"
}
server_scripts{
"@vrp/lib/utils.lua",
"server.lua"
}
--ui_page 'html/ui.html'
files {
'html/ui.html',
'html/logo.png',
'html/dmv.png',
'html/cursor.png... |
local M = {API={}}
function M.Init(game)
game.delay_list = {}
end
function M.Start(game)
end
function M.Call(game, tick, func, ctx)
if tick <= game.tick then
tick = game.tick + 1
end
game.delay_list[tick] = game.delay_list[tick] or {}
table.insert(game.delay_list[tick], {tick = tick, fun... |
function addMoney(playerid,ammount)
local playerIdentifier = GetPlayerIdentifier(playerid)
MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = @identifier',{
['@identifier'] = playerIdentifier
},function(result)
MySQL.Async.execute('UPDATE users SET money = @money WHERE identif... |
util = util or {}
function util.get_app(appid)
local db = gg.dbmgr:getdb()
if gg.dbmgr.db_type == "redis" then
local key = string.format("app")
local app = db:hget(key,appid)
if app == nil then
return nil
else
return cjson.decode(app)
end
else... |
--[[
TheNexusAvenger
Gets the partitions data from the server.
--]]
local NexusGit = require(script.Parent.Parent.Parent):GetContext(script)
local MultiHttpRequest = NexusGit:GetResource("SplitHttp.MultiHttpRequest")
local HttpService = game:GetService("HttpService")
local GetPartitionsRequest = MultiHttpRequest:Ex... |
--[[
Core - prywatne wiadomosci
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
function privateMessage(plr,cmd, cel, ...)
local c = getElementDat... |
local super = Class("Rectangle", LuaObject).getSuperclass()
Rectangle.OUT_LEFT = 1
Rectangle.OUT_TOP = 2
Rectangle.OUT_RIGHT = 4
Rectangle.OUT_BOTTOM = 8
function Rectangle.clip(v, doceil)
if (v <= Integer.MIN_VALUE) then
return Integer.MIN_VALUE
end
if (v >= Integer.MAX_VALUE) then
return Integer.MAX_VALUE
e... |
local config = require 'symbols-outline.config'
local M = {}
local function getParams()
return { textDocument = vim.lsp.util.make_text_document_params() }
end
function M.hover_info(bufnr, params, on_info)
local clients = vim.lsp.buf_get_clients(bufnr)
local used_client
for id, client in pairs(clients) do
... |
local Particle = Component.create("Particle")
function Particle:initialize(image, buffer)
self.particle = love.graphics.newParticleSystem(image, buffer)
end
|
local class = require("heart.class")
local heartTable = require("heart.table")
local M = class.newClass()
function M:init(game, config)
self.componentType = assert(config.componentType)
self.defaultState = config.defaultState
if config.validStates then
self.defaultState = self.defaultState or config.validS... |
--------------------------------------------------------------------------------
-- Rheostat controller for 81-710/81-717 (ЕКГ-17B)
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See li... |
local gfs = require("gears.filesystem")
local naughty = require("naughty")
local display_high = true
local display_low = true
local display_charge = true
awesome.connect_signal("signal::battery", function(percentage, state)
local value = percentage
-- only display message if its not charging and low
if v... |
-- Copyright 2006-2022 Mitchell. See LICENSE.
-- R LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('rstats')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:add_rul... |
local outColor = color("#00326B")
return Def.ActorFrame{
LoadActor("memcard")..{
InitCommand=cmd(Center;setsize,640,480);
};
}
|
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('esx_vehiclelock:requestPlayerCars', function(source, cb, plate)
local xPlayer = ESX.GetPlayerFromId(source)
MySQL.Async.fetchAll('SELECT 1 FROM owned_vehicles WHERE (owner = @owner OR segundallave = @owner) AND p... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
lua54 'yes'
description 'ESX Ambulance Job'
version '1.1.1'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.lua',
'locales/pl.lua',
'config.lua',
'server/main.lua'
}
client_scripts {
'@es_extended/locale.lua',
... |
if SERVER then
AddCSLuaFile()
end
fw.dep(SHARED, 'hook')
fw.dep(CLIENT, 'ui')
fw.include_cl "help_cl.lua"
fw.include_sv "help_sv.lua" |
local M = {}
function M.remove(array, value)
local len = #array
for i=1, len do
if array[i] == value then
local v = array[i]
if i ~= len then
array[i] = array[len]
end
array[len] = nil
return v
end
end
end
function... |
function hello ()
print("Hello world again\n")
end
print("Hello world\n")
a = 3
print(a)
a = a + 3
print(a)
function func1 (x)
return x * 111
end
hello()
print(func1(1))
print(func1(2))
print(func1(7))
reg_c_function1()
reg_c_function2(42)
reg_c_function2("This is a string")
print(reg_c_function3())
prin... |
object_static_worldbuilding_furniture_modern_cabinet = object_static_worldbuilding_furniture_shared_modern_cabinet:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_modern_cabinet, "object/static/worldbuilding/furniture/modern_cabinet.iff") |
local RunService = game:GetService("RunService")
local typeOf = require(game:GetService("ReplicatedStorage"):WaitForChild("typeOf"))
return function(argTypes, func)
if RunService:IsStudio() then
return function(...)
local args = {...}
for index, argument in pairs(args) do
... |
local Structure = require "roomgen.Structure"
local RoomUtils = require "roomgen.RoomUtils"
local StFiller = Class.create("StFiller", Structure)
function StFiller:init( room , evalArea,number)
Structure.init(self,room,evalArea,number)
self.height = 8
self.gap = 4
self.width = 20
self.evalArea = evalArea
self:se... |
local DLC_STRINGS =
{
PROGRAMS =
{
AXE =
{
NAME = "AXE",
DESC = "Halves firewalls (rounded down) on all devices within a 4 tile radius of targeted tile.",
SHORT_DESC = "USE AXE",
HUD_DESC = "BREAK HALF OF FIREWALLS\n4 TILE RADIUS",
TIP_DESC = "BREAK HALF OF FIREWALLS FOR <c:77FF77>{1} PWR... |
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname).."/"
coin_minting = {}
minetest.register_tool(modname..":hammer", {
description = "Minting Hammer",
inventory_image = "coin_minting_hammer.png",
tool_capabilities = {
full_punch_interval = 1,
... |
#!/usr/bin/env lua
--
-- compiler.lua - Lua compiler and module linker
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
local Args = require "tek.lib.args"
local _, exec = pcall(function() return require "tek.lib.exec" end)
local _, lfs = pcall(function() return r... |
object_tangible_loot_creature_loot_kashyyyk_loot_purple_potion = object_tangible_loot_creature_loot_kashyyyk_loot_shared_purple_potion:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_purple_potion, "object/tangible/loot/creature_loot/kashyyyk_loot/purple_potion.iff") |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
client_script {
"config.lua",
"client_menu.lua",
"emotes_triggers.lua",
"k9/client.lua",
"k9/config.lua",
"functionslist.lua"
}
server_script {
"config.lua",
"server.lua",
"k9/server.lua",
"k9/config.lua"
}
ui_page "html/ui.h... |
local actions = require("telescope.actions")
local sorters = require("telescope.sorters")
-- Global remapping
------------------------------
require("telescope").setup({
defaults = {
prompt_prefix = " ",
selection_caret = " ",
path_display = { "smart" },
entry_prefix = " ",
initial_mode = "insert",
sel... |
local awful = require("awful")
local gears = require("gears")
local beautiful = require("beautiful")
local helpers = require(tostring(...):match(".*bling") .. ".helpers")
-- It might actually swallow too much, that's why there is a filter option by classname
-- without the don't-swallow-list it would also swallow for... |
local present, dressing = pcall(require, "dressing")
if not present then return end
dressing.setup({
input = {
winblend = 0,
border = "single"
}
})
|
require 'plugins.telescope.settings'
require 'plugins.telescope.mappings'
|
function compare(a,b)
return a.val > b.val
end
function reverse_list(list)
local new_list = nil
local tmp = list
while tmp do
new_list = {next = new_list, value = tmp.value, dist=tmp.dist, val = tmp.val}
tmp = tmp.next
end
return new_list
end
--used to avoid duplicate paths in our search... |
return {
PRIORITY = 1000,
VERSION = "1.0",
}
|
ITEM.name = ".408 Cheytac Ammo"
ITEM.model = "models/items/sniper_round_box.mdl"
ITEM.material = "models/props_pipes/destroyedpipes01a"
ITEM.ammo = "408"
ITEM.ammoAmount = 1--12
ITEM.desc = "A box that contains %s .408 Cheytac bullets."
ITEM.price = 10
ITEM.category = "Ammunition"
ITEM.flag = "v"
ITEM.price = 0
ITEM.... |
-- Copyright (C) 2019 vislee
local ngx_var = ngx.var
local ngx_enbase64 = ngx.encode_base64
local ngx_req_get_method = ngx.req.get_method
local ngx_req_http_version = ngx.req.http_version
local ngx_req_raw_header = ngx.req.raw_header
local ngx_req_get_headers = ngx.req.get_headers
local... |
-- 2D's LUA
--[[Baroness Dorothea Millstipe says: Where has the master gone?
Baroness Dorothea Millstipe says: Why can we not talk to the master?]]
function BaronessDorotheaMillstipe_OnCombat(Unit, event)
Unit:RegisterEvent("BaronessDorotheaMillstipe_Pain", 8000, 0)
Unit:RegisterEvent("BaronessDorotheaMillstipe_MindF... |
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(7, '[XB] Shaman - Basic', InCombat, OutCombat) |
local attr_to_string = function(data)
if not data then return "nil" end
local attrs = {}
for k, v in pairs(data) do
local val
if type(v) == "string" then
val = "\"" .. v .. "\""
else
val = tostring(v)
end
attrs[#attrs + 1] = tostring(k) .. " = " .. val
end
return "{" .. table.c... |
include("shared.lua")
function ENT:GetDisplayPosition()
local obbcenter = self:OBBCenter()
local obbmax = self:OBBMaxs()
return Vector(obbcenter.x + 20, obbmax.y - 14, obbcenter.z + (self:GetModel() == "models/combine_turrets/ground_turret.mdl" and 10 or 10)), Angle(0, 90, 90), 0.2
end
function ENT:Draw()
self:Dr... |
local term = require("term")
term.clear() |
local Gamestate = require 'vendor/gamestate'
local anim8 = require 'vendor/anim8'
local Timer = require 'vendor/timer'
local sound = require 'vendor/TEsound'
local window = require 'window'
local fonts = require 'fonts'
local Cornelius = {}
Cornelius.__index = Cornelius
local image = love.graphics.newImage('images/co... |
--- === plugins.core.tools.caffeinate ===
---
--- Prevents your Mac from going to sleep.
local require = require
local caffeinate = require "hs.caffeinate"
local config = require "cp.config"
local i18n = require "cp.i18n"
local enabled = config.prop("caffeinate.enabled", fal... |
local playsession = {
{"Baldy34343", {179640}},
{"changaryyy", {710354}},
{"Kobrar", {1931945}},
{"TheWickedMaster", {351011}},
{"whopper", {610686}},
{"bl72", {155122}},
{"kelvinh92", {973718}},
{"WiredMesh", {811912}},
{"hyunbeen", {712642}},
{"halpenny911", {135913}},
{"sb22284", {31117}},
{"Lastaustrali... |
--[[----------------------------------------------------------------------------
Info.lua
Summary information for ftp_upload sample plug-in
--------------------------------------------------------------------------------
ADOBE SYSTEMS INCORPORATED
Copyright 2007 Adobe Systems Incorporated
All Rights Reserved.
NOT... |
local cant_start_fling = {}
local cant_fling = {}
local immune_to_fall_dmg = {}
local dirs = {
vector.new(),
vector.new(1, 0, 0),
vector.new(-1, 0, 0),
vector.new(0, 1, 0),
vector.new(0, -1, 0),
vector.new(0, 0, 1),
vector.new(0, 0, -1),
}
local function spawn_particle_trail(obj)
minetest.add_particlespawner(... |
local Symbol = require("lunar.compiler.semantic.symbol")
local SymbolTable = require("lunar.compiler.semantic.symbol_table")
local CoreGlobals = SymbolTable.new()
CoreGlobals:add_type(Symbol.new("any"))
CoreGlobals:add_type(Symbol.new("unknown"))
CoreGlobals:add_type(Symbol.new("never"))
CoreGlobals:add_type(Symbol.new... |
local ROOT = "../"
workspace "Raytracer"
configurations {"Debug", "Release"}
platforms {"x32", "x64"}
local project_action = "UNDEFINED"
if _ACTION ~= nill then project_action = _ACTION end
flags "FatalWarnings"
output = "%{cfg.platform}/%{cfg.buildcfg}"
targetdir (ROOT .. "bin/" .. output .. "/%{prj.nam... |
local Breakables = {}
local function AddItem(Model, Item, Chance, Min, Max)
Breakables[Model] = Breakables[Model] or {}
table.insert(Breakables[Model], {Item = Item, Chance = Chance or 100, Min = Min or 1, Max = Max or Min or 1})
end
AddItem("models/props_junk/wood_crate001a.mdl", "wood", 80, 1, 3)
AddItem("models/pr... |
local Button = require "xboot.widget.Button"
local btn = Button.new({x = 100, y = 100, width = 100, height = 50})
:addEventListener("press", function(d, e) print("Button [Press]") end)
:addEventListener("release", function(d, e) print("Button [Release]") end)
:addEventListener("click", function(d, e) print("Button ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.