content stringlengths 5 1.05M |
|---|
inspect = require "lib.inspect"
-- love-repl - an interactive lua repl for love games
-- Copyright (c) 2013-2014 ioddly
-- Released under the Boost License: <http://www.boost.org/LICENSE_1_0.txt>
-- Module
local repl = {
_VERSION = 'love-repl v0.2',
_DESCRIPTION = "An interactive lua REPL for Love games",
_URL... |
--[[
Copyright © 2021, Sjshovan (LoTekkie)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... |
function gravity(x, y, z)
local rho = 1.0
local W = 0.2
local L = 1.0
local delta = W / L
local gamma = 0.4 * delta^2
return 0.0, 0.0, -rho * gamma
end
function left_boundary(x, y, z)
return 0.0, 0.0, 0.0
end
function lam(x, y, z)
return 1.25
end
function mu(x, y, z)
return 1.0
e... |
--
-- Dependencies
local lume = require('narrator.libs.lume')
local enums = require('narrator.enums')
-- Safe lpeg requiring
local lpegName = 'lpeg'
if not pcall(require, lpegName) then return false end
local lpeg = require(lpegName)
--
-- LPeg
local S, C, P, V = lpeg.S, lpeg.C, lpeg.P, lpeg.V
local Cb, Ct, Cc, Cg ... |
local entity = {}
entity["level"] = [[53]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Hamaon]]
entity["spellDeck"][2] = [[]]
entity["spellDeck"][3] = [[Diarahan]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[Growth 3]]
entity["spellDeck"][6] = [[]]
entity["heritage"] = {}
entity["heritage"][1] = [[... |
--[[ Generate volumetric reparameterization of graph laplacian eigenbasis, which will be used as input for functional map prediction
nDim - Number of laplacian eigenbasis to be reparameterized
nGrid - Voxelization resolution, the reparameterization will be represented in an (nGrid x nGrid x nGri... |
-- CONSTANTS
local sensor = require "sensor"
local vector = require "vector"
local motorPins = {
1, 2,
3, 4,
}
local sensorInterval = 1000 -- Delay between sensor readings (in ms)
-- VARIABLES
-- FRONT LEFT (cw), FRONT RIGHT (ccw),
-- BACK LEFT (ccw), BACK RIGHT (cw)
local masks = {
power = { -- Default
1,... |
mobs:register_mob("mobs:female1_npc", {
type = "npc",
hp_min = 30,
hp_max = 75,
exp_min = 0,
exp_max = 0,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
mesh = "3d_armor_character.x",
textures = {"mobs_female1.png",
"3d_armor_trans.png",
"3d_armor_trans.png",
},
visual_size = {x... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/props_c17/consolebox01a.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
local phys = self:GetPhysicsObject()
if ... |
-- Store the original _check_players function for use later
local orig__ElementFilter = {}
orig__ElementFilter._check_players = ElementFilter._check_players
-- This function must be modified to allow for proper objective activation with greater than 4 players
function ElementFilter:_check_players()
-- Original C... |
EntityTest = {}
ProFi = require 'ProFi'
local CubeModel = Graphics.LoadModel("cube.fbx")
local SphereModel = Graphics.LoadModel("sphere_low.fbx")
local DiffuseShader = Graphics.LoadShader("diffuse", "simplediffuse.vs", "simplediffuse.fs")
local ShadowShader = Graphics.LoadShader("shadow", "simpleshadow.vs", "simplesh... |
--[[
Copyright 2019 Manticore Games, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distrib... |
require 'nn'
local grad = require 'autograd'
local n_s=3
local mu_1 = grad.nn.SpatialAveragePooling(n_s,n_s,1,1)
local mu_2 = grad.nn.SpatialAveragePooling(n_s,n_s,1,1)
local mu_3 = grad.nn.SpatialAveragePooling(n_s,n_s,1,1)
local mu_4 = grad.nn.SpatialAveragePooling(n_s,n_s,1,1)
local mu_5 = grad.nn.SpatialAverageP... |
local table = require('table')
--
-- GridInput
--
local GridInput = sky.InputBase:extend()
GridInput.GRID_KEY_EVENT = 'GRID_KEY'
GridInput.GRID_REDRAW_EVENT = 'GRID_REDRAW'
function GridInput:new(props)
GridInput.super.new(self, props)
self.grid = props.grid or grid.connect()
if self.grid then
self.grid.key... |
local _M = {}
-- Utility function to avoid code duplication
function _M.exit(message, http_status)
ngx.status = http_status
ngx.say(message)
return ngx.exit(ngx.HTTP_OK)
end
return _M
|
snowtrooper = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Snowtrooper Backpack",
directObjectTemplate = "object/tangible/wearables/backpack/backpack_snowtrooper.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("snowtrooper", snowtrooper)
|
--[[
INSTANCES (V1.0)
By Zephruz
/* An advanced entity instancing system for GMOD */
]]
Instances = {}
-- [[Config]
Instances.allowInstanceSwapping = true -- Enable/disable the ability for players to join an instance
Instances.allowCrossInstanceChat = false -- Enable/disable the ability to speak/chat w... |
data:extend({
{
type = "sprite",
name = "打坐-sprite",
filename = ConstEnum.icons .. "/打坐.png",
size = 512,
scale = 0.2
}
})
|
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local util = require(_PACKAGE .. "/util")
local dep = require(_PACKAGE .. "/dep")
local Vector = dep.Vector
local Organizer = require(_PACKAGE .. "/organizer")
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... |
local LibStub = _G.LibStub
local L = LibStub("AceLocale-3.0"):NewLocale("Baggins", "esES")
if not L then return end
--itemtypes, these must match the Type and SubType returns from GetItemInfo for the ItemType rule to work
L["Armor"] = "Armadura"
L["Cloth"] = "Tela"
L["Idols"] = "Ídolos"
L["Leather"... |
PANEL = {}
function PANEL:Init()
end
function PANEL:SizeToContents()
local w, h = self:GetContentSize()
self:SetSize( w+ 16, h ) -- Add a bit more room so it looks nice as a textbox :)
end
function PANEL:DoDoubleClick()
local TextEdit = vgui.Create( "DTextEntry", self )
TextEdit:Dock( FILL )
TextEdit:Set... |
-- Number of code lines seen so far.
local total_lines_count = 0
-- Count the number of newlines in a string.
function count_lines (text)
local count = 0
local last_pos = 0
repeat
last_pos = string.find(text, '\n', last_pos + 1, true)
count = count + 1
until not last_pos
return count
end
function Co... |
local function check_back_space()
local col = vim.fn.col(".") - 1
if col == 0 or vim.fn.getline("."):sub(col, col):match("%s") then
return true
else
return false
end
end
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
_G.enhance_jk_move = function(key)
if packer_plu... |
local Circle = Class:extend()
function Circle:new(x,y,opts)
self.x, self.y = x, y
self.creationTime = love.timer.getTime()
if opts ~= nil then
for k,v in pairs(opts) do self[k] = v end
end
end
function Circle:update(dt)
end
function Circle:draw()
love.graphics.circle("fill", self.x,self.y,self.r or 50)
--[[... |
-- Made By XX3, from scratch with MS Notepad. Purpose: To make a new exotic compact HUD.
-- You may edit this resource, but please credit me if you wanted to post an edited / extended version.
-- PS: I was in MTA SA to show what Indonesia is really made of! :D
local money = 0;
-- Weapon tables for ammo.
resourceroo... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Category = "Tick_FounderStageDone",
Effects = {},
Enabled = true,
Image = "UI/Messages/Events/29_shuttle.tga",
Prerequisites = {
PlaceObj('CheckObjectCount', {
'Label', "VRWorkshop",
'Filters'... |
--
-- The contents of this file are subject to the Mozilla Public
-- License Version 1.1 (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.mozilla.org/MPL/
--
-- Software distributed under the License is distributed on an "AS
-- IS... |
loadstring(game:HttpGet(("https://raw.githubusercontent.com/Raycodex/Exploiting/main/Roblox/Da%20Hood%20Auto%20Cash%20Drop"), true))()
|
--[[
MIT License
Copyright (c) 2022 Michael Wiesendanger
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... |
return PlaceObj("ModDef", {
"title", "Planet Hollywood (Logo)",
"version", 1,
"version_major", 0,
"version_minor", 1,
"saved", 0,
"image", "Preview.png",
"id", "ChoGGi_Logos_PlanetHollywood",
"steam_id", "1520469960",
"author", "BrowncoatTrekky & ChoGGi",
"lua_revision", 249143,
"TagColonyLogos", true,
"cod... |
local spairs
spairs = function(t)
local keys
do
local _accum_0 = { }
local _len_0 = 1
for k in pairs(t) do
_accum_0[_len_0] = k
_len_0 = _len_0 + 1
end
keys = _accum_0
end
table.sort(keys)
local i = 0
return function()
i = i + 1
return keys[i], t[keys[i]]
end
end
lo... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
local str_decode = require("string_decode")
EnumIf = class.class(KaitaiStruct)
EnumIf.Opco... |
local skynet = require "skynet"
local log = require "log"
local service = {}
function service.init(mod)
local funcs = mod.command
if mod.info then
skynet.info_func(function()
return mod.info
end)
end
skynet.start(function()
if mod.require then
local s = mod.require
for _, name in ipairs(s) do
s... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:Initialize()
self:SetModel( "models/parthenon/parthenon.mdl" )
self:SetUseType( SIMPLE_USE )
self.modelMins, self.modelMaxs = self:OBBMins(), self:OBBMaxs()
self:PhysicsInitBox(self.modelMins, self.modelMaxs)
... |
return class("FranceRestartPtPage", import(".TemplatePage.PtTemplatePage"))
|
------------------------------------------------------------------------------
-- Dialog class
------------------------------------------------------------------------------
local ctrl = {
nick = "dialog",
parent = WIDGET,
creation = "I",
callback = {
map_cb = "",
unmap_cb = "",
close_cb ... |
package("dlib")
set_kind("library", {headeronly = true})
set_homepage("https://dlib.net")
set_description("A toolkit for making real world machine learning and data analysis applications in C++")
set_license("Boost")
add_urls("https://github.com/davisking/dlib/archive/refs/tags/$(version).tar.gz",... |
-- This file was @generated by Tarmac. It is not intended for manual editing.
return {
checkmark = "rbxassetid://8484527786",
["chevron-right"] = "rbxassetid://9040299846",
["double-arrow"] = "rbxassetid://8492343246",
explore = "rbxassetid://8500157719",
flipbook = "rbxassetid://9884429367",
folder = "rbxassetid... |
--
-- Operator class
-- contains information for each operator
--
Operator={}
function Operator:new(o)
o=o or {}
setmetatable(o,self)
self.__index=self
self.__tostring=function(t) return t:to_string() end
-- parameters
o.id=o.id or 1
o.buttons={}
return o
end
function Operator:init()
-- defaults... |
-- title: clear snow
-- author: V.Stebunov
-- desc: clear all snow on winter time
-- script: lua
-- input: gamepad
-- saveid: VSClearSnow
-- make state machine
-- but first we need output map
-- and set player on center
local PLAYER_SPRITE = 1
local WALL_SPRITE = 2
local CRATE_SPRITE = 3
local JUNK_SPR... |
project "Testing"
kind "ConsoleApp"
staticruntime "on"
cppdialect "C++17"
language "C++"
targetdir (TargetDir)
objdir (ObjectDir)
defines "_CRT_SECURE_NO_WARNINGS"
files "%{prj.location}/**.**"
excludes "%{prj.location}/**.vcxproj**"
links
{
"Light Engi... |
-- Path of Building
--
-- Class: DropDown Control
-- Basic drop down control.
--
local ipairs = ipairs
local m_min = math.min
local m_max = math.max
local m_floor = math.floor
local DropDownClass = newClass("DropDownControl", "Control", "ControlHost", "TooltipHost", function(self, anchor, x, y, width, height, list, se... |
local perf = require("spec.helpers.perf")
local pl_path = require("pl.path")
local cjson = require("cjson")
local tools = require("kong.tools.utils")
local _M = {}
local mt = {__index = _M}
local UPSTREAM_PORT = 8088
local PG_PASSWORD = tools.random_string()
local KONG_ERROR_LOG_PATH = "/tmp/error.log"
function _M.n... |
script.on_event(defines.events.on_player_placed_equipment, function(event)
if event.equipment.name == "burner-fuel-equipment" then
local give_energy = event.equipment.prototype.take_result.fuel_value
local fuel = event.grid.take{equipment=event.equipment}
local needed_energy = 0.0
lo... |
function gadget:GetInfo()
return {
name = "Shield Starting Power",
desc = "Sets starting power of shields",
author = "Silver",
date = "2018",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
--------------------------------------------------------------------------------
-... |
if UnitFactionGroup("player") ~= "Alliance" then return end
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Grong Alliance", 2070, 2340)
if not mod then return end
mod:RegisterEnableMob(144638)
mod.engageId = 2284
mod.respawnTim... |
-----------------------------------
-- Area: Windurst Woods
-- NPC: Jack of Spades
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/npc_util")
require("scripts/globals/settings")
-----------------------------------
function onTrade(player,npc,trade)
if npcUt... |
local function init_dv_waypoints()
if not DecentVehicleDestination then return end
local hook_function = hook.Get('InitPostEntity', 'Decent Vehicle: Load waypoints')
if hook_function then
hook_function()
else
MsgN('[Background NPCs] Failed to call the function of loading the waypoints of DV')
... |
data:extend(
{
{
type = "recipe",
name = "stone-crushing",
icon = "__Engineersvsenvironmentalist__/graphics/icons/materials/gravel.png",
icon_size = 31,
category = "crusher",
subgroup = "basic-processing",
order ="a-2",
energy_required = 1,
enabled = true,
ingredients =
{
... |
return {
name = "luajit",
version = "2.1.head20151128",
require = { },
homepage = "http://luajit.org/luajit.html",
description = "LuaJIT: Just-In-Time Compiler (JIT) for Lua",
license = "MIT",
}
|
local io = require("io")
local component = require("component")
local eeprom = component.eeprom
if eeprom == nil then
print("You need to have an EEPROM inserted")
return
end
local args = table.pack(...)
if args.n ~= 2 then
print("you need to specify the path to bios.lua, then to the public key file")
return
end
loc... |
math.randomseed(os.time())
return function(limaxctx, JSON, httpHost, httpPort, appid, additionalQuery, timeout, maxsize, cacheDir, staleEnable)
local url = "http://" .. httpHost .. ":" .. httpPort .. "/app?native=" .. appid
if additionalQuery:len() > 0 then
if additionalQuery:sub(1,1) ~= "&" then
url ... |
#****************************************************************************
#**
#** File : /units/UAL0310/UAL0310_script.lua
#** Author(s): neagix
#**
#** Summary : Aeon Unit Script
#**
#** Copyright © 2020 neagix - licensed under a BSD 3-clause license
#***************************************************... |
--[[--------------------------------------------------------------------------
--
-- File: UTActivity.State.PlayersManagement.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: July 26, 2010
--
-------------------... |
local ui = {}
local conf = require("modules.ui.config")
ui["projekt0n/github-nvim-theme"] = {
config = conf.github_theme,
}
ui["hoob3rt/lualine.nvim"] = {
requires = "kyazdani42/nvim-web-devicons",
config = conf.lualine,
}
ui["lukas-reineke/indent-blankline.nvim"] = {
event = "BufRead",
config = conf.indent... |
--switch_buffers.lua
--drops down a list of buffers, in recently-used order
--~ scite_Command 'Switch Buffer|do_buffer_list|Alt+F12'
--~ scite_Command 'Last Buffer|last_buffer|Ctrl+F12'
local buffers = {}
local remove = table.remove
local insert = table.insert
local current_path
local _DirChange = {}
function scite_... |
-- Lua stuff
function onCreate()
makeLuaSprite('bg', 'happysky', -100)
setScrollFactor('bg', 0.1, 0.1);
addLuaSprite('bg', false)
makeLuaSprite('ground', 'happyground', -537, -158)
addLuaSprite('ground', false)
end
|
return {
armtship = {
acceleration = 0.067,
brakerate = 0.27,
buildangle = 16384,
buildcostenergy = 12948,
buildcostmetal = 1240,
builder = false,
buildpic = "armtship.dds",
buildtime = 15000,
canattack = false,
canguard = true,
canload = 1,
canmove = true,
canpatrol = true,
canstop = 1,
... |
local GSE = GSE
local Statics = GSE.Static
local L = GSE.L
local GNOME = "Storage"
--- Delete a sequence starting with the macro and then the sequence from the library
function GSE.DeleteSequence(classid, sequenceName)
GSE.DeleteMacroStub(sequenceName)
GSELibrary[tonumber(classid)][sequenceName] = nil
end
funct... |
Event_Add("Cannonwar", "Cannonwar_Event_Blockchange", "Map_Block_Change_Client", 0, 0, 326)
--Event_Delete("Cannonwar")
function Cannonwar_Event_Blockchange(Result, Client_ID, Map_ID, X, Y, Z, Mode, Type)
local Entity_ID = Client_Get_Entity(Client_ID)
local Player_Number = Entity_Get_Player(Entity_ID)
if Mode == ... |
includeexternal ("../function.lua")
create_console_project("019_A Survey of Efficient Representations for Independent Unit Vectors") |
----------------------------------------------------------------------------------------------------
-- This class manages the TileObject.
--
-- <h4>Extends:</h4>
-- <ul>
-- <li><a href="flower.Group.html">Group</a><l/i>
-- </ul>
--
-- @author Makoto
-- @release V3.0.0
------------------------------------------------... |
os.execute("ls")
os.execute("~/robotarm/robotarm 00 00 00")
function WidgetLib.newRobotArmController()
local w = {}
w.lspace = transform.new()
transform.setTranslation(w.lspace, -120,1,-202)
w.width = 30
w.height = 10
w.depth = 50
w.render = function (o)
glBeginQuads()
colorGL(255,155,0,255)
ve... |
oaa_rearm = class(AbilityBaseClass)
function oaa_rearm:OnSpellStart()
local caster = self:GetCaster()
caster:EmitSound("Hero_Tinker.Rearm")
local particleName = "particles/units/heroes/hero_tinker/tinker_rearm.vpcf"
self.particle = ParticleManager:CreateParticle(particleName, PATTACH_ABSORIGIN_FOLLOW, caster)... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XTextButton",
group = "InGame",
id = "InGameMenuEntry",
PlaceObj('XTemplateWindow', {
'__class', "XTextButton",
'HAlign', "right",
'Background', RGBA(0, 0, 0, 0),
'RolloverZoom', 1100,
'MouseCursor',... |
#!/usr/bin/env luajit
-- ./runsub_r.lua FILE POS KEY SUM
-- this does not check checksum
local afile, apos, akey, asum = ...
afile = io.open(afile, "rb")
afile:seek("set", apos)
local input = afile:read("*a")
afile:close()
local key = tonumber(akey)
local checksum = 0
for i = 1, #input do
local res = bit.band(inp... |
--------------------------------
-- @module PhysicsWorld
--------------------------------
-- @function [parent=#PhysicsWorld] getGravity
-- @param self
-- @return point_table#point_table ret (return value: point_table)
--------------------------------
-- @function [parent=#PhysicsWorld] getAllBodies
-- @pa... |
if vim.g.did_load_filetypes and vim.g.did_load_filetypes ~= 0 then
return
end
-- For now, make this opt-in with a global variable
if vim.g.do_filetype_lua ~= 1 then
return
end
vim.api.nvim_create_augroup('filetypedetect', { clear = false })
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
group = 'fi... |
-- ReceptorArrow positions are hardcoded using Metrics.ini
-- in both Casual, Competitive, Expert, and ECFA modes. If we're in one
-- of those modes, bail now.
if SL.Global.GameMode ~= "StomperZ" then return end
local player = ...
-- these numbers are relative to the ReceptorArrowsYStandard and ReceptorArrowsYRevers... |
object_tangible_collection_plant_13 = object_tangible_collection_shared_plant_13:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_plant_13, "object/tangible/collection/plant_13.iff") |
local args = ...
local player = args.Player or GAMESTATE:GetMasterPlayerNumber()
local show_menu_buttons = args.ShowMenuButtons
local show_player_label = args.ShowPlayerLabel
local pad_img = GAMESTATE:GetCurrentGame():GetName()
-- this handles user input while in SelectMusic's TestInput overlay
local function input(e... |
function _vCode_gx(User,Pass,PID) --共享平台
local token,uid,number = "",""
return {
login=(function()
local RetStr
for i=1,5,1 do
toast("获取token\n"..i.."次共5次")
mSleep(1500)
RetStr = httpGet('http://api.ndd001.com/do.php?action=loginIn&name='..User..'&pass... |
local PlayerInfo =
{
Name = "PlayerInfo",
Type = "System",
Namespace = "C_PlayerInfo",
Functions =
{
{
Name = "CanPlayerEnterChromieTime",
Type = "Function",
Returns =
{
{ Name = "canEnter", Type = "bool", Nilable = false },
},
},
{
Name = "CanPlayerUseAreaLoot",
Type = "Function",... |
--Copyright 2021 The casbin Authors. All Rights Reserved.
--
--Licensed under the Apache License, Version 2.0 (the "License");
--you may not use this file except in compliance with the License.
--You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
--Unless required by applicab... |
function printAddress(address)
-- prints address in format 0xAB12CD34
print(string.format("0x%8.8X", address))
end
function printHex(number)
-- prints number in hex AB11CD22
print(string.format("0x%X", number))
end
-- Read a single byte
function ReadInt8(address)
return readBytes(address, 1, false... |
-- Byte to hex converter
local function template_to_hex(c)
local v = (c == 'x') and math.random(0, 0xf) or math.random(8, 0xb)
return string.format('%x', v)
end
-- Get header first value
local function get_header(headers, name)
if headers ~= nil and name ~= nil and headers[name] ~= nil and header... |
-- This file is part of SA MoonLoader package.
-- Licensed under the MIT License.
-- Copyright (c) 2016, BlastHack Team <blast.hk>
local sampfuncs = {
-- RPCs
RPC_CLICKPLAYER = 23,
RPC_CLIENTJOIN = 25,
RPC_ENTERVEHICLE = 26,
... |
if not modules then modules = { } end modules ['trac-fil'] = {
version = 1.001,
comment = "for the moment for myself",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local rawset, tonumber, ... |
local lsqlite = require('lsqlite')
local utils = require('util')
console.log(lsqlite)
|
object_tangible_terminal_terminal_travel_instant_jalopy = object_tangible_terminal_shared_terminal_travel_instant_jalopy:new {
}
ObjectTemplates:addTemplate(object_tangible_terminal_terminal_travel_instant_jalopy, "object/tangible/terminal/terminal_travel_instant_jalopy.iff")
|
dofilepath("data:scripts/SCAR/SCAR_Util.lua")
dofilepath("data:scripts/scar/restrict.lua")
dofilepath("data:leveldata/multiplayer/lib/lib.lua")
dofilepath("data:leveldata/multiplayer/lib/crates.lua")
dofilepath("data:leveldata/multiplayer/lib/relics.lua")
dofilepath("data:leveldata/multiplayer/lib/challenges.lua")
dofi... |
--------------------------------
-- @module Physics3DShape
-- @extend Ref
-- @parent_module cc
---@class cc.Physics3DShape:cc.Ref
local Physics3DShape = {}
cc.Physics3DShape = Physics3DShape
--------------------------------
---
---@return btCollisionShape
function Physics3DShape:getbtShape()
end
------------------... |
local suite = yatm_autotest.att:new_suite("YATM Decor")
suite:describe("Jukebox", function (t1)
t1:setup(t1:method("clear_test_area"))
t1:test("can place a jukebox", function (t2)
local pos = vector.new(0, 0, 0)
local node = { name = "yatm_decor:jukebox_off" }
minetest.place_node(pos, node)
t2:y... |
require('game')
window_w=600
window_h=600
local font = love.graphics.newFont( "04B_19__.ttf", 12 * 1 )
love.graphics.setFont(font)
local gameendfont = love.graphics.newFont( "04B_19__.ttf", 12 * 3 )
interval = 15
function love.load()
add_apple()
end
function love.draw()
game_draw()
i... |
module(..., package.seeall)
function onCreate(params)
view = View {
scene = scene,
}
analogStick = Joystick {
onStickChanged = onStickChanged,
stickMode = "analog",
bottom = view:getHeight(),
parent = view,
}
digitalStick = Joystick {
onStickCha... |
-- cskin.lua
local M = require 'macro'
M.define_tokens{'&&','||','!=','{|'}
M.define '&& and'
M.define '|| or'
M.define '!= ~='
M.define '! not'
local push,pop = table.insert,table.remove
local bstack = {}
local btop = {}
local function push_brace_stack (newv)
newv = newv or {}
newv.lev = 0
push(bstack,... |
local Token = require 'utils.token'
local Color = require 'utils.color_presets'
local Server = require 'utils.server'
local Event = require 'utils.event'
local message_dataset = 'regulars'
local set_data = Server.set_data
local try_get_data = Server.try_get_data
local Public = {}
local fetch =
Token.register(
... |
return function(opt)
opt.nExamples = 20
opt.nDepth = 3
opt.nIn = 84
opt.rawDataDir = 'data/miniImagenet/'
opt.dataName = 'dataset.miniImagenet'
opt.dataLoader = 'dataset.data-loader'
opt.episodeSamplerKind = 'permutation'
return opt
end
|
require("harpoon").setup()
local harpoon_term = require "harpoon.term"
local nnoremap = vim.keymap.nnoremap
nnoremap {
"<Leader>t1",
function()
harpoon_term.gotoTerminal(1)
end,
}
nnoremap {
"<Leader>t2",
function()
harpoon_term.gotoTerminal(2)
end,
}
nnoremap {
"<Leader>t3",
function()
har... |
--- === Fenestra ===
--- A spoon for quickly changing the resolution on a Macbook Pro either through
--- a menubar menu, or using hs.chooser. I often switch between the native res (1680x1050)
--- and the 'larger' option (1440x900).
---
--- You can also use this to switch resolutions on other displays
---
--- Currently,... |
require "/scripts/util.lua"
require "/items/active/weapons/weapon.lua"
Flurry = WeaponAbility:new()
function Flurry:init()
self.baseDamageFactor = config.getParameter("baseDamageFactor", 1.0)
self.cooldownTimer = self.cooldownTime
self:reset()
end
function Flurry:update(dt, fireMode, shiftHeld)
WeaponAbility... |
fct2 = math.random(6) + 2;
tp = math.floor(1000/fct2)
fct1 = math.random(tp - 110) + 110;
val1 = math.floor(fct1/100)
ost1 = fct1 - val1 * 100
val2 = math.floor(ost1/10)
ost2 = ost1 - val2 * 10
if (ost == 0) then
fct1 = fct1 - 1
val1 = math.floor(fct1/100)
ost1 = fct1 - val1 * 100
val2 = math.floor(o... |
local tag = "player_grab"
local physgun_noplayergrab
if CLIENT then
physgun_noplayergrab = CreateClientConVar("physgun_noplayergrab", "0", true, true)
end
local PLAYER = FindMetaTable("Player")
function PLAYER:GetPhysgunner()
if isentity(self.Physgunner) and not IsValid(self.Physgunner) then
self.Physgunner = n... |
local StashMgr = class("StashMgr")
function StashMgr:ctor()
self.mWndList = require("Logic/Common/LinkedList").new()
end
function StashMgr:GetWndCnt()
return self.m_WndCnt;
end
function StashMgr:PushWnd(wndScript,param)
local _script = self.mWndList:Tail();
if nil ~= _script and nil ~= _s... |
--[[
* Copyright (c) 2013 MoSync AB
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... |
-- Contributed code, modified for vG likings
speedoSpeedStr = " "
local oldx = 0
local oldy = 0
local gears = true
--
local playerGear = 0
function gearPlus()
if isPedInVehicle( getLocalPlayer() ) then
local vehicle = getPedOccupiedVehicle( getLocalPlayer() )
if getVehicleController ( vehicle ) == getLocalPlay... |
--! tabularasa
--@ commons control firstrun periodic sixdof ytdefaults
function TabulaRasa_Update(I)
V.Reset()
end
TabulaRasa = Periodic.new(UpdateRate, TabulaRasa_Update)
SelectHeadingImpl(SixDoF)
SelectThrottleImpl(SixDoF)
function Update(I) -- luacheck: ignore 131
C = Commons.new(I)
FirstRun(I)
if not... |
--@name Basic Networking Tutorial
--@author Vurv
--@shared
if SERVER then
E = chip()
timer.simple(0.5,function() // EDIT: Use ClientInitialized hook
// Putting this in a timer as sending stuff from server -> client is not always reliable
// Due to clientside ping. half a second is good enough ... |
Ambi.General.Bench = Ambi.General.Bench or {}
-- -------------------------------------------------------------------------------------
local SysTime = SysTime
local pairs = pairs
local tostring = tostring
local MsgC = MsgC
-- -------------------------------------------------------------------------------------
l... |
setenv("RTM_INTEL_VERSION", "12.1")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.