content stringlengths 5 1.05M |
|---|
local playsession = {
{"KIRkomMAX", {580965}},
{"tykak", {809821}},
{"Atoms", {778096}},
{"LoSti66", {752877}},
{"TXL_PLAYZ", {751810}},
{"PanPyraPL", {720791}},
{"shakaman", {269723}},
{"DollBooth", {705993}},
{"PaulinatorNo1", {8224}},
{"RonnDlear", {710835}},
{"tomoyaokada", {2706}},
{"Alias_lives", {521... |
project "UI-microui"
AddModuleConfig()
uuid "0A8BBDB1-3A5C-4C6B-8258-11B49FC4934F"
pchheader "stdafx_microui.h"
pchsource "../src/stdafx_microui.cpp"
removeflags { "FatalCompileWarnings" }
includedirs
{
"../Externals/microui/src",
}
|
if modifier_reality_rift_armor_reduction_talent == nil then
modifier_reality_rift_armor_reduction_talent = class({})
end
function modifier_reality_rift_armor_reduction_talent:IsHidden()
return true
end
function modifier_reality_rift_armor_reduction_talent:IsPurgable()
return false
end
function modifier_real... |
local InviteDetailItem = class("InviteDetailItem", BaseUI)
function InviteDetailItem:init()
end
--msg {userid,recharge,reward}
function InviteDetailItem:update(index,data)
self.txt_friendID.text = data.userid
self.txt_totalReward.text = FormatCoins(data.recharge)
self.txt_available.text = FormatCoins(data.rew... |
function Size800x600()
DisplaySize(800, 600)
end
function Size1200x900()
DisplaySize(1200, 900)
end
function SizeFullscreen()
FullScreen()
end
function ReturnOptions()
CloseScene()
end |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local feed = helpers.feed
local command = helpers.command
local eq = helpers.eq
local eval = helpers.eval
local sleep = helpers.sleep
local expect = helpers.expect
describe("'pastetoggle' option", function()
before_each(funct... |
-- Create teams and set time
addEventHandler ( "onResourceStart", resourceRoot,
function ()
setGameType( "CnR/RP/DM" )
setMapName ( "San Andreas" )
setOcclusionsEnabled( false )
local query = exports.DENmysql:query("SELECT * FROM teams ORDER BY list ASC")
createTeam("Staff",255,255,255)
for k,v in ipairs(q... |
include "wac/keyboard.lua"
local panel={}
local editTime=0
surface.CreateFont("wac_keypanel", {
font = "Tahoma",
size = 14
})
function panel:Init()
self:SetKeyboardInputEnabled(false)
self:SetMouseInputEnabled(false)
local w,h = self:GetParent():GetWide(),20
self:SetSize(w,h)
self.label = vgu... |
--- This module performs an undirected breadth-first search to a location
-- which passes a heuristic. This stops early if the depth exceeds a given
-- amount.
local constants = require('utils/constants')
local flood_paths = {}
-- These constants specify the format of the nodes
local IND_VECTOR = 1 ... |
local PARAMS = {...}
local function getFlag(flag)
for _, v in ipairs(PARAMS) do
if v == flag then
return true
end
end
return false
end
local OUTPUT_PATH = assert(PARAMS[1], "No output path specified")
local VERSION = assert(PARAMS[2], "No version specified")
local DEBUG_MODE = getFlag("debug")
local VERBOSE... |
ENT.Type = "anim"
ENT.Base = "base_rd3_entity"
ENT.PrintName = "Liquid Nitrogen Generator"
ENT.AutomaticFrameAdvance = true
list.Set("LSEntOverlayText", "generator_liquid_nitrogen", { HasOOO = true, resnames = { "energy", "nitrogen" }, genresnames = { "liquid nitrogen" } })
|
AddEventHandler('onClientGameTypeStart', function()
TriggerEvent('chat:addMessage', {
color = {0,255,179},
multiline = true,
args = {'[SpirGo-Locatie]', 'started succesfully, check f8',}
})
end)
if (config.enabledAmmo == true) then
Citizen.CreateThread(function()
... |
function createPetConversationTemplate(personality, templatename)
pet_convotemplate = ConvoTemplate:new {
initialScreen = "convoscreenpetinfo",
templateType = "Personality",
screens = {}
}
pet_convoscreenpetinfo = ConvoScreen:new {
id = "convoscreenpetinfo",
leftDialog = "@hireling/"..personality..":start_... |
local player = ...
local pn = ToEnumShortString(player)
local width = 16
local height = 250
local _x = _screen.cx + (player==PLAYER_1 and -1 or 1) * SL_WideScale(302, 400)
-- if double
if GAMESTATE:GetCurrentStyle():GetStyleType() == "StyleType_OnePlayerTwoSides"
-- or center1player preference is enabled and only one... |
-- Environnement
local Kerviel = LibStub('AceAddon-3.0'):GetAddon('Kerviel')
local module = Kerviel:NewModule('tooltip', 'AceHook-3.0')
local L = LibStub('AceLocale-3.0'):GetLocale('Kerviel')
local LibExtraTip = LibStub('LibExtraTip-1')
-- Données
local SHOW_NOT = 0 -- Ne pas montrer dans le t... |
local Modules = script.Parent.Parent.Parent
local Rodux = require(Modules.Rodux)
return Rodux.createReducer({}, {
loadStylebook = function(state, action)
return {
roact = action.roact,
components = action.components,
parent = action.parent,
}
end,
setTree = function(state, action)
return {
roact =... |
Sprite = setmetatable({}, Sprite)
Sprite.__index = Sprite
Sprite.__call = function() return "Sprite" end
function Sprite.New(TxtDictionary, TxtName, X, Y, Width, Height, Heading, R, G, B, A)
local _Sprite = {
TxtDictionary = tostring(TxtDictionary),
TxtName = tostring(TxtName),
X = tonumber(X) or 0,
... |
local playerPed = nil
local plyCoords = nil
local targetCoords = nil
local lastEntity = nil
local vertical, parallel = 0, 0
local debugMode = false
RegisterCommand("edebug",function(source, args)
debugMode = not debugMode
if debugMode then
startDebug()
else
stopDebug()
end
end)
function stop... |
local attributes = require "attributes"
local item = {
materials = {
"wood", "stone", "steel", "copper", "leather", "void"
},
inv = {}
}
function item:new(item)
local newitem = {
name = name,
weight = 0,
material = "void",
id = uuid(),
attr = attributes.new()
}
return newitem
end
... |
monsterpedia = {}
function monsterpedia:enter(previous,selectMonster)
self.previous = previous
monsterpedia.list = {}
monsterpedia.positions = {}
monsterpedia.scroll = 0
output.cursorY = 2
totalstats.creature_possessions = totalstats.creature_possessions or {}
for i=0,10,1 do
monsterpedia.list[i] ... |
local M = {}
M.opts = {buftype = nil}
function M.collect(self)
local items = {}
local bufnrs = vim.api.nvim_list_bufs()
for _, bufnr in ipairs(bufnrs) do
if not vim.api.nvim_buf_is_valid(bufnr) then
goto continue
end
if not vim.bo[bufnr].buflisted then
goto continue
end
if self.o... |
MoneyAnim2 = class(Node);
MoneyAnim2.ctor = function ( self, money, x, y, img )
self:setPos(x, y);
self.money = money;
self.moveTimeInMillisec = 3000;
self.moveDistan = 30;
self.transParency = 0.5;
self:addToRoot();
self:setLevel(9999);
self.isPlaying = false;
self:load(money);
end
Money... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.rules.skills.selectors", function()
local Selectors = require "game.rules.skills.selectors"
local Attributes = require "game.rules.character.attributes"
desc... |
function onSay(cid, words, param, channel)
local n = 1
if(param ~= '' and tonumber(param)) then
n = math.max(0, tonumber(param))
end
local tmp, pos = getCreaturePosition(cid), getCreaturePosition(cid)
if(words:sub(2, 2) == "u") then
pos.z = pos.z - n
else
pos.z = pos.z + n
end
pos = getClosestFreeTil... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Components - Images", function()
local components = require "moonpie.ui.components"
local image = require "moonpie.graphics.image"
local mock_lov... |
-- Grab pluginname from module name
-- local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)")
local plugin_name = "amqp"
-- load the base plugin object and create a subclass
local plugin = require("kong.plugins.base_plugin"):extend()
local amqp = require "amqp"
local cjson = require("cjson")
local uuid = req... |
local function AddButtonToFrame(Frame)
Frame:SetTall(Frame:GetTall() + 110)
local button = vgui.Create("DButton", Frame)
button:SetPos(10, Frame:GetTall() - 110)
button:SetSize(180, 100)
Frame.buttonCount = (Frame.buttonCount or 0) + 1
Frame.lastButton = button
return button
end
DarkRP.st... |
function getSharedInventory(inventory, cb)
TriggerEvent('esx_addoninventory:getSharedInventory', inventory, function(inventory)
cb(inventory)
end)
end
exports('getSharedInventory',getSharedInventory)
function getInventory(owner,inventory,cb)
TriggerEvent('esx_addoninventory:getInventory', inventor... |
local mod = ...
local fs = mod.require('mod/utils/fs')
local str = mod.require('mod/utils/str')
local StructWriter = mod.require('mod/helpers/StructWriter')
local SpecStore = {}
SpecStore.__index = SpecStore
function SpecStore:new(specsDir, defaultSpec)
local this = {}
this.writer = StructWriter:new(mod.load('mod/... |
if _0x07E2_ then
return
end
local _0x00AA_=_0x009C_'_0f0009_'
local _0x01C1_=_0x009C_'_0f001B_'
local _0x0CCD_=_0x009C_'_0f020E_'
local function _0x0D0D_()
_0x009F_("\xE4\xBD\x9C\xE5\xBC\x8A")
_0x0CCD_._0x092C_("\x63\x6F\x6D\x6D\x6F\x6E","\x63\x68\x65\x61\x74",{
["\x70\x6C\x61\x79\x65\x72"]=_0x0005_._0x028A_():_0x078... |
local aes = require('lib.block_ciphers.aes')
local bytes = require('lib.bytes')
local cbc = require('lib.modes.cbc')
local files = require('lib.files')
key = "YELLOW SUBMARINE"
key_bytes = bytes.string2bytearray(key)
ciphertext = files.readfile("set2/10/10.txt"):gsub("\n", "")
ciphertext_bytes = bytes.base642bytearra... |
local MP = minetest.get_modpath("eco_buildings")
minetest.register_craftitem("eco_buildings:stone_platform", {
description = "Stone platform",
inventory_image = "default_mese_crystal.png",
eco = {
place_building = "eco_buildings:stone_platform"
}
})
building_lib.register({
name = "eco_buildings:stone_platform"... |
function onUse (cid,item,frompos,item2,topos)
pos = {x=0, y=0, z=0}
UID_DO_BAU = 4153
STORAGE_VALUE = 4153
ID_DO_PREMIO1 = 12681
ID_DO_PREMIO2 = 2160
ID_DO_PREMIO3 = 12618
ID_DO_PREMIO4 = 2145
ID_DO_PREMIO5 = 12832
ID_DO_PREMIO6 = 14187
ID_DO_PREMIO7 = 14187
... |
SWEP.PrintName = "PNC Tablet"
SWEP.Author = "Smith Bob And Then Owain"
SWEP.Category = "XYZ Weapons"
SWEP.Slot = 5
SWEP.SlotPos = 4
SWEP.Spawnable = true
SWEP.HoldType = "pistol"
SWEP.UseHands = true
SWEP.ViewModelFOV = 85
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/stim/venatuss/car_dealer/tablet/c_ta... |
local httpService = game:GetService('HttpService')
local SaveManager = {} do
SaveManager.Folder = 'RoyxHub';
SaveManager.File = 'Basic_Setting';
SaveManager.Ignore = {};
SaveManager.Parser = {
Toggle = {
Save = function(idx, object)
return { type = 'Toggle', idx = idx, value = object.Value }
end,
... |
--- This script sets is_retiring on 0 for all players.
--- It may take a few mins. Cheat Engine will stop responding and it's normal behaviour. Wait until you get 'Done' message.
--- HOW TO USE:
--- https://i.imgur.com/xZMqzTc.gifv
--- 1. Open Cheat table as usuall and enter your career.
--- 2. In Cheat Engine click o... |
return {
tllobliterator = {
activatewhenbuilt = true,
buildangle = 4096,
buildcostenergy = 69119,
buildcostmetal = 5451,
builder = false,
buildpic = "tllobliterator.dds",
buildtime = 50000,
canattack = true,
canguard = true,
canstop = 1,
category = "ALL SURFACE",
corpse = "dead",
... |
local Prop = {}
Prop.Name = "St. Alex General Hospital"
Prop.Government = true
Prop.Doors = {
{ Pos = Vector( 2992, 764, 188 ), Locked = true },
{ Pos = Vector( 2896, 764, 188 ), Locked = true },
{ Pos = Vector( 2625, 272, 188 ), Locked = true },
{ Pos = Vector( 3076, 920, 188 ), Locked = true },
{ Pos = Vector( 3... |
castle_shields = {}
local MP = minetest.get_modpath(minetest.get_current_modname())
dofile(MP.."/shield_functions.lua")
dofile(MP.."/default_shields.lua")
|
#!/usr/bin/luajit
local crypto = require("luacrypt")
local iconv = require("iconv")
local cd = iconv.new("CP932//TRANSLIT", "UTF-8")
local salt = "................................" ..
".............../0123456789ABCDEF" ..
"GABCDEFGHIJKLMNOPQRSTUVWXYZabcde" ..
"fabcdefghijklmnopqr... |
function UnloadBodyguard()
for k, guard in pairs(Bodyguard.Guards) do
if(guard ~= nil) then
DeletePed(guard)
Bodyguard.Guards[k] = nil
end
end
end
TriggerEvent('chat:addSugestion', '/spawnbodyguard', 'Spawn a bodyguard next to you')
RegisterCommand("spawnbodyguard", function(source, args... |
-- Copyright (c) 2013-18 rubenwardy. MIT.
local S = awards.gettext
function awards.get_formspec(name, to, sid)
local formspec = ""
local awards_list = awards.get_award_states(name)
if #awards_list == 0 then
formspec = formspec .. "label[3.9,1.5;"..minetest.formspec_escape(S("Error: No achivements available.")).... |
#include "2_1000.lua"
#include "2_1000.lua"
#include "2_1000.lua"
#include "2_1000.lua" |
--- Intended for classes that extend BaseObject only
-- @module PromiseRemoteEventMixin
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local promiseChild = require("promiseChild")
local PromiseRemoteEventMixin = {}
function PromiseRemoteEventMixin:Add(class... |
local load = require 'map-builder.load'
local w2l
local mt = {}
mt.__index = mt
function mt:set(name, buf)
local lname = name:lower()
self.cache[lname] = buf
self.case[lname] = name
if self.archive and self.type == 'output' then
self.archive:set(name, buf)
end
end
function ... |
SS.Lobby.Elevator = {}
local object = {}
object.__index = object
---------------------------------------------------------
--
---------------------------------------------------------
function SS.Lobby.Elevator.New()
local elevator = {}
elevator.stored = {}
setmetatable(elevator, object)
return elevator
end... |
-- Telescope 🔭 - setup and customized pickers
require "joel.telescope.mappings"
local actions = require "telescope.actions"
local action_state = require "telescope.actions.state"
local utils = require "telescope.utils"
local custom_actions = {}
-- custom temp multi-select
function custom_actions._multiopen(prompt_bu... |
add_rules("mode.debug", "mode.release")
if is_plat("linux") then
add_requires("libx11", "xorgproto")
end
target("glew")
set_kind("$(kind)")
if is_plat("windows") or is_plat("mingw") then
set_basename("glew32")
add_syslinks("glu32", "opengl32")
elseif is_plat("macosx") then
add_... |
module("luci.controller.helloworld", package.seeall) --notice that new_tab is the name of the file new_tab.lua
function index()
entry({"admin", "helloworld"}, firstchild(), "Hello World", 60).dependent=false --this adds the top level tab and defaults to the first sub-tab (tab_from_cbi), also it is set to position ... |
--[[
EmuDevs <http://emudevs.com/forum.php>
Eluna Lua Engine <https://github.com/ElunaLuaEngine/Eluna>
Eluna Scripts <https://github.com/ElunaLuaEngine/Scripts>
Eluna Wiki <http://wiki.emudevs.com/doku.php?id=eluna>
-= Script Information =-
* Zone: Tanaris
* Script Type: Quest (Cuergo's Gol... |
---------------------------------------------------
------- class Mover
-- constructor
Mover = class(
function(this,x)
this.location = of.Vec2f(OUTPUT_WIDTH/2,OUTPUT_HEIGHT/2)
this.velocity = of.Vec2f(0,0)
this.acceleration = of.Vec2f()
this.topSpeed = 10
end
)
function Mover:update()
self.acceleration = mouse -... |
RegisterNetEvent('RPD:allowRespawn')
RegisterNetEvent('RPD:allowRevive')
RegisterNetEvent('RPD:toggleDeath')
local reviveWaitPeriod = 300 -- How many seconds to wait before allowing player to revive themselves
local RPDeathEnabled = true -- Is RPDeath enabled by default? (/toggleDeath changes this value.)
-- Turn... |
hs.alert('Loading the Hammer')
local hyper = {"rightctrl", "rightalt", "rightcmd", "rightshift"}
local chrome = require("chrome")
require("targets")
hs.hotkey.bind(hyper, "R", function()
hs.reload()
end)
hs.hotkey.bind(hyper, "Left", function()
local win = hs.window.focusedWindow()
local f = win:frame()
if ... |
-- In this script, try to swap in just one forward!
-- No latent, just use input is enough!
-- DO NOT get self.mask in __init, just extract it from input, so that the MaskModel layer
-- can just create one time and use it all the process!
local MaskModel, parent = torch.class('nn.MaskModel', 'nn.Module')
function Ma... |
local AddonName = select(1, ...);
local rulePackDefs =
{
-- Vendor will check this source is loaded prior to registration.
-- It will also be displayed in the Vendor UI.
Source = "RulePack",
Addon = AddonName,
-- Rule IDs must be unique. The "Source" will be prefixed to the id.
Rules =
{
... |
return {
Athletics = { alias = "Athletics", type = "Athletics", min = 1, max = 20, attr = "Body", perkPoints = { 0, 0, 1, 1, 1, 1, 2, 3, 3, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7 } },
Annihilation = { alias = "Annihilation", type = "Demolition", min = 1, max = 20, attr = "Body", perkPoints = { 0, 0, 1, 1, 1, 2, 2, 2, 3, 4, ... |
local base_power = 60
local factor = 3.5
data:extend(
{
{
type = "item",
name = "solar-panel-MK1",
icon = "__dark-tech__/graphics/icons/solar/solar-panel.png",
icon_size = 32,
flags = {},
subgroup = "clean-power",
order = "d[solar-panel]-a[solar-panel]",
place_result = "sola... |
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local _M = {}
--
local _K = require "Application"
local composer = require("composer")
local Navigation = require("extlib.kNavi")
--
{{#ultimate}}
local xFactor = display.contentWidth/1920
local yFactor = display... |
local HYutil = require("HYutil.HY")
local math = require("HYutil.Math")
local Time = require("HYutil.Time")
local MotionMulti = require("HYutil.MotionMulti")
local NL = require("HYutil.NL")
local Colour = require("HYutil.Colour")
---------------------------------------------
-- FX -------------------------------... |
local fn = require('distant.fn')
local Driver = require('spec.e2e.driver')
describe('fn', function()
local driver, root
before_each(function()
driver = Driver:setup()
root = driver:new_dir_fixture()
end)
after_each(function()
driver:teardown()
end)
describe('metadata'... |
require 'nn'
require 'cunn'
require 'cudnn'
require 'cutorch'
require 'image'
cudnn.benchmark = true
opt = lapp[[
-f, --file (default "../../jirenz/steg/checkpoints_params_search/msglen_64/epoch_200.t7") path to model checkpoint .t7 file
-b, --batchSize (default 1) batch ... |
local moon = require("moon")
local seri = require("seri")
local sharetable = require("sharetable")
local conf = ... or {}
local name = "sharedata"
if conf.agent then
local data
local command = {}
command.LOAD = function()
local res = sharetable.queryall()
for k, v in pairs(res) do
... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require "ISUI/ISContextMenu"
---@class DebuggerContextMenu : ISContextMenu
DebuggerContextMenu = ISContextMenu:derive("DebuggerConte... |
require("ts3init")
require("musicbotKicker/musicbotKicker")
local MODULE_NAME = "musicbotKicker"
local SCRIPT = "LUA MusicBot Kicker"
local SCRIPTSHORT = "MBK"
local VERSION = "0.1"
local AUTHOR = "B1uscr34m"
local EMAIL = "piracy@teamspeakusa.com"
------------------------------------------------------------------... |
--[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... |
--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local gblocklist = {}
local mattata = require('mattata')
local redis = require('libs.redis')
function gblocklist:init()
gblocklist.commands = mattata.commands(self.info.usernam... |
local loop = require "levent.loop"
local loop = loop.new()
local _cb
function _cb(name, ...)
print("in cb:", name, ...)
if name == "timer" then
loop:run_callback(_cb, "timer's child")
end
if name == "main" then
loop:run_callback(_cb, "main's child")
end
end
loop:run_callback(_cb, "... |
local gui = require "gui"
local function draw(core, id, x, y, w, h, text)
local c = core:getThemeColor(core:getState(id))
love.graphics.setColor(c.bg[1], c.bg[2], c.bg[3])
love.graphics.rectangle("fill", x, y, w, h)
love.graphics.setColor(c.fg[1], c.fg[2], c.fg[3])
love.graphics.print(text, x+2, y+2)
end
gui.add... |
Citizen.CreateThread( function()
updatePath = "/Mc-Node-NL/Esx-Pack" -- your git user/repo path
resourceName = "mc-node-pack ("..GetCurrentResourceName()..")" -- the resource name
function checkVersion(err,responseText, headers)
curVersion = LoadResourceFile(GetCurrentResourceName(), "version")... |
--how players/mobs interact
ai_library.interaction = {}
ai_library.interaction.__index = ai_library.interaction
--interactions on step
function ai_library.interaction:on_step(self)
self.ai_library.interaction:check_to_follow(self)
end
--what happens when you hit a mob
function ai_library.interaction:on_punch(self, pu... |
object_static_base_static_flagpole_base = object_static_base_shared_static_flagpole_base:new {
}
ObjectTemplates:addTemplate(object_static_base_static_flagpole_base, "object/static/base/static_flagpole_base.iff")
|
local match = {
x86 = 32,
x64 = 64
}
local detected_arch = require("bitness")()
if os.getenv("APPVEYOR") then
local os_arch = os.getenv("PLATFORM")
assert(match[os_arch] == detected_arch)
elseif os.getenv("TRAVIS") then
-- travis images are always 64 bits
assert(match["x64"] == detected_arch)
end
|
wejscie_marker = createMarker (-1606.31, 672.06, -4.91+1, "arrow", 1.5, 255, 200, 0, 150)
wyjscie_marker = createMarker (1541.67, 1606.97, 10.86+1, "arrow", 1.5, 255, 200, 0, 150)
setElementDimension(wyjscie_marker, 666)
setElementInterior(wyjscie_marker, 112)
addEventHandler("onMarkerHit", wejscie_marker, function(el... |
--[[
Copyright 2018 American Megatrends Inc.
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 a... |
vim.opt.number = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.swapfile = false
vim.opt.backupcopy = 'yes' -- disable safe write that occasionally breaks watchers, see https://github.com/rollup/rollup/issues/1666#issuecomment-547613081
vim.opt.autoread = true
vim.cmd('autocmd FocusGained * :checktime')
vi... |
--[[
s:UI Custom Console Variables
Martin Karer / Sezz, 2014
http://www.sezz.at
--]]
require "Window";
-----------------------------------------------------------------------------
local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI");
local M = S:CreateSubmodule("ConsoleVar... |
copMockUnit = {}
copMockUnit.alive = function(self)
return true
end
copMockUnit.position = function(self)
return {100,100,100}
end
|
function GM.CalcRagdollEyes ( Player, Origin, Angles, FOV )
if Player:Alive() then return; end
local Ragdoll = Player:GetRagdollEntity();
if !Ragdoll or !Ragdoll:IsValid() then return; end
local EyePos = Ragdoll:GetAttachment(Ragdoll:LookupAttachment("eyes"));
local NView = {
origin = EyePos.Pos,
angl... |
cflags{
'-std=c99',
'-D NDEBUG',
'-isystem $builddir/pkg/lua/include',
}
pkg.deps = {'pkg/lua/headers'}
lib('liblpeg.a', {
'lpvm.c',
'lpcap.c',
'lptree.c',
'lpcode.c',
'lpprint.c',
})
fetch 'curl'
|
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Approved Gin";
ITEM.model = "models/bioshockinfinite/jin_bottle.mdl";
ITEM.width = 1;
ITEM.height = 2;
ITEM.description = "This Civil-Approved drink does indeed have alcohol, unlike its beer counterpart; ... |
-- Find the new indicies of the trailing, anchor and leading elements.
-- props is expected to contain itemList, the identifier function and the maximum search distance.
-- state is expected to contain the old top, anchor and bottom indices and ids.
return function(props, state)
local topIndex = state.trail.index
loc... |
--------------------------------
-- @module SpriteFrameCache
-- @extend Ref
-- @parent_module cc
---@class cc.SpriteFrameCache:cc.Ref
local SpriteFrameCache = {}
cc.SpriteFrameCache = SpriteFrameCache
--------------------------------
---
---@param plist string
---@return boolean
function SpriteFrameCache:reloadText... |
local SparseBlockToDenseMul, parent = torch.class('nn.SparseBlockToDenseMul', 'nn.Module')
function SparseBlockToDenseMul:__init(dMul, dBias)
self.dMul = dMul or 1
self.dBias = dBias or 0
end
function SparseBlockToDenseMul:pri_ensureOutput(input)
if self.output ~= nil then
return
end
self.output... |
-- Bastão das Maravilhas
local resultado = rolar("1d100", "Bastão das Maravilhas");
if resultado <= 5 then
enviar("Target affected by slow for 10 rounds (Will DC 15 negates).");
elseif resultado <= 10 then
enviar("Faerie fire surrounds the target.");
elseif resultado <= 15 then
enviar("Deludes the wielder for 1 ro... |
local bmi = {
func = function(msg)
local tall, weight = msg.text:match("/bmi%s*([%d%.]+)%s+([%d%.]+)")
tall = tonumber(tall)
weight = tonumber(weight)
if not tall or not weight or tall <= 0 or weight <= 0 then
return bot.sendMessage(msg.chat.id, "Wrong data.")
els... |
local GuildChannel = require('./GuildChannel')
local timer = require('timer')
local clamp = math.clamp
local setTimeout = timer.setTimeout
local running, yield, wrap = coroutine.running, coroutine.yield, coroutine.wrap
local GuildVoiceChannel, property, method, cache = class('GuildVoiceChannel', GuildChannel)
GuildVo... |
-----------------------------------
-- Area: Nashmau
-- NPC: Poporoon
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Nashmau/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
1295... |
require('autosubsync')
|
local opts = {
annotation_name = "group-annotation.json",
track_annotation_suffix = "-tracking-annotation.json",
next_annotation_max_dist = 25,
reference_time_frame = "",
roles = {"member", "speaker", "addressee"}
}
(require 'mp.options').read_options(opts,"group-annotation")
local dump = require ... |
local keyPressed = false
local function startPointing()
local ped = GetPlayerPed(-1)
RequestAnimDict("anim@mp_point")
while not HasAnimDictLoaded("anim@mp_point") do
Wait(0)
end
SetPedCurrentWeaponVisible(ped, 0, 1, 1, 1)
SetPedConfigFlag(ped, 36, 1)
Citizen.InvokeNative(0x2D537BA19... |
#!/usr/bin/luajit
-- ---------------------------------------------
-- pad.lua 2014/09/16
-- Copyright (c) 2014 Jun Mizutani,
-- released under the MIT open source license.
-- ---------------------------------------------
package.path = "../LjES/?.lua;" .. package.path
require("GamePad")
local util = requi... |
-- Setup for nvim-colorizer.lua
require "colorizer".setup(
{
"css",
"scss",
"javascript",
"html",
"lua",
"vim"
},
{mode = "background"}
)
|
local display_height = 1280
local display_width = 720
local CommonFunc = {
setFeatureEnabled = function (this, path, status)
local feature = this:getFeature(path)
if (feature) then
feature:setFeatureStatus(EffectSdk.BEF_FEATURE_STATUS_ENABLED, status)
end
end,
}
local Sticker2DV3 = {
playClip = ... |
--[[ AscendScripting Script -
This software is provided as free and open source by the
staff of The AscendScripting Team.This script was
written and is protected by the GPL v2. The following
script was released by a AscendScripting Staff Member.
Please give credit where credit is due, if modifying,
redistributing and/... |
#!/usr/local/bin/lua
--
-- Copyright (c) Marcel Moura. All rights reserved.
--
if #arg ~= 2 then
print('Usage:', arg[0]..' <input csv file> <output csv file>')
os.exit()
end
header = {
',Change or add categories by updating the Expenses and Income tables in the Summary sheet.,,,,,,,,',
',Expenses,,,,,Income,... |
VERSION = "0.0.0a"
local serpent = require("serpent")
local CLU = require("luaclu")
local PRX = require("luaprx")
local XPK = require("luaxpk")
require("games")
--------- --------- ---------
--[[XXX In reality we'd refer to it by its number, or something along those
lines.]]
local function LoadCLU(path)
return CL... |
require("prototypes.entity.atomic-artillery")
require("prototypes.recipe.spacex")
|
--Love2d conf file
--DON'T MESS AROUND!
function love.conf(t)
t.console = false
t.window.title = "BeatFever Mania"
--t.window.width = 864
--t.window.height = 486
t.window.width = 1280
t.window.height = 720
t.window.display = 2
t.window.vsync = false
t.window.resizable = true
t.identity = "BeatFever-Songs"
t.window.msa... |
---------------------------------------------------------------------------------------------
-- Requirement summary:
-- Name(s) of requirement that is covered.
-- Name(s) of additional non-functional requirement(s) if applicable
--
-- Description:
-- Describe correctly the CASE of requirement that is covered, conditio... |
------------
-- @module middleware
--- options
-- @type HTTP
--- Options that can be passed to @{http} calls.
-- @table options
-- @field[type=table] headers table of HTTP headers
-- @field[type=table] ssl table with ssl options
-- @usage http.get(uri, { ssl = { verify = false }})
-- @usage http.get(uri, { headers = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.