content stringlengths 5 1.05M |
|---|
local QBCore = exports['qb-core']:GetCoreObject()
QBCore.Functions.CreateCallback('qb-spawn:server:getOwnedHouses', function(source, cb, cid)
if cid ~= nil then
local houses = exports.oxmysql:executeSync('SELECT * FROM player_houses WHERE citizenid = ?', {cid})
if houses[1] ~= nil then
... |
local txBackground = surface.GetTextureID("models/aw_model_materials/cloth_a")
local rt = GetRenderTarget( "AWFlagTexture", 512, 512 )
aw_flag_mat = CreateMaterial( "AWFlagMaterial", "UnlitGeneric", {
["$basetexture"] = "color/white",
["$model"] = "1"
} )
if !aw_team_flags or !flags_rts then
flags_rts = {}
aw_tea... |
require"imlua"
local filename = "lena.jpg"
local image = im.FileImageLoad(filename)
local r = image[0]
local g = image[1]
local b = image[2]
for row = 0, image:Height() - 1, 10 do
for column = 0, image:Width() - 1, 10 do
r[row][column] = 0
g[row][column] = 0
b[row][column] = 0
end
end
image... |
local _={}
_.set_random_color=function(entity)
entity.color={
r=_rnd(),
g=_rnd(),
b=_rnd(),
}
end
return _ |
-- mRename...lua
renamer:renameStart()
return true
|
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
-- maidroid.animation_frames represents the animation frame data
-- of "models/maidroid.b3d".
maidroid.ani... |
modifier_beastmaster_statue_activatable = class({})
--------------------------------------------------------------------------------
function modifier_beastmaster_statue_activatable:IsPurgable()
return false
end
--------------------------------------------------------------------------------
function modifier_bea... |
return {'coquille','coquilles'} |
--[[
3D2D VGUI Wrapper
Copyright (c) 2015 Alexander Overvoorde, Matt Stevens
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, ... |
local hudebug = {}
hudebug.active = false
hudebug.color = {}
hudebug.page = 1
hudebug.pageCount = 0
hudebug.color.r = 255
hudebug.color.g = 0
hudebug.color.b = 0
hudebug.color.a = 255
hudebug.posx = 5
hudebug.posy = 0
hudebug.scale = 1.2
hudebug.slots = {}
--[[
function hudebug.setHudColor
@param (number) r, ... |
local function query_tracetag()
local bar = tiler_lbar(active_display(), function(ctx,msg,done,set)
if (done and active_display().selected) then
image_tracetag(active_display().selected.canvas, msg);
end
return {};
end);
bar:set_label("tracetag (wnd.canvas):");
end
return {
{
name = "query_tracetag",
... |
-- Copyright (C) 2013 Yichun Zhang (agentzh)
require "resty.core.uri"
require "resty.core.hash"
require "resty.core.base64"
require "resty.core.regex"
require "resty.core.exit"
require "resty.core.shdict"
require "resty.core.var"
require "resty.core.ctx"
require "resty.core.misc"
require "resty.core.reque... |
local camZPlus1 = 1500
local camZPlus2 = 50
local pointCamCoords = 75
local pointCamCoords2 = 0
local cam1Time = 500
local cam2Time = 1000
local choosingSpawn = false
RegisterNetEvent('qb-spawn:client:openUI')
AddEventHandler('qb-spawn:client:openUI', function(value)
SetEntityVisible(PlayerPedId(), false)
DoS... |
local ls = require "luasnip"
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
local snippets = {
s("shebang", {
t { "#!/usr/bin/env python", "" },
i(0),
}),
}
return snippets
|
vim.cmd [[
setlocal commentstring=//\ %s
setlocal formatoptions-=o
]]
|
local path = "hall/backpack/backpack_qn_pin.png"
local backpack_qn_pin_map = {
["backpack_bg.png"] = {
file=path,
x=2,y=2,
width=723,height=720,
rotated=false
},
["backpack_succes.png"] = {
file=path,
x=727,y=2,
width=278,height=529,
rotated=true
},
["backpack_tittle_bg.png"] = {
file=path,
... |
--returns the length of a line from the origin to x, y.
function Magnitude(x, y)
return math.sqrt(x * x + y * y)
end
--returns the distance between two 2D points
function Distance(x1, y1, x2, y2)
return Magnitude(x2 - x1, y2 - y1)
end
--returns true if two circles overlap
function CirclesOverlap(x1... |
#!/usr/bin/env lua
local mk = require "mk"
local json = require "mk.json"
local app = mk.new()
app:all(json.filter)
app:get(
"/",
function(req, res)
return 200, [[
<html>
<head><title>Hello World</title></head>
<body><h1>Hello World!</h1></body>
</html>
]]
end
)
app:get(
"/json",
function(req, res... |
local ZipWriter = require 'ZipWriter'
local path = require 'lib.path'
---@class Zip
---@field file any
---@field fp string
local Zip = {}
Zip.__index = Zip
local READER_DESC = {
istext = true,
isfile = true,
isdir = false,
exattrib = {
ZipWriter.NIX_FILE_ATTR.IFREG, ZipWriter.NIX_FILE_ATTR.IRUSR,
ZipW... |
function sleep(n)
local t0 = os.clock()
while os.clock() - t0 <= n do end
end
function onTrigger(context, session)
log:info('Sleeping forever')
while true do
sleep(1)
end
end
|
fx_version 'cerulean'
games { 'gta5' }
author 'MOXHA'
server_only 'yes'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'server.lua',
'bot.js'
} |
local activityData = {
{ factor=0, name="Выберите в/звание"},
{ factor=5000, name="рядовой"},
{ factor=5500, name="ефрейтор"},
{ factor=6000, name="младший сержант"},
{ factor=6500, name="сержант"},
{ factor=7000, name="старший сержант"},
{ factor=7500, name="старшина"},
{ factor=8000, name="прапорщик"},
{ fac... |
--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--
--━━━━━━━━━━━━━━━━━━━❰ Configs ❱━━━━━━━━━━━━━━━━━━━--
-- List of patterns(file or folder) which describes a directory as project root li
vim.g.rooter_pattern = { '.__project__', '.git', 'Makefile', '_darcs', '.hg', '.bzr', '.svn', 'node_modules', 'CMakeLists.txt... |
return {
eng_mode = 'mqconsole',
on_boot = {
ntp_sync = false,
script = 'boot'
},
cron = {
cycle = 500,
dsleep = false,
cycle_cell = 21,
watchdog_interval = 5000,
},
--[[crontab = {
{every = 1, job = 'color_upd'},
{every = 20, job =... |
--[[
Get Jobs by filter criteria
Input:
KEYS[1] Queue / Name Set Key
ARGV[1] Key Prefix
ARGV[2] filter criteria as a json encoded string
ARGV[3] cursor
ARGV[4] count
]]
local ADMIN_KEYS = {
['wait'] = 1,
['waiting'] = 1,
['events'] = 1,
['meta'] = 1,
['active'] ... |
-- This is a "stub" file. It's a little start on your solution.
-- It's not a complete solution though; you have to write some code.
-- Table to be returned by the hello-world module.
local hello_world = {}
-- Add the hello() function to the table returned by this module.
function hello_world.hello()
-- Write some... |
local plugin_name = 'linux.memory'
local every = 60
local function collect()
local jsonb = {}
for line in io.lines(HOST_PROC_DIR .. "/meminfo") do
local key, value = line:match("(%S+)%:%s+%d+%s+kB"), line:match("%S%:%s+(%d+)%s+kB")
if key and value then
jsonb[key] = tonumber(value * 1024)
e... |
modifier_slark_essence_shift_lua_stack = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_slark_essence_shift_lua_stack:IsHidden()
return true
end
function modifier_slark_essence_shift_lua_stack:IsPurgable()
return false
end
function modi... |
-------------------------
-- Civ 6 Map Utilities --
-------------------------
include "MapEnums.lua"
-- Computes IsAdjacentToLand from plotTypes table (when Map not yet filled in)
function IsAdjacentToLand(plotTypes, iX, iY)
local adjacentPlot;
local iW, iH = Map.GetGridSize();
for direction = 0, DirectionTypes.... |
local MakeGoblinsNeutral = class()
function MakeGoblinsNeutral:initialize()
self._sv.ctx = nil
end
function MakeGoblinsNeutral:restore()
end
function MakeGoblinsNeutral:activate()
if self._sv.ctx then
end
end
--Makes the goblins neutral to everyone
function MakeGoblinsNeutral:start(ctx, data)
self._sv.ctx = ctx... |
require 'ros-nvim'.setup {
-- path to your catkin workspace
catkin_ws_path = "~/catkin_ws",
-- terminal height for build / test
terminal_height = 8
}
|
local eventtap = require('hs.eventtap')
local events = eventtap.event.types
local modal={}
-- Return an object whose behavior is inspired by hs.hotkey.modal. In this case,
-- the modal state is entered when the specified modifier key is tapped (i.e.,
-- pressed and then released in quick succession).
modal.new = func... |
-- BeforeLoadingNextCourseSongMessageCommand
-- StartCommand
-- ChangeCourseSongInMessageCommand
-- ChangeCourseSongOutMessageCommand
-- FinishCommand
local sStage = GAMESTATE:GetCurrentStage();
local tRemap = {
Stage_1st = 1,
Stage_2nd = 2,
Stage_3rd = 3,
Stage_4th = 4,
Stage_5th = 5,
Stage_6t... |
local CONF = require "conf"
local world_mod = require "src.world"
local Input = require "src.input"
local Gen = require "src.genetics"
require "src.data"
local Trainer = (require "src.trainer").Trainer
local Stats = (require "src.stats").Stats
local World = world_mod.World
local Wall = world_mod.Wall
local Population... |
RegisterNetEvent("FRP:ME:DisplayAboveHeadText")
AddEventHandler(
"FRP:ME:DisplayAboveHeadText",
function(text, targetServerId)
local playerPed = PlayerPedId()
local targetPlayerPed = GetPlayerPed(GetPlayerFromServerId(targetServerId))
if DoesEntityExist(targetPlayerPed) then
... |
--
-- (C) 2015 Kriss@XIXs.com
--
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,stri... |
erratic_swirl_prong = Creature:new {
objectName = "@mob/creature_names:erratic_swirl_prong",
socialGroup = "prong",
faction = "",
level = 27,
chanceHit = 0.36,
damageMin = 240,
damageMax = 250,
baseXp = 2730,
baseHAM = 7200,
baseHAMmax = 8800,
armor = 0,
resists = {125,135,15,150,150,-1,-1,-1,-1},
meatType... |
--- /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$
---| $$__ $$ /$$__ $$ /$$__ $$| $$ | $$ /$$__ $$| $$__ $$
---| $$ \ $$| $$ \__/ | $$ \__/| $$ | $$| $$ \ $$| $$ \ $$
---| $$ | $$| $$ | $$$$$$ | $$$$$$$$| $$ | $$| $$$$$$$/
---| $$ | $$| $$ ... |
local objects =
{
--Maxime
createObject(8231,554.7999900,2645.1001000,10.0000000,0.0000000,0.0000000,0.0000000,10), --object(vgsbikeschl05,10), (1,10),
createObject(8231,559.2999900,2653.3999000,10.0000000,0.0000000,0.0000000,270.0000000,10), --object(vgsbikeschl05,10), (2,10),
createObject(6037,532.5996100,2635.5... |
-- © 2008-2013 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local ITALIC = wg.ITALIC
local UNDERLINE = wg.UNDERLINE
local BOLD = wg.BOLD
local ParseWord = wg.parseword
local WriteU8 = wg.writeu8
local bitand = bit32.band
loca... |
assert(Skada, "Skada not found!")
local CCSpells = {
[118] = true, -- Polymorph (rank 1)
[12824] = true, -- Polymorph (rank 2)
[12825] = true, -- Polymorph (rank 3)
[12826] = true, -- Polymorph (rank 4)
[28272] = true, -- Polymorph (rank 1:pig)
[28271] = true, -- Polymorph (rank 1:turtle)
[3355] = 16, -- Freezi... |
object_tangible_npe_npe_generic_uniform_box = object_tangible_npe_shared_npe_generic_uniform_box:new {
}
ObjectTemplates:addTemplate(object_tangible_npe_npe_generic_uniform_box, "object/tangible/npe/npe_generic_uniform_box.iff")
|
local U = require("us4l").U
local UTF8 = require("us4l.Encodings").UTF8
local TS = require "us4l.TextSegmentation"
local mul_sign, div_sign = U[[\N{MULTIPLICATION SIGN}]]:ToUtf8(), U[[\N{DIVISION_SIGN}]]:ToUtf8()
local line_num = 0
for line in io.lines( [[..\UCD\auxiliary\SentenceBreakTest.txt]] ) do
line... |
vim.cmd [[
let @d = 'oimport ipdb; ipdb.set_trace()jk'
]]
|
local K, C = unpack(select(2, ...))
local Module = K:NewModule("MicroBar", "AceHook-3.0", "AceEvent-3.0")
local _G = _G
local assert = assert
local C_StorePublic_IsEnabled = _G.C_StorePublic.IsEnabled
local UpdateMicroButtonsParent = _G.UpdateMicroButtonsParent
local function onLeave()
if C["ActionBar"].MicroBarMou... |
-- RP Tags
-- by Oraibi, Moon Guard (US) server
-- ------------------------------------------------------------------------------
-- This work is licensed under the Creative Commons Attribution 4.0 International
-- (CC BY 4.0) license.
local RPTAGS = RPTAGS;
local addOnName, ns = ...;
RPTAGS.queue:NewModule(addOnName... |
CuiVersion = "1.6.2"
LastUpdate = "2020-10-12"
VersionDetail = "Concise UI - " .. CuiVersion .. "[NEWLINE]" .. "Last Update: " .. LastUpdate
|
local GUI = LibStub('NetEaseGUI-2.0')
local View = GUI:NewEmbed('TabPanel', 4)
if not View then
return
end
View._PanelList = View._PanelList or setmetatable({}, {__index = function(t, k)
t[k] = {}
return t[k]
end})
local _PanelList = View._PanelList
function View:EnableTabFrame(flag)
self.noTab = no... |
local Button = require 'lbutton'
local RadioB = require 'lradiobutton'
local Skillpane = require 'skillpane'
local MIN_AUTOSELECT_STRENGTH = 4
local function makeButtons(ranks)
local t = {back = Button.new(0,
love.window.getHeight() - 35,
... |
--- wrapper accepts encoder and decoder objects
--- It combines them into one pipeline and output the picture and the message
-- -- Wrapping encoder and decoder
-- Input format {original image, message}
local wrapper = nn.Sequential()
local blank_plus_encoder = nn.ConcatTable()
blank_plus_encoder:add(nn.SelectTable... |
local rawmulti = angelsmods.marathon.rawmulti
if not clowns.special_vanilla then
data:extend(
{
{
type = "recipe",
name = "clowns-resource1-sluicing",
category = "sluicing",
enabled = false,
icon = "__Clowns-Extended-Minerals__/graphics/icons/clowns-resource1.png",
icon_size = 32,
ingredients =
{
{... |
------------------------------------------------------------
--------------------- yrp_scoreboard -----------------------
------------------------------------------------------------
--------------------- Created by Flap ----------------------
------------------------------------------------------------
---------------... |
------------------------------------------------------------------------
-- brill.lua
-- Copyright 2021 Martin Sievers
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3
-- of this license or (at your option) any later version.
-- The lates... |
local mail = require "resty.mail"
print("Start")
local mailer, err = mail.new({
host = "mail.codimeo.com",
port = 587,
starttls = true,
-- AUTH type ne fonctionne pas avec servage.net
--auth_type = 'login',
username = "nizar.ayed@codimeo.com",
password = "11Janvier1996",
})
if err then
... |
shell.run("rm startup")
print("Arquivo \"startup\" deletado.")
print("Digite a chave do pastebin:")
inputTerm = read()
shell.run("pastebin get ",inputTerm," startup")
print("Reiniciando computador ...")
shell.run("reboot") |
if not modules then modules = { } end modules ['mtx-youless'] = {
version = 1.002,
comment = "script to fetch data from kwh meter polling device",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE",
license = "see context related readme files"
}
-- This script can fetc... |
--------------------------------------------------------------------------------
-- Mob Framework Settings Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allowed to pretend you have written it.
--
--! @file tab_restore_mobs.lua
... |
local E, C, L = select(2, ...):unpack()
if not C.actionbar.bars.enable then return end
----------------------------------------------------------------------------------------
-- ActionBar (modified from ShestakUI)
----------------------------------------------------------------------------------------
local _G = _G
... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SWEP.Base = "weapon_popcorn"
SWEP.PrintName = "Sandcorn"
|
local part = workspace.FloatingPart
local mass = part:GetMass()
local attachment = Instance.new("Attachment")
attachment.Parent = part
local vectorForce = Instance.new("VectorForce")
vectorForce.Force = Vector3.new(0,mass * workspace.Gravity,0)
vectorForce.Attachment0 = attachment
vectorForce.Parent = part
... |
--[[
2020-2021 Xalalau Xubilozo. MIT License
https://xalalau.com/
--]]
-- Live reload the addon when a file is modified
-- Note: UNSAFE! BS will be rebuilt itself exposed to the common addons environment and there may come detoured functions
function BS:LiveReloading_Set()
local name = "BS_LiveReloading"
... |
return { sharp = { 15, 9, 12, 20 }, sharpp = { 15, 9, 12, 31 } } |
-- A util library for bgfx examples
local util = {}
local iup = require "iuplua"
local bgfx = require "bgfx"
local math3d = require "math3d"
local adapter = require "mathadapter"
local function save_ppm(filename, data, width, height, pitch)
local f = assert(io.open(filename, "wb"))
f:write(string.format("P3\n%d %d... |
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local Core = Packages.UIBlox.Core
local withStyle = require(Core.Style.withStyle)
local App = Packages.UIBlox.App
local CheckboxList = require(App.InputButton.CheckboxList)
local MulitlineCheckboxDemo = Roact.Pure... |
--
-- Created by IntelliJ IDEA.
-- User: Kunkka
-- Date: 7/20/17
-- Time: 09:37
-- To change this template use File | Settings | File Templates.
--
DEBUG = 2
-- use framework, will disable all deprecated API, false - use legacy API
CC_USE_FRAMEWORK = true
|
return {'eldorado','elders','eldorado','elders','eldering','elderhorst','elderson','elderkamp','elderman','eldorados'} |
------------------------------------------------------------------------
-- muya.lua
-- Copyright 2018-2021 Martin Sievers
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3
-- of this license or (at your option) any later version.
-- The l... |
-- @menu group
-- This group does and blits the main menu screen. With an offset and a real offset (leftoffset of the first option).
-- Then, the offset is multiplied by the option number, if go to right, offset inc, real offset "goes to" offset, so
-- our option will change progressively. Options spacing 240px.
... |
return function()
add_dependencies { 'citizen:resources:client', 'vendor:concurrentqueue' }
end |
-- rButtonTemplate: core
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- rButtonTemplate Global
-----------------------------
rButtonTemplate = {}
rButtonTemplate.addonName = A
-----------------------------
-- Init
----------... |
------------------------------------------------------------------------------------------------------------
-- This allows button rendering to be deferred if needed
------------------------------------------------------------------------------------------------------------
local res = sys.load_resource("/script... |
--[[
This file is part of YunWebUI.
YunWebUI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that i... |
inspect = require("inspect")
log = require("log")
require("component")
require("constants")
require("Print")
Project = require("Project")
log.overridePrint()
local cm = require("ComponentManager")
function _loadComponent(name) cm.loadComponent(name) end
local controller = require("Controller")()
function _getContr... |
local awful = require("awful")
local M = {}
M.setup = function()
local cmds = {
"setxkbmap -model abnt2 -layout br -option ctrl:swapcaps",
"xset r rate 320 40",
'xinput --set-prop "SIGMACHIP Usb Mouse" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1',
"xsetroot -cursor_name left_ptr",
"picom --exp... |
if (ImGui.TreeNode("Images"))then
ImGuiIO& io = ImGui.GetIO();
ImGui.TextWrapped(
"Below we are displaying the font texture (which is the only texture we have access to in this demo). "
"Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. "
"Hov... |
-- /user/bin/python
local pythonPath = '/home/dave/anaconda3/bin/python'
vim.api.nvim_command("command! LspFormat lua vim.lsp.buf.formatting_sync(nil, 1000)")
-- vim.api.nvim_command("command! -range LspFormat '<,'> lua vim.lsp.buf.range_formatting()")
-- require('dap-python').setup('~/.virtualenvs/debugpy/bin/python... |
ITEM.name = "Casual Cloth (Manual)"
ITEM.desc = "Manually Created Cloth"
ITEM.sheet = {1, 15} -- sheetdata [1]<male> index [2]<fancy>
ITEM.isCloth = true |
if (AAPClassic.Faction == "Horde") then
AAPClassic.PathH2 = {
--------- 30-32 Stranglethorn Vale & Thousand Needles ---
["30-32STV-TN"] = {
{
["PickUp"] = {
194, -- [1]
},
["TT"] = {
["y"] = -11628.3,
["x"] = -55.2,
},
["Zone"] = "33 (Stranglethorn Vale)",
}, -- [1]
{
... |
function newBol(elin, lin, actB)
-- num name[1] as[2] value[3] --
vname, vvall = sys.midle(lin, ' as ')
-- A other variable has the same name
if actB[vname] ~= nil then sys.error(elin, 'c', "Another bol variable has the same name of this.")
-- If is a number --
elseif isBol(vvall, ac... |
--[[
This database of players who violate or use third-party software.
Our development team is trying to improve the quality of the game and get rid of unwanted players.
All rights reserved Awesomium Team.
--]]
AWTeam.Config = {
system = true, -- On/off system
ban = true, -- On/off system
... |
local ts = require("telescope")
ts.setup {
defaults = {
vimgrep_arguments = {
"rg",
"--no-heading",
"--smart-case"
},
prompt_prefix = " ",
selection_caret = " ",
layout_config = {
horizontal = {
prompt_positio... |
-- project
set_project("co")
-- set xmake minimum version
set_xmakever("2.2.5")
-- set common flags
set_languages("c++11")
set_optimize("faster") -- -O2
set_warnings("all") -- -Wall
if is_plat("macosx", "linux") then
add_cxflags("-g3")
if is_plat("macosx") then
add_cxflags("-fno-pie")
end
... |
-- Agent script
-- The moonagents table is preloaded in the agent's _ENV, so it need not be require()d.
-- local moonagents = require("moonagents") -- this should give an error
-- Make moonagents functions global in this _ENV:
moonagents.global_functions()
-- Just to make things a little interesting, the salute is g... |
-- config: (lint (only var:set-loop))
for x = 0, 10 do
x = x + 1
end
for k in pairs(_G) do
k = 0
end
|
--[[
FiveM Scripts
Copyright C 2018 Sighmir
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 any later version.
... |
--[[
TheNexusAvenger
Tests the NexusTextBox class.
--]]
local NexusUnitTesting = require("NexusUnitTesting")
local NexusPluginFramework = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusPluginFramework"))
local NexusTextBox = NexusPluginFramework:GetResource("UI.Input.NexusTextBox")
--[[
Test that... |
--[[Author: Pizzalol
Date: 14.03.2015.
Fires several axes in a cone, damaging and slowing enemies]]
function WhirlingAxesRanged( keys )
local caster = keys.caster
local caster_location = caster:GetAbsOrigin()
local target_point = keys.target_points[1]
local ability = keys.ability
local ability_level = ability:Ge... |
abyssal_underlord_dark_rift_oaa = class(AbilityBaseClass)
LinkLuaModifier("modifier_underlord_dark_rift_oaa_stun", "abilities/oaa_dark_rift.lua", LUA_MODIFIER_MOTION_NONE)
--------------------------------------------------------------------------------
function abyssal_underlord_dark_rift_oaa:GetAOERadius()
return... |
game.ReplicatedStorage.Remotes.GiveClicks.OnServerEvent:Connect(function(player)
player.leaderstats.Clicks.Value = player.leaderstats.Clicks.Value + player.ClickData["Click_Multiplier"].Value
player.ClickData.TotalClicks.Value = player.ClickData.TotalClicks.Value + player.ClickData["Click_Multiplier"].Value
wait(2)
... |
--
-- tests/base/test_table.lua
-- Automated test suite for the new table functions.
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
--
local suite = test.declare("table")
local t
--
-- table.contains() tests
--
function suite.contains_OnContained()
t = { "one", "two", "three" }
test.istru... |
local state = 0
function get_one()
state = 1
return 1
end
function get_two()
state = 2
return 2
end
assert(get_one() == 1 or get_two() == 1 or 0 == 1)
assert(state == 1)
assert((get_one() == 1 and get_two() == 1) == false)
assert((get_one() == 2 and get_two() == 2) == false)
assert((get_one() == 1 o... |
-- _NSword Prototype [masterepico] --
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Meshes : Head, Torso, Wedge, Sphere, Cylinder, Brick, Cone, Devo, Corner, Diamond, Ring, Tetrahedro... |
local Component = Class(function(self, inst)
self.inst = inst
self.some_property = nil
end)
local function do_something_internally(inst)
print("Component: so something internally...")
end
function Component:DoSomething()
return self.some_property
end
function Component:OnSave()
print("component:... |
scrX, scrY = guiGetScreenSize()
guiTemplate = {}
guiLanguage = {}
guiElements = {}
guiID = {}
resetGUI = {
background = {},
viewButtons = {},
viewItems = {},
menuButtons = {},
menuItems = {},
specials = {}
}
heditGUI = resetGUI
staticinfo = {
header = "",
text = ""
}
pData = {
u... |
--(Axe Simulation V0.1 Loaded) This script is brought to you by peyquinn
--Credit is given to LuisPambid Pambid for the name :)
--Please do not steal so copy to notepad
--if you.steal == true then noob = you end
name = "peyquinn"
if script.Parent.Name == "AxeSim" then
char = nil
local ani = Instance.new("Animation")
an... |
function os.capture(cmd, raw)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()
if raw then return s end
s = string.gsub(s, '^%s+', '')
s = string.gsub(s, '%s+$', '')
s = string.gsub(s, '[\n\r]+', ' ')
return s
end
function ApiRequest(Headers, URL, CallBack)
local ParsedUR... |
return {
BLOCKSIZE = 1,
["_VERSION"] = 1,
fiter_chain = 1,
fiter_cycle = 2,
pump_all = 1,
pump_step = 1,
sink_chain = 1,
sink_error = 1,
sink_file = 1,
sink_null = 1,
sink_simplify = 1,
sink_table = 1,
source_cat = 1,
source_chain = 1,
source_empty = 1,
source_error = 1,
source_file = ... |
--[[
KahLua KonferPUG - an open roll loot distribution helper for PUGs.
WWW: http://kahluamod.com/kpug
SVN: http://kahluamod.com/svn/konferpug
IRC: #KahLua on irc.freenode.net
E-mail: cruciformer@gmail.com
Please refer to the file LICENSE.txt for the Apache License, Version 2.0.
Co... |
BilliardsAniMgr = BilliardsAniMgr or { }
-- 创建人物当前轮次动画
-- root是人物框
function BilliardsAniMgr:createUserFrameAni(rootNode, isRestart)
local function removeAni(sp)
if sp and not tolua.isnull(sp) then
sp:stopAllActions()
sp:removeFromParent()
sp = nil
end
end
... |
-- Skeleton Entity
--
local Base = require 'src.entities.entities.active.units.base'
local Skeleton = Base:extend()
function Skeleton:new(data)
Base.new(self, _:merge({
name = 'skeleton',
systems = {
'gravity',
'proximity',
--
animation = Animation['skeleton'],
health = { hp = 25 },
move ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.