content stringlengths 5 1.05M |
|---|
#!/usr/bin/luajit
local lu=require"luaunit"
local ffi=require"ffi"
local ubx=require"ubx"
local utils=require"utils"
local cdata=require"cdata"
assert_equals = lu.assert_equals
assert_true = lu.assert_true
-- require"trace"
-- require"strict"
local code_str_len = 16*1024*1024
local nd = ubx.node_create("test_struc... |
--[[
Core - chaty
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local meTime = {}
local lastMeMessage = {}
local chatTime = {}
local lastChatMessage... |
local socket = require "socket"
local client = socket.udp()
function love.load()
client = socket.udp() --make a new socket
client:setsockname( "192.168.0.3", 22122 ) --set the socket name to the real IP address
client:settimeout( 0 )
continuar = true
end
function love.update(dt)
if continuar then
loca... |
-- Autogenerated from KST: please remove this line if doing any edits by hand!
local luaunit = require("luaunit")
require("str_encodings_default")
TestStrEncodingsDefault = {}
function TestStrEncodingsDefault:test_str_encodings_default()
local r = StrEncodingsDefault:from_file("src/str_encodings.bin")
luau... |
--[[
Quest Map
by CaptainBlagbird
https://github.com/CaptainBlagbird
--]]
local LMP = LibMapPins
local iconRepeatableTexture
local iconRepeatableSets = {}
for k,v in pairs(QuestMap.icon_sets) do
table.insert(iconRepeatableSets, k)
end
local panelData = {
type = "panel",
name = QuestMap.displayName,
... |
uller = Creature:new {
customName = "uller",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "townsperson",
faction = "townsperson",
level = 11,
chanceHit = 0.28,
damageMin = 90,
damageMax = 110,
baseXp = 514,
baseHAM = 810,
baseHAMmax = 990,
armor = 0,
resists = {10,5,0,0,0,0,0,-1,-1},... |
if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.ViewModelFlip = true
SWEP.PrintName = "USP Compact"
SWEP.IconLetter = "a"
SWEP.Slot = 2
SWEP.Slotpos = 2
end
SWEP.HoldType = "pistol"
SWEP.Base = "rad_base"
SWEP.ViewModel = "models/weapons/v_pist_usp.mdl"
SWEP.WorldModel = "models/wea... |
Loot.Window = function(config, callback) -- callback = function(newConfig)
config = config or {}
local window = UI.createWindow('LootWindow')
local values = {} -- (key, function returning value of key)
window.name:setText(config.name or "")
table.insert(values, {"name", function() return window.name:getText... |
nibRealUICharacter = nil
|
local media = require 'media'
local Game = require 'game'
require 'gamestates.play'
local game
function love.load()
media.load()
love.graphics.setBackgroundColor(9, 46, 78)
game = Game:new()
end
-- Updating
function love.update(dt)
media.cleanup()
game:update(dt)
end
-- Drawing
function love.d... |
---@class CS.UnityEngine.LightmapSettings : CS.UnityEngine.Object
---@field public lightmaps LightmapData[]
---@field public lightmapsMode number
---@field public lightProbes CS.UnityEngine.LightProbes
---@type CS.UnityEngine.LightmapSettings
CS.UnityEngine.LightmapSettings = { }
return CS.UnityEngine.LightmapSettings... |
--测试lua接收到的oc传入的参数
local crash = function (message)
-- body
print("program crash")
print(message)
os.exit(1)
end
--这里的assert好像不能检测错误
_G.TestForwardArgument_checkInt = function (className,i)
-- body
-- assert(i == 1,"TestForwardArgument_checkInt error")
if i ~= 1 then
crash("TestForwardArgument_checkInt error... |
local access = require "kong.plugins.kong-path-based-routing.access"
KongPathBasedRoutingHandler = {}
KongPathBasedRoutingHandler.PRIORITY = 10
KongPathBasedRoutingHandler.VERSION = "2.0.0"
function KongPathBasedRoutingHandler:access(conf)
access.execute(conf)
end
return KongPathBasedRoutingHandler
|
NodeTreeEditor = GuiElement:extend("NodeTreeEditor");
function NodeTreeEditor:init(parent, name, x, y, tree)
NodeTreeEditor.super.init(self, parent, name, x, y);
self.tree = tree;
self.texts = {};
self.selected = -1;
self.selected_node = {};
self.inspector = nil;
self.w = 100;
self.h = 100;
self.tx = 0;
s... |
data.raw.gun["rocket-launcher"].attack_parameters.range = 50
|
-- OptimisticSide
local Players = game:GetService("Players")
local Package = script.Parent
local Formatter = require(Package.Formatter)
local Http = require(Package.Http)
local API = require(Package.API)
local Item = require(Package.Item)
local Player = { }
Player.__index = Player
function Player:GetData() => ta... |
-- Load configuration options up front
ScriptHost:LoadScript("scripts/settings.lua")
Tracker:AddMaps("maps/maps.json")
Tracker:AddItems("items/common.json")
Tracker:AddLayouts("layouts/tracker.json")
Tracker:AddLayouts("layouts/tracker_broadcast.json")
Tracker:AddLocations("locations/rooms.json")
|
local Prop = {}
Prop.Name = "City Apartment 104"
Prop.Cat = "Apartments"
Prop.Price = 750
Prop.Doors = {
Vector( -11104.5, 12201, 675.21002197266 ),
Vector( -11431.5, 12333, 675.21002197266 ),
Vector( -11432.900390625, 12453, 675.21002197266 ),
}
GM.Property:Register( Prop ) |
melody.fg = Def.ActorFrame {}
local t = melody.fg
t[#t+1] = Def.Quad {
InitCommand=melody(function(self)
function am_bl(mult) return (GAMESTATE:GetCurBPS()) * (mult or 1) end
init_hooks{'mods init',function()
-- lua{'fg/mods', env=modreader.jaezmien}
end}
end)
}
-- Foreground actors here --
t[#t+1] = Def... |
function convertnumbers(numbers)
local _numbers = {}
for i = 0, 9, 1 do
for innerKey, value in pairs(numbers[i]) do
table.insert(_numbers, value)
end
end
return _numbers
end
function getMaxVal(toSort)
local maxVal = 0
for key, value in pairs(toSort) do
if (value > maxVal) then
... |
------------------------------------------------------------------------------
-- Encoding of ANSI color escape sequences
------------------------------------------------------------------------------
local codes = {
-- attributes
reset = 0,
clear = 0,
bold = 1,
bright = 1,
dim = 2,
... |
-------------------------------------------------
-- ToDo Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/todo-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
-------------------------------------------------
local... |
local cjson = require "cjson"
local _M = {}
--[[local function get_content_type(content_type)
if content_type == nil then
return
end
if string.find(content_type:lower(), "application/json", nil, true) then
return JSON
elseif string.find(content_type:lower(), "multipart/form-data", nil,... |
ogre_tank_boss_jump_smash = class( AbilityBaseClass )
LinkLuaModifier( "modifier_ogre_tank_melee_smash_thinker", "modifiers/modifier_ogre_tank_melee_smash_thinker.lua", LUA_MODIFIER_MOTION_NONE )
-----------------------------------------------------------------------------
function ogre_tank_boss_jump_smash:ProcsMagi... |
local M = {}
local home = os.getenv("HOME")
local disabled_worksapce_path = home .. "/.config/nvim/format_disabled_dirs.txt"
local disabled_worksapce_file = io.open(disabled_worksapce_path, "r")
local disabled_worksapce = {}
if disabled_worksapce_file ~= nil then
for line in disabled_worksapce_file:lines() do
loc... |
local Class = require("facto.class")
local Event = require("facto.event")
local AbstractFactory = require("facto.abstractfactory")
--- Exchanger factory class for registering, creating different exchangers, and centralized managing all exchanger instances.
-- @classmod ExchangerFactory
local ExchangerFactory = Class.e... |
--addEventHandler( "OnClientWeaponFire", root, function (target)
-- if (target == getLocalPlayer()) then
-- outputChatBox("Phew")
-- if (getElementDimension(target) == 2000) then
-- local pedSlot = getPedWeaponSlot ( target )
-- if (pedSlot == 8 or pedSlot == 12 or pedSlot == 7) then
-- outputChatBox("You... |
--|> SIMPLEX | Easy-to-use interaction system <|--
-- ShutoExpressway
-- Handles interaction in-range detection.
local InteractionProximityHandler = {}
InteractionProximityHandler.CharacterHandler = nil
InteractionProximityHandler.NearestPoint = nil
local CollectionService = game:GetService("CollectionService")
loc... |
local runner = require("test_executive")
local console = require("console")
local json = require("json")
-- Setup --
server = core.httpd(9081)
endpoint = core.endpoint()
server:attach(endpoint, "/source")
client = core.http("127.0.0.1", 9081)
-- Unit Test --
rsps, status = client:request("GET", "/", "{}")
runner.c... |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id base.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/09/07 13:53
- @uses The ... |
local NotificationBindable = Instance.new("BindableFunction")
NotificationBindable.OnInvoke = callback
--
game.StarterGui:SetCore("SendNotification", {
Title = "Dynamic Client";
Text = "Xray Activated.";
Icon = "rbxassetid://9136813125";
Duration = 3;
Callback = NotificationBindable;
})
-- Made by Clifford from ... |
local indent = require'indent_blankline'
indent.setup {
show_current_context = true,
show_current_context_start = false,
}
|
data:extend(
{
{
type = "item",
name = "hr-glass",
icon = "__More-Materia__/graphics/hr-glass.png",
icon_size = 64,
flags = {"goes-to-main-inventory"},
action =
{
type="direct",
action_delivery =
{
type = "instant",
target_effects =
{
... |
-- FxControlHelper
-- Copyright (c) 2021 ぬーもす
-- This script is released under the MIT License.
-- # Effect
local set_effect = function(self, vci_item_name)
self._effect = vci.assets.GetEffekseerEmitter(vci_item_name)
end
local set_effect_loop = function(self, is_loop)
self._is_effect_loop = is_loop
e... |
-- See LICENSE for terms
-- local any funcs used below (more than once)
local tonumber, tostring, pcall = tonumber, tostring, pcall
local AsyncRand, _InternalTranslate, T = AsyncRand, _InternalTranslate, T
do -- translate
local locale_path = CurrentModPath .. "Locales/"
if not LoadTranslationTableFile(locale_path .... |
STRING_PROVISIONS = {
'provision_alligator_legendary_skin_pristine',
'provision_alligator_legendary_tooth',
'provision_alligator_skin_poor',
'provision_alligator_skin_pristine',
'provision_alligator_skin',
'provision_alligator_tooth',
'provision_animal_carcass_alligator_high_quality',
'p... |
TUTORIALS['en'][#TUTORIALS['en'] + 1] = {
name = "Attacking a Pokemon",
contents = {
{type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/attack_creature.png"},
{type = CONTENT_TYPES.TEXT, value = "To attack a wild Pokemon in the game you can use the following options:\n\n1. Clicking directly ... |
local FillColor = Component:extend("FillColor")
function FillColor:initialize(r, g, b, a)
self.fill_color = {r, g, b, a}
end
function FillColor:setFillColor(r, g, b, a)
self.fill_color = {r, g, b, a}
return self
end
function FillColor:setFillColor()
return unpack(self.fill_color)
end
|
LinkLuaModifier("modifier_sara_fragment_of_logic", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_sara_fragment_of_logic_debuff", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE)
sara_fragment_of_logic = class({
GetIntrinsicModifierName = function() re... |
local function Finish(Thread, Success, ...)
if not Success then
warn(debug.traceback(Thread, tostring((...))))
end
return Success, ...
end
local function FastSpawn(Function, ...)
local Thread = coroutine.create(Function)
return Finish(Thread, coroutine.resume(Thread, ...))
end
return Fa... |
--TODO: check if you can use lua type boolean instead of strings and pass that back to osm2pgsql
--with the hopes that they will become strings once they get back to c++ and then just work in
--postgres
highway = {
["motorway"] = {["auto_forward"] = "true", ["truck_forward"] = "true", ["bus_forward"] = "tru... |
local api = vim.api
local floating = {}
function floating:window()
-- get the editor's max width and height
local width = api.nvim_get_option("columns")
local height = api.nvim_get_option("lines")
local height_percentage = 10 / 100
local width_percentage = 5 / 100
-- create a new, scratch bu... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
server_scripts {
'GHMattiMySQL.net.dll'
} |
-- engine bustedhelper equivalent for game project
-- see bustedhelper_ingame.lua for explanations
-- attract_mode being the closest to ingame cartridge, we have the same content
-- except we require common_attract_mode and removed uncommented log activation code
-- Usage:
-- in your game utests, always require("test/... |
-- 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 utils = require("utils")
ParamsPassBool = class.class(KaitaiStruct)
function ParamsPassBool:_init(io, parent, roo... |
Scaling = {}
local x_scale = 0.8
local y_scale = 0.8
local WIDTH = 1600
local HEIGHT = 1200
function Scaling:get_width()
return (love.graphics.getWidth() / x_scale)
end
function Scaling:get_height()
return (love.graphics.getHeight() / y_scale)
end
function Scaling:set_window_size()
love.window.setMode(WI... |
local class = require "include.class"
local mysql = require "include.mysql"
local deepcopy = require "include.deepcopy"
local swapHashKV = require "include.swaphashkv"
local timetool = require "include.timetool"
local cjson = require "include.cjson"
local s_format = string.format
local s_find = string.find
local s_upp... |
function love.conf(t)
local TILE_SIZE = 16
local SCALE = 4
t.identity = 'love_jav_2022'
-- For debugging, build must have it as false
t.console = true
t.title = "Löve Jam 2022"
-- Set by default a 16:9 resolution (the most common one)
t.window.width = TILE_SIZE * 16 * SCALE
t.window.height = TILE_SIZE... |
class "UIColorPicker" {
extends "UIPanel",
new = function (self, x,y, width,height, colorHueAlias,colorSaturationAlias,colorValueAlias,colorAlphaAlias)
self.colorHue = colorHueAlias or 0
self.colorSaturation = colorSaturationAlias or 0
self.colorValue = colorValueAlias or 0
self.colorAlpha = colorAlphaAlia... |
---@class Framework.core.context.LoadContext
LoadContext = class("Framework.core.context.LoadContext")
function LoadContext:ctor(loader)
end |
require("zen-mode").setup {
window = {
width = 165,
height = 80,
options = {
signcolumn = "no",
number = true,
list = false,
},
},
plugins = {
tmux = {
enabled = true
}
}
}
|
-- get the fruit from the list
-- and store it in an array (table)
-- or our "basket" if you will
local fruit = "apple,pear,banana,pineapple"
local basket = {}
local i = 1
for fruit in string.gmatch(fruit, "%w+") do
basket[i] = fruit
i = i + 1
end
-- I needs a nice, fruity drink...
return "What about... |
local panelName = "alarms"
local ui = setupUI([[
Panel
height: 19
BotSwitch
id: title
anchors.top: parent.top
anchors.left: parent.left
text-align: center
width: 130
!text: tr('Alarms')
Button
id: alerts
anchors.top: prev.top
anchors.left: prev.right
anchors.right: parent... |
-- @description Random Track FX
-- @author Aaron Cendan
-- @version 1.1
-- @metapackage
-- @provides
-- [main] .
-- @link https://ko-fi.com/acendan_
-- @changelog
-- + Added JSFX support
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~~~~~~~~~~ GLOBAL VARS ~~~~~~~~~~
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- Get this s... |
local MEME = ThemePrefs.Get("MEMEMode");
local Menu = 0
local Allow_Press = false;
local IDontWantLetHerGo = true;
local InputHandler = function( event )
-- if (somehow) there's no event, bail
if not event then return end
if not Allow_Press then return end
--printf("Meow !%d! %s->%s\n%d",math.random( 0,99 ),eve... |
local beautiful = require("beautiful")
local awful = require("awful")
local gtable = require("gears.table")
local hotkeys_popup = require("awful.hotkeys_popup").widget
-- Enable hotkeys help widget for VIM and other apps
-- -- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
-- default c... |
--[[
Common Stuff
(part 1)
]]
-- Modification Flags
-- If you ever change a setting of the Interface object, will add one of these flags to it.
-- This will be sent to the client to know what to read in the net message to save networking
local Modify = {
volume = 1,
time = 2,
pos = 4,
playing = 8,
playback_rate... |
local d_pack = require'pb.standard.pack'
local d_unpack = require'pb.standard.unpack'
local bit = require'bit'
local zigzag = d_pack.zigzag64
local unzigzag = d_unpack.unzigzag64
local first = arg[1] or -100000000
local last = arg[2] or 100000000
local bits = tonumber(arg[3] or 64)
if bits == 32 then
zigzag = d_pac... |
local KC = require('klib/container/container')
local Helper = require('pda/behavior/helper')
local Alert = KC.class('pda.behavior.Alert', function(self, agent)
self.agent = agent
end)
Helper.define_name(Alert, "alert")
function Alert:update()
local entity = self.agent.entity
local enemy = entity.surface.... |
object_tangible_door_som_old_republic_facility_door = object_tangible_door_shared_som_old_republic_facility_door:new {
}
ObjectTemplates:addTemplate(object_tangible_door_som_old_republic_facility_door, "object/tangible/door/som_old_republic_facility_door.iff")
|
local AC = require 'aho-corasick'
local count = 0
function error(e, t)
print(count .. " " .. e)
os.exit()
end
function test(s, d, r)
count = count + 1
local t = AC.build(d)
local f = AC.match(t, s)
if #r ~= #f then
error("Wrong number of results " .. #r .. ", " .. #f, t)
end
... |
function ink(n)
if ROUND.gameMode.hell and ROUND.accumulated then
ROUND.accumulated = nil
addBlockPoint(ROUND.chair[n].owner)
end
local target = nextChair(ROUND.turn)
local change = {}
for i, v in pairs(ROUND.chair[target].hand) do
if v[1] ~= "black" then
if v[3] or v[2] == "batata" then
v[1] = ROUND.... |
local entity = {}
entity["level"] = [[51]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Maragion]]
entity["spellDeck"][2] = [[]]
entity["spellDeck"][3] = [[Masukukaja]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[]]
entity["spellDeck"][6] = [[]]
entity["heritage"] = {}
entity["heritage"][1] = [[Fire... |
local json
local config
local logger
local enums
local http = require('coro-http')
local yield,wrap,resume,running = coroutine.yield,coroutine.wrap,coroutine.resume,coroutine.running
local p = require('pretty-print').prettyPrint
local TTS = {
request_url = "https://us-central1-sunlit-context-217400.cloudf... |
weapon_model_id = 22
create_rocket_timer = 3000
rocket_timer_delay = 1000
rocket_lerp_each_server_delay = 25
rocket_speed_per_s = 6500 -- irl ~ 300m/s
rocket_damage_vehicles = 5000
rocket_particle_id = 68
added_speed = rocket_timer_delay / 1000 |
local lpeg = require("lpeg")
local chardata = characters.data
local types = {
"Bi", "Bi","CSR", "Vs", "VI", "VI", "VI", "VI",
"VI", "C", "C", "C", "VI", "VI", "VI", "C",
"C", "C", "C", "C", "C", "C", "C", "C",
"C", "C", "C", "C", "C", "C", "C", "C",
"C", "C", "C", "C", "C", "C", ... |
-- Level description file for Breakout
--
-- 0 = no tile
-- 1 = solid tile
-- 2..5 = non-solid tiles of different colors
local LevelDescription = {}
LevelDescription[1] = {
{5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5},
{5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5},
{4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 4,... |
-- luastg module loader for editor
--local old={}
--old._LoadImageFromFile=_LoadImageFromFile
--old._LoadImageGroupFromFile=_LoadImageGroupFromFile
current_module_name=nil
current_module=nil
current_dir=nil
modules={}
local new={}
function new._LoadImageFromFile(teximgname,filename,mipmap,a,b,rect,edge)
local a={}... |
-- Functions implementing operators, ie commands to be followed by a motion.
local M = {}
-- Implements c{motion}
function M.change(start, end_, mtype)
M.cut(start, end_, mtype)
if mtype == 'linewise' then
-- If linewise, should be editing in a new empty line
if buffer.current_pos == 0 then
--... |
-- Create a TCP server
PORT = 8181;
ADDR = "192.168.4.1";
wifi.setmode(wifi.SOFTAP);
wifi.start();
tmr.delay(2);
srv = net.createServer(net.TCP, 30);
srv:listen(PORT, ADDR, function(sock)
sock:on("receive", function(sock, c)
print(c);
end)
end)
|
local _, ns = ...
local B, C, L, DB, P = unpack(ns)
local M = P:GetModule("Misc")
-- 宝箱开锁等级
do
local Lockpicking = GetSpellInfo(1804)
local TooltipCache = {}
local LockedBoxes = {
[16882] = 1,
[4632] = 1,
[6354] = 1,
[6712] = 1,
[4633] = 25,
[16883] = 70,
[4634] = 70,
[6355] = 70,
[4636] = 125,
... |
print('I was hoping this would work')
for i,v in pairs(args) do
print(i,v)
end
|
--[=[
@Author: Gavin "Mullets" Rosenthal
@Desc: DataSync, a custom DataStoreService wrapper
]=]
--[=[
[DOCUMENTATION]:
store = DataSync.GetStore(key,default)
subscription = store:Subscribe(index,value,function)
subscription:Unsubscribe()
file = store:GetFile(index)
file:GetData(value)
file:UpdateData(value... |
data:extend({
{
type = "recipe",
name = "void-pipe",
enabled = "false",
ingredients =
{
{"pipe", 1},
{"electronic-circuit", 1},
},
result = "void-pipe",
},
{
type = "recipe",
name = "void-chest",
enabled ... |
local function createUseEffect(component)
return function(callback, dependsOn)
if type(callback) ~= "function" then
error("useEffect callback is not a function", 2)
end
local hookCount = component.hookCounter + 1
component.hookCounter = hookCount
-- TODO: This mutates the component in the middle of rend... |
local uv = require "lluv"
local ssl = require "lluv.ssl"
local config = require "./config"
local ctx = assert(ssl.context(config))
local EOF = uv.error(uv.ERROR_UV, uv.EOF)
local function ping()
ctx:client():connect("127.0.0.1", 8881, function(cli, err)
if err then
print("Connection fail:", err)
... |
--
-- Copyright (c) 2014, 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.
--
-- utilities to... |
local ACT_MP_STAND_IDLE = ACT_MP_STAND_IDLE
local ACT_HL2MP_SWIM_SLAM = ACT_HL2MP_SWIM_SLAM
local ACT_HL2MP_SWIM_IDLE_SLAM = ACT_HL2MP_SWIM_IDLE_SLAM
local ACT_HL2MP_WALK_SUITCASE = ACT_HL2MP_WALK_SUITCASE
local ACT_MP_WALK = ACT_MP_WALK
local ACT_MP_RUN = ACT_MP_RUN
local ACT_HL2MP_IDLE_MELEE_ANGRY = ACT_HL2MP_IDLE_ME... |
local tbug = SYSTEMS:GetSystem("merTorchbug")
local cm = CALLBACK_MANAGER
local wm = WINDOW_MANAGER
local BLUE = ZO_ColorDef:New(0.8, 0.8, 1.0)
local RED = ZO_ColorDef:New(1.0, 0.2, 0.2)
--------------------------------
-- class ObjectInspectorPanel --
local BasicInspectorPanel = tbug.classes.BasicInspectorPanel
l... |
local f = string.format
My.Translator:register("de", {
upgrade_speed1_name = "Impulsantrieb MkI",
upgrade_speed1_description = function(speedUPerMin)
return f("Der Impulsantrieb MkI ist die Einsteigervariante für kleinere und mittlere Frachter. Geschwindigkeiten über %0.1fu/min sind nur für erfahrene T... |
-- Initialize gSQL for database queries.
include("gsql/gsql.lua")
include("advisor_config.lua")
include("shared.lua")
|
fx_version 'adamant'
game 'gta5'
author 'Ziraflix Dev Group'
contact 'E-mail: contato@ziraflix.com - Discord: discord.gg/6p3M3Cz'
version '1.0.4'
ui_page 'nui/darkside.html'
client_scripts {
'@vrp/lib/utils.lua',
'hansolo/*.lua'
}
files {
'nui/*.html',
'nui/*.js',
'nui/*.css'
} |
local DataPersistence = {}
DataPersistence.__index = DataPersistence
function DataPersistence:new()
end
function DataPersistence:save()
end
function DataPersistence:load()
end
return DataPersistence
|
--
-- c_switch.lua
--
----------------------------------------------------------------
----------------------------------------------------------------
-- Effect switching on and off
--
-- To switch on:
-- triggerEvent( "switchWaterRef", root, 4 )
--
-- To switch off:
-- triggerEvent( "switchWaterRef", root, 0 )
-... |
require"hang2kill"
--hang2kill.SetTimeout(30) --uncomment to manually set freeze kill timeout. |
local tasks = {}
-- Functions for handling long-running things over a period of time.
Async = {}
Async.__index = Async
AsyncTask = {}
AsyncTask.__index = AsyncTask
local async_tasks = nil
local async_runtimes = {}
local async_initialized = false -- can't use configuration_function because that's set before LuaGameSc... |
-----------------------------------------------------------
-- todo-comments configuration file
-----------------------------------------------------------
-- Plugin: todo-comments.nvim
-- https://github.com/folke/todo-comments.nvim
require("todo-comments").setup {}
|
require("strict")
require("fileOps")
require("pairsByKeys")
local function nsformat(value)
if (type(value) == 'string') then
if (string.find(value,"\n")) then
value = "[[\n" .. value .. "\n]]"
else
value = "\"" .. value .. "\""
end
elseif (type(value) == 'boolean') then
if (value) the... |
local FluidStack = assert(yatm.fluids.FluidStack)
--
-- Item recipe
--
local FreezingItemRecipe = foundation.com.Class:extends("FreezingItemRecipe")
local ic = FreezingItemRecipe.instance_class
function ic:initialize(opts)
ic._super.initialize(self)
self.id = opts.id
self.name = opts.name
self.input_item_sta... |
require 'lfs'
require 'paths'
require 'image'
require 'cunn'
require 'nngraph'
require 'InstanceNormalization'
torch.setdefaulttensortype('torch.FloatTensor')
local argparse = require 'argparse'
local parser = argparse()
parser:option('--input', 'Input file')
parser:option('--input_dir', 'Input directory')
parser:opt... |
-- LV Electric Furnace
-- This is a faster version of the stone furnace which runs on EUs
-- FIXME: kpoppel I'd like to introduce an induction heating element here also
minetest.register_craft({
output = 'technic:electric_furnace',
recipe = {
{'default:cobble', 'default:cobble', 'default:cobble'},
{'defa... |
object_tangible_food_generic_drink_durindfire = object_tangible_food_generic_shared_drink_durindfire:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_drink_durindfire, "object/tangible/food/generic/drink_durindfire.iff")
|
core.register_privilege("remove_stick", {
description = "Can use the remove stick tool to delete nodes or entities",
give_to_singleplayer = false,
give_to_admin = true,
})
minetest.register_craftitem("remove_stick:remove_stick", {
description = "Admin Remove Stick",
inventory_image = "admin_tools_removestick.png"... |
-----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Ix'aern (Dark Knight) Spawn)
-- Allows players to spawn the Ix'aern (Dark Knight) by checking ??? only after killing the required mobs in the same room as the ???.
-- !pos -240 5.00 440 35
-- !pos -280 5.00 240 35
-- !pos -560 5.00 239 35
-... |
class "PlayerColor"
function PlayerColor:__init()
-- Changes if window opens on load or not
self.windowOpen = false
-- Creates window
self:CreateWindow()
-- I hope you "like" this "comment" about "subscribing"
-- I'm sorry for that "joke" about "YouTube"
Network:Subscribe("FetchColor", self, self.FetchColor)
E... |
function encode(number)
local assign = {
[0] = '2',
[1] = '3',
[2] = '4',
[3] = '5',
[4] = '6',
[5] = '7',
[6] = '8',
[7] = '9',
[8] = 'A',
[9] = 'C',
[10] = 'D',
[11] = 'E',
[12] = 'F',
[13] = 'G',
... |
Config = {
Debug = false,
GridSize = 4,
MaxDistance = 5.0,
Controls = {
Place = 24,
Cancel = 25,
FineTune = 21,
RotateR = 44,
RotateL = 46,
VariantR = 96,
VariantL = 97,
},
Placing = {
Anim = {
Dict = "pickup_object",
Name = "putdown_low",
Flag = 0,
Duration = 1500,
},
},
Pickup = ... |
--[[--------------------------------------------------------------------
Grid
Compact party and raid unit frames.
Copyright (c) 2006-2009 Kyle Smith (Pastamancer)
Copyright (c) 2009-2016 Phanx <addons@phanx.net>
All rights reserved. See the accompanying LICENSE file for details.
https://github.com/Phanx/Grid
htt... |
--This is to be used for static spawns that are NOT part of caves, cities, dungeons, poi's, or other large screenplays.
TalusStaticSpawnsNorthScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "TalusStaticSpawnsNorthScreenPlay",
lootContainers = {
1094899
--9645503 = bugged container, enabling th... |
--
-- Name: codelite/codelite_workspace.lua
-- Purpose: Generate a CodeLite workspace.
-- Author: Ryan Pusztai
-- Modified by: Andrea Zanellato
-- Manu Evans
-- Created: 2013/05/06
-- Copyright: (c) 2008-2015 Jason Perkins and the Premake project
--
local p = premake
local project ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.