content stringlengths 5 1.05M |
|---|
local L = LibStub("AceLocale-3.0"):NewLocale("Skada", "frFR", false)
if not L then return end
L["Absorb"] = "Absorbe"
L["Absorb details"] = "Détails d'absorption"
L["Absorbed"] = "Absorbé"
L["Absorbs"] = "Absorptions"
L["Absorbs and healing"] = "Absorptions et soins"
L["Absorb spells"] = "Sorts d'absorption"
... |
-- helpers --
local nexec = vim.api.nvim_exec
--Remap escape to leave terminal mode
nexec([[
augroup Terminal
autocmd!
au TermOpen * tnoremap <buffer> <Esc> <c-\><c-n>
au TermOpen * set nonu
augroup end
]], false)
nexec([[
augroup Packer
autocmd!
autocmd BufWritePost init.lua PackerCompile
augroup end
]], ... |
local gradient = ix.util.GetMaterial("vgui/gradient-r.vtf")
local PANEL = {}
function PANEL:Init()
if (IsValid(ix.gui.intro)) then
ix.gui.intro:Remove()
end
ix.gui.intro = self
self:SetSize(ScrW(), ScrH())
self:SetZPos(9999)
self.loaded = false
end
function PANEL:StartIntro()
LocalPlayer():EmitSound("music... |
--- @module CacheDestroyMgr 枪械模块:缓存管理
--- @copyright Lilith Games, Avatar Team
--- @author Sharif Ma
local CacheDestroyMgr = {}
--- 初始化
function CacheDestroyMgr:Init()
this = self
self:InitListeners()
self.allCacheList = {}
world.OnPlayerRemoved:Connect(
function(_player)
self:Playe... |
lullaby = {
cast = function(player, target)
local duration = 8000 * 2
local magicCost = 300
if (not player:canCast(1, 1, 0)) then
return
end
if (player.magic < magicCost) then
player:sendMinitext("Your will is too weak.")
return
end
if (player.magic < magicCost) then
player:sendMinitext("Y... |
stage1 = function()
gameQuestEvent.state1()
-- 小神木商店
FIRST_SHOP = hunit.create({
whichPlayer = hplayer.player_passive,
id = hslk.n2i("小神木商店"),
x = -7040,
y = -8317,
facing = 270,
})
-- 土匪
henemy.create({
id = hslk.n2i("土匪"),
x = -6057,
... |
pg = pg or {}
pg.enemy_data_statistics_298 = {
[14102007] = {
cannon = 60,
reload = 150,
speed_growth = 0,
cannon_growth = 0,
pilot_ai_template_id = 80000,
air = 0,
battle_unit_type = 15,
dodge = 0,
base = 80,
durability_growth = 2550,
antiaircraft = 0,
reload_growth = 0,
dodge_growth = 0,
... |
local basetypes = { "I1", "I2", "I4", "I8", "F4", "F8" }
local X = {}
for _, basetype in ipairs(basetypes) do
X[basetype] = true
end
local function is_base_qtype (qtype)
assert(type(qtype) == "string")
if X[qtype] then return true else return false end
end
return is_base_qtype
|
function KDefender_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("KDefender_Cleave", 11000, 0)
end
function KDefender_Cleave(Unit,Event)
Unit:FullCastSpellOnTarget(15496,Unit:GetMainTank())
end
function KDefender_OnLeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
function KDefender_OnDied(Unit,Event)
Unit:RemoveEv... |
local particleSystem={allowParticles=true}
local debugStmt=require "helperScripts.printDebugStmt"
-- local toast=require "scripts.helperScripts.toast"
local particleSystem_mt={__index=particleSystem}--particle system metatable
local myMath={
atan2=math.atan2,
abs=math.abs,
deg=math.deg,
rad=math.rad,
random=mat... |
-- vim: nospell:sta:et:sw=2:ts=2:sts=2
require "thing"
Sym={show="Sym"}
function Sym.new(i)
return also(i,
Thing.new{ me=Sym, seen={}, mode=nil,most=0})
end
function Sym.prep(x) return x end
function Sym.add1(i,x)
local new= (i.seen[x] or 0) + 1
i.seen[x] = new
if new > i.most then i.most, i.mode = new... |
--[[
命令桶算法
--]]
-- 获取唯一值Key
local key = KEYS[1];
-- 获取可请求次数
local limit = tonumber(KEYS[2]);
-- 获取递减步长
local step = tonumber(KEYS[3]);
-- 获取单位时间(间隔时间)
local interval = tonumber(KEYS[4]);
-- 获取当期时间
local nowTime = tonumber(KEYS[5]);
local value = 1;
local lastClearTimeKey = 'limiter-last-clear-time'..key
local lastClea... |
-- Dialogue for NPC "npc_loganthird4"
loadDialogue = function(DL)
if (not DL:isConditionFulfilled("npc_loganthird4", "talked")) then
DL:setRoot(1)
else
DL:setRoot(4)
end
if (not DL:isConditionFulfilled("npc_loganthird4", "talked")) then
DL:createNPCNode(1, 2, "DL_Logan_Over") -- Wh... What is this..... |
local L = LibStub("AceLocale-3.0"):NewLocale("LibEncounters", "enUS", true)
if not L then return end
--- Encounter Names ---
L["Razorgore the Untamed"] = true
L["Vaelastrasz the Corrupt"] = true
L["Broodlord Lashlayer"] = true
L["Firemaw"] = true
L["Ebonroc"] = true
L["Flamegor"] = true
L["Chromaggus"] = true
L["Nefar... |
---@class IsoGameCharacter.XP : zombie.characters.IsoGameCharacter.XP
---@field public level int
---@field public lastlevel int
---@field public TotalXP float
---@field public XPMap HashMap|PerkFactory.Perks|Float
---@field public XPMapMultiplier HashMap|Unknown|Unknown
---@field chr IsoGameCharacter
IsoGameCharacter_X... |
--[[
This paper is from the offcial implementation on torch
This file implements Batch Normalization as described in the paper:
"Batch Normalization: Accelerating Deep Network Training
by Reducing Internal Covariate Shift"
by Sergey Ioffe, Christian Szegedy
This implem... |
--[[
GD50
Super Mario Bros. Remake
-- Player Class --
Author: Colton Ogden
cogden@cs50.harvard.edu
]]
Player = Class{__includes = Entity}
function Player:init(def)
Entity.init(self, def)
self.score = def.score
self.key = 0
self.goal = 0
self.victory = false
self.gameOver = false
self.killCount = {0... |
-- module path
-- This is modelled after Python's os.path library (11.1)
-- Steve Donovan,2007
-- imports and locals
local _G = _G
local sub = string.sub
local getenv = os.getenv
local attributes
local currentdir
local _package = package
local io = io
local append = table.insert
local ipairs = ipairs
... |
data:extend(
{
{
type = "technology",
name = "personal-roboport-expansion",
icon = "__base__/graphics/icons/personal-roboport-equipment.png",
prerequisites = {"automation"},
effects =
{
{
type = "unlock-recipe",
recipe = "personal-roboport-module-chargingpole"
... |
local class = require('common/utils/class')
local WorldItem = require('common/models/WorldItem')
local VectorUtils = require('common/utils/VectorUtils')
local WorldItemManager = class(function (self)
self.worldItems = {}
end)
function WorldItemManager:create(item, prop)
local world_item = WorldItem(item, prop... |
object_tangible_food_generic_dish_wastril_bread = object_tangible_food_generic_shared_dish_wastril_bread:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dish_wastril_bread, "object/tangible/food/generic/dish_wastril_bread.iff")
|
return function(Sunshine, ...)
warn("Sunshine:sceneLoad is deprecated. The closest implementation you can use Sunshine:sceneUnload")
Sunshine:sceneUnload(...)
end |
-- love.load() is not called again, put stuff here.
local meta = require("meta")
love.window.setTitle(meta.title)
love.keyboard.setKeyRepeat(true)
love.graphics.setDefaultFilter("nearest", "nearest", 1)
love.graphics.setBackgroundColor(0.1, 0.1, 0.1)
local fonts = require("fonts")
love.graphics.setFont(fonts.font)... |
function love.conf(t)
t.gammacorrect = true
end
|
local warn = print
local format = string.format
local meta = {}
---Table for every defined namespace
local namespaces = {}
---Table for every defined class
local names = {}
---Table for every class
local classes = {}
---Table for every class object created
local objects = setmetatable({}, {__mode = 'k'})
local functi... |
function util.GetEntitySides(entity)
local min = entity:OBBMins()
local pos, ang = entity:GetPos(), entity:GetAngles()
local sides = {
top = pos + (ang:Forward() * min.x),
bottom = pos + (ang:Forward() * -min.x),
left = pos + (ang:Right() * -min.y),
right = pos + (ang:Right() * min.y)
}
return sides
... |
local root = "../"
local skynetroot = root.."skynet/"
package.path = skynetroot.."lualib/?.lua;"
package.cpath = skynetroot.."luaclib/?.so;"
local parser = require "sprotoparser"
local protoDir = root .. "sproto/"
local spbDir = root .. "spb/"
local sprotoGen = {}
function sprotoGen.create(files)
... |
object_tangible_loot_creature_loot_collections_tusken_talisman = object_tangible_loot_creature_loot_collections_shared_tusken_talisman:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_tusken_talisman, "object/tangible/loot/creature/loot/collections/tusken_talisman.iff")
|
local LANG = {}
-- English Section
LANG["ko_kr"] = {
-- setting menu
["LPS_GENERAL_SETTINGS"] = "General Settings",
["LPS_APPEARANCES"] = "Appearances",
["LPS_WEAPON_SETTINGS"] = "Last Stands Weapon Setting",
["LPS_MENU_ENABLE"] = "Enable Last Prop Standing",
["LPS_EN... |
lake_background=Class(background)
function lake_background:init()
background.init(self,false)
LoadTexture('lake_leaf','THlib\\background\\lake\\lake_1.png')
LoadImage('lake_leaf','lake_leaf',0,0,256,256)
LoadTexture('lake_b1','THlib\\background\\lake\\lake_2.png')
LoadImage('lake_b1','lake_b1',0,0,256,256)
LoadT... |
local _, nMainbar = ...
local cfg = nMainbar.Config
|
seizure = 0
function love.update(dt)
timer:update(dt)
-- sets the "seizure" variable, which is created by beat detection
local smpl, beatline, tempo = getBeat()
if smpl == 1 then
seizure = 1
else
seizure = math.approach2(seizure, 0, 3*dt)
end
-- update joystick axes dete... |
local lbs = lbs
local find = string.find
local method = ngx.req.get_method()
local getArgs = ngx.ctx.qs
if getArgs==nil then
getArgs = ngx.req.get_uri_args()
end
local where = ""
if getArgs.where then
where = getArgs.where
if find(where," ") then
return ngx.exit(500)
end
end
local cnd = "_id=".... |
LoadConfig()
ValidateConfig()
ExecuteConfig()
AddEventHandler('onResourceStop', function (name)
if name == GetCurrentResourceName() then
ExecuteConfig(RemoveRoleAce, RemoveRolePrincipal)
end
end)
AddEventHandler('playerConnecting', function (name, setKickReason, deferrals)
local src = source
local identif... |
function ShallowCopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in pairs(orig) do
copy[orig_key] = orig_value
end
else -- number, string, boolean, etc
copy = orig
end
return copy
end
f... |
-- This is a vimdoc custom writer for pandoc.
-- It produces output that can be used as vimdoc documentation
--
-- Invoke with: pandoc -t panvimdoc.lua README.md
local pipe = pandoc.pipe
local stringify = (require 'pandoc.utils').stringify
-- local inspect = require 'inspect'
function dump(s)
print(require'scripts.i... |
function guiMemoSetParser(memo, parser)
if not scheck("u:element:gui-memo,?f") then return false end
return guiSetInternalData(memo, "parser", parser)
end
function guiMemoGetParser(memo)
if not scheck("u:element:gui-memo") then return false end
return guiGetInternalData(memo, "parser")
end
function guiMemoGetP... |
--[[
Carbon for Lua
#class Promise
#description {
Implements a model for asynchronous tasks via promises.
A type of `Promise<T>` is a Promise that returns the given type, `T`.
}
]]
local Carbon = (...)
local OOP = Carbon.OOP
local unpack = unpack or table.unpack
local Promise = OOP:Class()
:Members {
__... |
--
-- Minetest player cloaking mod: "Cloaked chat"
--
-- Copyright © 2019 by luk3yx
--
cloaking.chat = {prefix = '-Cloaked-'}
-- Send a message to all players with the "cloaking" privilege.
function cloaking.chat.send(msg)
-- Add the "cloaked chat" prefix and remove newlines.
msg = msg:gsub('[\r\n]', ' ')
... |
--Builds floors of specified width and length of a desired pattern
function _in(val, tab)
-- determines if a value is in a table
-- WHY is this not builtin?!?!
for index, value in ipairs (tab) do
if value == val then
return true
end
end
return false
end
-- if not os.loadAPI("apis/lama") t... |
local re2 = require "lua-re2"
local string_fmt = string.format
local io_write = io.write
local pat_str
local text_str
local capture_str
local function print_result(id, r)
io_write(string_fmt("Test %d %s\n", id, r and "succ" or "fail"));
end
-- Test match without or ignore capture. The result is supposed to be
--... |
AddCSLuaFile()
local DbgPrint = GetLogging("MapScript")
local MAPSCRIPT = {}
MAPSCRIPT.PlayersLocked = false
MAPSCRIPT.DefaultLoadout =
{
Weapons = {},
Ammo = {},
Armor = 30,
HEV = false,
}
MAPSCRIPT.InputFilters =
{
["logic_fade_view"] = {"Trigger"},
["door_inside_secret"] = {"Close", "Lock"... |
local t = My.Translator.translate
-- This is the squadron that supports the player in the defense of the fortress
local callSign = function(fleetNr, shipNr)
local name = ""
if fleetNr == 1 then name = name .. "Red"
elseif fleetNr == 2 then name = name .. "Blue"
end
name = name .. " "
if shipNr... |
local M = {}
local function split(result, sep)
local sep, fields = sep or ":", {}
local pattern = result.format("([^%s]+)", sep)
result:gsub(
pattern,
function(c)
fields[#fields + 1] = c
end
)
return fields
end
local function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
function M.... |
local assets=
{
Asset("ANIM", "anim/telewarper_staff.zip"),
Asset("ANIM", "anim/swap_telewarper_staff.zip"),
Asset("ATLAS", "images/inventoryimages/telewarper_staff.xml"),
Asset("IMAGE", "images/inventoryimages/telewarper_staff.tex"),
}
local function onequip(inst, owner)
owner.AnimSt... |
local layerBase = require("games/common2/module/layerBase");
local SilverLayer = class(layerBase);
SilverLayer.ctor = function ( self )
end
SilverLayer.dtor = function ( self )
end
SilverLayer.parseViewConfig = function(self)
local viewConfig = {
["onlooker"] = {};
};
return viewConfig;
en... |
return {
adapters = {
type = "executable",
command = vim.fn.glob "$XDG_DATA_HOME/virtualenvs/debugpy/bin/python",
-- command = ".config/virtualenvs/debugpy".
args = { "-m", "debugpy.adapter" }
},
configurations = {
{
type = "python",
request = "launch",
name = "Launch file",
... |
require("test/bustedhelper_ingame")
local particle = require("ingame/particle")
describe('particle', function ()
local function dummy_size_ratio_over_lifetime(life_ratio)
return life_ratio
end
describe('init', function ()
it('should create an particle with frame_lifetime, initial_position, initial_fra... |
set_project("libiconv")
add_rules("mode.debug", "mode.release")
set_configvar("PACKAGE", "libiconv")
set_configvar("PACKAGE_NAME", "libiconv")
set_configvar("PACKAGE_TARNAME", "libiconv")
set_configvar("PACKAGE_BUGREPORT", "")
set_configvar("PACKAGE_URL", "")
option("relocatable")
set_default(true)
set_showm... |
--[[
/////// //////////////////
/////// 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... |
ENT.Type = "anim"
ENT.Base = "base_rd_entity" |
if(GetRealmName() == "Kromcrush")then
WP_Database = {
["Stompzz"] = "LT:785/98%SB:821/99%LM:979/98%",
["Slickers"] = "ST:822/99%SB:846/99%SM:987/99%",
["Cammac"] = "LT:787/98%SB:838/99%SM:1034/99%",
["Reddy"] = "ST:831/99%SB:839/99%SM:1029/99%",
["Doloin"] = "ST:798/99%SB:861/99%SM:1034/99%",
["Girthboyslim"] = "LT:786... |
--[[
Reused with permission from github.com/lavalibs/lavaqueue
MIT License
Copyright (c) 2018 Will Nelson
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 l... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
TRAIT.name = "Paranoid";
TRAIT.opposite = "Trusting";
TRAIT.description = "How do I know you arent trying to hurt me?";
TRAIT.category = "Mentality";
TRAIT.icon = "materials/terranova/ui/traits/paranoid.png";
TRAIT.... |
require('quest')
-- Quest to kill at least four uniques.
local function wispe_uniques_start_fn()
add_message_with_pause("WISPE_UNIQUES_QUEST_START_SID")
add_message_with_pause("WISPE_UNIQUES_QUEST_START2_SID")
clear_and_add_message("WISPE_UNIQUES_QUEST_START3_SID")
end
local function wispe_uniques_completion_co... |
local conf = {}
conf.port = 8080
conf.map = "fantasy/tavern1"
conf.start_x = 1400
conf.start_y = 1540
return conf
|
-- Initialization for YouBot
function sysCall_init()
-- Get YouBot Handle
you_bot = sim.getObjectHandle('youBot')
-- Prepare initial values for four wheels
wheel_joints = {-1,-1,-1,-1} -- front left, rear left, rear right, front right
wheel_joints[1] = sim.getObjectHandle('rollingJoint_fl')
... |
local class = require 'middleclass'
local lume = require 'lume'
-- 種コンポーネントクラス
local Base = require 'components.Base'
local Leaf = class('Leaf', Base)
Leaf:include(require 'Growth')
-- 初期化
function Leaf:initialize(t)
-- Component
t.updatable = t.updatable == nil and true or t.updatable
t.drawable = t.dra... |
-- Create a one-off explosion
SoundDB.Play('Explosions', '9 - Missile Explo', {
position = Camera:GetPosition(),
angle = Angle()
})
-- Grab a reference to the sound meta data
local soundDef = SoundDB.Sounds['Adaptive Music']['Def_Agentish_Combat']
-- Create our music sound object
local sound = SoundDB.Create('Adapt... |
local ts = Classes.TranslatedString
local combatAbilityGroupTitle = {
[0] = ts:Create("h5fb2ef9cg4258g446eg9522gd6be58f3ab23", "Weapons"), -- May be a different handle
[1] = ts:Create("ha65cecedg819dg4d17g9f0ag1bf646ec4f6c", "Defence"),
[2] = ts:Create("hb5277ad5gafbcg4f31g8022gaeedf7a516aa", "Skills"), -- May be a... |
-- Allows not to open the command menu if the player is in front of the door.
-- This avoids conflict with the DarkRP's door menu.
-- Source : https://github.com/FPtje/DarkRP/blob/db3bfc6e838fbeba7efcb6732a342a16707089a6/entities/weapons/keys/cl_menu.lua#L49
hook.Add("FScript.CanOpenPlayerMenu", "FScript.PlayerMenuRest... |
ITEM.name = "Terrible Firearm Manners"
ITEM.model = "models/props_lab/binderredlabel.mdl"
ITEM.attribute = "gunskill"
ITEM.attributeAmount = 1
ITEM.price = 100000 |
local K = unpack(select(2,...))
local _G = _G
local string_gmatch = _G.string.gmatch
local CreateFrame = _G.CreateFrame
local UI_COMMANDS = {
"• '/align' - Bring up a grid system to align things",
"• '/cfg' - Bring up KkthnxUI config",
"• '/checkquest' - Easy way to check if you completed a quest with th... |
--dir names
if WG then
LIBS_DIR = WG.SB_LIBS_DIR
SB = WG.SB
-- Scene = WG.Scene
else
LIBS_DIR = GG.SB_LIBS_DIR
SB = GG.SB
end
LUAUI_DIR = "LuaUI/"
SB_DIR = "scen_edit/"
SB_COMMAND_DIR = SB_DIR .. "command/"
SB_IMG_DIR = LUAUI_DIR .. "images/scenedit/"
SB_ROOT = "springboard/"
SB_PROJECTS_DIR = SB_ROOT .. "proje... |
local type = type
local assert = assert
local find = string.find
---comment 可以用来控制`before`方法内的行为.
local HTTP = {}
---comment 允许`httpd.before`通过(passed)
function HTTP.ok()
return 200
end
---comment 此方法可以让开发者在`httpd.before`函数内重定向.
---@param code integer @重定向的HTTP状态码(301,302,303,307,308)
---@param url string @重定向的ur... |
local M = {}
local layout_config = function ()
return {
width = 0.90,
height = 0.85,
preview_cutoff = 120,
prompt_position = "bottom",
horizontal = {
preview_width = function(_, cols, _)
if cols > 200 then
return math.floor(cols * 0.5)
else
return math.fl... |
local helpers = require('test.functional.helpers')(after_each)
local eq, eval, clear, write_file, execute, source, insert =
helpers.eq, helpers.eval, helpers.clear, helpers.write_file,
helpers.execute, helpers.source, helpers.insert
if helpers.pending_win32(pending) then return end
describe(':write', function()
... |
function onCreate()
-- background shit
makeLuaSprite('stageback', 'discharge', -500, -300);
setLuaSpriteScrollFactor('discharge', 0.9, 0.9);
makeLuaSprite('stage front', 'stage front', -650, 600);
setLuaSpriteScrollFactor('stage front', 0.9, 0.9);
scaleObject('stage front', 1.1, 1.1);
-- sprites that... |
local util = require 'util'
local augs_util = require 'augs/util'
local function create(text, size, color, x, y, lifetime)
local obj = { text = text
; color = color
; x = x
; y = y
; augs = {}
; size = size
; lifetime... |
require 'dp'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a Language Model on BillionWords dataset using a Neural Network and SoftmaxTree')
cmd:text('The network contains 3 or more layers. An input dictionary, one ore many dense hidden layer, and a fully connected output layer')
cmd... |
local Pack = require('pack')
local Mob = {}
Mob.__index = Mob
local min, max = math.min, math.max
function Mob.new()
return setmetatable({
module = 'mob',
is_alive = true,
tags = {},
id = nil,
x = 0,
y = 0,
angle = 0,
xspd = 0,
yspd = 0,
... |
-----------------------------------
-- Area: Gustav Tunnel (212)
-- Mob: Baronial Bat
-- Note: Popped by qm1
-- !pos 56 -1 16 212
-- Involved in Quest: Cloak and Dagger
-----------------------------------
require("scripts/globals/wsquest")
-----------------------------------
function onMobInitialize(mob)
mob:setM... |
function string.starts(String,Start)
if ( _ACTION ) then
return string.sub(String,1,string.len(Start))==Start
end
return false
end
function is_vs()
return ( string.starts(_ACTION,"vs") )
end
configuration "windows"
links { }
platforms {"x64"}
configuration "linux"
links { }
configuration "macosx"
... |
RankingBoard = {}
RankingBoard.__index = RankingBoard
RankingBoard.instances = {}
local screenWidth, screenHeight = guiGetScreenSize()
local topDistance = 250
local bottomDistance = 0.23*screenHeight
local posLeftDistance = 30
local nameLeftDistance = 60
local labelHeight = 20
local maxPositions = math.floor((screenH... |
local classes = require "klib.classes"
local Compound = require("klib.gui.compound").Compound
local m = classes.module "klib.gui.container"
local Container = classes.class(m, "Container", Compound)
-- Private fields.
local p_id2child = { }
function Container:init()
Compound.init(self, { })
end
function Containe... |
--[[
Name: init.lua
For: SantosRP
By: TalosLife
]]--
AddCSLuaFile "cl_init.lua"
AddCSLuaFile "shared.lua"
include "shared.lua"
local baseModel = "models/props_unique/coffeemachine01.mdl"
local powerBtnData = { mdl = 'models/maxofs2d/button_01.mdl', pos = Vector('8.500417 4.349771 18.218307'), ang = Angle('90.000 8... |
local function init()
-- Theme settings
vim.g.tokyonight_style = "night"
vim.g.tokyonight_italic_functions = true
vim.g.tokyonight_sidebars = { "qf", "vista_kind", "terminal", "packer" }
-- Load colorscheme
vim.cmd[[colorscheme tokyonight]]
end
return {
init = init
}
|
ENT.Type = "anim"
ENT.PrintName = "Special box"
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
ENT.Category = "Metrostroi (utility)"
ENT.Spawnable = true
ENT.AdminSpawnable = false
|
dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua")
dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua")
|
local heart = require("heart")
local M = heart.class.newClass()
function M:init(engine, config)
self.engine = assert(engine)
self.levelDomain = assert(self.engine.domains.level)
self.color = config.color or {0, 1, 0, 1}
end
function M:handleEvent(viewportId)
local r, g, b, a = love.graphics.getColor()
love... |
-------------------------------------------
------- EDITED BY GITHUB.COM/AVAN0X -------
--------------- AvaN0x#6348 ---------------
-------------------------------------------
--================================================================================================
--== VARIABLE... |
fixer_missions =
{
{
missionType = "deliver",
primarySpawns =
{
{ npcTemplate = "vezz_kommani", npcName = "Vezz Kommani" }
},
secondarySpawns = {},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/fixer_q1_needed.iff", itemName = "Power Coupling" }
},
rewards =
... |
--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local tempban = {}
local mattata = require('mattata')
function tempban:init()
tempban.commands = mattata.commands(self.info.username):command('tempban').table
tempban.help ... |
function love.conf(t)
t.window.width = 640
t.window.height = 400
t.title = "Killer Librarian 2: Vengeance"
end
|
local version = {
major = 1,
minor = 0,
patch = 0,
build = 572,
}
return string.format( "%d.%d.%d.%d", version.major, version.minor, version.patch, version.build );
|
addon.name = 'Runehelper';
addon.author = 'GetAwayCoxn';
addon.version = '1.03';
addon.desc = 'Does runefencer things.';
addon.link = 'https://github.com/GetAwayCoxn/Rune-Helper';
require('common');
local imgui = require('imgui');
local Towns = T{'Tavnazian Safehold','Al Zahbi','Aht Urhgan Whitega... |
-- fontmetrics.lua
--
-- Version 0.3
--
-- Copyright (C) 2011 David I. Gross. All Rights Reserved.
--
--[[
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 lim... |
/*
* @package : rlib
* @module : rcore
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (c) 2018 - 2020
* @since : 1.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
* @file : sh_confi... |
--[[
Copyright 2021 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... |
string1 = "this is string1"
string2 = "this is string2"
print(string1, string2)
html = [[
<h1>hello world</h1>
]]
print(html)
print("2" + 6)
print("2" + "6")
print("2" * "6")
print("2" .. "6") |
wifi.setmode(wifi.STATION)
wifi.sta.config(wifi_ssid,wifi_pw)
wifi.sta.autoconnect(1)
wifi.sta.eventMonReg(wifi.STA_GOTIP, function()
print(wifi.sta.getip())
dofile("foobar.lua")
end)
wifi.sta.eventMonStart()
wifi.sta.connect()
|
-- Meteorite Arrow
local s, id = GetID()
function s.initial_effect( c )
-- -- activate
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND + CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(s.target)
e1:S... |
local s = require('say')
s:set_namespace("en")
-- "Pending: test.lua @ 12 \n description
s:set("output.pending", "Pending")
s:set("output.failure", "Failure")
s:set("output.success", "Success")
s:set("output.pending_plural", "pending")
s:set("output.failure_plural", "failures")
s:set("output.success_plural", "succes... |
local vm = require 'vm.vm'
local files = require 'files'
local ws = require 'workspace'
local guide = require 'parser.guide'
local await = require 'await'
local config = require 'config'
local m = {}
function m.searchFileReturn(results, ast, index)
local returns = ast.returns
if not returns t... |
kCystHealth = 70
kCystArmor = 0
kMatureCystHealth = 450
kMatureCystArmor = 0
|
require("strict")
require("capture")
require("fileOps")
MF_Base = require("MF_Base")
local concatTbl = table.concat
local dbg = require("Dbg"):dbg()
local i18n = require("i18n")
local replaceStr = require("replaceStr")
local validShellT =
{
tcsh = "tcsh",
csh = "tcsh",... |
require 'dp'
require 'hdf5'
path = require 'pl.path'
gm = require 'graphicsmagick'
Dataset = {}
local MNIST, parent = torch.class("Dataset.MNIST")
function MNIST:__init(hdf5path, mode)
self.f = hdf5.open(hdf5path)
local all = self.f:all()
self.label = all['label_'..mode]:float():add(1)
self.data = all['da... |
local ffi = require("ffi")
require("lj2zydis.ffi.CommonTypes")
ffi.cdef[[
static const int ZYDIS_MAX_INSTRUCTION_LENGTH = 15;
static const int ZYDIS_MAX_OPERAND_COUNT = 10;
]]
ffi.cdef[[
typedef ZydisU8 ZydisMachineMode;
enum ZydisMachineModes
{
ZYDIS_MACHINE_MODE_INVALID,
ZYDIS_MACHINE_MODE_LONG_64,
... |
-- nginx can restart workers byself so we should monitor only root process
-- If it crash then we need close all childs and restart nginx
----------------------------------------------------------------------------------
local Service = require "LuaService"
local uv = require "lluv"
local psapi = require "pdh.p... |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(50)
local playerCoords = GetEntityCoords(PlayerPedId())
local vehicle = GetClos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.