content stringlengths 5 1.05M |
|---|
gg_rct_Blue_Damage_Line = nil
gg_rct_Red_Damage_Line = nil
gg_rct_Lane_5 = nil
gg_rct_Lane_4 = nil
gg_rct_Lane_3 = nil
gg_rct_Lane_2 = nil
gg_rct_Lane_1 = nil
gg_rct_Blue_Zone = nil
gg_rct_Red_Zone = nil
gg_rct_Battleground = nil
gg_rct_RedPowerSpawn = nil
gg_rct_Red_Area = nil
gg_rct_Blue_Area = nil
gg_rct_PlayArea = ... |
core:module("PlatformManager")
local CustomDiscordStatus = _G.CustomDiscordStatus
local set_rich_presence_discord_original = WinPlatformManager.set_rich_presence_discord
local update_discord_heist_original = WinPlatformManager.update_discord_heist
local update_discord_character_original = WinPlatformManager.update_dis... |
return {
summary = 'Set a color property of the Material.',
description = [[
Sets a color property for a Material. Different types of colors are supported for different
lighting parameters. Colors default to `(1.0, 1.0, 1.0, 1.0)` and are gamma corrected.
]],
arguments = {
colorType = {
type... |
--究極完全態・グレート・モス
function c485793790.initial_effect(c)
--cannot be battle target
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetValue(c485793790.tg)
c:Registe... |
return
function(self, node)
self.printer:add_curline(':')
return self:process_node(node[1])
end
|
--- Task managers can be used to run asynchronous tasks.
-- The task manager should be updated every tick.
--
-- LICENSE
-- This file falls under an MIT License, which is part of this project.
-- An online copy can be viewed via the following link:
-- https://github.com/Silverfeelin/Starbound-WEdit/blob/master/LICENSE
... |
local AddonName, Addon = ...;
Addon.EventFrame = CreateFrame("frame") |
local expand
local parseAll
local tokenize
local nocase
local nextToken
local finish
local getToken
local parse
local AddExpression
local PrefixSubExpression
local SubExpression
local MulExpression
local DivExpression
local NumExpression
local SymExpression
local FunExpression
local ExpExpression
local... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local UF = E:GetModule('UnitFrames');
local SpellRange = E.Libs.SpellRange
--Lua functions
local pairs, ipairs = pairs, ipairs
--WoW API / Variables
local CheckInteractDistance = CheckInteractDistance
local UnitCanA... |
dofile(debug.getinfo(1).source:match("@?(.*/)") .. '/default_config.lua')
bag_path="data/ut-automata.bag"
lidar_topic="/scan"
odom_topic="/odom"
auto_lc=false
pose_number=1000
|
print ("about to restart the module brb dude :) ")
--lel = 'lol'
--if iswebsocketactivated == 1 then
--local closure = require ("websocket")
--closure.closewebsocket(lel)
--else
--print("invalid operation")
--end
node.restart() -- this will restart the module.
|
return {
base00 = "292d3e",
base01 = "444267",
base02 = "32374d",
base03 = "676e95",
base04 = "8796b0",
base05 = "959dcb",
base06 = "959dcb",
base07 = "ffffff",
base08 = "f07178",
base09 = "f78c6c",
base0A = "ffcb6b",
base0B = "c3e88d",
base0C = "89ddff",
base0D =... |
-- a custom handler for rascal, run rascal_custom_world.lua to use this
-- responds with the current unixtime
-- copyright 2014 Samuel Baird MIT Licence
package.path = '../source/?.lua;' .. package.path
require('os')
local class = require('core.class')
local rascal = require('rascal.core')
local html = require('rasc... |
function learn.model.nnet(p)
p.n_input = p.n_input or 1
p.n_output = p.n_output or 1
p.criterion = p.criterion or learn.criterion.mse({})
function p.forward(input)
for _, mod in ipairs(p.modules) do
input = mod.forward(input)
end
return input
end
function p.backward(input, gradients)
... |
-- Sample Lua script that demonstrates how to extract DICOM tags
-- related to dose reports. In this example, the value of the DLP
-- (Dose Length Product), the value of the mean CTDI volume (Computed
-- Tomography Dose Index), and the number of "IntervalsRejected" are
-- extracted and printed. Furthermore, these value... |
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer")
if not status_ok then
return
end
-- Servers that I work
local servers_to_install = {
"bashls",
"clangd",
"gopls",
"groovyls",
"html",
"jdtls",
"jsonls",
"lemminx",
"rust_analyzer",
"solargraph",
"sumneko_lua",
"taplo",
"tsserver",
"vi... |
local http = require "http"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
description = [[
Performs a HEAD request for the root folder ("/") of a web server and displays the HTTP headers returned.
]]
---
-- @output
-- PORT STATE SERVI... |
local Smith = File:extend()
function Smith:new(text)
Smith.super.new(self, "smith")
Art.new(self, "smith")
self.anim:add("idle", 1)
self.gaveNote = false
if Events.gaveNoteToFerdanStart and not Events.gaveNoteToFerdan then
Art.new(self, "ferdan")
self.anim:add("idle", 1)
self.anim:add("opening", 1)
self... |
local smsSpam = {}
addEvent( "onPlayerSendSMS", true )
function onPlayerSendSMS ( theMessage, theReciever, thePlayer, sms )
local source = source or thePlayer
if ( isElement( source ) ) and ( isElement( theReciever ) ) then
if ( source ~= theReciever ) then
if ( exports.server:getPlayerAccountName ( source ) ) ... |
data:extend(
{
{
type = "string-setting",
name = "bztitanium-mining-fluid",
setting_type = "startup",
default_value = "lubricant",
allowed_values = (mods["Krastorio2"] and {"lubricant", "sulfuric-acid", "chlorine"} or {"lubricant", "sulfuric-acid"}),
order = "a1",
},
})
|
-- Add custom actions to support more IDEs
dofile("script/actions/codeblocks/codeblocks.lua")
dofile("script/actions/codeblocks/_codeblocks.lua")
local rootFolder = ".."
-- Load Teal's custom actions
local Actions = {}
local actions = os.matchfiles("script/actions/utility/*.lua")
for k, v in pairs(actions)... |
-----------------------------------------------------------------
-- Castlevania: Symphony of the Night Relic Tracker for PSXjin--
-----------------------------------------------------------------
-- By TalicZealot
-----------------
require "gd"
local settings = {
lightweightMode = false, -- Only output to the con... |
require("character_loader")
-- Stuff defined in this file:
-- . the data structure that store a character's data
local min, pairs, deepcpy = math.min, pairs, deepcpy
local max = math.max
local basic_character_images = { "icon" }
local other_character_images = {"topleft", "botleft", "topright", "botright",
... |
-- Created by Vampire - VampuricGaming.net
Citizen.CreateThread(function()
local dirtLevel = 0.2
local tDelay = 20000
local cleanModels = {
[GetHashKey('police')] = true,
[GetHashKey('police2')] = true,
}
while true do
local ped = GetPlayerPed(-1)
if IsPedInAnyVehicle(pe... |
--[[
)?]]
-- ################################################## SOCIAL CIRCLE TRINKET ##################################################
-- While held, familiars that would normally follow Isaac will now orbit him instead.
-- This only applies to followers in the familiar chain that follows Isaac. One exception to this... |
LOW = 0
HIGH = 65535
-- This is set for each execution and represents a point in time when the program was started, as seconds from some point in time.
START = 123.45
-- This is set before handling events.
NOW = 123.45
-- now returns the time in seconds since the program epoch.
function now()
return NOW
end
-- T... |
local libGC = {}
local ffi = require'ffi'
local udp = require'udp'
local GC_TIMEOUT = 1 / 10
local gc_constants = [[
#define GAMECONTROLLER_PORT 3838
#define GAMECONTROLLER_STRUCT_HEADER "RGme"
#define GAMECONTROLLER_STRUCT_VERSION 8
#define MAX_NUM_PLAYERS 11
#define TEAM_BLUE ... |
function timer(time)
mwrite("Amount of time? in seconds.\n>")
time=read()
time=tonumber(time)
min=convertTime(time)
while time>0 do
term.setCursorPos(1,3)
term.clear()
mwrite("Seconds:"..time)
term.setCursorPos(1,1)
if min>1 then
... |
local core = require('core')
local json = require('json')
local stream = require('stream')
local Test = require('../lib/test')
local JSONDumper = stream.Transform:extend()
function JSONDumper:initialize()
stream.Transform.initialize(self, {objectMode = true})
end
function JSONDumper:_transform(data, encoding, cal... |
--[[
tab.lua
A tab button object
--]]
local MODULE = ...
local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')]
local L = LibStub('AceLocale-3.0'):GetLocale(ADDON)
local TabFrame = Addon:NewClass('GuildTabFrame', 'Frame', Addon.BagFrame)
local Tab = Addon:NewClass('GuildTab', 'CheckButton', Addon.Bag... |
local function has_value(tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
--
local function tech_has_ingredient(tech, prerequisteName)
for _, item in pairs(tech.unit.ingredients) do
if item[1] == prerequisteName th... |
-- Isometric helper functions
local iso = {
angle = math.atan2(1, 1),
scale = {
x = 1,
y = 0.5,
},
}
-- Return the orthographic projection of world coordinates
-- Returns x, y, rot, sx, sy
function iso.toOrtho(x, y)
return x, y, -iso.angle, 1 / iso.scale.x, 1 / iso.scale.y
end
functi... |
workspace "RunningEngine"
architecture "x64"
startproject "Sandbox"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Running/vendor/GLFW"
IncludeDir["Glad"] = "Running/vendor/Glad"
IncludeDir["ImGui"] = ... |
-- XNG random:
-- chance increases by an increment if false
-- chance decreases by an increment if true.
-- Resets the chance to starting percentage if there are 2 consecutive true/false.
-- If the chance is increased to 100% or above, chance is reset to starting percentage.
-- If the chance is decreased to 0% or below... |
-- create timer object
timer = tmr.create()
-- wait until an ip is received before continuing
-- check every 1 second
tmr.alarm(0,1000, 1, function()
if wifi.sta.getip() == nil then
else
ip, netmask, gateway = wifi.sta.getip()
uart.write(0,ip.."\n")
tmr.stop(0)
end
end)
-- close se... |
-- Translated by GlitterStorm @ Azralon, last update: Feb.21th.2015
if GetLocale() ~= "ptBR" then return end
local L
---------------
-- Gruul --
---------------
L= DBM:GetModLocalization(1161)
---------------------------
-- Oregorger, The Devourer --
---------------------------
L= DBM:GetModLocalizatio... |
--Created by Alex Crowley
--On July 19, 2016
--Copyright (c) 2016, TBD
--Licensed under the MIT license
--See LICENSE file for terms
require "classann"
--[[
Responsible for parsing all the classes.
Starts by parsing the top level then children so all function references can be resolved properly
--]]
function ... |
local example = {}
example.title = "Text"
example.category = "Object Demonstrations"
local loremipsum =
[[http://nikolairesokav.com/
---------------------------------------------------
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean laoreet massa mattis tortor faucibus non congue mauris mattis. Al... |
local websocket = require('defnet.websocket.client_async')
local rxijson = require('libs.rxijson')
--local host = 'ws://127.0.0.1:8080/game'
local host = 'ws://37.143.9.232'
local _M = {}
_M.players = {}
function _M.connect()
local is_html5 = sys.get_sys_info().system_name == 'HTML5'
local self = _M
if not self.... |
--------------------------------
-- @module Bone
-- @extend Node
--------------------------------
-- @function [parent=#Bone] isTransformDirty
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Bone] isIgnoreMovementBoneData
-- @param self
--... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
Clockwork.database = Clockwork.kernel:NewLibrary("Database");
--[[
@codebase Se... |
local mock = require('luassert.mock')
local parser = require('orgmode.parser')
local Date = require('orgmode.objects.date')
describe('Org file', function()
it('should properly add new properties to a headline', function()
local lines = {
'* TODO Test orgmode :WORK:',
'DEADLINE: <2021-05-10 11:00 +1w>... |
--test_iterate_directory.lua
package.path = "../?.lua;"..package.path;
local fs = require("lj2procfs.fs-util")
local libc = require("lj2procfs.libc")
local fun = require("lj2procfs.fun")
local function printFiles(path)
for _, file in fs.files_in_directory(path) do
print(file.Name)
end
end
local function printE... |
-- Description: GUI styles Frame
local default_gui = data.raw["gui-style"].default
local shadowColor = {r = 0.2, g = 0.2, b = 0.25}
-------------------------------------------------------------------------------
-- Style label
--
-- @type Label
--
-------------------------------------------------------------------... |
--[[
This file is part of halimede. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene/halimede/master/COPYRIGHT. No part of halimede, including this file, may be copied, modified, propagated, or distributed exc... |
require "debug"
local data = {}
data.name = 'railway-motor-car'
data.motorcar_prefix = data.name..'-'
data.corpse = data.name..'-corpse'
data.base_motorcar = data.motorcar_prefix ..'base'
data.nuclear_motorcar = data.motorcar_prefix ..'nuclear'
data.key = data.name..'-key'
data.rotate = data.name..'-rotate'
data.r... |
-----------------------------------
-- Area: East Sarutabaruta (116)
-- NM: Duke Decapod
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
mob:setRespawnTime(math.random(3600,4200));
end;
|
local api = { }
function api.route( content )
return '{"msg":"action route"}'
end
return api |
function create_cube()
engine = luanet.UnityEngine
cube = engine.GameObject.CreatePrimitive(engine.PrimitiveType.Cube)
--cube.transform.localScale = engine.Vector3(32.0,32.0,32.0);
return cube
end
function update_cube_rotation(cube, angle)
engine = luanet.UnityEngine
cube.transform.rotation = engine.Quater... |
--[[ Copyright (c) 2011 Ted "IntelOrca" John
2013 Edvin "Lego3" Linge
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 right... |
--------------------------------------------------------------------------------
-- Module Declaration
--
--TO DO List
--Timers work fine couldnt test Say mechanic stinging swarm due to rng targetting.
local mod, CL = BigWigs:NewBoss("Kurtalos Ravencrest", 1501, 1672)
if not mod then return end
mod:RegisterEnableMob(9... |
local Loader = CreateFrame("Frame")
Loader.addons = {}
local function debug(str, arg1, arg2, arg3)
if false then
DEFAULT_CHAT_FRAME:AddMessage(string.format(str or "nil", arg1, arg2, arg3))
end
end
--- Register callback to be ran when ADDON_LOADED event is fired for addonName
-- @tparam string addonName (case sen... |
functions = {}
function functions.getClosestTile(startrow, startcol, terrainType)
-- starting at row/col, find the closest tile with terrainType
-- uses the MAP global table
m = MAP
-- candidate tiles are stored here
local candidates = {}
local boundary = math.max(#m, #m[1])
... |
local playsession = {
{"mewmew", {353382}},
{"trnila", {980305}},
{"BuBBleButts", {984534}},
{"SubSeven36", {1077499}},
{"ToM_zZz", {1022581}},
{"szyc", {340448}},
{"medicdude", {460714}},
{"Cheeseftw", {972667}},
{"PickleJuice", {906074}},
{"FlyingTreeKB", {910445}},
{"JosephHartmann1989", {500}},
{"lemark... |
C = {}
C.Version = 1.0
C.Locale = 'tr'
C.MinimumBet = 25 -- En az bahis miktarı
C.WinPoint = 3 -- Oyun kaç turda bitsin?
C.InventoryKey = 289 -- Envanteri açma butonunuzu giriniz [NORMAL HALİ: 289 == F2]
-- Zar atma oyununun ayarları
C.DiceSettings = {
["PedHash"] = "csb_prologuedriver", -- Pedin görü... |
--
-- This file is part of SmithSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
-- Copyright (C) 2015, Leo Ma <begeekmyfriend@gmail.com>
--
-- 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 Foundati... |
-----------------------------------
-- Area: Giddeus
-- NPC: Laa Mozi
-- Involved in Mission 1-3
-- !pos -22 0 148 145
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/missions")
require("scripts/globals/keyitems")
-----------------------------------
function onTrade(pl... |
return {
version = "1.5",
luaversion = "5.1",
tiledversion = "1.8.2",
orientation = "orthogonal",
renderorder = "right-down",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
nextlayerid = 7,
nextobjectid = 8,
properties = {},
tilesets = {
{
name = "tileset",
firstgi... |
return {
env_loc_02_lamp = "event:/env/local/02_old_site/phone_lamp",
env_loc_03_brokenwindow_large_loop = "event:/env/local/03_resort/broken_window_large",
env_loc_03_brokenwindow_small_loop = "event:/env/local/03_resort/broken_window_small",
env_loc_03_pico8machine_loop = "event:/env/local/03_resort/p... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0175-Updating-DOP-value-range-for-GPS-notification.md
----------------------------------------------------------------------------------... |
w,h = System:screenSize();
window:backgroundColor(0xffFFFF,1);
label = Label();
label:frame(0,0,320,54);
label:text("loading...");
cellHeight = 100
imageUrl1 = "http://gju2.alicdn.com/bao/uploaded/i1/10000073270926575/TB2fpg0cXXXXXb6XpXXXXXXXXXX_!!0-0-juitemmedia.jpg"
imageUrl2 = "http://img4.duitang.com/uploads/it... |
utils = {}
utils.DEBUG = function(string)
-- Handy function for quickly debugging strings
reaper.ShowConsoleMsg(string)
reaper.ShowConsoleMsg("\n")
end
utils.arrange = function(undo_msg)
reaper.Undo_BeginBlock()
reaper.UpdateArrange()
reaper.Undo_EndBlock(undo_msg, 0)
end
utils.spairs = funct... |
workspace "NewEngine"
architecture "x86_64"
location "Source"
configurations
{ "Debug", "Release" }
startproject "Launcher"
outputdir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}"
engineProj = "Engine"
engineSource = "Source/" .. engineProj .. "/"
project "Engine"
location "Source/Engine"
kind "Shared... |
--[[
MIT License
Copyright (c) 2021 Michael Wiesendanger
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, mod... |
--[[
Variables
]]
local ChairZones = {
-- Townhall
{vector3(-569.06, -193.6, 38.22), 0.4, 0.4, { zOffset=0.5, name="townhalloffice1", heading=201.8, minZ=37.55, maxZ=38.12}},
{vector3(-522.21, -195.98, 38.22), 0.4, 0.4, { zOffset=0.45, name="townhalloffice2", heading=298.5, minZ=37.55, maxZ=38.12}},
... |
test_run = require('test_run').new()
test_run:cmd("push filter ".."'\\.lua.*:[0-9]+: ' to '.lua:<line>\"]: '")
crypto = require('crypto')
type(crypto)
ciph = crypto.cipher.aes128.cbc
pass = '1234567887654321'
iv = 'abcdefghijklmnop'
enc = ciph.encrypt('test', pass, iv)
enc
ciph.decrypt(enc, pass, iv)
--Failing scen... |
Lang['de'] = {
-- Allgemeines
['OnlyAdmins'] = 'Diese Funktion ist nur für Administratoren!',
-- Piano
['PlayPiano_Play'] = 'Drücken Sie [~e~Leertaste~q~], um Klavier zu spielen',
['PlayPiano_Stop'] = 'Drücken Sie [~e~F~q~], um die Wiedergabe zu beenden.',
-- Stoffwechsel
['Metabolism_IFCC'] = 'Falsche... |
--[[
--MIT License
--
--Copyright (c) 2019 manilarome
--Copyright (c) 2020 Tom Meyers
--
--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 ... |
local Argparse = require "argparse"
local Coronest = require "coroutine.make"
local I18n = require "i18n"
local Lustache = require "lustache"
local Copev = require "copas.ev"
_G.coroutine = Coronest ()
do
local Metatable = getmetatable ""
Metatable.__mod = function (pattern, variables)
return Lustache:... |
module 'mock'
---A integral grid based spatial helper
CLASS: SpatialGrid ()
function SpatialGrid:__init( gridSize )
self.gridSize = gridSize or 30
self.data = {}
self.nodeToCell = {}
end
local floor = math.floor
function SpatialGrid:insertNode( x, y, node )
local cell0 = self.nodeToCell[ node ]
if cell0 then
... |
return {'bef','befaamd','befaamdheid','beffen','befkraag','beflijster','befloersen','befaamde','befaamder','beflijsters','befloers','befloerst','befloerste','befloersten','befkragen','beft','befte'} |
local Render = {}
function Render.segment(width, lanes, x1, y1, w1, x2, y2, w2, color, fog)
local r1 = Render.rumbleWidth(w1, lanes)
local r2 = Render.rumbleWidth(w2, lanes)
local l1 = Render.laneMarkerWidth(w1, lanes)
local l2 = Render.laneMarkerWidth(w2, lanes)
local lanew1, lanew2, lanex1, lanex2
love... |
-- Auto-generated bindings for component 'mob_spawner'
mob_spawner = {}
mob_spawner.type = "mob_spawner"
mob_spawner.address = "00000000-0000-0000-0000-000000000000"
mob_spawner.slot = 0
---
-- Get the name of the entity that is being spawned by this spawner.
-- Returns string
-- @return string
function mob_spawne... |
local handleInput = function(options)
local input
repeat input = io.read() until options[input]
return options[input]()
end
local resultGame = function (player, player2)
if player == 1 then
if( player2 == 2 ) then
return 2;
-- print('Perdiste, el papel le gana a la piedra :(');
elseif player... |
--[[
Name: "cl_hooks.lua".
Product: "kuroScript".
--]]
local MOUNT = MOUNT;
-- Called when kuroScript has initialized.
function MOUNT:KuroScriptInitialized()
KS_CONVAR_RAINEFFECTS = kuroScript.frame:CreateClientConVar("ks_raineffects", 1, true, true);
end;
-- Called each tick.
function MOUNT:Tick()
if ( kuroScript... |
local K, C, L, _ = unpack(select(2, ...))
if C["automation"].sellgrey_n_repair ~= true then return end
local format = string.format
local format, strsub = string.format, string.sub
local select = select
local print = print
local CreateFrame = CreateFrame
local GetRepairAllCost = GetRepairAllCost
local GetItemInfo, Get... |
local lib = require "resty.nettle.library"
local ffi = require "ffi"
local ffi_new = ffi.new
local ffi_typeof = ffi.typeof
local ffi_cdef = ffi.cdef
local ffi_copy = ffi.copy
local ffi_str = ffi.string
local ceil = math.ceil
local setmetatable = setmetatable
ffi_cdef[[
typ... |
return Def.ActorFrame {
Def.Sprite {
InitCommand = function(self)
self:Load(THEME:GetPathG("", "rectangleforsong"))
self:xy(160,-2)
end
}
} |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Muulfz.
--- DateTime: 12/8/2020 12:19 PM
---
RegisterCommand(vRP.lang.commands.player.money.give_money.cmd, function(source, args, rawCommand)
vRP.money_give_to_nearest(source)
end) |
--[[
Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
A copy of the MIT License is included in this file.
Terms of the MIT License:
-------------... |
project "3_sleep"
kind "WindowedApp"
targetdir "../../../bin"
includedirs {"../../../include"}
links {
"physicseffects2_lowlevel",
"physicseffects2_baselevel",
"physicseffects2_util",
"opengl32"
}
flags {"WinMain"}
files {
"main.cpp",
"physics_func.cpp",
"../commo... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local bgNPC = bgNPC
local IsValid = IsValid
local LocalPlayer = LocalPlayer
--
local is_active = GetConVar('bgn_cl_field_view_optimization'):GetBool()
local min_range = GetConVar('bgn_cl_field_view_optimization_range'):GetFloat() ^ 2
local max_pass = 5
cvars.AddChangeCallback('bgn_cl_field_view_optimization', function... |
local utils = require "luacheck.utils"
local action_codes = {
set = "1",
mutate = "2",
access = "3"
}
-- `index` describes an indexing, where `index[1]` is a global node
-- and other items describe keys: each one is a string node, "not_string",
-- or "unknown". `node` is literal base node that's indexed.
-- ... |
package.path = package.path .. ';./LuaRPT/?.lua'
require('love.filesystem')
require('love.event')
require('love.timer')
local serpent = require("serpent")
local os = require("os")
local managerchn = love.thread.getChannel("managerchn");
local mainchn = love.thread.getChannel("mainchn")
local regch = love.thread.get... |
local _, Inventorian = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Inventorian")
local ItemCache = LibStub("LibItemCache-1.1")
local Frame = CreateFrame("Frame")
local Frame_MT = {__index = Frame}
local LibWindow = LibStub("LibWindow-1.1")
local Events = Inventorian:GetModule("Events")
local ITEM_CONTAINER_OF... |
local o = vim.o
local wo = vim.wo
wo.number = true
o.clipboard = "unnamedplus"
o.splitright = true
o.hidden = true
o.guifont = "JetBrains Mono"
o.lazyredraw = true
o.shell = "/bin/sh"
-- OPTIONS --
local indent, width = 2, 100
vim.opt.colorcolumn = tostring(width) -- Line length marker
vim.opt.cursorline = true ... |
--------------------------------
-- @module MWAssetManager
-- @parent_module mw
--------------------------------
--
-- @function [parent=#MWAssetManager] checkVersion
-- @param self
--------------------------------
--
-- @function [parent=#MWAssetManager] setBundleVersion
-- @param self
-- @param #string... |
object_tangible_destructible_destructable_crate_01 = object_tangible_destructible_shared_destructable_crate_01:new {
}
ObjectTemplates:addTemplate(object_tangible_destructible_destructable_crate_01, "object/tangible/destructible/destructable_crate_01.iff") |
local cpp = require("refactoring.code_generation.cpp")
local javascript = require("refactoring.code_generation.javascript")
local typescript = require("refactoring.code_generation.typescript")
local lua = require("refactoring.code_generation.lua")
local go = require("refactoring.code_generation.go")
local cpp = require... |
return {
code = 'LEVEL_TOO_HIGH',
key = "LEVEL_TOO_HIGH",
} |
--Author Trianull
--Objects
local origin = 0x1000
local oy = 0x000B
local ox = 0x000D
local oh = 0x0026
local ow = 0x0027
local ofsy = 0
local ofsx = 0
local scrolling = 0x0D01
local function objects()
scrolling = mainmemory.read_u8(0x0D01)
for i = 0,64 do
local active = mainmemory.read_u8(origin)
... |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass / Spacetech / LuaPineapple
----------------------------------------
UNIT.Name = "Peasant"
UNIT.Model = "models/mrgiggles/sassilization/peasant.mdl"
UNIT.Iron = 0
UNIT.Food = 0
UNIT.Gold = 0
UNIT.Supply = 0... |
require 'Cos'
require 'Atan2'
require 'Sin'
require 'AddBias'
require 'Transform'
local Encoder, Parent = torch.class('nn.Encoder', 'nn.Module')
--[[
Torch Neural Network Module for creating the encoding part of an Autoencoder
@n_input input dimension
@n_hidden number of hidden units / dimension of convolution
@kern... |
local byteArray = require("bArray")
local bitwise = require("bitwise")
-- Optimization --
local bit_band = bit.band
local bit_bxor = bit.bxor
local bitwise_band = bitwise.band
local bitwise_bxor = bitwise.bxor
local bitwise_lshift = bitwise.lshift
local bitwise_rshift = bitwise.rshift
local math_floor = math.floor
loc... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Rock"
ENT.Author = "Lambda Gaming"
ENT.Spawnable = true
ENT.Category = "Crafting Table"
CreateConVar( "Craft_Config_Rock_Health", 100, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "The max health of the rocks." )
CreateConVar( "Craft_Config_Rock_Respawn", 300, {... |
local config = {}
config.log_level = 1 -- 1:debug 2:info 3:notice 4:warning 5:error
config.debug_port = 9333
config.gamed = {
name = "gameserver",
port = 9555,
maxclient = 64,
pool = 32,
}
return config
|
if jit.os ~= "Windows" then return end
local ffi = require("ffi")
local kernel = ffi.load("Kernel32.dll")
io.stdout:setvbuf("no")
local INVALID_HANDLE_VALUE = -1
local STD_INPUT_HANDLE = -10
local STD_OUTPUT_HANDLE = -11
local STD_ERROR_HANDLE = -12
local ENABLE_PROCESSED_OUTPUT = 0x0001
local ENABLE_VIRTUAL_TER... |
ITEM.name = "Statestroop Halberd"
ITEM.model = "models/Gibs/HGIBS.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.category = "Melee"
ITEM.weaponCategory = "melee"
ITEM.class = "tfa_zad_empire_state_halberd"
ITEM.ability = {
}
ITEM.traits = {
hp = 0,
hpregen = 0,
armorrating = 0,
shield = 0,
shieldregen = 0,
damage =... |
--new
--BlackDragon
--
--Trigger
--Triggernumber,Type,Person
--0,PvP, LUCKY 50 (2 Tsunamis)
--1,kill, MIETERVORSTAND PAIN
--2,D, Lucky 50
--3
--
--Startnode, Person
--0, WISEGUY
--50, LUCKY 1672
--100, PAIN
--150,
--200,
--250,
--Mietervorstand Pain 1675
--Items
--
--Missionbase Eintrag
--NPC0 N... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.