content stringlengths 5 1.05M |
|---|
local cjson = require("cjson")
local ftcsv = require('ftcsv')
local function loadFile(textFile)
local file = io.open(textFile, "r")
if not file then error("File not found at " .. textFile) end
local allLines = file:read("*all")
file:close()
return allLines
end
local files = {
"bom-os9",
"comma_i... |
-----------------------------------------
-- ID: 4568
-- Item: moon_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 3
-- Magic 3
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
... |
return { version = "1.1", luaversion = "5.1", orientation = "isometric", width = 20, height = 20, tilewidth = 32, tileheight = 16, properties = {}, tilesets = { { name = "main", firstgid = 1, filename = "../../assets/main_tileset.tsx", tiles = {} } }, layers = { { type = "tilelayer", name = "floor", x = 0, y = 0, width... |
--[[ Copyright (c) 2021 npc_strider, ickputzdirwech
* Original mod by npc_strider.
* For direct use of code or graphics, credit is appreciated and encouraged. See LICENSE.txt for more information.
* This mod may contain modified code sourced from base/core Factorio.
* This mod has been modified by ickputzdirwech.
]... |
local dir = io.popen('ls test')
while true do
local file = dir:read()
if not file then break end
file = ('test/' .. file)
if file:find('%.lua$') then
print('----------- test: '..file)
local ok, r = pcall(os.execute, "luajit launch.lua "..file)
if ok and r then
if r ~= 0 then
print('test fails:' .. file... |
local ModuleNewFeature = [[|TInterface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon:0:0:0:0|t]] -- Used for newly implemented features.
local _G = _G
_G.KkthnxUIConfig["enUS"] = {
-- Menu Groups Display Names
["GroupNames"] = {
-- Let's Keep This In Alphabetical Order, Shall We?
["ActionBar"] = "Action Bar",
[... |
if (global.BouncePadList == nil) then
global.BouncePadList = {}
end
for each, surfacez in pairs(game.surfaces) do
for every, thing in pairs(surfacez.find_entities()) do
if (string.find(thing.name, "BouncePlate") and not string.find(thing.name, "Train")) then
global.BouncePadList[thing.unit_number] = {e... |
function vspace()
tex.print("\\vspace{1em}")
end
function bsprint(txt)
tex.print(txt.."\\\\")
end
--[[Load data into variables to simplify code afterwards]]
local title = metadata["title"]
local cfu = metadata["cfu"]
local year = metadata["year"]
local degree = metadata["degree"]
local university = metadata["univ... |
--[[
s:UI Buffs/Debuffs
TODO: Buff Tooltips, Buff Canceling
Martin Karer / Sezz, 2014
http://www.sezz.at
--]]
local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI");
local M = S:CreateSubmodule("Buffs", "Gemini:Hook-1.0");
local log, GeminiGUI, Auras, AuraControl;
-- Lua AP... |
local json = require "json"
local luafile = io.open("benchdata/simpledata.json", "rb")
local text = luafile:read("*all")
luafile:close()
function run_iter(n)
for n=1, n do
json.decode(text)
end
end |
function DKPConfigFunc()
local ADDON_TITLE
if GetLocale()=='zhCN' then
ADDON_TITLE = "团队记录"
GDKP_ADDON_TITLE = "使用大脚金团助手"
elseif GetLocale()=='zhTW' then
ADDON_TITLE = "团队記錄"
GDKP_ADDON_TITLE = "使用大腳金團助手"
else
ADDON_TITLE = "Raid Records"
GDKP_ADDON_TITLE = "Use GDKP"
end
if IsConfigur... |
-- Copyright 2014 Aedan Renner <chipdankly@gmail.com
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local dsp = require "luci.dispatcher"
local uci = require "uci"
local m, mwan_interface, enabled, track_method, reliability, interval
local down, up,... |
Screen = {
w = 1200,
h = 700
}
Sounds = {
hit = love.audio.newSource("sounds/hit.wav", "static"),
fail = love.audio.newSource("sounds/fail.wav", "static"),
point = love.audio.newSource("sounds/point.wav", "static"),
swoosh = love.audio.newSource("sounds/swoosh.wav", "static"),
wing = love.a... |
Locales['fr'] = {
['properties'] = 'propriétés',
['property'] = 'propriété',
['clients'] = 'clients',
['remove_comp_money'] = 'retirer argent société',
['dep_money'] = 'déposer argent',
['wash_money'] = 'blanchir argent',
['realtor'] = 'Agent Immobilier',
['amount_withdraw'] = 'montant du retrait',
['... |
local utils = require "typesystem_utils"
local llvm_version = require "llvm_version"
if llvm_version < 10 or llvm_version > 14 then
error( "LLVM version " .. llvm_version .. " not supported by the examples")
end
local llvmir = {}
llvmir.scalar = require "language1/llvmir_scalar"
local pointerTemplate = {
def_local ... |
local lpeg = require "lpeg"
local util = require "digestif.util"
local Manuscript = require "digestif.Manuscript"
local Parser = require "digestif.Parser"
local ManuscriptPlain = util.class(Manuscript)
local P, R = lpeg.P, lpeg.R
local C, Ct, Cc, Cg = lpeg.C, lpeg.Ct, lpeg.Cc, lpeg.Cg
-- In plain TeX, we can't distin... |
return {
__important = true,
__log_level = 2,
__trace = 3,
__info = 2,
__warn = 1,
__sink = require("deepcore/log/sinks/file"),
log_level = function(self) return self.__log_level end,
with_sink = function(self, sink)
if type(sink) == "table" then
self.__sink = sink
... |
module("L_VeraAlexa1", package.seeall)
local _PLUGIN_NAME = "VeraAlexa"
local _PLUGIN_VERSION = "0.2.3"
local debugMode = false
local openLuup = false
local taskHandle = -1
local TASK_ERROR = 2
local TASK_ERROR_PERM = -2
local TASK_SUCCESS = 4
local TASK_BUSY = 1
local masterID = -1
-- SIDs
local MYSID ... |
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system(
{
"git",
"clone",
"https://github.com/wbthomason/packer.nvim",
instal... |
UIButton = extends(UIWidget)
function UIButton.create()
local button = UIButton.internalCreate()
button:setFocusable(false)
return button
end
|
local kWhipAttackScanInterval = 0.33
local kSlapAfterBombardTimeout = Shared.GetAnimationLength(Whip.kModelName, "attack")
local kBombardAfterBombardTimeout = Shared.GetAnimationLength(Whip.kModelName, "bombard")
-- Delay between the animation start and the "hit" tagName. Values here are hardcoded and
-- will be repla... |
local player_meta = FindMetaTable('Player')
player_meta.old_get_ragdoll = player_meta.old_get_ragdoll or player_meta.get_ragdoll_entity
function player_meta:get_ragdoll_entity()
return self:GetDTEntity(ENT_RAGDOLL)
end
function player_meta:set_ragdoll_entity(entity)
self:SetDTEntity(ENT_RAGDOLL, entity)
end
fun... |
include "util.lua"
-- CLI options
newoption {
trigger = "build",
value = "Build type",
description = "Choose which configuration to use",
allowed = {
{ "debug", "Debug" },
{ "release", "Release" }
}
}
local ROOT_PATH = ".."
if _ACTION == nil then
error ("No action provided, see https://github.com/premake/... |
require('tests.bootstrap')(assert)
describe('collectors', function()
local collectors
setup(function()
collectors = require 'nginx-metrix.collectors';
end)
teardown(function()
package.loaded['nginx-metrix.collectors'] = nil
end)
after_each(function()
collectors.__private__.collectors({})
... |
-- Copyright 2016 krunkathos
--
-- 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 t... |
--[[
TheNexusAvenger
Controls hiding dungeons and teleporting the local player.
--]]
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Projec... |
local ui = script.Parent.Parent
local Client = ui.Parent
local Roact = require(game.ReplicatedStorage.Roact)
local SoundManager = require(Client.SoundManager)
local NextPromptButton = Roact.Component:extend("NextPromptButton")
function NextPromptButton:init()
end
function NextPromptButton:render()
local... |
X = require "ComLink"
printtab = function(t,h,p)
if not p then p = "--" end
if h then print(h) end
local s = ""
for k,v in t do
s = p .. tostring(k)
if v ~= true then
if type(v) == "string" then
s = s .. [[="]] .. v .. [["]]
else
s = s .. "=" .. tostring(v)
end
en... |
return Def.Sprite {
Texture = "caution",
InitCommand = function(self)
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y)
end
}
|
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
PLUGIN.name = "Framework edits";
PLUGIN.description = "Various miscellaneous framework edits placed into a plugin.";
PLUGIN.author = "TERRANOVA";
ix.util.Include("sv_hooks.lua")
ix.util.Include("cl_hooks.lua")
ix.util... |
---@class mx.ndarray.op:mx.ndarray.gen_op
local M = {}
M.CachedOp = require('mx.ndarray._internal').CachedOp
return M
|
local t = Def.ActorFrame{}
local screen = Var "LoadingScreen"
if screen ~= "ScreenSongOptions" then
for _, pn in pairs(GAMESTATE:GetEnabledPlayers()) do
t[#t+1] = loadfile( THEME:GetPathB("ScreenPlayerOptions","overlay/modicons") )(pn)..{
InitCommand=function(s) s:draworder(100) end,
}
end;
end
t[#t+1] = LoadA... |
local flux = require 'lib.flux'
local mt = {}
mt.__index = mt
function mt:setState(key)
flux.to(self, 1, {
alpha = 0
}):oncomplete(function()
self.current_state = key
self.states[self.current_state]:load()
flux.to(self, 1, {
alpha = 1
}):oncomplete(function(... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
-- #######################################
-- ## Project: iL... |
local type, pairs, error = type, pairs, error
local setmetatable = setmetatable
local _ENV = nil
local Set = {}
Set.__index = Set
local function assertSet(v)
if not (v and type(v) == "table" and v.union) then
error("TypeError: Argument is not a Set", 3)
end
end
function Set:union(other)
assertSet(... |
fs = require 'bee.filesystem'
local check_lni_mark = require 'share.check_lni_mark'
local base = require 'backend.base_path'
return function ()
local path
local cur = base
while true do
if fs.exists(cur / '.w3x') then
if check_lni_mark(io.load(cur / '.w3x')) then
... |
require("nvim-treesitter.configs").setup {
ensure_installed = "maintained",
refactor = {
highlight = { enable = true },
highlight_definitions = { enable = true },
indent = { enable = true },
smart_rename = { enable = true, keymaps = { smart_rename = "grr" } },
},
}
|
-- Parsing functions
lastChunkSize={}
--definition semantics
function genCorrespondences(x, y) -- given a pair of arg lists, produce correspondences between them
local ret, i, j, k, l
ret={{}, {}, {}}
local max=#x
if(#y>max) then max=#y end
for i=1,max do
if(i<=#x) then ret[1][i]=i end
if(i<=#y) then ret[2][i... |
--[=[
Handles spawning stuff in the game
@class SpawnService
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local RandomUtils = require("RandomUtils")
local Maid = require("Maid")
local UPDATE_PERIOD_SEC = 5
local SPAWN_AFTER_GAME_START = 1
local MA... |
AddCSLuaFile()
--DEFINE_BASECLASS( "nixbot_base" )
ENT.Base = "nixbot_base"
ENT.Spawnable = true
ENT.Model = Model( "models/breen.mdl" )
ENT.Options = {
Weapon = {
Class = "weapon_xm1014",
Attachement = "anim_attachment_RH",
BannedHoldtypes = { ["pistol"] = true }
},
Combat = {
BaseA... |
local starlib = require('starlib')
function class(fn)
for i = 1, 3 do
print('class. getinfo', i, debug.dump(debug.getinfo(i)))
end
for i = 1, 3 do
print('class. getupvalue', i, debug.getupvalue(class, i))
end
for i = 1, 3 do
print('fn. getupvalue', i, debug.g... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('torchizm:getCars', function(source, cb, target)
local identifier = GetPlayerIdentifiers(source)[1]
MySQL.Async.fetchAll("SELECT * FROM owned_vehicles WHERE owner = @identifier", {
['@identifier'] = identifier
... |
PlayerIdleState = Class{__includes = EntityIdleState}
function PlayerIdleState:update(dt)
if love.keyboard.isDown('left') then
self.entity.direction = 'left'
self.entity:changeState('walk')
elseif love.keyboard.isDown('right') then
self.entity.direction = 'right'
self.entity:cha... |
PLAYER = game.Players.LocalPlayer
MOUSE = PLAYER:GetMouse()
CC = game.Workspace.CurrentCamera
ENABLED = true
ESP_ENABLED = true
_G.FREE_FOR_ALL = true
_G.BIND = 'y'
_G.ESP_BIND = 't'
_G.CHANGE_AIM = 'q'
_G.AIM_AT = 'Head'
wait(1)
function GetNearestPlayerToMouse()
Zombies = {}
local... |
-- https://gist.github.com/folke/fe5d28423ea5380929c3f7ce674c41d8
local library = {}
local runtime_path = vim.split(package.path, ";")
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua")
local function add(lib)
for _, p in pairs(vim.fn.expand(lib, false, true)) do
p = vim.loop.... |
-- This is plugin 2
function run(input)
end
|
workspace "Paper"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir["GLFW"] = "Paper/vendor/GLFW/include"
IncludeDir["Glad"] = "Paper... |
require "lang.Signal"
require "specs.Cocos2d-x"
require "Logger"
Log.setLevel(LogLevel.Warning)
local shim = require("shim.System")
local AdStylizer = require("royal.AdStylizer")
local AdConfig = require("royal.AdConfig")
local AdVendor = require("royal.AdVendor")
local AdUnit = require("royal.AdUnit")
local AdManife... |
-----------------------------------------------------------
-- symbols-outline configuration file
-----------------------------------------------------------
-- Plugin: symbols-outline.nvim
-- https://github.com/simrat39/symbols-outline.nvim
vim.g.symbols_outline = {
relative_width = true,
width = 50,
aut... |
---------------------------------------------------------------------------
-- A clock widget that is decorated by a user provided functor
--
-- @usage
-- local funkyclock = require("path.to.funkyclock")
--
-- clock = funkyclock(function(aYear, aMonth, aDay, aWeekday, aHour, aMinute)
-- WEEKDAY = {
-- ["1"] = "月",
... |
include("shared.lua")
ENT.thirdPerson = {
distance = 400
}
|
--
-- getopt(":a:b", ...) -- works just like getopt(3).
--
-- Send bug reports to william@25thandClement.com.
--
local function getopt(optstring, ...)
local opts = { }
local args = { ... }
for optc, optv in optstring:gmatch"(%a)(:?)" do
opts[optc] = { hasarg = optv == ":" }
end
return coroutine.wrap(function()... |
AddCSLuaFile();
ENT.Base = "base_anim";
ENT.Type = "anim";
ENT.PrintName = "";
ENT.Author = "";
ENT.Contact = "";
ENT.Purpose = "";
ENT.Instructions = "";
ENT.Spawnable = false;
ENT.AdminSpawnable = false;
function ENT:PostEntityPaste( ply, ent, tab )
GAMEMODE:LogSecurity( ply:SteamID(), "n/a", ply:Vis... |
local ESX = nil
Citizen.CreateThread(function ()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
Citizen.Wait(5)
end
end)
RegisterNetEvent('FoRa:hellobro')
AddEventHandler('FoRa:hellobro', function()
local _source = sou... |
AddCSLuaFile()
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.Base = "voxel_proj_base"
ENT.Author = "TankNut"
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.AutomaticFrameAdvance = true
ENT.Velocity = 2794
ENT.UseGravity = false
ENT.TurnRate = 15
function ENT:SetupDataTables()
se... |
--************************
--name : SINGLE_AG_TS_02.lua
--ver : 0.1
--author : Kintama
--date : 2004/09/08
--lang : en
--desc : terminal mission
--npc :
--************************
--changelog:
--2004/09/08(0.1): Added description
--************************
function DIALOG()
NODE(0)
G... |
MenuTargetType =
{
One = "One",
All = "All",
}
MenuTargetState = {}
MenuTargetState.__index = MenuTargetState
function MenuTargetState:Create(params)
print(params.selector)
params = params or {}
local this =
{
mStack = params.stack,
mStateMachine = params.stateMachine,
... |
stuff={"Money"}--stuff that shows up in the leaderboard
start={10}--the ammount of cash, or whatever that thet start with
function Enter(plr)--the function that we call
local stats=Instance.new("IntValue")--the leaderboard
stats.Name="leaderstats"--name it
for i=1,#stuff do --loop
local gold=Instanc... |
local dap = require("dap")
local map = require"settings.utils".map
vim.g.dap_virtual_text = true
dap.adapters.node2 = {
type = "executable",
command = "node",
args = {os.getenv("HOME") .. "/repos/vscode-node-debug2/out/src/nodeDebug.js"}
}
dap.configurations.javascript = {
{
type = "node2",
request =... |
-----------------------------------
-- Area: Western Altepa Desert
-- NM: Calchas
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onMobInitialize(mob)
mob:setMod(tpz.mod.TRIPLE_ATTACK, 33)
end
function onMobDeath(mob, player, isKiller)
end
|
local register_node = minetest.register_node
--this is a wrapper for the build in Minetest library, can be used to optimize nodes, now called tiles since game is mostly 2D in nature
function register_tile(def)
local paramtype
local param2
local drawtype
local tiles
local node_box
local sunlight... |
-- Vyrazy :)))
function main()
write(5+2,"\n"); -- 99
write(3*3,"\n"); -- 9
write(5+9*5+3*4,"\n"); -- 62
write(5+9*(5+3)*4,"\n"); -- 293
write(4*6/2+8*(14/7)+19*2,"\n"); -- 66
write(9-5/5+1,"\n"); -- 9
end;
|
local frame_num = 0
local load_done_frame_num = 0
local function process_frame()
frame_num = frame_num + 1
if frame_num == 1 then
emu.keypost('CLOAD\n')
manager.machine.cassettes[":cassette"]:play()
end
if frame_num > 150 then
if load_done_frame_num ... |
--[[
Copyright (c) 2011-2014 chukong-inc.com
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, dis... |
local ffi = require 'ffi'
local qconsts = require 'Q/UTILS/lua/qconsts'
local qcfg = require 'Q/UTILS/lua/qcfg'
local cutils = require 'libcutils'
local cmem = require 'libcmem'
local Scalar = require 'libsclr'
local cVector = require 'libvctr'
local to_scalar = require 'Q/UTILS/lua/to_sc... |
SILE.settings = {
state = {},
declarations = {},
stateQueue = {},
defaults = {},
pushState = function()
table.insert(SILE.settings.stateQueue, SILE.settings.state)
SILE.settings.state = pl.tablex.copy(SILE.settings.state)
end,
popState = function()
SILE.settings.state = table.remove(SILE.setti... |
local net = require 'service.net'
local timer = require 'timer'
local config = require 'config'
local client = require 'client'
local nonil = require 'without-check-nil'
local util = require 'utility'
local platform = require 'bee.platform'
local proto = require 'proto.proto'
local lang = requ... |
function love.load()
require "class"
require "Ray"
require "Segment"
-- Window setup
WindowRes = {x = 1280, y = 720}
love.window.setMode(WindowRes.x, WindowRes.y, {vsync=false})
-- Segments
segments = {
-- Border
Segment:new(0, 0, WindowRes.x, 0), Segment:new(WindowRes.x, 0, WindowRes.... |
local K, C = unpack(select(2, ...))
local Module = K:GetModule("Skins")
local function SkinContribution()
if C["Tooltip"].Enable then
-- Reward Tooltip
ContributionBuffTooltip:StripTextures()
ContributionBuffTooltip:CreateBorder()
ContributionBuffTooltip:CreateBackdrop()
ContributionBuffTooltip:StyleButton(... |
local BUILDER, PART = pac.PartTemplate("base")
PART.ClassName = "submaterial"
PART.Icon = 'icon16/picture_edit.png'
PART.Group = {'model', 'entity'}
local function get_owner(self)
if self.RootOwner then
return self:GetRootPart():GetOwner()
end
return self:GetOwner()
end
BUILDER:StartStorableVars()
BUILDER:Ge... |
local API_RE = require(script:GetCustomProperty("APIReliableEvents"))
local PROGRESS_BAR = script:GetCustomProperty("ProgressBar"):WaitForObject()
local LEVELUP_BLINKER = script:GetCustomProperty("LevelUpBlinker"):WaitForObject()
local HOVER_BUTTON = script:GetCustomProperty("HoverButton"):WaitForObject()
local S... |
-- This is the SMB1 Movement Optimization Bot for use in FCEUX
-- You must start running the bot from the savestate that the bot is supposed to start each attempt at
-- Not all movements can be effectively optimized by this bot, only the movements with an effective isBetter function (see below)
-- Further optimizati... |
vim.g.indentLine_enabled = 1
vim.g.indentLine_color_gui = '#878787'
vim.g.indentLine_char = '¦'
vim.cmd 'autocmd FileType defx :IndentLinesToggle'
|
return {
type = 'color',
nblocks = 6,
blocks = {
-- ordered --
{212, 6, 6},
{238,156, 0},
{227,255, 0},
{6 ,191, 0},
{0, 52,304},
{306,100,408},
}
}
|
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/props/cs_assault/money.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:PhysWake()
self:SetUseType(SIMPLE_USE)
self:SetTrigge... |
base64 = {
__version = '0.3',
encrypt = function(s)
local byte = string.byte;
local k = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
local a, b, i, e = {}, {};
i = (-#s) % 3;
s, e = s .. string.rep('\x00', i), string.rep('=', i)
for i = 1, #s, 3 do
local c1, c2, c3, n = byte(s, ... |
IndoorsGameState = require "src.gamestates.Interior.IndoorsGameState"
local M = setmetatable({}, { __index = IndoorsGameState })
M.__index = M
-- TODO: viv
function M.new(gamestate)
local self = setmetatable(IndoorsGameState.new(gamestate, 'PostOffice', gamestate.images.places.post_office), M)
self:addWo... |
--[[
Name: "sh_melon.lua".
Product: "HL2 RP".
--]]
local ITEM = {};
-- Set some information.
ITEM.name = "Melon";
ITEM.cost = 10;
ITEM.model = "models/props_junk/watermelon01.mdl";
ITEM.weight = 1;
ITEM.access = "v";
ITEM.useText = "Eat";
ITEM.classes = {CLASS_CPA};
ITEM.category = "Consumables"
ITEM.business = true;... |
local cjson = require "cjson"
local iteration = require "kong.db.iteration"
local utils = require "kong.tools.utils"
local defaults = require "kong.db.strategies.connector".defaults
local hooks = require "kong.hooks"
local workspaces = require "kong.workspaces"
local setmetatable = setmetatable
local tostring = t... |
-- BRDLib.lua
-- Author: Be1eriand
-- DateCreated: 07/12/2015
--------------------------------------------------------------
include("BRDLogger");
logger = LoggerType:new();
logger:setLevel(INFO);
logger:debug("Processing BRDLib");
function BRDModID()
return "Battle Royale Big Data Mod";
end;
function BRDModVersio... |
ITEM.name = "Rodent Shishkebab"
ITEM.description = "A meal made from a rodent, cooked in the zone."
ITEM.longdesc = "A skewer of cooked, cubed Tushkano on a spit. The meat is tough and sinewy with a slightly sour taste, practically begging to be washed down with a swig of vodka or a can of beer."
ITEM.model = "models/l... |
-- static spawn point
local spawn_pos = { x=0, y=0, z=0 }
-- check every few seconds if the player belongs to the current position
-- if not, teleport them back to spawn
local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer + dtime
-- every 10 seconds
if timer < 10 then return end
timer = 0
... |
EFFECT.Sounds = {}
EFFECT.Pitch = 90
EFFECT.Scale = 1.5
EFFECT.PhysScale = 1
EFFECT.Model = "models/shells/shell_57.mdl"
EFFECT.Material = nil
EFFECT.JustOnce = true
EFFECT.AlreadyPlayedSound = false
EFFECT.ShellTime = 1
EFFECT.SpawnTime = 0
function EFFECT:Init(data)
local att = data:GetAttachment()
local ... |
local function MuteVoice(ply, cmd, args)
if not args[1] then return false end
local targets = FAdmin.FindPlayer(args[1])
if not targets or #targets == 1 and not IsValid(targets[1]) then
FAdmin.Messages.SendMessage(ply, 1, "Player not found")
return false
end
local time = tonumber(a... |
-- ***************************************************************************
-- Bitmaps Test
--
-- This script executes the bitmap features of u8glib to test their Lua
-- integration.
--
-- Note: It is prepared for SSD1306-based displays. Select your connectivity
-- type by calling either init_i2c_display() or ... |
local Components = require "moonpie.ui.components"
local GameScreen = require "game.ui.game.game_screen"
local App = require "game.app"
local Game = Components("game", function()
return {
id = "gameScreen",
Components.h1 { text = "Game Screen" },
Components.button {
caption = "Title",
... |
setenv("INTEL","13.1.3")
local mdir = pathJoin(os.getenv("MODULEPATH_ROOT"),"Compiler/intel/13.1")
prepend_path("MODULEPATH",mdir)
family("Compiler")
|
corvetteCrowleyConvoTemplate = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "ticketGiverCrowleyConvoHandler",
screens = {}
}
no_faction = ConvoScreen:new {
id = "no_faction",
leftDialog = "@conversation/corvette_crowley_rebel1:s_c55f8e77", --I've much to do... I'm afraid I don'... |
local up = false
function OnKeyPress(key)
if key == "X" and not GetPlayerPropertyValue(GetPlayerId(), 'dead') and not GetPlayerPropertyValue(GetPlayerId(), 'cuffed') then
ToggleHands()
end
end
AddEvent("OnKeyPress", OnKeyPress)
function ToggleHands()
up = not up
if IsCtrlPressed() then
CallRemoteEvent("handsu... |
-- This is local
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local bin = Instance.new("HopperBin", player.Backpack) -- just to keep the friend request thing off
bin.Name = "laza!!"
local cannon = false
local char = player.Character
local T = char:findFirstChild("Torso")
local RA = ... |
local playerModule = require "module.playerModule";
local EventManager = require 'utils.EventManager';
local NetworkService = require "utils.NetworkService";
local SkillConfig = require "config.skill"
local talentConfig = nil;
local talentConfigByGroup = nil;
local function AddTalentConfig(data)
local talent_id, grou... |
--minefieldAttack.lua
--Created on: Dec 21, 2012
-- Author: root
MinefieldAttackCommand = {
name = "minefieldattack",
combatSpam = "attack",
poolsToDamage = RANDOM_ATTRIBUTE,
areaAction = true,
range = -1,
coneAction = false,
areaRange = -1, -- default to the weapon range
}
AddCommand(MinefieldAttackComm... |
-- Copyright (c) 2018 Patrick Fay
--
-- License http://opensource.org/licenses/mit-license.php MIT License
function got_problems( error_msg )
print(debug.traceback())
return "got_problems handler: " .. error_msg
end
printf = function(s,...)
return io.write(s:format(...))
end -- function
function myspl... |
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
-- TODO: STOP MESSING WITH APP.Tiles and do the stuff properly!!
-- TODO: Trans... |
-- Nmobs skeleton.lua
-- Copyright Duane Robertson (duane@duanerobertson.com), 2017
-- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
-- The nodebox and textures are distributed as Public Domain (WTFPL).
nmobs.register_mob({
attacks_player = true,
armor_class = 8,
h... |
--[[--
Hotpatch Core: Static Translation for Hotpatch-MultiMod: a tool to load multiple scenarios side-by-side,
with support for both static loading and dynamic loading, as well as run-time patching.
@module hotpatch.core-static_translation
@author Chrisgbk
]]
--[[
Copyright 2018 Chrisgbk
Permission is hereby granted,... |
local totalTime
local gameFont
local smallFont
local windowTitle
local windowTitleWidth
local windowTitleHeight
function love.load()
gameFont = love.graphics.newFont(40)
smallFont = love.graphics.newFont(24)
windowTitle = love.window.getTitle()
windowTitleWidth = gameFont:getWidth(windowTitle)
win... |
local parser = require 'ffiex.parser'
local function check_dependency(sym, typename, deps, cdef_checker)
typename = parser.name(sym, typename)
local t = assert(sym[typename], typename .. " not exist")
for i,d in ipairs(deps) do
local found
for j,e in ipairs(t.deps) do
if d == e then found = true end
end
... |
local spec = require('cmp.utils.spec')
local api = require('cmp.utils.api')
local feedkeys = require('cmp.utils.feedkeys')
local keymap = require('cmp.utils.keymap')
describe('keymap', function()
before_each(spec.before)
it('t', function()
for _, key in ipairs({
'<F1>',
'<C-a>',
'<C-]>',
... |
-- Author: mitterdoo (with help from Divran)
AddCSLuaFile()
DEFINE_BASECLASS("base_wire_entity")
ENT.PrintName = "Text Entry (Wire)"
ENT.WireDebugName = "Text Entry"
function ENT:SetupDataTables()
self:NetworkVar("Float", 0, "Hold")
self:NetworkVar("Bool", 0, "DisableUse")
end
if CLIENT then
local panel
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.