content stringlengths 5 1.05M |
|---|
ENT.Type = "Anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Grenade"
ENT.Author = "VurtualRuler98"
ENT.Contact = "steam"
ENT.Purpose = "Getting more ammo!"
ENT.Instructions = "Spawn. Use. Reload."
ENT.Category = "Vurtual's base"
ENT.Spawnable = false
ENT.AdminSpawnable = false
if (CLIENT) then
function ENT... |
return {'cao','caoutchouc','caos'} |
ITEM.name = "Lucius Pattern Mark 22c Combat Shotgun"
ITEM.description = "Utilised by Death Korps Engineers of the Imperial as their standard weapon."
ITEM.model = "models/joazzz/warhammer40k/weapons/shotgun_spacemarines.mdl"
ITEM.class = "weapon_40k_slugger"
ITEM.weaponCategory = "primary"
ITEM.width = 4
ITEM.height = ... |
Emote = {}
Emote.__index = Emote
function Emote:Create(data, id)
if type(data) == "string" then
data = Main.emotes[data]
end
local emote = setmetatable({
id = id,
settings = data,
}, Emote)
if id then
local override = Main.playing[id]
if override then
override:Remove()
end
Main.playing[id] =... |
local CorePackages = game:GetService("CorePackages")
local Action = require(CorePackages.AppTempCommon.Common.Action)
return Action("SET_SCREEN_SIZE", function(screenSize)
return {
newScreenSize = screenSize,
}
end) |
minetest.register_craft({output = "default:flint",recipe = {{"default:gravel"},}})
minetest.register_craft({output = "farming:cotton 4",recipe = {{"group:wool"},}})
bows.register_bow("bow_wood",{
description = "Wooden bow",
texture = "bows_bow.png",
texture_loaded = "bows_bow_loaded.png",
uses = 50,
level = 1,
... |
--proc/input/keyboard: Keyboard API
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
--NOTE: can't distinguish between cursor keys and numpad cursor keys with GetKeyState(), but you can on WM_KEYDOWN et al.
--NOTE: pressing both shift keys and then depressing one of them doesn't trigger WM_... |
local config = require('config');
local party = require('party');
local actions = require('actions');
local packets = require('packets');
local buffs = require('behaviors.buffs')
local healing = require('behaviors.healing');
local magic = require('magic');
local spell_levels = {};
local jsmn = {
spell_levels = spe... |
-- If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
-- Find the sum of all the multiples of 3 or 5 below 1000.
LIMIT = 1000
sum = 0
for ii = 1, (LIMIT-1) do
if (ii%3 == 0) or (ii%5 == 0) then
sum = sum + ii
end
end
print(sum)
r... |
help([==[
Description
===========
Intel C and C++ compilers
More information
================
- Homepage: http://software.intel.com/en-us/intel-compilers/
]==])
whatis([==[Description: Intel C and C++ compilers]==])
whatis([==[Homepage: http://software.intel.com/en-us/intel-compilers/]==])
local root = "/cvmfs/re... |
local Vec2 = {}
function Vec2:new(x,y)
local vec2 = {}
vec2.x = x or 0
vec2.y = y or 0
function vec2:move(dvec2)
self.x = self.x + dvec2.x
self.y = self.y + dvec2.y
end
return vec2
end
return Vec2 |
-- Test for regexp patterns with multi-byte support, using utf-8.
-- See test64 for the non-multi-byte tests.
-- A pattern that gives the expected result produces OK, so that we know it was
-- actually tried.
local helpers = require('test.functional.helpers')
local feed, insert, source = helpers.feed, helpers.insert, ... |
M = {}
local ls = require('luasnip')
M.expand_or_jump = function()
if ls.expand_or_jumpable() then
ls.expand_or_jump()
end
end
M.jump_back = function()
if ls.jumpable(-1) then
ls.jump(-1)
end
end
return M
|
local t = Def.ActorFrame {};
local function UpdateTime(self)
local c = self:GetChildren();
for pn in ivalues(PlayerNumber) do
local vStats = STATSMAN:GetCurStageStats():GetPlayerStageStats( pn );
local vTime;
local obj = self:GetChild( string.format("RemainingTime" .. PlayerNumberToString(pn) ) );
if vStats a... |
luaunit = require('luaunit')
function add(v1,v2)
-- add positive numbers
-- return 0 if any of the numbers are 0
-- error if any of the two numbers are negative
if v1 < 0 or v2 < 0 then
error('Can only add positive or null numbers, received '..v1..' and '..v2)
end
if v1 == 0 or v2 == 0... |
-- $Id: code.lua,v 1.41 2014/12/26 17:18:43 roberto Exp $
if T==nil then
(Message or print)('\n >>> testC not active: skipping opcode tests <<<\n')
return
end
print "testing code generation and optimizations"
-- this code gave an error for the code checker
do
local function f (a)
for k,v,w in a do end
end
... |
local lib = _3DreamEngine
function lib:newObject(path)
--get name and dir
local n = self:split(path, "/")
local name = n[#n] or path
local dir = #n > 1 and table.concat(n, "/", 1, #n-1) or ""
return setmetatable({
materials = {
None = self:newMaterial()
},
objects = { },
positions = { },
lights = {... |
local env = environment()
local l = param_univ("l")
local nat = Const("nat")
local real = Const("real")
local one = Const("one")
local Ul = mk_sort(l)
local lst_l = Const("lst", {l})
local vec_l = Const("vec", {l})
local mat_l = Const("mat", {l})
local A = Local("A", Ul)
local n = Local... |
ReadyState = Class {
__includes = BaseState
}
local font = love.graphics.newFont('asset/fonts/04B_08__.TTF', 70)
function ReadyState:enter(params)
self.timer = 0
self.timeIncrement = 0
gAudioManager:playSound('count')
end
function ReadyState:render()
love.graphics.setColor(1, 1, 1)
love.graphics.set... |
function widget:GetInfo()
return {
name = "Bloom Shader",
desc = "Sets Spring In Bloom",
author = "Floris", -- orginal bloom shader: Kloot
date = "24-9-2016",
license = "",
layer = 9,
enabled = false
}
end
-----------------------------------------------------------... |
-----------------------------------
-- Area: Castle Oztroja
-- NPC: _473 (Brass Door)
-- Notes: Opened by Torch Stands near Password #3
-- !pos -43.455 -20.161 20.014 151
-----------------------------------
local ID = require("scripts/zones/Castle_Oztroja/IDs")
require("scripts/globals/status")
-----------------------... |
--[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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
Author: Petar Koretic <petar.koretic@sart... |
return PlaceObj("ModDef", {
"title", "Project Phoenix No Renegades",
"id", "ChoGGi_ProjectPhoenixNoRenegades",
"steam_id", "2463513394",
"pops_any_uuid", "6967fd74-c9b3-4c47-95e9-b38a494572ba",
"lua_revision", 1007000, -- Picard
"version", 1,
"version_major", 0,
"version_minor", 1,
"image", "Preview.jpg",
"au... |
-- This is the list of metamethods that are copied from one class to another.
local INHERITED_METAMETHODS = {
"__add", "__call", "__concat", "__div", "__le", "__lt", "__mod", "__mul",
"__pow", "__sub", "__tostring", "__unm"
}
-- Copies the metamethods from one class to another.
-- `from` is typically the super, and... |
players = {
party = {},
}
minetest.register_on_newplayer(function(player)
player:get_inventory():add_item("main", "vk_swords:sword")
end)
--
--- Include the rest of the mod's lua files
--
local dirs = { -- Lua files to include
"experience.lua",
"hp.lua",
"inventory.lua",
"hud_info.lua",
"gold.lua",
"regen.lu... |
local assert = assert;
local have_DBI, DBI = pcall(require,"DBI");
local print = print;
local type = type;
local next = next;
local pairs = pairs;
local t_sort = table.sort;
local json = require "util.json";
local mtools = require "migrator.mtools";
local tostring = tostring;
local tonumber = tonumber;
if not have_DB... |
local fn = vim.fn
-- Automatically install packer
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system {
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_pat... |
return function()
local Root = script.Parent.Parent.Parent
local CorePackages = game:GetService("CorePackages")
local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps)
local Roact = PurchasePromptDeps.Roact
local PromptState = require(Root.Enums.PromptState)
local UnitTestContainer = require(Root.Te... |
local LastActivity = GetGameTimer()
local WaitingFor = 0
local WaitingForInput = false
local Characters = "abcdefghijklmnopqrstuvwxyz"
--[[ Threads ]]--
Citizen.CreateThread(function()
while true do
local hasPressed = false
for _, control in ipairs(Config.Controls) do
if IsDisabledControlJustPressed(0, control... |
[[ a = {}
for line in io.lines() do
table.insert(a, line)
end
print(table.getn(a))
table.remove(a,line)
draw each object in the table
inside the draw function
do the removal and adition of objects inside the update function
]] |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_primal_be... |
--[[
poczta - wysylka listow, bot na poczcie
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-poczta
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
addEvent("getPostToPlayer",true)
addEventHandler('getPo... |
-- Copyright © 2016 g0ld <g0ld@tuta.io>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the COPYING file for more details.
-- Quest: @WiWi__33[NetPapa]
local sys = require "Libs/sysl... |
local tiny = require('lib.tiny')
local class = require('lib.middleclass')
local Bullet = require('entity.bullet')
local System = tiny.processingSystem(class('system.bullet.spawn'))
function System:initialize()
self.filter = tiny.requireAll('x', 'y', 'w', 'shoot', 'faction')
end
function System:process(e, dt)
if... |
local entity_vehicle={}
entity_vehicle[2]=util.table.deepcopy(data.raw["car"]["tank"])
entity_vehicle[2].name="tank-arty"
entity_vehicle[2].icon=toicon(entity_vehicle[2].name)
entity_vehicle[2].minable.result=entity_vehicle[2].name
entity_vehicle[2].max_health=1600
entity_vehicle[2].resistances={{type = "fire",decreas... |
require 'mispec'
local buffer, buffer1, buffer2
local function initBuffer(buffer, ...)
local i,v
for i,v in ipairs({...}) do
buffer:set(i, v, v*2, v*3, v*4)
end
return buffer
end
local function equalsBuffer(buffer1, buffer2)
return eq(buffer1:dump(), buffer2:dump())
end
describe('WS2812 buffers', fun... |
Global( "SpellCondition", {} )
function SpellCondition:Init(aSettings)
self.settings = aSettings
self.avlCustomTree = GetAVLWStrTree()
for _, element in ipairs(self.settings.customSpells) do
if element.name then
self.avlCustomTree:add(element)
end
end
end
function SpellCondition:HasCondtion()
return not... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:cc0c367c6df6e8c34c62ff1ccdea28a0:44529e56ab3d392d07ec978e7bfd51cf:67be7e1cdea5d096cff050cf707a9803$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
datasets = require 'datasets/init'
Threads = require 'threads'
Threads.serialization('threads.sharedserialize')
opt = {}
opt.dataset = 'flickr'
opt.gen = 'gen'
opt.data = 'flickr'
opt.fold = '1'
split = 'val'
dataset = datasets.create(opt, split)
function init()
require('datasets/flickr')
end
function main(idx)... |
function talk(sql_impl)
local sql = sql_impl
-- parses incoming messages to populate dictionary
local function talk_parse(string)
local word1,word2
local words = str_split(string, " ")
for i=1,(#words+1) do
local word = words[i]
-- add to dictionary
if word1 ~= nil then
local temp1,temp2 = ... |
PlazaMainLeftCcsView = class("PlazaMainLeftCcsView")
PlazaMainLeftCcsView.onCreationComplete = function (slot0)
slot0._btns = {
slot0.btnBuYu,
slot0.btnQiPai,
slot0.btnDuoRen,
slot0.btnXiuxian
}
if IS_SDK_OFFIIAL_VERIFY or IS_GAME_VERIFY1 then
slot0._btns = {
slot0.btnBuYu
}
end
if NewbieUI then
... |
--version = 1
--PAC_name = 'DEMO'
-- ----------------------------------------------------------------------------
-- ----------------------------------------------------------------------------
system = system or {}
system.init_dev_names = function()
LINE1V1 = V('LINE1V1')
__LINE1V1 = DEVICE( 0 )
end
|
onScriptedTilesRandomMerchant = function(player)
if (player.mapTitle == "Kugnae" or player.mapTitle == "Buya") then
local x, y = player.x, player.y
local chance = 10000
local foundMerchant = false
local roll = math.random(1, chance)
if roll == 1 then
foundMerchant = true
end
if foundMerchant then
... |
local libjpeg = require'libjpeg'
local ffi = require'ffi'
local stdio = require'stdio'
local function test_save()
print('ffi.sizeof\'jpeg_decompress_struct\'', ffi.sizeof'jpeg_decompress_struct')
local infile = 'media/jpeg/progressive.jpg'
local outfile = 'media/jpeg/temp.jpg'
local f = io.open(infile, 'rb')
loca... |
--[[
Name: WMotors
For: Argon Gaming Network
By: Cheese
]]--
local Car = {}
Car.Make = "W Motors"
Car.Name = "Lykan Hypersport"
Car.UID = "lykan_hypersport_lw"
Car.Desc = "Lykan Hypersport"
Car.Model = "models/lonewolfie/lykan_hypersport.mdl"
Car.Script = "scripts/vehicles/lwcars/lykan_hypersport.txt"
Car.Price =... |
--[[
Copyright (c) 2007, Niels Martin Hansen, Rodrigo Braz Monteiro
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
... |
local Grid = {}
-- Generation constants
Grid.size = 5
Grid.waterNum = 25
Grid.teamSize = 3
function Grid:new(gridData)
local obj = {}
setmetatable(obj, self)
self.__index = self
obj.teams = {}
obj.items = {}
-- tile that exsists in all spaces outside of bounds of the board
obj.deadTile = Tile:new(Hex... |
local CSGSecurity = {{{{{ {}, {}, {} }}}}}
Objects = {
createObject ( 6102, 308.2998, 204.59961, 16.9999, 0, 0, 309.996 ),
createObject ( 8172, 244.90039, 177.34961, 4.792, 0, 0, 39.996 ),
createObject ( 8411, 271.59961, 134.40039, -60.218, 0, 0, 309.996 ),
createObject ( 8411, 231.39999, 182.2, -60.218, 0, 0, 309.9... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.Model = "models/weapons/w_smg1.mdl"
ENT.Weapon = "weapon_smg1"
ENT.AmmoType = "smg1"
ENT.Ammo = 10000
function ENT:Initialize()
self.Entity:SetModel( self.Model )
self.Entity:SetMoveType( MOVETYPE_NONE )
self.Entity:SetSolid( SOLI... |
-- This represents a Node (or tile, or vertex) on a grid map
-- Graph search algorithms usually create some temporary information
-- for each single node they process to figure out the path requested.
-- We need to keep these data inside this custom structure.
-- Creates a new node
local function createNode(x, y, dist... |
hook.Add("ScoreboardShow","ScoreBoardOpen", function ()
scoreboard = vgui.Create("DFrame")
scoreboard:SetSize(900,800)
scoreboard:Center()
scoreboard:SetTitle("")
scoreboard:SetVisible(true)
scoreboard:ShowCloseButton(false)
scoreboard:SetDraggable(false)
gui.EnableScreenClicker(true)
function scoreboard... |
FindOutlier = {};
function FindOutlier.find(integers)
local group = { [0] = {}, [1] = {} }
for _,v in ipairs(integers) do
index = v % 2
if #group[index] < 2 then
table.insert( group[index], v )
if #group[0] + #group[1] == 3 then
return group[#group[0]-1][... |
local Gladius = _G.Gladius
if not Gladius then
DEFAULT_CHAT_FRAME:AddMessage(format("Module %s requires Gladius", "Auras"))
end
local L = Gladius.L
local LSM
-- global functions
local _G = _G
local ceil = math.ceil
local pairs = pairs
local rawget = rawget
local setmetatable = setmetatable
local strfind... |
local skynet = require "skynet"
local socket = require "socket"
local queue = require "skynet.queue"
local function server()
local host
host = socket.udp(function(str, from)
print("server recv", str, socket.udp_address(from))
socket.sendto(host, from, "OK " .. str)
end , "127.0.0.1", 8765) -- bind an address
en... |
local config = {
jarPositions = {
Position(32991, 32721, 8),
Position(32940, 32778, 9),
Position(32985, 32772, 10),
Position(32936, 32752, 11),
Position(32979, 32737, 12)
},
time = 3600,
brokenJarId = 13495,
chance = 5,
randomText = {'Waaaaaah', 'You are too afraid to destroy this object'},
bossName = ... |
local entity = {}
entity["arcana"] = [[Strength]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Power Slash]]
entity["spellDeck"][2] = [[Dodge Slash]]
entity["spellDeck"][3] = [[]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[]]
entity["spellDeck"][6] = [[]]
entity["desc"] = [[One of the more powerful... |
--[[
Copyright (c) 2007-2008 Gordon Gremme <gremme@zbh.uni-hamburg.de>
Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and thi... |
--
-- TvmJIT : <http://github.com/fperrad/tvmjit/>
-- Copyright (C) 2013-2014 Francois Perrad.
--
-- see http://http://www.json.org/
-- see RFC 4627
--
local peg = require 'lpeg'
local P = peg.P
local R = peg.R
local S = peg.S
local V = peg.V
local g = P {
'json';
json = V'object'
... |
--[[ TriscuitTravel by Triscuit2311 ]]--
fx_version 'adamant'
game 'gta5'
server_scripts {
'TriscuitTravel.server/main.lua',
'config.lua'
}
client_scripts {
'TriscuitTravel.client/main.lua',
'config.lua'
} |
local GuiService = game:GetService("GuiService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Roact = require(ReplicatedStorage.Modules.Roact)
local Context = Roact.createContext()
-- CoreProvider accesses the engine's resolution scale from a core script only
-- API on GuiService.
local CoreP... |
--/////////////////////////////////////////////////////////
--// Exar Kun Dungeon //
--// Created By TOXIC:6/23/2020 //
--////////////////////////////////////////////////////////
--////////////////////////////////////////////////////////
--// Current Boss Planet Dungeon2 //
--// Current Boss Type NPC //
... |
--[[
Deprecated functions, kept around for compatibility
--]]
local compat = {}
function compat:init(modApiExt)
function modApiExt:getParentPath(path)
return GetParentPath(path)
end
function modApiExt:scheduleHook(msTime, fn)
modApi:scheduleHook(msTime, fn)
end
function modApiExt:runLater(f)
modApi:runL... |
function getModule(gui)
local Label = gui.internal.class(gui.widgets.Base)
function Label:init(params)
self.type = "Label"
self.position = {0, 0}
self:setText("Label")
gui.widgets.Base.init(self, params)
gui.internal.callThemeFunction(self, "init")
end
functio... |
local common = {
Env = {
CCOPTS = { "-ansi", "-pedantic", "-Werror", "-g", Config = "*-gcc-*" },
LIBS = { "stdc++", Config = { "*-clang", "*-gcc-*" } }
}
}
Build {
Units = function()
Program {
Name = "openvcl",
Sources = { Glob { Dir = "src", Extensions = { ".c", ".cpp", ".h" } } }
}
Default "openv... |
return {'pgs'} |
function __TS__ArrayConcat(arr1, ...)
local args = {...}
local out = {}
for ____, val in ipairs(arr1) do
out[#out + 1] = val
end
for ____, arg in ipairs(args) do
if __TS__ArrayIsArray(arg) then
local argAsArray = arg
for ____, val in ipairs(argAsArray) do
... |
function get()
local character = Player(http.getValues.name)
if character == nil then
http:redirect("/")
return
end
if file:exists("public/images/signature/" .. character:getName() .. ".png") and not app.Mode == "dev" then
local up = file:mod("public/images/signature/" .. charac... |
return {
time = 0,
name = "2020年6月世界BOSS叠加buff",
init_effect = "jinengchufablue",
color = "yellow",
picture = "",
desc = "",
stack = 1,
id = 8705,
icon = 2120,
last_effect = "",
blink = {
0,
0.7,
1,
0.3,
0.3
},
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach"
},... |
VERSION = "1.0.0"
function love.conf(t)
t.window.width = 1280
t.window.height = 720
t.window.title = "Gradius LÖVE v" .. VERSION
end
|
object_tangible_loot_creature_loot_collections_space_reactor_mark_05_cygnus = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_05_cygnus:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_05_cygnus, "object/tangible/loot/creature/loot/collecti... |
UMF_REQUIRE "/"
---@class Body: Entity
local body_meta = global_metatable( "body", "entity" )
--- Tests if the parameter is a body entity.
---
---@param e any
---@return boolean
function IsBody( e )
return IsEntity( e ) and e.type == "body"
end
--- Wraps the given handle with the body class.
---
---@param handle nu... |
return {
aahp = {
buildcostenergy = 29595,
buildcostmetal = 3541,
builder = true,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 11,
buildinggrounddecalsizey = 11,
buildinggrounddecaltype = "aahp_aoplane.dds",
buildpic = "aahp.dds",
buildtime = 36000,
canmove = true,
c... |
-- luacheck: globals ignore QuickAppBase QuickApp QuickAppChild quickApp fibaro
-- luacheck: globals ignore api json class setInterval clearInterval
-- luacheck: globals ignore ColorComponents
_=loadfile and loadfile("TQAE.lua"){
refreshStates=true,
debug = { onAction=true, http=false, UIEevent=true },
--offline =... |
local Tier2ArmorVendorID = 43482
local Tier2ArmorLoop = {
[1] = {16963,16961,16966,16964,16962}, -- Warrior --
[2] = {16955,16953,16958,16956,16954}, -- Paladin --
[3] = {16939,16937,16942,16940,16938}, -- Hunter --
[4] = {16908,16832,16905,16907,16909}, -- Rogue --
[5] = {16921,16924,16923,16920,169... |
--[[
Description: Contains bytecode/loadstring-related functionality
Author: Sceleratis
Date: 12/11/2021
--]]
local Root, Package, Utilities, Service
local Bytecode = {
--// Load bytecode
LoadBytecode = function(self, bytecode: string, envData: {})
local fiOneMod = Package.SharedAssets.FiOne:Clone()
loc... |
local band = {
black = 0,
brown = 1,
red = 2,
orange = 3,
yellow = 4,
green = 5,
blue = 6,
violet = 7,
grey = 8,
white = 9
}
return {
decode = function(c1, c2, c3)
local val = (band[c1] * 10 + band[c2]) * 10 ^ band[c3]
if val > 1000 then
return... |
Config = {}
Config.Locale = 'en'
Config.Volume = 0.5 -- 0.1 , 1.0
Config.EnablePrice = true -- false = bikes for free
Config.EnableEffects = true
Config.EnableSoundEffects = false
Config.EnableBlips = true
Config.PriceTriBike = 89
Config.PriceScorcher = 99
Config.... |
--[[
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 appl... |
local systemTime = hs and hs.timer.secondsSinceEpoch or os.time
local t = systemTime()
-- local sievedPrimes = {}
-- local isPrime = {}
sievedPrimes = {}
isPrime = {}
local buildSieve = function(max_size)
-- force a freeing of used memory
sievedPrimes, isPrime = {}, {} ; collectgarbage() ; collectgarbage() ;... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0293-vehicle-type-filter.md
---------------------------------------------------------------------------------------------------
-- Descr... |
-- music rate. its the rate of the music
local rateTextSize = GAMEPLAY:getItemHeight("rateDisplayText")
return Def.ActorFrame {
Name = "MusicRate",
InitCommand = function(self)
self:playcommand("SetUpMovableValues")
registerActorToCustomizeGameplayUI(self)
end,
SetUpMovableValuesMessageCommand = function(self... |
local ffi = require "ffi"
require "resty.openssl.include.ossl_typ"
ffi.cdef [[
typedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata);
EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x,
// the following signature has been modified to avoid ffi.cast
pem_password_cb *cb, const ch... |
local popup = require("neogit.lib.popup")
local LogViewBuffer = require 'neogit.buffers.log_view'
local git = require("neogit.lib.git")
local util = require 'neogit.lib.util'
local M = {}
local commit_header_pat = "([| *]*)%*([| *]*)commit (%w+)"
local function is_new_commit(line)
local s1, s2, oid = line:match(co... |
--1、if you fist time use ,please check you mian.lua file contain the folowing three lines:[5,6,23], or else you can't debug you exe
--2、if you project is the new project ,you can just replace you mian.lua with this file simply
--2018.1.2 by cjoy:http://www.5icoin.com/LuaDebug.zip
local breakSocketHandle,debugXpCall =... |
local mType = Game.createMonsterType("Verminor")
local monster = {}
monster.description = "Verminor"
monster.experience = 35000
monster.outfit = {
lookType = 12,
lookHead = 38,
lookBody = 114,
lookLegs = 0,
lookFeet = 94,
lookAddons = 0,
lookMount = 0
}
monster.health = 80000
monster.maxHealth = 80000
monster.... |
local files = require 'files'
local guide = require 'core.guide'
local lang = require 'language'
return function (uri, callback)
local ast = files.getAst(uri)
if not ast then
return
end
guide.eachSourceType(ast.ast, 'local', function (source)
local name = source[1]
if name == '... |
-- Give the target state returns a list of actors
-- that are targets.
local function WeakestActor(list, onlyCheckHurt)
local target = nil
local health = 99999
for k, v in ipairs(list) do
local hp = v.mStats:Get("hp_now")
local isHurt = hp < v.mStats:Get("hp_max")
... |
local R = require "rigel"
R.export()
local SOC = require "generators.soc"
local harness = require "generators.harnessSOC"
local RM = require "generators.modules"
local C = require "generators.examplescommon"
require "generators.core".export()
local T = require "types"
T.export()
local SDF = require "sdf"
local Zynq = r... |
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
local S = minetest.get_translator("more_chests")
local pipeworks_enabled = minetest.global_exists("pipeworks")
local wifi = gen_def({
description = S("Wifi Chest"),
type = "wifi chest",
size = "small",
tiles = {
top = "wifi_top.png"... |
model.timeDlg={}
function model.timeDlg.onClose()
if model.timeDlg.ui then
model.timeDlg.timeDlg_wasClosed=true
model.timeDlg.closeDlg()
end
end
function model.timeDlg.closeDlg()
if model.timeDlg.ui then
local x,y=simUI.getPosition(model.timeDlg.ui)
model.timeDlg.timeUi_pre... |
addEventHandler("onPlayerChangeNick",getRootElement(),
function()
cancelEvent()
end)
invalidChars = {}
for i = 33, 39 do
invalidChars[i] = true
end
for i = 40, 43 do
invalidChars[i] = true
end
invalidChars[47] = true
for i = 58, 64 do
invalidChars[i] = true
end
invalidChars[92] = true
invalidChars[94] = true
invalidC... |
fx_version 'cerulean'
games {'gta5'}
this_is_a_map 'yes'
ui_page "html/index.html"
files({
"html/*",
"html/images/*",
"html/css/*",
"html/webfonts/*",
"html/js/*"
})
client_scripts {
"client/*",
'@PolyZone/client.lua',
'@PolyZone/BoxZone.lua',
'@PolyZone/EntityZone.lua',
'@PolyZone/CircleZone.lua',
'@PolyZ... |
-- Spectating don't allow A or D .. this is a fix
hook.Add("CreateMove","FixMove",function(cmd)
if input.IsKeyDown(KEY_A) then
cmd:SetButtons(cmd:GetButtons() + IN_LEFT)
end
if input.IsKeyDown(KEY_D) then
cmd:SetButtons(cmd:GetButtons() + IN_RIGHT)
end
end)
local function ViewFix(ply, pos, angles, fov)
if !L... |
msg_e = {"raznostrani", "jednakokraki", "jednakostranični"}
msg_a = {"oštrougli", "pravougli", "tupougli"} |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterNetEvent('esx_policejob:drag')
AddEventHandler('esx_policejob:drag', function(target)
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer.job.name == 'police' then
TriggerClientEvent('esx_policejob:drag', target, sourc... |
local polls_component = module:get_option_string("polls_component", "polls"..module.host);
module:add_identity("component", "polls", polls_component);
|
local is_empty_table
is_empty_table = require('httoolsp.utils').is_empty_table
local str_sub = string.sub
local str_find = string.find
local str_gmatch = string.gmatch
local str_gsub = string.gsub
local str_lower = string.lower
local str_count
str_count = function(s, pattern, i, j)
if i then
s = str_sub(s, i, j)
... |
data:extend
{
{
type = "string-setting",
name = "productivity-mode",
setting_type = "startup",
default_value = "Machines",
allowed_values = {"Machines", "Modded Modules"},
order = "a-a"
},
{
type = "string-setting",
name = "modded-entity-graphics",
setting_type = "startup",
... |
local dyson_swarm = require "dyson_swarm"
local function disable_no_satellite_launch_message()
if remote.interfaces["silo-script"] then
remote.call("silo-script", "set_show_launched_without_satellite", false)
end
end
script.on_init(disable_no_satellite_launch_message)
script.on_configuration_changed(d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.