content stringlengths 5 1.05M |
|---|
require'lspconfig'.cssls.setup{}
|
local _hotkeys = require 'hotkeys'
local syntax = {
types = {
{
id = 'add',
name = 'Add Operator',
back = {
type {
type = 'add',
value = record {
left = data_atom 'left',
... |
Speedrun = Speedrun or {}
local Speedrun = Speedrun
local LAM2 = LibAddonMenu2
local wm = WINDOW_MANAGER
local sV
local cV
----------------------------------------------------------------------------------------------------------
------------------------------------[ PROFILE ]------------... |
local ArdenwealdGardening =
{
Name = "ArdenwealdGardening",
Type = "System",
Namespace = "C_ArdenwealdGardening",
Functions =
{
{
Name = "GetGardenData",
Type = "Function",
Returns =
{
{ Name = "data", Type = "ArdenwealdGardenData", Nilable = false },
},
},
{
Name = "IsGardenAccessibl... |
local async = require('plenary/async')
local utils = require('utils')
local same = assert.are.same
local file = utils.get_target_file_path('main.rs')
describe('diffmt.diff to rust', function ()
describe('with default config', function ()
before_each(function ()
vim.cmd(([[
silent only
bufd... |
pg = pg or {}
pg.share_template = {
{
description = "#碧蓝航线#",
name = "个人信息界面",
show_comps = "",
deck = 1,
id = 1,
move_comps = "",
camera = "UICamera",
qrcode_location = {
373,
178
},
hidden_comps = {
"/UICamera/Canvas/UIMain/AdmiralUI(Clone)/blur_panel/adapt/left_panel/swichSkin_btn",
... |
-- Boost Die
local icons = {};
icons[1] = "[§I http://blob.firecast.com.br/blobs/HKJSWOFE_393972.png]"
icons[2] = "[§I http://blob.firecast.com.br/blobs/HKJSWOFE_393972.png]"
icons[3] = "[§I http://blob.firecast.com.br/blobs/HKJSWOFE_393972.png]"
icons[4] = "[§I http://blob.firecast.com.br/blobs/HKJSWOFE_393972.png]"
i... |
#!/usr/bin/lua
-- Please note the weird dependencies here;
-- https://github.com/folknor/luash
-- https://github.com/Lua-cURL/Lua-cURLv3
-- And yes, I know I could have used curl through luash. I wrote this script to get my feet wet with these libraries.
local _RELEASES = {"focal", "eoan", "disco", "cosmic"}
local _SPA... |
local lib = require("lib")
local parse_pp_line = lib.parse_pp_line
local has_required_fields = lib.has_required_fields
describe("Day 4", function()
describe("has_required_fields", function()
it("should accept a valid passports", function()
local pp = {}
parse_pp_line(pp, "ecl:gry pid:860033327 eyr:2020 hcl:#f... |
dofile("precore_import.lua")
local _, G, P = precore.helpers()
precore.init(
nil,
{
"precore.clang-opts",
"precore.c++11-core",
"precore.env-common",
}
)
precore.import(".")
precore.import("test")
precore.action_clean("out")
|
pfDB["items"]["frFR-tbc"] = {
[119] = "Deprecated Rogue\'s Vest",
[127] = "Chemise du trappeur",
[143] = "Monster - Shield, Stormwind Guard",
[732] = "Okra mûr",
[779] = "Coquillage rutilant",
[810] = "Marteau du vent du nord",
[878] = "Filière de la taille d\'un poing",
[892] = "Gants de sortilège gnol... |
-- HUMP libraries
Gamestate = require "hump.gamestate"
Class = require "hump.class"
gamestates = {}
gamestates.Game = require "gamestates.game"
function love.load(arg)
-- Register the gamestate events
Gamestate.switch(gamestates.Game)
Gamestate.registerEvents()
fonts = {}
fonts.big = love.graphics.newFont... |
--[[
Low Level Storage Commands
==========================
These are the filesystem abstractions needed by a git database
storage.write(path, raw) - Write mutable data by path
storage.put(path, raw) - Write immutable data by path
storage.read(path) -> raw - Read mutable data by path (nil if not found)
s... |
local levels = {}
local screenSize = require( "libs.screenSize" )
local colours = require( "libs.colours" )
-- forward declarations and other locals
local screenW, screenH, halfW, halfH = screenSize.screenW, screenSize.screenH, screenSize.halfW, screenSize.halfH
local startPoint, wall_width, wall_height = 2*math.f... |
#!/usr/bin/env tarantool
local fio = require('fio')
local checks = require('checks')
local errors = require('errors')
local json = require('json')
local log = require('log')
local clock = require('clock')
local utils = require('cartridge.utils')
local parse = require('cartridge.graphql.parse')
local fastparse = requ... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["FlaskIncreasedRecoverySpeed1"] = { type = "Prefix", affix = "Catalysed", "50% increased Recovery rate", statOrderKey = "525", statOrder = { 525 }, level = 1, group = "FlaskRecoverySpeed", weightKey = { "utility_flask... |
-- SuperMakerPlayer and TrafficConeGod
local ZERO_VECTOR3 = Vector3.new(0,0,0)
return function(Sunshine, entity)
local coin = entity.coin
local regionalCoin = entity.regionalCoin
local transform = entity.transform
local collider = entity.collider
local speaker = entity.speaker
local stop = fa... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Misc")
local M = _Misc
local mod = M:NewModule("AutoRelease", "AceEvent-3.0")
function mod:PLAYER_DEAD()
if not M.db.autorelease then return end
local... |
name = "Brian's Brain"
color = { "#000000", "#ffffff", "#0000ff" }
state_count = 3
dimensions = 2
min_size = { 100, 100 }
neighbor_radius = 1
function local_evolve(x)
sum = 0
for i = 1, 4 do
if (x[i] == 1) then
sum = sum + 1
end
end
for i... |
-- Copyright 2006-2022 Mitchell. See LICENSE.
-- CoffeeScript LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('coffeescript', {fold_by_indentation = true})
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITES... |
local ITEM = {};
ITEM.ID = 131;
ITEM.Reference = "food_coffee";
ITEM.Name = 'Coffee';
ITEM.Description = "Short but powerful energy boosts.";
ITEM.Weight = 2;
ITEM.Cost = 35;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_junk/garbage_coffeemug001a.mdl";
ITEM.ModelCamPos = Vector(48... |
Locales['nl'] = {
['open_safe_items'] = 'Druk op ~INPUT_CONTEXT~ om de kluis van ~y~%s~s~ te openen',
['open_safe_weapons'] = 'Druk op ~INPUT_CONTEXT~ om de kluis met wapens van ~y~%s~s~ te openen',
['open_wardrobe'] = 'Druk op ~INPUT_CONTEXT~ om de kledingkast van ~y~%s~s~ te openen',
['open_vehicles']... |
data:extend(
{
{
type = "item-subgroup",
name = "crash-site",
group = "production",
order = "x"
}
})
data:extend(
{
{
type = "item",
name = "crash-site-lab-broken",
icon = "__base__/graphics/icons/crash-site-lab-broken.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "crash-s... |
local enabled = false
local tooltip = nil
local function Toggle()
enabled = not enabled
if enabled then
Vimp_Print("Mouse tracking enabled!")
else
Vimp_Print("Mouse tracking disabled!")
end
end
local function Tooltip(region)
local owner = GameTooltip:GetOwner()
if not GameToolt... |
--
-- func_cpfit.lua An example of input file for ex_levmar.exe
-- It shows the possiblity of complex operations such as file loading,
-- debug output, different kinds of derivatives.
--
-- (C) 2016-2017 Alexey Voskov (alvoskov@gmail.com)
-- License: MIT (X11) license
local env, Texp, Cpexp = nil, nil, nil -- Data s... |
--处理技能的打断逻辑
--handle skill lifetime
local ECS = require "ECS"
local skynet = require "skynet"
local SkillInterruptSys = ECS.BaseClass(ECS.ComponentSystem)
ECS.TypeManager.RegisterScriptMgr("UMO.SkillInterruptSys", SkillInterruptSys)
function SkillInterruptSys:OnCreateManager( )
ECS.ComponentSystem.OnCreateManager(se... |
do
local addon, namespace = ...
_G[addon] = _G[addon] or {}
setfenv(1, setmetatable(namespace, { __index = _G }))
end
--BlankSlate should never remove these globals.
keepers = {
--Lua globals
_G = true,
_VERSION = true,
--Lua library tables
bit = true,
coroutine = true,
math = true,
string = true,
table =... |
package("glx")
set_homepage("https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glXIntro.xml")
set_description("an extension to the X Window System core protocol providing an interface between OpenGL and the X Window System")
on_fetch(function (package, opt)
if opt.system then
... |
--!A cross-platform build utility based on Lua
--
-- 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... |
local TestCase, Tamplier, fs = require "luv.dev.unittest".TestCase, require "luv.templaters".Tamplier, require "luv.fs"
local File = fs.File
module(...)
return TestCase:extend{
__tag = ...,
testFileName = "/tmp/fgasu2345sfafasdf",
setUp = function (self)
self.t = Tamplier()
end,
tearDown = function (self)
se... |
require("gameData/gameData");
local UserCacheInfo = class(GameData);
UserCacheInfo.getInstance = function()
if not UserCacheInfo.s_instance then
UserCacheInfo.s_instance = new(UserCacheInfo);
end
return UserCacheInfo.s_instance;
end
UserCacheInfo.releaseInstance = function()
delete(UserCacheIn... |
local testing = require('testing')('globals')
local assert = require('assert')
local process = require('process')
local ffi = require('ffi')
local net = require('net')
local sched = require('sched')
local stream = require('stream')
local util = require('util')
testing("sf", function()
assert.equals(sf("Hello, %s", ... |
local ffi = require "ffi"
ffi.cdef [[
/******* SHA1 *******/
unsigned char *SHA1(
const unsigned char *d,
size_t n,
unsigned char *md);
/******* MD5 *******/
unsigned char *MD5(
const unsigned char *d,
size_t n,
unsigned char *md);
/******* RANDOM *******/
typedef unsigned long BN_ULON... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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 dl = require 'dataload._env'
-- Temporarily changes the current working directory to call fn,
-- returning its result.
function dl.withcwd(path, fn)
local curdir = lfs.currentdir()
lfs.chdir(path)
local res = fn()
lfs.chdir(curdir)
return res
end
-- Downloads srcurl into dstdir.
-- If existfile ... |
local Plugin = script.Parent.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local RoactRodux = require(Libs.RoactRodux)
local Utility = require(Plugin.Core.Util.Utility)
local Constants = require(Plugin.Core.Util.Constants)
local ContextGetter = require(Plugin.Core.Util.ContextGetter)... |
--- === cp.apple.finalcutpro.timeline.Appearance ===
---
--- Timeline Appearance Module.
local require = require
local just = require "cp.just"
local axutils = require "cp.ui.axutils"
local CheckBox = require "cp.ui.CheckBox"
local Popover = require "cp.ui.Popover"
... |
require("metaconfig")
require("evalpattern")
require("screenshot")
require("lib/rand")
require("migrations")
local get_tile = nil
local force_initial_water = false
local function read_settings()
local s = {}
for i, setting in ipairs(meta.settings) do
local name = setting[1]
local value = setti... |
local ComponentBase = cc.import(".ComponentBase")
local TiledMapComponent = cc.class("cc.TiledMap", ComponentBase)
function TiledMapComponent:ctor(node)
TiledMapComponent.super.ctor(self)
self.node = node
end
function TiledMapComponent:onLoad(target)
local node = self.node
if not node then return end... |
local bit=require"bit" local bor=bit.bor local bxor=bit.bxor local band=bit.band local rshift=bit.rshift local arshift=bit.arshift local lshift=bit.lshift local p=require"md5p2" local binl=p.binl
local function binl2rstr(input) local i local output={} local length32=#input*32 for i=0,length32-1,8 do table.insert(output... |
setenv("BAD_FUNC","1.0")
unknownFunc("Bad_arg")
|
local ScreenGui = Instance.new("ScreenGui")
local main = Instance.new("Frame")
local line = Instance.new("Frame")
local discord = Instance.new("TextLabel")
local TextLabel = Instance.new("TextLabel")
local ImageLabel = Instance.new("ImageLabel")
local title = Instance.new("TextLabel")
local xray = Instance.new("TextBut... |
--[[
A Pandoc filter for the Journal of Statistical Software template
This filter performs the following actions:
- store plain keywords in a pandoc variable named keywords-plain
- calculate the rank for each author
- build the DOI from the volume and issue parameters and store it in a variable name... |
os.mode = 'dev'
local extension = require "meiru.extension"
local meiru = require "meiru.meiru"
---------------------------------------
--router
---------------------------------------
local router = meiru.router()
router.get('/index', function(req, res)
local data = {
topic = {
title = ... |
--Input event for mouse clicks
local function input(event)
local top = SCREENMAN:GetTopScreen()
if event.DeviceInput.button == "DeviceButton_left mouse button" then
if event.type == "InputEventType_Release" then
if GAMESTATE:IsPlayerEnabled(PLAYER_1) then
if isOver(top:GetChild("Overlay"):GetChild("PlayerAva... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/Items/BoxMRounds.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetCollisionGroup(COLLISION_GROUP_NONE)
local phys = self:Ge... |
require "Reloading/ISReloadableWeapon"
require "Reloading/ISReloadableMagazine"
---@class ISSemiAutoWeapon : ISReloadableWeapon
ISSemiAutoWeapon = ISReloadableWeapon:derive("ISSemiAutoWeapon");
--************************************************************************--
--** ISSemiAutoWeapon:initialise
--**
--******... |
/*==============================================================================================
Expression Advanced: Compiler -> Init.
Purpose: The core of the compiler.
Creditors: Rusketh, Oskar94
==============================================================================================*/
local LEMON = LEMON
... |
function on_tick_deployer( uid )
local deployer = global.recursive.deployers[ uid ]
--this rebuilds deployer if a part is removed/broken
if deployer.name == "deployer-combinator" then
if not ( global.recursive.chests[ uid ] and global.recursive.outputs[ uid ] ) then
build_combinator( uid )
end
... |
-----------------------------------
-- Area: Throne Room
-- Mob: Shadow of Rage
-- Mission 9-2 BCNM Fight
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
function onEventUpdate(player, csid, option)
-- printf... |
--
-- Author: Alexey Melnichuk <mimir@newmail.ru>
--
-- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of Lyre library.
--
---------------------------------------------------------------------
-- Constants, to be configure... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "ISUI/ISPanel"
---@class RWMSubEditPreset : ISPanel
RWMSubEditPreset = ISPanel:derive(... |
local timerLoadAllElevators = 30000
mysql = exports.mrp_mysql
addEvent("onPlayerInteriorChange", true)
-- Defines
INTERIOR_X = 1
INTERIOR_Y = 2
INTERIOR_Z = 3
INTERIOR_INT = 4
INTERIOR_DIM = 5
INTERIOR_ANGLE = 6
INTERIOR_FEE = 7
INTERIOR_TYPE = 1
INTERIOR_DISABLED = 2
INTERIOR_LOCKED = 3
INTERIOR_OWNER = 4
INTERIOR... |
data:extend({
--Item
{
type = "item",
name = "5d-artillery",
icon = "__5dim_battlefield__/graphics/icon/artillery.png",
flags = {"goes-to-quickbar"},
icon_size = 32,
subgroup = "vehicles-arty",
order = "a",
place_result = "5d-artillery",
stack_size = 1
},
{
type = "projecti... |
local S = technic.getter
technic.register_recipe_type("compressing", { description = S("Compressing") })
function technic.register_compressor_recipe(data)
data.time = data.time or 4
technic.register_recipe("compressing", data)
end
local recipes = {
{"mcl_core:snowblock", "mcl_core:ice"},
{"mcl_core:san... |
MinArchRaceConfig = {};
for i=1, ARCHAEOLOGY_NUM_RACES do
MinArchRaceConfig[i] = {};
end
MinArchRaceConfig[ARCHAEOLOGY_RACE_DRUSTVARI] = {
texture = "Interface\\Archeology\\Arch-Race-Drustvari",
fragmentCap = 200,
};
MinArchRaceConfig[ARCHAEOLOGY_RACE_ZANDALARI] = {
texture = "Interface\\Archeology\\Arch-Race-Za... |
Player = Entity:extend()
function Player:new()
Player.super.new(self)
end
function Player:move(dt)
print(self.x)
print(self.speed)
if love.keyboard.isDown("right") and self.x < ScreenSizeX - self.radius then
self.x = self.x + self.speed * dt;
end
if love.keyboard.isDown("left") and self.x > self.rad... |
--機巧猪-伊服岐雹荒神
--
--Script by XyleN5967
function c101105018.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101105018,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,101105018)
e1:SetCondit... |
-- we have a different shared lib depending on whether we're shared-runtime (launcher)
-- or dll-runtime (rest of game)
local function do_shared(libc)
project(libc and "SharedLibc" or "Shared")
targetname(libc and "shared_libc" or "shared")
language "C++"
kind "StaticLib"
if libc then
staticrunti... |
require "box2d"
function rgb(r, g, b)
return ((r*256)+g)*256+b
end
Mechanism = Mechanism or Core.class(Sprite)
function Mechanism:onEnterFrame()
self.world:update()
local canvas=self.canvas
canvas:clear()
canvas:beginPath()
canvas:setLineStyle(20, 0xB63E41)
canvas:moveTo(self.zero:getPosition())
canvas:li... |
class "sTrails"
function sTrails:__init()
self:initMessages()
Events:Subscribe("PlayerChat", self, self.onPlayerChat)
end
function sTrails:initMessages()
self.messages = {}
self.messages["Not In Vehicle"] = "You need to be in a vehicle to change trail."
self.messages["Incorrect Usage"] = "Usage: /trail 0-255 0-2... |
require "base.util.functions"
require "base.util.table"
require "base.util.string"
|
_G.package.path=_G.package.path..[[;./?.lua;./?/?.lua]]
assert( require 'premake.quickstart' )
make_solution 'lua_cpp_tryout'
includedirs {
'./LuaBridge-1.0.2',
'./LuaState/include'
}
local OS = os.get()
local settings = {
includedirs = {
linux = {'/usr/include/lua5.1'},
windows = { [[C:\\luarocks\\2.1\\inc... |
return {
version = "1.4",
luaversion = "5.1",
tiledversion = "1.4.3",
orientation = "orthogonal",
renderorder = "right-down",
width = 30,
height = 15,
tilewidth = 16,
tileheight = 16,
nextlayerid = 5,
nextobjectid = 2,
properties = {},
tilesets = {
{
name = "wall",
firstgid = 1... |
-- BassieOS_Info { type = 11, name = 'Stop', description = 'Stop BassieOS', versionNumber = 30, versionString = '3.0', icon = 'BIMG0403%1e%1e%1e%1eS0eT0eO0eP0e%1e%1e%1e%1e', author = 'Bastiaan van der Plaat' }
if BassieOS == nil then
print('This program needs BassieOS to run')
return
end
BassieOS.StopRunning()... |
local Layer = require("dev.demo.scenes.layers.Layer")
require("dev.demo.scenes.layers.LayerIds")
local winSize = cc.Director:getInstance():getWinSize()
cc.exports.PopupLayer = class("PopupLayer",Layer)
PopupLayer.POPUP_STYLE_ONE = 1
PopupLayer.POPUP_STYLE_TWO = 2
PopupLayer.POPUP_STYLE_THREE = 3
PopupLayer.POPUP_ST... |
theme = {}
theme.font = "xos4 Terminus 9"
theme.bg_normal = "#222222"
theme.bg_focus = "#666666"
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#111111"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#efefef"
theme.fg_focus = "#ffffff"
theme.fg_urgent = "#ffffff"
them... |
require("compiler-core/src/parse")
require("compiler-core/src/transform")
require("compiler-core/src/codegen")
require("@vue/shared")
require("compiler-core/src/transforms/vIf")
require("compiler-core/src/transforms/vFor")
require("compiler-core/src/transforms/transformSlotOutlet")
require("compiler-core/src/transforms... |
vim.cmd('packadd paq-nvim')
local paq = require'paq-nvim'.paq
paq{'savq/paq-nvim', opt = true}
paq 'RishabhRD/nvim-lsputils'
paq 'RishabhRD/popfix'
paq 'arcticicestudio/nord-vim'
paq 'famiu/nvim-reload'
paq 'folke/lsp-colors.nvim'
paq 'folke/lsp-trouble.nvim'
paq 'folke/which-key.nvim'
paq 'hoob3rt/lualine.nvim'
paq ... |
local DEFAULT_WORD_WRAP = 400
local LABEL_ALIGN = {
Left = "left",
Center = "center",
Right = "right"
}
local Label = {
xPosition = 0,
yPosition = 0,
alignment = LABEL_ALIGN.Left,
wordWrapLimit = DEFAULT_WORD_WRAP,
color = nil,
text = ""
}
Label.__index = Label
function Label:new... |
-- Health modification generic class
--
local PeriodicAuraMonsterBuff = class()
function PeriodicAuraMonsterBuff:on_buff_added(entity, buff)
local json = buff:get_json()
self._tuning = json.script_info
if not self._tuning or not self._tuning.buffs then
return
end
self._entity = enti... |
function throwPot(player)
local speed = 128
player:changeState('idle')
player.pot.projectile = true
if player.direction == 'left' then
player.pot.dx = -speed
elseif player.direction == 'right' then
player.pot.dx = speed
elseif player.direction == 'up' then
player.pot.dy... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BLACKSMOKE)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDAXE)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
local condition = Condition(CONDITION_PARALYZE)... |
--
-- rust 1.58.1 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Other"
-- "Description: Rust language empowering everyone to build reliable and efficient software."
-- "Keywords: singularity utilities"
whatis("Name: Rust")
whatis("Version: 1.58.1")
whatis("Category: Other")
whatis("Descr... |
smart_villages.forms = {}
function smart_villages.forms.show_inv_formspec(self, playername)
local home_pos = {x = 0, y = 0, z = 0}
if self:has_home() then
home_pos = self:get_home():get_marker()
end
home_pos = minetest.pos_to_string(home_pos)
local formstring = "size[8,9]"
.. default.gui_bg
.. default.gui_b... |
tigris.magic.register_spell("tigris_magic:lesser_antigravity", {
description = "Lesser Antigravity",
longdesc = "Greatly reduces the effects of gravity for several seconds.",
cost = {mana = 50},
emblem = "action",
color = "#303",
overlay = "tigris_magic_antigravity.png",
on_use = function(it... |
lua_interpreter = [[resty]]
lib_modules_path = [[/lib/lua/]]..lua_version
variables = {
LUAROCKS_PREFIX = [[/usr]]
}
|
local E = unpack(ElvUI) -- Import Functions/Constants, Config, Locales
local qrcodeText, qrcodeText2
--抄自大脚,脱库修改
local instanceT = {
-- [557] = "http://wow.178.com", -- 德拉诺
[477] = "http://wow.tuwan.com/58200/", -- 悬槌堡
[457] = "http://wow.tuwan.com/48401_8/", -- 黑石铸造厂
}
local function init()
for y=1,50... |
local unpack = table.unpack or unpack
do
local std = require 'specl.std'
local spawn = require 'specl.shell'.spawn
local objdir = spawn('./build-aux/luke --value=objdir').output
package.path = std.package.normalize (
'./lib/?.lua',
'./lib/?/init.lua',
package.path
)
package.cpath ... |
local initialised = false
local playerServerId = GetPlayerServerId(PlayerId())
local unmutedPlayers = {}
local gridTargets = {}
local radioTargets = {}
local callTargets = {}
local speakerTargets = {}
local nearbySpeakerTargets = {}
local resetTargets = false
local playerChunk = nil
local voiceTarget = 2
local vehicleT... |
local keymap = require('cmp.utils.keymap')
local misc = require('cmp.utils.misc')
local feedkeys = {}
feedkeys.call = setmetatable({
callbacks = {},
}, {
__call = function(self, keys, mode, callback)
if vim.fn.reg_recording() ~= '' then
return feedkeys.call_macro(keys, mode, callback)
end
local... |
local app = require("./luz/app").app:new()
local JSON = require('rapidjson')
app:get('/echo/:msg', function(params)
return JSON.encode({ msg = params.msg})
end)
app:listen({port=8002})
print("Http Server listening at http://0.0.0.0:8002/echo/:msg") |
--[[
The MIT License (MIT)
Copyright (c) 2015-2018 Xaymar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify,... |
local next_file_load = os.time() + math.random(60500, 90500)
local player_ranks
local no_powers
local unbind
local bindNecessary
local NewBadgeInterface
local to_save = {}
local files = {
--[[
File values:
- maps (1)
- ranks (1)
- chats (1)
- ranking (2)
- weekranking (2)
- lowm... |
hook.Add("XYZShitDBConnected", "xOrgsDB", function()
XYZShit.DataBase.Query(string.format("SELECT * FROM orgs;"), function(cb)
if cb and cb[1] then
local function genInvite(id)
local inv = XYZShit:RandomString(6)
if XYZ_ORGS.Core.Invites[inv] then
genInvite(id)
return
end
XYZ_ORGS.Core.... |
--Necro Litch Princess
function c700014.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetDescription(aux.Stringid(700014,0))
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c700014.condtion1)
... |
--- 事件绑定工具
-- @module Event Connects Handler
-- @copyright Lilith Games, Avatar Team
-- @author Yuancheng Zhang, Yen Yuan
local EventUtil = {}
--- 检查是否为Json化的字符串
-- @param _str @string 输入的字符串
-- @return @boolean true: json table string
local function IsJsonTable(_str)
return type(_str) == 'string' and string.endsw... |
-- 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:
-- -----... |
local Forest = File:extend()
Forest.step = 1
function Forest:new(goal)
Forest.super.new(self, "forest")
Art.new(self, "forest")
self.animals = {"boar", "bear", "snake", "bat"}
if goal then
Forest.goal = goal
end
self:setText([[[username] walked through the forest.]])
self:setOptions({
{
text = "Conti... |
local mapw, maph = 64, 64
function love.load()
-- setup the scene
love.scene = require("scene.main")
view = love.scene.newView()
view:setBackgroundRGB(255, 0, 0)
img = love.graphics.newImage("block.png")
for x = 1, mapw do
for y = 1, maph do
local s = view:newSprite(x*16, y*16)
s:setGraphic... |
-- Copyright 2004-present Facebook. All Rights Reserved.
require 'cudnn'
local List = require 'pl.List'
local ffi = require 'ffi'
local ConvolutionBiasFFI = ffi.load('torch_fb_fbcunn_convolution_bias')
local function errorIf(cond, msg)
if cond then
error(msg)
end
end
local function errorIfNot(cond, msg)
... |
-- Daily event
DailyEvent = Object:extend()
function DailyEvent:new()
-- Customization
self.event_name = "Uninitialized Daily Event"
self.event_success_text = "This event wasn't initialized correctly, but it was a success."
self.event_critical_text = "This event wasn't initialized correctly, but it was... |
-- 8
--2 O 1
-- 4
autotiles = {
-- snow
[1] = {
[0] = 32,
[1] = 52,
[2] = 54,
[3] = 53,
[4] = 39,
[5] = 33,
[6] = 35,
[7] = 34,
[8] = 55,
[9] = 49,
[10] = 51,
[11] = 50,
[12] = 48,
[13] =... |
require"filesystem"
function newDataset( dir )
local tsvDir = dir .. "_TSV"
local filenames = getImages( dir )
NUMBER_OF_FILES = #filenames
local dataSet_mt = { __index = function( tbl, k )
if k=="entry" then
return tbl[tbl.index]
elseif k=="hmScale" then
return h/tbl[tbl.index].mask.h
end
local nam... |
RegisterNetEvent('rg_losowanie:mainEvent')
AddEventHandler('rg_losowanie:mainEvent', function(id, type)
local myId = PlayerId()
local playerId = GetPlayerFromServerId(id)
local monetaRandom, kostkaRandom = math.random(1, 2), math.random(1, 6)
local monetaText
if monetaRandom == 1 then
... |
Tab1 = { key1 = "val1", key2 = "val2", "val3" ,"yinbaoheihei"}
for k, v in pairs(Tab1) do
print(k .. " - " .. v)
end
Tab1.key1 = nil
for k, v in pairs(Tab1) do
print(k .. " - " .. v)
end |
assert( fct1(5, "blabla"));
assert(not fct1(8, "blabla"));
assert(not fct1(5, "pouetpouet"));
local l = require("some.thing");
assert( l.fct2(5, "blabla"));
assert(not l.fct2(8, "blabla"));
assert(not l.fct2(5, "pouetpouet"));
|
require "behaviours/wander"
require "behaviours/chaseandattack"
require "behaviours/panic"
require "behaviours/attackwall"
require "behaviours/minperiod"
require "behaviours/leash"
require "behaviours/faceentity"
require "behaviours/doaction"
require "behaviours/standstill"
local HoundBrain = Class(Brain, function(sel... |
local wk = require("which-key")
local which_key_map = {}
which_key_map.b = {
["name"] = "+file",
["["] = { "<cmd>prev<cr>", "Find File" },
["]"] = { "<cmd>next:q<cr>", "Find File" },
["b"] = { "<cmd>Buffers<cr>", "Buffers" },
}
which_key_map.f = {
["name"] = "+file",
["f"] = { "<cmd>Files<cr>", "Find Fil... |
local common = require('test_scripts/Smoke/commonSmoke')
local function reverseArray(arr)
local rev = {}
for i=#arr, 1, -1 do
rev[#rev+1] = arr[i]
end
return rev
end
common.reqParams = {
AddCommand = {
mob = { cmdID = 1, vrCommands = { "OnlyVRCommand" }}
},
AddSubMenu = {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.