content stringlengths 5 1.05M |
|---|
object_ship_jedi_starfighter_tier3 = object_ship_shared_jedi_starfighter_tier3:new {
}
ObjectTemplates:addTemplate(object_ship_jedi_starfighter_tier3, "object/ship/jedi_starfighter_tier3.iff")
|
client_scripts {
'config.lua',
'client.lua'
}
server_scripts {
'config.lua',
'server.lua'
}
export 'showAlert'
ui_page 'html/index.html'
files {
'html/index.html',
'html/main.js',
'html/main.css',
'html/images/job.png',
'html/images/society.svg',
'html/images/black_money.svg',
'html/images/bank.svg',
'ht... |
function love.load()
button = {}
button.x = 200
button.y = 200
button.size = 50
score = 0
timer = 10
gameState = 1
myFont = love.graphics.newFont(40)
end
function love.update(dt)
if gameState == 2 then
if timer > 0 then
timer = timer - dt
end
if timer < 0 then
timer = 0
... |
gametable = {
screenwidth = 640, screenheight = 480, state = 0,
fieldmaxwidth = 384, fieldmaxheight = 448,
fieldwidth = 32, fieldheight = 16
}
|
local class = require 'EasyLD.lib.middleclass'
local Surface = class('Surface')
Surface.table = {}
function Surface.drawOnScreen()
love.graphics.setCanvas(love.screen)
end
function Surface:initialize(w, h)
self.w = w or EasyLD.window.w
self.h = h or EasyLD.window.h
self.s = love.graphics.newCanvas(self.w, self.... |
local m = {}
local keys=require("api_keys")
local hammerDir = hs.fs.currentDir()
local iconsDir = (hammerDir .. '/hs-weather/icons/')
local configFile = (hammerDir .. '/hs-weather/config.json')
local urlBase = 'https://query.yahooapis.com/v1/public/yql?q='
local query = 'select item.title, item.condition from weather.... |
local KUI, E, L, V, P, G = unpack(select(2, ...))
local M = E:GetModule('Minimap')
--local GetPlayerMapPosition = GetPlayerMapPosition
local init = false
local cluster, panel, location, xMap, yMap
local inRestrictedArea = false
local mapID = C_Map.GetBestMapForUnit("player")
local SPACING = (E.PixelMode and 1 or 3)
... |
dofile("test_setup.lua")
local file1 = [=[
return { value = 5 }
]=]
local file2 = [=[
return { value = 10 }
]=]
local func = DoFileString(file1)
func = nil
collectgarbage()
local cache = LuaReload.GetFileCache()
local file = cache[ GetTestFilename() ]
for k, v in pairs(file.returnValues) do
error("retu... |
require(settings.get("ghu.base").."core/apis/ghu")local a=require("am.ui")local b=require("am.event")local c=require("am.log")local d=require("am.helpers")local e=require("am.progress.base")local f=e:extend("am.progress.CollectWrapper")function f:init(g,h,i,j)f.super.init(self,g,{[g.id]=h},i,j)self.src_map={[g.id]=g}se... |
--require("nn")
local dbg = require("debugger")
local THNN = require 'nn.THNN'
local LookupTableWithNulls, parent = torch.class('LookupTableWithNulls', 'nn.Module')
LookupTableWithNulls.__version = 1
function LookupTableWithNulls:__init(nIndex, nOutput)
parent.__init(self)
print('making a lookup table with null... |
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
local COMMAND = Clockwork.command:New("ItemSpawnerCount");
COMMAND.tip = "Counts the amount of spawned items on the map.";
COMMAND.flags = CMD_DEFAULT;
COMMAND.access = "s";
COMMAND.arguments = 0;
-- Called when the command has been run.
function COMMAND:OnRun(play... |
--[[
Forward and backward combined.
]]--
require 'nn'
require 'nnx'
require 'cunn'
require 'cudnn'
require 'cutorch'
paths.dofile('para_model.lua')
local ParallelNet_Mod,ParallelNet = torch.class("nn.ParallelNet_Mod",'nn.ParallelNet')
function ParallelNet_Mod:__init(config, layer)
print("Parallel Model (Comb... |
require "zip"
local zfile, err = zip.open('build-vs13.zip')
-- print the filenames of the files inside the zip
for file in zfile:files() do
print(file.filename)
end
zfile:close() |
surface.CreateFont("consolas", {
font = "Consolas",
size = 16,
weight = 0,
blursize = 0,
scanlines = 0,
antialias = false,
underline = false,
shadow = true,
})
local col_green = Color(0, 255, 0)
local title = "Terminal debug system [v 0.3 - NS]"
local _n = "\n----------------------\n"
local X_SIZE, ... |
--[[--------------------------------------------------------------------
optlex.lua: does lexer-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the Chan... |
-----------------------------------------
-- Spell: Stonega II
-- Deals earth damage to enemies within area of effect.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(caster, target, spel... |
--[[
Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including... |
function convert._from_human_to_timestamp(str)
return atom.timestamp:load(str)
end
|
---=====================================
---luastg 基础用户接口
---lstg 库
---作者:Xiliusha
---邮箱:Xiliusha@outlook.com
---=====================================
---@class lstg @lstg库
local m = {}
---@type lstg
lstg = m
----------------------------------------
---游戏循环流程
--[[
1 > 初始化游戏框架,启动lua虚拟机
2 > 加载launch初始化脚本(可选),此时游戏引擎还没... |
local core = require("apisix.core")
local ngx_re = require("ngx.re")
local tab_concat = table.concat
local http = require("resty.http")
local string = string
local io_open = io.open
local io_close = io.close
local ngx = ngx
local ipairs = ipairs
local pairs = pairs
local tonumber = tonumber
local _M = {}
local tmp = ... |
local test_env = require("spec.util.test_env")
local lfs = require("lfs")
local get_tmp_path = test_env.get_tmp_path
local run = test_env.run
local testing_paths = test_env.testing_paths
local write_file = test_env.write_file
local git_repo = require("spec.util.git_repo")
test_env.unload_luarocks()
local cfg = require... |
local require = GLOBAL.require
require("extended")
|
--[[ Copyright (C) 2017-2020 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... |
--[[
Copyright (c) 2019 igor725, scaledteam
released under The MIT license http://opensource.org/licenses/MIT
]]
return function(player, x, y, z, mode, id)
local world = getWorld(player)
local cblock = world:getBlock(x, y, z)
if mode == 0x00 then
id = 0
end
local cantPlace = not player.isSpawned
if world:... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ENT.SeizeReward = LCD.Config.SeizeReward
local PreMoney
function ENT:Initialize()
self.PrinterStoredMoney = LCD.Config.StartingStoredMoney
self:SetNWInt( "StoredMoney", PrinterStoredMoney )
self.PrinterTemperature = LCD.Config.Starting... |
mapFields = require "lib/mapFields"
mapQuests = require "lib/mapQuests"
quest = target.get_quest(mapQuests.getID("KiddnapingOfCamila")) -- Evan only
target.field = mapFields.getID("GolemsTempleEntrance")
if quest.state == mapQuests.getState("Perform") then
quest.complete()
-- pi.playerMessage(5, "Camila rescued!")... |
-- define standart values
number_of_leds = 95; -- set number of leds in strip
normal_brightness=150; -- set normal brightness from 0 to 255
max_brightness=255; -- set max brightness from 0 to 255
-- ---------------------------------------------------------
-- Wifi settings
static_ip=true; -- allows to use static... |
Ambi.General.Utility = Ambi.General.Utility or {}
setmetatable( Ambi.General.Utility, { __index = util } )
-- -------------------------------------------------------------------------------------
local A = Ambi.General
local player, string, ipairs, table, tostring, os, isstring = player, string, ipairs, table, tostrin... |
--globals
PYRITION.MediaCommands = {}
--local functions
local function execute_media(command_data, ply, arguments, arguments_string) hook.Call("PyritionConsoleRunMediatedCommand", PYRITION, ply, command_data.Command, arguments, arguments_string) end
local function has_flag(flags, flag) return bit.band(flags, flag) == ... |
-- we need to require these before fire.save_the_world(), to prevent crashes
require "cpml"
require "iqm"
require "love3d".import(false)
local anchor = require "anchor"
local fire = require "fire"
fire.save_the_world()
_G.EVENT = require "talkback".new()
_G.SCENE = require "gamestate"
function love.load(args)
for... |
local Ans = select(2, ...);
local AuctionList = {};
AuctionList.__index = AuctionList;
Ans.AuctionList = AuctionList;
local Recycler = AnsCore.API.GroupRecycler;
local Utils = AnsCore.API.Utils;
AuctionList.selectedEntry = -1;
AuctionList.items = {};
AuctionList.rows = {};
AuctionList.style = {
rowHeight = 16
}... |
object_tangible_quest_story_loot_som_kenobi_historian_data_disk = object_tangible_quest_story_loot_shared_som_kenobi_historian_data_disk:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_story_loot_som_kenobi_historian_data_disk, "object/tangible/quest/story_loot/som_kenobi_historian_data_disk.iff")
|
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
if player:getStorageValue(Storage.TheApeCity.Questline) >= 17 then
player:teleportTo({x = 32749, y = 32536, z = 10})
else
player:teleportTo(fromPosition)
player:sendTextMessage(... |
for i,v in ipairs(TeamInfo.kRelevantTechIdsMarine) do
if v == kTechId.AdvancedArmoryUpgrade then
table.insert(TeamInfo.kRelevantTechIdsMarine, i + 1, kTechId.HeavyMachineGunTech)
end
end
|
require "behaviours/wander"
require "behaviours/doaction"
require "behaviours/chaseandattack"
require "behaviours/standstill"
local STOP_RUN_DIST = 10
local SEE_PLAYER_DIST = 5
local MAX_WANDER_DIST = 20
local SEE_TARGET_DIST = 6
local MAX_CHASE_DIST = 7
local MAX_CHASE_TIME = 8
local function GoHomeAction(inst)
... |
-- Local Variables:
-- lua-indent-close-paren-align: nil
-- lua-indent-only-use-last-opener: t
-- End:
-- XFAIL: one param, nested table on same line as opener
foobar({
a, b, c
})
-- XFAIL: two params, nested table on same line as opener
foobar(a, {
b,
c
})
foobar({}, {
b,
c
})
-- XFAIL: two aligne... |
local mod = get_mod("GiveWeapon")
local pl = require'pl.import_into'()
local tablex = require'pl.tablex'
local stringx = require'pl.stringx'
mod.simple_ui = get_mod("SimpleUI")
mod.more_items_library = get_mod("MoreItemsLibrary")
mod.properties = {}
mod.traits = {}
fassert(mod.simple_ui, "GiveWeapon must be lower t... |
--[[- A basic logging library.
This writes messages to a log file (.artist.d/log), rotating the file when it
gets too large (more than 64KiB).
]]
local select, os, fs = select, os, fs
local expect = require "cc.expect".expect
local path = ".artist.d/log"
local old_path = ".artist.d/log.1"
fs.delete(path)
local siz... |
local composer = require( "composer" )
local scene = composer.newScene()
-- -----------------------------------------------------------------------------------
-- Code outside of the scene event functions below will only be executed ONCE unless
-- the scene is removed entirely (not recycled) via "composer.removeSce... |
if not wac then return end
ENT.Base = "wac_hc_base"
ENT.Type = "anim"
ENT.Author = "Chippy"
ENT.Category = wac.aircraft.spawnCategoryC
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.PrintName = "AH-1W Super Cobra"
ENT.Model = "models/chippy/ah1w/body.mdl"
ENT.SmokePos = Vector(-177,0,28)
ENT.FireP... |
-- the primary "known good" list is handled a little differently than the rest, so...
local primaryTable = {}
for k, v in hs.fnutils.sortByKeys(hs.image.systemImageNames) do table.insert(primaryTable, v) end
local sources = {
{ "hs.image.systemImageNames", primaryTable },
}
for k,v in hs.fnutils.sortByKeys(hs.im... |
return {
summary = 'An offscreen render target.',
description = [[
A Canvas is also known as a framebuffer or render-to-texture. It allows you to render to a
texture instead of directly to the screen. This lets you postprocess or transform the results
later before finally rendering them to the screen.... |
-- Based on https://github.com/streetturtle/awesome-wm-widgets/blob/master/volume-widget/volume.lua
local awful = require("awful")
local gears = require("gears")
local watch = require("awful.widget.watch")
local spawn = require("awful.spawn")
local icons = require("theme.icons")
local iconContainer = require("widgets.... |
local path = (...)
local sub1 = path:match("(.-)%.[^%.]+$")
local sub2 = sub1:match("(.-)%.[^%.]+$")
local sub3 = sub2:match("(.-)%.[^%.]+$")
local sub4 = sub3:match("(.-)%.[^%.]+$")
local roboto = require (sub1..".roboto")
local smooth_rectangle = require (sub2..".utils.smooth_rectangle")
lo... |
local serializers = {
['none'] = require('colyseus.serialization.none'),
['fossil-delta'] = require('colyseus.serialization.fossil_delta'),
['schema'] = require('colyseus.serialization.schema'),
}
local exports = {}
exports.register_serializer = function(id, handler)
serializers[id] = handler
end
exp... |
local t = Def.ActorFrame{
OnCommand=function(self)
if LoadModule("Characters.AnyoneHasChar.lua")() then
if SCREENMAN:GetTopScreen():GetChild("SongBackground") then
local SBG_sc = SCREENMAN:GetTopScreen():GetChild("SongBackground"):GetChild("")
local BGBrightness = SBG_sc:GetChild("")[5]:GetChild("Brigh... |
local type = type
local string_format = string.format
local string_find = string.find
local string_lower = string.lower
local ngx_re_find = ngx.re.find
local resty_cookie=require("gateway.lib.cookie")
local stringy = require("gateway.utils.stringy")
local function assert_condition(real, operator, expected)
if not ... |
local ID = require("scripts/zones/Mog_Garden/IDs");
require("scripts/globals/moghouse")
require("scripts/globals/shop");
-----------------------------------
local BRONZE_PIECE_ITEMID = 2184;
function onTrade(player, npc, trade)
moogleTrade(player, npc, trade)
end;
function onTrigger(player, npc)
player:star... |
--!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
package.path = package.path .. ";../lib/?.lua;../lib/?/init.lua"
local ffi = require "ffi"
local nn = require "nanomsg"
local sdl = require "sdl2"
ffi.cdef[[
int aacircleRGBA(
SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad,
Uint8 r, Uint8 g, Uint8 b, Uint8 a
);
int filledCircleRGBA(
SDL_Renderer *... |
--[[
Polish translation by Veran120 (http://steamcommunity.com//id/Veran120)
--]]
NAME = "Polski"
LANGUAGE = {
loading = "Ładowanie",
dbError = "Połączenie z bazą danych nie powiodło się",
unknown = "Nieznane",
noDesc = "Rysopis niedostępny",
create = "Stwórz",
createTip = "Stwórz nową postać aby... |
-- Various torch additions, should move to torch itself
torch.select = function (A, dim, index)
return A:select(dim, index)
end
torch.index = function (A, dim, index)
return A:index(dim, index)
end
torch.narrow = function(A, dim, index, size)
return A:narrow(dim, index, size)
end
torch.clone = function(A)
... |
require'nvim-treesitter.configs'.setup {
ensure_installed = "all",
ignore_install = { "haskell" },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
},
matchup = {
enable = true,
},
}
|
local functions = {}
function functions.quitGame()
-- cleans up before quiting the game
if ENET_IS_CONNECTED then
-- test if pressing ESC on main screen (i.e. quiting)
if #CURRENT_SCREEN == 1 then
if IS_A_CLIENT then
EnetHandler.disconnectClient(LANDERS[1].connectionID)
elseif IS_A_HOST then
... |
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.tree"))
local lovefra... |
return {
name = "Русский [Built-in]",
description = "Перевод на русский язык.",
api_version = 4,
-- please use ISO 639-1 plus country code if required
language_code = "ru"
}
|
Weapon.PrettyName = "M24"
Weapon.WeaponID = "m9k_m24"
Weapon.DamageMultiplier = 2.2
Weapon.WeaponType = WEAPON_PRIMARY |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local select, unpack = select, unpack
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's Fi... |
-- Plane of Fire
function events.AfterLoadMap()
Party.QBits[931] = true -- DDMapBuff, changed for rev4 for merge
end
|
buffer = ""
function readint()
if buffer == "" then buffer = io.read("*line") end
local num, buffer0 = string.match(buffer, '^([%-%d]*)(.*)')
buffer = buffer0
return tonumber(num)
end
function stdinsep()
if buffer == "" then buffer = io.read("*line") end
if buffer ~= nil then buffer = string.g... |
local ui = {}
local Style = getClass 'wyx.ui.Style'
local command = require 'wyx.ui.command'
local colors = colors
local floor = math.floor
local yOffset = 40
local panelWidth = 0.6 * WIDTH
local panelHeight = 0.75 * HEIGHT
local titleFont = GameFont.bighuge
local titleFontH = titleFont:getHeight()
local titleMargi... |
--define the class
ACF_defineGunClass("MO", {
spread = 0.64,
name = "Mortar",
desc = "Mortars are able to fire shells with usefull payloads from a light weight gun, at the price of limited velocities.",
muzzleflash = "mortar_muzzleflash_noscale",
rofmod = 2.5,
sound = "weapons/ACF_Gun/mortar_new.mp3",
soundDista... |
QBCore = nil
notLoaded, currentStreetName, intersectStreetName, lastStreet, speedlimit, nearbyPeds, isPlayerWhitelisted, playerPed, playerCoords, job, rank, firstname, lastname, phone = true
playerIsDead = false
Citizen.CreateThread(function()
while QBCore == nil do
TriggerEvent('QBCore:GetObject', function(obj) QB... |
test = require 'u-test'
common = require 'common'
function GetUserProfiles_Handler()
print("GetUserProfiles_Handler")
XblProfileGetUserProfilesAsync()
end
function OnXblProfileGetUserProfilesAsync()
print("OnXblProfileGetUserProfilesAsync")
test.stopTest();
end
test.GetUserProfiles = function()
... |
local serialize = require 'src/serialize'
local oop = require 'src/oop'
local folder = oop.class()
function folder:init(name)
self.temp_count = nil
self.name = name
-- local path = 'folders/' .. name .. '.lua'
-- Look first in save dir, then in game folders.
-- if love.filesystem.getInfo(path) then
-- ... |
-- ---------------------------------------------
-- png.lua 2014/06/05
-- Copyright (c) 2013-2014 Jun Mizutani,
-- released under the MIT open source license.
-- ---------------------------------------------
local ffi = require("ffi")
local libpng = ffi.load("libpng12.so.0")
ffi.cdef[[
typedef struct _IO... |
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "ttt_basegrenade_proj"
ENT.Model = Model("models/weapons/w_eq_fraggrenade.mdl")
AccessorFunc( ENT, "radius", "Radius", FORCE_NUMBER )
function ENT:Initialize()
self.Hit = false
self.CurrentPitch = 100
self:SetMaterial( "models/alyx/emptool_glow" )
-- self:SetModelScal... |
return LoadFont("_miso")..{
InitCommand=function(self) self:xy(IsUsingWideScreen() and 50, _screen.cy-24):zoom(0.8):diffusealpha(0) end,
OnCommand=function(self)
self:diffusealpha(0):settext(THEME:GetString("ScreenSelectMusic", "FooterTextSongs")):linear(0.15):diffusealpha(1)
end,
} |
-----------------------------------
-- Area: Port Windurst
-- NPC: Degong
-- Type: Fishing Synthesis Image Support
-- !pos -178.400 -3.835 60.480 240
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/crafting")
local ID = require("scripts/zones/Port_Windurst/IDs")
---------... |
--get the addon namespace
local addon, ns = ...
--get oUF namespace (just in case needed)
local oUF = ns.oUF or oUF
--get the config
local cfg = ns.cfg
--get the functions
local func = ns.func
--get the unit container
local unit = ns.unit
-------------------------------------... |
local libcore = require "core.libcore"
-- The Class module implements basic OOP functionality
local Class = require "Base.Class"
-- The base class for all units
local Unit = require "Unit"
-- A graphical control for the unit menu
local OptionControl = require "Unit.MenuControl.OptionControl"
-- A graphical control for ... |
object_mobile_outbreak_undead_civilian_46 = object_mobile_shared_outbreak_undead_civilian_46:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_undead_civilian_46, "object/mobile/outbreak_undead_civilian_46.iff")
|
------------------------------------------------------------------------------
-- Gauge class
------------------------------------------------------------------------------
local ctrl = {
nick = "gauge",
parent = iup.WIDGET,
creation = "",
callback = {},
subdir = "ctrl",
include = "iupcontrols.h",
}
funct... |
require('nvim-lightbulb').update_lightbulb {
sign = {
enabled = true,
priority = 10,
},
float = {
enabled = true,
text = "💡",
},
}
vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb()]]
|
return {
["in-ipv6-frag-reassembly-unneeded"] = 1,
["memuse-ipv4-frag-reassembly-buffer"] = 728203264,
["memuse-ipv6-frag-reassembly-buffer"] = 11378176,
["in-ndp-ns-packets"] = 1,
["in-ndp-ns-bytes"] = 86,
}
|
#!/usr/bin/env lua5.3
package.path = "../?.lua;" .. package.path
require "luarocks.loader"
--pcall(require, "luacov") --measure code coverage
--
-- Need to create some assertations missing from busted that
-- were present in lunatest
--
luaassert = require "luassert"
say = require "say"
local function gte( state... |
function onUse(cid, item, fromPosition, itemEx, toPosition)
local function back(item, pos)
doCreateItem(item.itemid, 1, pos)
end
if itemEx.itemid == 13913 then --id do item arvore do sudowoodo
local item = getTileItemById(toPosition, 13913) --id do item arvore do sudowoodo
addEvent(back, choose(10) * ... |
AddCSLuaFile()
SWEP.PrintName = "Сайга"
SWEP.Category = "Call of Pripyat"
SWEP.Base = "weapon_cop_base"
SWEP.Slot = 2
SWEP.SlotPos = 2
SWEP.Spawnable = true
SWEP.AdminOnly = false
SWEP.ViewModel = "models/weapons/wick/stcopwep/saiga_model.mdl"
SWEP.WorldModel = "models/weapons/wick/stcopwep/w_saiga_mode... |
local BenchmarkScene = class("BenchmarkScene", function()
return display.newScene("BenchmarkScene")
end)
local random = math.random
function BenchmarkScene:ctor()
self.layer = display.newNode()
self.layer:setContentSize(cc.size(display.width, display.height))
self:addChild(self.layer)
local butt... |
require 'Atten/Model'
require 'logroll'
local logger = logroll.print_logger()
local LenModel = torch.class('LenModel', 'AttenModel')
local Dataset = require('Atten/Dataset')
function LenModel:__init(params)
logger.info('loading params for the pretrained attention model: %s', params.params_file)
local file = ... |
--local distance_text = table.deepcopy(data.raw['flying-text']['flying-text'])
--distance_text.name = 'RailTools_distance-text'
--distance_text.speed = 0
--distance_text.text_alignment = 'center'
--
data:extend {
--distance_text,
--{
-- type = "simple-entity",
-- name = "RailTools_bad-signal-indic... |
local computer = require("computer")
local shell = require("shell")
local component = require("component")
local event = require("event")
local fs = require("filesystem")
local unicode = require("unicode")
local text = require("text")
local write = io.write
local args, options = shell.parse(...)
options.sources = {}... |
--[[
A top-down action game made with Bitty Engine
Copyright (C) 2021 Tony Wang, all rights reserved
Engine page: https://paladin-t.github.io/bitty/
Game page: https://paladin-t.github.io/games/hb/
]]
Blood = class({
--[[ Variables. ]]
_game = nil,
_r = 0,
_lifetime = 20, _ticks = 0,
--[[ Constructor. ]]
... |
local ev = require 'backend.event'
local foreground
local background
local bright
local underline
local negative
local function split(str)
local r = {}
str:gsub('[^;]+', function (w) r[#r+1] = tonumber(w) end)
return r
end
local function vtmode(text)
local vt = {}
if foreground then
vt[#v... |
local tcp = require "internal.TCP"
local lz = require"lz"
local gzuncompress = lz.gzuncompress
local new_tab = require "sys".new_tab
local json = require "json"
local json_encode = json.encode
local xml2lua = require "xml2lua"
local toxml = xml2lua.toxml
local crypt = require "crypt"
local url_encode = crypt.urlen... |
local helpers = require('test.functional.helpers')(after_each)
local screen = require('test.functional.ui.screen')
local curbufmeths = helpers.curbufmeths
local curwinmeths = helpers.curwinmeths
local nvim_dir = helpers.nvim_dir
local command = helpers.command
local meths = helpers.meths
local clear = helpers.clear
lo... |
local class = require 'ext.class'
local Set = require 'symmath.set.Set'
local Null = class(Set)
Null.name = 'Null'
-- is the null set a subset of itself?
-- can a variable be defined to exist in the null set?
function Null:variable(...)
error"you cannot create a variable from the null set"
end
function Null:contai... |
local is_array = require "api-umbrella.utils.is_array"
-- Like deep_merge_overwrite_arrays, but only assigns values from the source to
-- the destination if the destination is nil. So any existing values on the
-- destination object will be retained.
local function deep_defaults(dest, src)
if not src then return des... |
function HarpiePriority()
AddPriority({
-- Harpie
[75064463] = {7,1,6,1,3,2,2,2,1,1,QueenCond}, -- Harpie Queen
[80316585] = {4,1,4,1,5,2,4,2,1,1,CyberCond}, -- Cyber Harpie Lady
[56585883] = {8,1,8,1,8,0,5,2,1,1,HarpistCond}, -- Harpie Harpist
[90238142] = {9,4,9,1,1,1,6,3,1,1,ChannelerCond},-- Harpie Channeler
... |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
AddCSLuaFile("sh_soundscript.lua")
include("sh_sounds.lua")
include("sh_soundscript.lua")
CustomizableWeaponry.shells:addNew("khr12gbuck", "models/khrcw2/doipack/shells/12g_slug.mdl", "CW_SHELL_SHOT")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "Ithaca 3... |
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
local M = {}
-- Works as a decorator to expand set_lualine_theme functions
-- functionality at runtime .
function M.expand_set_theme(func)
-- execute a local version of global function to not get in a inf recurtion
local set_the... |
padawan_the_ring_02_convo_template = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "padawan_the_ring_02_conv_handler",
screens = {}
}
intro = ConvoScreen:new {
id = "intro",
leftDialog = "@conversation/padawan_the_ring_02:s_6a1562ad", -- What do you want?
stopConversation = "fa... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "ISUI/ISPanelJoypad"
---@class ISCharacterProtection : ISPanelJoypad
ISCharacterProtection = ISPanelJoypad:derive("ISCharact... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Modules = ReplicatedStorage.Modules
local Rodux = require(Modules.Rodux)
-- The Rodux DevTools aren't available yet! Check the README for more details.
-- local RoduxVisualizer = require(Modules.RoduxVisua... |
#!/usr/bin/env tarantool
-- Start the console first to allow test-run to attach even before
-- box.cfg is finished.
require('console').listen(os.getenv('ADMIN'))
box.cfg({
listen = os.getenv("LISTEN"),
replication = {os.getenv("MASTER"), os.getenv("LISTEN")},
wal_cleanup_delay = 0,
... |
--[[--------------------------------------------------------------------------
--
-- File: UTActivity.Ui.RevisionCheck.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: October 13, 2010
--
-----------------------... |
local ContentProvider = game:GetService("ContentProvider")
local CoreGui = game:GetService("CoreGui")
local CorePackages = game:GetService("CorePackages")
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local RobloxReplicatedStorage = game:GetService("RobloxReplicatedStorag... |
-- Copyright (C) 2014 Chris Emerson <github@mail.nosreme.org>
-- See LICENSE for details (MIT license).
-- Support for regular expressions (parsed and implemented with LPeg).
local M = {}
local lpeg = require('lpeg')
local P = lpeg.P
local R = lpeg.R
local S = lpeg.S
local C = lpeg.C
local V = lpeg.V
local B = lpeg.B... |
function love.conf(t)
t.author = "Maurice"
t.identity = "mari0"
t.console = true
t.window = nil
t.modules.physics = true
t.version = "11.1"
t.screen = false
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.