content stringlengths 5 1.05M |
|---|
do
local input = ""
-- repeat-until is eqv. to do-while
repeat
io.write("> ")
input = io.read()
until true
-- nil and false are the only non-true values
local n = tonumber(input) or 5
n = n > 0 and n or -n -- equivalent to ternary if n > 0 ? n : n
local table = {}
-- numeric for is exact... |
local cjson = require "cjson.safe"
local http = require "resty.http"
local redis = require "resty.redis"
local server = require "spec.support.server"
describe("redis", function()
before_each(server.stop)
after_each(server.stop)
it("issues and renews certificates", function()
server.start({
auto_ssl_pr... |
-- Values used to work out positions
-- local sx = 0.02
-- local sy = 0.08
-- local p = Vector.Create(0.25,-0.1,0)
-- local pe = Vector.Create(-0.25,-0.1,0)
CombatState =
{
Layout =
{
["party"] =
{
{
Vector.Create(0.25, -0.056, 0, 0),
},
{
... |
---@class PillEffect @enum
PillEffect = {}
---
--- -1
PillEffect.PILLEFFECT_NULL = -1
---
--- 0
PillEffect.PILLEFFECT_BAD_GAS = 0
---
--- 1
PillEffect.PILLEFFECT_BAD_TRIP = 1
---
--- 2
PillEffect.PILLEFFECT_BALLS_OF_STEEL = 2
---
--- 3
PillEffect.PILLEFFECT_BOMBS_ARE_KEYS = 3
---
--- 4
PillEffect.PILLEFFECT_EXPLOSIVE_... |
local function decode(bytes)
end
local function encode(values)
end
return { decode = decode, encode = encode }
|
-- Arrays
-- Estructura de datos, => base de datos
-- Guarda datos en forma secuencia o, uno junto al otro
-- *(array)Cajonera -> misCosas*
-- misCosas[4] index(índece)
-- [zapatos] 1
-- [calzones] 2
-- [calcetines] 3
-- [uniforme] 4
-- Puntero (hermanito)
-- -> uniforme
-- SINTAXIS del array
-- nom... |
local respawning = false
-- NumberValue objects
local respawn_time = script.RespawnTime.Value
local object_transparency = script.ObjectTransparency.Value
script.Parent.Transparency = object_transparency
script.Parent.Particles.Enabled = true
function respawn()
respawning = true
script.Parent.Particles.E... |
print("server start")
sv = net.createServer(net.TCP, 50)
local uartmanager = require ("uartmanager")
function receiver(sck, data)
uartmanager.sendData(data)
-- print("data received: ", data , " sck: ", sck)
sck:close()
end
if sv then
sv:listen(80, function(conn)
conn:on("receive", receiver)
conn:send("h... |
-- original run and gather slate v1.0 by Dunagain
-- updated by KarateSnoopy
dofile("common.inc");
dofile("constants.inc");
numSlates = 0
local isMoveU = false;
local isMoveD = false;
local isMoveL = false;
local isMoveR = false;
function clearMoveKeys()
if( isMoveD ) then
srKeyUp(VK_DOWN);
is... |
name = "Preserve Food Together"
version = "1.0.2"
description = "Version " .. version .. "\n\nUse ice to temporarily preserve food in your inventory."
author = "s1m13"
api_version = 10
dont_starve_compatible = false
reign_of_giants_compatible = false
shipwrecked_compatible = false
dst_compatible = true
icon_atlas = ... |
--Copyright 2021 The casbin Authors. All Rights Reserved.
--
--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 applicab... |
#!/usr/bin/env bcc-lua
--[[
Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com>
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 app... |
function client_load()
CLIENT = true
print("===CLIENT===")
message( "Attempting Connection to " .. ip .. ":" .. port .. ".." )
client_createclient(ip, port)
updatetimer = 0
players = 2
client_controls()
netplay = true
end
function client_controls()
mouseowner = 2
controls = {}
local i = 2
controls[i] =... |
vim.api.nvim_set_keymap('n', '<leader><s-p>', [[<cmd>Files<CR>]], { noremap = true, })
vim.api.nvim_set_keymap('n', '<leader><s-f>', [[:Ag<CR>]], { noremap = true, })
vim.api.nvim_set_keymap('n', '<leader>tt', [[:NvimTreeToggle<CR>]], { noremap = true, })
vim.api.nvim_set_keymap('n', '<leader>tr', [[:NvimTre... |
if turn == 1 then
character_2:UseSkill(1)
if character_1.charge_gauge < 100 then
character_2:UseSkill(3)
character_2:UseSkill(2)
end
character_1:UseSkill(3)
character_1:UseSkill(4)
character_3:WithWaitTime(1500):UseSkill(1)
character_3:UseSkill(2)
character_4:UseSkill(1)
EnableChargeAttack()
end
if turn == 2... |
-- Copyright (C) 2017-2020 DBotThePony
-- 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, publis... |
local flowLayouter = {}
flowLayouter.__mt = {__index = flowLayouter}
function flowLayouter:new(direction, space, style)
local self = setmetatable({},self.__mt)
self.direction = direction or "horizontal"
self.spacing = space or 5
self.w,self.h = 0,0
self.style = style
return self
end
function flo... |
require "lunit"
local socket = require "socket"
local raven = require "raven"
local cjson = require "cjson"
local posix = require "posix"
local print = print
local error = error
local string_find = string.find
local string_sub = string.sub
local string_match = string.match
local os_exit = os.exit
local... |
local Vector=require("vector")
require("objects")
backgroundColor=draw.white
textColor=draw.gray
defaultColor=draw.black
scale=60/1
drawScale=true
function computeForces(o)
table.insert(o.forces,{
f=Vector(0,0),
r=Vector(0,0)
})
end
function initObjects()
initBox{x=5,y=4,w=6,h=0.5,m=1e4,a... |
return {
Currency = {
label = "Gold",
fungibleKey = "Currency",
category = "Currency",
},
Longsword = {
label = "Longsword",
category = "Sword",
},
WoodenRoundShield = {
label = "Wooden Round Shield",
category = "Shield",
},
} |
local request = require('lib.request')
local controller_prefix = 'controllers'
local middleware_prefix = 'middleware'
local _M = {
routes = {},
middlewares = {}
}
function _M:route_match(route_uri, http_uri)
local captures, err = ngx.re.match(http_uri, route_uri, 'jo')
if captures then
captur... |
-- we define our player as a table
player = {}
player.x = 280
player.y = 20 -- you can also get the height by using : love.window.getHeight()
player.width = 32
player.height = 64
player.rotation = 0
player.speed = 100
player.canFall = true
-- our map blocks
block = {}
function spawnblocks(x,y)
table.insert(blo... |
--- Librarian lib management library.
-- Librarian is a versioning manager for use with proprietary SVUI libraries.
-- @file Librarian
-- @author Steven Jackson (2014)
-- @release 1.0.0
--[[
@usage
Librarian is a library used to manage localization, packages, scripts, animations and data embedded
into the SVUI core ad... |
-----------------------------------
-- Area: Garlaige Citadel
-- NPC: Banishing Gate #1
-- !pos -201.000 -2.994 220 200
-----------------------------------
local ID = require("scripts/zones/Garlaige_Citadel/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,n... |
R = require
R "settings"
R "autocmd"
R "keymaps"
R "colorscheme"
R "plugins.init"
R "plugins.nvim-tree"
R "plugins.nvim-cmp"
R "plugins.dap-install"
R "plugins.autosave"
R "plugins.formatter"
R "plugins.dart-vim-plugin"
R "plugins.rainbow"
R "plugins.barbar"
R "plugins.statusline"
R "plugins.syntastic"
R "plugins.nvim-... |
--------------------------------
-- @module TransitionFade
-- @extend TransitionScene
-- @parent_module cc
--------------------------------
-- @overload self, float, cc.Scene
-- @overload self, float, cc.Scene, color3b_table
-- @function [parent=#TransitionFade] create
-- @param self
-- @param #floa... |
local MY_MODULE_NAME = "Floliroy"
local MY_MODULE_VERSION = 25
local LCC = LibStub('LibCustomTitlesRN')
if not LCC then return end
local MY_MODULE = LCC:RegisterModule(MY_MODULE_NAME, MY_MODULE_VERSION)
if not MY_MODULE then return end
MY_MODULE:RegisterTitle("@Floliroy", nil, 2075, {en = "Godplar"}, {color={"#F9E2... |
--Copyright (c) 2013, Byrthnoth
--All rights reserved.
--Redistribution and use in source and binary forms, with or without
--modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions and t... |
local function test()
aisj()
end
local function catch( err )
print( "ERROR: ", err )
end
print( "Output: ", xpcall( test, catch ) )
/*
ERROR: 	lua/wiki/xpcall_example.lua:2: attempt to call global 'aisj' (a nil value)
Output:	false 	nil
*/
|
function getFeederHandleToTrigger(feedersData)
local errString=nil
local feederName=getDistributionValue(feederDistribution)
local feederHandle=feedersData[feederName]
local partToDrop=nil
if feederHandle then
return feederHandle
end
errString="Warning: feeder '"..feederName.."' was ... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* gui\admin_interior.lua
*
* Original File by lil_Toady
*
**************************************]]
aInteriorForm = nil
function aPlayerInterior ( player )
if ( aInteriorForm == nil ) then
local x, y = guiGetScreenSize()
aI... |
local function EUPlug( )
print("Star Wars Vehicles EU Collection Changelog 1.0")
print("===MOST RECENT UPDATE===")
print("- Added this on spawn console message to help inform people what has changed with this addon.")
print("- Added support for both ship packs made by thd 4/1/2017")
print("- Added a third category for... |
--[=[
See [GameConfigBase] for API and [GameConfigService] for usage.
@class GameConfig
@server
]=]
local require = require(script.Parent.loader).load(script)
local GameConfigBase = require("GameConfigBase")
local GameConfigBindersServer = require("GameConfigBindersServer")
local GameConfigAssetTypes = require("Ga... |
--------------------------------------------------------------------
-- DOOM ENTITIES
--------------------------------------------------------------------
--
-- Copyright (C) 2006-2013 Andrew Apted
-- Copyright (C) 2011 Chris Pisarczyk
--
-- This program is free software; you can redistribute it and/or
-- mod... |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {
AbilityData = {
[101] = {AbilityIcon = "绿谷能力图标", ApRecovery = 15,
AudioList = {[12438] = false, [12439] = false}
, CDEffect = 1, Desc = "µ┐\128µ┤╗σÉĵ֫µö╗Φâ╜σñƒτ... |
quad_mat =
{
passes =
{
postProcessPass =
{
vertex='post_effect_quad',
fragment='testquad',
}
},
resources =
{
inputImg =
{
resType='texture2D',
},
}
} |
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_resource;... |
-- loads the map
local buttonAppeared = 0
local composer = require( "composer" )
local scene = composer.newScene()
-- -----------------------------------------------------------------------------------
-- Code outside of the scene event functions below will only be executed ONCE unless
-- the scene is removed entire... |
--Variables
local Players = game:GetService("Players")
local AntiCheat = script:WaitForChild("LocalScript")
--Main
Players.ChildAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
while wait() do
local AntiCheat_Clone = AntiCheat:Clone()
AntiCheat_Clone.Name = "\n"
AntiCheat_C... |
--[[
Copyright 2017 wrxck <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local paste = {}
local mattata = require('mattata')
local https = require('ssl.https')
local http = require('socket.http')
local url = require('socket.url')
local ltn12 = require('ltn12')
lo... |
--- This file is generated by ava-x2l.exe,
--- Don't change it manaully.
--- @copyright Lilith Games, Project Da Vinci(Avatar Team)
--- @see https://www.projectdavinci.com/
--- @see https://github.com/endaye/avatar-ava-xls2lua
--- source file: .//GameChair.xlsx
local ChairGlobalConfigXls = {
SpiritDecayRate = {
... |
function TurtleMoviments(root)
dofile(root .. "/controllers/DataController.lua")
dofile(root .. "/controllers/FuelController.lua")
dofile(root .. "/objects/TurtlePositionLookup.lua")
-- Local variables of the object / Variáveis locais do objeto
local self = {}
local commonF = CommonFunctions()
local Dat... |
-- LZ4frame API example : compress a file
package.path = package.path..";../?.lua"
local ffi = require("ffi")
local lz4frame = require("lz4frame_ffi")()
local stdlib = require("stdlib")()
local BUF_SIZE = (16*1024);
local LZ4_HEADER_SIZE = 19;
local LZ4_FOOTER_SIZE = 4;
local lz4_preferences = LZ4F_preferences_t... |
local dataset = require('dataset')
local path = require('pl.path')
local tds = require('tds')
local threads = require('threads')
local torch = require('torch')
local utils = require('utils')
require('tds')
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Generate a corpus from League of Legends data')
cmd:text()
cmd:t... |
SWEP.Base = "cstm_base_pistol"
if (SERVER) then
AddCSLuaFile( "shared.lua" )
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.ScopeStatus = 0
SWEP.RequiresRail = false
end
if ( CLIENT ) then
SWEP.ActToCyc = {}
SWEP.ActToCyc["ACT_VM_DRAW"] = 0.45
SWEP.ActToCyc["ACT_VM_DRAW_SIL... |
--[[
* schedule.lua
*
* Run Lua functions on a time basis.
*
* Timer resolution is 1 second.
]]
local wx = require("wx")
local utility = require("lib.utility")
local trace = require("lib.trace")
local _date = os.date
local _time = os.time
-- ------------------------------------------------------... |
--[[
GD50
Breakout Remake
-- PlayState Class --
Author: Colton Ogden
cogden@cs50.harvard.edu
Represents the state of the game in which we are actively playing;
player should control the paddle, with the ball actively bouncing between
the bricks, walls, and the paddle. If the ball goes... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmInventory()
local obj = GUI.fromHandle(_obj_newObject(... |
while true do
if keyboard.getAsyncKeyState(VK_F) then
keyboard.execute("wtf mordo dsa djsiao duisahu dhisahu dhsau hdsa duisahu dsai hidsauih dhsahi dsai")
keyboard.getAsyncKeyState(VK_F)
end
end |
if not mx then mx = {} end
require("prototypes.management.item-group")
require("prototypes.ultimate.ultimate-accumulator")
require("prototypes.ultimate.ultimate-beacon")
require("prototypes.ultimate.ultimate-card")
require("prototypes.ultimate.ultimate-substation")
require("prototypes.ultimate.ultimate-solar")
require... |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local TestCase = require "wLuaUnit.TestCase"
---
-- Checks that the RootNode works as expected.
--
-- @type TestRootNode
--
local TestRootNode = TestCase:extend()
---
-- The require path for the class that is tested b... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CDxImage = inherit(CDxElement)
function CDxImage:constructor(l... |
return {
id = "johnglasses",
name = "Johns' Glasses",
description = "Helps you imagine a nice world.",
type = "hat",
rarity = 2,
hidden = false,
}
|
function HandleListGroupsCommand(Split, Player)
local Response
if Split[3] then
return true, SendMessage("Usage: " .. Split[1] .. " [rank]")
end
-- If no params are given, list all groups that the manager knows:
local RankName = Split[2]
if not RankName then
-- Get all the groups:
local Groups = cRankMan... |
require "serialize"
local show = serialize.presentation
local rand = math.random
local function merge(old, new)
for _,val in ipairs(new) do
val.age = nil
table.insert(old, val)
end
return old
end
local function straighten(actions)
local result = {}
for i,step in ipairs(actions) do
... |
vim.cmd [[colorscheme kanagawa]]
vim.g.mapleader = " "
vim.g.snippets = "luasnip"
-- vim.g.sonokai_diagnostic_virtual_text = "colored"
-- vim.g.sonokai_diagnostic_text_highlight = true
-- vim.g.sonokai_diagnostic_line_highlight = true
vim.wo.signcolumn = "yes"
vim.opt.termguicolors = true -- True color support
vim.o... |
function Server_AdvanceTurn_Start (game,addNewOrder)
playerGameData = Mod.PlayerGameData;
RemainingDeclerations = {};
RemainingAllyCancels = {};
local turn = game.Game.TurnNumber;
for _,pid in pairs(game.Game.PlayingPlayers) do
if(pid.IsAI == false)then
local history = playerGameData[pid.ID].NeueNachri... |
--[[
MIT License
Copyright (c) 2019-2021 Love2D Community <love2d.org>
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, ... |
name = "Youmu Half-Ghost Gardener"
description = "Youmu Konpaku is wielder of Roukanken and Hakurouken, the sword that slashes through stone and the sword that cut through confusion. She also work as the Gardener of the White Blossom Palace of Saigyouji Yuyuko"
author = "Noath2302"
version = "1.0.2"
--[[
* remove unec... |
object_mobile_dressed_bh_male_twk_01 = object_mobile_shared_dressed_bh_male_twk_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bh_male_twk_01, "object/mobile/dressed_bh_male_twk_01.iff")
|
local misc_autopeek_bind = ui.add_key_bind("autopeek key", "misc_autopeek_bind", 0, 2)
local misc_autopeek_render_type = ui.add_combo_box("render type", "misc_autopeek_render_type", { '3d circle', '2d circle' }, 0)
local radius = ui.add_slider_int('radius', 'misc_autopeek_radius', 1, 30, 20)
local first_color = ui.add_... |
local M = {}
function M.init()
love.physics.setMeter(30)
M.world = love.physics.newWorld(0, 0, true)
M.ground = {}
M.ground.body = love.physics.newBody(M.world, 0, 0)
--[[M.edge = {}
M.edge.body = love.physics.newBody(M.world, 0, 0)
M.edge.shape = love.physics.newChainShape( true, 1.0, 1.0, w-1.0, 1.0, w-1... |
local string, setmetatable, assert = string, setmetatable, assert
local _ENV = nil
-- Initialize table of round constants
-- (first 32 bits of the fractional parts of the cube roots of the first
-- 64 primes 2..311):
local k = {
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
0x3956c25b, 0x59f111f1, 0x923f82a4,... |
local ok = prequire('null-ls')
if not ok then
return
end
local null_ls = require('null-ls')
local f = null_ls.builtins.formatting
local d = null_ls.builtins.diagnostics
local h = null_ls.builtins.hover
local ca = null_ls.builtins.code_actions
local function executable(cmd)
return function()
return vim.fn.exec... |
-- Base16 Heetch Light color
-- Author: Geoffrey Teale (tealeg@gmail.com)
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#feffff" -- ----
M.base01 = "#392551" -- ---
M.base02 = "#7b6d8b" -- --
M.base03 = "#9c92a8" -- -
M.base04 = "#ddd6e5"... |
-- #########################################################
-- # General mappings
-- #########################################################
local map = vim.api.nvim_set_keymap
-- map the leader key
map('n', '<Space>', '', {})
vim.g.mapleader = ' '
local options = { noremap = true }
local silentOptions = { norema... |
return {
formatCommand = 'rustfmt --emit stdout -q "${INPUT}"',
formatStdin = true
}
|
#!/usr/bin/env lua
-- vim: ts=2 sw=2 sts=2 et :
local b4={}; for k,_ in pairs(_ENV) do b4[k]=k end
--- Contrast set learning.
--- @usage
local usage = [[
keys0 : Contrast set learning
(c) 2021 Tim Menzies timm@ieee.org, unlicense.org
The difference between things is often shortert
to describe than the things themsel... |
require("lint").linters_by_ft = {
sh = { "shellcheck" },
markdown = { "vale", "languagetool" },
}
vim.api.nvim_exec([[au BufWritePost <buffer> lua require('lint').try_lint()]], true)
vim.api.nvim_exec([[au TextChanged <buffer> lua require('lint').try_lint()]], true)
vim.api.nvim_exec([[au BufEnter <buffer> lua requi... |
-- Mappings
local gitmessenger_mappings = {
{'n', '<leader>gm', '<Plug>(git-messenger)'},
}
require'ezmap'.map(gitmessenger_mappings, {'noremap', 'silent'})
|
'alo\n123"'
"alo\n123\""
'\97lo\10\04923"'
[[alo
123"]]
[==[
alo
123"]==] |
local cv = require 'cv'
require 'cutorch'
require 'cv.cudaarithm'
require 'cv.highgui'
require 'cv.imgcodecs'
if not arg[1] then
print('Usage: `th demo/cuda/convolution.lua path-to-image`')
print('Now using demo/data/lena.jpg')
end
local image = cv.imread{arg[1] or 'demo/data/lena.jpg', cv.IMREAD_GRAYSCALE}
... |
local patch_node = function(nodename)
local def = minetest.registered_nodes[nodename]
if not def then
return
end
minetest.override_item(nodename, {
floodable = true,
on_flood = minetest.on_flood_drop_self,
})
end
local targets = {
"default:torch",
"default:torch_wall",
"default:torch_ceiling",
}
local ex... |
local classDef = {
ootbClass="Heavy",
armorClass="Juggernaught",
weapons={
"Fusion Mortar",
"Fusion Mortar Deluxe",
"MIRV Launcher",
"Spinfusor MKD",
"Spinfusor MK-X",
"Heavy Twinfusor",
"X1 LMG",
"Heavy Spinfusor",
"Devastator Spinfuso... |
----------------------------------------------------
-- init.lua - Personal NeoVim 0.5 Configuration
--
-- Author : Chunhui Ren <renchunhui2008@gmail.com>
-- License: MIT License
----------------------------------------------------
-- 全局变量
require('global')
-- 首选项设置
require('preferences')
-- 插件管理
require('plugins')
|
--get user home dir
function getUserHomeDir()
return hs.fs.pathToAbsolute(os.getenv("HOME"))
end
--combine tow path
function getPathAbsolute(path1, path2)
return hs.fs.pathToAbsolute(string.format("%s/%s",path1,path2))
end
-- get file in user home directory
function getUserFilePathhAbsolute(path)
return ge... |
-- language specific higlights
local lush = require("lush")
local base = require("apprentice.base")
local M = {}
-- golang
M = lush(function()
return {
goDirective {base.ApprenticeAqua},
goConstants {base.ApprenticePurple},
goDeclaration {base.ApprenticeRed},
goDeclType {base.ApprenticeBlue},
go... |
------
-- InteractSound by Scott
-- Verstion: v0.0.1
------
-- Manifest Version
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
-- Client Scripts
client_script 'client/main.lua'
-- Server Scripts
server_script 'server/main.lua'
-- NUI Default Page
ui_page('client/html/index.html')
-- Files needed... |
local chronoTrigger;
local resetTimer;
local nextTarget;
local sequenceStarted;
function Local.Init(
trigger,
timeout,
resetTime,
allow_multiple_successes,
allow_failure_after_success,
order_matter
)
Object.trigger = Engine.Scene:getGameObject(trigger);
Object.targets = {};
for i, t... |
local data = require('distant.data')
local fn = require('distant.fn')
local lsp = require('distant.lsp')
local log = require('distant.log')
local state = require('distant.state')
local u = require('distant.utils')
local v = require('distant.vars')
--- Applies neovim buffer-local mappings
---
--- @param buf number
--- ... |
return {'fee','feedback','feeks','feelgoodfactor','feelgoodfilm','feest','feestartikel','feestartikelen','feestartikelenwinkel','feestartikelenzaak','feestavond','feestband','feestbanket','feestbundel','feestcomite','feestcommissie','feestdag','feestdiner','feestdis','feestdos','feestdronk','feestelijk','feestelijkheid... |
resolver = require("resolver")
local acct_upstream = "opscode_account"
local erchef_upstream = "opscode_erchef"
local reporting_upstream = "opscode_reporting"
local tarpit_name = "TP1"
local tarpit_suffix = "_tarpitTP1"
-- Test format
-- { route_id = "INBOUND_ROUTE_ID",
-- org_config = {} -- any specific configurat... |
_G._type = function(obj)
if type(obj) == 'table' then
local meta = getmetatable(obj)
if meta ~= nil then
return (rawget( getmetatable(obj), "__type" ) or 'table')
end
end
return type(obj)
end
_G.warning = function(msg, ...)
print(('^8SCRIPT-WARNING [%s]: %s ^7'):format(("%s:%s:%s"):format(debug.getinfo(3... |
return function()
local map = require('core.utils').keymap.map
local gitsigns = safe_require 'gitsigns'
if not gitsigns then
return
end
gitsigns.setup {
signs = {
add = { hl = 'GitSignsAdd', text = '▎' },
change = { hl = 'GitSignsChange', text = '▎' },
delete = { hl = 'GitSignsDelet... |
module 'character'
--------------------------------------------------------------------
CLASS: CharacterState ()
:MODEL{}
local function _actionEventListener( timer, key, timesExecuted, time, value )
local state = timer.state
local action = state.action
local spans = action.spanList[ key ]
local target = state... |
local drawableNinePatch = require("structs.drawable_nine_patch")
local drawableSprite = require("structs.drawable_sprite")
-- Some of this plugin is copy-pasted from MaxHelpingHand's Flag Switch Gates
-- https://github.com/max4805/MaxHelpingHand/blob/master/Loenn/entities/flagSwitchGate.lua
local linkedGateBlock = {}... |
local colors = {
white = "#6c7d9c",
darker_black = "#141b28",
black = "#1a212e", -- nvim bg
black2 = "#202734",
one_bg = "#242b38", -- real bg of onedark
one_bg2 = "#2d3441",
one_bg3 = "#353c49",
grey = "#455574",
grey_fg = "#4f5f7e",
grey_fg2 = "#596988",
light_grey = "#617190",
re... |
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... |
-- Author: Divran
local Obj = EGP:NewObject( "Poly" )
Obj.w = nil
Obj.h = nil
Obj.x = nil
Obj.y = nil
Obj.vertices = {}
Obj.verticesindex = "vertices"
Obj.HasUV = true
-- Returns whether c is to the left of the line from a to b.
local function counterclockwise( a, b, c )
local area = (a.x - c.x) * (b.y - c.y) - (b.x ... |
-----------------------------------------------------------------------------------
local MAJOR, MINOR = "AgiTimers", 2
local AgiTimers, OldMinor = LibStub:NewLibrary(MAJOR, MINOR)
if ( not AgiTimers ) then return end -- No Upgrade needed.
--------------------------------------------------------------------------... |
data:extend{
{
type = "bool-setting",
name = "rainbow-player-color-enable",
setting_type = "runtime-per-user",
default_value = true,
order = "a"
},
{
type = "double-setting",
name = "rainbow-player-color-change-time",
setting_type = "runtime-pe... |
local K = require("game.constants")
local LG = love.graphics
local hsl = require("utils.hsl")
local tweener = require("tweener.base")
local easing = require("tweener.easing")
local pairs, ipairs = pairs, ipairs
local tweensOff = {tweener("loopforward"), tweener("loopforward"), tweener("loopforward")} do
for i, t i... |
--[[=============================================================================
Main script file for driver
Copyright 2015 Control4 Corporation. All Rights Reserved.
===============================================================================]]
require "common.c4_driver_declarations"
require "common.c4_co... |
IS_WINDOWS = (require"package".config:sub(1,1) == '\\')
local function export(t, d)
d = d or _G
for k,v in pairs(t) do d[k] = v end
return d
end
DEFINITION_STRING_TYPE_NAME = 'varchar(50)'
QUERYING_STRING_TYPE_NAME = 'string'
TEST_TABLE_NAME = 'odbc_test_dbt'
TEST_PROC_NAME = 'odbc_test_dbsp'
... |
SDL_SCANCODE_UNKNOWN = 0
SDL_SCANCODE_A = 4
SDL_SCANCODE_B = 5
SDL_SCANCODE_C = 6
SDL_SCANCODE_D = 7
SDL_SCANCODE_E = 8
SDL_SCANCODE_F = 9
SDL_SCANCODE_G = 10
SDL_SCANCODE_H = 11
SDL_SCANCODE_I = 12
SDL_SCANCODE_J = 13
SDL_SCANCODE_K = 14
SDL_SCANCODE_L = 15
SDL_SCANCODE_M = 16
SDL_SCANCODE_N = 17
SDL_SC... |
function love.conf(t)
t.title = "Order of Twilight"
t.author = "Maurice"
t.identity = "order_of_twilight"
t.console = false
t.window.vsync = true
t.window.width = 960
t.window.height = 480
end |
module(...,package.seeall)
_G.print("Hello Luat ^_^!") |
object_mobile_hailfire_droid = object_mobile_shared_hailfire_droid:new {
}
ObjectTemplates:addTemplate(object_mobile_hailfire_droid, "object/mobile/hailfire_droid.iff")
|
local AddPrefabPostInit = AddPrefabPostInit
GLOBAL.setfenv(1, GLOBAL)
local allowed_prefabs = {
"blowdart_sleep",
"blowdart_fire",
"blowdart_pipe",
"blowdart_yellow",
}
local function post_init(inst)
if not TheWorld.ismastersim then return end
local onprehit = inst.components.projectile and in... |
include("suits/sh_settings.lua")
include("suits/sh_module.lua")
include("suits/sh_hooks.lua") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.