content stringlengths 5 1.05M |
|---|
-- title: TICuare
-- author: Crutiatix
-- desc: UI library for TIC-80 v0.4.0
-- script: lua
-- input: mouse
-- Based on Uare (c) 2015 Ulysse Ramage
-- Copyright (c) 2017 Crutiatix
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files... |
object_tangible_tcg_series7_garage_display_vehicles_landspeeder_desert_skiff = object_tangible_tcg_series7_garage_display_vehicles_shared_landspeeder_desert_skiff:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_landspeeder_desert_skiff, "object/tangible/tcg/series7/garage_displ... |
-------------------------------------------
------- EDITED BY GITHUB.COM/AVAN0X -------
--------------- AvaN0x#6348 ---------------
-------------------------------------------
--================================================================================================
--== VARIABL... |
local mod_path = "mods/Test"
local mod = {}
local function load_assets(toAdd, toPath)
local filesTable = love.filesystem.getDirectoryItems(toPath)
for i,v in ipairs(filesTable) do
local file = toPath.."/"..v
if love.filesystem.isFile(file) then
if string.find(file, ".lua") then
loc... |
local default_opts = require("blaz.lsp.opts.defaults")
local opts = {}
return vim.tbl_deep_extend("force", default_opts, opts)
|
return { sharp = { 15, 14, 9, 7 }, sharpp = { 15, 14, 9, 18 } } |
--[[
The MIT License (MIT)
Copyright (c) 2015 Matthias Richter
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, m... |
#!/usr/bin/env lua
require 'ext'
local gnuplot = require 'gnuplot'
for f in os.listdir'.' do
local ident = f:match'^results%-(.*)%.txt$'
if ident then
local names = file[f]:split'\n'[1]:sub(2):split'\t'
local args, argsDiff
if os.fileexists'gnuplot-config.lua' then
args, argsDiff = table.unpack(dofile'gnupl... |
local config = {
waypointDirectory = "waypoints/",
}
local stop = false
local isAttacking = false
local isFollowing = false
local currentTargetPositionId = 1
local waypoints = {}
local autowalkTargetPosition = waypoints[currentTargetPositionId]
local itemHealingLoopId = nil
local hasLured = false
local player = nil
l... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
local _slots = {
{
flags_missing = 1,
goto_spot = "LeadToSpot",
groups = {
["A"] = true,
},
spots = {
"Playground",
},
},
{
flags_missing = 1,
goto_spot = "LeadToSpot",
groups = {
["A"] = true,
},
spots = {
"Playtabl... |
local log = require("log")
local remote = require('net.box')
local compat = require('compat')
local new_parts_format_supported = compat.check_version{1, 7, 6}
local is_nullable_supported = compat.check_version{1, 7, 6}
local function create_space(space)
log.info{message2="Creating space.", name=space.name}
local fo... |
local uv = require 'couv'
local TEST_PORT = 9123
coroutine.wrap(function()
local handle = uv.Tcp.new()
handle:connect(uv.SockAddrV6.new('::1', TEST_PORT))
handle:startRead()
handle:write({"PING"})
print('tcp_client send message {"PING"}')
local nread, buf = handle:read()
if nread and nread > 0 then
... |
return {'maori','maoisme','maoist','maoistisch','mao','maoris','maoisten','maoistische'} |
env = require('test_run')
test_run = env.new()
fiber = require'fiber'
ch = fiber.channel(3)
_ = box.schema.space.create('test'):create_index('pk')
test_run:cmd("setopt delimiter ';'")
function add_index()
box.space.test:create_index('sec', {parts = {2, 'num'}})
ch:put(true)
end;
function insert_tuple(tuple)... |
object_tangible_loot_creature_loot_collections_statuette_piece_008 = object_tangible_loot_creature_loot_collections_shared_statuette_piece_008:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_statuette_piece_008, "object/tangible/loot/creature/loot/collections/statuette_piece_008.iff... |
local module = {
authenticationRequired = true;
};
function module.run(authentication,groupId,timePeriod)
local endpoint = "https://economy.roblox.com/v1/groups/"..groupId.."/revenue/summary/"..timePeriod;
local response,body = api.request("GET",endpoint,{},{},authentication,false,true);
if(response.code == 200)... |
local _, private = ...
-- RealUI --
local RealUI = private.RealUI
local db
local MODNAME = "Objectives Adv."
local ObjectivesAdv = RealUI:NewModule(MODNAME, "AceEvent-3.0")
local CombatFader = RealUI:GetModule("CombatFader")
---------------------
-- Collapse / Hide --
---------------------
local function ResetState(... |
--------------------------------------------------------------------------------
--- LuaSTG Sub 对象池与游戏对象
--- 璀境石
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--- 游戏对象的回调函数集合
---@class lstg.Clas... |
local snownet = require "snownet"
local harbor = require "snownet.harbor"
require "snownet.manager" -- import snownet.launch, ...
local memory = require "snownet.memory"
snownet.start(function()
local sharestring = tonumber(snownet.getenv "sharestring" or 4096)
memory.ssexpand(sharestring)
local standalone = snown... |
require "coxpcall"
local _lib
if package.loaded.core then
_lib = true
else
_lib = false
require "core"
end
_exports = {}
local _main = function()
local object = object
local array = array
local number = number
local string = base_string
local exception = exception
local ha... |
-- Run with test script using...
--
-- $ lua -l luarocks.require wrn_test.lua
--
require('test/test_base')
ambox = require('ambox')
wrn = require('wrn')
do
local sent_arr = {}
local recv_calls = 0
local recv_arr = {}
ambox = {
recv =
function()
recv_calls = recv_calls + 1
assert(recv_calls <= ... |
local ls = require "luasnip"
local s = ls.snippet
local t = ls.text_node
local snippets = {
ls.parser.parse_snippet("lm", "local M = {}\n\nfunction M.setup()\n $1 \nend\n\nreturn M"),
-- s("lm", { t { "local M = {}", "", "function M.setup()", "" }, i(1, ""), t { "", "end", "", "return M" } }),
s("todo", t "prin... |
local M = {
title = 'plugins',
keypress = function() end,
draw_status = function() end,
}
function M:render()
green()
addstr(' -= plugins =-\n')
normal()
for i, plugin in ipairs(plugins) do
local name = plugin.name or '#' .. tostring(i)
normal()
bold()
... |
dependency 'rage-device'
flags { 'NoRuntimeChecks' }
return function()
filter {}
add_dependencies { 'net:tcp-server' }
end
|
--[[
file:login.lua
desc:登陆结构
auth:Carol Luo
]]
---@class c2s_loginTourists @游客登录
---@field accredit string @登录凭证
---@class c2s_loginAccount @账号登陆
---@field users string @用户账号
---@field password string @账号密码
---@class c2s_loginPhone @手机登录
---@field phonenum string @手机号码
---@field password string @账号密码... |
require "cocos.3d.3dConstants"
----------------------------------------
----TerrainSimple
----------------------------------------
local TerrainSimple = class("TerrainSimple", function ()
local layer = cc.Layer:create()
return layer
end)
function TerrainSimple:ctor()
-- body
self:init()
end
function... |
-- a port of LuaFileSystem
-- https://keplerproject.github.io/luafilesystem/manual.html
local fs = _G.fs
local shell = _ENV.shell
local lfs = {
_VERSION = '1.8.0.computercraft'
}
-- lfs.attributes (filepath [, request_name | result_table])
-- Returns a table with the file attributes corresponding to filepath (or... |
--[[
-- levelscripts.lua
-- contains scripts which indicate behavior on objects etc. on a per-level base
--
--]]--
local scripts = {bossspawned = 0}
local creatureSpecs = {
spider = { size=32},
goblin = { size=40},
colossus = { size=64},
boss = { size=128, spawned = false}
}
function shop(key, charac... |
if not modules then modules = { } end modules ['mtx-pdf'] = {
version = 1.001,
comment = "companion to mtxrun.lua",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local tonumber = tonumber
l... |
--Diablo 3 Resource Globe
function Start()
scene=Scene()
scene:CreateComponent("Octree")
cameraNode = scene:CreateChild("Camera")
local camera=cameraNode:CreateComponent("Camera")
cameraNode.position = Vector3(0.0, 5.0, 0.0)
local viewport = Viewport:new(scene, cameraNode:GetComponent("Camera"))
rend... |
return Device {
strManufacturer = "TeenyUSB",
strProduct = "TeenyUSB Composite DEMO",
strSerial = "TUSB123456",
idVendor = 0x0483,
idProduct = 0x0011,
prefix = "COMP",
Config {
USB_HID{
ReadEp = EndPoint(IN(2), Interrupt, 16),
WriteEp = EndPoint(OUT(2), Inter... |
local EntityTypes = {}
EntityTypes.GUI = "gui"
EntityTypes.PLAYER = "player"
EntityTypes.BULLET = "bullet"
EntityTypes.BOXY = "boxy"
EntityTypes.DEATH_WALL = "death wall"
EntityTypes.BOUNCER = "bouncer"
EntityTypes.SHIELD = "shield"
EntityTypes.BOUNCER_SWORD = "bouncer sword"
return EntityTypes |
---------------------------------------------------------------------------
--declaring addon stuff----------------------------------------------------
callTarget = LibStub("AceAddon-3.0"):NewAddon("callTarget", "AceComm-3.0", "LibNameplateRegistry-1.0");
----------------------------------------------------------------... |
-- require('lib')
require('config')
-- require('settings')
-- require('screen')
require('reload')
require('window')
require('layout')
-- require('util')
require('shortcut')
|
return {'node','nodeloos','noden','nodig','nodigen','nodiger','nodeloze','nodelozer','nodigde','nodigden','nodige','nodigst','nodigt','nodigers','nodeloost'} |
local shared = require('shared')
local table = require('table')
local client = shared.get('packet_service', 'packets')
local get_last = function(_, path)
return get_last(path)
end
local get_lasts = function(_, path)
return get_lasts(path)
end
local make_event = function(_, path)
return make_event(path)
... |
--[[ Copyright (c) 2017 David-John Miller AKA Anoyomouse
* Part of the Warehousing mod
*
* See License.txt in the project directory for license information.
--]]
data:extend({
{ -- Basic Warehouse
type = "recipe",
name = "warehouse-basic",
enabled = "false",
ingredients =
{
{ "steel-plate", 200 },
{... |
local nk = require("nakama")
local inventory = require("inventory")
local F = {}
F.cast_lure = function(user_id, avatar)
-- eventually lookup their inventory, check up fishing pole etc
return {
timeDelay = math.random(5, 20),
weight = math.random(5, 30)
}
end
local function cast_lure(context, payload)
... |
-- Loss function for the segmentation mask, L1 loss function used in GAN for implementing baselines
-- By: Kiana Ehsani
local SeGANCriterion, parent = torch.class('nn.SeGANCriterion', 'nn.Criterion')
function SeGANCriterion:__init(nchannel, weights, sizeAverage)
parent.__init(self)
if weights == nil then
... |
-- Максимальное количество чекпойнтов в дуэли
local DUEL_CHECKPOINTS_COUNT = 15
-- Максимальная длительность дуэли в секундах
local DUEL_DURATION = 300
local activeDuels = {}
local function getVehicleSpawnpoint(vehicle)
if not isElement(vehicle) then
return false
end
local x, y, z = getElementPosition(vehicle)
... |
--mill flats up to shoulders
--written by Jesse Meade-Clift
--THIS CURRENTLY SUCKS
--would like to require lib and use tool_dia_mazak()
--require broken by load, but lib is already loaded by iup...
--##
z_clearance = 4
feed = 0.05
z_zero = -1.5
depth = 1.5
cutter_dia = 3
cut_depth = 0.06
start_clear = "x"
shoulder =... |
--[[ BPM Library ]]
local bpm = {}
bpm.beats = {}
bpm.time = 0
bpm.bpm = 100
bpm.snap = true
bpm.update = function(dt)
local hitBeats = {}
local beatsHit = false
for k,v in pairs(bpm.beats) do
v.accumulator = v.accumulator + dt
if v.last + v.accumulator > v.last + v.length then
v.last = v.last + v.length
... |
workspace "NavMeshScene"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
targetdir "../bin/"
language "C++"
includedirs {
"..",
"../Detour/Include",
"../DetourTileCache/Include",
"../Contrib/fastlz",
}
flags {
"C++11",
"StaticR... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('PvpRoleBrief_pb')
PVPROLEBRIEF = protobuf.Descriptor();
local PVPROLEBRIEF_ROLEID_FIELD = protobuf.FieldDescriptor();
local PVPROLEBRIEF_ROLENAME_FIELD = protobuf.FieldDescriptor();
local PVPROLEBRIEF_ROLELEVEL_FIELD = pro... |
-- Ext.Require("Stats/Shared/Effects.lua")
Ext.Require("Shared/_InitShared.lua")
SScarID = "ff4dba5a-16e3-420a-aa51-e5c8531b0095"
CustomStatSystem = Mods.LeaderLib.CustomStatSystem
ts = Mods.LeaderLib.Classes.TranslatedString
--- function to retrieve custom stat set through tags
--- Stat tags shall be in the followin... |
game:DefineFastFlag("AvatarExperienceOutfitRecommendations", false)
return function()
return game:GetFastFlag("AvatarExperienceOutfitRecommendations")
end |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "Infopanel Sections",
id = "ipShuttle",
PlaceObj('XTemplateTemplate', {
'__template', "Infopanel",
'Description', T{7383, --[[XTemplate ipShuttle Description]] "<description>"},
}, {
PlaceObj('XTemplateTemplate'... |
function love.load()
rcoll = {}
rstrr = "1234567890-=qwertyuiop[]asdfghjkl;'zxcvbnm,./'"
rstrr:gsub(".",function(c) table.insert(rcoll,c) end)
rposs = love.math.random(1, #rcoll)
st = rcoll[rposs]
print(st)
font = love.graphics.getFont()
font:setFilter("nearest")
love.graphics.setFont(font)
end
function love.... |
function widget:GetInfo()
return {
name = "Load Own Moving",
desc = "Enables loading of your own units when they're moving",
author = "Niobium",
version = "1.0",
date = "June 18, 2010",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by defau... |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/2405
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local runner = requi... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local PART = {}
PART.ClassName = "proxy"
PART.NonPhysical = true
PART.ThinkTime = 0
PART.Group = 'modifiers'
PART.Icon = 'icon16/calculator.png'
pac.StartStorableVars()
pac.SetPropertyGroup()
pac.GetSet(PART, "VariableName", "", {enums = function(part)
local parent = part:GetTarget()
if not par... |
------------------------------------------------------------------------------
--
-- This file is part of the Corona game engine.
-- For overview and more information on licensing please refer to README.md
-- Home page: https://github.com/coronalabs/corona
-- Contact: support@coronalabs.com
--
------------------------... |
local name, _FishMaster = ...;
LibStub("AceConfig-3.0"):RegisterOptionsTable(name, {
type = "group",
childGroups = "tab",
args = {
general = _FishMaster.settings.general
}
})
LibStub("AceConfigDialog-3.0"):AddToBlizOptions(name, name);
|
return {'opulent','opulentie','opus','opusnummer','opussen','opulente','opusnummers'} |
local state = {}
state._NAME = ...
local Body = require'Body'
local t_entry, t_update, t_exit
local timeout = 10.0
function state.entry()
print(state._NAME..' Entry' )
local t_entry_prev = t_entry
t_entry = Body.get_time()
t_update = t_entry
end
function state.update()
local t = Body.get_time()
local d... |
-- granchild v2.0.2
-- granular sequencer
--
-- llllllll.co/t/granchild
--
-- thx @artfwo, @cfdrake,
-- @justmat
--
engine.name="ZGlut"
local granchild=include("granchild/lib/granchild")
local position={1,1}
local press_positions={{0,0},{0,0}}
local norns_screen={}
local divisions={1,2,4,6,8,12,16}
local division_na... |
-- Borrowed from UnNethack
--
--
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel", "noteleport", "hardfloor", "premapped", "solidify");
des.map([[
----
|..|
|..-------------
|..............|
|-.--FFFFFF---+|
|..........F...|
|...|......F...|
---.|......F...|
|... |
require("modules/externals/luafft") -- we need to add this to the game folder
require("audioManager") -- Game modules
require("modules/utils/miscUtils")
require("modules/utils/fxUtils")
require("modules/utils/debugUtils")
require("splash")
require("selection")
require("gameover")
require("fileParser")
require("mod... |
--[[
about messagebox.lua
convienence functions for the message box C api
]]
messagebox =
{
text = nil --the c pointer
}
function messagebox:new(text)
o = {};
setmetatable(o, self);
self.__index = self;
o.text = text;
message_box_create(text);
return o;
end |
html_title = '<h1>Sensor Data</h1>'
sensor = require('sensor')
utils = require('utils')
config = require('config')
sensor.setup()
function sensor_data_to_html()
return "<h3><b>" .. sensor.id .. ":</b> <i>" .. tostring(utils.avg_values(sensor.get_data, 10, 1000)) .. "</i></h3>"
end
function setup_http_server(g... |
local gauntlet_data = require "gauntlet_data"
local CHIP_DATA = require "defs.chip_data_defs"
local CHIP_ID = require "defs.chip_id_defs"
local CHIP_CODE = require "defs.chip_code_defs"
local CHIP = require "defs.chip_defs"
local ELEMENT_DEFS = require "defs.entity_element_defs"
local GENERIC_DEFS = require "defs.gener... |
-- plat
set_config("plat", os.host())
-- project
set_project("co")
-- set xmake minimum version
set_xmakever("2.2.5")
-- set common flags
set_languages("c++11")
set_optimize("faster") -- faster: -O2 fastest: -O3 none: -O0
set_warnings("all") -- -Wall
set_symbols("debug") -- dbg symbols
-- c... |
local Event = require("api.Event")
-- TODO
-- local function archetype_on_spawn_monster(map)
-- end
local function archetype_starting_pos(map, params, result)
local archetype = map:archetype()
if not (archetype and archetype.starting_pos) then
return result
end
if type(archetype.starting_pos) == "t... |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
local angle = LocalPlayer():EyeAngles()
angle:RotateAroundAxis( angle:Forward(), 90 )
angle:RotateAroundAxis( angle:Right(), 90 )
local text = "Artifact"
surface.SetFont( "se_NPCFont" )
local width, _ = surface.GetTextSize( text )
... |
--[[--------------------------------------------------------------------------
Improved Anti-Noclip
File name:
antinoclip_improved.lua
Author:
- Original :: RabidToaster (STEAM_0:1:9334395)
- Rewritten :: Mista Tea (STEAM_0:0:27507323)
Changelog:
------------------------------------------------... |
local Paused = false
local CurSel = 1
local cursor_on_window = false
local Choices = {
{
Name = "continue_playing",
Action = function( screen )
screen:PauseGame(false)
end
},
{
Name = "restart_song",
Action = function( screen )
screen:SetPrevScreenName('ScreenStageInformation'):begin_backing_out()
... |
--氷結界の封魔団
function c73061465.initial_effect(c)
--act limit
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73061465,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c73061465.cost)
e1:SetOperation(c73061465.operation)
c:RegisterEffect(e1)
... |
--====================================================================--
-- dmc_wamp.roles
--
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_wamp.lua
--====================================================================--
--[[
Copyright (C) 2014 David McCuskey. All Rights Re... |
--マジェスティ・ヒュペリオン
--Majesty Hyperion
--scripted by XyLeN
function c100312001.initial_effect(c)
aux.AddCodeList(c,56433456)
--spsummon proc
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
... |
--[[
Copyright 2021 Flant CJSC
Licensed under the Deckhouse Platform Enterprise Edition (EE) license. See https://github.com/deckhouse/deckhouse/blob/main/ee/LICENSE
--]]
local _M = {}
local function _send(premature, buffer)
if premature then
return
end
local udp = ngx.socket.udp()
udp:setpeername("127.0... |
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout librar... |
local C = require('Comment.api')
return {
setup = C.setup,
toggle = C.toggle,
comment = C.comment,
uncomment = C.uncomment,
get_config = C.get_config,
}
|
local anim = {
stand = {x = 0, y = 0},
sit = {x = 1, y = 1},
walk = {x = 2, y = 42},
mine = {x = 43, y = 57},
lay = {x = 58, y = 58},
walk_mine = {x = 59, y = 103},
}
player_api.register_model("nc_player.b3d", {
animation_speed = 57,
animations = anim,
collisionbox = {-0.3, 0.0, ... |
data:extend({
{
type = "item",
name = "gcharcoal",
icon = "__base__/graphics/icons/coal.png",
dark_background_icon = "__base__/graphics/icons/coal-dark-background.png",
flags = { "goes-to-main-inventory" },
fuel_category = "chemical",
fuel_value = "7.5MJ",
subgroup = "raw-resource",
... |
-- local nk = require("nakama")
-- local user_id = "d598da17-322c-4020-ad9b-1ea848c0b36a"
-- local sender_id = nil -- "nil" for server sent.
-- local content = {
-- text = "更新补偿",
-- awards = {["物品1"] = 10, ["物品2"] = 10},
-- }
-- local subject = "12月23日停机更新补偿"
-- local code = 1
-- local persistent = true
-- nk.no... |
-- TODO
-- you cant craft flowers yet
|
object_tangible_item_beast_converted_baz_nitch_decoration = object_tangible_item_beast_shared_converted_baz_nitch_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_baz_nitch_decoration, "object/tangible/item/beast/converted_baz_nitch_decoration.iff")
|
local Node = {}
Node.__index = Node;
function Node.new(x, y)
local self = setmetatable({
transform = jge.Transform(x, y),
components = {},
components_named = {},
components_draw = {},
components_update = {},
children = {},
groups = {},
layer = 0,
-- child caches so that we know what needs drawn/upda... |
local help = [[
SAW2: best or rest multi-objective optimization.
(c) 2022 Tim Menzies, timm@ieee.org
"I think the highest and lowest points are the important ones.
Anything else is just...in between." ~ Jim Morrison
USAGE: lua saw2.lua [OPTIONS]
OPTIONS:
-b --bins max bins = 16
-s --seed r... |
-- A simple scene with some miscellaneous geometry.
-- This file is very similar to nonhier.lua, but interposes
-- an additional transformation on the root node.
-- The translation moves the scene, and the position of the camera
-- and lights have been modified accordingly.
mat1 = gr.material({0.7, 1.0, 0.7}, {0.5, ... |
-- anim8 v1.2.0 - 2012-06
-- Copyright (c) 2011 Enrique García Cota
-- 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, mod... |
GPIO16 = 0
GPIO5 = 1
GPIO4 =2
GPIO0 = 3
GPIO2 = 4
GPIO14 = 5
GPIO12 = 6
GPIO13 = 7
GPIO15 = 8
GPIO3 = 9
GPIO1 = 10
GPIO9 = 11
GPIO10 = 12
|
function add(a, adasdas, dfsdf, xzzxc, aewqe, asdas , zxczxc, asdasd, asdas, asdas,sas, as,asd,asd,asd,asd,zxv,qwe,cs,ryert,d,ds,xcv,asfd)
end |
---@meta
---@class sharemapwriter
local sharemapwriter = {}
---@class sharemapreader
local sharemapreader = {}
---* 一个使用 stm 模块实现的,用于在服务间共享数据的模块
---* 这里使用了 sproto 来描述序列化数据
---* 其内部引用了代表 Lua 的源数据
---* 和由 stm 构造的 stmobj
---@class sharemap
local sharemap = {}
---* 注册 sproto 协议描述文件
function sharemap.register(protofil... |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
Citizen.Wait(10)
TriggerEvent("esx:getSharedObject", function(obj)
ESX = obj
end)
end
Wait(1000)
while not ESX.IsPlayerLoaded() do
Citizen.Wait(10)
end
Citizen.Wait(2000)
ESX.TriggerServerCallback('new_hud:getConnectedPlayers... |
-- Default keybindings for launching apps in Hyper Mode
--
-- To launch _your_ most commonly-used apps via Hyper Mode, create a copy of
-- this file, save it as `hyper-apps.lua`, and edit the table below to configure
-- your preferred shortcuts.
local bindingsList = {
{ 'e', 'Visual Studio Code' }, -- "E" for "... |
--[[
Copyright 2016 GitHub, Inc
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, software
distr... |
local b45 = require("base45")
local function b45_test (data, b45data)
print("Testing: \"" .. data .. "\" == \"" .. b45data .. "\"")
assert(b45.encode(data) == b45data)
assert(b45.decode(b45data) == data)
assert(b45.encode(b45.decode(b45data)) == b45data)
assert(b45.decode(b45.encode(data)) == data)
a... |
local llthreads = require"llthreads"
local utils = require "utils"
local include = utils.thread_init .. [[
local llthreads = require"llthreads"
]]
do
local thread = llthreads.new(include .. [[
error({})
]])
thread:start()
local ok, err = thread:join()
print(ok, err)
assert(not o... |
-- ***************************************************
-- ** Deadly Bar Timers **
-- ** http://www.deadlybossmods.com **
-- ***************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich (Tandanu @ EU-Aegwynn) (... |
local t = require( "taptest" )
local isinf = require( "isinf" )
t( isinf( 0.0 ), false )
t( isinf( 1.0 / 0.0 ), true )
t( isinf( -1.0 / 0.0 ), true )
t( isinf( math.sqrt( -1.0 ) ), false )
t()
|
local olua = require "olua"
local function check_func(cls, fn, refmap)
if not fn.STATIC and refmap[fn.RET.TYPE.CPPCLS] then
if not (fn.RET.ATTR.DELREF or fn.RET.ATTR.REF) then
print('not specify ref: ' .. cls.CPPCLS .. ' => ' .. fn.FUNC_DECL)
end
end
end
local function check_class(... |
maleHash = GetHashKey("mp_m_freemode_01")
femaleHash = GetHashKey("mp_f_freemode_01")
copUniform = {
[maleHash] = {
[3] = {draw = 0, text = 0},
[4] = {draw = 35, text = 0},
[6] = {draw = 54, text = 0},
[8] = {draw = 122, text = 0},
[11] = {draw = 55, text = 0}
},
[femaleHash] = {
... |
local K = unpack(KkthnxUI)
local Module = K:GetModule("Skins")
function Module:ReskinSimulationcraft()
if not IsAddOnLoaded("Simulationcraft") then
return
end
local Simulationcraft = LibStub("AceAddon-3.0"):GetAddon("Simulationcraft")
hooksecurefunc(Simulationcraft, "GetMainFrame", function()
if not SimcFrame... |
local Native = require('lib.native.native')
---@class UnitType
local UnitType = {
Hero = Native.ConvertUnitType(0), --UNIT_TYPE_HERO
Dead = Native.ConvertUnitType(1), --UNIT_TYPE_DEAD
Structure = Native.ConvertUnitType(2), --UNIT_TYPE_STRUCTURE
Flying = Native.ConvertUnitType(3), --UNIT_TYPE_FLYING
... |
local M = {}
M.base_30 = {
white = "#272f35",
darker_black = "#f5efde",
black = "#fff9e8", -- nvim bg
black2 = "#ebe5d4",
one_bg = "#c6c2aa",
one_bg2 = "#b6b29a",
one_bg3 = "#a6a28a",
grey = "#a6b0a0",
grey_fg = "#939f91",
grey_fg2 = "#829181",
light_grey = "#798878",
red = "#c8555... |
local pathJoin = require('luvi').path.join
local static = require('weblit-static')
local blog = require('controllers/blog')
local env = require('env')
require('weblit-app')
.bind({host = "0.0.0.0", port = env.get("PORT") or 8080})
-- Configure weblit server
.use(require('weblit-logger'))
.use(require('weblit... |
require("pgevents")
function Definitions()
DebugMessage("%s -- In Definitions", tostring(Script))
Category = "Build_Scanner"
IgnoreTarget = true
TaskForce = {
{
"StructureForce",
"Empire_Orbital_Long_Range_Scanner | Rebel_Orbital_Long_Range_Scanner | Empire_Heavy_Ship_Yard | Rebel_Heavy_Ship_Yard = 1"
}
}... |
local memory = require 'fsp.memory'
local data = require 'fsp.data'
local learn = require 'fsp.learner'
local class = require 'class'
local optim = require 'optim'
local util = require 'fsp.util'
local fsp = class('FSP3')
function fsp:__init(params)
-- logging
self.logger = optim.Logger(params.log_file)
self.plo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.