content stringlengths 5 1.05M |
|---|
local clear_weather_type_persist = ClearWeatherTypePersist
local pause_clock = PauseClock
local set_weather_type_now = SetWeatherTypeNow
local set_weather_type_overtime_persist = SetWeatherTypeNowPersist
local network_override_clock_time = NetworkOverrideClockTime
RegisterNetEvent("setTimeWeather")
AddEventHandler(
... |
local installer = require("nvim-lsp-installer")
local servers = {
sumneko_lua = require("lsp.lua"),
rust_analyzer = require("lsp.rust"),
tsserver = {},
clangd = {},
rescriptls = require("lsp.rescript"),
sourcekit = {},
hls = {},
}
for name, _ in pairs(servers) do
local server_is_found, server = instal... |
---------------------------------------------------
-- ___ _ --
-- | __| |___ _ __ _____ __ _____ _ _ --
-- | _|| / -_) '_ \/ _ \ V V / -_) '_| --
-- |___|_\___| .__/\___/\_/\_/\___|_| --
-- |_| --
-- ... |
-- ===========================================================================
--
-- CivicsChooser
-- Slideout panel containing available civic options.
--
-- ===========================================================================
-- Include self contained additional tabs
g_ExtraIconData = {}
include("CivicsTreeIco... |
exports.name = "websocketutils"
exports.version = "0.0.1"
exports.author = "Niklas Kühtmann"
local bitmap = require('bitmap')
local bit = require('bit')
local bytemap = require('bytemap')
local b64 = require("base64")
local sha1 = require("sha1")
local string = require("string")
string.split = function(inputstr, sep)... |
local Direction = require "me.strangepan.games.specialdelivery.direction"
local class = require "me.strangepan.libs.util.v1.class"
local assert_that = require "me.strangepan.libs.truth.v1.assert_that"
local Path = class.build()
function Path:_init(graph)
assert_that(graph):is_a_table()
self.graph = graph
self.d... |
-----------------------------------------------------------------------------
--===========================================================================
IDENTIFIER = 'S7_Journal'
---@class MODINFO: ModInfo
---@field ModVersion string
---@field ModSettings table
---@field DefaultSettings table
---@field SubdirPrefi... |
-- Default Hilbish config
lunacolors = require 'lunacolors'
bait = require 'bait'
function doPrompt(fail)
prompt(lunacolors.format(
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. '∆ '
))
end
print(lunacolors.format(hilbish.greeting))
doPrompt()
bait.catch('command.exit', function(code)
doPrompt(cod... |
fx_version 'adamant'
game 'gta5'
client_script 'Client.net.dll'
server_scripts {
'Server.net.dll',
'main.lua',
} |
local spikeJumpThruController = {}
spikeJumpThruController.name = "YetAnotherHelper/SpikeJumpThruController"
spikeJumpThruController.depth = 0
spikeJumpThruController.placements = {
name = "normal",
data = {
persistent = false
}
}
spikeJumpThruController.texture = "ahorn/YetAnoth... |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSP... |
local a = require 'plenary.async'
local M = {}
function M.new(builder_fn)
local instance = {
state = {
name = nil,
switches = {},
options = {},
actions = {{}},
env = {},
},
builder_fn = builder_fn
}
setmetatable(instance, { __index = M })
return instance
end
functi... |
function RegisterMap(name)
warning("RegisterMap() is deprecated, please use the base game mod loader for custom maps.")
end |
require("background")
require("bird")
require("tube")
GameScene = class()
function GameScene:onInit()
self.bird = Bird()
self.bg = Background()
self.tubes = {}
self.gameOverImg = luna.graphics.Sprite(luna.assets.art.items.gameover)
self.gameOverImg:setOriginToCenter()
self.gameOverImg:setPos(luna.sizes.getScr... |
object_ship_nova_orion_intro_01_tier7 = object_ship_shared_nova_orion_intro_01_tier7:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_intro_01_tier7, "object/ship/nova_orion_intro_01_tier7.iff")
|
local CarAddient = {}
CarAddient.id = "car_addident"
CarAddient.eventRequirement = timeline.EVENTS.NEW_DAY
CarAddient.rollMin = 7
CarAddient.rollMax = 1000
CarAddient.occurChance = 7 -- 7 in 10000
CarAddient.awayDuration = 42 -- 42 days
CarAddient.validEmployees = {}
CarAddient.fact_baselineAge = 20 -- th... |
local Settings = {
["token"] = "YOUR_TOKEN_HERE",
["url"] = "YOUR_URL_HERE"
--// Note: Remove the slash at the end of your url, it'll be automatically replaced.
}
return Settings
|
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local Clockwork = Clockwork;
local ITEM = Clockwork.item:New(nil, true);
ITEM.na... |
import("colors.lua")
import("draw.lua")
import("keys.lua")
local pos_x = 0
local pos_y = 0
function init()
renderer_h = 25
renderer_w = 25
renderer_text = 'test_app'
end
function on_logic()
if key_down(keys.esc) then
quit(0)
end
if key_down(keys.up) then
if pos_y ~= 0 then
pos_y =... |
#!/usr/bin/env th
-- Original by @eladhoffer at https://github.com/eladhoffer/DeepDream.torch.
-- Modifications by @bamos at https://github.com/bamos/dream-art.
-- Both licensed under the MIT license.
require 'torch'
require 'nn'
require 'image'
require 'optim'
torch.setdefaulttensortype('torch.DoubleTensor')
local ... |
local function loader(t, k)
return rawget(t, k) or require("widgets." .. k)
end
return setmetatable({}, { __index = loader })
|
a=Motion(1,39488,39531)
b=Motion(1,52177,52271)
e=stitch(a,b, "stitch", 40,true, false, true, true)
e:show()
f=stitch(a,b, "concat")
f:show("green")
test("PositionStitch", 53536, 53601, 25908, 25960) |
-- GUN (Give Up Now)
os.exit()
|
ZO_CreateStringId("SI_BUI_INV_ITEM_ALL","Inventário")
ZO_CreateStringId("SI_BUI_INV_ITEM_MATERIALS","Materiais")
ZO_CreateStringId("SI_BUI_INV_ITEM_QUICKSLOT","|cFF6600Consumíveis|r")
ZO_CreateStringId("SI_BUI_INV_ITEM_WEAPONS","Armas")
ZO_CreateStringId("SI_BUI_INV_ITEM_APPAREL","Vestuário")
ZO_CreateStringId("SI_BUI_... |
local diff = {
["axisDiffs"] = {
["a3032cd16"] = {
["added"] = {
[1] = {
["key"] = "JOY_RX",
},
},
["name"] = "ANT ELEV Knob",
},
},
["keyDiffs"] = {
["d3001pnilu3001cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "JOY_BTN3",
},
},
["name"] = "NWS A/R DISC MSL ... |
local setmetatable = setmetatable
module("tiles")
TRIPLE_WORD = "x3W"
DOUBLE_WORD = "x2W"
TRIPLE_LETTER = "x3L"
DOUBLE_LETTER = "x2L"
local ptsLookup = {["a"]=1,
["b"]=3,
["c"]=3,
["d"]=2,
["e"]=1,
["f"]=4,
["g"]=2,
["h"]=4,
["i"]=1,
["j"]=8,
["k"]=5,
["l"]=1,
["m"]=3,
["n"]=1,
["o"]=1,
["p"]=3,
["q"]=10,
["r"]=1,... |
-- Copyright 2022 SmartThings
--
-- 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 in ... |
return {'pueblo','pueriel','pueriele','pueblos'} |
return {
gok_cv = {
acceleration = 0.242,
brakerate = 2.4816,
buildcostenergy = 2125,
buildcostmetal = 135,
builddistance = 180,
builder = true,
buildpic = "gok_cv.dds",
buildtime = 4000,
canguard = true,
canmove = true,
canpatrol = true,
canreclamate = 1,
canstop = 1,
catego... |
-- Petit script pour faire office de crontab pour les
--mesures
print("\n 0_cron.lua zf191225.1803 \n")
cron1=tmr.create()
cron1:alarm(300*1000, tmr.ALARM_AUTO, function()
send_data()
end)
|
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2022
-------------------------------------------------------------------------------
this module based on CPML - Cirno's Perfect Math Library
https://github.com/excessive/cpml/blob/master/modules/intersect.... |
local core = require "uuid.core"
local skynet = require "skynet"
local skynet_timeout = skynet.timeout
-- [[uuid format : (33bits timestamp)(6bits harbor)(15bits service)(10bits sequence)]]
local uuid = {}
local timestamp
local service
local sequence
function uuid.gen ()
if not service then
local sid = core.sid ... |
-----------------------------------
-- Area: Caedarva Mire
-- Door: Heavy Iron Gate
-- !pos -299 -6 -80 79
-----------------------------------
local ID = require("scripts/zones/Caedarva_Mire/IDs")
require("scripts/globals/keyitems")
-----------------------------------
function onTrade(player, npc, trade)
end
function... |
mapFields = require "lib/mapFields"
target.play_portal_sound_effect()
target.transfer_field(mapFields.getID("MushroomForestField"), 1) |
--[[
Unit tests for the file path manipulation module of the Lua/APR binding.
Author: Peter Odding <peter@peterodding.com>
Last Change: March 27, 2011
Homepage: http://peterodding.com/code/lua/apr/
License: MIT
--]]
local status, apr = pcall(require, 'apr')
if not status then
pcall(require, 'luarocks.require... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
--[[
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... |
--[[
TheNexusAvenger
Wrapped plugin instance with additional functionality.
--]]
local INSTANCE_CREATION_PRESETS = {
Frame = {
BackgroundColor3 = Enum.StudioStyleGuideColor.MainBackground,
BorderColor3 = Enum.StudioStyleGuideColor.Border,
BorderSizePixel = 0,
},
ImageButton = {
... |
-- huangxin <3203317@qq.com>
redis.replicate_commands();
local db = KEYS[1];
local server_id = KEYS[2];
local channel_id = KEYS[3];
local group_uuid = KEYS[4];
local group_type = KEYS[5];
redis.call('SELECT', db);
--
local user_id = redis.call('GET', server_id ..'::'.. channel_id);
if (false == user_id)... |
if SERVER then
AddCSLuaFile()
resource.AddFile("materials/vgui/ttt/dynamic/roles/icon_cap.vmt")
end
function ROLE:PreInitialize()
self.color = Color(136, 81, 50, 255)
self.abbr = "cap"
self.score.surviveBonusMultiplier = 0.5
self.score.timelimitMultiplier = -0.5
self.score.killsMultiplier = 2
self.score.team... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
---
local state = require(ReplicatedStorage:FindFirstChild("state"))
---
return function()
it("should have a public API", function()
expect(state.table.append).to.be.a("function")
expect(state.table.getn).to.be.a("function")
... |
DarkRP.PLAYER.newHungerData = DarkRP.stub{
name = "newHungerData",
description = "Create the initial hunger data (called on PlayerInitialSpawn).",
parameters = {
},
returns = {
},
metatable = DarkRP.PLAYER
}
DarkRP.PLAYER.hungerUpdate = DarkRP.stub{
name = "hungerUpdate",
description = "Makes the player sligh... |
local SyntaxKind = require("lunar.ast.syntax_kind")
local SyntaxNode = require("lunar.ast.syntax_node")
local FunctionCallExpression = setmetatable({}, {
__index = SyntaxNode,
})
FunctionCallExpression.__index = setmetatable({}, SyntaxNode)
function FunctionCallExpression.new(base, arguments)
return FunctionCallExp... |
local AceLocale = LibStub("AceLocale-3.0")
local is_default, errors_turned_of_on_unknown_locale = true, true
local L = AceLocale:NewLocale( "ServTr", "enUS", is_default, errors_turned_of_on_unknown_locale)
if not L then return end
--global things
L[" loaded. Type /servtr for help."] = true
-- article for connecti... |
local M = {}
local defaults = {
-- opts for the handlers
client = {
hover = {
use_split = false,
split_size = '30%',
auto_resize_split = false,
split_position = 'bottom',
with_history = false,
use_as_popup = false,
},
},
-- opts for nvim-lspconfig
server = {},
au... |
local dire = "ChibbiScripts/"
local url = "https://raw.githubusercontent.com/chibbi/ComputerCraftScripts/main/"
if(fs.exists(dire)) then
fs.delete(dire)
end
fs.makeDir(dire)
local primaryRequest = http.get(url .. "scriptList.txt")
local allFiles = {}
local temp = primaryRequest.readAll()
temp:gsub(".",function(c)... |
object_tangible_storyteller_prop_hoth_pr_hoth_icicle_03 = object_tangible_storyteller_prop_hoth_shared_pr_hoth_icicle_03:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_hoth_pr_hoth_icicle_03, "object/tangible/storyteller/prop/hoth/pr_hoth_icicle_03.iff")
|
KiwiItemInfo.Locale["ptBR"] = {
["TOOLTIP_UNIT"] = "Unidade: ",
["TOOLTIP_STACK"] = "Pilha:",
["TOOLTIP_ILVL"] = "iLvl ",
["TOOLTIP_PRY_EQUIP"] = "EQUIPAR: ",
["TOOLTIP_PRY_USE"] = "USO: ",
["TOOLTIP_PRY_CHANCE"] = "CHANCE AO ACERTAR: ",
["TOOLTIP_CMP_AGILITY"] = "[+-]%d+%s[AGILIDADE]+",
["TOOLTIP_PRY_AGILITY"... |
print("Toggle the digital I/O called FIO3 (FIO5 on T4) at 1 Hz. Generates a 0.5Hz square wave.")
local count = 0
local high = 0
local mbWrite=MB.W
LJ.IntervalConfig(0, 1000) --set interval to 1000 for 1000ms
local checkInterval=LJ.CheckInterval
local outPin = 2003--FIO3. Changed if T4 instead of T7
devType = MB.... |
--- Template for action file
-- @submodule Actions
-- @local
local const = require("adam.const")
local helper = require("adam.system.helper")
local ActionInstance = require("adam.system.action_instance")
local M = {}
--- Add operator
-- @treturn ActionInstance
function M.func(source, value, is_every_frame)
local a... |
--[[ Molten Core - Thrash mobs
This is all the thrash mobs scripted in Molten Core.
~~End of Script Forenote
-- Viggo-xd, November 29th, 2008. ]]--
-----Molten Giant-----
function MoltenGiant_OnEnterCombat(pUnit, Event)
pUnit:RegisterEvent("MoltenGiant_Smash", 20000,1)
pUnit:RegisterEvent("MoltenGiant_Knockback"... |
-- Copyright 2018-2022 Hugo O. Rivera. See LICENSE.
-- Reason (https://reasonml.github.io/) 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('reason')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, ... |
return function (conn)
conn:send(wifi.sta.getip());
print(wifi.sta.getip());
end
|
function init()
effect.setParentDirectives(config.getParameter("directives", ""))
self.healthPercentage = config.getParameter("healthPercentage", 0.1)
end
function update(dt)
status.setResourcePercentage("health", math.min(status.resourcePercentage("health"), self.healthPercentage))
end
function uninit()
end
|
--[[
___ .___ .
.' `. , __ ` __. , __ / \ .___ __. . ___ ___ _/_
| | |' `. | .' \ |' `. |,_-' / \ .' \ \ .' ` .' ` |
| | | | | | | | | | | ' | | | |--... |
-- Titanium recipe & tech changes
--
local util = require("__bzlead__.data-util");
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"] and not mods["IndustrialRevolution"]) then
util.replace_ingredient("pipe", "iron-plate", "lead-plate")
util.replace_ingredient("pipe-to-ground", "iro... |
local createrole = {
[1] = {ID=1,OccupationID=10,title="jk_zi.png",background="js_1.png",bust="zhujue1.png",portrait="cj_nzj.png",Money=0,Emoney=0,Level=1,Head="wjxxtx_nanzhu.png",Card="zjJK.png",Picture=1,Item="",Weapon=41101001,sex=0,ATK=4,Magic=0,Def=2,Life=3,rolebutton="UI_icon_js.png"},
[2] = {ID=2,OccupationID=20... |
Config = {}
Config.Locale = 'fr'
Config.Price = 15
Config.DrawDistance = 100.0
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
Config.MarkerColor = {r = 102, g = 102, b = 204}
Config.MarkerType = 27
Config.Zones = {}
Config.Shops = {
{x=70.519, y=-1399.876, z=29.383}, --#1
{x=430.811, y=-798.989, z=2... |
--[[
Steps to modify chunk_size to 64
- set qconsts.chunk_size to 64 in UTILS/lua/q_consts.lua
- modify Q_CHUNK_SIZE constant to 64 in UTILS/inc/q_constants.h
- rebuild Q
]]
-- For all tests, set chunk size to 64
-- Weird behavior: if I uncomment Q.print_csv() statement from below tests then all tests works except t1
... |
-- Scripts juste pour éteindre toutes les LED du ruban
-- tout sur la couleur: https://www.w3schools.com/colors/default.asp
-- roue des couleurs: https://iro.js.org/?ref=oldsite
print("\n az_init_led.lua zf181201.1751 \n")
znbled=300
function RGB_clear()
ws2812.init()
buffer = ws2812.newBuffer(znbled, 3)
... |
-- https://www.reddit.com/r/vim/comments/d77t6j/guide_how_to_setup_ctags_with_gutentags_properly/
vim.g.gutentags_ctags_exclude = {
'*.git', '*.svg', '*.hg',
'*/tests/*',
'build',
'dist',
'*sites/*/files/*',
'bin',
'node_modules',
'bower_components',
'cache',
... |
-- This script is part of lua2exe
-- Loader for embedded scripts
local load2 = loadembed
local names = embeddedfiles
local function loader (name)
if names[name] then
return load2(name, names[name])
else return 'No embedded module \''..name ..'\''
end end
loadembed = nil
embeddedfiles = nil
table.insert(package.loade... |
local function map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
-- Nerdtree
map('n', '<C-n>', '<cmd>NERDTreeToggle<CR>')
map('n', '<Leader>v', '<cmd>NERDTreeFind<CR>')
-- Hop
map('n',... |
local setmetatable = setmetatable
local string = string
local gtable = require("gears.table")
local vertical = require("wibox.layout.fixed").vertical
local grid = require("wibox.layout.grid")
local textbox = require("wibox.widget.textbox")
local bgcontainer = require("wibox.container.background")
local base = require("... |
require("curses");
curses.initscr();
while (true) do
local s = curses.getnstr(1000);
curses.addstr(s);
curses.addstr(":" .. table.concat({curses.getyx(curses.stdscr())}, ' ') .. "\n");
if (s == "exit") then break; end
end
curses.endwin();
|
bestine_election_smooth_stone = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "smooth_stone", weight = 10000000},
}
}
addLootGroupTemplate("bestine_election_smooth_stone", bestine_election_smooth_stone)
|
local framework, loadError = loadfile("personalFramework.lua")
if loadError then
error(loadError)
end
framework()
term.clear()
local table1 = {
{a=1, b=2, c={1,2}},
{a=2, b=3, c={5,7}},
{a=2, b=5, c={8,9}},
}
local table2 = table.blend(table1)
rPrint(table2, 10, "Blended table")
local str1 = "This ... |
DoorSlot = CustomItem:extend()
DoorSlot.Icons = {
[0] = "none",
[1] = "doortracker/unknown",
[2] = "overlays/overlay-x",
[3] = "doortracker/caution",
[4] = "doortracker/exit",
[5] = "items/smallkey",
[6] = "items/bigkey",
[7] = "doortracker/boss",
[8] = "doortracker/crystalswitch",
... |
--[[
module:FlyweightTest
author:DylanYang
time:2021-02-10 22:08:35
]]
local ShapeFactory = require("patterns.structural.flyweight.ShapeFactory")
local super = require("patterns.BaseTest")
local _M = Class("FlyweightTest", super)
local static = _M.static
_M.static.readonly.colors = { "Red", "Green", "Blue... |
function SelectableMixin:OnSighted(sighted)
if not sighted then
local selectedByTeamOne = bit.band(self.selectionMask, 1) ~= 0
local selectedByTeamTwo = bit.band(self.selectionMask, 2) ~= 0
if (self:GetTeamNumber() == 2 or self:GetTeamNumber() == 0) and selectedByTeamOne then... |
--
-- Created by IntelliJ IDEA.
-- User: sdcuike
-- Date: 2015
-- Time: 下午4:09
--
local cjson = require('cjson.safe')
-- 日志功能组件 begin ---
local modulename = "Util"
local _M = {}
_M._VERSION = '0.0.1'
_M.logInfo = function ( info )
ngx.log(ngx.INFO, "[["..info.."]]")
end
_M.logError = function (error)
... |
--MoveCurve
--H_Tokisaki/curve_Attack_1 curve_Attack_1
return
{
filePath = "H_Tokisaki/curve_Attack_1",
startTime = Fixed64(0) --[[0]],
startRealTime = Fixed64(0) --[[0]],
endTime = Fixed64(20447232) --[[19.5]],
endRealTime = Fixed64(136315) --[[0.13]],
isZoom = false,
isCompensate = false,
curve = {
[1] = {... |
-- https://github.com/aubergine10/Style
require 'lib.style'
require 'lib.image'
require 'lib.sound'
require 'lib.shortcut' |
object_tangible_food_crafted_beastfood_blubbery_fish_substitute = object_tangible_food_crafted_shared_beastfood_blubbery_fish_substitute:new {
}
ObjectTemplates:addTemplate(object_tangible_food_crafted_beastfood_blubbery_fish_substitute, "object/tangible/food/crafted/beastfood_blubbery_fish_substitute.iff")
|
-- myauth.jwt
local _M = {}
local cjson = require "cjson"
_M.secret = nil
_M.ignore_audience = false
function _M.authorize(token, host) -- token, error_code, error_reason
if token == nil then
return nil, 'missing_token', nil;
end
local jwt = require "resty.jwt"
if _M.secret == nil then
error("Se... |
function dumpGameInfo()
-- dump Game Information that the Archipelago Randomizer needs.
local data_collection = {}
local force = game.forces["player"]
for tech_name, tech in pairs(force.technologies) do
if tech.enabled and tech.research_unit_count_formula == nil then
local tech_data ... |
-- license:BSD-3-Clause
-- copyright-holders:Vas Crabb
local exports = {
name = 'timer',
version = '0.0.3',
description = 'Game play timer',
license = 'BSD-3-Clause',
author = { name = 'Vas Crabb' } }
local timer = exports
function timer.startplugin()
local total_time = 0
local start_time = 0
local play_count... |
-- See LICENSE for terms
local props = {
PlaceObj("ModItemOptionToggle", {
"name", "EnableMod",
"DisplayName", T(302535920011303, "<color ChoGGi_yellow>Enable Mod</color>"),
"Help", T(302535920011793, "Disable mod without having to see missing mod msg."),
"DefaultValue", true,
}),
PlaceObj("ModItemOptionTog... |
local enums = require "enums"
require "position"
Character = {}
function Character:newCharacter(x, y, z, movement_speed, attack_damage, width, height)
local new_character = {
position = Position:newPosition(x, y, z),
movement_speed = movement_speed,
attack_damage = attack_damage,
w... |
--abcdd = {}
print(abcdd.a)
abcdd.addd().ddd.dddp()
abcdd.eff()
abcdd.addd().ddd.dddp()
abcdd.eff()
abcdd:dd().dd1()
abcdd:dd().dd1()
print(abcdd.addd().ddd.a.d)
print(abcdd.addd().ddd.dd.ddd)
abcdd:dd()
abcdd.ccc(one, one).a.b.c()
|
local HooI
return function(lib)
HooI = lib
local SelectableSystem = HooI.class("SelectableSystem", HooI.system)
function SelectableSystem:initialize(canvas)
self.class.super.initialize(self)
canvas.eventManager:addListener("HoverEvent", self, self.hoverEvent)
canvas.eventM... |
---------------------------------------------------------------------------------------------------
---player_resource.lua
---author: Karl
---date: 2021.8.7
---desc: A PlayerResource object is a struct that contains the resources of one player
----------------------------------------------------------------------------... |
--[[
parent : irrelevant
children: cell.lua, cellList.lua, matrix.lua
ModuleScript
]]--
--i use comments like the one above to easily tell what the parent > child tree is without having to read through the code
local automata = {};
--constant declarations up here unecessary, if you're going to have constants, at... |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
local NoteResult = {
Miss = 1;
Okay = 2;
Good = 3;
Great = 4;
Perfect = 5;
Marvelous = 6;
}
function NoteResult:timedelta_to_result(time_to_end, _game)
time_to_end = time_to_end / _game._audio_manager.get_song_rate()
if time_to_end >= _game._audio_manager.NOTE_OKAY_MIN and time_to_end <= _game._audio_manager.N... |
fx_version 'cerulean'
game 'gta5'
author 'Yamie#9680'
description 'Pizza Runs'
lua54 'yes'
shared_scripts {
'config.lua'
}
client_scripts {
'client.lua'
}
escrow_ignore {
'config.lua', -- Only ignore one file
}
server_script 'server.lua'
--[[ client_scripts {
"client.lua",
"config.lua"}
server_script... |
-- See LICENSE for terms
local mod_BuildDist
-- fired when settings are changed/init
local function ModOptions()
local value = CurrentModOptions:GetProperty("BuildDist")
mod_BuildDist = value
if GameState.gameplay then
CityDomeTeleporterConstruction[UICity].max_hex_distance_to_allow_build = value
CityDomeTele... |
-- Copyright (c) 2016 Clockwork Engine. All Rights Reserved.
-- See License.txt in the project root for license information.
function Bullet_Project()
group "Libs"
project "Bullet"
targetname "Bullet"
kind "StaticLib"
language "C++"
prepareProject("Bullet", "../lib")
fi... |
local editor = NewFile()
editor:SetText('print("select")')
-- this is to set proper styles, which are needed for EditorCallTip
editor:Colourise(0, -1)
local value = ''
local CTS = editor.CallTipShow
editor.CallTipShow = function(editor, pos, tip) value = tip end
EditorCallTip(editor, 10)
editor.CallTipShow = CTS
if ... |
-- moves all folders to ReplicatedStorage.
-- This is so we can edit things in the workspace.
local new_parent = game.ReplicatedStorage
for _, inst in pairs(script.Parent:GetChildren()) do
if inst:IsA("Folder") then
inst.Parent = new_parent
end
end
script.Disabled = true
script.Parent = nil
|
-- -*- lua -*-
conflict("intel", "gcc")
local version="2016"
local xeversion=version..".".."1.40.463413"
local intel_prefix="/opt/intel"
local intelxe_prefix=pathJoin(intel_prefix, version)
local icc_prefix=pathJoin(intelxe_prefix, "compilers_and_libraries_2016.3.210/linux")
whatis("Name: Intel 64 Compiler XE")
what... |
return {
fadeOut = 1.5,
mode = 2,
id = "WANSHENGJIE5",
once = true,
fadeType = 1,
fadein = 1.5,
scripts = {
{
mode = 1,
sequence = {
{
"“魔女们”的万圣夜\n\n<size=45>其五 Trick or treat!</size>",
1
}
}
},
{
actor = 301171,
actorShadow = true,
actorName = "{namecode:87}&{namecode:1... |
local agw_service = require "service.agw"
local log = ngx.log
local ERR = ngx.ERR
local DEBUG = ngx.DEBUG
local new_timer = ngx.timer.at
local api_sync_interval = 3
local server_state_check_interval = 20
local api_sync_timer
local server_state_check_timer
-- sync api proxy infos from mysql
api_sync_timer = functio... |
local nvim_lsp = require('lspconfig')
-- enable null-ls integration (optional)
require("null-ls").config {}
require("lspconfig")["null-ls"].setup {}
-- make sure to only run this once!
nvim_lsp.tsserver.setup {
-- Only needed for inlayHints. Merge this table with your settings or copy
-- it from the source if you w... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "Infopanel Sections",
id = "customRocketExpedition",
PlaceObj('XTemplateGroup', {
'__context_of_kind', "SupplyRocket",
}, {
PlaceObj('XTemplateTemplate', {
'comment', "cancel expedition",
'__condition', func... |
-- Base16 Atelier Forest color
-- Author: Bram de Haan (http://atelierbramdehaan.nl)
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#1b1918" -- ----
M.base01 = "#2c2421" -- ---
M.base02 = "#68615e" -- --
M.base03 = "#766e6b" -- -
M.base04 ... |
--[[
Test loading the hms (body joints predictor) networks (LSTM + ConvNet3D).
]]
require 'torch'
require 'paths'
require 'string'
require 'nn'
require 'nngraph'
require 'image'
require 'cutorch'
require 'cunn'
require 'cudnn'
disp = require 'display'
paths.dofile('../projectdir.lua')
torch.manualSeed(14)
torch.... |
local core = require("apisix.core")
-- TODO: need a more powerful way to define the schema
local args_schema = {
i = "int",
s = "string",
t = "table",
}
local plugin_name = "example-plugin"
local _M = {
version = 0.1,
priority = 1000, -- TODO: add a type field, may be a good idea
nam... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local _M = function(role,data)
if not data.id or type(data.id) ~= "number" then return 2 end
if not data.num or type(data.num) ~= "number" then return 2 end
local pass,typ = role.shop:can_buy... |
ropes.can_place_rope_in_node = function(target_node_name)
if ropes.can_extend_into_nodes[target_node_name] == true then
return true
end
local target_def = minetest.registered_nodes[target_node_name]
if target_def then
if target_def.drawtype == "airlike" and ropes.can_extend_into_airlike then
return true
en... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.