content stringlengths 5 1.05M |
|---|
PLUGIN.name = "Business Block"
PLUGIN.desc = "Turns off business for EVERYONE"
PLUGIN.license = "MIT not for use on Kaktusownia opensource.org/licenses/MIT"
function PLUGIN:CanPlayerUseBusiness()
return false
end |
g = ECP.G() -- get the curve's generator coordinates
h = g * 2 -- hashtopoint "h0"
h1 = g * 20 -- hashtopoint "h1"
order = ECP.order() -- get the curves order in a big
rng = RNG.new()
H = HASH.new('sha256')
local DATA_TABLE = JSON.decode(DATA)
local KEYS_TABLE = JSON.decode(KEYS)
function readBig(str)
return BIG.new... |
#include "datascripts/inputList.lua"
#include "datascripts/color4.lua"
#include "scripts/ui.lua"
#include "scripts/textbox.lua"
#include "scripts/utils.lua"
binds = {
New_Thrusters_Forwards_Key = "h",
New_Thrusters_Backwards_Key = "n",
Delete_All_Thrusters = "p",
Delete_Last_Thruster = "z",
New_Thruster_Power_... |
local M = {
{
name = "agpl-3.0",
text = [[
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option)... |
local class = require "class"
local Image = class:derive("Image")
local Vec2 = require("Essentials/Vector2")
local Color = require("Essentials/Color")
function Image:new(path, frames)
frames = frames or Vec2(1)
self.img = loadImage(path)
if not self.img then error("Failed to load image: " .. path) end
s... |
count = {}
haspoked = {}
poketime = {}
maxpokes = 2
maxtime = 180
function onClientPokeEvent(serverConnectionHandlerID, pokerID, pokerName, message, ffIgnored)
if (pokerID ~= haspoked[pokerID]) then
haspoked[pokerID] = pokerID
count[pokerID] = 1
poketime[pokerID] = os.time()
ts3.requestSendPrivat... |
-- Translation support
local S = minetest.get_translator("keyring")
local F = minetest.formspec_escape
-- context
local context = {}
local selected = {}
local selected_player = {}
local selected_player_num = {}
local key_list = {}
local tab = {}
local function reset_context(name)
context[name] = nil
selected[name] =... |
local _NAME = ...
local _PACKAGE = _NAME:sub(1, -15) -- I should probably clean this up...
--[[
assertion function - helps check that you pass the right things to various looky functions, to catch errors earlier
@param typeTocheck: string; the type of variable that is expected ("string", "number", etc)
@param va... |
slot0 = class("MonopolyGame")
slot1 = pg.activity_event_monopoly_map
slot2 = pg.activity_event_monopoly_event
slot3 = 501041
slot4 = 501041
slot5 = 6
slot6 = 5
slot7 = {
stateGold = "dafuweng_gold",
stateOil = "dafuweng_oil",
stateEvent = "dafuweng_event",
stateWalk = "dafuweng_walk",
stateStand = "dafuweng_stand"... |
local spawn = nil
local spawnTrans = script.parent:GetWorldTransform()
local splash = script:GetCustomProperty("splash")
local effect = script:GetCustomProperty("effect")
local trigger = script.parent
local spawnEffect = nil
local worldpos = nil
local spawnWake = script:GetCustomProperty("SpawnWake")
trigger.begin... |
local server = require 'lspservers/server'
return server.new {
name = 'tsserver',
cmd = { './node_modules/.bin/typescript-language-server', '--stdio' },
installer = [[
set -e
npm install typescript typescript-language-server
]],
}
|
object_building_player_musty_house = object_building_player_shared_musty_house:new {
lotSize = 5,
baseMaintenanceRate = 80,
allowedZones = {"chandrila", "corellia", "coruscant", "dantooine", "dathomir", "endor", "geonosis", "hoth", "hutta", "jakku", "kaas", "kashyyyk", "korriban", "lok", "mandalore", "mustafar", "na... |
local Player = require 'src.player'
local bump = require 'libs.bump.bump'
function love.load()
player = Player({
x_position = 100,
y_position = 50,
image = love.graphics.newImage('assets/character.png'),
x_velocity = 0,
y_velocity = 0,
acceleration = 100,
gravity = 80
})
world = bump... |
-----------------------------------------------------------------------------------------------------------------------------------------
-- VRP
-----------------------------------------------------------------------------------------------------------------------------------------
local Tunnel = module("vrp","lib/Tunn... |
function onLoad(save_state)
self.setColorTint(Global.getVar("battlefieldTint"))
end
|
---
-- @module BTMustReload
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Log = require( 'src.util.Log' )
local BTLeaf = require( 'src.characters.ai.behaviortree.leafs.BTLeaf' )
-- ------------------------------------------------
... |
function TeapotGenerator(property)
local size = property.size
return {
MeshData = function ()
local gen = PrimitiveGenerator()
return gen:Teapot(size)
end
}
end
|
--[[
Copyright © 2022 Marlon de Oliveira Gomes.
MIT License
Project: Pong-Lua
A remake of the classic Atari game Pong in Lua.
File: main.lua
The Main Program
Contact: 72144990+Marlon-Gomes@users.noreply.github.com
]]
--[[
Low-res appearance: push (https://github.com/Ulydev/push) is a... |
if (SERVER) then
SWEP.Weight = 10
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
end
if ( CLIENT ) then
SWEP.PrintName = "9mm MP5 Kurz"
SWEP.Author = "Black Tea"
SWEP.Instructions = "Left Click to Swing."
SWEP.ShowWorldModel = true
end
SWEP.Category = "Black Tea Firearms"
SWEP.Base = "h... |
require('Navigator').setup({auto_save = 'nil', disable_on_zoom = false})
vim.api.nvim_set_keymap('n', "<M-H>", "<CMD>lua require('Navigator').left()<CR>",
{noremap = true, silent = true})
vim.api.nvim_set_keymap('n', "<M-K>", "<CMD>lua require('Navigator').up()<CR>",
{no... |
--無尽機関アルギロ・システム
--
--Script by JustFish
function c101108054.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101108054,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101108054)
e1:SetTarg... |
local playsession = {
{"kjh2663", {776122}},
{"hinr", {634621}},
{"Yadon_poi", {3483}},
{"Stinson_5", {179711}},
{"zipell135", {2499}},
{"cabb99", {298017}},
{"MasterMatz", {171584}},
{"ColonelWill", {24138}},
{"yottahawk", {2984}}
}
return playsession |
-- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
local uci = require("uci")
local sys = require("luci.sys")
local json = require("luci.jsonc")
local adbinput = uci.get("adblock", "global", "adb_rtfile") or "/tmp/adb... |
-- heartbeat.lua
-- Created by wugd
-- 心跳相关函数
-- 定义公共接口,按照字母顺序排序
local heartbeat_funcs = {};
-- 调用心跳回调函数
function post_heartbeat(ob_class, ob)
local func_list = heartbeat_funcs[ob_class];
if not func_list then
return;
end
-- 依次调用回调
for _, f in ipairs(func_list) do
if type(f) ==... |
fx_version 'bodacious'
games { 'gta5' }
author 'luckybulgur'
description 'Original code by jamessc0tt - Recoded by luckybulgur'
version '0.0.0'
client_scripts {
'@sc0tt_utils/cl_utils.lua',
'config.lua',
'client.lua',
} |
--[[ Copyright (c) David-John Miller AKA Anoyomouse 2016
* Part of the warehousing mod
*
* See LICENCE in the project directory for licence information
--]]
data:extend({
{ -- Basic Warehouse
type = "recipe",
name = "warehouse-basic",
enabled = "false",
ingredients =
{
{"steel-plate",60},
... |
--[[--------------------------------------------------------------------------
Improved Anti-NoClip Module
Author:
Mista-Tea ([IJWTB] Thomas)
License:
The MIT License (MIT)
Copyright (c) 2015-2017 Mista-Tea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... |
--Created by SupremeGggggg
--Have fun!
--BIG UPDATE!
--BIG UPDATE!
--BIG UPDATE!
--BIG UPDATE!
--BIG UPDATE!
local plr = game.Players.LocalPlayer -- This will send the script to your self!
--[[
/////////// // // // //// // // // //////... |
object_mobile_dressed_imperial_inquisitor_human_male_03_undead = object_mobile_shared_dressed_imperial_inquisitor_human_male_03_undead:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_imperial_inquisitor_human_male_03_undead, "object/mobile/dressed_imperial_inquisitor_human_male_03_undead.iff")
|
local quad = love.graphics.newQuad
local drawq = love.graphics.drawq
local ceil = math.ceil
local path = (...):match('^.+[%.\\/]') or ''
local grid = require (path..'grid')
-- ##########################
-- 0.9.0 COMPATIBILITY
if not drawq then
drawq = love.graphics.draw
end
-- ##########################
local... |
group "Common"
project "Foundation"
kind "StaticLib"
filter 'files:**.lua'
buildmessage 'Processing %{file.name} with bin2c'
buildcommands '%{bin2c} -o "%{cfg.objdir}%{file.basename}".lua.h -n %{file.basename}_lua "%{file.relpath}"'
buildoutputs '%{cfg.objdir}%{file.basename}.lua.h'
SetPCH { hdr = "pch.h",... |
object = {}
object.t = {}
object.t.__index = object.t
function object.t:new( ... )
local obj = {}
obj.super = nil
setmetatable( obj, object.t )
obj.__index = obj
return obj
end
function object.t:derive( ... )
local newobj = {}
newobj.super = self
setmetatable( newobj, self )
newobj.__ind... |
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "Remington Model 1858";
ITEM.cost = 0;
ITEM.model = "models/weapons/w_remington_1858.mdl";
ITEM.weight = 1.27;
ITEM.uniqueID = "m9k_remington1858";
ITEM.business = false;
ITEM.description = "A very, very, very old and rusty revolver, good luck trying to fix it... |
--[[
LAVRA
--]]
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
server_script "server.js"
client_script "client.js" |
-- Juste pour tester le port série, envoie une suite "UUUUU" 100x par seconde
-- On envoie 5x le caractère U
-- U en binaire c'est 1010101
-- on peut ainsi bien 'voir' avec un oscilloscope le port série
print("\n a_tst1_serial.lua zf190506.1402 \n")
test_1=tmr.create()
tmr.alarm(test_1, 0.01*1000, tmr.ALARM_AUTO, f... |
local https = require "ssl.https"
local ltn12 = require "ltn12"
local json = require 'lunajson'
local redis = require "resty.redis"
local incr = 0
if os.getenv("KUBERNETES_SERVICE_HOST") then
k8s_url = "https://" .. os.getenv("KUBERNETES_SERVICE_HOST") .. ":" .. os.getenv("KUBERNETES_SERVICE_PORT_HTTPS")
else
k8s_... |
ENT.Type = "anim"
ENT.Base = "base_rd3_entity"
ENT.PrintName = "Water Heater"
list.Set("LSEntOverlayText", "generator_gas_steam", {
HasOOO = true,
resnames = {"energy", "water"},
genresnames = {"water"}
}) |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local PrivateChatWindow = require(script.Parent.Parent:WaitForChild("Resources"):WaitForChild("PrivateChatWindow"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]... |
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf, "Fabiomsouto"
Copyright (c) 2011 Sérgio "Get_It" Ribeiro
Copyright (c) 2012 <Filipe "Aka" Carvalho>
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 wi... |
object_tangible_loot_beast_beast_steroid_bat_bull = object_tangible_loot_beast_shared_beast_steroid_bat_bull:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_beast_beast_steroid_bat_bull, "object/tangible/loot/beast/beast_steroid_bat_bull.iff")
|
require "controls/button"
require "controls/colour-picker-hue-slider"
require "controls/colour-picker-square"
require "controls/control-group"
require "controls/dialog"
ColourPickerDialog = {}
ColourPickerDialog.__index = ColourPickerDialog
--- Opens a colour picker dialog
function ColourPickerDialog:open(initialValu... |
Carry = Carry or {}
--[[ Functions ]]--
function Carry:Activate(source, target, value, ...)
local sourceState = (Player(source) or {}).state
local targetState = (Player(target) or {}).state
if
not sourceState or
not targetState or
(value and (sourceState.carrying or sourceState.carrier)) or
(value and (tar... |
return {
"vvadd",
"vvsub",
"vvmul",
"vvdiv",
"vvrem",
"vvgeq",
"vvleq",
"vvgt",
"vvlt",
"vveq",
"vvneq",
"vvand",
"vvor",
"vvxor",
"vvandnot",
}
|
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... |
local event = require("event")
local gpu = require("component").gpu
------------------------------------------------------------------------------------------------------------
local maximumLines = 60
local minimumLineLength = 5
local maximumLineLength = 55
local chars = { "ァ", "ア", "ィ", "イ", "ゥ", "ウ", "... |
local images = {
lsmap = "165ddeefd5d.png",
map_display = "165ddec178d.png",
maps = {
["@560778"] = "165dde71cd7.png",
["@565330"] = "165dde7d970.png",
["@574683"] = "165dde7ff14.png"
}
}
table.sort(images.maps, function(m1, m2)
return tonumber(m1:sub(2)) < tonumber(m2:sub(2))
end)
local info = { }
eventNew... |
function gameB_load()
gamestate = "gameB"
love.audio.stop(portal1open)
love.audio.play(portal1open)
love.audio.stop(portal2open)
love.audio.play(portal2open)
pause = false
difficulty_speed = 100
scorescore = 0
levelscore = 0
linesscore = 0
nextpiecerot = 0
hm = true
--PHYSICS--
meter = 30
worl... |
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf.lu... |
--[[ Write a function that receives an array and prints all elements in that array. Consider the pros and cons of using table.unpack in this fuunction. ]]--
-- Ans: Unpack will return all elements at once.
a = {}
a[1]="hello" a[2]=2 a[3]=5 a[4]=nil a[5]="dog" a[6]="cat"
function printelementsUnpack( x )
print(t... |
-- check if vulkan was loaded
local hasVulkan = package.loaded.vulkan1 ~= nil
local ffi = require( "ffi" )
local def = ([[
// glfw3 | GLFW3 window manager
// newtext = text:gsub("#define ([%w_]+)%s+([%w-_]+)",function(a,b) return a.." = "..b.."," end)
enum {
/*********************************************************... |
ep3_chiss_poacher_backpack = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Chiss Poacher Backpack",
directObjectTemplate = "object/tangible/wearables/backpack/ep3_chiss_poacher_backpack.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("ep3_ch... |
local snownet = require "snownet"
local sprotoloader = require "sprotoloader"
local max_client = 64
snownet.start(function()
snownet.error("Server start")
snownet.uniqueservice("protoloader")
if not snownet.getenv "daemon" then
local console = snownet.newservice("console")
end
snownet.newservice("debug_console... |
local http = require("http")
http.createServer(function (req, res)
local body = "Hello world\n"
res:writeHead(200, {
["Content-Type"] = "text/plain",
["Content-Length"] = #body
})
res:finish(body)
end):listen(8080)
print("Server listening at http://localhost:8080/")
|
local log = require('log')
local work_dir = arg[1] or '.'
box.cfg({
memtx_dir = work_dir,
wal_dir = work_dir
})
local test_list = {
'test_scd_type_1',
'test_scd_type_2',
'test_scd_type_3',
'test_scd_type_4'
}
local success = true
for _, t in ipairs(test_list) do
local test... |
local Component = require "class.Component"
local mirror = class("animation.mirror", Component)
mirror.argList = {
{"time", "number", 0.2},
}
function mirror:initialize(actor, args)
Component.initialize(self, actor, args)
self.mirrorTimer = 0
end
function mirror:update(dt)
self.mirrorTimer = self.mi... |
local ChaserEnemy, super = Class(Character, "enemy")
function ChaserEnemy:init(actor, x, y, properties)
super:init(self, actor, x, y)
properties = properties or {}
if properties["sprite"] then
self.sprite:setSprite(properties["sprite"])
elseif properties["animation"] then
self.sprite:... |
local Events = class()
function Events:__constructor ()
self._handlers = {}
end
function Events:once (a, b)
self:on(a, b, true)
end
function Events:on (events, callback, once)
if type(events) ~= 'table' then
events = {events}
end
for _,name in ipairs(events) do
table.insert(
self._handlers,
{
once ... |
Config = {}
Config.DrawDistance = 100.0
Config.MaxInService = -1
Config.EnablePlayerManagement = true
Config.EnableSocietyOwnedVehicles = false
Config.Locale = 'fr'
Config.Zones = {
WoolFarm = {
Pos = {x = 2310.320, y = 4884.947, z = ... |
local function setup()
led = 4
trigger = 0 -- D0
echo = 2 -- D2
gpio.mode(trigger, gpio.OUTPUT)
gpio.write(trigger, gpio.LOW)
gpio.mode(echo, gpio.INT)
-- LED off
gpio.mode(led, gpio.OUTPUT)
gpio.write(led, gpio.HIGH)
end
local function startup()
if file.open("in... |
return {'itu'} |
local M = {}
M.dbPath = system.pathForFile("gamedata.db3", system.DocumentsDirectory)
--------------------------------------------
-- Game balancing
--------------------------------------------
M.ticksBetweenLaserFire = 12 -- how fast should autofire be
M.scrollRate = 3 -- background scrolling
M.shipAcceleration = 0.... |
AddCSLuaFile()
properties.Add( "keepupright", {
MenuLabel = "#keepupright",
Order = 900,
MenuIcon = "icon16/arrow_up.png",
Filter = function( self, ent, ply )
if ( !IsValid( ent ) ) then return false end
if ( ent:GetClass() != "prop_physics" ) then return false end
if ( ent:GetNWBool( "IsUpright" ) ) then... |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0173-Read-Generic-Network-Signal-data.md
--
-- Description: GetPolicyConfigurationData processing with incorrect parameters
-- Prec... |
package.path = package.path..'../src'
local port = os.getenv('LUAWS_WSTEST_PORT') or 8081
local url = 'ws://localhost:'..port
local client = require'websocket.client'
describe(
'The client module',
function()
local wsc
it(
'exposes the correct interface',
function()
assert.is_same(typ... |
return {'edna','ednas'} |
--Created by the QnEditor,do not modify.If not,you will die very nankan!
local MAP = {
var = {
ImageBack = 1,
closeBtn = 2,
useBtn = 3,
Text_type_des = 4,
describeText = 5,
Button_sub = 6,
Button_add = 7,
Text_num = 8,
Text_money = 9,
Image_money = 10,
iconFrame = 11,
icon = 12,
name = 13,
}... |
return {'zolang','zolder','zolderbalk','zolderbetimmering','zolderdeur','zolderen','zolderetage','zoldergat','zoldering','zolderkamer','zolderkamertje','zolderluik','zolderraam','zolderruimte','zolderschuit','zoldertje','zoldertrap','zoldervenster','zolderverdieping','zoldervloer','zolen','zolderberging','zolderopruimi... |
AddCSLuaFile()
ENT.WeaponTypes.Mortar = {
Name = "mechassault.weapon.mortar",
Type = "Missile",
Function = "FireMortar",
Cooldown = {1.8, 1.75, 1.58},
Class = {
"ma2_proj_mortar_lvl1",
"ma2_proj_mortar_lvl2",
"ma2_proj_mortar_lvl3"
},
DrawHUD = "DrawMortarHUD",
MaxLevel = 3
}
-- From: https://github.com... |
quest kill_effect begin
state start begin
when kill with npc.is_pc() begin
cmdchat("mattius")
end
end
end |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
function onGetFormulaValues(player, level, magicLevel)
return -3, -7
end
combat:setCallback(CALLBACK_PAR... |
require('Utilities');
require('Client');
function Client_PresentMenuUI(rootParent, setMaxSize, setScrollable, game, close)
Game = game; --make it globally accessible
local vert = UI.CreateVerticalLayoutGroup(rootParent);
--List pending proposals. This isn't absolutely necessary since we also alert the player of... |
---@diagnostic disable: undefined-global
local palette = require 'nord-palette'
local base = require 'base'
-- Vimwiki
-- > vimwiki/vimwiki
local clrs = palette.clrs
local spec = palette.spec
local pkg = function()
return {
-- TODO: Add missing
VimwikiLink {fg = clrs.nord8, gui = spec.underline},
Vimwi... |
if not debug then
config.set("debug_enable", true)
os.reboot()
end
config.add("http_blacklist", "$private")
if ... == "debugger" then
periphemu.create("left", "debugger")
peripheral.call("left", "break")
end
for _,v in ipairs(fs.list("/")) do if not fs.isReadOnly(v) then fs.delete(v) end end
_G._CCPC_FI... |
local tcp = require "tcp"
local redis = { protocol = { } }
redis.protocol[43] = function(data) -- '+'
local a, b = data:find("%+%a+\r\n", 1, false)
if a and a == 1 then
return true, data:sub(a+1, b-2), data:sub(b+1)
else
return false, nil, data
end
end
redis.protocol[45] = function(data) -- '-'
local a, b... |
----
-- Utility - Utility functions for xlsxwriter.lua.
--
-- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
--
require "xlsxwriter.strict"
local Utility = {}
local char_A = string.byte("A")
local col_names = {}
local named_colors = {
["black"] = "#000000",
["blue"] = "#0000FF",
["brown"] = "#800... |
--[[
Write a function reduce(max, init, f) that calls a function f() over the integers
from 1 to max like so:
function add(previous, next)
return previous + next
end
reduce(5, 0, add) -- add the numbers from 1 to 5
-- We want reduce() to call add() 5 times with each intermediate
-- result, and return t... |
function onInit()
Debug.console("manager_character: onInit")
Core.classRegister('character..[^.]+', objectCast)
Core.dragInfoRegister('character..[^.]+', dragInfoGet)
Core.windowRegister('editor', 'character..[^.]+', 'character_sheet')
end
function dragInfoGet(db_ref, button, x, y, drag_info)
--Debug.console('... |
--- A module demonstrating deprecated terms.
-- @module deprecation
-- @deprecated Don't use this
return {
a = 1, --- @deprecated
b = 2, --- @deprecated Please don't use this!
}
|
local get_hex = require("cokeline.utils").get_hex
local is_picking_focus = require("cokeline.mappings").is_picking_focus
local is_picking_close = require("cokeline.mappings").is_picking_close
local buffer_ignore_types = { "terminal", "quickfix" }
local colors = require("themer.modules.core.api").get_cp(SCHEME)
local ... |
-- // Variables
local PromiseLibary = { Name = "Promise" }
local PromiseObject = { Name = "Promise" } PromiseObject.__index = PromiseObject
PromiseLibary.Rejected = newproxy()
PromiseLibary.Resolved = newproxy()
-- // Promise Methods
function PromiseObject:GetResult()
return (self.HasResult and table.unpack(self.Res... |
--[[
Variables
]]
Races = {}
PendingRaces = {}
ActiveRaces = {}
FinishedRaces = {}
--[[
Functions
]]
function formatRace(race)
local id = tostring(race.id)
local checkpoints = race.checkpoints
if type(checkpoints) == "string" then
checkpoints = json.decode(checkpoints)
end
l... |
package.path='../src/?.lua;'.. package.path
local l=require "lib"
math.randomseed(1)
assert(20 == l.any({10,20,30}),"any")
assert("cc" == l.split("aa, bb,cc")[3],"split")
local x={1,{3,{4,5}}}
local y=l.copy(x)
x[2][2][2]=10
assert(10 ~= y[2][2][2],"copy")
for k,v in l.order({cc=1,bb=2,aa=3}) do
assert("aa"==k... |
return {
id = "WorldG012",
events = {
{
alpha = 0,
code = {
"playStory1"
},
stories = {
"WG005B"
}
}
}
}
|
_5OQEm1BlOJgJlXtl, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk'
,nil,nil;(function() _msec=(function(_,__,_l)local _ll__l=__["ڪڝټټآټئقؠآحنس"];local __l__l=_l[_[(1380-0x2c8)]][_["ڝڪزئټضجددآ"]];local ____l=(129-0x7d)/((2163/(228+(-0x6a+-19)))+-#'Jeff Bezos approved')local _ll_l=((0xa0-(17248/0x9a))-46)-(... |
return function(...)
return warn and warn(...)
end
|
format_version = "2.0"
panel_type = "note_player"
--------------------------------------------------------------------------
-- front
--------------------------------------------------------------------------
front = {
Panel_front_bg = {
{ path = "[-device2D-front_bg-]" }
}
}
[-device2D-front-]
----... |
//DAK
DAK.bannedplayers = { }
DAK.bannedplayersweb = { }
local BannedPlayersFileName = "config://BannedPlayers.json"
local BannedPlayersWebFileName = "config://BannedPlayersWeb.json"
local lastwebupdate = 0
local function LoadBannedPlayers()
DAK.bannedplayers = DAK:ConvertFromOldBansFormat(DAK:LoadConfigFile(Bann... |
require('Utilities');
function Server_GameCustomMessage(game, playerID, payload, setReturnTable)
if (Mod.Settings.Version ~= 1)then return end;
--If the game is over, return
if (Mod.PublicGameData.GameFinalized == true)then return end;
Dump(payload)
--Sorted according to what is used most
if (payload.Mod == 'C... |
require('stdlib/event/event')
local function refresh_market_offers()
if not global.market then
return
end
for i = 1, 100, 1 do
local a = global.market.remove_market_item(1)
if a == false then
break
end
end
--local str1 = "Gun Turret Slot for " .. tostrin... |
commoner_male = {
"object/mobile/dressed_commoner_fat_human_male_01.iff",
"object/mobile/dressed_commoner_fat_human_male_02.iff",
"object/mobile/dressed_commoner_fat_twilek_male_01.iff",
"object/mobile/dressed_commoner_fat_twilek_male_02.iff",
"object/mobile/dressed_commoner_fat_zabrak_male_01.iff",
"object/mobil... |
function add_dazy()
project( "Dazy" )
kind "StaticLib"
location "Dazy"
staticruntime "on"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
}
includedirs
{
"%{prj.name}/src",
"%{prj.name}/src/Core",
"ThirdParty/spdlog/include",
"ThirdParty/glfw/include",
}
links{ "glfw" }
end |
--- Rotation model for gamepad controls
-- @classmod GamepadRotateModel
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local AccelTween = require("AccelTween")
local BaseObject = require("BaseObject")
local CameraGamepadInputUtils = require("CameraGamepadInputUtils")
local Ga... |
RegisterLuaAnimation('raisearmtest', {
FrameData = {
{
BoneInfo = {
['ValveBiped.Bip01_L_UpperArm'] = {
},
['ValveBiped.Bip01_R_UpperArm'] = {
}
},
FrameRate = 100
},
{
BoneInfo = {
['ValveBiped.Bip01_L_UpperArm'] = {
RU = -46,
RR = -16,
RF = -1
... |
local tests = {
{
name = "AllocatorTest",
includedirs =
{
"../Dependencies/EASTL/include",
"../Dependencies/optick",
"../Frameworks/Gaff/include",
"../Engine/Engine/include",
"../Engine/Memory/include"
},
links =
{
"Gaff",
"Gleam",
"Memory",
"EASTL",
"En... |
local PotHead = RegisterMod( "PotHead",1 );
local PotHeadItem = Isaac.GetItemIdByName("Pothead")
local PotHeadCostume = Isaac.GetCostumeIdByPath("gfx/characters/potcostume.anm2")
local PotEntity = Isaac.GetEntityTypeByName("BluePot")
local BluePot = Isaac.GetEntityVariantByName("BluePot")
local GreenPot = Isaa... |
--------------------------------
-- @module Armature
-- @extend Node,BlendProtocol
-- @parent_module ccs
---@class ccs.Armature:ccs.Node,ccs.BlendProtocol
local Armature = {}
ccs.Armature = Armature
--------------------------------
--- Get a bone with the specified name
--- param name The bone's name you want to get... |
---
-- drawable_cell.lua
local class = require "middleclass"
local DrawableCell = class("DrawableCell")
function DrawableCell:initialize(data)
self.tiles = data.tiles
self.position = data.position
end
function DrawableCell:get_tiles()
return self.tiles
end
function DrawableCell:get_position()
ret... |
-- Manual registration
local C = UDRefl.RegisterType({
type = "C",
methods = {
{
name = "__ctor",
body = function (obj)
print("ctor " .. obj:GetType():GetName())
end
},
{
name = "__dtor",
body = function (obj)
... |
--[[
© 2015 Novabox.org do not share, re-distribute or modify
without permission of its author (dragonfabledonnny@gmail.com).
--]]
-- Command for creating a zombie.
nut.command.add("createzombie", {
adminOnly = true,
onRun = function( client, arguments )
local trace = { };
trace.start = client:EyePos();
trac... |
Dntg_FrameDefine = {
Frame = {
Chain = {
Animation1 = "RedLine",
Animation3 = "LightChain",
Animation2 = "BlueLine"
},
UI = {
MinButton = {
PosY = 1,
PosX = 1277,
Animation = "MinButton"
},
CloseButton = {
PosY = 1,
PosX = 1380,
Animation = "CloseButton"
},
SetButt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.