content stringlengths 5 1.05M |
|---|
object_mobile_awing_mini = object_mobile_shared_awing_mini:new {
}
ObjectTemplates:addTemplate(object_mobile_awing_mini, "object/mobile/awing_mini.iff")
|
R"luastring"--(
-- DO NOT REMOVE THE ABOVE LINE. It is used to load this file as a C++ string.
-- There is a matching delimiter at the bottom of the file.
--[[
Copyright (c) 2006-2020 LOVE Development Team
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be hel... |
local test_env = require("spec.util.test_env")
local run = test_env.run
local testing_paths = test_env.testing_paths
local get_tmp_path = test_env.get_tmp_path
local copy_dir = test_env.copy_dir
local is_win = test_env.TEST_TARGET_OS == "windows"
test_env.unload_luarocks()
describe("Luarocks init test #integration", ... |
creature_spit_small_green = {
"object/weapon/ranged/creature/creature_spit_small_green.iff"
}
addWeapon("creature_spit_small_green", creature_spit_small_green)
|
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
-- Called when the Clockwork shared variables are added.
function PLUGIN:ClockworkAddSharedVars(globalVars, playerVars)
playerVars:String("radio_transmit", true);
end; |
local function Progressbar(name)
-- Checkbox
local base = Object(name)
local objectType = "Progressbar"
local progress = 0
base:setZIndex(5)
base:setValue(false)
base.width = 25
base.height = 1
base.bgColor = theme.CheckboxBG
base.fgColor = theme.CheckboxFG
local activeBar... |
RulePath = "/www/server/panel/vhost/wafconf/"
attacklog = "on"
logdir = "/www/wwwlogs/waf/"
UrlDeny="on"
Redirect="on"
CookieMatch="off"
postMatch="off"
whiteModule="on"
black_fileExt={"php","jsp"}
ipWhitelist={"127.0.0.1"}
ipBlocklist={"1.0.0.1"}
CCDeny="off"
CCrate="300/60"
|
---------------------------------------
-- INIT
---------------------------------------
--get the addon namespace
local addon, ns = ...
local textureHorizontal = "Interface\\AddOns\\rStatusbarDebug\\ember"
local textureVertical = "Interface\\AddOns\\rStatusbarDebug\\ember90"
local createStatusbarVertical... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'CDamageManager'
shared.require 'CEn... |
-- Awesome-Leaved: Layout for AwesomeWM based on i3's behavior
-- 2014, Michael Beaumont, mjboamail@gmail.com
---------------------------------------------------
local print, tostring = print, tostring
local ipairs, pairs = ipairs, pairs
local setmetatable = setmetatable
local table = table
local math = math
local awf... |
local collections = require('collections')
local prototype = require('prototype')
local Tap = require('tap')
local tap = Tap.new {name='collections.lua'}
local function void () end
tap:addTest(
'meta events',
function (test)
local T = prototype {collections}
test:isTrue(T ~= nil)
function T.__mod (se... |
files {
"style.css",
"script.js"
}
chat_theme "material" {
styleSheet = "style.css",
script = "script.js",
msgTemplates = {
default = '<b>{0}</b><span>{1}</span>'
}
}
|
local L, this = ...
this.name = "TI-Nspire Platform Core"
this.version = "0.1"
this.status = "prototype"
this.desc = "A prototype implementation of a platform interface into the TI-Nspire Lua API."
this.notes = {
"The capabilities of the Nspire are limited, and, as such, some API calls simply may be ignored."
}
local... |
#!/usr/bin/env lua
require "luarocks.loader"
------------------------------
function test(client)
----------------------------
print("sending vol_up")
client:send("cmd", "vol_up")
print("sending dmenu_run")
client:send("fun", "dmenu_run")
end
-----------------------------
local host, port = "localhos... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self.timer = CurTime() + 25
self:SetModel( "models/press-plates/plate.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetU... |
local file = io.open("Dia10.txt", "r") -- Se requiere un archivo Dia6.txt para ejecutar
local text = file:read("*a")
file:close()
-- Funcion que divide una cadena de texto con un delimitador
local function split(str, del) --String, Delimiter
local t = {}
for value in str:gmatch("[^" .. del .. "]+") do
... |
local timers = { }
local objectToTimer = { }
local weaponList =
{
{ 2, "Пистолет" },
{ 4, "Револьвер" },
{ 5, "СМГ" },
{ 6, "Пилотный Дробовик" },
{ 11, "Штурмовая Винтовка" },
{ 13, "Дробовик" },
{ 14, "Снайперская Винтовка" },
{ 16, "Ракетная Установка" },
{ 17, "Гранатомет" },
{ 28,... |
---
-- @module InventoryScreen
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Screen = require( 'src.ui.screens.Screen' )
local ScreenManager = require( 'lib.screenmanager.ScreenManager' )
local UIOutlines = require( 'src.ui.element... |
PROPERTY = {};
PROPERTY.ID = 14;
PROPERTY.Name = "Red Bearracuda Shop";
PROPERTY.Category = "Business";
PROPERTY.Description = "Blood red walls, fresh smell.. What more could you want?";
PROPERTY.Image = "ev33x_RedBearracudaShop";
PROPERTY.Cost = 950;
PROPERTY.Doors = {
{Vector(-10296, -9114, 126.25), 'mod... |
local BaseGui = require 'src.gui.BaseGui'
local Grid = require 'src.gui.Grid'
local creditsData = require 'credits'
return function(spriteData, nickname, selectedClass)
local credits = BaseGui()
credits.menu = Grid()
credits.mainMenuData = {spriteData, nickname, selectedClass}
local currY = 1
for... |
local utils = require("utils")
local maps = {}
local tileTypes = utils.table.enum({
"EMPTY",
"SPAWN_POINT",
"STONE",
"GRASS",
})
local tileCharTypeMap = {
[" "] = tileTypes.EMPTY,
["s"] = tileTypes.SPAWN_POINT,
["#"] = tileTypes.STONE,
["\""] = tileTypes.GRASS,
}
local function lines... |
tile_size = 32
screen_width = 1200
screen_height = 720
|
object_tangible_furniture_decorative_wod_pro_ns_tree_03 = object_tangible_furniture_decorative_shared_wod_pro_ns_tree_03:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_pro_ns_tree_03, "object/tangible/furniture/decorative/wod_pro_ns_tree_03.iff")
|
startx = 32
starty = 0
endx = 32
endy = 0
defineTile(".", "FLOOR")
defineTile(":", "PAVED_ROAD")
defineTile("~", "DEEP_WATER")
defineTile("#", "WALL")
defineTile("'", "DOOR_OPEN")
defineTile("+", "DOOR")
defineTile("=", "FENCE")
defineTile("|", "TREE")
defineTile("W", "TO_WORLDMAP")
subGenerator{
x = 1, y = 6, w... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
ht... |
local pathjoin = require("pathjoin")
local pathJoin = pathjoin.pathJoin
local BASE_DIRECTORY = pathJoin("commands", "command_files")
local commands = {
["internal"] = {
"ping", "reload_command", "client_info", "purge_cache", "exec", "restart", "memory_info"
},
["management"] = {
"block_per... |
--- === plugins.core.streamdeck.prefs ===
---
--- Stream Deck Preferences Panel
local require = require
local log = require "hs.logger".new "prefsStreamDeck"
local application = require "hs.application"
local canvas = require "hs.canvas"
local dialog = require "hs.dialog"
lo... |
local shit =game.Players.NAMEHERE
shit.bin.LevelChange.Value = true
shit.leaderstat.LAye.Value = DESIREDLEVELHERE |
_addon.name = "Debuffer"
_addon.version = '0.1'
require "luau"
packets = require('packets')
texts = require('texts')
require "Enfeebling"
require "GearEquipping"
require "maps"
require "Events"
require "Display"
frame_time = 0
debuffed_mobs = {}
function get_spell_info(spell_id)
return res.spells[spell_id] or n... |
require("common/commonGameLayer");
local gameRoomLevelItem = require(ViewPath.."isolater/gameLevelListCustomView/gameRoomLevelItem");
local roomLevels_pin_map = require("qnFiles/qnPlist/hall/roomLevels_pin")
local CommonGameRoomLevelItem = class(CommonGameLayer, false);
CommonGameRoomLevelItem.s_controls = {
... |
local modpath = cubictest.modpath
local function load_libs(env)
-- load luassert assertions
env.package.path =
modpath .. "/?/init.lua;" ..
modpath .. "/?.lua;" ..
modpath .. "/lib/?/src/init.lua;" ..
modpath .. "/lib/luassert/src/?.lua;" ..
modpath .. "/lib/luassert/src/?/init.lua;" ..
env.package.path
... |
-- Copyright 2020 Cedraro Andrea <a.cedraro@gmail.com>
-- 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 applicabl... |
shape = cone(25, 1, 5)
-- Viewing:
--emit(shape)
-- Machining:
block_height = 5
emit(
difference(
cube(50, 50, block_height),
translate(0, 0, block_height) * mirror(v(0, 0, 1)) * shape
))
|
local fusion_treasure = {
[401001] = {fusion_treasure=401001,type=4,item_id=1,name="1000金币",count=1000,weighing=3000},
[401002] = {fusion_treasure=401002,type=4,item_id=1,name="1000金币",count=1000,weighing=3000},
[401003] = {fusion_treasure=401003,type=4,item_id=1,name="1000金币",count=1000,weighing=3000},
[401004] = {fus... |
local games = require("Games")
local misc = require("Misc")
local dreamcrush = {}
dreamcrush.desc = "Look into your heart and choose your favorite Crush, then guess who your friends are crushing on!"
dreamcrush.rules = "https://youtu.be/DWnM71e2ofc"
local quitGame, createDecks
-- Uncomment this if you want to import ... |
require"imlua"
ifile = im.FileOpen("flower.gif")
error, width, height, color_mode = ifile:ReadImageInfo(0)
print("Color Space: "..im.ColorModeSpaceName(color_mode))
pal = ifile:GetPalette()
print("Palette Count: "..#pal)
print("Palette[0]: ",im.ColorDecode(pal[0]))
print("Palette[1]: ",im.ColorDecode(pal[1]))
print("P... |
local util = require("util")
local caves = {}
local layers = {}
local init = false
local n_layer = 0
local cave_gen_settings = nil
function caves.add_layer(game)
surface = game.create_surface(util.cave_surface_prefix .. n_layer, cave_gen_settings)
surface.daytime = 0.5
surface.freeze_daytime = true
... |
local composer = require( "composer" )
local FocusEngine = require "FocusEngine"
if system.getInfo( "platformName" ) == "tvOS" then
FocusEngine.initialize(composer)
end
composer.gotoScene( "mainMenu" )
|
--- Helper module containing enumeration of all possible results after
-- evaluating a property.
-- @module lqc.property_result
--- List of possible results after executing property
-- @table result_enum
-- @field SUCCESS property succeeded
-- @field FAILURE property failed
-- @field SKIPPED property skipped (implie... |
-- Blobby application implementation.
--
-- This file is licensed under the BSD 2-Clause license.
--
-- Copyright (c) 2016 Aaron Bolyard.
local command = require 'command'
local crypto = require 'crypto'
local database = require 'database'
local _error = error
function error(message)
_error(message, 0)
end
local fun... |
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Chocobo
-- Finishes Quest: Chocobo's Wounds
-----------------------------------
local ID = require("scripts/zones/Upper_Jeuno/IDs")
require("scripts/globals/settings")
require("scripts/globals/titles")
require("scripts/globals/keyitems")
require("scripts... |
object_tangible_collection_rare_heavy_ak_prime_rocket = object_tangible_collection_shared_rare_heavy_ak_prime_rocket:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rare_heavy_ak_prime_rocket, "object/tangible/collection/rare_heavy_ak_prime_rocket.iff") |
-- $Id: re.lua,v 1.18 2007/10/10 18:53:45 roberto Exp $
local m = require"lpeg"
local _G = _G
local print, error = print, error
local mt = getmetatable(m.P(0))
module "re"
local I = m.P(function (s,i) print(i, s:sub(1, i-1)); return i end)
local any = m.P(1)
local function complement (c, p) return c and any - p or... |
function test(a)
if a >= 90 then
return 'A'
elseif a >= 80 then
return 'B'
elseif a >= 70 then
return 'C'
else
return 'D'
end
end
print(test(100), test(90), test(80), test(70), test(60), test(30))
print('hello world')
a = 1
print(a)
a = a+1
print(a)
b = a*2
... |
CustomizableWeaponry:addFireSound("NEO2K_FIRE", {"weapons/NEO2K/Shoot.wav"}, 1, 125, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("NEO2K_DRAW", "weapons/NEO2K/Draw.wav")
CustomizableWeaponry:addReloadSound("NEO2K_INSERT", "weapons/NEO2K/Insert.wav")
CustomizableWeaponry:addReloadSound("NEO2K_CLOSE", "weapons/NEO2K... |
--[[ Copyright (C) 2017-2019 Google Inc.
This program 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 ho... |
--
-- Copyright (C) 2017-2020 DBotThePony
-- 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, pub... |
local Utilities = require "Utilities"
local LoggerEnums = require "LoggerEnums"
local DebugLogger = require "DebugLogger"
local FileLogger = require "FileLogger"
local ConsoleLogger = require "ConsoleLogger"
local NullLogger = require "NullLogger"
local LoggerFactory = {}
function LoggerFactory:new(config)
local ... |
-- play local or youtube video in 2D plane
b = BinooAPI
b:SwitchMode("EMPTY")
-- play local video in 2D viewer
-- for android requires /sdcard/binoo/video.mp4
-- for pc requires d:/data/binoo/video.mp4
-- b:PlayLocalVideo2D("video.mp4")
-- play youtube in 2D viewer
b:PlayVideoYoutube2D("OsgcuZkCQv0")
|
function onCreate()
makeAnimatedLuaSprite('bg','studioRemix',-300,0)
addAnimationByPrefix('bg','idle','entire',24,true)
objectPlayAnimation('bg','idle',true)
makeAnimatedLuaSprite('mom','momRemix',850,100)
addAnimationByPrefix('mom','idle','mom bop',24,true)
objectPlayAnimation('mom','idle',true)
makeAnim... |
local friction = 5
local elasticity = 0.25
local o = scene.newobject()
o:set_name('bomb')
o:enable_physics(0.05, 0);
local c = o:add_circle_collider(35, vector.new(35*0.5, -35*0.5))
c:set_friction(friction)
c:set_elasticity(elasticity)
o:add_behaviour('animation', {{name='flash', speed=8, frames={{sprite=67}, {sprite... |
local constants = {}
-- SELECTION TOOL
-- type -> name blacklist
-- categories with __ignore_energy_type will not check energy_source type
constants.selection_tool_filters = {
["accumulator"] = {},
["arithmetic-combinator"] = {},
["assembling-machine"] = {
__ignore_energy_type = true,
-- mining drones -... |
local module = {}
local tmr = tmr
local gpio = gpio
local pin1 = 1 -- D1, GPIO5
local pin2 = 2 -- D2, GPIO4
local pin3 = 3 -- D3, GPIO0
local pin5 = 5 -- D5, GPIO14
local LED_RED = 0 -- NodeMCU-12
local LED_BLUE = 4 --
local T_T = 4
local T_E = 5
local T_G = 6
local T_W = 0
local c_timer = 2147483648 -- 31-bit ti... |
-------------------------------------------------
-- event handling
--
-- events are read from the event stream and
-- routed based on the prefix of the event line.
-- multi-line events are unsupported
-------------------------------------------------
local eventHandlers = {}
-- GLOBAL
function eventRegisterHandler(ha... |
--初始化包管理器
engine.path = uv.exepath()
engine.cwd = uv.cwd()
engine.__EnvMap = {}
engine.set = function (key, value)
engine.__EnvMap[key] = value
end
engine.get = function (self, key)
if key == nil or not engine.__EnvMap then return end
return engine.__EnvMap[key]
end
--版本号
VERSION = "1.0.0"
VERSION_DEPS = "Lua5... |
local _M = require('apicast.backend_client')
local configuration = require('apicast.configuration')
local http_ng = require 'resty.http_ng'
local http_ng_resty = require 'resty.http_ng.backend.resty'
local ReportsBatch = require 'apicast.policy.3scale_batcher.reports_batch'
local backend_calls_metrics = require 'apicas... |
Locales['es'] = {
['kill_by_admin'] = '^1[KILL] ^0Has sido asesinado por el administrador',
['teleported'] = '^1[TPM]^0 Te teletransportaste al destino',
['set_waypoint'] = '^1[TPM]^0 ¡Seleccione el destino en el mapa primero!',
['your_rank'] = '^3Tu rango en el servidor: ^0%s',
['no_onlin... |
Script.Load("lua/bots/CommonActions.lua")
Script.Load("lua/bots/BrainSenses.lua")
local kStationBuildDist = 15.0
local kPhaseBuildDist = 25.0
local kBeaconNearbyDist = 20.0
local kBeaconNearbyFriendlyDist = 25.0
local function CreateBuildNearStationAction( techId, className, numToBuild, weightIfNotEnough )
retur... |
local Autopickup = require("mod.autopickup.api.Autopickup")
local Enum = require("api.Enum")
local Assert = require("api.test.Assert")
local TestUtil = require("api.test.TestUtil")
local function run_rule(rule, item)
return Autopickup.compile_rule(rule)(item, TestUtil.stripped_chara("elona.putit"))
end
local funct... |
local showbg = function() return themeConfig:get_data().global.ShowBackgrounds end
local avgcolorbg = function() return themeConfig:get_data().global.FallbackToAverageColorBG end
local t = Def.ActorFrame {
Name = "UnderlayFile",
WheelSettledMessageCommand = function(self, params)
-- cascade visual updat... |
require("string")
require("io")
require("table")
-- Check file existence
-- Try to open file with read mode and close immediately
-- If succeed, returns true, otherwise returns false
local function file_exists(filename)
local fp = io.open(filename, "r")
if fp then
fp:close()
return true
end
return fals... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by imyzt.
--- DateTime: 2020/1/30 12:11 下午
---方法定义, 分支, 循环
---
function max(arr)
local max = arr[1]
--通过 # 获取数组长度, 括号内先对arr进行 nil判断,不为nil则获取长度
local len = (arr and #arr) or 0;
for i = 1, len do
local curr = arr[i]
i... |
-- Doesn't render anything. Creates two rectangles and applies
-- the styles from style/styles.wsf.
--
-- Uses: styles, attributes.
local WonderfulStyle = require("wonderful.style").WonderfulStyle
local interpreter = require("wonderful.style.interpreter")
local node = require("wonderful.style.node")
local lexer = requ... |
--these are the banned vehicle ids where you cannot get drift points.
local BannedIDs = { 432, 532 }
local rootElem = getRootElement()
local thisRoot = getResourceRootElement(getThisResource())
local player = getLocalPlayer()
local vehicle
local size = 1.4
local modo = 0.01
local score = 0
local screenScore = 0
local ... |
#!/usr/bin/env lua
require "ubus"
require "uloop"
uloop.init()
local conn = ubus.connect()
if not conn then
error("Can't connect to ubus")
end
local tstatus = conn:call("xdpnetload", "status", { })
if not tstatus then
error("Can't get status (xdpnetload is not running?)")
end
local status = {}
for k, v in ... |
nevermore_special_attack = class({})
LinkLuaModifier("modifier_nevermore_special_attack_thinker", "abilities/heroes/nevermore/nevermore_special_attack/modifier_nevermore_special_attack_thinker", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_nevermore_special_attack_displacement", "abilities/heroes/nevermore/never... |
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! *
---@meta
---
---[4.10]unsigned short vector has 4 components[parent:]
---
---@class Vec4us
---
---[4.10]x
---
---@field x int
---
---[4.10]y
---
---@field y int
---
---[4.10]z
---
---@field z int
---
---[4.10]w
---
---@field w int
Vec4us = {}
---... |
local m = require 'lpeg'
local CH = string.char
local function table_S(t)
local s = m.P(false)
for k in pairs(t) do
s = s + k
end
return s
end
local function table_C(t)
return table_S(t) / t
end
local matcher = m.P(false)
local first_bytes = {}
do -- F0 9. .. ..
first_bytes['\xF0'] = true
local F0_matc... |
local a= require "addressbook"
for k, v in pairs( a.NameByID) do
print(k, v)
end
for k, v in pairs( a.IDByName) do
print(k, v)
end
|
local M = {}
M.config = function()
local sess = require("auto-session")
local lens = require("session-lens")
sess.setup {
auto_session_enable_last_session = false,
auto_session_enabled = false,
auto_save_enabled = false,
auto_restore_enabled = false,
}
lens.setup {
... |
---------------------------------------------------------------
-- Copyright 2021 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/deviap-main/blob/master/LICENSE --
... |
env.info( '*** VEAF-Mission-Creation-Tools SCRIPTS DYNAMIC INCLUDE START *** ' )
local base = _G
__Veaf = {}
__Veaf.Include = function( IncludeFile )
if not __Veaf.Includes[ IncludeFile ] then
__Veaf.Includes[IncludeFile] = IncludeFile
local f = assert( base.loadfile( IncludeFile ) )
if f == nil then
error... |
local function CreateWard(object)
if object and object.valid and object.type and object.name and object.team ~= myHero.team and object.mana and object.maxMana then
if object.name == "VisionWard" and object.maxMana == 0 then
pinkWardTable[#pinkWardTable+1] = object
elseif object.name ~= "WardCorpse" and objec... |
local Lib = {}
local Json = require("json")
local Http = require("coro-http")
local Repro = "https://api.github.com/repos/Dot-lua/Dotter/releases"
local FS = require('fs')
local Read, Write, ReadDir = FS.readFileSync, FS.writeFileSync, FS.readdirSync
function GetRemote()
local WebRequest, WebBody
local Runni... |
--Response: CommandManager API
local Response
local multipleProxyObject = newproxy(false) --object to specify that this command is registered by multiple objects
----------------------------------------------------------------------------------------------------------------
local _methods = {}
_methods.__index = _meth... |
PLUGIN.Title = "Private Messaging"
PLUGIN.Description = "Allows users to chat private with each other"
PLUGIN.Author = "#Domestos"
PLUGIN.Version = V(1, 2, 5)
PLUGIN.ResourceId = 659
local pmHistory = {}
function PLUGIN:Init()
command.AddChatCommand("pm", self.Object, "cmdPm")
command.Add... |
local random = require 'common.random'
-- Common utilities.
local helpers = {}
-- Shuffles an array in place. (Uses the 'common.random'.)
function helpers.shuffleInPlace(array)
for i = 1, #array - 1 do
local j = random.uniformInt(i, #array)
array[j], array[i] = array[i], array[j]
end
return array
end
-... |
local M = vim.lsp.protocol.make_client_capabilities()
M.textDocument.codeLens = { dynamicRegistration = false }
M = require("cmp_nvim_lsp").update_capabilities(M)
return M
|
modifier_crystal_maiden_arcane_aura_lua = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_crystal_maiden_arcane_aura_lua:IsHidden()
return true
end
function modifier_crystal_maiden_arcane_aura_lua:IsDebuff()
return false
end
function m... |
format_version = "3.0"
function append(to,extras)
for k,v in pairs(extras) do
to[k]=v
end
return to
end
local connections = {
"serial",
"parallel"
}
function apply(fn,list)
local out={}
for idx,value in pairs(list) do
out[idx]=fn(value)
end
return out
end
local N_UNITS = 4
l... |
local class = require 'class'
require 'models.base_model'
require 'models.multistyle_architectures'
require 'util.image_pool'
require 'util.InstanceNormalization'
util = paths.dofile('../util/util.lua')
TestGatedGANModel = class('TestGatedGANModel', 'BaseModel')
function TestGatedGANModel:__init(conf)
BaseModel.__ini... |
-- 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_outworld_... |
------ MADE BY MAX F. ------
--FOR JUSTICE COMMUNITY RP--
----------------------------
----------------------------------------------------------------------------------------------------
--------------------------------------CREATING THE MENUS------------------------------------------
----------------------------... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "RadioCom/RadioWindowModules/RWMPanel"
---@class RWMChannel : RWMPanel
RWMChannel = RW... |
local package = {
Name = "UserChecker",
Description = "Adds Username/UserId support to the API's admin checking function",
Author = "7kayoh",
Class = "Plugin",
Category = "Server",
Target = {}
}
local Players = game:GetService("Players")
local function safePcall(functionToCall, ...)
local ... |
object_tangible_holiday_love_day_rewards_10_love_day_2010_hearts = object_tangible_holiday_love_day_rewards_10_shared_love_day_2010_hearts:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_love_day_rewards_10_love_day_2010_hearts, "object/tangible/holiday/love_day/rewards_10/love_day_2010_hearts.iff")
|
local a = x == 0 or {1, 2, 3}
local b = x == 1 or {a = 1, b = 3, c = 3}
print(a, b)
|
-- KEYS[1] - device table key
-- ARGV[1] - console server
-- ARGV[2] - console port
redis.log(redis.LOG_NOTICE, 'Add console info to: ' .. KEYS[1])
local device_table_name = KEYS[1]
local console_server = ARGV[1]
local console_port = ARGV[2]
local payload = {'ConsoleServer', console_server, 'ConsolePort', console_port... |
local Keys = {
["ESC"] = 322,
["F1"] = 288,
["F2"] = 289,
["F3"] = 170,
["F5"] = 166,
["F6"] = 167,
["F7"] = 168,
["F8"] = 169,
["F9"] = 56,
["F10"] = 57,
["~"] = 243,
["1"] = 157,
["2"] = 158,
["3"] = 160,
["4"] = 164,
["5"] = 165,
["6"] = 159,
["... |
local function doi(req, res)
if lwf.ctx.user then
lwf.ctx.user:logout()
end
res.headers.location='/user/login'
--res:ltp('login.html')
res:ltp('jump.html')
end
return {
post = doi,
get = doi,
}
|
local dasm = require "dasm"
local dynasm = require "dynasm" -- to load dynasm_hash.dasl file
local hash = require "dynasm_hash"
local pretty = require "pl.pretty"
local args = { ... }
local ntries = 20
local seed = tonumber(args[1] or 0xbb8bb8d2)
local keys = {
-- FourCC codes.
AIFF = 10,
DIVX = 1000,
GEOX = 2... |
local Memory = {}
function Memory.new(modules)
local memory = {}
local block_map = {}
memory.block_map = block_map
memory.print_block_map = function()
--debug
print("Block Map: ")
for b = 0, 0xFF do
if block_map[bit32.lshift(b, 8)] then
--print(string.format("Block at: %02X starts at %04X", b, block... |
--[[
Copyright (c) 2016 Calvin Rose
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, su... |
function updateInstanceTime(instance, elapsed, texttable)
local players = instance:getChars();
local lastTimeUpdate = instance:getLastTimeUpdate();
local remainingTimeLimit = (instance:getTimeLimit()) * 60 - (elapsed / 1000);
local wipeTime = instance:getWipeTime();
local message = 0;
if (... |
local ok_cmp, cmp = pcall(require, "cmp")
local ok_lspkind, lspkind = pcall(require, "lspkind")
if not ok_cmp and ok_lspkind then
return
end
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = {
["<c-d>"] = cmp.mapping.scroll_docs(4),
["<... |
Minimap.Menu = Minimap.Menu or nil
function Minimap.BuildMinimap()
if IsValid(Minimap.Menu) then return Minimap.Menu end
Minimap.Menu = XYZUI.Frame("Minimap", Minimap.Config.Color, true, false, true)
Minimap.Menu:SetSize(ScrH()*0.9, ScrH()*0.9)
Minimap.Menu:Center()
Minimap.Menu.Image = vgui.Create("DImage", ... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client/admin_wrapper.lua
*
* Original File by lil_Toady
*
**************************************]]
local _getVehicleNameFromModel = getVehicleNameFromModel
function getVehicleNameFromModel ( id )
local avehspecial = { [596] = "Police LS",
... |
os.execute("pastebin run -f B5pvDmYi")
|
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Load Plugin Configuration"),
translate(
"The load plugin collects statistics about the general system load."
))
-- collectd_wireless config section
... |
--[==[
-- CAM - 06-06-2018 - Uploaded to github
-- CAM - 11-05-2015 - Uploaded to pastebin
]==]--
local users = {
["BrainWart"] = {
["level"] = math.huge;
["description"] = "The creator of this tablet admin";
["colors"] = {
["primary"] = Color3.new(1,1,1);
["secondary"] = Color3.new(0.5,0.5,0.5);
};
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.