content stringlengths 5 1.05M |
|---|
-- ---------------------------------------------
-- Animation.lua 2014/06/05
-- Copyright (c) 2014 Jun Mizutani,
-- released under the MIT open source license.
-- ---------------------------------------------
require("Schedule")
require("Node")
local util = require("util")
Animation = Object:new()
function... |
local key = ModPath .. ' ' .. RequiredScript
if _G[key] then return else _G[key] = true end
local fs_original_playerinventory_destroyallitems = PlayerInventory.destroy_all_items
function PlayerInventory:destroy_all_items()
for _, selection_data in pairs(self._available_selections) do
local key = '_dyn_resource_' ..... |
--require "scripts.library.ui_events"
local HeroTab =
{
SettingCanvas = nil;
selectedHero = nil;
spawnTickets = {};
initComplete = false;
CurrentAbilities = {};
Properties =
{
SelectedHero = {default = EntityId()},
Strength = {default = EntityId()},
Agility = {default = EntityId()},
Intelligence = {... |
-- CONFIG --
-- Blacklisted ped models
pedblacklist = {
"CSB_Cop",
"S_M_Y_HwayCop_01",
"S_M_Y_HwayCop_01_p",
"S_M_Y_Cop_01",
"S_M_Y_Cop_01_p",
"S_M_M_SnowCop_01",
"S_M_M_SnowCop_01_p",
"S_M_O_Snowcop_01",
"S_M_M_Paramedic_01",
"S_M_M_Paramedic_01_p",
"S_F_Y_Cop_01",
"S_F... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local model = require "game.model.role_model"
local config = require "game.template.arsenal"
local timetool = require "include.timetool"
local bconfig = require "game.config"
local task_config = req... |
addEvent("settings:syncPlayerSettings", true)
addEventHandler("settings:syncPlayerSettings", root,
function(data)
if type(data) == "table" then
for i, v in pairs(data) do
setElementData(source, i, v, false)
end
end
end) |
pg = pg or {}
pg.enemy_data_statistics_116 = {
[10042011] = {
cannon = 12,
reload = 150,
speed_growth = 0,
cannon_growth = 990,
rarity = 2,
air = 0,
torpedo = 12,
dodge = 0,
durability_growth = 24000,
antiaircraft = 89,
luck = 0,
reload_growth = 0,
dodge_growth = 0,
hit_growth = 120,
star... |
-- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Shared.IO", function (namespace)
-- <summary>
-- Represents different types of messages that can be send by players
-- </summary>
namespace.enum("MessageType", function ()
return {
Normal = 0,
Action = 1,
Tea... |
local keymap = require('aula.core.keymap')
local M = {}
function M.set_lsp_keymaps()
keymap.set('n', '<leader>lc', [[<Cmd>Lspsaga rename<CR>]])
keymap.set('n', '<leader>la', [[<Cmd>Lspsaga code_action<CR>]])
keymap.set('n', '<leader>ld', [[<Cmd>lua vim.lsp.buf.definition()<CR>]])
keymap.set('n', '<leader>le', ... |
--- Unit Tracker
local Observer = require('stdlib.utils.observer')
local ID = require('stdlib.objediting.stdlibids')
local Native = require('stdlib.native')
local Order = require('stdlib.enum.order')
---UnitTracker
--- Provides event API for units entering and leaving the map.
--- The event will also fire for preplace... |
vRP = Proxy.getInterface("vRP")
-- NO TOUCHY ANYTHING --
local EmojiList = {
'🍎',
'🍋',
'🍉',
'🍊',
'🍒',
'🍇',
'🍑',
'🍓'
}
-- KEK TOP KEK --
local price = {}
price.line3 = {
cherry = 20,
lemon = 15,
other = 10
}
price.line2 = {
cherry = 5,
other = 2
}
-- Thank you ideo for GUI
Menu = {}
Menu.GUI... |
workspace "Fierce-Engine"
architecture "x86_64"
startproject "Engine"
configurations
{
"Debug",
"Release"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir[... |
local util = require "res.util"
local logger = require "common.Logger"
local common = require "common.common"
local cfg = require "cfg._cfgs"
local PriorityQueue = require "common.PriorityQueue"
local module = require("module.module")
local coroutine = coroutine
local WWW = UnityEngine.WWW
local Yield = UnityEngine.Yie... |
--
-- 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 License, Version 2.0
-- (the "License"); you may... |
// Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
// WSF LPeg lexer (based on XML).
// Contributed by Jeff Stone.
var l = require('lexer');
var token, word_match = l.token, l.word_match;
var P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V;
var M = {_NAME = 'wsf'};
// Whitespace.
var ws = token(l.WHI... |
local items = {}
items["blackmarketmobil"] = {"Nokia 3310","Note: Hvis du følger mine ordrer vil du få en god mulighed. Hop hvis du har læst beskeden.",nil,0}
return items |
local random = math.random
-- I don't remember if snow function is needed.
local function is_snow_nearby(pos)
return minetest.find_node_near(pos, 1,
{"default:snow", "default:snowblock", "default:dirt_with_snow"})
end
-- Sapling ABM
function maple.grow_sapling(pos)
if not default.can_grow(pos) then
-- Can't g... |
local output_change = lfs.attributes(flags.o,"change")
local rebuild = output_change == nil
if not rebuild then
local input_changes = {
lfs.attributes(flags.f,"change"),
lfs.attributes("basic.lua","change"),
lfs.attributes("tolua++/compat.lua","change"),
lfs.attributes("tolua++/basic.lua","change"),
lfs.att... |
local key = KEYS[1]
local read_key = get_key(key)
local ret = redis.call('GET', read_key)
if ret == false then
return process_missed_key(read_key, timeout_ms)
end
return {0, ret}
|
local class = require "xgame.class"
local shader = require "xgame.shader"
local RenderTexture = require "cc.RenderTexture"
local EventListenerCustom = require "cc.EventListenerCustom"
local Director = require "cc.Director"
local Sprite = require "cc.S... |
vim.g.UltiSnipsJumpForwardTrigger = "<tab>"
vim.g.UltiSnipsJumpBackwardTrigger = "<s-tab>"
-- vim.g.UltiSnipsListSnippets = '<c-s>'
vim.g.UltiSnipsSnippetsDir = "~/.config/nvim/ultisnips"
|
-----------------------------------------------------------------------------------------------
local title = "Ferns" -- former "Archae Plantae"
local version = "0.2.0"
local mname = "ferns" -- former "archaeplantae"
-----------------------------------------------------------------------------------------------
-- (... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
function ENT:Initialize()
self:SetModel("models/props_lab/reciever_cart.mdl")
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetUseType( SIMPLE_USE )
end
function E... |
--[[
Low level socket protocol implementation.
* sequencing
* write acknowledgements
* background read buffering
]]--
multishell.setTitle(multishell.getCurrent(), 'Net transport')
local computerId = os.getComputerID()
_G.transport = {
timers = { },
sockets = { },
}
function transport.open(socket)
tr... |
Jonathan1358LibLoaded = false
if (SERVER) then
AddCSLuaFile()
local files, folders = file.Find("jonathan_modules/*", "LUA")
for k,v in pairs(files) do
include("jonathan_modules/" .. v)
AddCSLuaFile("jonathan_modules/" .. v)
end
MsgC(Color(255,255,255), "\n\n\n\n\n ----- " ,Color(255,255,0), " Jonathan1358: S... |
local _, C = unpack(KkthnxUI)
C.AutoOpenItems = {
[5335] = true, -- A Sack of Coins
[6307] = true, -- Message in a Bottle
[6351] = true, -- Dented Crate
[6352] = true, -- Waterlogged Crate
[6353] = true, -- Small Chest
[6356] = true, -- Battered Chest
[6357] = true, -- Sealed Crate
[6643] = true, -- Bloated Sm... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require "classic"
local tablex = require "pl.tablex"
local InstanceMetamethodsConfigurable = Object:extend()
InstanceMetamethodsConfigurable.__instanceMetamethods = {}
function InstanceMetamethodsConf... |
SWEP.PrintName = "MK3A2 Grenade"
SWEP.ViewModel = "models/weapons/c_grenade.mdl"
SWEP.WorldModel = "models/weapons/w_grenade.mdl"
SWEP.Base = "weapon_base"
if CLIENT then
SWEP.Author = "Zet0r"
SWEP.Purpose = "Grenade for nZombies Unlimited"
SWEP.Instructions = "Deploy the weapon to throw a grenade"
SWEP.DrawAmm... |
fx_version "cerulean"
game "gta5"
name "PredatorCAD"
description "Custom resource designed to work with PredatorCADv2."
author "ricky"
version "v0.0"
lua54 "yes"
shared_scripts {
"config/sh_*.lua",
"**/sh_*.lua",
}
client_scripts {
"config/cl_*.lua",
"**/cl_*.lua",
}
server_scripts {
"config/sv_... |
------------------------------------------------------------------------
--[[ Loss ]]--
-- Node subclass
-- Adapter of nn.Criterion
------------------------------------------------------------------------
local Loss, parent = torch.class("dp.Loss", "dp.Node")
Loss.isLoss = true
function Loss:__init(config)
assert(t... |
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local class = select(2, UnitClass("player"));
--if(class ~= "ROGUE" or class ~= "DRUID") then return end;
if(class ~= "DRUID") then return end;
local assert = _G.assert;
local error = _G.error;
loca... |
local AddonName, AddonTable = ...
AddonTable.alchemy = {
-- Potions
76093, -- Potion of the Jade Serpent
76094, -- Alchemist's Rejuvenation
76096, -- Darkwater Potion
76097, -- Master Healing Potion
-- Elixir's
76077, -- Elixir of Weaponry
76078, -- Elixir of the Rapids
-- Flasks
... |
local chatdown=require("wetgenes.gamecake.fun.chatdown")
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local chipmunk=require("wetgenes.chipmunk")
hardware,main=system.configurator({
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette.
graphics=function() return graphics end,
u... |
--[[
@Name: Warrior
@Author: iKrypto
@Date: 7/23/16
@Engine: Lua 5.1
]]
wait(0.003)
--print'starting script...'
local startLoad = tick()
script.Name = "Warrior"
local plrs = game:GetService('Players')
local plr = plrs.LocalPlayer
local char = plr.Character
local bp = plr.Backpa... |
require 'torch'
require 'paths'
require 'nn'
require 'utils'
require 'slice_track'
require 'xlua'
local cfg = paths.dofile('config.lua')
local utils = paths.dofile('utils.lua')
local Loader = torch.class('Loader')
--local bodoh = paths.dofile('bodoh.lua')
local function getDatasetName(numFiles, sliceSize)
local nam... |
local G = ...
local id = G.ID("overtype.overtype")
local menuid
return {
name = "Overtype on/off",
description = "Allows to switch overtyping on/off on systems that don't provide shortcut for that.",
author = "Paul Kulchenko",
version = 0.2,
dependencies = 0.50,
onRegister = function(self)
local menu =... |
------------------------------------------------------------------
-- Export torch model config and layer param to disk.
------------------------------------------------------------------
require 'nn'
require 'cudnn'
require 'cunn'
require 'xlua'
require 'json'
require 'paths'
npy4th = require 'npy4th';
torch.setdef... |
local AS = unpack(AddOnSkins)
function AS:Blizzard_Calendar(event, addon)
if addon ~= 'Blizzard_Calendar' then return end
AS:SkinFrame(CalendarFrame)
AS:SkinCloseButton(CalendarCloseButton)
CalendarCloseButton:SetPoint("TOPRIGHT", CalendarFrame, "TOPRIGHT", -4, -4)
AS:SkinArrowButton(CalendarPrevMonthButton)
A... |
-- Copyright 2006-2020 Mitchell. See LICENSE.
-- JSP LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('jsp', {inherit = lexer.load('html')})
-- Embedded Java.
local java = lexer.load('java')
local java_start_rule = to... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel( "models/maxofs2d/motion_sensor.mdl" )
self:PhysicsInit( SOLID_VPHYSICS ) -- Make us work with physics,
self:SetMoveType( MOVETYPE_VPHYSICS ) -- after all, gmod is a physics
self:SetSolid( S... |
--[[
Copyright 2020 Manticore Games, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distrib... |
---@class CS.UnityEngine.TextAsset : CS.UnityEngine.Object
---@field public text string
---@field public bytes Byte[]
---@type CS.UnityEngine.TextAsset
CS.UnityEngine.TextAsset = { }
---@overload fun(): CS.UnityEngine.TextAsset
---@return CS.UnityEngine.TextAsset
---@param optional text string
function CS.UnityEngine.... |
require 'luacov'
local _ = require 'moses'
context('Utility functions specs', function()
context('identity', function()
test('returns the received value',function()
assert_equal(_.identity(1),1)
local v = {x = 0}
assert_equal(_.identity(v),v)
assert_not_equal(v,{x = 0})
end)... |
-----------------------------------------------------------------------------
-- Belial web waf
-- Author: 逆雪寒
-- Copyright (c) 2013
--
-----------------------------------------------------------------------------
local Conf = {
-----------------------------------------------------------------------------
belialFil... |
--标记目标buff
function onEnd(target, buff)
if buff.Skill_buff and buff.Skill_buff ~= 0 then
buff.Skill_buff.tag_buff = 0
UnitRemoveBuff(buff.Skill_buff)
end
end
|
TurretIngredients[WeaponType.SpreadFire] =
{
{name = "Plasma Cell", amount = 8, investable = 4, minimum = 1, weaponStat = "damage" },
{name = "High Capacity Lens", amount = 4, investable = 2, minimum = 1, weaponStat = "damage", investFactor = 0.3 },
{name = "Energy Tube", a... |
ITEM.name = "PDA"
ITEM.model = "models/lostsignalproject/items/devices/pda.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.category = "Communication"
ITEM.price = 1000
ITEM.busflag = {"hardware"}
ITEM.equipIcon = ix.util.GetMaterial("materials/vgui/ui/stalker/misc/equip.png")
ITEM.img = ix.util.GetMaterial("vgui/hud/pda1.png"... |
modeTitle = "Example - 2" -- name the mode
require("eyesy")
rotx =0
----------------------------------------------------
function setup()
of.noFill()
of.background(0)
end
----------------------------------------------------
function update()
midi.knobs(midi_msg) -- update kn... |
require "utils"
unit = require "unit_test"
test_case = unit.test_case
test_assert = unit.test_assert
test_case(
"EntityManager",
function ()
local entityManager = kf.EntityManager()
local entity1 = kf.Entity("one")
local entity2 = kf.Entity("two")
entityManager:addEntity(entity1)
entityManager:addEntity(... |
GLOBAL.setmetatable(env,{__index = function(_, k)
return GLOBAL.rawget(GLOBAL,k)
end})
TUNING.TIMESTOPPER_PERFORMANCE = GetModConfigData("performance") or 500
TUNING.TIMESTOPPER_IGNORE_SHADOW = GetModConfigData("ignore_shadow")
TUNING.TIMESTOPPER_IGNORE_WORTOX = GetModConfigData("ignore_wortox")
TUNING.TIMESTOPPER_IG... |
Terrain = {}
function Terrain:present(physics, drawLayer)
if not physics and not drawLayer then
return nil
end
self.physics = physics
self.drawLayer = drawLayer
-- Reset the physics representation of the floor
self:rebuildFloor()
-- Insert the floor images
self.props = self:generateProps(self.v... |
@type = "GUI"
@icon = "ONIMU/programs/RUI/icons/pic.icon"
@loadscreen = "ONIMU/programs/RUI/icons/load.icon"
|
project "DESIRE"
AddCommonLibConfig()
warnings "Extra"
uuid "74923478-6D8D-4892-A013-C2B759A870EC"
pchheader "Engine/stdafx.h"
pchsource "../src/Engine/stdafx.cpp"
includedirs
{
"../3rdparty",
}
files
{
"../3rdparty/**.h",
}
filter "action:not vs*"
removefiles
{
"../src/**/WINDOWS/**",
}
|
-- todo: this is seriously broken. Only works when your sprite is the rightmost you have open.
local dialog = -1
-- bounds
local width = 120
local height = 120
local cutoff_sprite
local cutoff_sprite_opened = false
sorter = {}
function open_cutoff_sprite()
-- create a new sprite to preview the cutoff
cut... |
require('dialogue')
local d = Dialogue:new()
d:seq{
start=true,
name="test",
{text="Welcome to Caminho.NET"},
{text="If you're reading this then the dialogue loaded successfully."},
{text="Good bye!"}
}
return d |
local SharedMedia = LibStub("LibSharedMedia-3.0");
local LBF = nil --LibStub("LibButtonFacade",true);
local L = WeakAuras.L
local function createOptions(id, data)
local options = {
cooldown = {
type = "toggle",
name = L["Cooldown"],
order = 4,
disabled = fun... |
data.dungeons[RESOURCE_ID] = {
onCreateFloor = function(dungeonResId, floorNo)
print('onCreateFloor resID: ' .. dungeonResId)
local Floor = require('field.Floor')
local FloorEntity = require('field.FloorEntity')
local newFloor = Floor.new(dungeonResId, floorNo, 16, 9)
newFloor.name = new... |
local commandHandler = require("commandHandler")
local utils = require("miscUtils")
local groupUtils = require("groupUtils")
return {
name = "name",
description = "Displays or sets a group's name.",
usage = "<group number> [new name]",
visible = true,
botGuildPermissions = {"manageChannels"},
botChanne... |
local config = require 'goldsmith.config'
local job = require 'goldsmith.job'
local log = require 'goldsmith.log'
local cmds = require 'goldsmith.cmds'
local M = {}
function M.run(bang, args)
args = cmds.process_args(args)
local cmd = vim.list_extend({ 'go', 'test' }, args)
local opts = {}
if bang == '' then... |
-- fly system mk III
-- created and tested by Helldragger, have fun with it!
local function printDebug(msg)
msg = msg.."\n"
print(msg)
end
-- NEURAL INTERFACE REQUIRED
local modules = peripheral.find("neuralInterface")
if not modules then error("Must have a neural interface", 0) end
-- MODULES REQUIRED
if no... |
---@class ChatBubbles
C_ChatBubbles = {}
---@param includeForbidden boolean
---@return table chatBubbles
function C_ChatBubbles.GetAllChatBubbles(includeForbidden) end
|
ITEM.name = "Military-Grade Adhesive Tape"
ITEM.description = "A roll of adhesive tape."
ITEM.longdesc = ""
ITEM.model = "models/lostsignalproject/items/repair/armor_repair_fa.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.price = 900
ITEM.flatweight = 0.360
|
return {'kaaps','kaapverdiaan','kaapverdisch','kaapverdie','kaapverdier','kaag','kaai','kaaien','kaaier','kaaigeld','kaailoper','kaaiman','kaaimuur','kaaiwerker','kaak','kaakbeen','kaakchirurg','kaakchirurgie','kaakfractuur','kaakgewricht','kaakholte','kaakje','kaakklem','kaakkramp','kaaklijn','kaakmes','kaakontsteking... |
local Prop = {}
Prop.Name = "Subs Lake House 202"
Prop.Cat = "House"
Prop.Price = 340
Prop.Doors = {
Vector( 3920, -10008, -2803.75 ),
Vector( 3874, -10264, -2803.75 ),
Vector( 3740, -10264, -2803.75 ),
Vector( 3606, -10264, -2803.75 ),
}
GM.Property:Register( Prop ) |
local Particle = require('mob.particle')
local floor = math.floor
local newQuad = love.graphics.newQuad
local DeathPoof = {}
DeathPoof.__index = DeathPoof
setmetatable(DeathPoof, {__index = Particle})
DeathPoof.ANIMATION = {
---@diagnostic disable-next-line: redundant-parameter
newQuad(0, 0, 16, 16, 64, 16), ... |
modifier_night_stalker_blinding_gloom = class({})
--------------------------------------------------------------------------------
function modifier_night_stalker_blinding_gloom:IsHidden()
return false
end
--------------------------------------------------------------------------------
function modifier_night_stal... |
local function Close(s, e)
window = s.UserData
window.Close()
window.DelayedDelete()
window.Parent = nil
end
local function OpenToolBar(s, e)
local window = Gwen.ToolWindow.Create(this)
window.Padding = Gwen.Padding.Five
window.HorizontalAlignment = Gwen.HorizontalAlignment.Left
window.VerticalAlignment = G... |
local CLIENT = FindMetaTable("Player")
function CLIENT:LimbsImmune()
if (self:GetMoveType() == MOVETYPE_NOCLIP and self:GetMoveType() == MOVETYPE_LADDER) then
return true
end
return false
end
function CLIENT:IsNoclipping()
if(self:GetMoveType() == MOVETYPE_NOCLIP) then
return true
end
return false
end |
local ci = require_host("1.0")
local build = ci:require("git-cmake-c++")
return ci:create_package(
"silicium",
function ()
return function ()
build({
repository = "https://github.com/TyRoXx/silicium.git",
commit = "master"
})
end
end
)
|
local trigger = script.parent
function OnBeginOverlap(whichTrigger, other)
if other:IsA("Player") then
--print(whichTrigger.name .. ": Begin Trigger Overlap with " .. other.name)
end
end
function OnEndOverlap(whichTrigger, other)
if other:IsA("Player") then
--print(whichTrigger.name .. ": End Trigger Overlap w... |
--- @ignore
local tableCopy = table.Copy
local stringLower = string.lower
local stringFind = string.find
local TryT = LANG.TryTranslation
local virtualSubmenus = {}
CLGAMEMODEMENU.base = "base_gamemodemenu"
CLGAMEMODEMENU.icon = Material("vgui/ttt/vskin/helpscreen/changelog")
CLGAMEMODEMENU.title = "menu_changelog_... |
-- ------------------------------------------------
-- Update Checker for Rainmeter
-- v4.0.0
-- By raiguard
--
-- Modified form of 'semver.lua' by kikito (https://github.com/kikito/semver.lua)
--
-- ------------------------------------------------
--
-- Release Notes:
-- v4.0.0 - Removed hard-coded actions and replace... |
--- An object that loads chunks of strings on demand compatible with a subset
-- of the string API suitable for parsing.
--
-- Project URL: https://github.com/gilzoide/stringstream-lua
--
-- Example:
-- local stringstream = require 'stringstream'
--
-- -- Streams may be created with callable objects (funct... |
function range(from, to)
local stringify = false;
local result = {};
if (type(from) == 'string' and type(to) == 'string') then
stringify = true;
from = string.byte(from, 1);
to = string.byte(to, 1);
end
for i=from,to,1 do
table.insert(result, i);
end
if str... |
local StyleRoot = script.Parent
local UIBloxRoot = StyleRoot.Parent
local createSignal = require(UIBloxRoot.Utility.createSignal)
local AppStyle = {}
function AppStyle.new(style)
local self = {}
self.style = style
self.signal = createSignal()
setmetatable(self, {
__index = AppStyle,
})
return self
end
functi... |
local serialization = {}
-- Important: pretty formatting will allow presenting non-serializable values
-- but may generate output that cannot be unserialized back.
function serialization.serialize(value, pretty)
local kw = {["and"]=true, ["break"]=true, ["do"]=true, ["else"]=true,
["elseif"]=true, ["... |
-- Stuff related to the keyboard and game interface (not chat)
local interfaces = {
[72] = HelpInterface,
[76] = LeaderboardInterface,
[79] = OptionsInterface,
[80] = PowersInterface
}
local interfaces_ordered = {_count = 0}
local profile_request = {}
local update_at = 0
local previous_power_quantity = 0
local res... |
local MailMixin = {}
function MailMixin:GetName()
return "Mail"
end
function MailMixin:Init()
hooksecurefunc("OpenMailFrame_UpdateButtonPositions", function(...) self:OnMailFrameUpdateButtonPositions(...) end)
hooksecurefunc("SendMailFrame_Update", function(...) self:OnSendMailFrameUpdate(...) end)
hooks... |
-- 伤害类型
-- 这里写预设是为了编程时的方便性,实际上可以不写
CONST_DAMAGE_TYPE = {
common = "common",
physical = nil,
magic = nil,
fire = nil,
flame = nil,
soil = nil,
rock = nil,
sand = nil,
lava = nil,
water = nil,
ice = nil,
storm = nil,
wind = nil,
light = nil,
dark = nil,
wood... |
--
-- ClassMods - timers module
--
local L = LibStub("AceLocale-3.0"):GetLocale("ClassMods")
local LibAura = LibStub:GetLibrary("LibAuraUtil-1.0")
local select, mod, ceil, floor, min, tinsert, tremove = select, mod, ceil, floor, min, tinsert, tremove
local FRAMEPOOL = {} -- recycle frames
--[[
Quicksort is faster t... |
#!/usr/bin/env luajit
--[[
USAGE:
If you're on Linux, you can simply:
./ezsvg_example1.lua
If you're on Windows
luajit ezsvg_example1.lua
]]
package.path = "../?.lua;"..package.path;
require("svgcreate.svgelements")()
local FileStream = require("svgcreate.filestream")
local svgstream ... |
local stattrigger =
{
Properties =
{
EventToSend = { default = "BroadcastAlert", description = "The event to send." },
TriggerValue = { default = 50, description = "'EventToSend' will trigger when below this threshold." },
TriggerOnce = { default = true, description = "If set to false then it will fire continou... |
-- Simple text display
-- Part of Shuwarin GUI library
-- Copyright (c) 2039 Dark Energy Processor
--
-- 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 grante... |
slot2 = "BaseGameModule"
BaseGameModule = class(slot1)
BaseGameModule.ctor = function (slot0)
slot6 = slot0
eventMgr.add(slot2, eventMgr, GameEvent.HideAll2Reglogin, slot0.onHideAll2Reglogin)
end
BaseGameModule.onHideAll2Reglogin = function (slot0)
slot3 = slot0
if slot0.isShowing(slot2) then
slot3 = slot0
... |
RUN_TESTS = false
if RUN_TESTS then
print('Running tests')
end
local utility = nil
local json = nil
LOCALIZATION = nil
STATE = {
PATHS = {
RESOURCES = nil
},
SCROLLBAR = {
START = nil,
MAX_HEIGHT = nil,
HEIGHT = nil,
STEP = nil
},
NUM_SLOTS = 5,
LOGGING = false,
STACK = false,
SCRO... |
--[[
Pixel Vision 8 - New Template Script
Copyright (C) 2017, Pixel Vision 8 (@pixelvision8)
Created by Jesse Freeman (@jessefreeman)
This project was designed to display some basic instructions when you create
a new game. Simply delete the following code and implement your own Init(),
Update() and Draw()... |
local Slot = require('main.slots.slot')
local OverlaySlot = require('main.slots.overlay_slot')
local Slots
do
local _class_0
local _base_0 = {
update = function(self)
log('Updating slots')
return SKIN:Bang('[!UpdateMeterGroup "Slots"]')
end,
populate = function(self, games, startIndex)
... |
local zproto = require "zproto"
local proto = zproto:parse [[
r_hello 0x1001 {
.val:string 1
}
a_hello 0x1002 {
.val:string 1
}
r_sum 0x1003 {
.val1:integer 1
.val2:integer 2
.suffix:string 3
}
a_sum 0x1004 {
.val:integer 1
.suffix:string 2
}
]]
return proto
|
local entity = {}
entity["level"] = [[33]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Media]]
entity["spellDeck"][2] = [[]]
entity["spellDeck"][3] = [[Me Patra]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[Diarama]]
entity["spellDeck"][6] = [[]]
entity["heritage"] = {}
entity["heritage"][1] = [[Su... |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class AnimType
local AnimType = {
Birth = 0, --ANIM_TYPE_BIRTH
Death = 1, --ANIM_TYPE_DEATH
Decay = 2, --ANIM_TYPE_DECAY
Dissipate = 3, --ANIM_TYPE_DISSIPATE
Stand = 4, --ANIM_TYPE_STAND
Walk ... |
-- Any files in the libs/ folder will be automatically included on the server and/or client, depending on the prefix of the
-- file. There are a few conventions you'll want to follow when creating a library.
-- Your library should reside in the "ix" table.
ix.util.text = ix.util.text or {}
-- Your library functions ... |
local supported_sound_formats = { ".mp3",".ogg", ".it" }
--sets the volume of a single source or table of sources
function set_volume(source, new_volume)
if type(source) == "table" then
for _,v in pairs(source) do
set_volume(v, new_volume)
end
elseif type(source) ~= "number" then
source:setVolume... |
local url = {}
-- https://stackoverflow.com/questions/23590304/finding-a-url-in-a-string-lua-pattern
-- all characters allowed to be inside URL according to RFC 3986 but without
-- comma, semicolon, apostrophe, equal, brackets and parentheses
-- (as they are used frequently as URL separators)
function url.retrieve(me... |
--Year: 2009 Month:07 Day: 23 Hour: 10 Minute: 29 Second: 03
local LuaRecords={};
local recordIndex=0;
local GameAgentFactory=dofile(getDefaultScriptPath() .. "\\GameAgent.lua");
--The record in archive LuaRecords
recordIndex=recordIndex+1;
LuaRecords[recordIndex]=GameAgentFactory.create("CIAgent12");
LuaRecords[reco... |
project "lua_raspi_unicornhat"
language "C"
-- the library
includedirs { "unicornhat/python/rpi-ws281x/lib/" }
files {
"unicornhat/python/rpi-ws281x/lib/board_info.c",
"unicornhat/python/rpi-ws281x/lib/dma.c",
"unicornhat/python/rpi-ws281x/lib/mailbox.c",
"unicornhat/python/rpi-ws281x/lib/pwm.c",
"unicornhat/... |
local ObjectManager = require("managers.object.object_manager")
RaceTrackManager = require("screenplays.racetracks.racetrackengine")
mosespa_racetrack_screenplay = RaceTrack:new {
trackConfig={
debugMode = 0, -- 0 = off, 1 = print debug messages
planetName = "tatooine", -- The planet the Track is on
badgeToAwa... |
--@name Bumpmap Sphere
--@author Sparky
--@shared
local holo
if SERVER then
holo = holograms.create(chip():getPos()+Vector(0,0,50), chip():getAngles(), "models/Combine_Helicopter/helicopter_bomb01.mdl")
holo:setScale(Vector(0.1, 0.1, 0.1))
holo:setParent(chip())
hook.add("net","",function(name, len, pl)
net.st... |
GrailDatabase = {
["delayEventsHandled"] = true,
["BadQuestData"] = {
"G97|51037|0|Faction:Horde", -- [1]
"G97|CN|28153|G[51513][6]={'83710','21210','0432','0442','04C2','0512','38F2','46D2','5482'}", -- [2]
"G97|CN|28153|G[51514][6]={'837350','212350','04387','04487','04C87','05187','38F87','46D87','54887'}",... |
local playsession = {
{"matam666", {71301}},
{"Scuideie-Guy", {71854}},
{"brygjold", {70666}},
{"yukinyaa", {46506}},
{"pandemiccarp743", {32347}},
{"ChanOng", {1327}},
{"3615-Motiok", {13300}},
{"zbirka", {6904}}
}
return playsession |
--- Init `package.path`.
-- Current work dir: grpc-lua/examples/route_guide
package.path = "json.lua-0.1.0/?.lua;" .. package.path
package.path = "inspect.lua-3.1.0/?.lua;" .. package.path
package.path = "../../src/lua/?.lua;" .. package.path
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.