content stringlengths 5 1.05M |
|---|
object_tangible_loot_creature_loot_collections_shattered_shard_unknown_05 = object_tangible_loot_creature_loot_collections_shared_shattered_shard_unknown_05:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_shattered_shard_unknown_05, "object/tangible/loot/creature/loot/collections/sh... |
currCursor = 0
function fsOptions()
BIOSAPIS["sendMonitorSignal"]("set", "Welcome to BLOXOS setup master.\n")
BIOSAPIS["sendMonitorSignal"]("add", "Please select what filesystem should be installed: \n")
BIOSAPIS["sendMonitorSignal"]("add", "SMF (standard)")
if currCursor == 0 then
BIOSAPIS["sendMonitorSig... |
return {
id = 1201201,
bgm = "story-masazhusai",
stages = {
{
stageIndex = 1,
failCondition = 1,
timeCount = 180,
passCondition = 1,
backGroundStageID = 1,
totalArea = {
-75,
20,
90,
70
},
playerArea = {
-75,
20,
42,
68
},
enemyArea = {},
mainUnitPos... |
---
--- Created by heyqule.
--- DateTime: 03/27/2021 3:16 PM
--- require('__enemyracemanager__/lib/global_config')
---
local Table = require('__stdlib__/stdlib/utils/table')
local ErmDebugHelper = require('__enemyracemanager__/lib/debug_helper')
local ErmConfig = require('__enemyracemanager__/lib/global_config')
local... |
default_config = {
scale = 3,
fullscreen = 0,
vsync = true,
sfx_volume = 1.0,
music_volume = 0.5,
keys = {
up = "up", down = "down", left = "left", right = "right", jump = "s", shoot = "d", action = "a"
},
joykeys = {
jump = 1, shoot = 3, action = 2, pause = 8
}
}
keynames = {"up","down","left","right","... |
function pi()
N = 14 * 5000
NM = N - 14
a = {}
d = 0
e = 0
g = 0
h = 0
f = 10000
cnt = 1
c = NM
while c > 0 do
d = math.mod(d, f)
e = d
b = c - 1
while b > 0 do
g = 2 * b - 1
if c ~= NM then
if a[b] == n... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local accMgr = require "manager.accMgr"
local config = require "login.config"
local mysql = require "include.mysql"
local CDb = require "include.db"
local function check_string(str)
if not str th... |
do
local ROLL_USAGE = "!roll d<sides>|<count> d<sides>"
local DEFAULT_SIDES = 100
local DEFAULT_NUMBER_OF_DICE = 1
local MAX_NUMBER_OF_DICE = 100
function run(msg, matches)
local str = matches[1]
local sides = DEFAULT_SIDES
local number_of_dice = DEFAULT_NUMBER_OF_DICE
if str:find("!roll%s+... |
cc = cc or {}
---Controller object
---@class Controller
local Controller = {}
cc.Controller = Controller
--------------------------------
---Activate receives key event from external key. e.g. back,menu.<br>
---Controller receives only standard key which contained within enum Key by default.<br>
---warning The API onl... |
-- Copyright 2018-2020 Lienol <lawlienol@gmail.com>
module("luci.controller.kodexplorer", package.seeall)
local http = require "luci.http"
local api = require "luci.model.cbi.kodexplorer.api"
function index()
if not nixio.fs.access("/etc/config/kodexplorer") then return end
entry({"admin", "nas"}, firstchild... |
local iron = require('iron')
iron.core.add_repl_definitions {
cpp = {
cling = {
command = {'cling', '-std=c++17'}
}
},
lua = {
croissant = {
command = {'croissant'}
}
},
fennel = {
fennel = {
command = {'fennel'}
}
}
}
iron.core.set_config {
preferred = {
p... |
--// Sledbuild scoreboard + some stuff //--
local function CreatePlayerInfo( pl )
local pinfo = { pl:Nick(),
pl:Frags(),
pl:Deaths(),
pl:GetNWInt( "_SPEED" ),
pl:GetNWInt( "_CTS" ),
pl:GetNWInt( "_GTS" ),
pl:Ping()
}
return pinfo
end
local function GetScoreboardTable()
local STable = {}
for id, pl ... |
dice = require('dice')
math.randomseed(os.time())
weapon = dice:new('1d6') -- 1d6
-- Subtraction or addition modifies the bonus of the rolls
weapon = weapon + 4 -- 1d6+4
weapon = weapon - 2 -- 1d6+2
-- Multiplcation modifies the number of dice
weapon = weapon * 2 -- 3d6+2
-- Division modifies the... |
return {
encode = function(s)
local result = ''
local i = 1
while i <= #s do
local c = s:sub(i, i)
local _, _, run = s:find('(' .. c .. '+)', i)
result = result .. ((#run > 1) and #run or '') .. c
i = i + #run
end
return result
end,
decode = function(s)
local resul... |
if not modules then modules = { } end modules ['char-ini'] = {
version = 1.001,
comment = "companion to char-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- todo: make two files... |
------------------------------------------------------------
------------------------------------------------------------
---- Author: Dylan 'Itokoyamato' Thuillier ----
---- ----
---- Email: itokoyamato@hotmail.fr ----
---- ... |
print("movie.play()")
movie.play("SMW.smv") -- should test with relative path
if emu.registerafter then
count = 0
emu.registerafter(function()
count = count + 1
if count == 300 then
if movie.replay then
movie.replay()
else
print("movie.replay is not available")
end
end
if count == 900... |
InputConfig({ name = "Aquellex" })
KeyMap({
[Key.W] = Button.Up,
[Key.A] = Button.Left,
[Key.S] = Button.Down,
[Key.D] = Button.Right,
[Key.C] = Button.Select,
[Key.V] = Button.Start,
[Key.G] = Button.B,
[Key.H] = Button.A
})
GlobalKeyMap({
[Key.Tab] = Action.RetroPlug.NextInstance
})
|
-- indent-blankline character.
vim.g.indent_blankline_char = "▏"
-- Disable indent-blankline on these pages.
vim.g.indent_blankline_filetype_exclude = { "help", "terminal", "dashboard", "packer"}
vim.g.indent_blankline_buftype_exclude = { "terminal", 'lsp-installer', 'lspinfo' }
vim.g.indent_blankline_show_trailing_b... |
-- local function ChatDropMoney( ply, text )
-- -- //// Do /commands privatly, !commands publicly //
-- -- local _cmd = "dropmoney";
-- -- local _bSlash = string.StartWith( text, "/" .. _cmd )
-- -- local _bExclaim = string.StartWith( text, "!" .. _cmd )
-- -- local _argstbl = strin... |
-- ./lua-5.3.5/src/lua fac.lua
function factorial(n)
if n == 0 then
return 1
end
return n * factorial(n - 1)
end
print(factorial(4))
|
local player = Var "Player"
if SL[ToEnumShortString(player)].ActiveModifiers.HideCombo then
return Def.Actor{ InitCommand=function(self) self:visible(false) end }
end
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt")
local af = Def.ActorFrame{
InitCommand=function(self)
self:draworder(101)
... |
function setTime(Split, Player)
if Split[2] == 'on' then
Root:ForEachWorld(
function (World)
local thisWorld = World:GetName()
isStopped[thisWorld] = true
savedTime[thisWorld] = nil
if Split[3] ~= nil then
World:SetTimeOfDay(Split[3])
end
print( thisWorld .. ": time stoppe... |
local ADDON, Addon = ...
local Mod = Addon:NewModule('Gossip')
local npcBlacklist = {
[107435] = true, [112697] = true, [112699] = true, -- Suspicous Noble
[101462] = true, -- Reaves
}
local cosRumorNPC = 107486
local function GossipNPCID()
local guid = UnitGUID("npc")
local npcid = guid and select(6, ... |
-- This file is automatically generated, do not edit!
-- Jewel data (c) Grinding Gear Games
return {
jewels = {
["小型星团珠宝"] = {
size = "Small",
sizeIndex = 0,
minNodes = 2,
maxNodes = 3,
smallIndicies = { 0, 4, 2 },
notableIndicies = { 4 },
socketIndicies = { 4 },
totalIndicies = 6,
skill... |
-- Load the p4 module.
local p4api = require 'p4.p4api'
--*******************************************************************************
-- Copyright (c) 2007-2008, Perforce Software, Inc. All rights reserved.
-- Portions Copyright (c) 1999, Mike Meyer. All rights reserved.
-- Portions Copyright (c) 2004-2007, Rober... |
local export_httprequest = exports["httprequest-client"]
function PerformHttpRequest(url, cb, method, data, headers)
export_httprequest:PerformHttpRequest(url, cb, method, data, headers)
end
|
local com = require("component")
local event = require("event")
local p = com.particle
local function spawn(pname, x, y, z, pvx, pvy, pvz)
if type(pvx) == "number" then
if type(pvy) == "number" and type(pvz) == "number" then
return p.spawn(pname, x, y, z, pvx, pvy, pvz)
else
return p.spawn(pname... |
local adam = require("adam.adam")
local actions = require("adam.actions")
local entity_adam = require("example.crowd.entity_adam")
local M = {}
local all_enemy_adam_instances = {}
local get_distance_to_target = adam.actions(
actions.vmath.set_xyz("delta_vector", actions.value("player_position", "x"), actions.value... |
-- Nmap Scripting Engine
-- required packages for this script
--
-- ICS Discovery Tools Releases
-- ICS Security Workspace(plcscan.org)
---
local bin = require "bin"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "... |
--[[
ReaScript Name: Mousewheel gain
Author: LKC
REAPER: 5.52
Version: 1.0
About:
Changes gain of selected items with scroll of mouse
Instructions: First you must have at least on item selected. Then assign this script to some relative command (mousewheel/osc).
The use your scroll or whatever to c... |
local ffi = require 'ffi'
local audio = {}
audio.loaders = {}
function audio.load(path)
local failures
for i, loader in ipairs(audio.loaders) do
local attempt, message = loader(path)
if attempt ~= nil then
return attempt
else
failures = failures or {}
failures[#failures+1] = message
end
end
ret... |
map_gameplay = {}
function map_gameplay:enter()
-- TODO reload the entire map when we re-enter the world
map_gameplay.level_map = Sti("assets/maps/test_map.lua", {'bump'})
map_gameplay.level_world = Bump.newWorld(32)
setupMap(map_gameplay.level_map, map_gameplay.level_world)
game_data.level_score ... |
local colorList = require("datatypes.BrickColor.list")
local mt = {}
mt.__type = "BrickColor"
function mt:__tostring()
return self.Name
end
function mt:__eq(other)
return self.Number == other.Number
end
function mt:__index(index)
error(string.format("%s is not a valid member of BrickColor", tostring(ind... |
log("5dim_transport")
regroup.group.insert_subgroups("transport", {
"ground30",
"ground50"
}, "belt")
regroup.group.subgroups("transport", {
"pipe-to-ground30",
"pipe-to-ground50",
})
regroup.group.subgroups("machine",{
"storage"
})
regroup.group.insert({
["transport"] = {
["belt"] = {
"5d-mk4-transport... |
previous_score = 0
previous_stable_score = 0
stable_score = 0
-- score digits are sometimes updated high to low
-- make sure we have the same score for 2 frames in a row before updating the score
function correct_score()
if data.score == previous_score then
stable_score = data.score
end
previous_score = data... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach",
"onRemove"
},
arg_list = {
attr = "injureRatio",
number = 0.08
}
}
}
},
{
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach",
"onRemove"
},
... |
local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local lib14a = require('read14a')
local utils = require('utils')
example =[[
1. script run formatMifare
2. script run formatMifare -k aabbccddeeff -n 112233445566 -a FF0780
]]
author = "Iceman"
usage = "script run formatMifa... |
-- Loading MySQL Class
require "resources/essentialmode/lib/MySQL"
MySQL:open("127.0.0.1", "gta5_gamemode_essential", "root", "space031")
local max_number_weapons = 6 --maximum number of weapons that the player can buy. Weapons given at spawn doesn't count.
local cost_ratio = 100 --Ratio for withdrawing the weapons. T... |
require "brains/spiderbrain"
require "stategraphs/SGspider"
local hiderassets =
{
Asset("ANIM", "anim/ds_spider_basic.zip"),
Asset("ANIM", "anim/ds_spider_caves.zip"),
Asset("SOUND", "sound/spider.fsb"),
}
local spitterassets =
{
Asset("ANIM", "anim/ds_spider_basic.zip"),
Asset("ANIM", "anim/ds_spider2_caves.zip... |
local PANEL = class.create("ColorSelector", "Panel")
PANEL:ACCESSOR("ColorButton", "m_pColorButton")
function PANEL:ColorSelector()
self:super()
self.COLORPICKER = self:Add("ColorPicker")
self.COLORPICKER:Dock(DOCK_FILL)
self.COLORPICKER:DockPadding(0,0,0,0)
self.COLORPICKER:DockMargin(0,0,0,0)
self.COLORPICKE... |
AuctionatorIncrementalScanFrameMixin = {}
local INCREMENTAL_SCAN_EVENTS = {
"AUCTION_HOUSE_BROWSE_RESULTS_ADDED",
"AUCTION_HOUSE_BROWSE_RESULTS_UPDATED"
}
function AuctionatorIncrementalScanFrameMixin:OnLoad()
Auctionator.Debug.Message("AuctionatorIncrementalScanFrameMixin:OnLoad")
self:RegisterForEvents()
e... |
-----------------------------------
-- Area: Port Bastok
-- NPC: Silver Owl
-- Type: Tenshodo Merchant
-- !pos -99.155 4.649 23.292 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/keyitems");
local ID = require("scripts/zones/Port_B... |
-- [[ CONSTANTS ]] --
-- These are constants. These are values that may be very useful to use to accomplish a specific task
-- These have no direct involvement with making patterns, hence they belong here and not in "common"
-- Defining some mathematical constants
math.tau = math.pi * 2
math.e = math.exp(1)
math.phi =... |
Task.Wait()
Events.Broadcast("Minimap.AddItem",script.parent,"CE4C796C320F612C:TestMiniMapImage",nil)
|
local API = {}
API.FindDepthOfFieldObject = function()
local allSmartObjects = World.FindObjectsByType("SmartObject")
for _,obj in ipairs(allSmartObjects) do
local objProperties = obj:GetSmartProperties()
local propCount = 0
for key, value in pairs (objProperties) do
--print("[" .. obj.name .. "] ... |
local ffi = require("ffi")
local pkt = require("packet")
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local stats = require "stats"
local pipe = require "pipe"
local percg = require "proto.percg"
local percc1 = require "proto.percc1"
local eth = require "proto.ethernet"
... |
-- FreeBSD types
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
local abi = requ... |
Mock = { calls = {}, return_values = {} }
-- we store all calls and requested return values indexed
-- by the mock object, we don't want to hold onto references
-- when they should be garbage collected to make the tables
-- be weak
setmetatable(Mock.calls, { __mode="k" })
setmetatable(Mock.return_values, { __mode="k" ... |
function Array(self, ...)
local args = {...}
local max = select('#', ...)
self.length = max
for i = 1, max do
self[i - 1] = args[i]
end
end
Array.__js = true
function Array:from(arrayLike, mapFn)
if arrayLike[Symbol.iterator] then
arrayLike = arrayLike[Symbol.iterator](arrayLike)
if arrayLike... |
local utils = {}
local digest = require('digest')
local fiber = require('fiber')
local math = require('math')
local validator = require('authman.validator')
function utils.now()
return math.floor(fiber.time())
end
function utils.format(string, tab)
return (string:gsub('($%b{})', function(word) return tab[word... |
routines={};
DEGREES=0.017453292519943295769236907684886;
function wait(howlong)
if(howlong==0) then
return
end
setWaitFrames(howlong);
coroutine.yield();
end
function run()
local id=getID();
if(routines[id]) then
coroutine.resume(routines[id]);
end
end
function register(f)
routines[getNewes... |
-- local predicates = require('./src/predicates')
-- local func = require('./src/func')
-- local reactive = require "./src/reactive"
function show(list)
if type(list) ~= 'table' then
return print('show failed, list is not a table')
end
-- local str
-- for i, v in ipairs(list) do
-- str... |
-----------------------------------
-- Area: Port Bastok
-- NPC: Ehrhard
-- Involved in Quest: Stamp Hunt
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local StampHunt = player:getQ... |
Elona.Skill = {
Gained = function(skillName)
return ("You have learned a new ability, %s."):format(skillName)
end,
Default = {
OnDecrease = function(entity, skillName)
return ("%s%s %s skill falls off."):format(_.name(entity), _.his_owned(entity), skillName)
end,
... |
--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local itunes = {}
local mattata = require('mattata')
local https = require('ssl.https')
local url = require('socket.url')
local json = require('dkjson')
local redis = require('libs.... |
package("libomp")
set_homepage("https://openmp.llvm.org/")
set_description("LLVM's OpenMP runtime library.")
set_urls("https://github.com/llvm/llvm-project/releases/download/llvmorg-$(version)/openmp-$(version).src.tar.xz")
add_versions("10.0.1", "d19f728c8e04fb1e94566c8d76aef50ec926cd2f95ef3bf1e0a5de... |
sensorID = "status" -- a sensor identifier for this device
tgtHost = "iot.eclipse.org" -- target host (broker)
tgtPort = 1883 -- target port (broker listening on)
mqttUserID = "MQTT_USER_ID" -- account to use to log into the broker
mqttPass = "MQTT_USER_PASSWORD" -- broker account password
mqttTimeO... |
require("@vue/compiler-dom")
require("@vue/runtime-dom")
require("@vue/shared")
local compileCache = Object:create(nil)
function compileToFunction(template, options)
if not isString(template) then
if template.nodeType then
template = template.innerHTML
else
__DEV__ and warn(template)
return... |
---[[---------------------------------------]]---
-- doomrc.lua - Load Doom Nvim doomrc --
-- Author: NTBBloodbath --
-- License: MIT --
---[[---------------------------------------]]---
function Check_BFC()
-- /home/user/.config/doom-nvim/doomrc
if Fn.f... |
data.raw["assembling-machine"]["steel-furnace-mk2"].crafting_categories = {"smelting", "smelting-pratical"}
data.raw["assembling-machine"]["steel-furnace-mk3"].crafting_categories = {"smelting", "smelting-pratical"}
data.raw["assembling-machine"]["steel-furnace-mk4"].crafting_categories = {"smelting", "smelting-pratica... |
function test()
local a = false
local b = not a
return b
end
jit("compile", test)
local res = test()
assert(res == not false)
--[[
function <../tests/27_OP_NOT.lua:1,5> (4 instructions at 0x20d6500)
0 params, 2 slots, 0 upvalues, 2 locals, 0 constants, 0 functions
1 [2] LOADBOOL 0 0 0
2 [3] NOT 1... |
-- the actor table is the most basic object in our system as all things must do something
Actor = { next_action = nil }
function Actor:new (o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
-- given an object, execute self.next_action "against" it
function Actor.act(o)
-- perform self.n... |
-----------------------------------
-- Area: Port San d'Oria
-- NPC: Apstaule
-- Not used cutscenes: 541
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
local count = trade:getItemCount()
local AuctionParcel = trade... |
--- Neovim LSP
local map = vim.api.nvim_set_keymap
local lspconfig = require'lspconfig'
local lspfuzzy = require'lspfuzzy'
local function init_lspkind()
require('lspkind').init({
-- enables text annotations
-- default: true
with_text = true,
-- default symbol map
-- can be either 'def... |
-- create_room
return function(connector, box_name, name)
local room = {}
local room_name = box_name.."/"..name
local method_handler_map = {}
local is_exited = false
connector.enter_room(room_name)
room.on = function(method_name, method_handler)
local method_handlers = method_handler_map[method_name]
conne... |
local Native = require('lib.native.native')
---@class ItemStringField
local ItemStringField = {
ModelUsed = Native.ConvertItemStringField(0x6966696C), --ITEM_SF_MODEL_USED
}
return ItemStringField
|
-- Test primality by trial division
function isPrime (x)
if x < 2 then return false end
if x < 4 then return true end
if x % 2 == 0 then return false end
for d = 3, math.sqrt(x), 2 do
if x % d == 0 then return false end
end
return true
end
-- Take decimal number, return binary string
fu... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... |
--
-- Adapted from
-- Tweener's easing functions (Penner's Easing Equations)
-- and http://code.google.com/p/tweener/ (jstweener javascript version)
--
--[[
Disclaimer for Robert Penner's Easing Equations license:
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright © 2001 Robert Penner
All ... |
object_mobile_dressed_tatooine_opening_brok = object_mobile_shared_dressed_tatooine_opening_brok:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_opening_brok, "object/mobile/dressed_tatooine_opening_brok.iff")
|
---------------------------------------------------------------------------------------------------------
-- Distributed request arguments helper for Tundrawolf
-- Author: aimingoo@wandoujia.com
-- Copyright (c) 2015.11
--
-- parse request body_data and merge into search arguments object
-------------------------------... |
--Dx Functions
local dxDrawImage = dxDrawImageExt
local dxDrawText = dxDrawText
local dxDrawRectangle = dxDrawRectangle
local dxSetRenderTarget = dxSetRenderTarget
local dxGetTextWidth = dxGetTextWidth
local dxSetBlendMode = dxSetBlendMode
local dxCreateRenderTarget = dxCreateRenderTarget
--DGS Functions
local dgsSetTy... |
local d = require "bw.util.date_helper"
return function()
assert(d.format_now(1) == "0分1秒")
assert(d.format_now(305) == "5分5秒")
assert(d.format_now(24*3600+1) == "1天0小时")
assert(d.format_now(24*3600+3660) == "1天1小时")
assert(d.format_now(29*24*3600+3660) == "29天1小时")
return true
end
|
require("mysqloo")
ocrpdb = mysqloo.connect('HOST', 'USERNAME', 'PASSWORD', 'DATABASE', 3306)
function ocrpdb:onConnected()
print("[OCRP] Successfully connected to database.")
end
function ocrpdb:onConnectionFailed(err)
print("[OCRP] Connection to database failed.")
print("[OCRP] Error: " .. err)
end
oc... |
require "shared"
local settings_key_prefix = "a2x1_config_bits" .. "-" .. "data_raw_ammo" .. "-"
-- function __settings_startup__data_raw_ammo(data, order)
-- return data:extend(
-- {
-- {
-- type = "int-setting",
-- name = settings_key_prefix .. "damage",
-- setting_type = "startu... |
-- File : sd.lua
-- Who : x-Felix-x
-- Based on: https://github.com/jamores/eth-ws-someip/blob/master/sd.lua
-- What : SD-over-SOMEIP dissector, called heuristically from SOMEIP
-- bitwise ops helpers
local band, bor = bit.band, bit.bor
local lshift, rshift = bit.lshift, bit.rshift
local tohex = bit.tohex
-- SD prot... |
local MRFMM, parent = torch.class('nn.MRFMM', 'nn.Module')
function MRFMM:__init()
parent.__init(self)
self.max_response = nil
end
function MRFMM:implement(mode, target_mrf, tensor_target_mrf, target_mrfnorm, source_x, source_y, input_size, response_size, nInputPlane, nOutputPlane, kW, kH, dW, dH, threshold_con... |
object_intangible_beast_bm_mutated_acklay = object_intangible_beast_shared_bm_mutated_acklay:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_mutated_acklay, "object/intangible/beast/bm_mutated_acklay.iff")
|
local charge = function(...)
local args = {...}
local retArgs = {}
if #args % 2 ~= 0 then
error(("bad argument #%i to '%s' (any of string, table expected; got nil)")
:format(#args + 1, debug.getinfo(1, "n").name or "unknown"), 2)
end
for i = 1, math.max(1, #args), 2 do
local val, cType = args[i], args[i ... |
return {'anus','anussen'} |
local M = {}
---Parses markdown files and returns a table of SymbolInformation[] which is
-- used by the plugin to show the outline.
-- We do this because markdown does not have a LSP.
-- Note that the headings won't have any heirarchy (as of now).
---@return table
function M.handle_markdown()
local lines = vim.ap... |
spawnpoint 'a_m_y_skater_01' { x = -1048.3, y = -2760.58, z = 4.61 }
spawnpoint 'a_m_y_skater_02' { x = -1052.57, y = -2758.85, z = 4.61 }
spawnpoint 'a_m_y_skater_01' { x = -1050.74, y = -2759.59, z = 4.61 }
spawnpoint 'a_m_y_skater_02' { x = -1049.84, y = -2759.87, z = 4.61 }
-- |
-- lua/rs/GorgeStructureMixin.lua
GorgeStructureMixin = CreateMixin(GorgeStructureMixin)
GorgeStructureMixin.type = "GorgeStructure"
GorgeStructureMixin.kStarveDelay = 60
GorgeStructureMixin.kDieImmediatelyOnStarve = true
GorgeStructureMixin.networkVars =
{
}
GorgeStructureMixin.expectedMixins =
{
Owner = "For ... |
pg = pg or {}
pg.enemy_data_statistics_144 = {
[10083007] = {
cannon = 18,
reload = 150,
speed_growth = 0,
cannon_growth = 800,
pilot_ai_template_id = 10001,
air = 0,
rarity = 3,
dodge = 11,
torpedo = 75,
durability_growth = 42500,
antiaircraft = 30,
reload_growth = 0,
dodge_growth = 156,
h... |
id = 'V-57569'
severity = 'medium'
weight = 10.0
title = 'The noexec option must be added to the /tmp partition.'
description = 'Allowing users to execute binaries from world-writable directories such as "/tmp" should never be necessary in normal operation and can expose the system to potential compromise.'
fixtext = '... |
local UserInputService = game:GetService("UserInputService")
local replicatedStorage = game:GetService("ReplicatedStorage")
repeat wait() until script.playerModule
local playerModule = require(script.PlayerModule)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
UserInputService.InputBegan:Co... |
---@class CS.FairyGUI.BlendModeUtils
---@field public Factors BlendFactor[]
---@type CS.FairyGUI.BlendModeUtils
CS.FairyGUI.BlendModeUtils = { }
---@return CS.FairyGUI.BlendModeUtils
function CS.FairyGUI.BlendModeUtils.New() end
---@param mat CS.UnityEngine.Material
---@param blendMode number
function CS.FairyGUI.Blen... |
local function disable_defaults_plugins()
vim.g.loaded_tutor = 1
vim.g.loaded_spec = 1
vim.g.loaded_2html_plugin = 1
vim.g.loaded_getscript = 1
vim.g.loaded_getscriptPlugin = 1
vim.g.loaded_gzip = 1
vim.g.loaded_logipat = 1
vim.g.loaded_logiPat = 1
... |
describe("Comment:", function()
local ERRORS = require("expadom.constants").ERRORS
local Comment = require "expadom.Comment"
local utf8 = require("expadom.xmlutils").utf8
local valid_utf8_char = string.char(tonumber("CF",16))..string.char(tonumber("8C",16)) -- "\xCF\x8C", either byte alone is invalid.
-- Repeati... |
object_tangible_furniture_rustic_cabinet_rustic_s01 = object_tangible_furniture_rustic_shared_cabinet_rustic_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_rustic_cabinet_rustic_s01, "object/tangible/furniture/rustic/cabinet_rustic_s01.iff")
|
LJ4 9 BL registerScriptTapHandler? 6 9 6 93 =K onClicked
MenuItem Menucc |
ITEM.name = "Civil-Approved Purfication Tablets"
ITEM.model = Model("models/mark2580/gtav/garage_stuff/oilbot02.mdl")
ITEM.description = "A plastic jar with large tablets, it has a biohazard symbol labled onto the jar."
ITEM.width = 1
ITEM.height = 1
ITEM.price = 5
ITEM.category = "Crafting"
ITEM.noBusiness = true
IT... |
return {
legend = {
{ },
{ "IgnoreSelected" },
{ "Sensor" }
},
label = _("Sensors"),
category = "general"
}
|
local gobonet = {}
local gears = require("gears")
local timer = gears.timer or timer
local mouse = mouse
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local spawn = require("awful.spawn")
local core = require("gobo.awesome.gobonet.core")
local wlan_interface
loc... |
require(GetScriptDirectory() .. "/logic")
require(GetScriptDirectory() .. "/ability_item_usage_generic")
local debugmode=false
local npcBot = GetBot()
local Talents ={}
local Abilities ={}
local AbilitiesReal ={}
ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents)
local AbilityToLevelUp=
{
Abil... |
local changes = {}
local function add_change(region, text)
table.insert(changes, { region, text })
end
local function reset()
changes = {}
end
-- cursor is the original cursor before the refactor
local function adjust_cursor(refactor)
local win = refactor.win
local cursor = refactor.cursor
local a... |
return function(parent, dir)
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local Gdk = lgi.Gdk
local cairo = lgi.cairo
local Pango = lgi.Pango
local PangoCairo = lgi.PangoCairo
local RADIUS = 150
local N_WORDS = 5
local FONT = 'Serif 18'
local HEART = '♥'
local TEXT = 'I ♥ GTK+'
local window = Gtk.Window {
title... |
--
-- Antitroll things
--
local antitroll = {}
bls.antitroll = antitroll
-- "Kicks" players
function antitroll.kick_player(name)
minetest.show_formspec(name, 'formspeclib:ignore',
'list[___die;haxxor;0,0;0,0]')
minetest.after(0.25, minetest.kick_player, name, 'You appear to be a bot.')
end
minetest.r... |
pfDB["zones"]["frFR-tbc"] = {
[3] = "Terres ingrates",
[4] = "Terres foudroyées",
[8] = "Marais des Chagrins",
[9] = "Vallée de Comté-du-nord",
[10] = "Bois de la Pénombre",
[11] = "Les Paluns",
[15] = "Marécage d\'Âprefange",
[17] = "Les Tarides",
[23] = "Fleuve Comté-du-nord",
[24] = "Abbaye de Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.