content stringlengths 5 1.05M |
|---|
--坠星交辉
local m=14000284
local cm=_G["c"..m]
cm.card_code_list={14000260}
function cm.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.con)
e1:SetTarget(cm.tg)
e1:SetOp... |
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "TaskHelper"
obj.version = "0.0.1"
obj.author = "Jacob Williams <jacobaw@gmail.com>"
obj.license = "MIT - https://opensource.org/licenses/MIT"
obj.homepage = "https://github.com/brokensandals/motley-hammerspoons"
--- TaskHelper.logger
--- Variable
--- An instanc... |
local GetSpellBookItemTexture = GetSpellBookItemTexture;
local VUHDO_getHealthBar;
local VUHDO_getBarIcon;
local VUHDO_getBarIconTimer;
local VUHDO_getBarIconCounter;
local VUHDO_getBarIconCharge;
local VUHDO_getOrCreateCooldown;
local VUHDO_strempty;
local sHotConfig;
local sHotPos;
local sBarsPos;
local sBarColors;... |
fx_version "bodacious"
games {"gta5"}
client_script "src/*.lua" |
local expr1 = {}
local exprtrail = {}
--local json = require'json'
local function expr(ast,vm,al)
local i
local str = P.select(expr1,ast[0],vm,al)
str = tostring(str)
for i=1,ast.last,1
do str = P.select(exprtrail,ast[i],vm,al,str) end
return str
end
function expr1.chain(...) return "("..expr(...)..")" en... |
function checaColisao( x1, y1, w1, h1, x2, y2, w2, h2 )
return x1 < x2 + w2 and x2 < x1 + w1 and y1 < y2 + h2 and y2 < y1 + h1
end
function colisoes()
for i, meteor in ipairs( meteors ) do
if meteor.posy < 550 and checaColisao( meteor.posx, meteor.posy, 120, 150, dinossaur.posx, dinossaur.posy, 60, 113 ... |
-- simplified perlin noise
-- by DaPorkchop_
-- didn't feel like trying to port something so i wrote it myself. jeez. why do i do this?!?!?!?
NOISE_CACHE = {}
function InitNoise()
local path = LOCAL_FOLDER .. "/noise.json"
if (cFile:IsFile(path)) then
NOISE_CACHE = cJson:Parse(cFile:ReadWholeFile(path... |
local RelationItem = require('RelationItem')
local Relations = class('Relations')
function Relations:ctor(owner)
self._owner = owner
self._items = {}
end
function Relations:add(target, relationType, usePercent)
local cnt = #self._items
for i=1,cnt do
local item = self._items[i]
if item.target ==... |
return {'haha','hahn'} |
TOOL.Name = "SDKServer"
TOOL.Directory = "../SDK"
TOOL.Kind = "Library"
TOOL.TargetDirectory = "../lib"
TOOL.Defines = {
"NDK_BUILD",
"NDK_SERVER"
}
TOOL.Includes = {
"../SDK/include",
"../SDK/src"
}
TOOL.Files = {
"../SDK/include/NDK/**.hpp",
"../SDK/include/NDK/**.inl",
"../SDK/src/NDK/**.hpp",
"../SDK/sr... |
local base16 = require("base46").get_colors "base_16"
local colors = require("base46").get_colors "base_30"
return {
-- nvim cmp
CmpItemAbbr = { fg = colors.white },
CmpItemAbbrMatch = { fg = colors.blue, bold = true },
CmpBorder = { fg = colors.grey },
CmpDocBorder = { fg = colors.grey },
-- cmp it... |
package.path = package.path .. ";scripts/?.lua"
if table.unpack == nil then
table.unpack = unpack
end
require "bit"
require "aeslua"
require "lfs"
local util = require "aeslua/util"
local source_path = arg[1]
local target_path = arg[2]
local key = arg[3]
function string.fromhex(str)
return (str:gsub(
... |
Restraints = Restraints or {}
Restraints.players = {}
--[[ Functions: Restraints ]]--
function Restraints:UseItem(source, target, slotId)
-- Get player container id.
local containerId = exports.inventory:GetPlayerContainer(source, true)
if not containerId then return false end
-- Get item in slot.
local item = e... |
return {
_fold = true,
_id = "gameFSM1",
height = "$fill",
width = "$fill",
_children = { {
FSMNode_default = 0,
FSMNode_state = "INIT",
_fold = true,
_id = "fSMNode1",
_isWidget = 0,
_lock = 0,
_type = "gk/layout/FSMNode",
height = 30,
scaleX = "$m... |
while true do
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
wait()
end |
LinkLuaModifier("modifier_destroyer_frenzy", "heroes/hero_destroyer/frenzy.lua", LUA_MODIFIER_MOTION_NONE)
destroyer_frenzy = class({
GetIntrinsicModifierName = function() return "modifier_destroyer_frenzy" end,
})
modifier_destroyer_frenzy = class({
IsPurgable = function() return false end,
})
function modifier_... |
local lush = require 'lush'
local hsl = lush.hsl
-- Original colorscheme from: https://github.com/gruvbox-community/gruvbox
-- Lush variant from: https://github.com/npxbr/gruvbox.nvim
local colors = {
dark0_hard = hsl(195, 6, 12),
dark0 = hsl(0, 0, 15),
dark0_soft = hsl(20, 3, 19),
da... |
slot0 = class("MapEventStoryObstacleCellView", import("view.level.cell.StaticCellView"))
slot0.GetOrder = function (slot0)
return ChapterConst.CellPriorityAttachment
end
slot0.Update = function (slot0)
slot2 = slot0.info.row
slot3 = slot0.info.column
slot4 = slot0.info.data
slot6 = pg.map_event_template[slot0.in... |
PLUGIN.name = "Fantasy Classes"
PLUGIN.author = "Zadkiel"
PLUGIN.desc = ""
nut.classes = nut.classes or {}
nut.classes.list = nut.classes.list or {}
/*
nut.command.add("classes", {
adminOnly = true,
syntax = "",
onRun = function(client, args)
net.Start( "openClassMenu" )
net.Send( client )
en... |
-- Copyright (C) 2018 Jérôme Leclercq
-- This file is part of the "Not a Bot" application
-- For conditions of distribution and use, see copyright notice in LICENSE
local http = require("coro-http")
local json = require("json")
local querystring = require("querystring")
local timer = require("timer")
local decode, en... |
object_mobile_azure_cabal_kwaila = object_mobile_shared_azure_cabal_kwaila:new {
}
ObjectTemplates:addTemplate(object_mobile_azure_cabal_kwaila, "object/mobile/azure_cabal_kwaila.iff")
|
--[[
Copyright (c) 2014 Jon Maur
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, merge, publish, distribute, subl... |
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Dorian Nowakowski <burekssss3@gmail.com>
Discord: Rick#0157
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
local sounds = {}
local resource = {"sarp_items", "sarp_doors"}
function sounds.onStart()
for i, v in ipairs(resource) ... |
EnmaU
ASDQ
DDSC
SAX
SDQ
DDASDQ
SSADQ
SASDQ
WADQ AAQ DDQ WWQ SSQ ADQ
Enma
ASDQ after Q
SC
DDSQ
DDSX
DDWX
DSADDQ
ASDWWQ
DASQ
SDDQ
SSDDQ
ADC
AWC
ASC
SSZ
SZ or AZ
DC
C
X
Z
ADADADQ
Enma2
ASDQ after Q
Q after C
Q after SC
DDSX
DSADDQ
WC
X
Z
E
Action after E.
SWSQ
SDSQ
ADDQ
ASDWWQ
C
X
jump DDQ
DDC DDQ
DDX
DDZ
Nightshade
A... |
Gamestate.game = Gamestate.new()
local state = Gamestate.game
local score = 0
local cooldown = 2
local lives = 10
local words = {}
local timer = 0
local explosions = {}
local actors = {}
local marathon = false
local combo = 0
local paused = false
function state:enter(prev, s)
-- In case we would like to be able to se... |
local skynet = require "skynet"
local client = ...
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIENT,
pack = function(...) return ... end,
unpack = skynet.tostring,
dispatch = function (session, address, text)
-- It's client, there is no session
skynet.send("LOG", "text", "client message :"... |
--[[
Add a step parameter to the iterator from the previous exercise. Can you still implement it as a stateless iterator?
]]
function fromto_closure(from, to, step)
local i = from
step = step or 1
return function()
local _i = i
i = i + step
if _i <= to then
return _i
else
return nil... |
local util = require 'util'
local M = { }
M.DEEPMERGE_MAXDEPTH = 5
local mergeConflict = { }
function mergeConflict.error(dst, t, k)
error(("tabutil.merge: conflict at key '%s', values '%s', '%s'").format(
k, dst[k], t[k]))
end
function mergeConflict.t(dst, t, k)
return t[k]
end
mergeConflict.s... |
local SpineTestLayer1 = nil
--------------------------------------------------------------------
--
-- SpineTestLayer1
--
--------------------------------------------------------------------
SpineTestLayer1 = function()
local ret = cc.Layer:create()
local s = cc.Director:getInstance():getWinSize()
local... |
local taskman=require 'taskman'
local mt=debug.getmetatable(taskman.now())
function mt.__index(tbl,key)
if key == 'parts' then
return function(self) return taskman.timestamp_parts(self) end
end
end
local oldnow = taskman.now
mt = {}
function mt.__index(tbl,key)
if key == 'now' then return oldnow() end
... |
local Level_Sequences = {
-- level 1
{
-- wave 1
{
{"claws", 0, 100},
{"claws", 0, 300},
{"claws", 0, 500},
{"claws", 0, 800},
{"claws", 0, 1100},
},
-- wave 2
{
{"claws", 0, 200},
{"smallgun", 0, 600},
},
-- wave 3
{
{"biggun", 0, 100}... |
-----------------------------------
-- Ability: Velocity Shot
-- Increases attack power and speed of ranged attacks, while reducing attack power and speed of melee attacks.
-- Obtained: Ranger Level 45
-- Recast Time: 5:00 minutes
-- Duration: 2 hours
-----------------------------------
require("scripts/globals/setting... |
-- vim : ft=lua ts=2 sw=2 et:
Coc={}
function Coc.all( eq1,eq2,pem,nem,sf,between,lohi,posints)
function eq1(x,m,n) return (x-3)*from(m,n)+1 end
function eq2(x,m,n) return (x-6)*from(m,n) end
function pem(a,b) return posints(a or 1, b or 5,
function(x) return eq1(x, 0.073, ... |
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Dorian Nowakowski <burekssss3@gmail.com>
Discord: Rick#0157
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
PoliceRadar = inherit(Singleton)
function PoliceRadar:constructor(...)
return self:init(...)
end
function PoliceRadar:... |
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
|
local Packages = script.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local withTripStatus = require(script.Parent.withTripStatus)
local function TripInterface(props)
return withTripStatus(function(tripStatus)
if tripStatus == nil then
return nil
end
return Roact.createElement("TextLabel", {
... |
function love.conf(t)
t.title = "Joypad"
t.console = true
t.window.width = 400
t.window.height = 200
t.window.resizable = true
end |
--悦听音乐台
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
fltBtn.addView(loadlayout({
RelativeLayout;
layout_height="fill";
layout_width="fill";
background="#00FFFFFF";
{
CardView;
layout_marginRight="4dp";
layout_alignParentRight="true... |
target("PlayMusic")
set_group("Examples")
set_kind("binary")
add_deps("NazaraAudio")
add_files("main.cpp")
|
-- Objects
local settingsDir = script.Settings
function getSetting (name)
return settingsDir and settingsDir:FindFirstChild(name) and settingsDir[name].Value
end
-- Variables
local damageHeight = getSetting("Damaging height") or 14 -- The height at which the player will start getting damaged at
local lethalHeight = ... |
--- language-specific compiler settings
--- C++ options
-- C++03 settings
local cpp03_buildoptions = {
flags = {
"Cpp03",
},
clang = {
"-std=gnu++03",
},
gcc = {
"-std=gnu++03",
},
vs = {
"/std:c++03"
}
}
local cpp03_linkoptions = {
clang = {
"-stdlib=libc++",
},
gcc = {
"-stdlib=libc++",
},
... |
Error = {}
--
--
--
function Error:new()
local Private = {}
Private.isError = false
--------------------------------------------------------------------
local Public = {}
--
--
--
function Public:getIsError()
return Private.isError
end
--
--
--
function Public:... |
---------------------------------------------------
-- Colossal_Blow
-- Deals damage to a single target.
--
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
----------------------------------------------... |
local UISystemHelper = {}
UISystemHelper.MainBackLayer = nil
UISystemHelper.MainUILayer = nil
UISystemHelper.MainFrontLayer = nil
UISystemHelper.MainTopLayer = nil
UISystemHelper.EffectUILayer = nil
UISystemHelper.GuideUILayer = nil
UISystemHelper.TopUILayer = nil
UISystemHelper.TopMostUILayer = nil
function UISystem... |
--- Megatileset plugin for STI
-- @module megatileset
-- @author Iori Branford
-- @copyright 2020
-- @license MIT/X11
local LG = love.graphics
local function newSpace(x, y, w, h)
return {
x = x, y = y, w = w, h = h
}
end
local function findSubspace(space, w, h)
for i = 1, #space do
local subspace = findSubspa... |
DefineClass.LandscapeTerraceBuilding = {
__parents = { "LandscapeBuilding" },
construction_mode = "landscape_terrace",
max_boundary = 80,
}
DefineClass.LandscapeTerraceDialog = {
__parents = { "LandscapeConstructionDialog" },
mode_name = "landscape_terrace",
}
DefineClass.LandscapeTerraceController = {
__parent... |
DEFINE_BASECLASS("ma2_proj")
AddCSLuaFile()
ENT.Base = "ma2_proj"
ENT.Damage = 100
ENT.Velocity = 8000
ENT.HullSize = 10
ENT.ParticleAttach = "gm_MA2_tracer_autocannon_lvl1"
ENT.ImpactEffect = "gm_MA2_autocannon_impact_lvl1"
ENT.ImpactSound = Sound("MA2_Weapon.AutocannonHit")
ENT.FireSoun... |
-- Need a noreply version of client_binary api.
-- Also, need to handle opaque's right.
--
memcached_server_binary_proxy = {}
memcached_server.binary.proxy = memcached_server_binary_proxy
local msbp = memcached_server_binary_proxy
local mpb = memcached_protocol_binary
local pack = mpb.pack
local SUCCESS = mpb.respo... |
#!/usr/bin/env cgilua.cgi
-- Basic application bootstraper
local name, path_info = cgilua.splitonfirst(cgilua.script_vpath)
if name == nil or name == "" then
if io.open("index.lua") then
cgilua.handle("index.lua")
elseif io.open("index.lp") then
cgilua.handle("index.lp")
else
error("No script define... |
local board = tonumber(message:sub(1, 2))
local light = tonumber(message:sub(4, 4))
local r = tonumber(message:sub(6, 8))
local g = tonumber(message:sub(10, 12))
local b = tonumber(message:sub(14, 16))
if board == boardID or board == 0 then
if r == 701 and g == 701 and b == 701 then
activateLights(light)
... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author (zacharyenriquee@gmail.com).
--]]
FACTION.name = "Scanner"
FACTION.description = "The flying eyes and ears of the Combine occupation."
FACTION.color = Color(50, 100, 150)
FACTION.isDefault = false
FACTION.isGloballyRecognize... |
require("config")
package.path=package.path..";../Samples/FlexibleBody/lua/?.lua" --;"..package.path
package.path=package.path..";../Resource/classification/lua/?.lua" --;"..package.path
package.path=package.path..";../Samples/QP_controller/lua/?.lua" --;"..package.path
package.path=package.path..";../Samples/classifi... |
include "map_builder_server.lua"
MAP_BUILDER_SERVER.map_builder.use_trajectory_builder_2d = true
MAP_BUILDER_SERVER.map_builder.pose_graph.optimize_every_n_nodes = 99999999999
MAP_BUILDER_SERVER.server_address = "0.0.0.0:50052"
MAP_BUILDER_SERVER.uplink_server_address = "0.0.0.0:50100"
return MAP_BUILDER_SERVER |
local loadingScreen = {}
local sectionList = {}
bgBox = nil
bgBoxSmall = nil
local BOX_WIDTH = 400
local BOX_HEIGHT = 50
local BOX_WIDTH_SMALL = 300
local BOX_HEIGHT_SMALL = 30
function loadingScreen.reset()
sectionList = {}
percentages = {}
end
function loadingScreen.addSection(section)
for k=1, #sectionList+1... |
--[[
##Code wise Preference of loot : Pickpocket > JunkBoxMode > Junkbox without Mode
TODO:
Issues::
There is a bug when accounting junkbox money when junkBoxMode is off
If autoloot is off, user opens junkbox and takes time to loot all items, the money is not accounted.
Even if autoloot is on, while looting if ... |
#!/usr/local/bin/lua
--
--------------------------------------------------------------------------------
-- File: ex01.lua
--
-- Usage: ./ex01.lua
--
-- Description:
--
-- Options: ---
-- Requirements: ---
-- Bugs: ---
-- Notes: ---
-- Author: YOUR NAME (), <>
-- Organ... |
function newNum(elin, lin, actN)
-- num name[1] as[2] value[3] --
vname, vvall = sys.midle(lin, ' as ')
-- A other variable has the same name
if actN[vname] ~= nil then sys.error(elin, 'c', "Another num variable has the same name of this.")
-- If is a number --
elseif isNum(vvall, ac... |
operat1 = {"difference", "sum"}
operat1p = {"difference", "sum"}
operat2a = {"smaller", "larger"}
operat2i = {"smaller", "larger"}
reply = "Numbers are equal." |
return {
{
name = "2015-09-16-132400_init_hmacauth",
up = [[
CREATE TABLE IF NOT EXISTS hmacauth_credentials(
id uuid,
consumer_id uuid,
username text,
secret text,
created_at timestamp,
PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ON hmaca... |
RegisterServerEvent("sfi_simplenotify.getIsAllowed")
AddEventHandler("sfi_simplenotify.getIsAllowed", function()
-- Creating ACE Command Injection
if IsPlayerAceAllowed(source, "sfi.chat") and
-- IsPlayerAceAllowed(source, "sfi.COMMANDNAME") and -- In here you can put the new permission for commands
... |
object_tangible_loot_creature_loot_collections_reb_t3_chewbacca = object_tangible_loot_creature_loot_collections_shared_reb_t3_chewbacca:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_reb_t3_chewbacca, "object/tangible/loot/creature/loot/collections/reb_t3_chewbacca.iff")
|
require "Assets.LuaScripts.Modulus.Main.Control.MainControl" |
function widget:GetInfo()
return {
name = "Build Split",
desc = "Splits builds over cons, and vice versa",
author = "Niobium",
version = "v1.0",
date = "Jan 11, 2009",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
lo... |
-- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide ... |
require 'io'
require 'torch'
local Data = torch.class('io.Data')
function Data:__init(config)
self.batch_size = config.batch_size
self.input_size = config.input_size
self.output_size = config.output_size
self.data = Data._loadCorpus(config.file)
end
function Data._loadCorpus(filename)
local data = {}
l... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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
$Id$
]]--
loc... |
--编程-零 数据爆弹
local m=14000607
local cm=_G["c"..m]
cm.named_with_CodeNull=1
function cm.initial_effect(c)
--burn
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m)
e1:SetCost(c... |
--
-- tests/actions/vstudio/vc2010/test_prop_sheet.lua
-- Validate generation of the property sheet import groups.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_prop_sheet")
local vc2010 = p.vstudio.vc2010
local project = p.project
... |
function slot1(slot0)
slot2 = getProxy(TaskProxy)
slot0.UIlist:make(function (slot0, slot1, slot2)
if slot0 == UIItemList.EventUpdate then
slot4 = slot1:getTaskVO(slot3)
setText(slot2:Find("title/Text"), "PHASE " .. slot1 + 1)
setText(slot2:Find("target/title"), slot4:getConfig("desc"))
setText(slot2:... |
local cfg = xChat.Config
local handler = cfg.Handler
local webhook = cfg.Webhook
local secret = cfg.Secret
hook.Add("Think", "xChat", function()
if SysTime() >= xChat.NextTime then
xChat.GetMessages()
xChat.NextTime = SysTime() + 1
end
end)
hook.Add("PlayerInitialSpawn", "xChat", function(pl)
... |
print("**************toLua调用C#中的协程**************")
local CallDelay = nil
--toLua提供了一些方便开启协程的方法
StartDeley = function ()
--toLua提供的开启协程的方法
StartCoroutine(Delay)
end
Delay = function ()
local t = 1
while true do
--可直接使用类似unity中的协程相关方法
WaitForSeconds(1)
--Yield(0)
--WaitF... |
--- === IFLookupSelection ===
---
--- Show a popup window with the currently selected word in lexico
---
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "IFLookupSelection"
obj.version = "0.1"
obj.author = "IronFeet <ironfeet@hotmail.com>"
obj.homepage = "https://github.com/ironfeet/hammerspoonConfig"
obj.lic... |
-- TestDetails: functionality regarding a single table test in a 'tests' object
local TestDetails = {}
local validTestKeys = {
setup = "function",
cleanup = "function",
test = "function",
args = "table",
argsLists = "table",
skip = "boolean",
focus = "boolean",
}
function TestDetails.HasValidKeys(details)
-- re... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule('Blizzard')
--Lua functions
local _G = _G
local select, unpack, pairs = select, unpack, pairs
--WoW API / Variables
local CreateFrame = CreateFrame
local function SkinIt(bar)
for i=1, bar:Get... |
require "lunit"
module(..., lunit.testcase, package.seeall)
common = dofile("common.lua")
function test()
local crypto = require "luanode.crypto"
local fs = require('luanode.fs')
local path = require('luanode.path')
-- Test Certificates
local caPem = fs.readFileSync(common.fixturesDir .. '/keys/ca1-cert.pem', 'asc... |
require("options")
require("plugins")
require("colorscheme")
-- Plugins
require('lualine').setup()
require('nvim-tree').setup()
require('nvim-treesitter')
require('nvim-autopairs').setup()
|
local screenGui = Instance.new("ScreenGui", game.CoreGui)
screenGui.Name = "Plugin"
local ph = Instance.new("TextButton",screenGui)
ph.BackgroundColor3 = BrickColor.new("Really black").Color --You can change the backround.
ph.BorderColor3 = BrickColor.new("White").Color --You can change the border color.
ph.TextColor3 ... |
local Suite = CreateTestSuite("fritomod.Mapper");
function Suite:TestMapper()
local m = Mapper:New();
local source = {
a = "Foo",
b = "Bar",
c = "Baz"
};
m:SetSource(source);
m:SetMapper(function(data)
if data then
return data:upper();
end;
... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.ui.game_over", function()
require "game.ui"
local game_over = moonpie.ui.components.game_over()
it("has an id of game_over_screen", function()
assert.... |
local sin, floor
do
local _obj_0 = math
sin, floor = _obj_0.sin, _obj_0.floor
end
local help = { }
help.text = "Help"
help.height = 16
help.y = help.height
local move
move = function()
return flux.to(help, 0.48, {
y = help.height + 16
}):ease("cubicin"):oncomplete(function()
return flux.to(help, 0.48, {... |
corvetteRebelPrisonerConvoTemplate = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "corvettePrisonerConvoHandler",
screens = {}
}
not_rescued = ConvoScreen:new {
id = "not_rescued",
leftDialog = "@conversation/corvette_rebel_prisoner_02:s_fc440e0b", --Am I glad to see you! I hea... |
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/UnrestrictedGrabLand.lua#1 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (C) Petroglyph Games, Inc.
--
--
-- ***** ** * *
-- * ** ... |
--[[
I don't want to translate my google script in english.
That's the reason it works in russian language only.
]]
local emb = require("./embed.lua")
local function google(msg)
local err = [[```Markdown
# [RUS] Не введен требуемый запрос!
```]]
if string.len(msg.content) < 8 then msg.channel:send(err... |
require'lspconfig'.jdtls.setup{
cmd = { 'jdtls' },
root_dir = function(fname)
return require'lspconfig'.util.root_pattern('pom.xml', 'gradle.build', '.git')(fname) or vim.fn.getcwd()
end,
on_attach = require('plugs.nvim-lspconfig').on_attach
}
|
WhichKey = require "which-key"
WhichKey.setup {
plugins = {
marks = false,
registers = false,
spelling = { enabled = false },
presets = {
operators = false,
motions = false,
text_objects = false,
windows = true,
z = true,
... |
function onCastSpell(creature, variant)
local position = creature:getPosition()
position:sendMagicEffect(CONST_ME_POFF)
local tile = Tile(position)
if not table.contains(ropeSpots, tile:getGround():getId()) and not tile:getItemById(14435) then
creature:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
e... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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 you_cool = false
if cool then
if you_cool then
local _ = one
else
if eatdic then
local _ = yeah
else
local _ = two
_ = three
end
end
else
local _ = no
end
if cool then
local _ = no
end
if cool then
local _ = no
else
local _ = yes
end
if cool then
wow(cool)
else
... |
local eventName = "generalResearchTraces"
local function CreateProp(model, pos, ang)
local prop = ents.Create("prop_physics")
prop:SetModel(model)
prop:SetPos(pos)
prop:SetAngles(ang)
prop:Spawn()
GM13.Event:SetGameEntity(eventName, prop)
local phys = prop:GetPhysicsObjec... |
-- StreamableUtil
-- Stephen Leitnick
-- March 03, 2021
--[[
StreamableUtil.Compound(observers: {Observer}, handler: ({[child: string]: Instance}, maid: Maid) -> void): Maid
Example:
local streamable1 = Streamable.new(someModel, "SomeChild")
local streamable2 = Streamable.new(anotherModel, "AnotherChild")
... |
local newMazeWindowObject = {}
local t, shakeDuration, shakeMagnitude = 0, 0.5, 5
function CreateMazeWindow ()
return newMazeWindowObject
end
function newMazeWindowObject:Initialize(x, y, width, height, map, startX, startY, rotation, xOff, yOff)
self.X = x
self.Y = y
self.XOff = xOff
self.YOff = y... |
function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
function find_hidden_digits(message)
lookup_table = {}
letters = 'abcdefghij'
for i=1, #letters do lookup_table[letters:sub(i,i)] = i-1 end
for i = 0,9 do lookup_table[tostring(i)] = tostring(i) end
none = true
for i=1, #m... |
-- HACK: work-around for https://github.com/lukas-reineke/indent-blankline.nvim/issues/59
vim.wo.colorcolumn = "99999"
require("indent_blankline").setup {
char = "▏",
use_treesitter = true,
filetype_exclude = {
"help",
"terminal",
"dashboard",
"DiffviewFiles",
"packe... |
--[[
Surface: Keyboard Arturia Keylab 61 Essential
Developer: Thierry Fraudet
Version: 1.3
Date: 19/10/2021
]]
g_lcd_line1_index = 1
g_lcd_line2_index = 2
g_lcd_line1_new_text = ""
g_lcd_line1_old_text = ""
g_lcd_line2_new_text = ""
g_lcd_line2_old_text = ""
g_preset_jog_wheel_index = 36
g_cat_jog_wheel_index = ... |
--[[
version=13
[LICENSE]
Copyright 2022 Liam Collod
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 ... |
local Component = require "class.Component"
local flying = class("smb3.flying", Component)
local FLYINGUPTIME = 16/60 -- time spent in "fly up" state
local FLYTIME = 4.25 -- duration of flight after first jump
local MAXSPEEDFLY = 86.25 -- maximum horizontal velocity while flying
local MAXSPEEDS = {90, 150, 210}
local ... |
-- luacheck: globals insulate setup describe it assert mock
-- luacheck: globals before_each after_each
insulate("On #tables code", function()
local fn = require('iron.util.tables')
describe("#keys", function()
it("should return only the keys of the table", function()
local dt = {head = "z", second = "y... |
local cjson = require 'cjson.safe'
local base = require 'hj212.calc.db'
local siri_data = require 'db.siridb.data'
local siri_series = require 'db.siridb.series'
local data_merge = require 'siridb.data_merge'
local info = base:subclass('siridb.info')
local DB_VER = 1 -- version
function info:initialize(hisdb, poll_i... |
local M = {}
local begin_time = {}
local state = {}
function M.start(id)
begin_time[id or "id_"..math.floor(math.random(0, 10))] = socket.gettime()
return id
end
function M.finish(id)
local t = socket.gettime() - begin_time[id]
print("seconds elapsed: ", id, t)
begin_time[id] = nil
end
function M.register_stat... |
module(..., package.seeall)
require("lua_tda")
tda_to_protege = require "tda_to_protege"
styleMechanism = require "OWLGrEd_UserFields.styleMechanism"
-- function axiom(diagram)
-- local String = ""
-- local tag = lQuery("Tag[key = 'owl_Fields_ImportSpec']"):each(function(obj)
-- if obj:attr("value")~="" and obj:fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.