content stringlengths 5 1.05M |
|---|
local class = require "lib.middleclass"
local tiny = require "lib.tiny"
local config = require "src.config"
local Tracker = require "src.debug.tracker"
local DebugTrackerSystem = tiny.system(class("DebugTrackerSystem"))
DebugTrackerSystem.isPostDrawSystem = true
function DebugTrackerSystem:update()
if not config... |
tArgs={...}
tHistory={}
nHistory=0
tFiles={}
sPath=tArgs[1] or "Apps/"
nScroll=0
oldScroll=0
sFile=nil
x=0
y=0
tMenu={" Rename "," Delete "," Open "," Edit "}
function drawBrowser(sPath,bMode,selected)
if fs.exists(sPath) and fs.isDir(sPath) then
tFiles=fs.list(sPath)
if #tFiles==0 then tFiles[1]="Folder is... |
--- @module Image
local Buffer = require("public.buffer")
local File = require("public.file")
local Table = require("public.table")
local T = Table.T
local validExtensions = {
png = true,
jpg = true,
}
local Image = {}
local loadedImages = T{}
--- Attempts to load the specified image, reusing previously-loaded... |
--[[
File name: level.lua
Description: calculate xp to level up, and other stuff
Author: oldmilk
--]]
local module = {}
local gui = require(game.ReplicatedStorage:WaitForChild("modules").client.gui)
-- xpToLevelUp: compute how much exp the player needs to level up
module.xpToLevelUp = function(currentLevel... |
package("mono")
set_homepage("https://www.mono-project.com/")
set_description("Cross platform, open source .NET development framework")
set_urls("https://download.mono-project.com/sources/mono/mono-$(version).tar.xz",
{version = function (version) return version:gsub("%+", ".") end})
add... |
local helper = require("optpack.lib.testlib.helper")
local optpack = helper.require("optpack")
describe("optpack.update()", function()
local git_server
lazy_setup(function()
git_server = helper.git_server()
git_server:create_repository("account1/test1", { "commit1", "commit2" })
git_server:create_repo... |
dofile("bignat.lua")
--#pragma region utility
local function expect(num, bytes)
local nl = num.length
assert(num.at(nl + 1) == nil)
for i = 1, nl, 1 do
local p = num.at(i)
assert(p ~= nil)
assert(p >= 0)
assert(p < 256)
end
local expected_len = #bytes
assert(nl == expected_len)
for idx = 1, expected_... |
require 'torch'
fg = {}
require('factorgraph/src/Node')
require('factorgraph/src/Variable')
require('factorgraph/src/Factor')
require('factorgraph/src/FactorGraph')
return fg
|
local config = {
{from = 1, to = 1644, itemId = 18394},
{from = 1645, to = 3189, itemId = 2158},
{from = 3190, to = 4725, itemId = 18391},
{from = 4726, to = 6225, itemId = 18414, count = 5},
{from = 6226, to = 7672, itemId = 18418, count = 10},
{from = 7673, to = 9083, itemId = 18413, count = 10},
{from = 9084,... |
local skynet = require "skynet"
local log = require "chestnut.skynet.log"
local service = require("service")
local loader = require("sdataloader")
local CMD = {}
-- function CMD.start( ... )
-- -- body
-- -- ๆดๆฐๆฐๆฎ
-- local config = AppConfig.new()
-- if config:LoadFile() then
-- for k,v in pairs(config.config) d... |
local InventoryFunctions = require "util/inventoryfunctions"
local function OnHungerDirty(inst)
if inst._parent ~= nil and inst.currenthunger:value() == 0 then
local item = ThePlayer.components.actioncontroller:GetItemFromCategory("FOOD")
if item then
InventoryFunctions:UseItemFromInvT... |
local FileSystemItem = require("FileSystemItem");
local FileSystem = {}
setmetatable(FileSystem, {
__call = function(self, ...)
return self:create(...);
end,
});
local FileSystem_mt = {
__index = FileSystem;
}
FileSystem.init = function(self, starting)
local obj = {
RootItem = FileSystemItem({Name = starting... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md
--
-- Description: Check that SDL provides appropriate display capabilities in `GetSystemCapability` response
-- ... |
local rc = require("rc")
local fs = require("filesystem")
local shell = require("shell")
local function loadConfig()
local env = {}
local result, reason = loadfile('/etc/rc.cfg', 't', env)
if result then
result, reason = xpcall(result, debug.traceback)
if result then
return env
end
end
retu... |
--===========================================================================--
-- --
-- System.Collections.Proxy --
-- --
... |
local test_env = require("spec.util.test_env")
local testing_paths = test_env.testing_paths
test_env.unload_luarocks()
test_env.setup_specs()
local dir = require("luarocks.dir")
describe("Luarocks dir test #unit", function()
local runner
setup(function()
runner = require("luacov.runner")
runner.... |
---@class CS.UnityEngine.AssetBundleCreateRequest : CS.UnityEngine.AsyncOperation
---@field public assetBundle CS.UnityEngine.AssetBundle
---@type CS.UnityEngine.AssetBundleCreateRequest
CS.UnityEngine.AssetBundleCreateRequest = { }
---@return CS.UnityEngine.AssetBundleCreateRequest
function CS.UnityEngine.AssetBundle... |
local util = require 'lspconfig.util'
local bin_name = 'clarity-lsp'
if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.cmd'
end
return {
default_config = {
cmd = { bin_name },
filetypes = { 'clar', 'clarity' },
root_dir = util.root_pattern '.git',
},
docs = {
description = [[
`clarity-l... |
local State = require('state')
local Type = require('type')
local dom = select(1, ...)
local Project = Type.declare('Project', State)
---
-- Instantiate a new project configuration helper.
--
-- @param state
-- The project configuration state.
-- @returns
-- A new project helper instance.
---
function Projec... |
EnemyStatusType = {}
EnemyStatusType.Null = "NULL"
EnemyStatusType.Alive = "ALIVE"
EnemyStatusType.Dead = "DEAD"
return EnemyStatusType
|
local kris = Cutscene.getCharacter("kris")
local susie = Cutscene.getCharacter("susie")
local ralsei = Cutscene.getCharacter("ralsei")
if ralsei then
Cutscene.text("* The power of [color:pink]test\ndialogue[color:reset] shines within\nyou.", "starwalker")
Cutscene.wait(0.5)
Cutscene.text("* Oh [color:re... |
if not modules then modules = { } end modules ['cldf-bas'] = {
version = 1.001,
comment = "companion to cldf-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- -- speedtest needed:... |
local random = math.random
local insert, remove, sort, concat = table.insert, table.remove, table.sort, table.concat
local gmatch, match, byte, char = string.gmatch, string.match, string.byte, string.char
local format, rep, find, sub = string.format, string.rep, string.find, string.sub
local min, max = math.min, math.m... |
local classes = {}
classes.collider = libs.class{
init = function(self, width, height, isTrigger)
self.isTrigger = isTrigger or false
self.width = width
self.height = height
end
}
classes.item = libs.class{
init = function(self, name, description, sprite)
self.name = name
... |
local Object = require "modules.classic"
local enemy = Object:extend()
function enemy:new(x, y, w, h)
self.x = x or math.random(0, 14) * 50
self.y = y or -100
self.w = w or 100
self.h = h or 200
self.speed = 40
self.health = 2
self.score = 1
end
function enemy:update(dt)
self.x = self.... |
#!lua
solution "rae_compiler"
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
project "raec"
kind "ConsoleApp"
language "C++"
targetdir "../bin" -- set to parent dir so that XCode will not bother with it's own build dirs.
files { "./src/*.hpp", "./src/*.cpp" }... |
---@type string
local Name = ...
---@type Addon
local Addon = select(2, ...)
local Comm, Item, Unit, Util = Addon.Comm, Addon.Item, Addon.Unit, Addon.Util
---@class Inspect : Module
local Self = Addon.Inspect
-- How long before refreshing cache entries (s)
Self.REFRESH = 1800
-- How long before checking for requeues
S... |
include = {
"$",
".+$",
} |
SCRIPT_TITLE = "RV Shift Notes & Params"
paramTypeNames = {
"pitchDelta", "vibratoEnv", "loudness", "tension", "breathiness", "voicing", "gender", "toneShift"
}
local inputForm = {
title = SV:T("Shift Notes & Params"),
message = SV:T("Workaround for the \"many notes with params shifting crash\"\nshi... |
love.window.setTitle "Volk";
love.graphics.setDefaultFilter("nearest","nearest")
love.graphics.setNewFont(40)
love.window.setFullscreen(false)
love.window.setMode(0,0,{resizable=false})
love.window.setMode(1920,1440,{resizable = false})
width, height = 320, 200 -- can change up to 640, 600 if feel like it
function ... |
--------------------------------------------------------------------------------
-- Access control and session management
--------------------------------------------------------------------------------
function onToggleConfigurationPanel(enabled)
if enabled then
openBootloaderWindow()
requestBootlo... |
--[[
Copyright (C) 2006-2007 Nymbia
Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@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 Foundation; either version 2 of the License, ... |
-- ใใชใผใซใกใฉ
local FreeCamera = Class('FreeCamera')
local move_distance = 5
-- ๅๆๅๅฆ็
function FreeCamera:init()
self.camera = Camera.new()
self.keys = KeyManager()
-- self.keys:register(
-- 'w',
-- function()
-- self.camera:move(0, -move_distance)
-- end,
-- true,... |
-- **csv(file : str) : table**
-- Iterator. Returns rows in a csv files. Converts
-- strings to numbers if appropriate.
local function csv(file, split,stream,tmp)
stream = file and io.input(file) or io.input()
tmp = io.read()
return function( t)
if tmp then
tmp = tmp:gsub("[\t\r ]*",... |
local F, C = unpack(select(2, ...))
local UNITFRAME, cfg = F:GetModule('Unitframe'), C.unitframe
function UNITFRAME:AddGCDSpark(self)
if not cfg.GCDSpark then return end
self.GCD = CreateFrame('Frame', self:GetName()..'_GCD', self)
self.GCD:SetWidth(self:GetWidth())
self.GCD:SetHeight(3)
self.GCD:SetFrameLeve... |
IN_FILE_PATH = "..\\..\\SavedVariables\\ArkadiusTradeToolsExports.lua"
dofile(IN_FILE_PATH)
local cli = require "cliargs"
cli:set_name('Arkadius Trade Tools Exports - Convert to CSV')
cli:flag('-l, --latest', 'Use the latest export', false)
cli:flag('-m, --members', 'Export only members', false)
cli:option('-d DIREC... |
ardour {
["type"] = "EditorAction",
name = "Loop range",
license = "MIT",
author = "David Healey",
description = [[Loop selected range]]
}
function factory ()
return function ()
local sel = Editor:get_selection() -- Get current selection
local rangeMarker = sel.markers:table()[1] -... |
function compass(n)
if ROUND.gameMode.hell and ROUND.accumulated then
ROUND.accumulated = nil
addBlockPoint(ROUND.chair[n].owner)
end
ROUND.chair[n].compass = ROUND.chair[n].compass or 0
ROUND.chair[n].compass = ROUND.chair[n].compass + 1
if ROUND.chair[n].compass < 3 then
showProgress(n)
passTurn()
bata... |
if not FAdmin or not FAdmin.StartHooks then return end
FAdmin.StartHooks["FrenchRP"] = function()
-- FrenchRP information:
FAdmin.ScoreBoard.Player:AddInformation("Money", function(ply) if LocalPlayer():IsAdmin() then return FrenchRP.formatMoney(ply:getFrenchRPVar("money")) end end)
FAdmin.ScoreBoard.Player... |
local config = {}
function config:new()
local o = {}
setmetatable(o, {__index = self})
return o
end
function config:global()
local c = {}
local os_name = vim.loop.os_uname().sysname
local home = os.getenv('HOME')
c.is_mac = os_name == 'Darwin'
c.is_linux = os_name == 'Linux'
c.is_w... |
function Battlepass:DonatorCompanion(ID, unit_name, js)
local hero = PlayerResource:GetPlayer(ID):GetAssignedHero()
if hero.companion then
hero.companion:ForceKill(false)
end
-- Disabled companion
if unit_name == "" then
hero.companion = nil
return
end
-- set mini doom as default companion if something ... |
version https://git-lfs.github.com/spec/v1
oid sha256:e2ada5f0db7572d88b5078ccac52fa8a197b3ee4a3210ade489c7b8fb11eb423
size 942
|
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
author 'Frankhยฎ#0856'
description 'Sistema di videosorveglia'
version '1.0'
client_scripts { 'client.lua' } |
local _, Addon = ...;
local MODEL_KEY = {};
local MODEL_INDEX_KEY = {};
local INDEX_KEY = {};
local ListItem = {};
--[[===========================================================================
| Clears all of the data for this list item, including clearing the
| anchors, and hiding the frame.
===================... |
--[[
strings.lua
Strings for ImprovedIgnore. Makes for easy editing and localization.
]]
-- Generic strings
STR_IIGNORE_ALLOW = "allow"
STR_IIGNORE_DENY = "deny"
STR_IIGNORE_REMOVE = "remove"
STR_IIGNORE_LOCALIZATION_WHISPERS = "whispers" -- localized version of "[Player] whispers:"
-- Generic function strings.
STR... |
module(..., package.seeall)
local PcapFilter = require("apps.packet_filter.pcap_filter").PcapFilter
local V4V6 = require("apps.lwaftr.V4V6").V4V6
local VhostUser = require("apps.vhost.vhost_user").VhostUser
local basic_apps = require("apps.basic.basic_apps")
local bt = require("apps.lwaftr.binding_table")
local config... |
#!/usr/bin/env lua
local M = require 'posix.sys.socket'
local dgram = arg[1] or 'test data'
-- Create an AF_UNIX datagram socket
local s, errmsg = M.socket(M.AF_UNIX, M.SOCK_DGRAM, 0)
assert(s ~= nil, errmsg)
-- Sendto the abtract AF_UNIX name 'mysocket'
local rc, errmsg = M.sendto(s, dgram, {family=M.AF_UNIX, pat... |
--[[
Copyright 2019 Teverse
@File core/client/characterController.lua
@Author(s) Jay
--]]
local controller = {}
controller.character = nil -- server creates this
engine.networking:bind( "characterSpawned", function()
repeat wait() until workspace[engine.networking.me.id]
controller.character = workspac... |
-- Implements an AutoEncoder based on LSTM with a text input and text output
require 'nn'
local utils = require 'misc.utils'
local LSTM_encoder = require 'misc.LSTM_encoder'
local LSTM_decoder = require 'misc.LSTM_decoder'
-------------------------------------------------------------------------------
-- AutoEncoder ... |
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- Plugin: barbar.nvim
-- Github: github.com/romgrk/barbar.nvim
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโ... |
local _tonumber = tonumber
local sessionId = KEYS[1]
local rawSsoCheckMessage = KEYS[2]
local rk = {
tickSessions = "tick|sessions",
roomName = "rooms|"..sessionId,
session = "sessions|"..sessionId,
sessionSubs = "sessions|"..sessionId.."|rooms"
}
local currentTim... |
object_static_worldbuilding_structures_mun_nboo_starport_destroyed = object_static_worldbuilding_structures_shared_mun_nboo_starport_destroyed:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_starport_destroyed, "object/static/worldbuilding/structures/mun_nboo_starport_destroyed.iff") |
return {
tlldtns = {
buildangle = 8192,
buildcostenergy = 200,
buildcostmetal = 15,
builder = false,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 4,
buildinggrounddecalsizey = 4,
buildinggrounddecaltype = "tlldtns_aoplane.dds",
buildpic = "tlldtns.dds",
buildtime = 450,
category... |
local layout_data = {
{
{0, 0, 1, 1},
},
{
{0.0, 0.0, 0.5, 1.0},
{0.5, 0.0, 0.5, 1.0},
},
{
{0.0, 0.0, 0.5, 1.0},
{0.5, 0.0, 0.5, 0.5},
{0.5, 0.5, 0.5, 0.5},
},
{
{0.0, 0.000, 0.5, 1.000},
{0.5, 0.000, 0.5, 0.333},
{0.5,... |
local infoview = require('lean.infoview')
local fixtures = require('tests.fixtures')
local helpers = require('tests.helpers')
helpers.setup {}
describe('infoview', function()
local function update_enabled(state, _)
local cursor_hold = string.find(vim.api.nvim_exec("autocmd CursorMoved <buffer>", true), "LeanInfo... |
object_building_kashyyyk_thm_kash_cave_myyydril_rope_support = object_building_kashyyyk_shared_thm_kash_cave_myyydril_rope_support:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_thm_kash_cave_myyydril_rope_support, "object/building/kashyyyk/thm_kash_cave_myyydril_rope_support.iff")
|
---Profiler API documentation
---Functions for getting profiling data in runtime.
---More detailed profiling <https://www.defold.com/manuals/profiling/> and debugging <http://www.defold.com/manuals/debugging/> information available in the manuals.
---@class profiler
profiler = {}
---pause on current frame
profiler.MODE... |
local term = require'toggleterm.terminal'.Terminal
local tig = term:new({cmd = 'tig', direction = 'float', hidden = true})
function TigToggle()
tig:toggle()
end
local wk = require("which-key")
wk.setup()
wk.register({
['<leader>'] = {
['<leader>'] = {
name = 'toggle',
z = { '<cmd>ZenMode<cr>', 'T... |
local Gradient = 1
local Gradient = 2
local Gradient = 3
--these thing is frantastic24 code thank you :'D i want to be friend :>>>>>>>>>>>>>>>>>>>]]]]] lol
function onCreate()
if flashingLights == true then
makeLuaSprite('gradient1','scott/grad1');
setProperty('gradient1.alpha', 0)
setObjectCa... |
enableAlerts( 1 )
local script =
"This is a test of a very long string."..
"The quick brown fox jumped over the lazy dog";
pushChat( script );
|
local InCombat = function() end
local OutCombat = function() end
XB.CR:Add(5, '[XB] Priest - Basic', InCombat, OutCombat) |
if SERVER then
resource.AddFile('materials/vgui/ttt/hud_icon_dancing.png')
end
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "ttt_basegrenade_proj"
ENT.Model = Model("models/weapons/w_eq_fraggrenade_thrown.mdl")
if (CLIENT) then
hook.Add('Initialize', 'ttt2_dance_grenade_status_init', function()
STATUS:RegisterSt... |
local M = {}
M.defaults = {
picker = "telescope",
default_remote = { "upstream", "origin" },
reaction_viewer_hint_icon = "๏",
user_icon = "๏ฝ ",
comment_icon = "๏กง ",
outdated_icon = "๏ ",
resolved_icon = "๏ ",
timeline_marker = "๏ ",
timeline_indent = "2",
right_bubble_delimiter = "๎ด",
left_bubble_... |
-- influxdb line protocol
-- original source: https://github.com/p0pr0ck5/lua-resty-influx/blob/master/lib/resty/influx/lineproto.lua
local str_gsub = string.gsub
local str_find = string.find
local tbl_cat = table.concat
local tbl_insert = table.insert
local bool_strs = { '^t$', '^T$', '^true$', '^True$', ... |
---------------Favorites---------------
Alert... Online daters detected - 977396990
Im gay - 692388932
Good Shit - 260845388
Girl Moan - 529108213
Girl Uhh - 187379457
buttsex - 933059220
Girl Sucking - 811703847
Nepalm Sticks To Kids - 947742704
Masturbate - 581118861
1122592909 - wii moan
1060962895 - Hitl... |
--- This scripts loads Nevermore from the server.
-- It also replicates the into ReplicatedStorage for internal usage.
-----------------------
-- UTILITY FUNCTIONS --
-----------------------
local TestService = game:GetService('TestService')
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ... |
local twentyfourseven_shops = {
{ ['x'] = 1961.1140136719, ['y'] = 3741.4494628906, ['z'] = 32.34375 },
{ ['x'] = 1392.4129638672, ['y'] = 3604.47265625, ['z'] = 34.980926513672 },
{ ['x'] = 546.98962402344, ['y'] = 2670.3176269531, ['z'] = 42.156539916992 },
{ ['x'] = 2556.2534179688, ['y'] = 382.876953125, ['... |
module:set_global();
local jid_bare = require "util.jid".bare;
local st = require "util.stanza";
local xmlns_muc_user = "http://jabber.org/protocol/muc#user";
local ip_bans = module:shared("bans");
local full_sessions = prosody.full_sessions;
local function ban_ip(session, from)
local ip = session.ip;
if not ip th... |
-- variables
print('\n --- Variables')
varString = 'String'
varBool = true
varNumber = 1
varTable1 = {1,2,3}
varTable2 = {
keyA = 'valueA',
keyB = 'valueB',
[10] = '10'
}
-- io
print('\n --- IO')
print('Hello World')
print('var', varString)
print('var '..varString)
print('varTable'... |
object_tangible_loot_creature_loot_collections_fish_tank_front_panel = object_tangible_loot_creature_loot_collections_shared_fish_tank_front_panel:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fish_tank_front_panel, "object/tangible/loot/creature/loot/collections/fish_tank_front_p... |
--
-- Copyright (c) 2018 Milos Tosic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
--------------------------------------------------------
-- directories
--------------------------------------------------------
function script_dir()
return path.getdirectory(debug.getinfo(2, "S... |
object_draft_schematic_furniture_wod_potted_plant_scem_01 = object_draft_schematic_furniture_shared_wod_potted_plant_scem_01:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_potted_plant_scem_01, "object/draft_schematic/furniture/wod_potted_plant_scem_01.iff")
|
function applyPDModels()
-- tags
tag1 = engineLoadTXD("tags_lafront.txd")
engineImportTXD(tag1, 1524)
-- tag2 = engineLoadTXD("tags_lakilo.txd")
-- engineImportTXD(tag2, 1525)
tag3 = engineLoadTXD("tags_laseville.txd")
engineImportTXD(tag2, 1528)
end
--addEventHandler("onClientResourceStart", getResourc... |
-- ============
-- CONTEXT MENU
-- ============
---@class ContextEntry @ContextEntries for ContextMenu
---@field ID number|ResolverFunction AFAIK only affects positon in FlashArray. (Optional) Auto-generated based on length of array
---@field actionID number|ResolverFunction This number is thrown on button-press an... |
--
-- This is file `babel-bidi-basic.lua',
-- generated with the docstrip utility.
--
-- The original source files were:
--
-- babel.dtx (with options: `basic')
--
--
-- Copyright (C) 2012-2021 Javier Bezos and Johannes L. Braams.
-- Copyright (C) 1989-2012 Johannes L. Braams and
-- any individual authors l... |
local kit={}
if settings.global["ironOre"].value>0 then
table.insert(kit,{name="iron-ore",count=settings.global["ironOre"].value})
end
if settings.global["copperOre"].value>0 then
table.insert(kit,{name="copper-ore",count=settings.global["copperOre"].value})
end
if settings.global["coal"].value>0 then
... |
minetest.register_item(":",
{
type = "none",
wield_image = "hand.png",
wield_scale = {x=1,y=1,z=3.5},
tool_capabilities =
{
max_drop_level = 0,
full_punch_interval = 0.4,
groupcaps =
{
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0},
cracky = {times={[1]=12.00}, uses=0, maxl... |
--[[
-- added by wsh @ 2018-02-26
-- ไธดๆถDemo๏ผๆๆๅบๆฏ่ง่ฒๅจ็ปๆงๅถ่ๆฌ
--]]
local CharacterAnimation = BaseClass("CharacterAnimation", Updatable)
local base = Updatable
local function Start(self, chara_go)
-- ่ง่ฒgameObject
self.chara_go = chara_go
-- ่ง่ฒๆงๅถๅจ
self.chara_ctrl = chara_go:GetComponentInChildren(typeof(CS.UnityEngine.... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
actions = require "game.rules.stats.actions",
reducer = require "game.rules.stats.reducer",
selectors = require "game.rules.stats.selectors",
keys = {
turn... |
-- printable_chars.lua
-- Daniel Ribeiro Margarido
-- 2018
-- Default special chars set up to ignore special space types
local space_chars = {
[9] = false, -- Tab
[10] = false, -- \n
[13] = false, -- \r
}
-- Characters to ignore
local blacklisted_chars = {}
-- Receives a char
-- Returns the true for as... |
local modules = script.Parent
local testRunnerScript = game:GetService("TestService").TestRunner
local function header(s)
local line = string.rep("-", #s + 6)
return ("%s\n-- %s --\n%s"):format(line, s, line)
end
local source = table.concat({
"--[[",
header("TestRunner Testing Framework"), [=[ Note: changes to this... |
DIALOGUE.name = "Trader Test"
DIALOGUE.addTopic("GREETING", {
response = "What is it?",
options = {
"TradeTopic",
"BackgroundTopic",
"InterestTopic",
"AboutWorkTopic",
"GetTask",
--"ProgressionTestTopic",
"GOODBYE"
},
preCallback = function(self, client, target)
netstream.Start("job_updatenpcjobs",... |
-- ===========================================================================
-- Base File
-- ===========================================================================
include("PartialScreenHooks_Expansion1");
include("partialscreenhooks_CQUI.lua"); |
require("@vue/compiler-core")
require("compiler-sfc/src/templateTransformSrcset")
require("compiler-core/src/transforms/transformElement")
require("compiler-core/src/transforms/vBind")
require("compiler-sfc/src/templateTransformAssetUrl")
function compileWithSrcset(template, options)
local ast = baseParse(template)
... |
-- Vehicle Data
local VD = ts_vehicles.get
local function E(text)
return text:gsub("%^", "\\%^"):gsub(":", "\\:")
end
ts_vehicles.register_vehicle_base("ts_vehicles_cars:truck", {
inventory_image = "ts_vehicles_cars_truck_construction_stand_inv.png",
description = "Truck",
item_description = "Truck Co... |
local metainfo = require 'metainfo'
local index = io.open("index.html", "w")
index:write("<!DOCTYPE html>\
<html><head><script>window.location.href = '/site'</script></head>\
<body>redirecting... <a href='" .. metainfo.home_url .. "/site'>click here if it's taking too long</a></body>\
</html>")
index:close()
|
function onCreate()
--Iterate over all notes
for i = 0, getProperty('unspawnNotes.length')-1 do
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'DODGE' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'DODGE_assets'); --Change texture
if getPropertyFromGroup('unspawnNotes', i, 'mustPress') t... |
local Window = Widget:new()
function Window:new(x, y, width, height)
local window = Widget:new(nil, x, y, width, height)
setmetatable(window, self)
self.__index = self
window.children = {}
return window
end
function Widget:update(dt)
for k, child in pairs(self.children) do
child:update... |
protection_memoize = {
-- opt-in
-- TODO: set to true after testing
enabled = false,
periodic_flush = 2
}
local MP = minetest.get_modpath("protection_memoize")
dofile(MP.."/memoize.lua")
dofile(MP.."/chatcommands.lua")
dofile(MP.."/is_protected.lua")
dofile(MP.."/periodic_flush.lua")
if minetest.get_modpath... |
--[[ PLUGIN USERS README HERE:
If you clicked the question mark and this script popped up, then read here. You can add any ChatTitle with the same name below. Do not use the IDs for this section.
]]---
local module = {}
local AchievementsChart = {
{
ID = 1,
Name = "VIP",
Description = "Obtained from purc... |
-- Copyright 2022 SmartThings
--
-- 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 applicable law or agreed to in ... |
object_tangible_tcg_series1_decorative_painting_imperial_propaganda = object_tangible_tcg_series1_shared_decorative_painting_imperial_propaganda:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series1_decorative_painting_imperial_propaganda, "object/tangible/tcg/series1/decorative_painting_imperial_propaganda.i... |
-- luacheck: globals unpack
local unpack = unpack or table.unpack
local M = {}
M.WILDCARD = "*"
M.DEFERRED = 0
M.SUCCEEDED = 1
M.NO_TRANSITION = 2
M.PENDING = 3
M.CANCELLED = 4
local function do_callback(handler, args)
if handler then
return handler(unpack(args))
end
end
local functi... |
local nvim_load_mapping = require("mapping.bind").nvim_load_mapping
local map_cr = require("mapping.bind").map_cr
local map_cu = require("mapping.bind").map_cu
local map_cmd = require("mapping.bind").map_cmd
require("mapping.config")
local M = {}
M.setup = function()
-- default map
local def_map = {
-- Vim m... |
local config = require("lspconfig").jdtls.document_config
require("lspconfig/configs").jdtls = nil
require("lspinstall/servers").jdtls = vim.tbl_extend('error', config, {
install_script = [[
rm -rf eclipse.jdt.ls
git clone https://github.com/eclipse/eclipse.jdt.ls.git
cd eclipse.jdt.ls
./mvnw clean ... |
--[[ Edit Made by PixelFir3 Passcode: iui ]] local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui) gui.Name = "GUI" local rogui = Instance.new("Frame", gui) rogui.Size = UDim2.new(0, 469, 0, 148) rogui.BorderColor3 = Color3.new(1, 1, 1) rogui.Name = "RO-GUI" rogui.Position = UDim2.new(0, 560, 0, 300... |
local m = {}
function m.table_slice(tbl, first, last, step)
local sliced = {}
for i = first or 1, last or #tbl, step or 1 do
sliced[#sliced+1] = tbl[i]
end
return sliced
end
function m.string_to_byte_array (str)
local arr = {}
for i = 1, #str do
table.insert(arr, string.byte(str, i, i))
end
... |
local PLUGIN = PLUGIN
local PLUGIN = PLUGIN
PLUGIN.name = "Utility Menu"
PLUGIN.author = "Subleader"
PLUGIN.desc = "A menu that can be opened by pressing F1, compatible with the plugin Enhanced Description."
ix.util.Include("sv_plugin.lua") |
local Background = {}
function Background:new(layer, context)
local newBack = {};
-- set meta tables so lookups will work
setmetatable(newBack, self);
self.__index = self;
local uiConst = context.uiConst;
--[[
local bounds = context.displayBounds;
local rect =... |
-- required libs
require 'parallel'
require 'torch'
-- calibration code:
function calib()
require 'torch'
require 'sys'
s = torch.Tensor(100000):fill(1)
d = torch.Tensor(100000):fill(0)
parallel.yield()
sys.tic()
for i = 1,10000 do
d:add(13,s)
end
time = sys.toc()
parallel.parent:s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.