content stringlengths 5 1.05M |
|---|
-- highlight on yank
vim.api.nvim_exec(
[[
augroup YankHighlight
autocmd!
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
augroup end
]],
false
)
-- Y yank until the end of line (note: this is now a default on master)
vim.api.nvim_set_keymap('n', 'Y', 'y$', { noremap = true }) |
SPECIAL_MSGTYPE_REFRESHACTORLIST = "refreshactorlist";
SPECIAL_MSGTYPE_REFRESHINITSLOTLIST = "refreshinitslotlist";
SPECIAL_MSGTYPE_ADDTOINITSLOT = "clientaddtoinitslot";
SPECIAL_MSGTYPE_NEXTACTOR = "clientnextactor";
local actorlistnode = nil;
local actorlistcontrol = nil;
local initslotlistcontrol = nil;
loc... |
object_tangible_destructible_gcw_imperial_vehicle = object_tangible_destructible_shared_gcw_imperial_vehicle:new {
}
ObjectTemplates:addTemplate(object_tangible_destructible_gcw_imperial_vehicle, "object/tangible/destructible/gcw_imperial_vehicle.iff") |
local gamemode = ScriptedGamemode()
gamemode.ScoreboardColumns = { "Name", "Ping" }
gamemode:On("InitScoreboard", function (self, scoreboard)
self.Scoreboard = scoreboard
self.ScoreboardColumnIndexes = {}
self.ScoreboardTeamIndexes = {}
-- Retrieve active gamemode instead of base gamemode
local derivedGamemode =... |
local key = ModPath .. ' ' .. RequiredScript
if _G[key] then return else _G[key] = true end
local fs_original_carrydata_init = CarryData.init
function CarryData:init(unit)
fs_original_carrydata_init(self, unit)
if Network:is_client() or self._carry_id and not self:can_explode() then
unit:set_extension_update_enabl... |
ERR_SEAT = 255
SEAT_STATE = {
null = 0x00,
unready = 0x01,
ready = 0x02,
gaming = 0x04,
offline = 0x08,
exit = 0x10,
}
|
require("lib_gamesense")
local maf = require("lib_maf")
local ui_new_checkbox = ui.new_checkbox
local ui_new_combobox = ui.new_combobox
local ui_new_multiselect = ui.new_multiselect
local ui_new_slider = ui.new_slider
local ui_new_color_picker = ui.new_color_picker
local ui_set_callback = ui.set_callback
local ui_get ... |
function generateTriangleOfVertices()
line = world:newLineCollider(200,200, 1030, 1030)
line2 = world:newLineCollider(200,200,200,1030)
joint = world:addJoint('RevoluteJoint', line, line2, 200, 200, true)--Joint that forms the slope for physical interactions
end
function setTriangleOfVerticesProperties()
... |
local addonName, G = ...
local makeAction = (function()
local function consume(mealDB, potionDB, nethergon)
local potionText = (function()
local s = ''
for _, consumable in ipairs(potionDB) do
s = s .. '/use item:' .. consumable[1] .. '\n'
end
return s
end)()
local netherg... |
-- Simplified implementation of mw for running WikiMedia Scribunto code
-- under Python
--
-- Copyright (c) 2020-2021 Tatu Ylonen. See file LICENSE and https://ylonen.org
local mw_autoload = {
hash = "mw_hash",
html = "mw_html",
language = "mw_language",
site = "mw_site",
text = "mw_text",
title = "... |
local Scope = {}
Scope.__index = Scope
Mlc.classes.Scope = Scope
|
-- @docclass
UIWindow = extends(UIWidget, "UIWindow")
function UIWindow.create()
local window = UIWindow.internalCreate()
window:setTextAlign(AlignTopCenter)
window:setDraggable(true)
window:setAutoFocusPolicy(AutoFocusFirst)
return window
end
function UIWindow:onKeyPress(keyCode, keyboardModifier... |
function impulse.Ops.EventManager.SequenceLoad(path)
local fileData = file.Read(path, "DATA")
local json = util.JSONToTable(fileData)
if not json or not istable(json) then
return false, "Corrupted sequence file"
end
if not json.Name or not json.Events or not json.FileName then
return false, "Corrupted sequen... |
if not modules then modules = { } end modules ['mtx-mtxworks'] = {
version = 1.002,
comment = "companion to mtxrun.lua",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- this is a shortcut ... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Knit = require(ReplicatedStorage.Knit)
local Janitor = require(Knit.Util.Janitor)
local TableUtil = require(Knit.Util.TableUtil)
local Roact = require(ReplicatedStorage.Roact)
local elements = script.Parent.Elements
local Frame = require(elements.F... |
:: # Copyright 2013, Big Switch Networks, Inc.
:: #
:: # LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with
:: # the following special exception:
:: #
:: # LOXI Exception
:: #
:: # As a special exception to the terms of the EPL, you may distribute libraries
:: # generated by LoxiGen (LoxiGen ... |
-- player.lua
local Modern = require 'modern'
--
local AABB = Modern:extend()
function AABB:new()
-- using `Player` variables to create some more
self.left = self.x
self.top = self.y
self.right = self.x + self.width
self.bottom = self.y + self.height
end
-- ...
-- Really cool, useful funct... |
donor_scroll = {
use = function(player)
local invItem = player:getInventoryItem(player.invSlot)
local scrollName = invItem.name
if not player:canAction(1, 1, 1) then
return
end
if player.state == 1 then
player:sendMinitext("How can you open this with no hands?")
return
end
if player:hasLegend... |
---
-- @author Alf21
-- @author saibotk
-- @author Mineotopia
-- @class ROLE
ROLE.isAbstract = true
ROLE.score = {
-- The multiplier that is used to calculate the score penalty
-- that is added if this role kills a team member.
teamKillsMultiplier = 0,
-- The multiplier that is used to calculate the gained score... |
local Mesh3D=Core.class(Mesh,function() return true end)
Mesh3D.MODE_TEXTURE=1
Mesh3D.MODE_LIGHTING=2 --ie normals
Mesh3D.MODE_BUMP=4
Mesh3D.MODE_SHADOW=8
Mesh3D.MODE_ANIMATED=16
Mesh3D.MODE_INSTANCED=32
function Mesh3D:init()
self.mode=0
end
function Mesh3D:updateMode(set,clear)
local nm=(self.mode|(set o... |
local initiative = Initiative:by_id(param.get("initiative_id"))
local member = app.session.member
if member then
initiative:load_everything_for_member_id(member.id)
initiative.issue:load_everything_for_member_id(member.id)
end
local initiator = Initiator:by_pk(initiative.id, app.session.member.id)
if not initiato... |
/*
if !SERVER then return false; end
local PLUGIN = {}
PLUGIN.Name = "Ban Words"
PLUGIN.Author = "RedMist"
PLUGIN.Date = "15th March 2011"
PLUGIN.Filename = PLUGIN_FILENAME
PLUGIN.ClientSide = false
PLUGIN.ServerSide = true
PLUGIN.APIVersion = 2
PLUGIN.Gamemodes = {}
--PLUGIN.BannedWords = {};
PLUGIN.BannedWords = {... |
require "ratchet"
function ctx1()
local socket_a, socket_b = ratchet.socket.new_pair()
ratchet.thread.attach(ctx2, socket_b)
socket_a:send("hello")
local data = socket_a:recv(5)
assert(data == "world")
local data = socket_a:recv()
assert(data == "foo")
socket_a:send("bar")
end
funct... |
--- Item
-- @classmod Item
local Item = {}
setmetatable(Item, {__index = require("stdlib/data/core")})
local item_types = {
"item",
"ammo",
"armor",
"gun",
"capsule",
"repair-tool",
"mining-tool",
"item-with-entity-data",
"rail-planner",
"tool",
"blueprint",
"deconstruc... |
object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a4 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl4_tree_root_a4:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a4, "object/building/kashyyyk/poi_kash_rryatt_lvl4_tree_root_a4.iff")
|
-----------------------------------------
-- Spell: Sleepga
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
functio... |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
local cfg = module("vrp_id_display", "cfg/blips")
vRPidd = {}
IDDclient = Tunnel.getInterface("vrp_id_display","vrp_id_display")
vRPclient = Tunnel.getInterface("vRP","vrp_id_display")
Tunnel.bindInterface("vrp_id_display",vRPidd)
Proxy... |
local Initial = PlayState:addState('Initial')
function DrawBestScore(self)
Color.WHITE:use()
love.graphics.setFont(self.best_font)
love.graphics.printf(string.format("BEST: %.1f", self.bestscore),
love.graphics.getWidth()/2 - love.graphics.getWidth()/2,
(love.graphics.getHeight()/2 - self.scale*PlayArea.... |
sni.stage = "data-final-fixes"
---------------------------------------------------------------------------
if (not SNI.defaultPacks) or (#SNI.defaultPacks == 0) then
SNI.addDefaultPacks({{"automation-science-pack", 1}})
end
SNI.sendInvites()
--SNI.chechIntegrityInfiniteScience()
|
return {
tag = 'graphicsState',
summary = 'Set the background color.',
description = [[
Sets the background color used to clear the screen. Color components are from 0.0 to 1.0.
]],
arguments = {
r = {
type = 'number',
description = 'The red component of the background color.'
},
... |
function test_talk_seq_1()
local t = require "test.luaunit"
local o = require "talks.o"
local items = {"1","2","3"}
local co = coroutine.wrap(o.SEQ(items))
local args = {
data= {},
req = {},
}
t.assertEquals(co(args), "1")
t.assertEquals(co(args), "2")
t.assertEqual... |
---@meta
---@class ccs.RotationFrame :ccs.Frame
local RotationFrame={ }
ccs.RotationFrame=RotationFrame
---*
---@param rotation float
---@return self
function RotationFrame:setRotation (rotation) end
---*
---@return float
function RotationFrame:getRotation () end
---*
---@return self
function RotationFrame:crea... |
local http = require("socket.http")
local url = require("socket.url")
local mime = require("mime")
local ltn12 = require("ltn12")
local headers = {
Accept = "application/x-turtle",
--Accept = "application/json",
--["Content-Type"] = "application/json",
Authorization = "Basic " .. (mime.b64("admin:admin"))... |
-- preplists.lua
module(..., package.seeall)
local utils = require "lua.utils"
local iputils = require "lua.iputils"
local rangesbtree = require "lua.rangesbtree"
local cjson = require "cjson"
local json_safe = require "cjson.safe"
local dict = utils.dict
local defaultdict = utils.defau... |
--[[
Variables
]]
MenuTypes, MenuEntries, MenuItems = {"general", "peds", "vehicles", "objects", "news", "k9", "judge", "realestate"}, {}, {}
local closedFromAction = false
for _, menuType in ipairs(MenuTypes) do
MenuEntries[menuType] = {}
end
-- Menu state
local showMenu = false
-- Keybind Lookup table
l... |
ITEM.name = "Bag"
ITEM.description = "A bag to increase your carry capacity."
ITEM.model = "models/props_c17/suitcase001a.mdl"
ITEM.category = "Storage"
ITEM.width = 2
ITEM.height = 2
ITEM.price = 0
ITEM.isNewBag = true
ITEM.outfitCategory = "backpack"
ITEM.pacData = {}
ITEM.equipIcon = ix.util.GetMaterial("materials... |
local LOREM_ISPUM = [[Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Suspendisse rutrum accumsan elit vel auctor.
Praesent sit amet aliquam turpis.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.
Maecenas non erat ut elit sodales commodo.
Nam gravida ipsum quis nulla te... |
local gamestate = require "vendor/gamestate"
local Board = require "board"
local camera = require "camera"
local Dialog = {}
Dialog.__index = Dialog
---
-- Create a new Dialog
-- @param message to display
-- @param callback when user answer's say
-- @return Dialog
function Dialog.new(message, callback)
local say =... |
local keymap = vim.api.nvim_set_keymap
keymap('n', '<leader>fb', ':lua require("telescope.builtin").buffers()<CR>', { noremap = true, silent = true })
keymap('n', '<leader>ff', ':lua require("telescope.builtin").find_files()<CR>', { noremap = true, silent = true })
keymap('n', '<leader>fg', ':lua require("telescope.... |
local awful = require("awful")
local beautiful = require("beautiful")
-- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautifu... |
local login = require "snax.loginserver"
local crypt = require "skynet.crypt"
local skynet = require "skynet"
local server = {
host = "127.0.0.1",
port = 8001,
multilogin = false,
name = "login_master"
}
function server.auth_handler(token)
local user, server, password = token:match("([... |
-- config for running klipper 3D printer suite on local (desktop) machine.
-- i'm using this to simplify debugging of modifications to the klipper source code for my hobby project.
-- any prodction use of tools/configuration/setup provided here was not tested and cannot be guaranteed.
-- packages need to be installed:... |
--- Module for generating random strings
-- @module lqc.generators.string
-- @alias new
local random = require 'lqc.random'
local lqc = require 'lqc.quickcheck'
local Gen = require 'lqc.generator'
local char = require 'lqc.generators.char'
local char_gen = char()
-- NOTE: The shrink algorithms are *heavily* based o... |
-- Register tanks for each fluid
fluidity.bucket_cache = {}
fluidity.tanks = {}
-- Get fluid source block name for bucket item.
function fluidity.get_fluid_for_bucket(itemname)
for i,v in pairs(fluidity.bucket_cache) do
if v == itemname then
return i
end
end
end
-- Get bucket item name for fluid source bloc... |
local ffi = require("ffi")
ffi.cdef[[
typedef struct {
int version;
uint8_t addr[16];
uint8_t mask[16];
int proto;
} CIDR;
CIDR *cidr_from_str(const char *);
char *cidr_to_str(const CIDR *, int);
int cidr_contains(const CIDR *, const CIDR *);
void cidr_free(CIDR *);
void free(void *);
]]
local cidr = f... |
return {
fontHeight=12,
yspdMin=0,
yspdMax=3,
countdownMin=1,
countdownMax=3,
dropWidth=1,
dropHeight=6,
dropColor={0,255,255}
}
|
object_tangible_collection_plant_14 = object_tangible_collection_shared_plant_14:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_plant_14, "object/tangible/collection/plant_14.iff") |
--[[ FORK OF ROBLOX'S BUILT IN RAGDOLL
Originally forked by BreakOn 03/2022
imported here & further modified by HashCollision 04/2022
--]]
local Rigging = {}
-- Gravity that joint friction values were tuned under.
local REFERENCE_GRAVITY = workspace.Gravity
-- ReferenceMass values from mass of child part. Used to ... |
-----------------------------------------------
-- maletItem.lua
-- The code for the mace, when it is in the player's inventory.
-- Created by NimbusBP1729
-----------------------------------------------
return{
name = 'mallet',
type = 'weapon',
} |
local M = {}
function M.remote()
local branch = vim.fn["gina#component#repo#branch"]()
local tracking = vim.fn["gina#component#repo#track"]()
local remote_name = tracking:sub(1, #tracking - #branch - 1)
if remote_name == "" then
return "origin"
end
return remote_name
end
function M._revision()
local... |
local RUF = RUF or LibStub("AceAddon-3.0"):GetAddon("RUF")
local LSM = LibStub("LibSharedMedia-3.0")
local _, ns = ...
local oUF = ns.oUF
local elementName = 'TargetMark'
local stringIconCircle = RUF.IndicatorGlyphs['Target-Circle']
local stringIconCross = RUF.IndicatorGlyphs['Target-Cross']
local stringIconDiamond = ... |
local VIS = {}
VIS.event = Sonus.lib.NewEventEmitter()
VIS.items = {}
VIS.itemSize = 20
VIS.itemAccel = 0
VIS.bars = 320
VIS.memeFactor = 0
VIS.memeCrement = 41 -- prime
VIS.actualMemeFactor = 0
VIS.rectAng = 0
local canShake = CreateClientConVar("sonus_genesis_shake",1,true,false,"Enable screenshakes")
local shake... |
local Transformer
Transformer = require("moonscript.transform.transformer").Transformer
local NameProxy, LocalName, is_name_proxy
do
local _obj_0 = require("moonscript.transform.names")
NameProxy, LocalName, is_name_proxy = _obj_0.NameProxy, _obj_0.LocalName, _obj_0.is_name_proxy
end
local Run, transform_last_stm, ... |
require"Engine"
Game=class({
static={
Initialize=function(self)
AssetManager:Initialize()
GraphicManager:Initialize()
SceneManager:Initialize(require("./Assets/scenes/level1/scene"))
DebugManager:Initialize()
end,
Tick=function(self,delta)
AssetManager:Tick(delta)
SceneManager:Tick(delta)
Gr... |
local GlobalLoot = Class(function(self,inst)
self.inst = inst
self.loot = {}
self.inst:ListenForEvent("entity_death", function(world, data) self:OnEntityDeath(data) end, GetWorld())
end)
function GlobalLoot:AddGlobalLoot(data)
table.insert(self.loot, data)
end
function GlobalLoot:OnEntityDeath(data)
for k,v in p... |
function sysCall_init()
-- do some initialization here:
-- Make sure you read the section on "Accessing general-type objects programmatically"
-- For instance, if you wish to retrieve the handle of a scene object, use following instruction:
--
-- handle=sim.getObjectHandle('sceneObjectName')
--... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SMALLPLANTS)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)
local condition = Condition(CONDITION_POISON)
condition:setParameter(CONDITION_PARAM_DELAYED, 1)
condition:... |
local syntax = require "core.syntax"
syntax.add {
files = {"%.fountain$"},
patterns = {
{ pattern = {"/%*", "%*/"}, type = "comment" }, -- this is the boneyard
{ regex = "^\\s*!\\s*.+", type = "normal"},
{ regex = "^\\s*~\\s*.+", type = "lyrics" },
{ pattern = {"%(", "%)"}, type = "parenthetical" },
{ patt... |
local conf = require("configuration")
local current_version = 010204 -- 1.2.4
---@param player LuaPlayer
local function reset_gui(player)
local root = player.gui.left["mpp_settings_frame"] or player.gui.screen["mpp_settings_frame"]
if root then
root.destroy()
end
local cursor_stack = player.cursor_stack
if cur... |
local F, C = unpack(select(2, ...))
C.themes["Blizzard_ItemUpgradeUI"] = function()
local ItemUpgradeFrame = ItemUpgradeFrame
F.ReskinPortraitFrame(ItemUpgradeFrame)
local itemButton = ItemUpgradeFrame.ItemButton
itemButton.bg = F.CreateBDFrame(itemButton, .25)
itemButton.Frame:SetTexture("")
itemButton:SetPush... |
return {
size = { w = 9, h = 11 },
cells = {
{0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1},
{1,0,0,0,1,0,0,0,1},
{1,0,1,1,1,1,1,0,1},
{1,0,1,0,1,0,1,0,1},
{1,1,1,1,1,1,1,1,1},
{1,0,1,0,1,0,1,0,1},
{1,0,1,1,1,1,1,0,1},
{1,0,0,0,1,0,0,0,1},
{1,1,1,1,1,1,1,1,1},
{0,0,0,0,0,0,0,0,... |
local folderOfThisFile = (...):match("(.-)[^%/%.]+$")
local class = require(folderOfThisFile.."/middleclass")
local Stack = class("Stack")
function Stack:init()
self._s = {}
end
function Stack:size()
return #self._s
end
function Stack:pop()
return table.remove(self._s, self:size())
end
function Stack:p... |
local playerService = game:GetService("Players")
local dataMod = require(script.Parent.Data)
local spawnParts = workspace.SpawnParts
local initializeMod = {}
local function getStage(stageNum)
for _, stagePart in pairs(spawnParts:GetChildren()) do
if stagePart:GetAttribute("Stage") == stageNum then
return stagePa... |
local S = aurum.get_translator()
aurum.magic.register_spell("summon_psyche_flare", {
description = S"Summon Psyche Flare",
max_level = 3,
apply_requirements = function(pointed_thing)
return not not minetest.get_pointed_thing_position(pointed_thing)
end,
apply = function(pointed_thing, level, player)
local o... |
-- Copyright 2011-2012 Nils Nordman <nino at nordman.org>
-- Copyright 2012-2014 Robert Gieseke <rob.g@web.de>
-- License: MIT (see LICENSE)
--[[
This example shows how to use the list with multi column items. It also
illustrates the optional use of headers, as well as the fact that the
`on_selection` callback will be... |
data:extend({
{
type = "technology",
name = "toolbelt-2",
icon = "__base__/graphics/technology/toolbelt.png",
effects =
{
{
type = "num-quick-bars",
modifier = 1
}
},
prerequisites = {"toolbelt"},
unit =
{
count = 150,
ingredi... |
local ScrollingDirection = import("../Enum/ScrollingDirection")
local ScrollBarInset = import("../Enum/ScrollBarInset")
local VerticalScrollBarPosition = import("../Enum/VerticalScrollBarPosition")
local GuiObject = import("./GuiObject")
local InstanceProperty = import("../InstanceProperty")
local UDim2 = import("../ty... |
id = 'V-38473'
severity = 'low'
weight = 10.0
title = 'The system must use a separate file system for user home directories.'
description = 'Ensuring that "/home" is mounted on its own partition enables the setting of more restrictive mount options, and also helps ensure that users cannot trivially fill partitions used... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:7074c7415c306dddc6a06d689bb50f6b:80c2cc27212c0fb58d9ee62e7dfb33ab:2c81e27ca2ed04347d4c1025c5eca84f$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
local ArchetypeManager = BaseClass()
ECS.ArchetypeManager = ArchetypeManager
function ArchetypeManager:Constructor( sharedComponentManager )
self.m_SharedComponentManager = sharedComponentManager
self.m_TypeLookup = {}
self.m_EmptyChunkPool = ECS.UnsafeLinkedListNode.New()
ECS.UnsafeLinkedListNode.Initial... |
--捕食植物アンブロメリドゥス
--
--Script by JSY1728
function c101108037.initial_effect(c)
--Fusion Material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x10f3),2,true)
--To Hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101108037,0))
e1:SetCategor... |
local r = require('rethinkdb')
describe('control', function()
local reql_db, reql_table, c
reql_table = 'func'
setup(function()
reql_db = 'control'
local err
c, err = r.connect()
if err then error(err.message) end
r.db_create(reql_db):run(c)
c:use(reql_db)
r.table_create(reql_tab... |
local openssl = require 'openssl'
local lu = require 'luaunit'
local asn1 = openssl.asn1
local first = true
TestObject = {}
function TestObject:setUp()
self.sn = 'C'
self.ln = 'countryName'
self.oid = '2.5.4.6'
self.nid = 14
lu.assertIsTable(asn1)
self.ne_sn = 'Good1'
self.ne_ln = 'GoodString1'
self... |
----------------------------------------------------------------------------------------------------
-- Creator Tools LUA Instrument Utilities File
----------------------------------------------------------------------------------------------------
-- Author: Native Instruments
-- Written by: Yaron Eshkar
-- Modi... |
operator = yarn {
name = "hello_test",
timeout = 10000,
memory = 1024,
cores = 1,
container = {
instances = 1,
--env = base_env,
resources = {
["HelloWorld.sh"] = {
file = "asapLibrary/operators/hello_test/HelloWorld.sh",
type = "file", -- other value: 'arc... |
--require("prototypes.processing.pulverizer")
data:extend({
{
type = "item",
name = "gravel",
icon = "__Engineersvsenvironmentalist__/graphics/icons/materials/gravel.png",
icon_size = 31,
flags = {"goes-to-main-inventory"},
subgroup = "stone-base",
order = "g1[other]",
stack_size = 250
},
{
type =... |
-----------------------------------
-- Area: Valley of Sorrows
-- HNM: Adamantoise
-----------------------------------
local ID = require("scripts/zones/Valley_of_Sorrows/IDs")
mixins = {require("scripts/mixins/rage")}
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/title... |
--
-- Built with,
--
-- ,gggg,
-- d8" "8I ,dPYb,
-- 88 ,dP IP'`Yb
-- 8888888P" I8 8I
-- 88 I8 8'
-- 88 gg gg ,g, I8 dPgg,
-- ,aa,_88 I8 8I ,8'8, ... |
--[[--------------------------------------------------------------------
Copyright (C) 2013, 2014, 2015 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
-- This addon tracks the player's current stance.
local OVALE,... |
local class = require('middleclass')
local Input = class('Input')
--[[
Touch.phase:
- Began A finger touched the screen.
- Moved A finger moved on the screen.
- Stationary A finger is touching the screen but hasn't moved.
- Ended A finger was lifted from the screen. This is the final phase of a touch... |
local blog_name = nil
local url_count = 0
local tries = 0
local previous_status_code = nil
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.lookup_host = function(host)
-- DNS r... |
local class = require("pl.class")
local sfmt = string.format
local fs = require("pl.path")
local dir = require("pl.dir")
local file = require("pl.file")
local tablex = require("pl.tablex")
local pretty = require("pl.pretty")
local Data ... |
--死境邪龙·法芙娜
local m=14010042
local cm=_G["c"..m]
function cm.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_... |
local player = ...
local stats = STATSMAN:GetCurStageStats():GetPlayerStageStats(player)
local PercentDP = stats:GetPercentDancePoints()
local percent = FormatPercentScore(PercentDP)
-- Format the Percentage string, removing the % symbol
percent = percent:gsub("%%", "")
return Def.ActorFrame{
Name="PercentageContain... |
--- Item
-- @classmod Data.Item
local Item = {
__class = 'Item',
__index = require('__stdlib__/stdlib/data/data'),
__call = require('__stdlib__/stdlib/data/data').__call
}
setmetatable(Item, Item)
return Item
|
--------------------------------
-- @module PhysicsSprite3D
-- @extend Sprite3D
-- @parent_module cc
--------------------------------
-- synchronize node transformation to physics.
-- @function [parent=#PhysicsSprite3D] syncNodeToPhysics
-- @param self
-- @return PhysicsSprite3D#PhysicsSprite3D self (return value:... |
return {
CACHE_AGE = 3600, -- seconds
ID_DELAY = 5000, -- milliseconds
GATEWAY_DELAY = 500, -- milliseconds,
DISCORD_EPOCH = 1420070400000, -- milliseconds
GATEWAY_VERSION = 6,
DEFAULT_AVATARS = 5,
ZWSP = '\226\128\139',
NS_PER_US = 1000,
US_PER_MS = 1000,
MS_PER_S = 1000,
S_PER_MIN = 60,
MIN_PER_HOUR = 60,... |
function gflags_configs()
return {system = false, configs = {mt = true, shared = true, debug = true}}
end
|
require( "components/cavern/cavern_encounter" )
--------------------------------------------------------------------
if encounter_combat_sniper == nil then
encounter_combat_sniper = class( {}, {}, CCavernEncounter )
end
--------------------------------------------------------------------
function encounter_combat... |
-- 1.2.1 Control de más salidas y su configuración
-- configuro los pines
local D1 = 1
local D2 = 2
-- condiguro los pines como salida
gpio.mode(D1, 0)
gpio.mode(D2, 0)
-- encneder los LEDs
gpio.write(D1,1)
gpio.write(D2,1) |
------------------------------------------------------------------------
--- @file arp.lua
--- @brief Address resolution protocol (ARP) utility.
--- Utility functions for the arp_header struct
--- defined in \ref headers.lua . \n
--- Includes:
--- - Arp constants
--- - Arp address utility
--- - Arp header utility
--- -... |
-- cbind - A library for generating bindings.
-- Written in 2014 by Jesper Oskarsson jesosk@gmail.com
--
-- To the extent possible under law, the author(s) have dedicated all copyright
-- and related and neighboring rights to this software to the public domain worldwide.
-- This software is distributed without any war... |
local table_insert = table.insert
local todefault = function(x)
return x == 'default' and '' or x
end
local platform_table = {
macos='macosx',
}
local toplatform = function(plat)
return platform_table[plat] or plat
end
local compiler_table = {
msvc='cl',
}
local tocomp = function(comp)
return compiler_tabl... |
vim.o.completeopt = "menuone,noselect"
local cmp = require("cmp")
local luasnip = require("luasnip")
cmp.setup({
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)
end,
},
mapping = {
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-n>'] = cmp.mapping.select_next_item(),
... |
local ailment_buildup = {};
local player;
local language;
local config;
local ailments;
local ailment_buildup_UI_entity;
local time;
local small_monster;
local large_monster;
local table_helpers;
local drawing;
function ailment_buildup.draw_dynamic(monster, ailment_buildups_position_on_screen, opacity_scale)
local ca... |
workspace "Durna"
architecture "x64"
startproject "ExampleGame"
configurations
{
"Debug",
"Release",
"Dist"
}
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "ThirdParty/GLFW/include"
IncludeDir["spdlog"] = "... |
local HybridCNNLong = {}
function HybridCNNLong.cnn(alphasize, emb_dim, dropout, avg, cnn_dim)
dropout = dropout or 0.0
avg = avg or 0
cnn_dim = cnn_dim or 256
local inputs = {}
table.insert(inputs, nn.Identity()()) -- Bag
local net = nn.Sequential()
-- 201 x alphasize
net:add(nn.TemporalConvolution(... |
local addonName, ns = ...
--Some Tags
oUF.Tags.Events["shorthp"] = "UNIT_HEALTH"
oUF.Tags.Methods["shorthp"] = function(unit)
if not UnitIsDeadOrGhost(unit) then
local hp = UnitHealth(unit)
return AbbreviateLargeNumbers(hp)
end
end
oUF.Tags.Events["shortpp"] = "UNIT_POWER"
oUF.Tags.Methods["shortpp"] = function... |
local L = BigWigs:NewBossLocale("Court of Stars Trash", "deDE")
if not L then return end
if L then
L.Guard = "Wachposten der Dämmerwache"
L.Construct = "Wächterkonstrukt"
L.Enforcer = "Dämonenversklavte Vollstreckerin"
L.Hound = "Legionshund"
L.Mistress = "Schattenmeisterin"
L.Gerenth = "Verdächtiger Adliger"
L.... |
local db_mgr = require "common.db_mgr"
local agent_db = {}
return agent_db |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.