content stringlengths 5 1.05M |
|---|
object_mobile_naboo_lt_maximilian_vox = object_mobile_shared_naboo_lt_maximilian_vox:new {
}
ObjectTemplates:addTemplate(object_mobile_naboo_lt_maximilian_vox, "object/mobile/naboo_lt_maximilian_vox.iff")
|
function onInit()
Debug.console("manager_gui: onInit")
Interface.onWindowOpened = onWindowOpened_handle
Interface.onWindowClosed = onWindowClosed_handle
end
function onWindowOpened_handle(wi)
Debug.console('onWindowOpenedHandler', wi)
end
function onWindowClosed_handle(wi)
Debug.console('onWindowClos... |
function updateAll(dt)
player:update(dt)
world:update(dt)
walls:update(dt)
effects:update(dt)
bombs:update(dt)
treasures:update(dt)
cam:update(dt)
particles:update(dt)
particleWorld:update(dt)
flux.update(dt)
dj.cleanup()
end
|
--[[ Netherstorm -- Ekkorash the Inquisitor.lua
This script was written and is protected
by the GPL v2. This script was released
by BlackHer0 of the BLUA Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- ... |
describe("Linked stack", function()
local linked_stack = require("data_structures.linked_stack")
it("should work", function()
local stack = linked_stack.new()
assert.truthy(stack:empty())
for i = 1, 10 do
stack:push(i)
end
for i = 10, 1, -1 do
assert.equals(i, stack:top())
assert.equals(i, stack:po... |
-- title: Bunnymark in Lua
-- author: Rabia Alhaffar
-- desc: Benchmarking tool to see how many bunnies can fly around the screen, using Lua.
-- license: MIT License
-- input: gamepad
-- script: lua
-- version: 1.1.0
screenWidth = 240
screenHeight = 136
toolbarHeight = 6
t = 0
function randomFloat(lower, greater)
r... |
local _,L = ...
local rematch = Rematch
local panel = RematchOptionPanel
local settings
panel.funcs = {} -- where setting functions are stored (ie panel.func.AutoLoad)
panel.workingList = {} -- working list of indexes to display
rematch:InitModule(function()
rematch.OptionPanel = panel
settings = RematchSettings
... |
local module = {}
module.tMain = {'data_time'}
function module.load_Textures()
if module.main_sprite == nil then
module.main_sprite = get_Textures(getGameDirectory()..'\\moonloader\\resource\\hudWoW\\hudWoW', module.tMain)
if module.main_sprite == nil then return false end
end
return true
e... |
---@class CS.UnityEngine.HashUtilities
---@type CS.UnityEngine.HashUtilities
CS.UnityEngine.HashUtilities = { }
---@param inHash CS.UnityEngine.Hash128
---@param outHash CS.UnityEngine.Hash128
function CS.UnityEngine.HashUtilities.AppendHash(inHash, outHash) end
---@param value CS.UnityEngine.Matrix4x4
---@param hash ... |
local lrucache = require "resty.lrucache"
local utils = require "kong.tools.utils"
local bit = require "bit"
local hostname_type = utils.hostname_type
local re_match = ngx.re.match
local re_find = ngx.re.find
local null = ngx.null
local insert = table.insert
local sor... |
AddCSLuaFile()
DEFINE_BASECLASS( "sent_tv_label" )
ENT.PrintName = "TV: StickyNote"
ENT.Author = "raubana"
ENT.Information = ""
ENT.Category = "Tunnel Vision"
ENT.Editable = true
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_OPAQUE |
return {
controls = {
left = {'key:a', 'axis:leftx-', 'button:dpleft'},
right = {'key:d', 'axis:leftx+', 'button:dpright'},
up = {'key:w', 'axis:lefty-', 'button:dpup'},
down = {'key:s', 'axis:lefty+', 'button:dpdown'},
jump = {'key:k', 'button:a'},
shoot = {'key:j',... |
module(..., package.seeall)
local cjson = require "cjson"
local json_safe = require "cjson.safe"
local rex = require "rex_pcre2"
local resty_md5 = require "resty.md5"
local maxmind = require "lua.maxmind"
local globals = require "lua.globals"
local accesslog = require "lua.accesslog"
local iptools = ... |
slot0 = class("SelectTechnologyMediator", import("..base.ContextMediator"))
slot0.ON_BLUEPRINT = "SelectTechnologyMediator:ON_BLUEPRINT"
slot0.ON_TECHNOLOGY = "SelectTechnologyMediator:ON_TECHNOLOGY"
slot0.ON_TRANSFORM_EQUIPMENT = "SelectTechnologyMediator:ON_TRANSFORM_EQUIPMENT"
slot0.ON_META = "SelectTechnologyMediat... |
reaper.SetExtState("reaticulate", "command", "set_default_channel=11", false)
|
gl.setup(1920, 200)
logo = resource.load_image("jh-ulm.png")
font = resource.load_font("OpenSans-Bold.ttf")
local clock = (function()
local base_time = N.base_time or 0
local function set(time)
base_time = tonumber(time) - sys.now()
end
util.data_mapper{
["clock/midnight"] = function(since_midnight... |
require 'torch'
require 'image'
require 'paths'
require 'pl'
require 'cudnn'
NN_UTILS = require 'utils.nn_utils'
DATASET = require 'dataset'
OPT = lapp[[
--save (default "logs") Directory in which the networks are stored.
--network (default "adversarial.net") ... |
local Prop = {}
Prop.Name = "Lake House 202"
Prop.Cat = "House"
Prop.Price = 340
Prop.Doors = {
Vector( 11066.299804688, -4766.4501953125, 157 ),
Vector( 10820.299804688, -4543, 157 ),
}
GM.Property:Register( Prop ) |
ProxyProperties = {}
ProxyProperties.__index = ProxyProperties
-- Make proxy object with property support.
-- Notes:
-- If key is found in <getters> (or <setters>), then
-- corresponding function is used, else lookup turns to the
-- <class> metatable (or first to <priv> if <is_expose_private> is true)... |
return Def.ActorFrame {
LoadActor("_Tap Receptor", NOTESKIN:LoadActor(Var "Button", "Ready Receptor")) ..
{
Frames = {
{Frame = 2, Delay = 1}
},
InitCommand = function(self)
self:playcommand("Set")
end,
GameplayLeadInChangedMessageCommand = function(self)
self:playcommand("Set")
end,
... |
a_mighty_boar_charge = class({})
function a_mighty_boar_charge:OnSpellStart()
local victim = GetRandomHeroEntities(1)
if not victim then return end
victim = victim[1]
local victim_loc = victim:GetAbsOrigin()
--- Get Caster, Victim, Player, Point ---
local caster = self:GetCaster()
local caster_loc = cast... |
require('Print')
require('String')
require('Check')
require('EventListener') |
Ext.Require("Server/PartySize.lua") |
local pbc = require "protobuf"
local socket = require "skynet.socket"
local crypt = require "skynet.crypt"
local cjson = require "cjson"
local utils = require "utils"
local skynet = require "skynet"
local Player = {}
Player.__index = Player
function Player.new(info)
local player = {}
setmetatable(player, Player)
... |
--[[
Copyright (c) 2011-2016, Vsevolod Stakhov <vsevolod@highsecure.ru>
Copyright (c) 2013-2015, Alexey Savelyev <info@homeweb.ru>
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.apa... |
--[[----------------------------------------------------------------------------
MIT License
Copyright (c) 2018 David F. Burns
This file is part of LrSlide.
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 t... |
CarGen = {
{ id = 1, coords = vector4(-0.134502, 6618.419, 31.12323, -86.46173529974178), length = 3.0, flags = 3680 },
{ id = 2, coords = vector4(-0.223571, 6340.914, 31.04465, 35.81763408331457), length = 4.0, flags = 3680 },
{ id = 3, coords = vector4(-0.363403, -1685.079, 28.37933, -247.17129573868348), length =... |
-- add mbedtls package
option("mbedtls")
-- show menu
set_showmenu(true)
-- set category
set_category("package")
-- set description
set_description("The mbedtls package")
-- add defines to config.h if checking ok
add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_MBEDTLS")
-- add links... |
--[[
The contents of this file are subject to the Common Public Attribution
License Version 1.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://ultimate-empire-at-war.com/cpal. The License is based on the Mozilla
Public License Versio... |
local matRefraction = Material("refract_ring")
local tMats = {}
tMats.Glow1 = Material("sprites/light_glow02")
--tMats.Glow1 = Material("models/roller/rollermine_glow")
tMats.Glow2 = Material("sprites/yellowflare")
tMats.Glow3 = Material("sprites/redglow2")
for _, mat in pairs(tMats) do
mat:SetInt("$spritere... |
local HttpService = game:GetService("HttpService")
local Accessor = {}
Accessor.__index = Accessor
Accessor.HOST = "http://localhost:%d/"
Accessor.NUM_TRIES = 1
Accessor.LIMIT_COOLDOWN = 15
function Accessor.new(port)
local self = setmetatable({}, Accessor)
self.Port = port
return self
end
local function Try(p... |
function life_step(theMob, dtime)
if theMob.type ~= "animal" and theMob.type ~= "npc" then
return
end
-- minetest.log("info", "life: dtime is " .. dtime)
theMob.mate_timer = theMob.mate_timer - dtime
if not theMob.hunger or theMob.hunger < 1 then
theMob.hunger = 1
end
-- Increase hunger by ... |
local sprotoparser = require "sprotoparser"
local proto = sprotoparser.parse [[
.say {
msg 0 : string
}
.login {
name 0 : string
}
.quit {}
.handshake {
msg 0 : string
}
.heartbeat {}
.msg {
session 0 : integer
userId 1 : integer
cmd 2 : integer
data 3 : string
}
]]
local cmd = {
[1] = 'say',
[2] =... |
GlobalVar("ShowResourceOverview", false)
GlobalObj("ResourceOverviewObj", "ResourceOverview")
GlobalRealTimeThread("ResourceOverviewThread", function()
while true do
ResourceOverviewThreadBody()
Sleep(1000)
end
end)
function SavegameFixups.ResourceOverviewThread_MovedBodyOutOfLoop()
RestartGlobalRealTimeThread(... |
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
-- A list of the test script for Pktgen and Lua.
-- Each command somewhat mirrors the pktgen command line versions.
-- A couple of the arguments have be changed to be more like the others.
--
pktgen.screen("off");
pktgen.pause("Screen off\n", 2000);
printf(... |
local Action = require(script.Parent.Action)
return Action(
"StartPlugin",
function()
return {}
end
)
|
--- GENERATED CODE - DO NOT MODIFY
-- AWS Budgets (budgets-2016-10-20)
local M = {}
M.metadata = {
api_version = "2016-10-20",
json_version = "1.1",
protocol = "json",
checksum_format = "",
endpoint_prefix = "budgets",
service_abbreviation = "AWSBudgets",
service_full_name = "AWS Budgets",
signature_version =... |
----------------------------------------------------
--===================Aurelien=====================--
----------------------------------------------------
------------------------Lua-------------------------
local DrawMarkerShow = true
local DrawBlipTradeShow = true
-- -900.0, -3002.0, 13.0
-- -800.0, -3002.0, 13... |
local M = {}
M.__index = M
function M.new(window_id, hl_group)
local tbl = {
window_id = window_id or vim.api.nvim_get_current_win(),
hl_group = hl_group or "StatusLine",
}
return setmetatable(tbl, M)
end
function M.window_width(self)
if vim.o.laststatus == 3 then
return vim.o.columns
end
retu... |
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid ~= 5745 then
return false
end
if player:getStorageValue(Storage.OutfitQuest.firstOrientalAddon) ~= 1 or player:hasOutfit(player:getSex() == PLAYERSEX_FEMALE and 150 or 146, 1) then
player:sendTextMessage(MESSAGE_EVENT_ADVANC... |
local MultiSource = {}
MultiSource.__index = MultiSource
function MultiSource.For(audioPath)
local src = {
BaseSource = love.audio.newSource(audioPath, "static"),
InUse = {},
Free = {}
}
for i = 1, 5 do
table.insert(src.Free, src.BaseSource:clone())
end
LoveEventMarshaller.OnUpdate:Connect(function (d... |
Macro {
area="Editor"; key="CtrlDel CtrlNumDel"; flags="EVSelection"; description="Ctrl-Del removes selected editor block"; action = function()
Keys('CtrlD')
end;
}
|
--
-- from src/power.c
--
-- double ipower(double, int) to iPow
-- iPow to iPowR
-- double power(double, double) to fPow
--
local H = require '_helper'
local abs = H.abs
local function iPow(x, n)
local r, t = 1, abs(n)
while t ~= 0 do
x, r, t = x*x, t&1==1 and r*x or r, t>>1
end
return n<0 and 1/r or r
end
... |
local Plugin = script.Parent.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local RoactRodux = require(Libs.RoactRodux)
local Utility = require(Plugin.Core.Util.Utility)
local Constants = require(Plugin.Core.Util.Constants)
local ContextGetter = require(Plugin.Core.Util.ContextGetter)... |
--- Hashes a track data table based on the track length between data
-- HashInterval is the lengths
--
local util = script.Parent.Parent.Util
local t = require(util.t)
local DEFAULT_HASH_INTERVAL = 5
local TrackDataHasher = {
ClassName = "TrackDataHasher";
}
TrackDataHasher.__index = TrackDataHasher
--- Creat... |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
local spec = require "cp.spec"
local describe, it = spec.describe, spec.it
local context = spec.context
local expect = require "cp.spec.expect"
local Builder = require "cp.ui.Builder"
local Element = require "cp.ui.Element"
--local log = require "hs.logger" .new("Buildersp... |
--[[
Name: "cl_hooks.lua".
Product: "HL2 RP".
--]]
local MOUNT = MOUNT;
-- Called when the top bars are needed.
function MOUNT:GetTopBars(topBars)
local stamina = g_LocalPlayer:GetSharedVar("ks_Stamina");
-- Check if a statement is true.
if (!self.stamina) then
self.stamina = stamina;
else
self.stamina = ma... |
--@native redstone
function Redstone.getInput(side)
return redstone.getInput(cast(side, "string"))
end
function Redstone.setOutput(side, o)
redstone.setOutput(cast(side, "string"), o)
end
function Redstone.getOutput(side)
return redstone.getOutput(cast(side, "string"))
end
function Redstone.getAnalogInp... |
local bit
bit = {
new = function(str)
return tonumber(str, 2)
end,
get = function(num, n, n2)
if n2 then
local total = 0
local digitn = 0
for i = n, n2 do
total = total + 2 ^ digitn * bit.get(num, i)
digitn = digitn + 1
end
return total
else
local pn = 2^(n-1)
return (num % (pn + p... |
-- premake5.lua
workspace "gts_examples"
configurations { "Debug", "DebugWithInstrument", "RelWithInstrument", "Release" }
platforms { "x86", "x64" }
location ("../../_build/gts_examples/" .. _ACTION .. (_ARGS[1] and ("/" .. _ARGS[1]) or ("")))
startproject "fib_example"
--warnings "E... |
require("ts3init")
function onClientMoveEvent(serverConnectionHandlerID, clientID, oldChannelID, newChannelID, visibility, moveMessage)
if ts3.getClientID(serverConnectionHandlerID) == clientID then
local clientNAME = ts3.getClientDisplayName(serverConnectionHandlerID, clientID)
ts3.printMessageToCurrentTab(os.dat... |
-- Rare data format:
-- Table:
-- {
-- ID int required
-- Name string required if EventType == "Alive"; but automatically provided to Subscribers for Dead events
-- Zone string required if EventType == "Alive"; but automatically provided to Subscribers for Dead events
-- EventType string "Alive", "D... |
-- import
local AssetLibraryModule = require 'candy.AssetLibrary'
local AnimatorClipModule = require 'candy.animator.AnimatorClip'
local AnimatorClip = AnimatorClipModule.AnimatorClip
local AnimatorClipGroup = AnimatorClipModule.AnimatorClipGroup
local tinsert = table.insert
---@class AnimatorData
local AnimatorData ... |
require 'gui/screen'
require 'textlog'
class 'Docker' (Screen)
function Docker:build()
--Screen.build(self)
self.font = Font('media/pirulen.otf',16)
local rectangle <close> = Rectangle(Color(0,0,0,0), true, {0, 0, app.width, app.height})
self.renderList:add(rectangle)
local background <close> = app.renderer:text... |
local PlayerAbsorb = IceCore_CreateClass(IceTargetAbsorb)
-- Constructor --
function PlayerAbsorb.prototype:init()
PlayerAbsorb.super.prototype.init(self, "PlayerAbsorb", "player", "PlayerAbsorb")
end
-- 'Public' methods -----------------------------------------------------------
-- OVERRIDE
function Play... |
require("moonsc").import_tags()
-- test that _foreach{ does a shallow copy, so that modifying
-- the array does not change the iteration behavior.
return _scxml{ datamodel="lua",
_datamodel{
_data{ id="Var1", expr="{1,2,3}" },
_data{ id="Var2", expr="0" }, -- counts the number of iterations
},
... |
-- Lua API for the simba environment
local M = {}
function M.init_environment()
end
function M.print_environment()
for k,v in pairs(_G) do
print("GLOBAL", k, v)
end
for k,v in pairs(ctx) do
print("CTX", k, v)
end
end
function M.eval_in_env_json(chunkName, code)
--M.print_environ... |
--- 模块功能:WIFI 功能测试
-- @author openLuat
-- @module testwifi
-- @license MIT
-- @copyright openLuat
-- @release 2020.05.11
module(...,package.seeall)
require"wifiScan"
require"lbsLoc"
sys.taskInit(function()
while true do
sys.wait(5000)
wifiScan.request(function(result,cn... |
class( "HUD" ) |
lsp_on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings.... |
local crypto = require "crypto"
local levent = require "levent.levent"
local util = require "levent.socket_util"
local client = require "levent.http.client"
local config = require "levent.http.config"
local request = require "levent.http.request"
local server = require "levent.http.server"
local ... |
--[[
Copyright (c) 2015 raksoras
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, copy, modify, merge, publish, distribute, subl... |
#!/usr/bin/lua
io.write("Hello\n") --改行
print[[エスケープシーケンス無視,\n, \t]]
for i = 0, 100 do
io.write(string.format(i, "\r")) --型変換
end
|
AdvancedCardGrindState = State:new()
local CHARACTER_QUISTIS = 0x03
function AdvancedCardGrindState:needToRun(game_context, bot_context)
-- must be in battle
if not game_context.battle.is_in_battle then
return false
end
local character_has_card = false
for character_index = 0,2 do
local character... |
object_tangible_loot_quest_lost_squadron_core_5 = object_tangible_loot_quest_shared_lost_squadron_core_5:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_quest_lost_squadron_core_5, "object/tangible/loot/quest/lost_squadron_core_5.iff")
|
local config = {
[1945] = {position = {Position(32623, 32188, 9), Position(32623, 32189, 9)}},
[1946] = {position = {Position(32623, 32189, 9), Position(32623, 32188, 9)}}
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local useItem = config[item.itemid]
if not useItem then
return tru... |
local bin = require "bin"
local bit = require "bit"
local comm = require "comm"
local nmap = require "nmap"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
Extracts information from Quake game servers and other game servers
which use the same protocol.
Qu... |
module(..., package.seeall)
local sorttable = require"sputnik.javascript.sorttable"
local wiki = require"sputnik.actions.wiki"
actions = {}
actions.list = function(node, request, sputnik)
local tickets = {}
for id, ticket in pairs(sputnik.saci:get_nodes_by_prefix(node.id.."/")) do
if ticket.status~="clos... |
local LAM = LibStub( 'LibAddonMenu-1.0' )
if ( not LAM ) then return end
local LMP = LibStub( 'LibMediaProvider-1.0' )
if ( not LMP ) then return end
local PSBT = PSBT
local ModuleProto = PSBT.ModuleProto
local PSBT_Options = ModuleProto:Subclass()
local CBM = CALLBACK_MANAGER
l... |
---@brief [[
--- Infoview components which can be assembled to show various information
--- about the current Lean module or state.
---@brief ]]
---@tag lean.infoview.components
local DiagnosticSeverity = vim.lsp.protocol.DiagnosticSeverity
local components = {}
local html = require"lean.html"
--- Format a heading.... |
-- Routine for NPC "Citizen F 1"
velocity = 40
loadRoutine = function(R, W)
R:setTilePosition(36,21)
R:goToTile(36,8)
R:goToTile(42,8)
R:goToTile(42,7)
R:setFacingLeft()
R:wait(5000)
R:goToTile(42,8)
R:goToTile(36,8)
R:goToTile(36,15)
R:goToTile(37,15)
R:setFacingDown()
R:wait(5000)
R:go... |
ENT.Base = "bw_base_drink"
ENT.HealAmount = 0
ENT.Random = true
ENT.Model = "models/props_junk/PopCan01a.mdl"
ENT.Effects = {
"DoubleJump",
"Steroid",
"Adrenaline",
"Rage",
"Regen",
"Shield",
}
function ENT:SetupDataTables()
self:NetworkVar("String", 0, "DrugEffect")
self:NetworkVar("Int", 2, "DrugDuratio... |
object_mobile_vehicle_tcg_merr_sonn_jt12_jetpack = object_mobile_vehicle_shared_tcg_merr_sonn_jt12_jetpack:new {
templateType = VEHICLE,
decayRate = 15, -- Damage tick per decay cycle
decayCycle = 600 -- Time in seconds per cycle
}
ObjectTemplates:addTemplate(object_mobile_vehicle_tcg_merr_sonn_jt12_jetpack, "objec... |
require("import") -- the import fn
import("global_vars") -- import lib
gv = global_vars
-- catch "undefined" global variables
local env = _ENV -- Lua 5.2
if not env then env = getfenv () end -- Lua 5.1
setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
gv.b = "abcde"
assert... |
#!lua
-- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++"
includeDirList = {
"../shared",
"../shared/include",
"../shared/gl3w",
"../shared/glew-1.13.0",
"../shared/imgui",
"../shared/lodepng"
}
libDirectories = {
"../lib"
}
if os.get() == "macosx" then
linkLibs = ... |
----------------------------
-- Constants --
----------------------------
local _
-- Actual vectis values
local VECTIS_ENCOUNTER_ID = 2134;
local OMEGA_VECTOR_SPELL_ID = 265129;
local LINGERING_INFECTION_SPELL_ID = 265127;
local CONTAGION_SPELL_ID = 267242;
local MYTHIC_RAID_DIFFICULTY = 16;
... |
local TestEZ = script.Parent.Parent.TestEZ
local TestPlanner = require(TestEZ.TestPlanner)
local TestBootstrap = require(TestEZ.TestBootstrap)
local TestEnum = require(TestEZ.TestEnum)
local testRoot = script.Parent.planning
local function verifyPlan(plan, expected, notSkip)
local nodes = plan:findNodes(function(nod... |
-- rfsm remote control interaction protocol
--
-- (C) 2010-2013 Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be>
-- (C) 2014-2020 Markus Klotzbuecher <mk@mkio.de>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
local socket = require("socket")
local json = require("json")
local rfsm = require("rfsm")
local rf... |
setDefaultTab("Tools")
local m = macro(1000, "AntiRS & Msg", function() end)
local frags = 0
onTextMessage(function(mode, text)
if not m.isOn() then return end
if not text:lower():find("warning! the murder of") then return end
say("Don't bother, I have anti-rs and shit EQ. Don't waste our time.")
frags... |
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ FrameXML\UIDropDownMenu.lua ]]
do --[[ UIDropDownMenu.lua ]]
local skinnedLevels, skinnedButto... |
local types = require 'lulz.types'
local struct = types.declare 'struct'
local struct_mt = {
__tostring = function(self)
return 'struct<' .. self.__name__ .. '>'
end,
__eq = function(self, other)
return self.__id__ == other.__id__
end
}
local function _create_struct_inst(type, ...)
local instance... |
return {
source = {
location = 'git@bitbucket.org:bazurbat/ffmpeg.git'
},
build = {
type = 'gnu'
}
}
|
--[[
TheNexusAvenger
Tests the NexusWrappedInstance class.
--]]
local NexusUnitTesting = require("NexusUnitTesting")
local NexusPluginFramework = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusPluginFramework"))
local NexusWrappedInstance = NexusPluginFramework:GetResource("Base.NexusWrappedInstance... |
-- https://github.com/moody/DethsTooltipLib
local LibName, LibVersion = "DethsTooltipLib", "1.0"
local PREFIX = format("%s_%s_", LibName, LibVersion)
-- DethsLibLoader
local DTL = DethsLibLoader:Create(LibName, LibVersion)
if not DTL then return end
-- Upvalues
local _G, assert, pairs, ipairs, strtrim, type, tostrin... |
return function(judgeName)
--Default
local result = {
W1LateCommand = THEME:GetMetric( "Judgment", "W1LateCommand");
W2LateCommand = THEME:GetMetric( "Judgment", "W2LateCommand");
W3LateCommand = THEME:GetMetric( "Judgment", "W3LateCommand");
W4LateCommand = THEME:GetMetric( "Judgment", "W4LateCommand... |
local cfg = {}
cfg.list = {
--[ HOSPITAL ]-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1] = { text = true, hash = 854291622, ['x'] = 304.15, ['y'... |
local v = redis.call('GET', KEYS[1])
if v == false then
return nil
end
if ARGV[1] ~= '' then
local i = string.find(v, ':') -- check lock owner
if i == nil then
return v -- error will be seen by caller
end
if ARGV[1] ~= string.sub(v, 1, i-1) then
return v -- not owner
end
end
redis.call... |
function _init(args)
if #args < 1 then
print("Usage: more <path>")
return sys.exit(1)
end
txt = fs.read(args[1])
if txt == nil then
print("Couldn't type file " .. args[1])
return sys.exit(1)
end
pos = 0
print("(press enter to scroll down)")
end
function _step()
local inp = sys.read()
... |
--[[
-- Lootomatic GUI Interface
--]]
|
local A = vim.api
local U = {}
---Comment modes
---@class CMode
U.cmode = {
toggle = 0,
comment = 1,
uncomment = 2,
flipflop = 3,
}
---Comment types
---@class CType
U.ctype = {
line = 1,
block = 2,
}
---Motion types
---@class CMotion
U.cmotion = {
---Compute from vmode
_ = 0,
---... |
local Scheduler = {}
local sc = cc.Director:getInstance():getScheduler()
function Scheduler.new(call)
return sc:scheduleScriptFunc(call,0,false)
end
function Scheduler.delete(call)
sc:unscheduleScriptEntry(call)
end
return Scheduler
|
local META = FindMetaTable("CLuaEmitter")
if not META then return end
function META:DrawAt(pos, ang, fov)
local pos, ang = WorldToLocal(EyePos(), EyeAngles(), pos, ang)
cam.Start3D(pos, ang, fov)
self:Draw()
cam.End3D()
end
local EFFECT = {}
function EFFECT:FixedParticle()
local function maxLife(min, max)
ret... |
include("dualstick360/enemy.lua")
levelobj = GameObjectManager:createGameObject("level_parent")
wall_counter = 0
box_counter = 0
rot_box_counter = 0
function createGrid()
for j = -300, 1700, 50 do
DebugRenderer:drawLine3D(Vec3(j, 300, 10), Vec3(j, -2500, 10), Color(0, 0, 70/255, 1))
end
for i = -2500... |
local WelcomeScene = class("WelcomeScene", function()
return display.newScene("WelcomeScene")
end)
WelcomeScene.CHECKBOX_BUTTON_IMAGES = {
off = "CheckBoxButtonOff.png",
off_pressed = "CheckBoxButtonOffPressed.png",
off_disabled = "CheckBoxButtonOffDisabled.png",
on = "CheckBoxButtonOn.png",
o... |
this = Gwen.DockLayout.Create(Gwen.Canvas)
local function ValueControl(view)
local self = Gwen.ComponentBase(view)
self.Value = 0
self.Step = 1
self.ValueChanged = Gwen.Event.Create("ValueChanged")
function self.OnCreated(view)
self.GetControl("Value").Value = self.Value
end
function self.OnButt... |
return {
armbc = {
acceleration = 0.005,
brakerate = 0.045,
buildangle = 16384,
buildcostenergy = 145039,
buildcostmetal = 9500,
builder = false,
buildpic = "armbc.dds",
buildtime = 90000,
canattack = true,
canguard = true,
canmove = true,
canpatrol = true,
canstop = 1,
category = "ALL HUGE... |
--luacheck: no max line length
local random = {}
-- initialize the seedbox to random values
function random:seed()
local seedbox = {}
for i=0, 255 do
seedbox[i] = math.random()
end
self.seedbox = seedbox
end
-- return a random number for i
function random:noise_1d(i)
local seed_index = math.floor(i)%255
ret... |
------------------------------- SPIDER FIX --------------------------------
if settings.startup["ZElectricVehicles-SpiderFuel"].value then
if not mods["bobwarfare"] then
data.raw["spider-vehicle"]["spidertron"].energy_source = {
type = "burner",
fuel_category = "chemical",
effectivity = 1,
... |
AddEvent("OnPackageStart", function()
SetLandscapeSnowAlpha(0.0)
EnableSnowParticles(false)
end)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.