content stringlengths 5 1.05M |
|---|
do return end
do
local MAX_VOLUME = 30 * 30 * 30
local we = worldedit
local volume = we.volume
local safewrap = function(func)
return function(pos1, pos2, ...)
if validbox(pos1, pos2) then
return func(pos1, pos2, ...)
end
return 0, pos1, pos2
end
end
local validbox = function(pos1, pos2)
tpos... |
-- This file is for use with quick-cocos2d-x framework
-- https://github.com/dualface/quick-cocos2d-x
--
-- This file is automatically generated with PhysicsEdtior (http://physicseditor.de). Do not edit
--
-- Usage example:
-- local scaleFactor = 1.0
-- local physicsData = require("shapedefs").physicsData(scaleFact... |
isHolding = false
name = "noScene"
local nameIVT = INSPECTOR_VARIABLE_TYPE.INSPECTOR_STRING
nameIV = InspectorVariable.new("name", nameIVT, name)
NewVariable(nameIV)
-- Called each loop iteration
function Update(dt)
if (GetInput(12) == KEY_STATE.KEY_DOWN) then
isHolding = true
elseif (GetInput(12) == KEY... |
require "lmkbuild"
local assert = assert
local append = lmkbuild.append_local
local cp = lmkbuild.cp
local file_newer = lmkbuild.file_newer
local ipairs = ipairs
local is_valid = lmkbuild.is_valid
local mkdir = lmkbuild.mkdir
local print = print
local resolve = lmkbuild.resolve
local rm = lmkbuild.rm
local split = lmk... |
local widget = require( "widget" )
local composer = require( "composer" )
local json = require ("json")
local myData = require ("mydata")
local upgrades = require("upgradeName")
local crewShopScene = composer.newScene()
widget.setTheme( "widget_theme_android_holo_dark" )
local crewShopEventListener
local itemsCSTable =... |
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_rulebook\cr_abilitycategories.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
DefineAbilityCategory({
Name="Special Ability",
Category="Special Ability",
Editable=false,
EditPool=true,... |
local addon,ns = ...
local MSQ = LibStub("Masque", true)
if not MSQ then return end
local VERSION = "1.0.1"
local path = "Interface\\AddOns\\" .. addon .. "\\SkinsModule\\GoldpawTextures\\"
local BLANK = [[Interface\ChatFrame\ChatFrameBackground]]
-- Masque scaling 101:
-- Masque believes all buttons should be 36x3... |
local basexx = require 'basexx'
local json = require 'cjson'
json.encode_empty_table('array')
local crypto = require 'crypto'
local data = {}
data.sign = {
['HS256'] = function(data, key) return crypto.hmac.digest('sha256', data, key) end,
['HS384'] = function(data, key) return crypto.hmac.digest('sha384'... |
local M = {}
M.base_30 = {
white = "#abb2bf",
darker_black = "#0e0f1a",
black = "#11121D", -- nvim bg
black2 = "#171823",
one_bg = "#191a25",
one_bg2 = "#21222d",
one_bg3 = "#2c2d38",
grey = "#383944",
grey_fg = "#3e3f4a",
grey_fg2 = "#454651",
light_grey = "#4b4c57",
red = "#ee6d8... |
require("stategraphs/commonstates")
local actionhandlers =
{
}
local events=
{
CommonHandlers.OnLocomote(false,true),
CommonHandlers.OnSleep(),
CommonHandlers.OnFreeze(),
CommonHandlers.OnAttack(),
CommonHandlers.OnAttacked(),
CommonHandlers.OnDeath(),
-- EventHandler("attacked", functio... |
-- Here be dragons
local Player = game.Players.LocalPlayer
return function (Cmdr)
local Util = Cmdr.Util
local Window = require(script:WaitForChild("Window"))
Window.Cmdr = Cmdr
local AutoComplete = require(script:WaitForChild("AutoComplete"))(Cmdr)
Window.AutoComplete = AutoComplete
-- Sets the Window.Proc... |
--[[view 的公共类]]
function publ_getItemFromTree( node, dir )
if #dir < 1 or not node then
return nil;
end
for i=1,#dir do
node = node:getChildByName(dir[i]);
if not node then
return nil;
end
end
return node;
end |
local K, C, L, _ = select(2, ...):unpack()
if C["Minimap"].ping ~= true then return end
local format = string.format
local select = select
local time = time
local CreateFrame = CreateFrame
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
local UnitClass = UnitClass
local Unit... |
--Module script at game.workspace.BIOS.BIOS.ModuleScript
local module = {}
pressed = nil
function module.passKeyPress(keyNum)
pressed = keyNum
end
function module.getKeyPress(keyNum)
return pressed
end
function module.accepted()
pressed = nil
end
return module
|
---@class ModelAttachment : zombie.scripting.objects.ModelAttachment
---@field private id String
---@field private offset Vector3f
---@field private rotate Vector3f
---@field private bone String
---@field private canAttach ArrayList|Unknown
---@field private zoffset float
---@field private updateConstraint boolean
Mode... |
-- Author: Christian Vallentin <mail@vallentinsource.com>
-- Website: http://vallentinsource.com
-- Repository: https://github.com/MrVallentin/http_request
--
-- Date Created: December 14, 2015
-- Last Modified: April 11, 2016
--
-- Developed and tested using Lua 5.1 and Lua 5.2
local http = require("socket.http")
lo... |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
-- SlashCommands namespace
LUIE.SlashCommands = {}
local SlashCommands = LUIE.SlashCommands
local printToChat = LUIE.PrintToChat
local zo_strformat = zo_strformat
local moduleName = LUIE.name .. "SlashCommands"
SlashCommands.Enabled = false... |
local dap = require('dap')
dap.adapters.node2 = {
type = 'executable',
command = 'node',
args = {os.getenv('HOME') .. '/.config/nvm/12.16.3/lib/node_modules/node-debug2/bin/node-debug.js'}
}
dap.configurations.javascript = {
{
name = 'Node file',
type = 'node2',
request = 'launch',
-- program ... |
-- Luagit2's Revert Module Tests
local fixer = require("Fixtures.fix_repo")
describe(" Revert Methods Tests ", function()
local luagit2 = require("luagit2")
local repo_path = "Fixtures/WORKON_REPO"
setup(function()
luagit2.init()
end)
before_each(function()
fixer.set_repo... |
require("./fsac_super_admin.lua")
FSACSuperAdminManager = {}
FSACSuperAdminManager.demote = function(name)
if global.superadmin_list == nil then
return false
end
local result = false
for index, admin in ipairs(global.superadmin_list) do
if admin.name == name then
result = true
FSACMainSc... |
return {
gok_egeo = {
activatewhenbuilt = true,
buildangle = 8192,
buildcostenergy = 504200,
buildcostmetal = 28013,
builder = false,
buildpic = "gok_egeo.dds",
buildtime = 725000,
category = "ALL SURFACE UNDERWATER",
collisionvolumeoffsets = "0 -2 0",
collisionvolumescales = "125 150 12... |
local _, NeP = ...
NeP.Interface = {}
NeP.Interface.statusBarStylesheet = {
['frame-texture'] = {
type = 'texture',
layer = 'BORDER',
gradient = 'VERTICAL',
color = '000000',
alpha = 0.7,
alphaEnd = 0.1,
offset = 0,
}
}
NeP.Interface.buttonStyleSheet = {
['frame-color'] = {
ty... |
PATH_SRC = PREFIX .. "./src/"
PATH_LIB = PATH_SRC .. "./lua-engine/"
dofile(PATH_LIB .. "./header.lua")
PATH_GAME = PATH_SRC .. "./lua-game/"
PATH_EDITOR = PATH_SRC .. "lua-editor/"
PATH_IMAGES = PREFIX .."./images/"
PATH_SOUNDS = PREFIX .."./sounds/"
PATH_SPRITES = PATH_IMAGES .. "sprites/"
PATH_GUI_IMG = PATH_IMAGES ... |
object_mobile_urnsoris_queen = object_mobile_shared_urnsoris_queen:new {
}
ObjectTemplates:addTemplate(object_mobile_urnsoris_queen, "object/mobile/urnsoris_queen.iff")
|
-- vim: set ft=lua:
-- workaround for https://github.com/luarocks/luarocks/issues/740
rocks_trees = {
{ name = 'rover', root = [[lua_modules]] },
}
|
local overlay
local touchStart = 0
local updateCursorEvent = nil
local zoomInButton
local zoomOutButton
-- public functions
function init()
if not g_app.isMobile() then return end
overlay = g_ui.displayUI('mobile')
overlay:raise()
zoomInButton = modules.client_topmenu.addLeftButton('zoomInButton', 'Zoom In'... |
local t = Def.ActorFrame{}
local border = 5
local inputX = THEME:GetMetric("ScreenNetSelectBase","ChatInputX")
local inputY = THEME:GetMetric("ScreenNetSelectBase","ChatInputY")
local inputWidth = THEME:GetMetric("ScreenNetSelectBase","ChatTextInputWidth")*0.5
local inputHeight = 10
local outputX = THEME:GetMetric(... |
--Update: By JaceNicky and MrImpressive
local pred = module.internal('pred')
local TS = module.internal('TS')
local orb = module.internal("orb")
local EvadeInternal = module.seek("evade")
-- Delay Functions Call
local delayedActions, delayedActionsExecuter = {}, nil
local function DelayAction(func, delay, args... |
local PSBT = PSBT
local ZO_Object = ZO_Object
local ScrollArea = ZO_Object:Subclass()
local CBM = CALLBACK_MANAGER
local tinsert = table.insert
local tremove = table.remove
local NUM_STICKY = 4
local CENTER = CENTER
local BOTTOM = BOTTOM
local TOP = TOP
... |
warning = body:new {
mode = 'line',
piece = .15,
lineWidth = 1,
angle = 0,
bodies = {},
__type = 'warning'
}
function warning:__init()
if self.based_on then
self.angle = math.atan2(self.based_on.Vy, self.based_on.Vx)
self.size = self.based_on.size*2
self.position = restrainInScreen(self.based_on.position:... |
s = Procedural.Shape():addPoint(-1,-1):addPoint(0.5,0):addPoint(-0.5,0):addPoint(1,1)
tests:addShape(s) |
local ok, msg = pcall(function()
dofile("notexist")
end)
assert(not ok and string.find(msg, ".*notexist.*"))
local ok, msg = pcall(function()
assert(getfenv(2) == _G)
end)
assert(ok)
local i = 1
local fn = assert(load(function()
local tbl = {"return ", "1", "+", "1"}
local v = tbl[i]
i = i + 1... |
local cmd = vim.cmd
cmd [[
" Expand
imap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>'
smap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>'
" Expand or jump
imap <expr> <C-l> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<C-l>'
smap <expr> <C-l... |
function PIS:PingIsInBox(pos, pingX, pingY)
local centerX = ScrW() / 2
local centerY = ScrH() / 2
local ySize = 45
local xSize = 45
local ply = LocalPlayer()
local dist = ply:GetPos():Distance(pos)
local distModifier = math.Clamp((6000 - dist) / 6000, 0.6, 1)
local scale = distModifier
if (dist < 20... |
--[[
Minetest Client Mod: Chest Inspector
Copyright (C) 2017 tjnenrtn <tjnenrtn@protonmail.com>
MIT License
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 withou... |
--[[
DEVELOPMENTAL VERSION;
VERSION 1.2.2
Copyright thelastpenguin™
You may use this for any purpose as long as:
- You don't remove this copyright notice.
- You don't claim this to be your own.
- You properly credit the author, thelastpenguin™, if you publish your work based on (and/or using) this.
If you ... |
local vdiagnostic = vim.diagnostic
local lint = require "dm.linter.lint"
local register = lint.register
do
local pat = "[^:]+:(%d+):(%d+):(([EWF])%w+):(.+)"
local group = { "lnum", "col", "code", "severity", "message" }
local severity_map = {
E = vdiagnostic.severity.ERROR,
W = vdiagnostic.severity.WAR... |
local function ShowLevel( pnl )
pnl:AddColumn( "Level", function( ply, label )
label:SetTextColor( Color(255,255,255,255) )
if ( ply.Level ) then
return tostring(ply.Level)
end
return "1"
end)
end
hook.Add( "TTTScoreboardColumns", "Level.TTTScoreboardColumns", ShowLevel ) |
Input = {}
local MAX_MESSAGE_LENGTH = 128
local REPEAT_KEY_WAIT = 500
local REPEAT_KEY_DELAY = 50
local repeatTimer
local repeatStartTimer
local inputActive = false
local inputText = ""
local inputHistory = {}
local inputHistoryCurrent
local currentInputText
function Input.isActive()
return inputActive
end
fun... |
-----------------------------------
-- Author: Uli Schlachter --
-- Copyright 2009 Uli Schlachter --
-----------------------------------
local type = type
local pcall = pcall
local wibox = require("wibox")
local string = {
format = string.format
}
module("obvious.lib.widget.textbox")
function create(data, l... |
COMMAND.name = "/xesetverifytime"
COMMAND.RequireAdmin = true
function COMMAND:Execute(gc,msg,VFD,doubt, args)
if (not args[1]) then
--msg:replySendMessage(Localization.getStringLocalized(gc:getString("language"), "basic/commands/badArgs"))
msg:replyLocalizedMessage(gc:getString("language"),"basic/commands/b... |
function Splodev2()
--local universalexplosion = ents.FindByClass("*explosion")
--local universalboom = ents.FindByClass("*boom*")
local explode = ents.FindByClass("env_explosion")
local explode2 = ents.FindByClass("Explosion")
local explodear2 = ents.FindByClass("env_ar2explosion")
local physboom = ents.Fi... |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local server_name = 'angularls'
local bin_name = server_name
local install_loc = util.base_install_dir .. '/' .. server_name
local script_loc = install_loc .. '/node_modules/@angular/language-server/index.js'
local bin_loc = install_loc ... |
local Players = game:GetService("Players")
local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Roact = require(Modules.Packages.Roact)
local RoactRodux = require(Modules.Packages.RoactRodux)
local CatalogConstants = require(Modules.AvatarExperience.Catalog.CatalogConstants)
local AvatarEdi... |
io.write("Hello World\n")
|
local cfg = {}
-- define each group with a set of permissions
-- _config property:
--- gtype (optional): used to have only one group with the same gtype per player (example: a job gtype to only have one job)
--- onspawn (optional): function(player) (called when the player spawn with the group)
--- onjoin (optional): ... |
--Libs
anim8 = require("assets/codebase/libs/anim8")
bump = require("assets/codebase/libs/bump")
class = require("assets/codebase/libs/middleclass")
--Core
require("assets/codebase/core/game")
require("assets/codebase/core/player")
require("assets/codebase/core/tileset")
require("assets/codebase/core/map")
require("a... |
-- Version: Lua 5.4.1
-- Copyright © 2021 TechShare Inc. All Rights Reserved.
function Go_xyzr(x,y,z,r)
P = {}
P["tool"] = 0
P["armOrientation"]=right
P["load"]=0.000000
P["coordinate"]={x, y, z, r, 0.000000, 0.000000 }
P["user"]=0.000000
-- SYNC=1が重要,ロボットが移動終了するのを待機
Go(P,"Speed=100 SYNC=1")
end
function ... |
kShaderDefaultFsh = [[
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
void main()
{
gl_FragColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord);
}
]]
|
-- local log = require("hs.logger").new("If_test")
local test = require("cp.test")
local prop = require("cp.prop")
local rx = require("cp.rx")
local Statement = require("cp.rx.go.Statement")
local If = require("cp.rx.go.If")
local Given = require("cp.rx.go... |
answ = {"Duž AC je prečnik kruga.", "Duž AC je poluprečnik kruga.", "Duž AD je prečnik kruga.", "Duž AD je poluprečnik kruga.", "Duž OA je poluprečnik kruga.", "Duž BO je prečnik kruga.", "Duž DO je poluprečnik kruga.", "Tačka O je centar kruga.", "Tačka A je centar kruga."}
test = {"n", "n", "t", "n", "t", "n", "t", ... |
return {'eyeliner','eyeopener','eye','eyeliners','eyeopeners'} |
local Actor = require "actor"
local Action = require "action"
local Tiles = require "tiles"
local Condition = require "condition"
local Explode = Condition:extend()
Explode.range = 2
Explode.color = {0.8, 0.5, 0.1}
Explode:afterReaction(reactions.Die,
function(self, level, actor, action)
local fov, actors = lev... |
local checkluatype = SF.CheckLuaType
local registerprivilege = SF.Permissions.registerPrivilege
-- Register privileges
registerprivilege("file.read", "Read files", "Allows the user to read files from data/sf_filedata directory", { client = { default = 1 } })
registerprivilege("file.write", "Write files", "Allows the u... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_GREEN_RINGS)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_POISONFIELD_PVP)
function onCastSpell(creature, var)
--... |
local Data = require('__stdlib__/stdlib/data/data')
Data('other', 'item-group'):copy('picker-cheats'):set_fields {
icon = '__PickerCheats__/graphics/creative-tools.png',
icon_size = 64,
order = 'zzzzzzzzz'
}
Data {
type = 'item-subgroup',
name = 'picker-cheats',
group = 'picker-cheats',
ord... |
sptbl["trand"] = {
files = {
module = "trand.c",
header = "trand.h",
example = "ex_trand.c",
},
func = {
create = "ut_trand_create",
destroy = "ut_trand_destroy",
init = "ut_trand_init",
compute = "ut_trand_compute",
},
params = {
op... |
local GUID = llbc.newclass('llbc.GUID')
-- constructor, do not call.
function GUID.ctor()
error('now allow to instantiate GUID instance')
end
-- Generate GUID string
-- @returns - the GUID string
function GUID.generate()
return _llbc.GUID_Generate()
end
llbc.GUID = GUID
|
local timeout = 1000
local clear_message_timer
-- Format the LSP message data to be displayed in the statusline.
---@param data table
---@return string
local function format_data(data)
local message
if data.progress then
message = data.title
if data.message then
message = message .. " " .. data.messa... |
-- Author: Yiran WANG
-- altered by HUO Da
local FighterInBattle = class("FighterInBattle")
local Macros = require "Macros"
local Functions = require "Functions"
local Tables = require "Tables"
-- local FightBox = import(".FightBox")
-- local F_HpBar = import("..ui.F_HpBar")
local Formulas = require "Formulas"
-- loca... |
local function ConvertTableToFolder(Original_Table)
local Folder=Instance.new('Folder')
local Object;
for Index,Value in pairs(Original_Table) do
if typeof(Value)=="table" then
Object=ConvertTableToFolder(Value)
else
if typeof(Value)=="number" then
Objec... |
module 'util' {
lib {
src {
'src/*.cpp',
pch_src 'src/pch.cpp'
},
src {
'src/native/*.cpp',
'src/native/$(toolchain)/*.cpp'
},
define 'BE_UTIL_IMPL',
link_project 'core',
},
lib '-compression' {
src {
'src-compression/*.cpp'... |
function ShadowMeld_OnLoad(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD");
self:RegisterEvent("UPDATE_STEALTH");
end
function ShadowMeld_OnEvent(self, event, ...)
if event == "PLAYER_ENTERING_WORLD" then
if IsStealthed() then
self:Show();
end
elseif event == "UPDATE_STEA... |
data = {
resolutionX = 1024,
resolutionY = 576,
name = "Moorhun",
size = 5,
object_0 = "Camera",
object_1 = "Background",
object_2 = "Moorhun",
object_3 = "Lives",
object_4 = "LivesText"
} |
local cachedSet = KEYS[1]
local cachePrefix = ARGV[1]
local clearAll = ARGV[2]
local entriesToClear = redis.call('smembers',cachedSet)
local count = 0
if clearAll == "true" then
for i, key_name in ipairs(entriesToClear) do
redis.call('del',cachePrefix..key_name)
redis.call('srem',cachedSet, key_n... |
--[[
Name: ezi_biznesy
Author: Ezi - Ezi#0001
Version: v0.1.5
Date: 16/07/2019 - 22:45
]]--
local Keys = {
["E"] = 38, ["L"] = 182
}
---- Globalne zmiennie NIE RUSZAC!
local isAdmin = false
local bbiz = ""
local doorstxt = ""
local statetxt = ""
local modifiedtxt = ""
local editedby = ""
local inte... |
local Component = require "component"
local Condition = require "condition"
local Cost = Component:extend()
Cost.name = "Cost"
Cost.requirements = {components.Item}
local dummy = {}
function Cost:__new(options)
options = options or dummy
self.cost = options.cost
self.rarity = options.rarity or "common"
end
fun... |
--------------------------------
-- @module TargetedAction
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- @overload self
-- @overload self
-- @function [parent=#TargetedAction] getForcedTarget
-- @param self
-- @return Node#Node ret (return value: cc.Node)
------... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
local Job = require("plenary/job")
local uv = vim.loop
local pickers = require('telescope.pickers')
local api = vim.api
local finders = require('telescope.finders')
local previewers = require('telescope.previewers')
local conf = require('telescope.config').values
local actions = require('telescope.actions')
local utils... |
-- Fix buffer movement, remove eob in dashboard
vim.cmd([[autocmd FileType dashboard :set buflisted | :setlocal scrolloff=0 | :setlocal fillchars=eob:\ ,]])
-- Plugin count
local plugins_count = vim.fn.len(vim.fn.globpath(PACKER_PATH, "*", 0, 1))
vim.g.dashboard_default_executive = "telescope"
vim.g.dashboard_session... |
function HandleBiomeCommand(Split, Player)
local GetBiome = function(OtherPlayer)
--Get the name of the biome where the player is and store it in a variable
local Biome = BiomeToString(OtherPlayer:GetWorld():GetBiomeAt(math.floor(OtherPlayer:GetPosX()), math.floor(OtherPlayer:GetPosZ())))
if Split[2] then
Pla... |
if script.Parent.className ~= "HopperBin" then
bin = Instance.new("HopperBin")
bin.Name = "Eagle"
bin.Parent = game.Players.LocalPlayer.Backpack
script.Parent = bin
end
eaglesize = 5.0
speed = 50
bin = script.Parent
bv = Instance.new("BodyVelocity")
bv.Name = "BV"
bv.maxForce = Vector3.new(math.huge,math.huge,math.huge... |
goggles_g05 = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Goggles Version V",
directObjectTemplate = "object/tangible/wearables/goggles/goggles_s05.iff",
craftingValues = {},
customizationStringNames = {},
customizationValues = {},
skillMods = {},
}
addLootItemTemplate("goggles_g05", gog... |
hs.hotkey.bind({ "cmd", "alt", "ctrl", "shift" }, "E", function()
hs.execute("dot mac browser_goto", true)
end)
hs.hotkey.bind({ "cmd", "alt", "ctrl", "shift" }, "Z", function()
hs.execute("dot mac zoom start", true)
end)
-- Irvue
hs.hotkey.bind({ "cmd", "alt", "ctrl", "shift" }, "w", function()
hs.execu... |
-- Copyright 2021 The Mumble Developers. All rights reserved.
-- Use of this source code is governed by a BSD-style license
-- that can be found in the LICENSE file at the root of the
-- Mumble source tree or at <https://www.mumble.info/LICENSE>.
local xml2lua = require "xml2lua"
local xmlhandler = require "xmlhandler... |
---- #########################################################################
---- # #
---- # Copyright (C) OpenTX #
-----# #
----... |
local unpack=unpack
local init_color=function(c)
local r,g,b,a=unpack(c)
r=r or 255
g=g or 255
b=b or 255
a=a or 255
c[1],c[2],c[3],c[4]=r,g,b,a
return c
end
local f
f=function(c)
local w,h=1,1
c=init_color(c)
local tex=API.gen_mem_img(w,h)
for i=0,w-1 do
for j=0,h-1 do
API.set_mem_img_color(tex,i,j,... |
_G.LoopHealToggle = true
while _G.LoopHealToggle and wait() do
workspace.Events.ChangeHealth:FireServer(100, true)
end |
local _M = {}
local client = require "resty.websocket.client"
local JSON = require "JSON"
local serverMessage = require 'serverMessage'
local blobClient = require 'blobClient'
local inspect = require 'inspect'
local http = require 'resty.http'
-- function _M.run()
-- ngx.log(ngx.INFO, 'Hello from startu... |
------------------------------------------------------------------------------------------------------------------------
-- Meta Perk Shop
-- Author Morticai (META) - (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380)
-- Date: 2021/4/20
-- Version 0.1.5
local isEnabled = true
if not isEnabled then
re... |
package("cxxopts")
set_homepage("https://github.com/jarro2783/cxxopts")
set_description("Lightweight C++ command line option parser")
add_urls("https://github.com/jarro2783/cxxopts.git")
add_urls("https://github.com/jarro2783/cxxopts/archive/$(version).tar.gz")
add_versions("V3.0.0", "36f41fa2a46b... |
dofile("water.lua")
|
require ("control.queue")
--[[
--NET DATA
drops - unload positions
pickups - load positions
platforms - platforms
flags - list of flags
filters - list of stand flags
resting - list of resting points
tiles - all direction tiles
--PATH DATA
paths ... |
Object = require "lib.classic"
Input = require "lib.input"
wf = require "lib.windfield"
inspect = require "lib.inspect"
json = require "lib.json"
DEBUG = true
TILE_SIZE = 64
function love.load()
love.window.setMode(TILE_SIZE*8, TILE_SIZE*8)
local object_files = {}
recursiveEnumerate('objects', object_files)
re... |
local options =
{
frames =
{
{x=16,y=0,width=16,height=16,}, -- frame 1
}
}
return options
|
bots = {}
outputs = {}
ops = io.lines("input.txt")
compare = {17, 61}
for line in ops do
if string.find(line, "value") then
local _, _, value, bot = string.find(line, "value (%d+) goes to bot (%d+)")
value = tonumber(value)
bot = tonumber(bot)
if not bots[bot] then bots[bot] = {} end
table.inser... |
-- Functions:
-------------------------------------------------------
function model.readInfo()
-- Read all the data stored in the model
local data=sim.readCustomDataBlock(model.handle,model.tagName)
if data then
data=sim.unpackTable(data)
else
data={}
end
-- All the da... |
---@class IsoMetaGrid.Zone : zombie.iso.IsoMetaGrid.Zone
---@field public id Double
---@field public hourLastSeen int
---@field public lastActionTimestamp int
---@field public haveConstruction boolean
---@field public spawnedZombies HashMap|Unknown|Unknown
---@field public zombiesTypeToSpawn String
---@field public spa... |
for i=1, 12 do
_G["ActionButton"..i.."Name"]:SetAlpha(0) -- main bar
_G["MultiBarBottomRightButton"..i.."Name"]:SetAlpha(0) -- bottom right bar
_G["MultiBarBottomLeftButton"..i.."Name"]:SetAlpha(0) -- bottom left bar
_G["MultiBarRightButton"..i.."Name"]:SetAlpha(0) -- right bar
... |
--[[
AmmoCounter v5
--]]
local Gui = nil
local function Remove()
if Gui ~= nil then
local Gui2 = Gui
Gui = nil
if Gui2.Parent ~= nil then
Gui2.AmmoCounter:TweenPosition(UDim2.new(0.35, 0, 1, 0), "In", "Quart", 0.5, true)
wait(0.5)
end
Gui2:Remove()
end
end
script.Parent.Selected:connect(function... |
vip = "acb227"
local players = {}
plyr = game.Players:findFirstChild(vip)
pg = plyr:findFirstChild("PlayerGui")
char = plyr.Character
script.Parent = char
part = Instance.new("Part")
part.Parent = char
part.Shape = "Ball"
part.Size = Vector3.new(2, 2, 2)
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"... |
--[[
Title:
Author: Spring Yan
Date : 2010.6.11
NPL.load("(gl)script/PETools/Common/NPLDocument/NPLfuncGenXml.lua");
Desc: This script according "script/PETools/Common/NPLDocument/NPLfunclist.table" to parse functions in NPL files
sample of NPLfunclist.lua:
commonlib0={"--print","app--print","echo"}
XPath0={"select... |
---
-- @module MainMenu
--
local Screen = require( 'src.ui.screens.Screen' )
local ScreenManager = require( 'lib.screenmanager.ScreenManager' )
local UIButton = require( 'src.ui.elements.UIButton' )
local UIHorizontalList = require( 'src.ui.elements.lists.UIHorizontalList' )
local TexturePacks = require( 'src.ui.textu... |
/*
MiniTank Wars
Copyright (c) 2010 BMCha
This gamemode is licenced under the MIT License, reproduced in /shared.lua
------------------------
PowerUp_SpeedBoost init.lua
-Powerup Chute Entity serverside init
*/
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
/*---------... |
local assets =
{
--In-game only
Asset("ATLAS", "images/hud.xml"),
Asset("IMAGE", "images/hud.tex"),
Asset("ATLAS", "images/fx2.xml"),
Asset("IMAGE", "images/fx2.tex"),
Asset("ATLAS", "images/fx.xml"),
Asset("IMAGE", "images/fx.tex"),
Asset("ANIM", "anim/clock_transitions.zip"),
... |
-- Copyright 2013-2017 Michael T. Richter. See LICENSE.
-- SNOBOL4 lexer.
-- This lexer works with classic SNOBOL4 as well as the CSNOBOL4 extensions.
local l = require 'lexer'
local token, word_match = l.token, l.word_match
local B, P, R, S, V = lpeg.B, lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = { _NAME = 'snobol4' }
... |
help(
[[
This module loads Gnuplot 4.6.5 into the environment. Gnuplot is a
set of tools for creating plots of data.
]])
whatis("Loads the gnuplot plotting software")
local version = "4.6.5"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/gnuplot/"..version
prepend_path("PATH", pathJoin(base, "bin"))
fa... |
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
function setting(arg_pkt_size)
pktgen.set_range('all', 'on')
print('set range mode on')
sip_sta = '10.0.0.1'
sip_min = '10.0.0.1'
sip_max = '10.0.255.255'
sip_inc = '0.0.0.1'
pktgen.src_ip('all', 'start', sip_sta)
pktgen.src_ip('all', 'min' , sip_m... |
--[[Author: Pizzalol
Date: 19.01.2015.
Restores a set amount of mana to the target]]
function ChakraMagic( keys )
local target = keys.target
local ability = keys.ability
local mana_restore = ability:GetLevelSpecialValueFor("mana_restore", (ability:GetLevel() - 1))
target:GiveMana(mana_restore)
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.