content stringlengths 5 1.05M |
|---|
--[[
Copyright (C) 2019 Blue Mountains GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the Onset
Open Source License as published by Blue Mountains GmbH.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied w... |
function start (song)
print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll)
end
function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918
if curStep >= 0 and curStep < 128 then
local currentBeat = (songPos / 1000)*(bpm/60)
for i=0,7 do
setActorX(_G['... |
pos = rw.Vector3D(0.0404794,-3.69926e-05, 0.0489482)
rot = rw.Quaternion(-0.831552,-0.0553467,-0.160624, 0.528825):toRotation3D()
pos = rw.Vector3D(0.0399972, 0.000177004, 0.0481545)
rot = rw.Quaternion(-0.833686, -0.0512892, -0.173265, 0.52184):toRotation3D()
wTtcp_target = rw.Transform3D(pos, rot)
print( wTbase_ta... |
local LS = {}
--Stuff that can't be disabled
CreateConVar("LS_AllowNukeEffect", "1") --Update to something changeable later on
--end
--Local Functions
local SB_AIR_O2 = 0
local SB_AIR_CO2 = 1
local RD
LS.generators = {}
LS.generators.air = {}
LS.generators.temperature = {}
local function LS_Reg_Veh(pl... |
--[[
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
]]--
requi... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require"ISUI/ISPanel"
require"ISUI/ISButton"
require"ISUI/ISInventoryPane"
require"ISUI/ISResizeWidget"
require"ISUI/ISMouseDrag"
re... |
---@brief [[
--- Infoview components which can be assembled to show various information
--- about the current Lean module or state.
---@brief ]]
---@tag lean.infoview.components
local DiagnosticSeverity = vim.lsp.protocol.DiagnosticSeverity
local components = {}
--- Format a heading.
local function H(contents)
re... |
--[[
Remove the element at the given index.
]]
local function removeIndex(list, index)
local new = {}
local removed = 0
for i = 1, #list do
if i == index then
removed = 1
else
new[i - removed] = list[i]
end
end
return new
end
return removeIndex |
local tl = require("tl")
local util = require("spec.util")
describe("xpcall", function()
it("can't xpcall nothing", util.check_type_error([[
local pok = xpcall()
]], {
{ msg = "given 0, expects at least 2" }
}))
it("can't xpcall without a message handler", util.check_type_error([[
local ... |
---
--- Fixture for script deduplication
--- We include multiple scripts which directly or
--- transitively include "strings.lua". It should only be included once
---
--- @include "includes/fixture_recursive_grandchild"
--- @include "includes/utils"
--- @include "includes/strings"
|
local joinTable = function (t1, t2)
for n,v in pairs(t2) do
t1[n] = v
end
return t1
end
local M = {}
M = joinTable(M, require "tes3mp") -- Timer & Public APIs redefined by pluginlua
M = joinTable(M, require "Functions.Actors")
M = joinTable(M, require "Functions.Books")
M = joinTable(M, require "Fu... |
TextFormatter = {
success = function(text)
return TextFormatter.toString('28a745', text)
end,
primary = function(text)
return TextFormatter.toString('007bff', text)
end,
error = function(text)
return TextFormatter.toString('dc3545', text)
end,
warnin... |
fx_version 'adamant'
game 'gta5'
description 'ESX Cargo Delivery'
version '1.0.2'
client_script {
'@es_extended/locale.lua',
'locales/br.lua',
'locales/en.lua',
'client/main.lua',
'GUI.lua',
'config.lua',
}
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.lua',
'locales/br.lua',
'local... |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {
AttendData = {
{
LeaveAni = "die",
OffsetPos = { 180, 0, 0 },
Scan = 12000,
ScanCycle = 500,
ScanRange ... |
local const = {}
const.loglevel = {
debug = 1,
info = 2,
warn = 3,
err = 4,
}
const.error_code = {
ok = 0,
http_req_fail = 1,
http_data_error = 2,
}
return const
|
require "scripts.core.ability"
require "gamemode.Spark.modifiers.modifier_shrine";
local Shrine = class(Ability)
function Shrine:OnCreated ()
self:RegisterVariable("max_range", 0.5)
self:RegisterVariable("cast_time", 0.1)
self:RegisterVariable("cast_point", 0.0)
self:SetCastingBehavior(CastingBehavior(CastingBe... |
-------------------------------------------------------------------------------
-- LISTENER by Tammya-MoonGuard (2017)
--
-- This code creates the Listener addon struct, so it needs to be loaded
-- before anything else that uses it.
-------------------------------------------------------------------------------
-- We ... |
--dancer
local percent = 0
for i = 1,101 do
wait()
print("Loading: "..percent.."%")
percent = percent + 1
end
local plr=game.Players.LocalPlayer
local chr=plr.Character
local asin = math.asin
local atan2 = math.atan2
local rad = math.rad
local sin = math.sin
local abs = math.abs
local ceil = math.ceil
loca... |
function receive(message)
if(message.type == "init") then
subscribe({type="http_response", request_id=0})
publish({node_id=node_id, type="http_request", http_method="POST",request_id=0, request_url="http://api.webhookinbox.com/i/pPyCZ7gI/in/", attributes="test1, test2 ,test3", test1="foo", test2="bar"})
p... |
plr=game.Players:FindFirstChild"yellowmellow0531"
plr.DATA.Credits.Value=plr.DATA.Credits.Value+10 -- change + to a - if you want to remove credits instead of give
plr.DATA.RealCredits.Value = plr.DATA.Credits.Value + 9500 |
-- luacheck: max line length 150
return function()
local map = require('_.utils.map')
local opts = { noremap = true, silent = true }
map.nnoremap(
'<leader>sh',
"<cmd>lua require('searchbox').replace({confirm = 'menu'})<CR>",
opts
)
map.vnoremap(
'<leader>sh',
"<cmd>lua require('searchbo... |
-- File: cmp.lua
-- Author: Zakhary Kaplan <https://zakharykaplan.ca>
-- Created: 08 Aug 2021
-- SPDX-License-Identifier: MIT
local cmp = require('cmp')
local lspkind = require('lspkind')
cmp.setup {
-- Don't pre-select any item
preselect = cmp.PreselectMode.None,
-- Mappings for completions
... |
local helpers = require('test.functional.helpers')(after_each)
local clear, nvim, buffer = helpers.clear, helpers.nvim, helpers.buffer
local curbuf, curwin, eq = helpers.curbuf, helpers.curwin, helpers.eq
local curbufmeths, ok = helpers.curbufmeths, helpers.ok
local funcs = helpers.funcs
local request = helpers.request... |
local ObjectManager = require("managers.object.object_manager")
tutorialInsuranceTerminal = { }
function tutorialInsuranceTerminal:fillObjectMenuResponse(pSceneObject, pMenuResponse, pPlayer)
end
function tutorialInsuranceTerminal:handleObjectMenuSelect(pSceneObject, pPlayer, selectedID)
if (readData(SceneObject(p... |
local miktar = 700
function betonparaver()
setElementData(source, "beton:yukaldi", false)
if getElementData(source, "vip") == 1 then
miktar = 725
elseif getElementData(source, "vip") == 2 then
miktar = 750
elseif getElementData(source, "vip") == 3 then
miktar = 775
end
exports.mrp_global:giveMoney(... |
local Blanks = RegisterMod( "Blank Bombs",1 );
local blanksItem = Isaac.GetItemIdByName("Blank Bombs")
local oldBBF = false
local oldBB = false
function Blanks:UPDATE()
local game = Game()
local room = game:GetRoom()
local player = Isaac.GetPlayer(0)
if player:HasCollectible(blanksItem) == true the... |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
LUIE.Data.UnitNames = {
----------------------------------------------------------------
-- TARGET DUMMY NAMES ------------------------------------------
----------------------------------------------------------------
Dummy_Robu... |
local e=((getfenv)or(function(...)return(_ENV);end))();local x=e["\116\111\110\117\109\98\101\114"];local t=("")["\115\117\98"];local s=("")["\98\121\116\101"];local n=("")["\99\104\97\114"];local A=e["\116\97\98\108\101"]["\99\111\110\99\97\116"];local d=((e["\108\111\97\100\115\116\114\105\110\103"])or(e["\108\111\97... |
local ColorUtils = {}
-- ExtraContent/LuaPackages/AppTempCommon
function ColorUtils.rgbFromHex(hexColor)
assert(hexColor >= 0 and hexColor <= 0xffffff, "RgbFromHex: Out of range")
local b = hexColor % 256
hexColor = (hexColor - b) / 256
local g = hexColor % 256
hexColor = (hexColor - g) / 256
local r = hexColor... |
require 'config'
require 'country_check'
local b64 = require 'ngx.base64'
local match = string.match
local ngxmatch=ngx.re.match
local unescape=ngx.unescape_uri
local get_headers = ngx.req.get_headers
local optionIsOn = function (options) return options == "on" and true or false end
logpath = logdir
rulepath = RulePat... |
PAM_EXTENSION.name = "guesswho_support"
PAM_EXTENSION.enabled = true
function PAM_EXTENSION:OnInitialize()
if GAMEMODE_NAME ~= "guesswho" then return end
-- lolleko/guesswho
-- Reconstructing MiRe's MapVote api, because guesswho supports only their addon natively
MapVote = MapVote or {}
MapVote.Start = function(... |
data:extend{
{
type = "recipe",
name = "braking-wagon",
energy_required = 1,
enabled = false,
ingredients =
{
{"iron-gear-wheel", 20},
{"iron-plate", 20},
{"steel-plate", 16},
{"pipe", 8}
},
result = "braking-wagon"
}
}
|
data:extend({
{
type = "technology",
name = "space-shuttle",
icon_size = 128,
order = "y-a",
icon = "__expanded-rocket-payloads__/graphic/dreamchaser-128.png",
effects =
{
{
type = "unlock-recipe",
recipe = "shuttle-hull-recipe"
... |
return {
[ "T-18" ] = {
speed = 0.5,
reloadTime = 1.5,
health = 100
},
[ "T-12" ] = {
speed = 0.3,
reloadTime = 2.5,
health = 70
},
[ "R-10" ] = {
speed = 0.7,
reloadTime = 0.4,
health = 50,
damage = 3
},
[ "B-47" ] = {
speed = 0.2,
reloadTime = 5,
health = 150,
damage = 50
}
} |
local M = {}
local lsp_keymappings = {
normal_mode = {
["K"] = "<Cmd>lua vim.lsp.buf.hover()<CR>",
["gD"] = "<Cmd>lua vim.lsp.buf.declaration()<CR>",
["gd"] = "<Cmd>lua vim.lsp.buf.definition()<CR>",
["gi"] = "<Cmd>lua vim.lsp.buf.implementation()<CR>",
["gr"] = "<Cmd>lua vim.lsp.buf.references(... |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/2353
---------------------------------------------------------------------------------------------------
-- Description: Check SDL is able to proceed with resp... |
-- File: FailDataTracker.lua
-- Name: Fail Data Tracker
-- Author: failoe
-- Description: Tracks various datapoints for vizualization
-- Version: 0.0.2
-- To Do:
-- Track progress by Zone
-- Display zone progress on map for that zone show subzone breakdowns in list
-- Graph of measure names by color over leve... |
require("util")
local dbg= package.loaded.debugger or function() end
local nobreak=true
local picotcp = net.tick
local timeout= 6* 10^6 -- Seconds
local async=picotcp
local request_tmpl_t = {
"GET /{path} HTTP/1.1",
"Host: {host}",
"Cache-Control: max-age=0",
"Upgrade-Insecure-Requests: 0",
"User-Agent:... |
momoTweak.science = {}
momoTweak.science.a = {}
momoTweak.science.b = {}
momoTweak.science.grey = "angels-science-pack-grey"
momoTweak.science.red = "angels-science-pack-red"
momoTweak.science.green = "angels-science-pack-green"
momoTweak.science.orange = "angels-science-pack-orange"
momoTweak.science.blue = "angels-s... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {
PlaceObj('UnitAppear', {
'Location', "MapBorder",
}),
PlaceObj('Malfunction', nil),
PlaceObj('ForEachExecuteEffects', {
'Label', "Drone",
'Filters', {},
'RandomCount', "<drones_killed>",
... |
add_rules("mode.release", "mode.debug")
add_requires("python 3.x")
target("example")
add_rules("swig.c", {moduletype = "python", soabi = true})
add_files("src/example.i", {scriptdir = "share"})
add_files("src/example.c")
add_packages("python")
|
-- global Debug
-- requirements
-- global Session (search code for usage)
local debug={}
debug.useConsole=true
debug.useFile=false
debug.messages={}
local _contexts={}
local channels={}
local netChannel={
name="net",
useConsole=false,
useFile=true,
messages={},
}
channels.net=netChannel
-- todo: настройка к... |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id aoi.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/09/15 14:37
- @uses The a... |
local the = require "the"
local lib = require "lib"
local Fmap= the.class()
function Fmap:_init(data, rows,cols,min,far,n)
self.data = data
self.rows = rows or data.rows
self.cols = cols or data:some("y")
self.min = min or the.fmap.min
self.min = (#rows)^self.min
self.far = far or the.fmap.far
se... |
local wibox = require('wibox')
local watch = require("awful.widget.watch")
local beautiful = require("beautiful")
local gears = require("gears")
local utils = require("../utils")
local CMD = [[stat -f / --format "%b %a %s"]]
local progressbar = wibox.widget {
forced_width=10,
max_value=100,
value=0,
b... |
local M = {}
function M.setup()
end
return M
|
-------------------------
-- Nginx Plugin (v1.4.0)
-- Last Modified : 18-07-2017
-------------------------
-----------CUSTOM SETTING STARTs---------
-- Subscriber ID assigned after registration.
local _sid = "9e75976a-8407-4c44-b27d-21c58e387004";
-- _mode (set Active as 'true', Monitor as 'false')
local _mode = t... |
local typeof = import("./functions/typeof")
return function(name, value, expectedTypeAsString)
local actualType = typeof(value)
if actualType ~= expectedTypeAsString then
error(string.format("%s must be type `%s`, got type `%s`", name, expectedTypeAsString, actualType), 3)
end
end
|
--[[
Copyright 2022 Fengying <zxcvbnm3057@outlook.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
]] --
local VisibledebuffManager =
Class(
... |
-- Global variables
basedir = os.getcwd() .. "/"
builddir = basedir .. "build/"
bindir = basedir .. "bin/"
intdir = basedir .. "obj/"
toolsdir = basedir .. "tools/"
vendordir = basedir .. "vendor/"
testsdir = basedir .. "tests/"
examplesdir = basedir .. "examples/"
-- Project workspace
workspace "metrisca"
a... |
--[[
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... |
--settings
local GO = nil
local TRANS = nil
local melee = nil
local range = nil
local kamikaze = nil
local tourguide = nil
local nextImage = nil
local nextImageTrans = nil
local timerObj = nil
local timerFrame = nil
local timerObjTrans = nil
local timerScript = nil
local timer = 0.0
local WaveInfo = nil
local haveWa... |
GM.Stored = GM.Stored or {};
PLUGIN = {};
hookCache = {};
function GM:LoadPlugins()
local files, dirs = file.Find("combinecontrol/gamemode/extras/*.lua", "LUA");
for i, v in ipairs(files) do
if string.match(v, ".lua") then
include("combinecontrol/gamemode/extras/" .. v);
if SERVER then
Ad... |
object_mobile_outbreak_undead_prisoner_m_hum_03 = object_mobile_shared_outbreak_undead_prisoner_m_hum_03:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_undead_prisoner_m_hum_03, "object/mobile/outbreak_undead_prisoner_m_hum_03.iff")
|
return require('lib.stdlib.oop._generated._location')
|
{data={name="", author="Magnus siiftun1857 Frankline"}, blocks={
{1881000, {-3.75, 0}},
{1881001, {-3.75, -10}},
{1881001, {-3.75, 10}},
{1881004, {6.25, -10}, -1.571, bindingId=0},
{1881004, {6.25, 10}, 1.571, bindingId=0},
{1881004, {6.25, 0}, -1.571, bindingId=0},
{1881001, {-3.75, -20},... |
push = require 'lib/push'
Class = require 'lib/class'
-- classes
require 'classes/Bird'
require 'classes/Pipe'
require 'classes/PipePair'
require 'classes/StateMachine'
-- all code related to game states
require 'states/BaseState'
require 'states/PlayState'
require 'states/ScoreState'
require 'states/TitleScreenState... |
local _separator = require "eli.path".default_sep()
local _join = require "eli.extensions.string".join
local function _get_root_dir(paths)
-- check whether we have all files in same dir
local _rootDirSegments = {}
for _, _path in ipairs(paths) do
if #_rootDirSegments == 0 then
for _segment in s... |
Talk(97, "那里来的小子,敢擅闯我神龙岛.", "talkname97", 0);
Talk(0, "神龙岛?听起来好像颇棘手的,我还是下回有把握点再来.", "talkname0", 1);
Talk(97, "想走,我神龙岛可不是你说来就来,说走就走的.", "talkname97", 0);
Talk(0, "别这样嘛!我船随便开开,就开到你们岛上了.本想看看你们这边有没有我要找的书,但..我看大概没有...打扰了...", "talkname0", 1);
Talk(97, "果然是来偷书的.来人呀!快将他拿下.", "talkname97", 0);
if TryBattle(94) == true then go... |
local playsession = {
{"chronodekar", {470889}},
{"skatordude", {1744712}},
{"mewmew", {19737}},
{"brftjx", {960679}},
{"Firewall5000", {512325}},
{"Add3r", {6605}},
{"Plawerth", {218294}},
{"Hamersmid", {448943}},
{"Bokrug", {2790}},
{"ikeikeeng", {76464}},
{"solarisvoltz", {457}},
{"Frec100", {432244}},
... |
local server = require "nvim-lsp-installer.server"
local npm = require "nvim-lsp-installer.installers.npm"
local root_dir = server.get_server_root_path "rome"
return server.Server:new {
name = "rome",
root_dir = root_dir,
installer = npm.packages { "rome@10.0.7-nightly.2021.7.2" }, -- https://github.com/r... |
--[[
Generates the models used in this example.
Use Roblox Studio's 'Run Script' dialog to run this file, then save what it
selects.
]]
local childrenInOrder = {}
local container = Instance.new("Folder")
container.Name = "Faces"
container.Parent = game.Workspace
local allFaces = {
Enum.NormalId.Right, Enum.Norma... |
---@class Migration
local Migration = ECSLoader:CreateModule("Migration")
---@type Profile
local Profile = ECSLoader:ImportModule("Profile")
---@param profileVersion number
---@param defaultProfile table
function Migration:ToLatestProfileVersion(profileVersion)
if profileVersion < 11 then
---@class ECSPro... |
--[[
This module implements Typed Lua lexer
]]
local tllexer = {}
tllexer.comments = {}
local lpeg = require "lpeg"
lpeg.locale(lpeg)
local function getffp(vSubject, vPos, vContext)
if vContext.ffp == 0 then
return vPos, vContext
else
return vContext.ffp, vContext
end
end
local function setffp (vSubject, v... |
-- default color palette --
return {
0x000000,
0x606060,
0xb0b0b0,
0xaa0000,
0xff0000,
0x00aa00,
0x00ff00,
0x0080ff,
0x66b6ff,
0x6600aa,
0x9000ff,
0x6030f0,
0xffff00,
0xff8000,
0x40ffff,
0xffffff
}, {
"black",
"gray", "lightGray",
"red", "lightRed",
"green", "lightGreen",
... |
taanab_great_nerf_herd = Lair:new {
mobiles = {{"nerf_male",1},{"nerf_female",1}},
spawnLimit = 155,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
buildingType = "none",
}
addLairTemplate("taanab_great_nerf_herd", taanab_great_nerf_herd)
|
return Def.ActorFrame{
-- the vertical colored bands
Def.Quad{
InitCommand=cmd(stretchto,415,78,515,402;diffuse,PlayerColor(PLAYER_1)),
OnCommand=cmd(diffusealpha,0;linear,.5;diffusealpha,1)
},
Def.Quad{
InitCommand=cmd(stretchto,515,78,615,402;diffuse,PlayerColor(PLAYER_2)),
OnCommand=cmd(diffusealpha,0;... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local config = require "game.config"
local timetool = require "include.timetool"
local roleMgr = require "manager.roleMgr"
local mailMgr = require "manager.mailMgr"
local CDb = require "include.db"
... |
local AsteroidScript = {}
-- Script properties are defined here
AsteroidScript.Properties = {
{name = "islandLocation", type = "entity"},
{name = "rotationStep", type = "number", default = 10},
{name = "stopSound", type = "entity"},
{name = "winSound", type = "entity"},
{name = "impactSound", type = "entity"},
{... |
local e,t,a,o,i,n,s,h,r,d,l=table.unpack or unpack,table.concat,string.byte,string.char,string.rep,string.sub,string.format,math.floor,math.ceil,math.min,math.max local u,c,m,f,w,y,p,v function f(H,R)return(H*2^R)%4294967296 end function w(H,R)H=
H%4294967296/2^R return H-H%1 end
function y(H,R)
H=H%4294967296*2^R loc... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
local Entity = FindMetaTable("Entity")
function Entity:IsProtected(att)
if HumanTeamName ~= nil then return false end
local loc, name = self:GetLocation(), self:GetLocationName()
if name == "Movi... |
-- import
local AssetLibraryModule = require 'candy.AssetLibrary'
local EntityModule = require 'candy.Entity'
---@class Prefab
local Prefab = CLASS: Prefab ()
function Prefab:__init ( data, id )
self.data = data
self.id = id
local rootEntry = data.entities[ 1 ]
if rootEntry then
self.rootId = rootEn... |
#!/usr/bin/env lua
local exec = require "tek.lib.exec"
local guitask = exec.run(function()
-- child task:
local exec = require "tek.lib.exec"
local ui = require "tek.ui"
local app = ui.Application:new
{
Children =
{
ui.Window:new
{
Title = "Child process",
Width = "auto",
Height = "auto",
... |
local nersis = {}
nersis.VERSION = "Applebutter v1"
local sharedEnding = ({Windows="dll",["OS X"]="dylib"})[love.system.getOS()] or "so"
package.cpath = package.cpath..";"..love.filesystem.getSaveDirectory().."/?.so"
function nersis.copyShared(name)
--TODO: Write a better method.
print("nersis/"..name.."-"..nersis... |
-- (Super)MultiFurnace Controller (did I mention, it's SUPER!?)
-- This app is designed to wrap up to 4 of kepler155c's furni.lua (multiFurni) arrays and divide up workload,
-- it functions as a straight drop-in for furni.lua and no other adjustments are required to make it work.
-- Additionally, you get the ability to... |
local config = { }
config.hmiUrl = "ws://localhost"
config.hmiPort = 8087
config.mobileHost = "localhost"
config.mobilePort = 12345
config.application1 =
{
registerAppInterfaceParams =
{
syncMsgVersion =
{
majorVersion = 3,
minorVersion = 0
},
appName = "Test Application",
isMediaA... |
--[[
TheNexusAvenger
Manages armor for players.
--]]
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))
local ServerScriptServiceProject = requi... |
-- You need to disable default matchparen plugin with let g:loaded_matchparen = 1 or vim.g.loaded_matchparen = 1
vim.g.loaded_matchparen = 1
require('matchparen').setup({
on_startup = true, -- Should it be enabled by default
timeout = 150, -- timeout in ms to drop searching for matched character in normal mode... |
do
local _ = {
['lazy-bastard'] = {
icon = '__base__/graphics/achievement/lazy-bastard.png',
name = 'lazy-bastard',
icon_size = 128,
type = 'dont-craft-manually-achievement',
order = 'f[limitation]-a[lazy-bastard]',
amount = 111
... |
local folderOfThisFile = (...) .. '.'
return {
ActorSystem = require(folderOfThisFile ..'ActorSystem'),
AssetSystem = require(folderOfThisFile ..'AssetSystem'),
AttributeSystem = require(folderOfThisFile ..'AttributeSystem'),
BehaviorSystem = require(folderOfThisFile ..'BehaviorSystem'),
DisplaySy... |
local UIDGenerator = require "quick.lua.UIDGenerator"
local ObjectsKeeper = require "quick.lua.ObjectsKeeper"
local Events = {}
local funcs = {}
local funcsInverse = {}
function _G.__event_callback_entry_func__(funcKey, sender)
print("func:" .. funcKey .. " called...")
local func = funcs[funcKey]
if not func then
... |
ITEM.name = "AUG"
ITEM.desc = "A Weapon."
ITEM.model = "models/weapons/w_rif_aug.mdl"
ITEM.class = "nut_cs_aug"
ITEM.weaponCategory = "primary"
ITEM.width = 4
ITEM.height = 2
ITEM.price = 4200
ITEM.govWeapon = true
ITEM.iconCam = {
ang = Angle(-1.4573881626129, 270.6755065918, 0),
fov = 12.796572802781,
pos = Vector... |
minetest.register_node("mesecons_lightstone:lightstone_off", {
tiles = {"jeija_lightstone_gray_off.png"},
groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2, mese = 1},
description= "Bluestone Lamp",
sounds = default.node_sound_glass_defaults(),
mesecons = {effector = {
... |
local publish = require("mqtt.publish")
local json = require("cjson")
local hostname
local f = io.open("/proc/sys/kernel/hostname")
hostname = f:read()
f:close()
local m = {}
function shell_escape(args)
local ret = {}
for _,a in pairs(args) do
s = tostring(a)
if s:matc... |
----------------- Anti-Bounce ----------------------
-- * The MIT License (MIT)
-- *
-- * Copyright (c) 2016 Aleksi "Arezu" Lindeman and Jordy "Megadreams" Sleeubus
-- *
-- * Permission is hereby granted, free of charge, to any person obtaining a copy
-- * of this software and associated documentation files (the "Sof... |
return {'ripdeal','riposte','riposteren','rippen','ripper','rips','ripspapier','riphagen','rip','ripmeester','rippen','ripken','riposteer','riposteerde','riposteerden','riposteert','riposten','ripostes','ripsen','rip','ripdeals','rippers','ript','ripte'} |
-- @docclass
--[[
TODO:
* Make table headers more robust.
* Get dynamic row heights working with text wrapping.
]]
TABLE_SORTING_ASC = 0
TABLE_SORTING_DESC = 1
UITable = extends(UIWidget, "UITable")
-- Initialize default values
function UITable.create()
local table = UITable.internalCreate()
table.head... |
--Ce programme permet de découper un arbre seul.
--Plus d'info sur https://www.youtube.com/watch?v=rnhgpmMM6jM et https://www.youtube.com/watch?v=aPwSHFlwwq0
--Initialisation slots turtle
slotCharbon = 7
slotWood = 1
slotPlastic = 2
slotTree = 3
slotWaypoint = 8
slotChest = 9
slotBonemeal = 10
--Permet à la turtle ... |
local K = require("game.constants")
local LG = love.graphics
local pairs, ipairs = pairs, ipairs
local polysGlitter = {
-- spikes wn
{1.2, 1.00, {4, 8, 2, 6, 4.5, 7.5}},
{1.5, 0.70, {4.5, 7.5, 1.5, 3, 6, 6}},
{1.5, 0.60, {6, 6, 3, 1.5, 7.5, 4.5}},
{1.2, 1.00, {7.5, 4.5, 6, 2, 8, 4}},
---- spikes en
{1.2, 1... |
function am2320_h()
am2320.init(5, 6)
local rh, t = am2320.read()
return rh, t
end
|
local Player = game:GetService("Players").LocalPlayer
local GuiParent = game.CoreGui
local Gui = GuiParent:FindFirstChild("HexusGui") or Instance.new("ScreenGui", game.CoreGui)
Gui.Name = "HexusGui"
Gui:ClearAllChildren()
local GuiOpen = false
function GetPlayers(Name)
if Name:lower() == "me" then
return {Player}
... |
--[[
Global Persistence Client Setup File
Copyright 2020 Lex Robinson
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... |
function turn(base, n)
local sum = 0
while n ~= 0 do
local re = n % base
n = math.floor(n / base)
sum = sum + re
end
return sum % base
end
function fairShare(base, count)
io.write(string.format("Base %2d:", base))
for i=1,count do
local t = turn(base, i - 1)
... |
config = {
url = "./config/mountconf.txt", --要读取的配置文件路径 gemTest gemconfig mountconf guild.txt
tableName = "", --配置文件的表名(默认是txt的文件名;对表名搜索是忽略大小写的) MountConf GemConfig Guild lianyaohu
logSave ="./log/", --日志保存路径
as3Name = "", --生成的主表AS3类名,默认是tableName加上Dp后缀
as3Save ="./as3/", --生成的AS3保存路径
as3Pkg = "com.... |
local utils = require("foxcaves.utils")
local file_model = require("foxcaves.models.file")
local ngx = ngx
R.register_route("/api/v1/files/{file}", "PATCH", R.make_route_opts(), function(route_vars)
local file = file_model.get_by_id(route_vars.file)
if not file then
return utils.api_error("File not fou... |
-- mods/australia/biome_arnhem_land.lua
minetest.register_biome({
name = "arnhem_land",
--node_dust = "",
node_top = "default:dirt_with_grass",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 3,
--node_stone = "",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
node_river_water =... |
object_mobile_dressed_myyydril_sick_02 = object_mobile_shared_dressed_myyydril_sick_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_myyydril_sick_02, "object/mobile/dressed_myyydril_sick_02.iff")
|
local awful = require('awful')
local traveler = {}
function traveler.MoveUp()
-- get current tag
local t = client.focus and client.focus.first_tag or nil
if t == nil then
return
end
-- get previous tag (modulo 7 excluding 0 to wrap from 1 to 9)
local tag = client.focus.screen.tags[(t.... |
module("luci.controller.weburl", package.seeall)
function index()
if not nixio.fs.access("/etc/config/weburl") then return end
entry({"admin", "control"}, firstchild(), "Control", 50).dependent = false
entry({"admin", "control", "weburl"}, cbi("weburl"), _("过滤军刀"), 12).dependent =
true
end
|
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by 干冲.
--- DateTime: 2018/4/11 12:12
--- 配置管理器
ConfigManager = class("ConfigManager")
local this = ConfigManager
--初始化配置
function this:InitConfig(callback)
--这里做一些配置初始化的相关操作
if callback~=nil then
callback()
end
end
return this
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.