content stringlengths 5 1.05M |
|---|
package("nanovg")
set_homepage("https://github.com/memononen/nanovg/")
set_description("Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.")
set_license("zlib")
add_urls("https://github.com/memononen/nanovg.git")
on_install("windows", "macosx", "linux", function (pa... |
--[[ 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... |
object_tangible_storyteller_prop_pr_destroyed_transport_2 = object_tangible_storyteller_prop_shared_pr_destroyed_transport_2:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_destroyed_transport_2, "object/tangible/storyteller/prop/pr_destroyed_transport_2.iff")
|
local cfg = {
applylistener = {}
}
cfg.config = {}
function cfg.select(key,value)
cfg.config[key] = value
end
function cfg.onApply(fn)
table.insert(cfg.applylistener,fn)
end
function cfg.winres (n)
local ww,wh = window.width(),window.height()
if (n) then
local r = {{640,480},{800,600},{1024,768},{1280,1024},... |
FadeToBlack({{Tale_Action_FadeTime}}) |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize()
self.Entity:SetModel( "models/Items/grenadeAmmo.mdl" )
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
loca... |
-- https://github.com/glepnir/lspsaga.nvim
require'lspsaga'.init_lsp_saga {
use_saga_diagnostic_sign = true,
error_sign = '',
warn_sign = '',
hint_sign = '',
infor_sign = '',
dianostic_header_icon = ' ',
code_action_icon = ' ',
code_action_prompt = {
enable = true,
... |
local cjson = require("cjson")
local M = {}
local function parseFilters(csvFilters)
local filters = {}
if (not (csvFilters == nil)) then
for pattern in string.gmatch(csvFilters, "[^,]+") do
table.insert(filters, pattern)
end
end
return filters
end
function M.get_options(config, ngx)
-- check... |
-- Skype mega-caller Hammerspoon.
local cac = {"cmd", "shift"}
-- hs.eventtap.keyStroke(cac, "r")
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "J", function ()
while (true)
do
hs.eventtap.keyStroke(cac, "r")
hs.eventtap.keyStroke(cac, "h")
end
end)
|
--[[
Cloud Manager API
This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET requ... |
--[[
Gamepad Character Control - This module handles controlling your avatar using a game console-style controller
2018 PlayerScripts Update - AllYourBlox
--]]
local UserInputService = game:GetService("UserInputService")
local ContextActionService = game:GetService("ContextActionService")
--[[ Constants ]]--
lo... |
-- Require Gui.lua from the same folder.
return require(((".".. ...):gsub("%.init$", "")..".Gui"):sub(2))
|
-- Config.lua
-- Implements the configuration for the plugin
--- The configuration object
g_Config = {}
--- Name of the config file
local CONFIG_FILE = "LastSeen.cfg"
--- Checks if a_Config has all the keys it needs, adds defaults for the missing ones
-- Returns the corrected configuration (but changes the... |
--[[-------------------------------------------------------------------------
CreateCollections.lua
Replicates keyword hierarchy under the `rootKeywordName` into set of
collections under `rootCollectionSetName`
---------------------------------------------------------------------------]]
-- Set the names of root key... |
Wifi = {};
function Wifi.connect(ssid, pass)
local sta_config = {
ssid = ssid,
pass = pass,
save = false,
};
wifi.setmode(wifi.STATION);
return wifi.sta.config(sta_config);
end
function Wifi.disconnect()
wifi.sta.disconnect();
end
return Wifi;
|
--[[
Pythagoras.lua
version: 18.01.11
Copyright (C) 2018 Jeroen P. Broks
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software f... |
-- bindings in this file are prioritized over the default bindings
-- if you need help, check out the documentation https://gwatcha.github.io/reaper-keys/configuration/bindings.html
-- check out the ./defaults directory to see examples
return {
global = {
timeline_motion = {},
timeline_operator = {},
time... |
--[[
Copyright (c) 2018, Vsevolod Stakhov <vsevolod@highsecure.ru>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... |
local config = ...
if not config.delete then addToConfig('delete', nil, {}) end
local deleteTrigger = config.delete.trigger or addToConfig('delete', 'trigger', 'ой')
local deleteTriggerAll = config.delete.triggerAll or addToConfig('delete', 'triggerAll', '/delall')
local deleteEditTo = config.delete.editTo or addToCo... |
_AMD_SAMPLE_NAME = "HelloD3D12"
dofile ("../../premake/amd_premake_util.lua")
workspace (_AMD_SAMPLE_NAME)
configurations { "Debug", "Release" }
platforms { "x64" }
location "../build"
filename (_AMD_SAMPLE_NAME .. _AMD_VS_SUFFIX)
startproject (_AMD_SAMPLE_NAME)
filter "platforms:x... |
------------------------------------------------------------------------------
-- GLBackgroundBox class
------------------------------------------------------------------------------
local ctrl = {
nick = "glbackgroundbox",
parent = iup.BOX,
include = "iupgl.h",
subdir = "ctrl",
creation = "I",
funcname = ... |
--[[
Title: DemoEntity
Author(s):
Date:
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)Mod/Test/DemoEntity.lua");
local DemoEntity = commonlib.gettable("Mod.Test.DemoEntity");
------------------------------------------------------------
]]
local DemoEntity = commonlib.... |
--[[
desc: Fury, A buff.
author: SkyFvcker
since: 2018-9-18
alter: 2019-3-31
]]--
local _ATTRIBUTE = require("actor.service.attribute")
local _SOUND = require("lib.sound")
local _RESMGR = require("actor.resmgr")
local _Color = require("graphics.drawunit.color")
local _Tweener = require("util.gear.tweener")
local ... |
require('plugins.quick-scope.variables')
|
local Root = script.Parent.Parent
local PurchaseError = require(Root.Enums.PurchaseError)
local Promise = require(Root.Promise)
local GetFFlagNewEconomyDeveloperProductUrl = require(Root.Flags.GetFFlagNewEconomyDeveloperProductUrl)
local function performPurchase(network, infoType, productId, expectedPrice, requestId,... |
---------------------------------------------------------------------------
--- Math module for gears
--
-- @module gears.math
---------------------------------------------------------------------------
local rtable = table
local gmath = {}
local function subset_mask_apply(mask, set)
local ret = {}
for i = 1... |
local Native = require('lib.native.native')
---@class Ability : Agent
local Ability = class('Ability', assert(require('lib.oop.agent')))
---getBooleanField
---@param field AbilityBooleanField
---@return boolean
function Ability:getBooleanField(field)
return Native.BlzGetAbilityBooleanField(getUd(self), field)
end... |
require("game.constants")
require("game.map_structures")
require("game.object_structures")
-- Function ctor_hero( l As char_type Ptr = 0 ) As char_type Ptr
function ctor_hero(l)
--
--NOTE: The ability of the function to factory a new hero
--object and return it was never used, so we do not port the logic here.
-... |
local pm = require'jet.daemon.path_matcher'
describe(
'The jet.daemon.path_matcher module',
function()
describe('An exact path matcher',function()
local match
setup(function()
local path_matcher = pm.new({
path = {
equals = 'somepath'
... |
return {
menus = {
num_items = 2,
item_0 = {
title = "game",
num_items = 5,
item_0 = {
title = "menu_file",
num_items = 19,
item_0 = "menu_file_new",
item_1 = "menu_file_load",
item_2 = "menu_file_skip",
item_3 = "menu_file_previous",
item_4 = "menu_file_last_played",
item_... |
local module = {
Name = "Toggle slock",
Description = "Toggles slock, player who is not admin will be kicked if slock is on",
Location = "Server",
}
local status = false
module.Execute = function(Client, Type, Attachment)
if Type == "command" then
status = not status
module.Remotes.Event:FireClient(Client,... |
PlayState = class{__includes = BaseState}
local PIPE_SPAWN_MAX_TIME = 2
function PlayState:init()
self.bird = Bird()
self.pipePairs = {}
self.pipeSpawnTimer = 0
self.score = 0
-- initialize last Y value for pipe gap placement
self.lastY = -PIPE_HEIGHT + math.random(80) + 20
end
... |
local beautiful = require("beautiful")
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local helpers = require("helpers")
local screen = screen.primary
local dpi = beautiful.xresources.apply_dpi
local centered = helpers.centered
local padded = help... |
local K, C, L = unpack(select(2, ...))
if C.Unitframe.Enable ~= true then return end
local _, ns = ...
local config = ns.config
local oUF = ns.oUF or oUF
-- Lua API
local _G = _G
local pairs = pairs
local print = print
local select = select
local table_insert = table.insert
local unpack = unpack
-- Wow API
local CLA... |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.17.2",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
nextobjectid = 18,
properties = {},
tilesets = {
{
name = "white-walls",
firstgid = 1,
ti... |
local Console = require 'debug/console'
--[[
This file registers all commands to the console
]]
function reloadPath(path)
package.loaded[path] = nil
require(path)
print(path .. " reloaded!")
end
Console.registerCommand('reload','hot-reloads a script file','reload <file>',function(args)
if #args < ... |
return require('packer').startup(function (use)
-- Package Manager
use 'wbthomason/packer.nvim'
-- Colors
use 'fnune/base16-vim'
use 'rktjmp/lush.nvim' -- TODO: Mess around with it
-- Visual
use 'folke/which-key.nvim'
use 'tversteeg/registers.nvim'
use {
'lukas-reineke/inde... |
--[[ Copyright (C) 2019 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
Config = {}
Config.ClosestVehicleRadius = 5.0
Config.Distance = 0.75
Config.disableShuffle = true |
local M = {}
local enum = require("game/config.enum")
local dbBagTbl = require("game.db.dbBagTbl")
--local dbHeroTbl = require("game.db.dbHeroTbl")
local dbUserPlayerTbl = require("game.db.dbUserPlayerTbl")
local item = require("game.config.item")
local gift = item.gift
local lottery = item.lottery
local lotteryWeigh... |
test = require 'u-test'
common = require 'common'
--Bug 35915673 Disabling websocket tests due to websocket.org no longer in service
test.skip = true
test.testWebsocketCloseHandleWhileConnected = function()
print("testWebsocketCloseHandleWhileConnected")
HCInitialize();
HCWebSocketCreate();
HCWebSock... |
--------------------------------
-- @module Speed
-- @extend Action
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Speed] setInnerAction
-- @param self
-- @param #cc.ActionInterval action
-- @return Speed#Speed self (return value: cc.Speed)
--------------------------------
-... |
vim.o.mouse = "a"
vim.o.cmdheight = 1
vim.o.showmode = false
vim.o.clipboard = "unnamedplus"
vim.o.conceallevel = 0
vim.o.showtabline = 2
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.o.expandtab = true
vim.o.hidden = true
vim.o.termguicolors = true
vim.o.number = true
vim.bo... |
net.Receive("f4menu", function()
--main window
local x = 1000/1768 * ScrW()
local y = 700/992 * ScrH()
local menu = vgui.Create("DFrame")
menu:SetSize(x, y)
menu:SetPos(ScrW()/2 - x/2, ScrH()/2 - y/2)
menu:SetTitle("Basewars Menu")
menu:SetDraggable(false)
menu:ShowCloseButton(true)
menu:MakePopup()
--
... |
--allows potara earrings
local function saiyanCanGoSuperSaiyan(saiyan)
--15 is combathardness
for _,misc_trait in ipairs(saiyan.status.misc_traits) do
if misc_trait.id == 15 then
if misc_trait.value > 31 then return true end
end
end
return false
end
local function saiyanCanGoSuperSaiyan2(saiyan)
--15 is c... |
local _, config = ...
-- Shitlist Settings Listed Players
-- Make a child panel
ShitlistSettings.listedPlayersPanel = CreateFrame( "Frame", "ShitlistSettingsListedPlayers", ShitlistSettings.panel)
ShitlistSettings.listedPlayersPanel.name = "Listed Players" -- Add localization
-- Specify childness of this panel (this... |
-----------------------------------
-- Area: Windurst_Woods
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.WINDURST_WOODS] =
{
text =
{
CONQUEST_BASE = 0, -- Tallying conquest results...
... |
local Ans = select(2, ...);
local TUJ = {};
TUJ.__index = TUJ;
Ans.Database.TUJ = TUJ;
local temp = {};
function TUJ.GetPrice(id, key)
TUJMarketInfo(id, temp);
return temp[key];
end |
return "3.11.0"
|
vim.cmd("hi clear")
vim.opt.termguicolors = true
local onedark = require("onedark")
onedark.load()
onedark.setup({
-- Main options --
style = "dark", -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent = false, -- Show/hide background
ter... |
do local _={[20000001]={out_res={{1,10010001,100}},gift_id=20000001}};return _;end |
local urutora = require('lib.urutora')
local inspect = require('lib.inspect')
local Timer = require('lib.timer')
local wave = require "lib.wave"
local u
local bgColor = urutora.utils.toRGB('#343a40')
local canvas
local backup_dir = ""
local backup_list = {}
-- audio stuff
local recDev = nil
local foundRecordingSet... |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "1.1.6",
orientation = "orthogonal",
renderorder = "right-down",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
nextobjectid = 20,
properties = {},
tilesets = {
{
name = "tilesetB",
firstgid = 1,
file... |
test_run = require('test_run').new()
--
-- Setting bloom_fpr to 1 disables bloom filter.
--
s = box.schema.space.create('test', {engine = 'vinyl'})
_ = s:create_index('pk', {bloom_fpr = 1})
for i = 1, 10, 2 do s:insert{i} end
box.snapshot()
for i = 1, 10 do s:get{i} end
stat = s.index.pk:info()
stat.disk.bloom_size --... |
pg = pg or {}
pg.enemy_data_statistics_321 = {
[14600203] = {
cannon = 30,
hit_growth = 210,
bubble_fx = "",
speed_growth = 0,
pilot_ai_template_id = 10001,
air = 0,
luck = 0,
dodge = 14,
cannon_growth = 1600,
speed = 20,
reload = 150,
reload_growth = 0,
dodge_growth = 198,
antisub = 0,
t... |
onJob = 0
isSignedIn = false
RegisterNetEvent("npc-jobmanager:playerBecameJob")
AddEventHandler("npc-jobmanager:playerBecameJob", function(job, name, notify)
if job == "ems" then
isSignedIn = true
else
isSignedIn = false
--StopJob()
end
end)
RegisterNetEvent("nowUnemployed")
AddEventHandler("nowUnemployed", ... |
-- window management
local application = require "hs.application"
local hotkey = require "hs.hotkey"
local window = require "hs.window"
local layout = require "hs.layout"
local grid = require "hs.grid"
local hints = require "hs.hints"
local screen = require "hs.screen"
local alert = require "hs.alert"
local fnutils = r... |
local triangle = {}
function triangle.kind(a, b, c)
end
return triangle
|
#!/usr/bin/env luajit
local caesar=require"caesar_fast"
local encrypt, decrypt = caesar.encrypt, caesar.decrypt
local text="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
text=text:rep(1e6)
require "shuffle"
local start=os.clock()
t=encrypt(text, 13)
print(os.clock()-start)
if #arg < 1 then
print(string.format("usage: %s <key> [de... |
puny_gackle_bat = Creature:new {
objectName = "@mob/creature_names:puny_gackle_bat",
socialGroup = "gacklebat",
faction = "",
level = 6,
chanceHit = 0.25,
damageMin = 50,
damageMax = 55,
baseXp = 147,
baseHAM = 180,
baseHAMmax = 220,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_carnivore",
... |
object_tangible_quest_som_tulrus_marker_02 = object_tangible_quest_shared_som_tulrus_marker_02:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_som_tulrus_marker_02, "object/tangible/quest/som_tulrus_marker_02.iff")
|
function matrix_muliply(a, b)
local c = {}
for i = 1, #a do
local resultline = {}
for k, va in pairs(a[i]) do
for j, vb in pairs(b[k]) do
local res = (resultline[j] or 0) + va * vb
resultline[j] = (res ~= 0) and res or nil
end
en... |
--[[
Project: SA-MP-API
Author: Tim4ukys
My url: vk.com/tim4ukys
]]
local sys = require 'SA-MP API.kernel'
sys.ffi.cdef[[
struct stPickup {
int iModelID;
int iType;
float fPosition[3];
}__attribute__ ((packed));
]]
|
#!/usr/bin/lua
--[[ Allows control of power outlets. ]]--
local CONFIG_FILE = "/etc/homeautomation/client_devices.conf"
local outlets = {}
function outlets:new(o)
log("outlets.new()")
o = o or {}
setmetatable(o, self)
self.__index = self
if info.io == nil then
info.io = {}
end
if info.io.lighti... |
-- FIXME: if merged this branch, change to original repository
vim.fn["dein#add"]("Nanai10a/indent-guides.nvim", {
rev = "feat/support-cterm-hightlightning",
})
|
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.15.0",
orientation = "orthogonal",
renderorder = "right-down",
width = 256,
height = 32,
tilewidth = 16,
tileheight = 16,
nextobjectid = 43,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewid... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseUserEnterRoom_pb', package.seeall)
local BSEUSERENTERROOM = protobuf.Descriptor();
local BSEUSERENTERROOM_ROOMID_FIELD = protobuf.FieldDescriptor();
local BSEUSERENTERROOM_ROLE_FIELD = protobuf.FieldDescriptor();
local BSEUSEREN... |
-- Peer DHT searching logic
--
-- Requests consecutively peers to find the WAN IP address of a searched peer.
--
-- Search have 3 modes:
-- * 'lookup': when a route for the searched peer is found, stop the search. The
-- route might go through a relay. No peer-to-peer communication is
-- initial... |
--- @module DataHandler.DataSet
-- Provides definition for the DataSet class.
require 'torch'
local DataSet = {}
local function GetFormat(path)
local reverse_format = string.match(string.reverse(path), '%a+%.')
if 'txt.' == reverse_format then
return 'plain'
else
return 'torch'
end
end
func... |
require "nn"
require "torch"
require "optim"
require "cunn"
require "cutorch"
require "loadCharDataset.lua"
torch.manualSeed(1)
numClasses = 2
cmd = torch:CmdLine()
cmd:text()
cmd:option("-batchSize","10","Batchsize")
cmd:option("-coefL1", "0", "l1 coefficient")
cmd:option("-coefL2", "0", "l2 coefficient")
cmd:option(... |
-- Function to skip actors that have no initiative
-- Modified code from 5e Ruleset, manager_combat.lua : nextActor
function onInit()
CombatManager.nextActor = nextActor;
end
function nextActor(bSkipBell, bNoRoundAdvance)
if not User.isHost() then
return;
end
local nodeActive = CombatManager.getActiveCT();
... |
local rotatorRNN = {}
function rotatorRNN.create(opt)
local encoder = rotatorRNN.create_encoder(opt)
local actor = rotatorRNN.create_actor(opt)
local mixer = rotatorRNN.create_mixer(opt)
local decoder_msk = rotatorRNN.create_decoder_msk(opt)
local decoder_im = rotatorRNN.create_decoder_im(opt)
return encod... |
local ADDON, MinArch = ...
MinArch.DigsiteLocales.esMX = {
["Ironband's Excavation Site"] = "Excavación de Vetaferro",
["Ironbeard's Tomb"] = "Tumba de Barbaférrea",
["Whelgar's Excavation Site"] = "Excavación de Whelgar",
["Greenwarden's Fossil Bank"] = "Banco de fósiles del Guardaverde",
["Thorad... |
--[[
Copyright (c) 2016-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.
]]--
require 't... |
--====================================================================--
-- dmc_ui/dmc_style/style_manager.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereb... |
local function deepCopy(original)
local copy = {}
for k, v in pairs(original) do
-- as before, but if we find a table, make sure we copy that too
if type(v) == "table" then
v = deepCopy(v)
end
copy[k] = v
end
return copy
end
roboportmk2 = deepCopy(data.raw.roboport["roboport"]... |
-- This file is generated by program!
-- Don't change it manaully.
-- Author: zerospace007@163.com NormanYang
-- Source file: Config/ConfigAll.lua
-- Created at: Aug 2019
--load require管理名称--
local LoadRq =
{
RandomName = require 'Config/RandomName',
Sound = require 'Config/Sound',
}
--配置管理名称--
ConfigName =
{
... |
require "Game.Common.UIManager"
PrefabPool = require "Game.Common.PrefabPool"
require "Common.UI.UIComponent"
require "Common.UI.Countdown"
require("Common.UI.ItemListCreator")
require("Game.Common.Message")
--管理器--
local Game = {}
local Ctrls = {}
function LuaMain()
print("logic start")
UpdateManager:Ge... |
local K = unpack(select(2, ...))
local ModuleSkinsTest = K:GetModule("SkinsTest")
local function SimcSkin()
if not SimcCopyFrame then return end
SimcCopyFrame:CreateBorder(nil, nil, nil, true)
SimcCopyFrameButton:SkinButton()
SimcCopyFrameScrollScrollBar:SetAlpha(0)
end
ModuleSkinsTest:LoadWithAddOn("Simulationcr... |
return {
source = {
type = 'dist',
location = 'https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/arm-linux-gnueabi/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz',
sha256sum = '232302236c90ec136a42d44bc387d2e1199f5df010b77e97ee590216d2b5b181',
},
b... |
--New
object_tangible_meatlump_reward_shared_mtp_king_cutout = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/meatlump/reward/shared_mtp_king_cutout.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_meatlump_reward_shared_mtp_king_cutout, "object/tangible/meatlump/reward/shared_mtp... |
local t = Def.ActorFrame{};
t[#t+1] = Def.ActorFrame{
InitCommand=cmd(Center;zoom,1.02);
OnCommand=cmd(sleep,0.6;queuecommand,"Vib");
VibCommand=cmd(linear,0.05;addy,10;linear,0.05;addy,-20;linear,0.05;addy,20;linear,0.05;addy,-10;sleep,0.3;);
LoadActor("Common doors/door 5.png")..{
OnCommand=cmd(ro... |
local Image = require "lib.image"
return function()
local itemType = {}
itemType.tileID = 2866
itemType.name = "Dark Sword"
itemType.type = "sword"
itemType.attack = 50
itemType.description = string.format("A sword stolen from the mounts by grave robbers. Attack: %d", itemType.attack)
itemT... |
return {
base00 = "18191f",
base01 = "222329",
base02 = "2c2d33",
base03 = "3c3d43",
base04 = "b5ac9b",
base05 = "cbc0ab",
base06 = "e0d6bd",
base07 = "f1ebd1",
base08 = "b8aad9",
base09 = "b17f81",
base0A = "d4ae80",
base0B = "8aa387",
base0C = "9ba292",
base0D =... |
data:extend({
{
type = "item",
name = "orbital-ion-cannon",
icon = "__Orbital Ion Cannon__/graphics/icon64.png",
icon_size = 64,
flags = {"goes-to-main-inventory"},
subgroup = "defensive-structure",
order = "e[orbital-ion-cannon]",
stack_size = 1
},
{
type = "item",
name = "ion-canno... |
--[[
XML class written by Kenix
Additional
Version: 1.0.0
]]
push([[
XML = Class:Create()
function XML:toObj( ele )
if ele then
local obj = Class:Create( XML )
obj.ele = ele
return obj
end
return false
end
function XML:Create( sPath, sNodeName )
TableA... |
--
-- 定时器管理器
--
local DRIVE_TYPE = {
TIME = 0,
FRAME = 1
}
TimerMgr = {}
TimerMgr._funcHandle = nil
TimerMgr._timerList = {}
TimerMgr._frameList = {}
TimerMgr._enterFrameCO = nil
TimerMgr._needClean = false
TimerMgr._dt = 0
TimerMgr._running = false
function TimerMgr.start()
if TimerMgr._funcHandle then
r... |
package("tl_function_ref")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/TartanLlama/function_ref")
set_description("A lightweight, non-owning reference to a callable.")
set_license("CC0")
set_urls("https://github.com/TartanLlama/function_ref/archive/$(version).zip",
... |
appname = "插件"
appver = "1.1"
packagename = "com.androluna.plugin"
theme = "Theme_Holo_Light"
developer = "nirenr"
description = "插件管理"
debugmode = true
user_permission = {
"INTERNET",
"WRITE_EXTERNAL_STORAGE"
}
|
-- Colorscheme build in Lua with `lush.nvim`, modeled initially on Solarized, but intended to be
-- usable with alternate colors.
-- Still early days, with lots of work needed
-- https://github.com/rktjmp/lush.nvim
local lush = require 'lush'
local hsl = lush.hsl
local _ = require 'moses'
local M = {}
-- Default colo... |
local opts = {
enabled = true,
center = "92,92",
scale = 12,
max_size = "16,16",
image_opacity = "88",
image_color = "BBBBBB",
view_opacity = "BB",
view_color = "222222",
view_above_image = true,
hide_when_full_image_in_view = true,
}
local msg = require 'mp.msg'
local assdraw =... |
--[[
**************************************** PUC-RIO 2014 ****************************************
Implemented by Breno Riba
On July 2014
**********************************************************************************************
]]--
local parsing = {}
-- Split string
parsing.strsplit = function(str)
lo... |
-----------------------------------
-- Area: Norg
-- NPC: Aeka
-- Involved in Quest: Forge Your Destiny
-- !pos 4 0 -4 252
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/quests")
local ID = require("scripts/zones/Norg/IDs")
-----------------------------------
function... |
local part = workspace.FloatingPart
local mass = part:GetMass()
local bodyForce = Instance.new("BodyForce")
bodyForce.Force = Vector3.new(0,mass * workspace.Gravity,0)
bodyForce.Parent = part
local Part = workspace.TouchPart
Part.Touched:Connect(function(hit)
print(hit)
end)
local Part = workspace.TouchPart
loc... |
local CharacterState = {}
function CharacterState:start()
return self:Load("Deus.Enumeration").addEnum(
"CharacterState",
{
Unsimulated = 0,
Idling = 1,
Walking = 2,
Jumping = 3,
-- Sitting = 4,
-- Falling = 5,
-- Swimm... |
loadstring(game:HttpGet("https://pastebin.com/raw/vdr3zxKD",true))() |
--[[
Copyright 2017 The Nakama Authors
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 writing, s... |
---@class Food : zombie.inventory.types.Food
---@field protected bBadCold boolean
---@field protected bGoodHot boolean
---@field private MIN_HEAT float
---@field private MAX_HEAT float
---@field protected Heat float
---@field protected endChange float
---@field protected hungChange float
---@field protected useOnConsum... |
-- Here are all the Xenoth's Stats
TUNING_XENOTH = {}
function TuneXenoth(overrides)
if overrides == nil then
overrides = {}
end
-- default day time
local seg_time = 30
local total_day_time = seg_time * 16
local calories_per_day = 75
TUNING_XENOTH =
{
XENOTH_MAX_HEALTH = 175,
XENOTH_MAX_... |
local Signal = require 'lib.hump.signal'
local assets = require 'assets'
local level = (require 'gamestate._level')()
local love = love
local lg = love.graphics
local lgw, lgh
local pad = 100
local p = {}
function p:update (dt)
lgw = lg.getWidth()
lgh = lg.getHeight()
end
function p:draw()
lg.setColor(255,255... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.