content
stringlengths
5
1.05M
function Grenade:GetIsAffectedByWeaponUpgrades() return true end
require 'lpeg' --[[ compile(string <text_grammar_definition>, string <S0 state name>, boolean <optional debug>) returns lpeg_pattern ]]-- local function compile(g, S0name, quantifier, _debug) local P = lpeg.P local C = lpeg.C local Ct = lpeg.Ct local V = lpeg.V local S = lpeg.S local delim = P[[/]] local ...
object_tangible_quest_som_vault_dial = object_tangible_quest_shared_som_vault_dial:new { } ObjectTemplates:addTemplate(object_tangible_quest_som_vault_dial, "object/tangible/quest/som_vault_dial.iff")
--[[---------------------------------------------------------------------------- MIT License Copyright (c) 2018 David F. Burns This file is part of LrSlide. 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 t...
--[=[ Handles reset requests since Roblox's reset system doesn't handle ragdolls correctly @server @class ResetService ]=] local require = require(script.Parent.loader).load(script) local GetRemoteEvent = require("GetRemoteEvent") local ResetServiceConstants = require("ResetServiceConstants") local ResetService =...
local _={} _[1]={"error","function \"function args arity check fail.f\" expected 2 arguments but received 1; at test/tests/function args arity check fail.ans:4"} return {_[1]} --[[ { "error", 'function "function args arity check fail.f" expected 2 arguments but received 1; at test/tests/function args arity check fail.a...
CustomizableWeaponry:addFireSound("KSKS.Fire", {"Weapons/SKS_BF4/fire1.wav","Weapons/SKS_BF4/fire2.wav","Weapons/SKS_BF4/fire3.wav"}, 1, 125, CHAN_STATIC) CustomizableWeaponry:addFireSound("KSKS.SupFire", {"Weapons/SKS_BF4/firesil1.wav","Weapons/SKS_BF4/firesil2.wav","Weapons/SKS_BF4/firesil3.wav"}, 1, 60, CHAN_STATIC)...
--[[ TheNexusAvenger Tests the GitStatusRequest class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusGit = require(game:GetService("ServerStorage"):WaitForChild("NexusGit")) local GetGitStatusRequest = NexusGit:GetResource("NexusGitRequest.GetRequest.GetGitStatusRequest") local NexusEnums = Ne...
-------------------------------- -- @module AbstractCheckButton -- @extend Widget -- @parent_module ccui -------------------------------- -- -- @function [parent=#AbstractCheckButton] getCrossDisabledFile -- @param self -- @return ResourceData#ResourceData ret (return value: cc.ResourceData) --------------...
term.clear() term.setCursorPos(1,1) print("Thank you for using jOS") print("Loading...") sleep(1) textutils.slowPrint("#############") sleep(1) shell.run("disk/.menu")
--黯影魔 毁灭 local m=14060013 local cm=_G["c"..m] function cm.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,cm.fusfilter1,cm.fusfilter,1,true,true) --pendulum summon aux.EnablePendulumAttribute(c,false) --base attack local e0=Effect.CreateEffect(c) e0:SetType(EFFECT...
local imgEngine = {} image = {} function imgEngine.autoload(pFolder) if not pFolder then pFolder = "img" end -- if not image then image = {} end -- image.current = 1 -- local filesTable = love.filesystem.getDirectoryItems("img") -- for k,file in ipairs(filesTable) do -- print("le dossier module c...
local UIStretch = class("UIStretch") function UIStretch:ctor() cc.GameObject.extend(self):addComponent("components.ui.LayoutProtocol"):exportMethods() self:setLayoutSizePolicy(display.AUTO_SIZE, display.AUTO_SIZE) self.position_ = {x = 0, y = 0} self.anchorPoint_ = display.ANCHOR_POINTS[display.CENTER...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'ESX Whitelist' version '1.1.0' server_scripts { '@mysql-async/lib/MySQL.lua', '@es_extended/locale.lua', 'config.lua', 'locales/en.lua', 'locales/fr.lua', 'locales/sv.lua', 'server/main.lua', 'server/commands.lua' }
local Response = require('http').Response local Log = require('./log') Response.auto_server = 'U-Gotta-Luvit' function Response:send(code, data, headers, close) --debug('REQ', self.req.url, code) --if code == 500 then p('ERR', data) end self:writeHead(code, headers or { }) if data then self:write(data) end ...
--[[ © 2015 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] Clockwork.kernel:AddFile("materials/gmod/scope-refract.vtf"); Clockwork.kerne...
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file ------------------------------------------------------------ -- sha2 tests local sha2 = require "plc.sha2" local bin = require "plc.bin" -- for hex conversion local stx, xts = bin.stohex, bin.hextos local function test_sha2() -- checked with sha2 on https:/...
require('refactoring').setup({}) local utils = require("utils") utils.map("v", "<leader>re", [[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>]], {silent = true, expr = false}) utils.map("v", "<leader>rf", [[ <Esc><Cmd>lua require('refactoring').refactor('Extract Fun...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISReadABook : ISBaseTimedAction ISReadABook = ISBaseTimedAction:derive("ISReadABo...
---------------------- -------------------- -- String Functions ---------------- -------------- ------------ ---------- -------- ------ ---- -- ------------------ -- Private Functions -------- ------ ---- -- ------------------ -- Public Functions -------- ------ ---- -- -- _:camelCase(str) -- Converts `str` to [Ca...
return {'vocaal','vocabulaire','vocabularium','vocalise','vocaliseren','vocalist','vocaliste','vocalistenconcours','vocatie','vocatief','vocht','vochtafscheiding','vochtbalans','vochtblaas','vochtblaasje','vochten','vochtgehalte','vochthoudend','vochthuishouding','vochtig','vochtigheid','vochtigheidsgraad','vochtigheid...
local S = technic.getter technic.register_recipe_type("alloy", { description = S("Alloying"), input_size = 2, }) function technic.register_alloy_recipe(data) data.time = data.time or 6 technic.register_recipe("alloy", data) end local recipes = { {"technic:copper_dust 3", "technic:tin_dust", "...
-- TODO: Managerklasse Schreiben! InfoPickups = {} CInfoPickup = {} function CInfoPickup:constructor(ID,X,Y,Z,Int,Dim,Text) self.ID = ID self.X = X self.Y = Y self.Z = Z self.Int = Int self.Dim = Dim self.Text = Text self.eHit = bind(CInfoPickup.onHit, self) addEventHandler("onPickupHit", self, self.eHit) ...
return require "lzmq.impl.loop"("lzmq.ffi")
local cfg = module("cfg/aptitudes") -- exp notes: -- levels are defined by the amount of xp -- with a step of 5: 5|15|30|50|75 -- total exp for a specific level, exp = step*lvl*(lvl+1)/2 -- level for a specific exp amount, lvl = (sqrt(1+8*exp/step)-1)/2 local exp_step = 5 local gaptitudes = {} function vRP.defAptitude...
local function StagesRemaining() if not FlowDJ.fake_play then FlowDJ.stage = GAMESTATE:GetCurrentStageIndex() end local stages = FlowDJGetSetting("NumberOfStages") return FlowDJ.stage < stages end local BaseSelectMusicOrCourse = SelectMusicOrCourse function SelectMusicOrCourse() if IsNetSMOnline() then return...
--- Adds simple Get/Set accessor functions on the specified table. --- Can also force the value to be set to a number, bool or string. --- @param tab table @The table to add the accessor functions too. --- @param key any @The key of the table to be get/set. --- @param name string @The name of the functions (will be...
local followchars = true; local xx = 420.95; local yy = 275; local xx2 = 1222.9; local yy2 = 455; local ofs = 50; local ofs2 = 40; local del = 0; local del2 = 0; local angleshit = 0.3; local anglevar = 0.3; function onUpdate() if mustHitSection == true then if getProperty('boyfriend.animation.curAnim.name')...
ENT.Type = "Anim" ENT.Base = "sent_kgren_base" ENT.PrintName = "Grenade" ENT.Author = "VurtualRuler98" ENT.Contact = "steam" ENT.Purpose = "Getting more ammo!" ENT.Instructions = "Spawn. Use. Reload." ENT.Category = "Vurtual's base" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.ThrowFearVolume=768 ENT.De...
------------------- -- Adonis Server -- ------------------- --[[ If you find bugs, typos, or ways to improve something please message me (Sceleratis/Davey_Bones) with what you found so the script can be better. Also just be aware t...
local Builder = {} Builder.DarkTheme = Color3.fromRGB(20, 20, 20) Builder.LightTheme = Color3.fromRGB(250, 250, 250) Builder.ClassName = "ScreenCoverBuilder" function Builder:CreateFrame(Theme) local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 1, 0) Frame.Position = UDim2.new(0, 0, 0, 0) Frame.Activ...
-- This code is derived from the SOM benchmarks, see AUTHORS.md file. -- -- Copyright (c) 2016 Francois Perrad <francois.perrad@gadz.org> -- -- 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...
local lunit = require "lunit" package.path = 'lualib/?/init.lua;lualib/?.lua;'..package.path local utils = require "smithsnmp.utils" module("test_utils", lunit.testcase, package.seeall) test_iter1 = function() -- test iter local i = 0 for v in utils.iter({1, 2, 3, 4, 5}) do i = i + 1 assert_true(v == i) end...
-- ===================================================================== -- -- asynctasks.lua - -- -- Created by liubang on 2021/08/29 03:39 -- Last Modified: 2021/08/29 03:39 -- -- ===================================================================== vim.g.asyncrun_open = 25 vim.g.asyncrun_bell = 1 vim.g.asyncrun_roo...
--- -- @author wesen -- @copyright 2019-2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local Object = require "classic" --- -- Contains information about a parsed function argument. -- -- @type Argument -- local Argument = Object:extend() --- -- The Argument's name -- -- @tfield string name -- Argu...
require "Polycode/ScreenShape" class "ScreenImage" (ScreenShape) function ScreenImage:ScreenImage(...) if type(arg[1]) == "table" and count(arg) == 1 then if ""..arg[1]:class() == "ScreenShape" then self.__ptr = arg[1].__ptr return end end for k,v in pairs(arg) do if type(v) == "table" then if...
local local0 = 0.5 local local1 = 3.4 - local0 local local2 = 0.5 - local0 local local3 = 4.2 - local0 local local4 = 0.5 - local0 local local5 = 2.7 - local0 local local6 = 9.2 - local0 local local7 = 0.5 - local0 local local8 = 2.5 - local0 local local9 = 0.5 - local0 local local10 = 2.5 - local0 local local11 = 3.7 ...
local function OnPlayerJoin(player) player.diedEvent:Connect(function (player) Task.Wait(2.5) if Object.IsValid(player) then player:Respawn() end end) end Game.playerJoinedEvent:Connect(OnPlayerJoin)
kHallucinationHoverHeight = 1 if Server then function Hallucination:GetHoverHeight() if self.assignedTechId == kTechId.Lerk or self.assignedTechId == kTechId.Drifter then return kHallucinationHoverHeight else return 0 end end end
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. local M = require('lualine.component'):extend() function M:update_status() local component = self.options[1] local ok, status if self.options.type == nil then ok, status = pcall(M.lua_eval, component) if not ok then ...
local discordia = require('discordia') local client = discordia.Client() client:on('ready', function() print('Logged in as '.. client.user.tag) end) client:on('messageCreate', function(message) if message.content == 'hello world' then message.channel:send('Hello, World! Discordia') end end) client:run('TOKEN')
-- An applications menu -- Required depends: awesome-freedesktop or xdg_menu -- awesome-freedesktop : automatic -- xdg_menu : manual -- Your choice local awful = require("awful") local gears = require("gears") local beautiful = require("beautiful") local apps = require('configuration.apps') local hotkeys_popup = requi...
#!/usr/bin/env tarantool package.path = "../?/init.lua;./?/init.lua;" .. package.path local tap = require 'tap' local tnt = require 'tests.tnt' local stat = require 'stat' local function fixture_info_memory() local backup return { f_start = function() backup = box.info.memory ...
local stock_tags = { -- bipd -- "characters\\cyborg_mp\\cyborg_mp", -- !jpt "characters\\cyborg\\melee", "weapons\\assault rifle\\melee", "weapons\\assault rifle\\melee_response", "weapons\\assault rifle\\bullet", "weapons\\assault rifle\\trigger", "weapons\\pistol\\melee", "we...
local require = using("EffectEditor.Script") local CCSprite = require("CCSprite") local oLine = require("oLine") local oVec2 = require("oVec2") local ccColor4 = require("ccColor4") local CCSize = require("CCSize") local CCDirector = require("CCDirector") local oSelectionPanel = require("oSelectionPanel") local ...
VERSION = "1.0.0" local micro = import("micro") micro.Log("ccc - init 2021...") micro.InfoBar():Message("-- 0dn plugin activated.") function onBufferOpen(b) micro.Log(b.Line(1) .. ": open " .. b.FileName or "<>") end
return { -- Table: {1} { ["CH_DETECTED"]="[color=green][b]Autofill date[/b] detect conect to channel id %s try fill current date and time[/color]", ["HELP"]="\r\ [color=green][b][url=http://teamspeak.az.pl/wiki/Plugin:AutofillDate]Autofill Date [/url][/b] help command\r\ To get this plugin work you must connect ...
-- Update member privileges from LDAP -- -------------------------------------------------------------------------- -- -- arguments: -- member: the member for which the privileges should be updated -- ldap_entry: the ldap entry to be used for updating the privileges -- -- returns: -- err: an error code, if an err...
local S = ethereal.intllib -- Seaweed minetest.register_node("ethereal:seaweed", { description = S("Seaweed"), drawtype = "plantlike", tiles = {"seaweed.png"}, inventory_image = "seaweed.png", wield_image = "seaweed.png", paramtype = "light", walkable = false, climbable = true, drowning = 1, selection_box =...
local rootElement = getRootElement() local busses = {[431] = true, [437] = true} local busRoutes = {} local started = {} busRoutes["Los Santos"] = { -- { x, y, z, isStop, stop number} [1]={1825.5222,-1819.0747,13.4037,true,1}, [2]={1847.2609,-1754.3463,13.3751,false,0}, [3]={1922.6714,-1755.9180,13.37...
--[[ Copyright (C) 2019 Blue Mountains GmbH This program is free software: you can redistribute it and/or modify it under the terms of the Onset Open Source License as published by Blue Mountains GmbH. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied w...
--[[ LuCI - Lua Configuration Interface - Aria2 support Copyright 2016 maz-1 <ohmygod19993@gmail.com> ]]-- local sys = require "luci.sys" local util = require "luci.util" local uci = require "luci.model.uci".cursor() ptype = { "socks5", "socks4", "http", "socks4a", } whocan = { "anyone", "friends", "nobody"...
C_PlayerChoice = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_PlayerChoice.GetCurrentPlayerChoiceInfo) ---@return PlayerChoiceInfo choiceInfo function C_PlayerChoice.GetCurrentPlayerChoiceInfo() end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_PlayerChoice.GetNumRerolls) ---@return number...
for _, creature_raw in pairs(df.global.world.raws.creatures.all) do for _, caste_raw in pairs(creature_raw.caste) do if caste_raw.flags.ARENA_RESTRICTED then caste_raw.flags.ARENA_RESTRICTED = false print(('Unrestricted %s:%s'):format(creature_raw.creature_id, caste_raw.caste_id)) ...
-- -- Created by IntelliJ IDEA. -- User: Kunkka Huang -- Date: 17/1/18 -- Time: 下午6:03 -- To change this template use File | Settings | File Templates. -- local panel = {} local marginTop = 15 local leftX = 10 local stepY = 20 local stepX = 11 local fontSize = 11 * 4 --local fontName = "Consolas" local fontName = gk....
slot1 = { ["award.mp3"] = { time = 2, priority = ({ BUTTON = 4, Fish = 1, WAVE = 3, ATHER = 6, ATHER_II = 2, HIT = 5 })["ATHER"] }, ["bigAward.mp3"] = { time = 4.6, priority = ()["ATHER_II"] }, ["BigBang.mp3"] = { time = 2.2, priority = ()["ATHER_II"] }, ["Bigfireworks.mp3"] = { ...
local Suite = require "loop.test.Suite" local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ Object = {} function Object:someoperation() return "I'm some operation" end Interceptor = ...
local present, lualine = pcall(require, 'lualine') if present then local gps = require('nvim-gps') gps.setup() lualine.setup({ sections = { lualine_b = { 'branch', 'diff', 'diagnostics', { gps.get_location, cond = gps.is_av...
console.clear() json = require "json" -- left is negative, right is positive -- caps out at 14 without triggers, and 16 with triggers addTurning = 0x0000D6 -- 1000 = 145km, 1500 = 253km, 2000 = 386km, 3000 = 722km addSpeed = 0x000B20 -- max 2048, death if hit again when it's below 0 addPower = 0x0000C9 -- "Race fin...
function nDonationProcess( len ) GAMEMODE:AddChat( Color( 229, 201, 98, 255 ), "CombineControl.ChatNormal", "Your donation has been processed and applied!", { CB_ALL, CB_OOC } ); end net.Receive( "nDonationProcess", nDonationProcess );
object_mobile_dressed_corellia_vani_korr = object_mobile_shared_dressed_corellia_vani_korr:new { } ObjectTemplates:addTemplate(object_mobile_dressed_corellia_vani_korr, "object/mobile/dressed_corellia_vani_korr.iff")
-- timers.lua -- babyjeans -- -- a simple timer class -- -- use: -- Timers:newTimer(seconds, callback, repeats) -- create a new timer that will call the callback after seconds. if repeats is true it will repeat indefinitely -- if repeats is a number it will repeat that many times. -- -- Timers:update() -- mu...
local cave_rock = { type = "simple-entity", name = "cave-rock", flags = {"placeable-neutral", "placeable-off-grid", "not-on-map"}, icon = "__base__/graphics/icons/stone-rock.png", subgroup = "grass", order = "b[decorative]-k[stone-rock]-a[big]", collision_box = {{-1.1, -1.1}, {1.1, 1.1}}, ...
slot0 = class("GuildResPage", import("....base.BaseSubView")) slot0.getUIName = function (slot0) return "GuildResPanel" end slot0.Load = function (slot0) if slot0._state ~= slot0.STATES.NONE then return end slot0._state = slot0.STATES.LOADING pg.UIMgr.GetInstance():LoadingOn() slot0:Loaded(LoadAndInstantiat...
--- === cp.is === --- --- A simple class that lets you test if a value `is` a particular type. --- Note: for best performance, assign the specific checks you want to use to local functions. Eg: --- --- ```lua --- local is_nothing = require("cp.is").nothing --- is_nothing(nil) == true --- ``` --- --- You can also get fu...
-- taken from https://forum.fivem.net/t/release-es-emotes/16669 emotes = {} emotes['cop'] = {name = 'cop', anim = 'WORLD_HUMAN_COP_IDLES'} emotes['binoculars'] = {name = 'binoculars', anim = 'WORLD_HUMAN_BINOCULARS'} emotes['cheer'] = {name = 'cheer', anim = 'WORLD_HUMAN_CHEERING'} emotes['drink'] = {name = 'drink', an...
local CollectionService = game:GetService("CollectionService") local Modules = script.Parent.Parent.Parent local Dom = require(Modules.Anatta.Library.Dom) local Constants = require(Modules.Anatta.Library.Core.Constants) local ENTITY_ATTRIBUTE_NAME = Constants.EntityAttributeName local INSTANCE_REF_FOLDER = Constants...
function onCreate() -- background shit makeLuaSprite('sadbg', 'sadbg', -600, -300); setScrollFactor('sadbg', 0.9, 0.9); makeLuaSprite('sadbgfront', 'sadbgfront', -650, 600); setScrollFactor('sadbgfront', 0.9, 0.9); scaleObject('sadbgfront', 1.1, 1.1); addLuaSprite('sadbg', false); addLuaSprite('sad...
shared = require "shared" require "scripts.use_equipment" local informatron = require "scripts.informatron" remote.add_interface(shared.name, { -- informatron implementation informatron_menu = function(data) return informatron.menu(data.player_index) end, informatron_page_content = function(data) ret...
local menuThread = false local isUnicorn = false RMenu.Add("unicorn_dynamicmenu", "unicorn_dynamicmenu_main", RageUI.CreateMenu("Tablette Unicorn","Interactions possibles")) RMenu:Get("unicorn_dynamicmenu", "unicorn_dynamicmenu_main").Closed = function()end local menuOpen = false local function jobMenu() if menuTh...
local Physic = Component.create("Physic") function Physic:initialize(body, fixture, shape) self.body = body self.shape = shape self.fixture = fixture end
function OnStartTouch1(trigger) print("start") end function OnEndTouch1(trigger) print("end") end
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luca CPZ --]] local helpers = require("lain.helpers") local wibox = require("wibox") local tonumber = tonumber -- {thermal} temperature info -- lain.widget.temp_ryzen local function factory(args) local temp = { widget = wibox.widg...
local Class = require("facto.class") local Prototype = Class.create() function Prototype:clone() local class = getmetatable(self) return class() end local Chest = Class.extend({}, Prototype) function Chest:__constructor() self.name = "steel-chest" self.minable = true self.destructible = true ...
-- -*- Mode: lua; tab-width: 2; lua-indent-level: 2; indent-tabs-mode: nil; -*- ---------------------------------------------------------- -- Based on: https://www.openprocessing.org/sketch/152169 ---------------------------------------------------------- local utils = require "p5utils" local vector = require "hump.vec...
--夜尽心术 local m=14000537 local cm=_G["c"..m] cm.named_with_Nightend=1 function cm.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVA...
/******************************************************************************\ Color support \******************************************************************************/ local Clamp = math.Clamp local floor = math.floor local function RGBClamp(r,g,b) return Clamp(r,0,255),Clamp(g,0,255),Clamp(b,0,255) end l...
-- Global Functions local funcs = {} local bufnum = -1 local nodeID = 999 local groupID = 1 local busIndex = 15 local osctypes = {int32=true,float=true} function parseArgsX(args,useint) local a = {} local numbertype = useint and "int32" or "float" if args ~= nil then for name,value in pairs(args) do table.inse...
------------------------------------------------------------------------------ -- FILE: Lekmapv2.2.lua (Modified Pangaea_Plus.lua) -- AUTHOR: Original Bob Thomas, Changes HellBlazer, lek10, EnormousApplePie, Cirra, Meota -- PURPOSE: Global map script - Simulates a Pan-Earth Supercontinent, with -- numerous ...
-------------------------------------------------------------------------------- local class = require "lib.middleclass" local GenericCalculator = require "app.calculators.generic_calculator" -------------------------------------------------------------------------------- local Calculator = class("Calculat...
impulse.string = impulse.string or {} local strSub = string.sub local strLen = string.len local mathCeil = math.ceil local tblInsert = table.insert local tblConcat = table.concat -- Explode a string with multiple separators function impulse.string.Explode( seperators, str ) local p = "[^"..tblConcat(seperators).."...
-- Copyright (c) 2019 teverse.com -- main.lua return function(workshop) local controllers = { selection = require("tevgit:create/controllers/select.lua"), theme = require("tevgit:create/controllers/theme.lua"), ui = require("tevgit:create/controllers/ui.lua"), camera = require("tevgit:create/con...
//DAK loader/Base Config DAK.adminsettings = { groups = { }, users = { } } DAK.serveradmincommands = { } DAK.serveradmincommandsfunctions = { } DAK.serveradmincommandshooks = { } local ServerAdminFileName = "config://ServerAdmin.json" local ServerAdminWebFileName = "config://ServerAdminWeb.json" local ServerAdminWebC...
--[[ Copyright 2012-2020 João Cardoso PetTracker is distributed under the terms of the GNU General Public License (Version 3). As a special exception, the copyright holders of this addon do not give permission to redistribute and/or modify it. This addon is distributed in the hope that it will be useful, but WITHOUT A...
----------------------------------------- -- ID: 17588 -- Treat staff II -- Transports the user to their Home Point ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) target:warp() end
local severities = { error = vim.lsp.protocol.DiagnosticSeverity.Error; warning = vim.lsp.protocol.DiagnosticSeverity.Warning; refactor = vim.lsp.protocol.DiagnosticSeverity.Information; convention = vim.lsp.protocol.DiagnosticSeverity.Hint; } return { cmd = 'pylint'; stdin = true; args = { '--from-s...
local function _error_if_not_number (a) if type(a) ~= "number" then SU.error("We tried to do impossible arithmetic on a " .. SU.type(a) .. ". (That's a bug)", true) end end return pl.class({ type = "length", length = nil, stretch = nil, shrink = nil, _init = function (self, spec, stretch, ...
local jobs = {} local n_jobs = tonumber(ARGV[1]) local n = 0 repeat local job = redis.call('RPOPLPUSH', KEYS[1], KEYS[2]) if job then n = n + 1 table.insert(jobs, job) else break end until n == n_jobs return jobs
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() math.randomseed(CurTime()) self.Entity:SetModel("models/weltensturm/wac/rockets/rocket01.mdl") self.Entity:PhysicsInit(SOLID_VPHYSICS) self.Entity:SetMoveType(MOVETYPE_VPHYSICS) self.Entity:SetSolid(S...
local M = {} M.setup = function() vim.g.bullets_enabled_file_types = { 'markdown', 'text', 'gitcommit', 'scratch', } vim.g.bullets_enable_in_empty_buffers = 0 vim.g.bullets_set_mappings = 1 vim.g.bullets_mapping_leader = '' vim.g.bullets_delete_last_bullet_if_empty = 1 vim.g.bulle...
-- bootstrap the compiler fennel = require("fennel") table.insert(package.loaders, fennel.make_searcher({correlate=true})) pp = function(x) print(fennel.view(x)) end local make_love_searcher = function(env) return function(module_name) local path = module_name:gsub("%.", "/") .. ".fnl" local folderPath ...
require 'nn' require 'gnuplot' ntm = require '../models/ntm' require '../models/rmsprop' --[[ The aim of this NTM is to repeat a tensor a number of times, like in a for loop. We give a tensor of random(0,1) as input, with a int on a specific channel (column) to give the number of copies. Then, we give an end delimite...
function _init() --debug collision = false debugnum = 10 game_scene_freeze = false -- logo logo_angle = 0 logo_y = 20 logo_tic = 0 top_type = flr(rnd(5) + 1) bottom_type = flr(rnd(5) + 1) --debug outline outline_col = 0 -- animation sprite number s = 17 -- animation delay d = 30 -- background setup ...
fx_version 'adamant' game 'gta5' description 'Rawe AntiCheat' version '4.2' client_scripts { 'config.lua', 'client.lua', 'Enumerators.lua' } server_scripts { 'config.lua', 'server.lua' }
local status_ok, nvim_tree = pcall(require, "nvim-tree") if not status_ok then return end local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config") if not config_status_ok then return end local icons = require("user.icons") local tree_cb = nvim_tree_config.nvim_tree_callback nvim_tree.setup({ ...
ITEM.name = "Hercules" ITEM.model = "models/gmodz/medical/hercules.mdl" ITEM.description = "" ITEM.price = 8000 ITEM.staminaAmount = 0.5 ITEM.staminaRegenTime = 60 -- TODO sound ITEM.useSound = "gmodz/items/water.wav" ITEM.rarity = { weight = 30 }
return { talon_mrtn = { acceleration = 0.06, activatewhenbuilt = true, brakerate = 0.138, buildcostenergy = 106200, buildcostmetal = 6080, builder = false, buildpic = "talon_mrtn.dds", buildtime = 75000, canattack = true, canguard = true, canmove = true, canpatrol = true, cansto...
return { PlaceObj('ModItemCode', { 'name', "Drone", 'FileName', "Code/Drone.lua", }), PlaceObj('ModItemCode', { 'name', "DroneHub", 'FileName', "Code/DroneHub.lua", }), }
------------------------- -- Bar for AwesomeWM -- ------------------------- local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local vicious = require("vicious") local bat_indicator = wibox.widget.textbox() local volume_indicator = wibox.widget.textbox() local xresources = r...
cloud.commands = { -- User commands help = { syntax = cloud.tags.syntax.."!help <command name>", about = cloud.tags.about.."Get help for a particular command.", func = function(id, pl, text, tbl) -- If a command has been supplied, if it exists in the table, and if it has a...