content
stringlengths
5
1.05M
data:extend { { type = 'bool-setting', name = 'picker-tool-admin-only', setting_type = 'runtime-global', default_value = true, order = 'picker[admin]' } }
TTS.Admin.LocalPerms = {} TTS.Admin.LocalRoles = {} netstream.Hook('WS:Permissions/List', function(perms) TTS.Admin.LocalPerms = perms end) netstream.Hook('WS:Roles/List', function(roles) TTS.Admin.LocalRoles = roles end)
game:DefineFastFlag("LuaCatalogFixRemoveSellToastIcon", false) return function() return game:GetFastFlag("LuaCatalogFixRemoveSellToastIcon") end
local detours = {} local function Detour(tbl,key,newfunc) if (tbl[key] == nil) then return end local oldfunc = tbl[key] if (!isfunction(oldfunc)) then return end detours[key] = {tbl = tbl,oldfunc = oldfunc} tbl[key] = function(...) newfunc(...) return oldfunc(...) end end local msg = "" Detour(net,"Send...
vr_mem_stats_table = {} vr_mem_stats_table[1] = {} vr_mem_stats_table[1].field_name = "vr_mem_stats_h_op" vr_mem_stats_table[1].ProtoField = ProtoField.int8 vr_mem_stats_table[1].base = base.DEC vr_mem_stats_table[1].append_value = { branch = { prepend = ": ", ...
-- Read and step through dialogue trees created from Dialogger tool. -- http://stewart.bracken.bz/storage/Dialogger/ local DialogueOp = require "dialogue_op_def" local VarState = require "variablestate" local M = {} M.TNODE_TEXT = "Text" M.TNODE_NODE = "Node" M.TNODE_CHOICE = "Choice" M.TNODE_SET = "Set" M.TNODE_BRAN...
local cURL = require("lcurl") local post = cURL.form() -- post file from filesystem :add_file ("name", "post.lua", "text/plain") -- post file from data variable :add_buffer("name2", "dummy.html", "<html><bold>bold</bold></html>", "text/html") cURL.easy() :setopt_url("http://localhost") :setopt_httppost(p...
-- View whether tiles on the map can be pathed to --[====[ gui/pathable ============ Highlights each visible map tile to indicate whether it is possible to path to from the tile at the cursor - green if possible, red if not, similar to `gui/siege-engine`. A few options are available: * :kbd:`l`: Lock cursor: when e...
local Component = require "component" local Progression = Component:extend() Progression.name = "Progression" Progression.requirements = {components.Stats} function Progression:initialize(actor) actor.level = 1 actor.feats = {} actor:addAction(actions.LevelUp) end return Progression
-- NetHack 3.7 Sovereign.des -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1991-2 by M. Stephenson -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style = "solidfill", fg = "," }); des.level_flags("mazelevel", "noflip") des.region(selection.area(00,00,79,20), "l...
local game_scene = class("game_scene", cc.Layer) local public_module = require("app.public.util.public_module") local event_manager = require("app.public.util.event_manager") local layer_main = require("app.views.layer.layer_main") function game_scene:ctor() self:setPosition(display.cx, display.cy) self.lay...
local cfg = require("config").entity.stardust local util = require("util") local hexagon = require("hexagon") local core = require("core") local buff = require("buff") local function buff_charge(charge) return { name = "buff.stardust.charge", initial = function(self) local entity = self.owner local p = buf...
local V = { Name = "Lotus Exige S Roadster", Class = "prop_vehicle_jeep", Category = "LW Cars", Author = "LoneWolfie", Information = "Driveable lotus by LoneWolfie", Model = "models/LoneWolfie/lotus_exiges_roadster.mdl", //Vehicle Controller KeyValues = { vehiclescri...
-- convert permaprop to this system --[[ local tbl = sql.Query("SELECT * FROM permaprops") for k, v in pairs(tbl) do json = util.JSONToTable(v.content) print(string.format("{ent = '%s', pos = %s, ang = %s},", json.Class, "Vector("..json.Pos.x..", "..json.Pos.y..", "..json.Pos.z..")", "Angle("..json.Angle.p..", "..jso...
----------------------------------- -- Area: Western Altepa Desert -- Mob: Desert Dhalmel -- Note: Place holder for Celphie ----------------------------------- local ID = require("scripts/zones/Western_Altepa_Desert/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ------------------------------...
-------------------------------------------------------------------------------- -- -- (C) %%YEAR%% Michael J. Beer -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or with‐ -- out modification, are permitted provided that the following con‐ -- ditions are met: -- -- 1. Redistribu...
local assets = { Asset("ANIM", "anim/book_maxwell.zip"), } local prefabs = { "shadowwaxwell", "waxwell_book_fx" } local function doeffects(inst, pos) SpawnPrefab("statue_transition").Transform:SetPosition(pos:Get()) SpawnPrefab("statue_transition_2").Transform:SetPosition(pos:Get()) end local function ...
-- 1 ensemble + dropout os.execute('CUDA_VISIBLE_DEVICES=0 th train.lua -dataset flic -expID hg-generic8-ensemblev3 -netType hg-generic-ensemblev3 -nGPU 1 -optMethod adam -nThreads 4 -snapshot 0 -schedule "{{30,1e-3,0},{5,1e-4,0},{5,5e-5,0}}" -nStack 8 -genGraph 0') -- 2 ensemble + spatial dropout os.execute('CUDA_VI...
-- Created by LuaView. -- Copyright (c) 2017, Alibaba Group. All rights reserved. -- -- This source code is licensed under the MIT. -- For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. -- -- Created by IntelliJ IDEA. -- User: song -- Date: 16/10/13 -...
local curl = require 'cURL' local URL = require 'socket.url' local JSON = require 'dkjson' local clr = require 'term.colors' local function getRandomBootts(attempt, bootts) attempt = attempt or 0 attempt = attempt + 1 local count = bootts == 'butts' and 3 or 10 local url = string.format('http://api.o...
add_repositories("antlr https://github.com/antlr/antlr4.git") add_repositories("args https://github.com/Taywee/args.git") add_repositories("yaml https://github.com/jbeder/yaml-cpp.git") add_repositories("catch https://github.com/catchorg/Catch2.git") local repo = "$(configdir)/repositories/" target("lua-format") set_...
ENT.Type = "anim" ENT.Base = "wick_base" ENT.Category = "STRP" ENT.PrintName = "Дверь в бар" ENT.Author = "WickedRabbit" ENT.Contact = "" ENT.Spawnable = true --Spawnable? ENT.AdminSpawnable = false --If spawnable, is it admin only? function ENT:Draw() self:DrawModel() end
local bigfont = require("bigfont") exports = {} local currentLiseners = { } local customChars = { upArrow = "f\152f\137f\144", downArrow = "t\155t\159f\132" .."f\128f\129f\128", bottomBar = "t\143", leftBar = "f\149", rightBar = "t\149", } function getDrawingCharacter(topLeft, top...
-- Load plugins require "plugins" -- Load basics require "config.treesitter" -- Load LSPs require "config.lsp" require "config.lsp.snippets" require "config.lsp.completions" -- Load theme based require "config.tokyonight" require "config.lualine" require "config.indentline" -- Load extra features require "config.al...
ys = ys or {} ys.Battle.BattleBuffScapegoat = class("BattleBuffScapegoat", ys.Battle.BattleBuffEffect) ys.Battle.BattleBuffScapegoat.__name = "BattleBuffScapegoat" ys.Battle.BattleBuffScapegoat.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0, slot1) end ys.Battle.BattleBuffScapegoat.SetArgs = function (slot0, ...
local LoseGameSystem = tiny.processingSystem() LoseGameSystem.keyboard = true LoseGameSystem.filter = tiny.requireAll('score') function LoseGameSystem:process(entity, ev) if ev.isDown then love.event.quit() end end return LoseGameSystem
group("third_party") project("spirv-tools") uuid("621512da-bb50-40f2-85ba-ae615ff13e68") kind("StaticLib") language("C++") links({ }) defines({ "_LIB", }) includedirs({ "spirv-headers/include", "spirv-tools/include", "spirv-tools/source", }) files({ "spirv-tools/include/spirv-too...
--[[ Warp Splinter yells: Children, come to me! Warp Splinter yells: Maybe this is not-- No, we fight! Come to my aid! Warp Splinter yells: So... confused. Do not... belong here. Warp Splinter yells: What am I doing? Why do I... Warp Splinter yells: Who disturbs this sanctuary? Warp Splinter yells: You must die! But wa...
require "lunit" module("tests.e2.undead", package.seeall, lunit.testcase) function setup() eressea.free_game() end function test_undead_give_item() local r1 = region.create(0, 0, "plain") local f1 = faction.create("hodor@eressea.de", "human", "de") local u1 = unit.create(f1, r1, 1) u1.race = "und...
local GUI = { } local function inRect(pos, dim, point) return pos.x < point.x and pos.x + dim.x > point.x and pos.y < point.y and pos.y + dim.y > point.y end local function pressed(pos, dim) for k,v in pairs(Input.released) do if inRect(pos, dim, v.down) and inRect(pos, dim, v.pos...
require('nvim-treesitter.configs').setup { highlight = { enable = true, }, indent = { enable = true, }, autotag = { enable = true, }, ensure_installed = { 'bash', 'css', 'html', 'javascript', 'json', 'lua', 'yaml', }, keymaps = { ['af'] = '@function.outer', ...
-- Questo script disabilita lo Shift Lock. game.StarterPlayer.EnableMouseLockOption = false
local M = {} M.disable_buffer = function() if pcall(require, 'virt-column') then require('virt-column').setup_buffer({ virtcolumn = '' }) end end return M
local util = require"lacord.util" local SEPARATOR = require"lacord.x.command".SEPARATOR local components = require"lacord.x.components" local insert = table.insert local iiter = ipairs local get = rawget local setm = setmetatable local _ENV = {} --luacheck: ignore 111 local command_ctx = {__name = "lac...
local M = {} function M.error(msg) print("[Error] " .. msg) end function M.warning(msg) print("[Warning] " .. msg) end function M.info(msg) print("[Info] " .. msg) end return M
local noise = require("noise") local tne = noise.to_noise_expression -- Remove decorative placements. These bloat map sizes. local decoratives = data.raw["optimized-decorative"] for key, decorative in pairs(decoratives) do if decorative.autoplace ~= nil then decorative.autoplace.probability_expression = tn...
local Color = Config.common.color.Color local utils = Config.common.utils local hl = Config.common.hl local api = vim.api local hi, hi_link, hi_clear = hl.hi, hl.hi_link, hl.hi_clear local colorscheme = "catppuccin" vim.opt.bg = "dark" vim.g.ayucolor = "dark" vim.g.gruvbox_italic = 1 vim.g.gruvbox_contrast_dark = "m...
return {'oxidase','oxidatie','oxidatief','oxide','oxideren','oxidelaag','oxidehuid','oxidant','oxideerde','oxideert','oxiden','oxidatieve','oxiderend','oxiderende','oxides','oxidaties'}
local v = vim.api local Editor = {} Editor.get_curr_char = function () local byte_index = v.nvim_win_get_cursor(0)[2] return v.nvim_get_current_line():sub(byte_index, byte_index) end Editor.is_curr_char_space = function() return string.find(Editor.get_curr_char(), '%s') ~= nil end return Editor
--[[ Copyright (c) 2018 Optera * Part of Re-Stack * * See LICENSE.md in the project directory for license information. --]] -- Get ammo by category and set stack size local function SetByAmmoCategory(type, stack_size) if stack_size > 0 then for _, ammo in pairs(data.raw.ammo) do if ammo.ammo_t...
function digit (value) value = value / 8 if value >= 10 then return 0 end return value end oldvalue = 0 function reward () value = digit(data.score0) value = value + digit(data.score1) * 10 value = value + digit(data.score2) * 100 value = value + digit(data.score3) * 1000 value = value + digit(da...
--include("shared.lua") --AddCSLuaFile("shared.lua") --AddCSLuaFile("cl_init.lua") SWEP.Author = "TP Hunter NL" SWEP.Contact = "http:--facepunch.com/showthread.php?t=1328089" SWEP.Purpose = "Sit inside train and put it into reverser slot, turn reverser to forward, drive the train" SWEP.Instructions = "Used as a...
local window = require('cmp.utils.window') local config = require('cmp.config') ---@class cmp.DocsView ---@field public window cmp.Window local docs_view = {} ---Create new floating window module docs_view.new = function() local self = setmetatable({}, { __index = docs_view }) self.entry = nil self.window = win...
object_tangible_quest_talus_genetic_potential_datapad_07 = object_tangible_quest_shared_talus_genetic_potential_datapad_07:new { } ObjectTemplates:addTemplate(object_tangible_quest_talus_genetic_potential_datapad_07, "object/tangible/quest/talus_genetic_potential_datapad_07.iff")
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. high_valocity_feed_mechanism = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/component/weapon/projectile_feed_mechanism_enhancement_max_damage.iff", craftingValues = { {"maxdamage",20,20.01,...
-- SPDX-License-Identifier: BSD-3-Clause -- -- Copyright 2016 Raritan Inc. All rights reserved. -- Iterates through all uploaded Lua scripts and prints it actually state out. -- The output will be written back to usb stick require "LuaService" -- get the LuaService Manager local lsManager = luaservice.Manager:getDef...
---@class ISDebugBlood : ISDebugSubPanelBase ISDebugBlood = ISDebugSubPanelBase:derive("ISDebugBlood") function ISDebugBlood:initialise() ISDebugSubPanelBase.initialise(self) end function ISDebugBlood:createChildren() ISDebugSubPanelBase.createChildren(self) local x,y,w, obj = 10,10,self.width-30 self:initHorzB...
---- vim: ts=2 tabstop=2 shiftwidth=2 expandtab theme = {} theme.confdir = _Awesome.path.themes .. '/solarized-dark' --os.getenv("HOME") .. "/.config/awesome/themes/solarized-dark" theme.icons = _Awesome.path.themes .. '/icons' --os.getenv("HOME") .. "/.config/awesome/themes/solarized-dark/icons" theme.wallpaper = the...
-- Fixing and modifying the testrepos to be used -- for testing luagit2's functions local fix_repo = {} -- Temporarily changes .gitted/ to .git/ -- Requires a string argument of testrepo's name function fix_repo.set_repo(repo_name) os.execute("cd ../ && mv .git/ .gitted/") os.execute(string.format( [[cp -r "%s" "...
local ADDON = ... local L = Wheel("LibLocale"):NewLocale(ADDON, "zhTW")
local xxh32 = require("luaxxhash") local f = io.open("sherlock.txt") local text = f:read("*all") local str = "Cats are interesting." local str1 = "a" local strt = { str1:rep(4), str1:rep(16), str1:rep(32), str1:rep(32) .. str1 .. str1:rep(4), str:rep(256), "", "dupa", str, str1, text } local answer = { ...
local gbc = cc.import("#gbc") local JobsAction = cc.class("JobsAction", gbc.ActionBase) JobsAction.ACCEPTED_REQUEST_TYPE = "worker" function JobsAction:triggingAction(job) local key = job.data.key local number = job.data.number local redis = self:getInstance():getRedis() redis:set(key, number * 2) e...
BuildEnv(...) local BrowseItem = Addon:NewClass('BrowseItem', GUI:GetClass('ItemButton')) function BrowseItem:Constructor() self:SetCheckedTexture([[Interface\HelpFrame\HelpFrameButton-Highlight]]) self:GetCheckedTexture():SetTexCoord(0, 1, 0, 0.57) self:SetHighlightTexture([[Interface\HelpFram...
local isMinimuze = false; local cursorEnable = false; local sw,sh = guiGetScreenSize() local marker; -- CFG local keyToggle = "mouse3" -- actived script local keyApply = "mouse1" -- teleport local keyOnCar = "mouse2" -- сonfirmation for teleporting to the car local sizePickup = 1.5 function isPauseMenu...
object_building_kashyyyk_decd_wroshyr_fallen_tree_dead = object_building_kashyyyk_shared_decd_wroshyr_fallen_tree_dead:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_decd_wroshyr_fallen_tree_dead, "object/building/kashyyyk/decd_wroshyr_fallen_tree_dead.iff")
_G.Class = require '30log' print('Assuming the returned value when requiring "30log" \nis held in variable named Class') context('Class()', function() context('When Class is called with no args passed', function() test('it returns a new class (regular Lua table)',function() assert_equal(type(Class()),'...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'Afk Bot, Developer Erfan Ebrahimi, http://erfanebrahimi.ir | https://github.com/yeganehha ' version '1.0.0' server_scripts { '@es_extended/locale.lua', 'config.lua', 'server/main.lua' } client_scripts { '@es_extended/locale.lua', 'co...
local Parser = {} Parser.Types = { [0] = "open", [1] = "close", [2] = "ping", [3] = "pong", [4] = "message", -- unused [5] = "upgrade", [6] = "noop" } setmetatable(Parser.Types, { __index = function(_, index) for id, type in pairs(Parser.Types) do if type == index then return id end end end }...
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_CovenantSanctumUI C_CovenantSanctumUI = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_CovenantSanctumUI.DepositA...
PED_NETWORKED = true PED_NON_NETWORKED = false function createPed(pedType, model, position, heading,cb) requestModel(model,function() local ped = CreatePed(pedType,model,position.x,position.y,position.z,heading,PED_NETWORKED,false) SetModelAsNoLongerNeeded(model) cb(ped) end) end expor...
--时穿剑阵·四象阵 local m=14000009 local cm=_G["c"..m] function cm.initial_effect(c) --link summon aux.AddLinkProcedure(c,nil,4,4,cm.lcheck) c:EnableReviveLimit() --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) --battle d...
--- === cp.ui.Button === --- --- The `Button` type extends [Element](cp.ui.Element.md) and includes all its --- methods, fields and other properties. local require = require local axutils = require "cp.ui.axutils" local Element = require "cp.ui.Element" local Menu = require "cp.ui.Menu" loc...
object_tangible_furniture_modern_bar_piece_curve_s1_treasure_map = object_tangible_furniture_modern_shared_bar_piece_curve_s1_treasure_map:new { } ObjectTemplates:addTemplate(object_tangible_furniture_modern_bar_piece_curve_s1_treasure_map, "object/tangible/furniture/modern/bar_piece_curve_s1_treasure_map.iff")
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:80bc6ce36d3999c1c60ff2ce47185aab:7a5167064ab93c186141cc0e0a95d05c:cf8ab4992190eb44f97f06311ef326d7$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
--- @module OutputStream -- @author sci4me -- @license MIT -- @copyright Scitoshi Nakayobro 2021 local class = require "middleclass" local OutputStream = class("OutputStream") -- luacheck: push no unused args function OutputStream:writeU8(x) end function OutputStream:flush() end function OutputStream:close() end -...
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ local key = require 'pgf.gd.doc'.key loc...
-- This example shows how to present a menu with two choices. Each -- choice jumps the story to one of two possible scenes. This example -- also demonstrates jumping to other scenes in general. Eric = Character {dialogName = "Eric", textColor = "#c8ffc8"} Jeff = Character {dialogName = "Jeff", textColor = "#c8c8ff"}...
function class(classname, super) local superType = type(super) local cls if superType ~= "table" then superType = nil super = nil end -- inherited from Lua Object if super then cls = {} setmetatable(cls, {__index = super}) cls.super =...
cc = cc or {} ---Touch object ---@class Touch : Ref local Touch = {} cc.Touch = Touch -------------------------------- --- Returns the previous touch location in screen coordinates. <br> ---return The previous touch location in screen coordinates. ---@return vec2_table function Touch:getPreviousLocationInView() end -...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('CoolLine') then return end function AS:CoolLine() CoolLineDB.bgcolor = { r = 0, g = 0, b = 0, a = 0, } CoolLineDB.border = 'None' CoolLine.updatelook() AS:SkinBackdropFrame(CoolLine) CoolLine.Backdrop:SetAllPoints(CoolLine) CoolLine.Backdrop:CreateShadow() AS...
--[[------------------------------------------------------ # Lubyk core module This file is loaded just after the load paths have been changed and loads Lubyk essentials. --]]------------------------------------------------------ --=============================================== LOAD PATHS -- These paths alr...
--[[ (c) 2008-2011 David Manura. Licensed under the same terms as Lua (MIT). 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 ...
require 'engine' require 'shared' require 'arena' require 'buy_screen' require 'objects' require 'player' require 'enemies' require 'media' function init() shared_init() input:bind('move_left', {'a', 'left', 'dpleft', 'm1'}) input:bind('move_right', {'d', 'right', 'dpright', 'm2'}) input:bind('move_up', {'w'...
-- module Data.Array.Unsafe local Unsafe = {} exports.unsafeIndex = function (xs) return function (n) return xs[n+1] end end return Unsafe
include "src" include "test/src"
settings { } sync { default.rsync, source = "/home/user/workspace/cfnmxl/machine-vision-acquisition/tmp/data-root/", target = "powerplant.pfr.co.nz:/input/projects/dhs/smartsensingandimaging/development", -- # Large delay to allow complete writing and also deletion to not interfere delay =...
include("shared.lua") function ENT:Draw() render.SetMaterial( Material( "hlof/sprites/exit1" ) ) render.DrawSprite( self:GetPos(), 64, 64, Color( 255, 255, 255 ) ) end function ENT:Think() local light = DynamicLight( self:EntIndex() ) light.Pos = self:GetPos() light.r = 255 light.g = 255 l...
--LL-セレスト・ワグテイル --Scripted by mallu11 function c100425035.initial_effect(c) --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100425035,0)) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:...
local uv = require 'couv' local Buffer = uv.Buffer local exports = {} exports['Buffer.new'] = function(test) local buf = Buffer.new(2) test.equal(type(buf), 'userdata') buf = Buffer.new('abc') test.equal(type(buf), 'userdata') test.equal(buf[1], 97) test.equal(buf[2], 98) test.equal(buf[3], 99) test...
local skynet = require "skynet" local log = require "log" local text = require("text").modbus local api = require "api" local validate = require "utils.validate" local client = require "modbus.client" local mpdu = require "modbus.pdu" local mdata = require "modbus.data" local tblins = table.insert local strfmt = strin...
--[=[ @class SpawnServiceClient ]=] local require = require(script.Parent.loader).load(script) local SpawnServiceClient = {} function SpawnServiceClient:Init(serviceBag) assert(not self._serviceBag, "Already initialized") self._serviceBag = assert(serviceBag, "No serviceBag") self._serviceBag:GetService(require...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local List = require(ReplicatedStorage.Utilities.List) local Books = {} local books = ReplicatedStorage:WaitForChild("GetBooks"):InvokeServer() local bookToAuthorNames = {} --[book][authorName:lower()] = true local bookToAuthorLine = {} --[book] = authorLin...
if x then for i=1,10 do if a then print("okay") elseif b then print("b") break else break end end else print("else") end print("done")
local string = string local type = type local gsub = string.gsub local rep = string.rep local padding = {} function padding.pad(data, blocksize, optional) blocksize = blocksize or 16 if type(blocksize) ~= "number" then return nil, "invalid block size data type" end if blocksize < 1 or blocksize > 256 then ...
-- funfacts function facts() local facts {"A","B","C","D","E","F","G"} net.Start("FunFacts") net.WriteString(facts[math.random(#facts)]) net.Broadcast() chat.AddText(facts[math.random(#facts)]) print(facts[math.random(#facts)]) end timer.create("FunFacts", 1800, 0, facts)
DBT_AllPersistentOptions = { ["Default"] = { ["DBM"] = { ["StartColorPR"] = 1, ["Scale"] = 0.899999976158142, ["EnlargeBarsPercent"] = 0.125, ["StartColorR"] = 1, ["EndColorPR"] = 0.501960784313726, ["TimerPoint"] = "TOPRIGHT", ["EndColorDG"] = 0, ["HugeTimerPoint"] = "CENTER", ["EndColor...
local optionsSelections = {} optionsSelections[0] = "Back" optionsSelections[1] = "Volume" optionsSelections[2] = settings.displayModes[settings.displayModesIndex] function DrawOptionsScreen() love.graphics.clear(unpack(colors.black)) GameFont:setLineHeight(1) love.graphics.setColor(0, 0, 0, 100) lov...
-- separator function foo() local a,b,c,d; a=1;b=2;c=3;d=4; return a,b,c,d; end; a,b,c,d=foo(); print(a,b,c,d); a,b,c,d=foo();print(a,b,c,d);
local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local dpdkc = require "dpdkc" local filter = require "filter" local ffi = require "ffi" function master(...) local txPort, rate, cores = tonumberall(...) if not txPort or not rate or not cor...
return {'sipaliwini','sip','sipaliwinees','sipaliwinier','sipke','sip','sipma','sipkema','sipman','sipsma','sippe','sipper','sipst','sipaliwinese','sipaliwiniers','sipkes'}
local teleports = { [3178] = {value = 6, position = Position(33137, 31248, 6)}, [3179] = {value = 6, position = Position(33211, 31068, 9)}, [3180] = {value = 6, position = Position(33211, 31068, 9)}, function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then ...
-- Declare the function, takes two arguments function AddAndPrint(x, y) local result = x + y; print (x .. "+" .. y .. "=" .. result) end -- Call the function a few times AddAndPrint(2, 3, 7) -- Will print 2+3=5 AddAndPrint(4, 5, 8, 9, 10) -- Will print 4+5=9 AddAndPrint(6, 7, 11, 12, 14) -- Will print 6+7=13 -- Decl...
--[[ Copyright (c) 2010 Wendell Misiedjan Edited by: Wendell Misiedjan Based on: Manuel König files. 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 limita...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 09/02/2018 -- Time: 21:25 -- To change this template use File | Settings | File Templates. -- return function() LOADBYMAPFILE("assets/maps/final/cubetransporter.lua") --ember, purple, cyan, green, yellow scripts.objects.door(24, 12, true, false, nil...
--3L·不可思议的国度 local m=37564848 local cm=_G["c"..m] if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end cm.named_with_3L=true function cm.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_REMOVE) ...
local tmux = require('Navigator.tmux') local A = vim.api local F = vim.fn local cmd = A.nvim_command -- Just some state and defaults local N = { last_pane = false, config = nil, } local function wincmd(direction) cmd('wincmd ' .. direction) end local function tabcmd(direction) if direction == 'n' the...
local playsession = { {"rikkert", {869}}, {"redlabel", {354}}, {"Zymoran", {337}}, {"XnagitoX", {915}}, {"xiaoxi", {33427}}, {"Kamyk", {236518}}, {"651782904", {77998}}, {"CmonMate497", {3658}}, {"Ulygold", {2656}}, {"James_Hackett", {27840}}, {"Royal_X5", {1860}}, {"Decu", {5314}}, {"Jardee", {25418}} } r...
Background = Base:extend("Background", { sprite = nil, offset = nil, scale = nil, scroll = nil, color = "white", alpha = 1, dimensions = nil, sd = nil, quad = nil }) function Background:init(data) stache.checkArg("sprite", data.sprite, "asset", "Background:init") stache.checkArg("offset", data.offset, "vect...
SWEP.Base = "arccw_base" SWEP.Spawnable = true -- this obviously has to be set to true SWEP.Category = "ArcCW - Halo Custom Edition" -- edit this if you like SWEP.AdminOnly = false SWEP.PrintName = "Assault Carbine" SWEP.TrueName = "MA5K Assault Carbine" SWEP.Trivia_Class = "Carbine" SWEP.Trivia_Desc = "The MA5K carbi...
-- thread.lua -- -- Thread.lua exports a number of functions that deal with "threads". A -- "thread" consists of a *task* and a *coroutine*. -- -- Task Objects -- ------------- -- -- Task objects represent a pending operation, and store the following: -- -- * the dispatch context [needed to schedule a coroutine] -- ...