content stringlengths 5 1.05M |
|---|
#!/usr/bin/env lua
require "ex"
assert(arg[1], "need a command name")
print"io.pipe()"
local i, o = assert(io.pipe())
print("got", i, o)
print"os.spawn()"
local t = {command = arg[1], stdin = i}
print(t.stdin)
local proc = assert(os.spawn(t))
print"i:close()"
i:close()
print"o:write()"
o:write("Hello\nWorld\n")
print"o... |
local Fluid = require("lib.fluid")
local Game = Fluid.instance()
return Game
|
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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... |
hash = box.schema.space.create('tweedledum')
tmp = hash:create_index('primary', { type = 'hash', parts = {1, 'string'}, unique = true })
-- Insert valid fields
hash:insert{'key 0', 'value1 v1.0', 'value2 v1.0'}
hash:insert{'key 1', 'value1 v1.0', 'value2 v1.0'}
hash:insert{'key 2', 'value1 v1.0', 'value2 v1.0'}
hash:i... |
--[[
sortButton.lua
Sorting options button
--]]
local ADDON, Addon = ...
local L = LibStub('AceLocale-3.0'):GetLocale(ADDON)
local SortButton = Addon:NewClass('SortButton', 'CheckButton')
local SIZE = 20
local NORMAL_TEXTURE_SIZE = 64 * (SIZE/36)
local FIRST_FLAG, LAST_FLAG = LE_BAG_FILTER_FLAG_IGNORE_CLEANUP, NUM... |
local Snowflake = require('../Snowflake')
local Color = require('../../utils/Color')
local Permissions = require('../../utils/Permissions')
local format = string.format
local Role, property, method = class('Role', Snowflake)
Role.__description = "Represents a Discord guild role."
function Role:__init(data, ... |
-- Copyright (C) 2017-2020 DBotThePony
-- 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, publis... |
LinkLuaModifier("modifier_sai_invulnerability", "heroes/hero_sai/invulnerability.lua", LUA_MODIFIER_MOTION_NONE)
sai_invulnerability = class({})
if IsServer() then
function sai_invulnerability:OnToggle()
local caster = self:GetCaster()
if self:GetToggleState() then
caster:AddNewModifier(caster, self, "modifie... |
for i = 0, 10 do
print(i)
if i == 5 then
break
end
end |
credits = {}
function credits.load()
end
function credits.draw()
love.graphics.setBackgroundColor(0, 0, 0)
love.graphics.printf("Made with LOVE! <3\n\n\nDaemon L. Schmidt - Coding and Design\n\nMrWhales - Art\n\nSkunk_Giant - Music\n\nSpecial thanks to Bartbes,\nthe creator of Swingers and -gulp- AnAL!\n\n\n\nS... |
--[[------------------------------------------------------------------
Afraid of Monsters: Director's Cut theme
]]--------------------------------------------------------------------
local BUCKET, HUD1, HUD2, _HUD2, _HUD3, HUD3, HUD4, HUD5, HUD6, HUD7, HUD8, HUD9 = '640bucket', '640hud1', '640hud2', '_640hud2', '_64... |
-- echo command line arguments
for i=0,table.getn(arg) do
print(i,arg[i])
end
|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Category = "Tick_FounderStageDone",
Effects = {},
Enabled = true,
Image = "UI/Messages/meteors.tga",
Prerequisites = {
PlaceObj('PickFromLabel', {
'Label', "Colonist",
'Conditions', {
Plac... |
local RedisContext = require 'stuart-redis.RedisContext'
local stuart = require 'stuart'
local RedisEmbeddedContext = stuart.class(RedisContext)
function RedisEmbeddedContext:filterKeysByType(keys, typeFilter)
local res = {}
for _, key in ipairs(keys) do
local typeRes = redis.call('TYPE', key)
local type ... |
--[[
THIS AND THE GAME FOLDERS ARE EXAMPLES ON HOW TO USE THE LIBRARY
GREENTEA IS THE FOLDER CONTAINING THE ACTUAL MAP LIBRARY.
Namespacing:
All classes that are used have the gt_ prefix in front of it.
gt_widget=widgets
gt_tileset=tileset
gt_tile=tile
gt_map=map
gt_layer=layer
gt_camera=camera
etc, etc.... |
------------------------------------------------------------------------------
-- Hadamard Product for Low-rank Bilinear Pooling
-- Jin-Hwa Kim, Kyoung-Woon On, Woosang Lim, Jeonghee Kim, Jung-Woo Ha, Byoung-Tak Zhang
-- https://arxiv.org/abs/1610.04325
--------------------------------------------------------------... |
return {
["drop-all-ipv6-iface-bytes"] = 106,
["drop-all-ipv6-iface-packets"] = 1,
["drop-out-by-policy-icmpv4-packets"] = 1,
["drop-ttl-zero-ipv4-bytes"] = 66,
["drop-ttl-zero-ipv4-packets"] = 1,
["hairpin-ipv4-bytes"] = 66,
["hairpin-ipv4-packets"] = 1,
["in-ipv6-bytes"] = 106,
["in-ipv6-fr... |
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: Keyboard Options Command Button Group class
--
--==========================================================================--
class "gui.keyboardoptionscommandbuttongroup" ( "gui.commandbuttongroup" )
local keyboardoptionsco... |
local path = require "minipath"
local lfs = require "lfs"
local _M = {}
local ctrlp_fpath = path.join(eelua.app_path, "_.__ctrlp__")
local cached_root
function _M.shellescape(s)
local v = string.format("%q", s)
return v:gsub([[\\]], [[\]])
end
function _M.open_doc()
io.writefile(ctrlp_fpath, "")... |
aged_lantern_bird = Creature:new {
objectName = "@mob/creature_names:aged_lantern_bird",
socialGroup = "lantern",
faction = "",
level = 27,
chanceHit = 0.36,
damageMin = 240,
damageMax = 250,
baseXp = 2730,
baseHAM = 7200,
baseHAMmax = 8800,
armor = 0,
resists = {15,155,-1,15,15,15,-1,15,-1},
meatType = "m... |
--[[
viewRotate
Description: flips a view
Parameters:
view - icon or page
progress - percentage, 1-100
tumbles - number of flips
horizontal- true=horizontal ; false=vertical
]]
return function (view, progress, tumbles, horizontal)
local pitch = 0
local yaw = 0
if horizontal then
yaw = 1
else
pitch = 1... |
--械貶する肆世壊
--Script by JoyJ
function c101110059.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101110059,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)... |
local addonName = "Storytime"
local Core = LibStub("AceAddon-3.0"):GetAddon("Storytime")
local GUI = Core:NewModule("GUI", "AceEvent-3.0")
local AceGUI = LibStub("AceGUI-3.0")
GUI.Window = nil
function GUI:OnInitialize()
self:RegisterMessage('STORY_STATUS_CHANGED', 'OnStatusChange')
end
function GU... |
-- Compiling plugin specifications to Lua for lazy-loading
local util = require 'packer.util'
local log = require 'packer.log'
local fmt = string.format
local luarocks = require 'packer.luarocks'
local config
local function cfg(_config)
config = _config.profile
end
local feature_guard = [[
if !has('nvim-0.5')
ech... |
Event.Hook("MapPostLoad", function()
if false then
TGNS.ModifyAlienMaxSpeeds(function(maxSpeed) return maxSpeed + (kCelerityAddSpeed or 1.5) end)
kStompEnergyCost = kStompEnergyCost * 2
end
end)
if Server or Client then
local Plugin = {}
local MAX_NON_CAPTAIN_PLAYERS = 14
local OnClientInitialise = functio... |
EditorStatisticsJobs = EditorStatisticsJobs or class(MissionScriptEditor)
function EditorStatisticsJobs:create_element()
self.super.create_element(self)
self._element.class = "ElementStatisticsJobs"
self._element.values.elements = {}
self._element.values.job = "four_stores"
self._element.values.state = "completed"... |
-- parse inputType specifications
local T = luajava.package 'android.text'
local function decamelify (rest)
rest = rest:gsub('(%l)(%u)',function(l,u)
return l..'_'..u
end)
return rest:upper()
end
-- known input classes. Some of these are synthetic, e.g.
-- 'date' is short for 'datetim... |
return {'teflon','tefilin','tefille'} |
return { sharp = { 6, 5, 38, 7 }, sharpp = { 6, 5, 38, 18 } } |
txd = engineLoadTXD("windsor.txd")
engineImportTXD(txd, 506)
dff = engineLoadDFF("windsor.dff", 506)
engineReplaceModel(dff, 506)
|
object_tangible_quest_gravestone = object_tangible_quest_shared_gravestone:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_gravestone, "object/tangible/quest/gravestone.iff")
|
--[[----------------------------------------------------------------------------
Application Name:
HoughTransformCircle
Summary:
Find circular holes using the Hough transform.
How to Run:
Starting this sample is possible either by running the app (F5) or
debugging (F7+F10). Setting breakpoint on the fi... |
function combsort(t)
local gapd, gap, swaps = 1.2473, #t, 0
while gap + swaps > 1 do
local k = 0
swaps = 0
if gap > 1 then gap = math.floor(gap / gapd) end
for k = 1, #t - gap do
if t[k] > t[k + gap] then
t[k], t[k + gap], swaps = t[k + gap], t[k], swaps + 1
end
end
end
r... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Ze.
--- DateTime: 2021/3/13 0:41
---
function (self, unitId, unitFrame, envTable, modTable)
--insert code here
--timeIntervals
local minute, hour, day = 60, 3600, 86400
local aboutMinute, aboutHour, aboutDay = 59.5, 60 * 59.5, 3600... |
macros = require 'macro_require'
t=require 'macrotest3' |
--[[
LuCI - Lua Configuration Interface
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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
httc://www.apache.org/licenses/LICENSE-2.0
]]--
l... |
HELP = [[
Use the AHK script with hotkey Ctrl-Windows-C.
See testitem.bat for an example of running it directly.
Output HTML goes to <input path>.html
Usage: lua TestItem.lua <build xml> <item path>
]]
local BUILD_XML = arg[1]
local INPUT_FILE = arg[2]
local OUTPUT_FILE = INPUT_FILE..".html"
local _... |
--[[
TheNexusAvenger
Runs the motorcycle on the client.
--]]
local MOTORCYCLE_MAX_SPEED = 70
local MOTORCYCLE_MIN_SPEED = 20
local MOTORCYCLE_ACCELERATION = 20
local MOTORCYCLE_DECELLERATION = 20
local MOTORCYCLE_MAX_TURN_SPEED = 5
local MOTORCYCLE_TURN_ALPHA = 0.3
local MOTORCYCLE_TURN_ALPHA_DAMPENING = 0.2
local... |
function build_scripts.env.when (fn)
return function (t)
if type(t) ~= 'table' then
fatal('Expected table!', nil, { t = be.util.sprint_r(t) })
end
return function (configured)
local func = fn
if type(func) ~= 'function' then
local err
func, err = ... |
-----------------------------------
--
-- Zone: Gusgen Mines (196)
--
-----------------------------------
local ID = require("scripts/zones/Gusgen_Mines/IDs");
require("scripts/globals/conquest");
require("scripts/globals/treasure")
require("scripts/globals/helm")
-----------------------------------
function onInitial... |
-- This is a tiny wrapper over libelf to extract load address
-- and offsets of dynamic symbols
local S = require('syscall')
local ffi = require('ffi')
ffi.cdef [[
/* Type for a 16-bit quantity. */
typedef uint16_t Elf32_Half;
typedef uint16_t Elf64_Half;
/* Types for signed and unsigned 32-bit quantities. */
typed... |
-- /sr dados limite threshold
local dados = tonumber(arg[1]);
local limite = tonumber(arg[2]);
local threshold = tonumber(arg[3]);
if dados==nil then
dados = tonumber(inputQuery("Quantidade de dados: "));
end;
if limite==nil then
limite = tonumber(inputQuery("Limite de sucessos: "));
end;
if threshold==nil then
t... |
partFrames = {
arm = {
{"<armName>", ":idle"},
{"<armName>Fullbright", ":idle"}
},
body = {
{"bodyBack", ":active"},
{"bodyFront", ":active"},
{"bodyFullbright", ":active"}
},
booster = {
{"frontBoosterBack", ":idle"},
{"frontBoosterFront", ":idle"}
},
legs = {
{"backLeg", ... |
-- Version 2 of the project generator
assert(_ACTION ~= nil, "no action (vs20**, gmake or xcode for example) provided!")
include("premake/version.lua")
local default_project_generator_version = 2
local requested_version
PROJECT_GENERATOR_VERSION, requested_version = GetRequestedProjectGeneratorVersionOrDefault(defa... |
-- Draw solar disc with center at v, radius r
function solardisc(v, r)
local z = Vec3D(0, 0, 1)
local m = v:unit()
-- ugly hack TODO: proper polygon
if m:dot(z) < 0.5 then return end
local c = dist / v[3]
love.graphics.circle("fill", c * v[1], c * v[2], c * r)
-- end ugly hack
end
|
module(..., package.seeall)
local goblin, goblinGirl
local timer1, timer2
function onCreate()
local layer = flower.Layer()
layer:setScene(scene)
layer:setSortMode(MOAILayer.SORT_PRIORITY_ASCENDING)
goblin = spine.Skeleton("goblins/goblins.json", "goblins/goblins.atlas", 0.5, -0.5)
goblin:setLaye... |
#!/bin/luajit
-- dependencies zenity, gcalcli
-- can't have both params a and t/mon/next week
-- can't have both params duration time and t/mon/next week
-- maybe add list with params
CONFIG = '/home/miro/.config/gcalcli'
function zenity()
local zenityCmd = [[ zenity --forms --title="reminder" \
--text="adding 'a' in... |
-- all reagents {{{
local SI = Alchemist.SI
local all_reagents = {
[SI.get(SI.BLESSED_THISTLE)] = {
SI.get(SI.INCREASE_WEAPON_POWER),
SI.get(SI.RAVAGE_HEALTH),
SI.get(SI.RESTORE_STAMINA),
SI.get(SI.SPEED),
},
[SI.get(SI.BLUE_ENTOLOMA)] = {
SI.get(SI.INVISI... |
local private = {}
-- item to wagon mapping
local activeWagonsMapping = {
["iron-ore"]=1, ["copper-ore"]=1, ["stone"]=1,
["wood"]=1, ["coal"]=1, ["steel-plate"]=1, ["stone-brick"]=1,
["iron-plate"]="plate", ["copper-plate"]="plate",
["water"]=1, ["crude-oil"]=1, ["petroleum-gas"]=1, ["light-oil"]=1, ["heavy-oi... |
#!/usr/bin/env lua
--- Tests for ScreenUtils.
local lu = require("luaunit")
require("common.ScreenUtils")
_G.TestScreenUtils = {}
--- Verify replace class only replaces where appropriate.
function _G.TestScreenUtils.testReplaceClass()
local html, oldClass, newClass, expected, actual
-- doesn't replace in c... |
-- Letter, Other
local make_set = require 'parse.char.utf8.make.set'
return make_set {
S = '\u{aa}\u{ba}'
.. '\u{1bb}\u{294}\u{66e}\u{66f}\u{6d5}\u{6ee}\u{6ef}\u{6ff}\u{710}\u{7b1}'
.. '\u{93d}\u{950}\u{98f}\u{990}\u{9b2}\u{9bd}\u{9ce}\u{9dc}\u{9dd}\u{9f0}'
.. '\u{9f1}\u{a0f}\u{a10}\u{a32}\u{a33}\u{a35}\u{a36}\... |
--[[
Unit tests for the signal handling module of the Lua/APR binding.
Author: Peter Odding <peter@peterodding.com>
Last Change: July 3, 2011
Homepage: http://peterodding.com/code/lua/apr/
License: MIT
I wanted to write this test as follows: Start a child process that listens for
SIGKILL and/or SIGQUIT, kill ... |
--install file
print('Install') |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, magicLevel)
level = m... |
package.path = package.path .. ";/home/ruin/build/elona-next/src/?.lua"
local raw = require("tools.layout.chip")
local images = {}
for i, v in ipairs(raw.area) do
local id = math.floor(v.x / 48) + (math.floor(v.y / 48) * 33)
images[id] = "\"elona." .. string.gsub(v.output, ".*/([^/]*)%.png$", "%1") .. "\""
end
... |
local Model, enum
do
local _obj_0 = require("lapis.db.mysql.model")
Model, enum = _obj_0.Model, _obj_0.enum
end
local types, create_table
do
local _obj_0 = require("lapis.db.mysql.schema")
types, create_table = _obj_0.types, _obj_0.create_table
end
local drop_tables, truncate_tables
do
local _obj_0 = require(... |
return [[
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for {{filename}}</title>
<meta charset="utf-8" />
<style>{{{css}}}</style>
</head>
<body>
<div class='wrapper'>
<div>
<h1>
<a href="{{{link.root}}}">All files</a> /
<a href="... |
--====================================================================--
-- dmc_wamp/exception.lua
--
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_wamp.lua
--====================================================================--
--[[
Copyright (C) 2014 David McCuskey. All R... |
local typedefs = require "kong.db.schema.typedefs"
return {
name = "<apig-response-transform>",
fields = {
{
-- this plugin will only be applied to Services or Routes
consumer = typedefs.no_consumer
},
{
-- this plugin will only be executed on the firs... |
--[[Notice:This lua config file is auto generate by Xls2Lua Tools,don't modify it manually! --]]
local fieldIdx = {}
fieldIdx.id = 1
fieldIdx.name = 2
fieldIdx.type = 3
fieldIdx.path = 4
local data = {
{1,[[零]],1,[[Arts/Plane/Prefabs/Enemy_straight_projectile.prefab]]},
{2,[[一]],1,""},
{3,[[二]],1,""},
{4,[[三]],1,""},
{... |
local ComponentConstructor = require"source/core/ec/component_constructor"
return ComponentConstructor("SandboxObjectComponent",{
make = function(self,component,depth,is_process,is_display)
component.depth = depth or 0 --更新以及绘制顺序
component.is_display = is_display or true --是否进行绘制
component.... |
print("Hello Server!")
-- The game this is intended for has default scripts disabled,
-- however: we want to load some core server code anyway
require("tevgit:core/server/debug.lua")
require("tevgit:core/server/chat.lua")
workspace:destroyChildren()
local mainLight = engine.construct("light", workspace, {
name... |
-- Copyright (C) 2021 DBotThePony
-- 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, di... |
object_tangible_loot_creature_loot_collections_meatlump_code_word_01 = object_tangible_loot_creature_loot_collections_shared_meatlump_code_word_01:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_code_word_01, "object/tangible/loot/creature/loot/collections/meatlump_code_wor... |
local lfs = require "lfs"
local DebugLogger = require "lil.DebugLogger"
local FileUtils = require "lil.FileUtils"
local NativeOsUtils = require "lil.NativeOsUtils"
local OsFacts = require "lil.OsFacts"
local StringUtils = require "lil.StringUtils"
local directoryExists = function(directoryPath)
local directoryPat... |
local Proxy = module("vrp", "lib/Proxy")
local vRP = Proxy.getInterface("vRP")
-- register "vrp_mysql" DB driver
local tasks = {}
AddEventHandler("vRP:MySQL_task", function(task_id, data)
-- print("vRP:MySQL_task "..task_id)
local cb = tasks[task_id]
if data.status == 1 then
if cb then
if data.mode =... |
return
{a=111,b=222,} |
local brute = require "brute"
local creds = require "creds"
local math = require "math"
local shortport = require "shortport"
local sip = require "sip"
local stdnse = require "stdnse"
description = [[
Performs brute force password auditing against Session Initiation Protocol (SIP - http://en.wikipedia.org/wiki/Session... |
#!/usr/bin/env lua
local api = require 'moonwalk/api'
api:load_class 'moonwalk/resources'
api:load_class 'user'
api:handle_request(...)
|
ESX = nil
CreateThread(function()
while ESX == nil do TriggerEvent(ChristmasConfig.getESX, function(lib) ESX = lib end)
Wait(10)
end
end)
Keys.Register(ChristmasConfig.commands.keyOpen, ChristmasConfig.commands.commandName, ChristmasConfig.messages["command_description"], function()
if not isMenuOp... |
function start (song)
sway = false
end
function update (elapsed)
local currentBeat = (songPos / 1000)*(bpm/60)
if sway then
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 25 * math.sin((currentBeat + i*0.5)), i)
setActorY(_G['defaultStrum'..i..'Y'] + 5 * math.cos((currentBeat + i*0.5)) + 10, i)
end... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
ui_page 'hack.html'
client_scripts {
'mhacking.lua',
'sequentialhack.lua',
'datacrack.lua'
}
files {
'phone.png',
'snd/beep.ogg',
'snd/correct.ogg',
'snd/fail.ogg',
'snd/start.ogg',
'snd/finish.ogg',
'snd/wrong.ogg',
'hack.html'
... |
local Rocs = require(script.Parent.Rocs)
Rocs:registerLayer({
name = "Red";
tag = "Red";
pipelineCheck = {"BasePart"};
components = {
Replicated = {
players = {};
};
};
defaults = {
color = "Really red"
};
randomize = function(self)
self:set("color", BrickColor.random().Name)
end;
})
|
local _, Addon = ...
Addon:AddOptionsPanelOptions(
"profiles",
_G.LibStub("AceDBOptions-3.0"):GetOptionsTable(Addon:GetParent().db, true)
) |
local http = {}
--- Send a HTTP POST request to the given URL
-- @param url The destination URL
-- @param data nil or http.data() object with POST data added
-- @param headers nil or http.data() object with request headers added
--
function http.post(url, data, headers)
return _G["Http"].post(url, data, headers)
e... |
local resty_cookie = require("resty.cookie")
local ngx = ngx
local M = {}
require("foxcaves.module_helper").setmodenv()
function M.get_instance()
if ngx.ctx.__cookies then
return ngx.ctx.__cookies
end
local cookies = resty_cookie:new({
path = "/",
httponly = true,
secure ... |
-- Stand Power Hermit Purple
local s, id = GetID()
function s.initial_effect(c)
-- You can only control 1 "${SP} Hermit Purple.
c:SetUniqueOnField(1, 0, id)
-- Can only be equipped to a "${SU} Joseph Joestar" you control.
aux.AddEquipProcedure(c, 0, aux.FilterBoolFunction(Card.IsCode, 1090076084))
-- Destro... |
--Include NXboard
require "NXboard"
function love.load()
--Initialise the keyboard into memory (I've given it the name KB)
KB = NXboard
KB:new()
end
function love.update(dt)
--Update needs to be passed delta time
KB:update(dt)
end
function love.draw()
--You code goes here ^ (above... |
vim.g.mapleader = ","
vim.b.mapleader = ","
require("rods/globals")
require("rods/funcs")
require("rods/packer")
require("rods/options")
require("rods/mappings")
require("rods/autocmds")
-- vim.lsp.set_log_level("debug")
-- :lua vim.cmd('e'..vim.lsp.get_log_path())
|
local teamPlayerBtnList = {}
function teamPlayerBtnList:Start(data)
self:initData(data)
self:initUi()
end
function teamPlayerBtnList:initData(data)
self.pid = data.pid
self.teamInfo = module.TeamModule.GetTeamInfo()
end
function teamPlayerBtnList:initTop()
utils.IconFrameHelper.Create(self.view.b... |
feral_force_wielder = Creature:new {
objectName = "@mob/creature_names:feral_force_wilder",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "force",
faction = "",
level = 115,
chanceHit = 1,
damageMin = 820,
damageMax = 1350,
baseXp = 10921,
baseHAM = 24000,
baseHAMmax = 30000,
armor = 1... |
return {
["comment"]="% generated by mtxrun --script pattern --convert",
["exceptions"]={
["n"]=0,
},
["metadata"]={
["mnemonic"]="eu",
["source"]="hyph-eu",
["texcomment"]="% copyright: Copyright (c) Juan M. Aguirregabiria 1997, 2008\
% title: Hyphenation patterns for Basque.\
% version: June 2008\
% notic... |
--
-- Provides ability to play and stop a given sound effect.
--
-- @copyright 2015 Upstart Illustration LLC. All rights reserved.
--
local Sound = Class()
local engine = cc.SimpleAudioEngine:getInstance()
function Sound.new(self)
local isOn = true
function self.SetOn(on)
isOn = on
end
func... |
AddCSLuaFile()
ENT.Type = "anim"
ENT.PrintName = "Cassette Player"
ENT.Category = "Helix"
ENT.Spawnable = true
ENT.AdminOnly = true
if (SERVER) then
function ENT:Initialize()
self:SetModel("models/lostsignalproject/items/misc/radio.mdl")
self:SetSolid(SOLID_VPHYSICS)
self:PhysicsInit(SOLID_VPHYSICS)
self:Set... |
local Video =
{
Name = "Video",
Type = "System",
Namespace = "C_VideoOptions",
Functions =
{
{
Name = "GetGxAdapterInfo",
Type = "Function",
Returns =
{
{ Name = "adapters", Type = "table", InnerType = "GxAdapterInfoDetails", Nilable = false },
},
},
},
Events =
{
{
Name = "Adapte... |
local VecLib = require('__shared/VecLib')
class("BotVehicleController")
function BotVehicleController:__init()
self.yaw = 0.0
self.momentum = 0.0
self.deltaTime = 0.0
self.reversing = false
self.moving = true
self.old_momentum = 0.0
self.old_yaw = 0.0
-- config
self.intensity = 2.0
... |
object_static_particle_particle_rain_machine_light = object_static_particle_shared_particle_rain_machine_light:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_rain_machine_light, "object/static/particle/particle_rain_machine_light.iff")
|
object_ship_nova_orion_boss_ship_tier4 = object_ship_shared_nova_orion_boss_ship_tier4:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_boss_ship_tier4, "object/ship/nova_orion_boss_ship_tier4.iff")
|
do
local function f(...)
print(...)
end
f(1, 2)
--> =1 2
local function f(...)
local a, b, c = ..., ...
print(a, b, c)
end
f(1, 2, 3)
--> =1 1 2
f(1)
--> =1 1 nil
f()
--> =nil nil nil
end
do
local function c(t)
print(table.concat(t,... |
ActivityBtn = Inherit(NZLuaSimpleViewClass)
ActivityBtn.BpClassPath = "WidgetBlueprint'/Game/UI/UIBP/FrontEnd/ActivityUI/ActivityBtn.ActivityBtn_C'"
function ActivityBtn:Ctor(TabType, ActivityDesc)
self.OnClicked = self:Wnd("Btn").OnClicked
self.TabType = TabType
self.m_ActivityDesc = ActivityDesc
end
function Act... |
object_mobile_nova_orion_employee_03 = object_mobile_shared_nova_orion_employee_03:new {
}
ObjectTemplates:addTemplate(object_mobile_nova_orion_employee_03, "object/mobile/nova_orion_employee_03.iff")
|
local song = require('food-chain')
describe('food-hain', function ()
it('fly', function ()
local expected = "I know an old lady who swallowed a fly.\nI don't know why she swallowed the fly. Perhaps she'll die.\n"
assert.are.equal(expected, song.verse(1))
end)
it('spider', function ()
local expected... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
actions = require "game.rules.world.actions",
orientation = require "game.rules.world.orientation",
position = require "game.rules.world.position",
selectors = r... |
function update_salary(rec, offset)
rec['salary'] = rec['salary'] + offset
aerospike:update(rec)
end
|
-----------------------------------
-- Area: Eastern Altepa Desert
-- NM: Sabotender Corrido
-----------------------------------
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/mobs")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(tpz.mobMod.ADD_EFFECT, ... |
local Io = {}
Io.Listener = require "socket-io.listener"
listen = function(server, options)
return Listener(server, options)
end
return listen |
require("vis")
require("plugins/vis-title")
require("plugins/vis-cursors")
vis.events.subscribe(vis.events.INIT, function()
vis:command("set ai")
vis:command("set ic")
vis:command("set theme plain-256")
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
vis:command("set cul")
vis:command("set nu")
vis... |
function printEnum(name)
print('------------------------------------------------')
print(' '.. name)
print('------------------------------------------------')
enum = ll[name]
for k, v in pairs(enum) do
print(string.format('%40s - %s', k, v))
end
print('-------------------... |
local window_width, window_height = love.window.getMode()
local background = {}
-- Going for a sunset look
background.colors = {
{0.21, 0.36, 0.49, 1},
{0.42, 0.36, 0.48, 1},
{0.75, 0.42, 0.52, 1},
{0.96, 0.45, 0.50, 1},
{0.97, 0.69, 0.58, 1}
}
background.draw = function(self)
local number_of_colors = #s... |
object_ship_player_player_gunship_rebel = object_ship_player_shared_player_gunship_rebel:new {
}
ObjectTemplates:addTemplate(object_ship_player_player_gunship_rebel, "object/ship/player/player_gunship_rebel.iff")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.