content
stringlengths
5
1.05M
-- -- An epigraph package for SILE -- 2021, Didier Willis -- License: MIT -- SILE.require("packages/rules") local styles = SILE.require("packages/styles").exports SILE.require("packages/omikhleia-utils") SILE.settings.declare({ parameter = "epigraph.beforeskipamount", type = "vglue", default = SILE.setting...
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- require 'torch' local...
class 'AttributeBoost' extends 'ActiveRecord::Base' AttributeBoost:belongs_to 'Attribute'
--thanks to diriel, blert2112 and taikedz local tamed_dragons = {} --items and tools minetest.register_craftitem("dmobs:dragon_gem_lightning", { description = "Lightning Gem", inventory_image = "dmobs_gem_lightning.png" }) minetest.register_craftitem("dmobs:dragon_gem_ice", { description = "Ice Gem", inventory_...
AddCSLuaFile() DEFINE_BASECLASS( "gmod_wire_plug" ) ENT.PrintName = "Wire Plug" ENT.WireDebugName = "DataPlug" function ENT:GetSocketClass() return "gmod_wire_datasocket" end if CLIENT then function ENT:DrawEntityOutline() end -- never draw outline return end -- No more client function ENT:Initialize() self:Phy...
-- Point Point = {} function Point.new( x, y ) local self = setmetatable( {}, { __index = Point } ) self.x = x self.y = y return self end function Point:set( x, y ) self.x = x self.y = y end function Point:getX() return self.x end function Point:getY() return self.y end function Point:toString() str = st...
return [[vac vacancies vacancy vacant vacantly vacantness vacate vacated vacates vacating vacation vacationer vacations vacatur vacaturs vaccinal vaccinate vaccinated vaccinates vaccinator vaccine vaccines vaccinia vaccinial vaccinium vacciniums vacherin vacherins vacillant vacillate vacillated vacillates vacked vackin...
--[[ /////// ////////////////// /////// 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 /////// ///////////////// ]] local QuestID = 1 local Quest = Quests[QuestID] Quest.Texts = ...
local THIS_DIR = (... or ''):match("(.-)[^%.]+$") or '.' function pixelTextStubbed(x, y, text, color) -- noop for running from terminal end function drawPixelStubbed(x, y, color) -- noop for running from terminal end function drawLineStubbed(x, y, x2, y2, color) -- noop for running from terminal end function dra...
--====================================================================-- --== Hex Color File --====================================================================-- local data = { ["Alice Blue"] = "#F0F8FF", ["Antique White"] = "#FAEBD7", ["Aqua"] = "#00FFFF", ["Aquamarine"] = "#7FFFD4", ["Azure"] = "#F0FFFF", ...
sniper_second_attack = class({}) sniper_ex_second_attack = class({}) function sniper_second_attack:GetCastAnimationCustom() if self:GetLevel() >= 2 then return ACT_DOTA_DIE end return ACT_DOTA_CAST_ABILITY_1 end function sniper_second_attack:GetAnimationTranslate() if self:GetLevel() >= 2 then return "ove...
-- Localize globals local Settings, assert, minetest, modlib, next, pairs, ipairs, string, setmetatable, table, type, unpack = Settings, assert, minetest, modlib, next, pairs, ipairs, string, setmetatable, table, type, unpack -- Set environment local _ENV = ... setfenv(1, _ENV) max_wear = 2 ^ 16 - 1 function overri...
return { version = "1.4", luaversion = "5.1", tiledversion = "1.4.3", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 22, tilewidth = 8, tileheight = 8, nextlayerid = 8, nextobjectid = 570, properties = {}, tilesets = { { name = "dungeon_tileset", f...
-- QUATRON CUBE OBJECT -- -- Create the Quatron Cube base Object -- QC = { ent = nil, player = "", MF = nil, entID = 0, spriteID = 0, consumption = 0, updateTick = 60, lastUpdate = 0, dataNetwork = nil, energyLevel = 1 } -- Constructor -- function QC:new(object) if object == nil then return end local t = ...
local key = KEYS[1] local interval_milliseconds = tonumber(ARGV[1]) or 0 local limit = tonumber(ARGV[2]) or 0 if interval_milliseconds == 0 then return {false, 0} end redis.replicate_commands() redis.call('set', KEYS[1], 0, 'PX', interval_milliseconds, 'NX') local usage = redis.call('incr', KEYS[1]) if usage > ...
local SubStruct = require "roomgen.SubStruct" local SSVending = Class.create("SSVending", SubStruct) function SSVending:makeStructure() local xOffset = 2 if self.x + xOffset + 2> self.maxX then return end -- self.room:addRectangleObj("lvl.ObjVending",self.x,self.y - 1,2,2,nil) end return SSVending
local Slot = require('motras_slot') local t = require('motras_types') local AssetBlueprint = require('motras_asset_blueprint') local Blueprint = {} function Blueprint:new(o) o = o or {} o.tpf2Template = o.tpf2Template or {} o.platformDecorationFunc = function () end o.trackDecorationFunc = f...
add_requires("fmt >=8.1.1", "lyra >=1.6") add_rules("mode.debug", "mode.release") set_languages("c++20") target("wtf-sorter") set_kind("binary") add_files("src/*.cpp") add_headerfiles("src/*.h") add_packages("fmt", "lyra")
local Test=import('SluaTestCase'); local t=Test(); local mm = {t:GetMap(), slua.Map(EPropertyClass.Int, EPropertyClass.Str)} local function test() for i,v in ipairs(mm) do local map = v map:Add(5,"500") print("map:Get(5)", map:Get(5)) map:Add(1,"100") map:Add(2,"200") print("map num", map:Num()) map:...
sArenaMixin = {}; sArenaFrameMixin = {}; sArenaMixin.layouts = {}; sArenaMixin.portraitClassIcon = true; sArenaMixin.portraitSpecIcon = true; sArenaMixin.defaultSettings = { profile = { currentLayout = "BlizzArena", classColors = true, showNames = true, statusText = { u...
local matrice = require("matrice_object") local function createIdentity() return matrice.create(4,4, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1 ) end local function createScale3D(scale) return matrice.create(4,4, scale.x,0,0,0, 1,scale.y,0,0, 0,0,scale.z,0, ...
local peds = {} function close (skin,x,y,z) peds[source] = createPed(skin,x,y,z) warpPedIntoVehicle(peds[source],getPedOccupiedVehicle(source),1) end addEvent("warpPed", true) addEventHandler("warpPed", getRootElement(), close) function cleanPedsFromServer() if peds[source] then if isElement(peds[source]) the...
if vim.g.vscode then -- stylua: ignore start vim.keymap.set('n', '<Leader>zz', '<Cmd >call VSCodeNotify("workbench.action.toggleZenMode")<CR>') vim.keymap.set('n', '<Leader><Leader>z', '<Cmd >call VSCodeNotify("workbench.action.toggleZenMode")<CR>') -- stylua: ignore end return end if not pcall(requi...
--[[ Title: my school page Author(s): big CreateDate: 2019.09.11 ModifyDate: 2021.07.28 Place: Foshan Desc: set user school. use the lib: ------------------------------------------------------------ local MySchool = NPL.load('(gl)Mod/WorldShare/cellar/MySchool/MySchool.lua') MySchool:Show() MySchool:ShowJoinSchool() -...
--PUT THE TOOLS INTO THE TEAM function teamFromColor(color) for _,t in pairs(game:GetService("Teams"):GetChildren()) do if t.TeamColor==color then return t end end return nil end function onSpawned(plr) local tools = teamFromColor(plr.TeamColor):GetChildren() for _,c in pairs(tools) do c:Clone().Pare...
--[[ Copyright 2014 Sergej Nisin 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 agreed to in w...
---------------------------------------------------------------- -- File : Assets\BIZ_Scr\Core\audiomanager.lua -- Author : www.loywong.com -- COPYRIGHT : (C) -- Date : 2019/12/26 -- Description : ⾳效播放模块(Lua) 主要为了处理分不同bundle来打包 ⼤厅和不同玩法的音效 优化热更包体大小 -- !!!所有关卡通⽤的⾳效也属于Asset_0的⾳效 ------...
-- Integration of ambox with sockets. -- function asock_module(socket) socket = socket or require("socket") select = socket.select local tinsert = table.insert local aself = ambox.self_addr local asend = ambox.send_later local arecv = ambox.recv local reading = {} -- Array of reading sockets for next select(). loca...
me = game.Players.luxulux char = me.Character place = 1 trapdist = 10 modes = {"jail","trap"} mode = modes[place] function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.CanCollide = collide part.Transparency = tran part.Reflectance = ref part.Size ...
local plyrs = game:GetService("Players") local wkrsp = game:GetService("Workspace") local game = game local hull = 500 local pilot = false local alive = true local cannon = true local colors = {"Dark red", "Reddish brown"} local color = nil local pos = 5 local forward = false local back = false local turn =...
local AddonName, AddonTable = ... AddonTable.deadmines = { 1951, -- Blackwater Cutlass -- Glubtok 2169, -- Buzzer Blade 5444, -- Miner's Cape 5195, -- Gold-Flecked Gloves -- Helix Gearbreaker 5200, -- Impaling Harpoon 5191, -- Cruel Barb 5443, -- Gold-Plated Buckler ...
function plugin:load( builder ) print "Hello from plugin `print`!" end function plugin.directives.print() end
input = {} for i=1,rho do table.insert(input, torch.Tensor(batchSize):random(1,nIndex)) end output = rnn:forward(input) assert(#output == #input)
--[[ MIT License Copyright (c) 2019 Michael Wiesendanger 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, mod...
-- require "keys" -------- -- Pomodoro module local pom_work_period_sec = 25 * 60 local pom_rest_period_sec = 5 * 60 local pom_work_count = 0 local pom_curr_active_type = "work" -- {"work", "rest"} local pom_is_active = false local pom_time_left = pom_work_period_sec local pom_disable_count = 0...
return function() local Packages = script.Parent.Parent local Roact = require(Packages.Roact) local forwardRef = require(script.Parent.forwardRef) local createSpy = require(script.Parent.Test.createSpy) it("should provide a valid ref to the given function when none is passed in", function() local internalCompo...
Game = { Version = "1.0" } Window = { width = 1280, height = 720 } love.window.setMode(0, 0) Screen = { width = love.graphics.getWidth(), height = love.graphics.getHeight() } sounds = { ['main'] = love.audio.newSource('assets/sounds/main.wav', 'static'), ['play'] = love.audio...
--[[ Clashing Countries Configuration File (config.lua) ]] -- Video Settings screen_width=1024 screen_height=768 fullscreen=false -- if set to true then screen_width and screen_height are ignored and the resolution of the primary monitor is used
-- -- Created by IntelliJ IDEA. -- User: apatterson -- Date: 6/28/18 -- Time: 9:39 PM -- To change this template use File | Settings | File Templates. -- local tableUtil = require("../util/table") local module = {} function module.hashModifiersAndKey(modifiers, key) local tab = tableUtil.copy(modifiers); tabl...
workspace "sdbf" configurations {"Release", "Debug"} project "sdbf" kind "ConsoleApp" language "C++" targetdir "bin/%{cfg.buildcfg}" includedirs {"src/", "include/"} files {"src/**.cpp", "src/**.c", "include/**.cpp", "include/**.c", "src/**.h", "src/**.hpp", "include/**.h", "include/**.hpp"} filter "configur...
local present, telescope = pcall(require, "telescope") if not present then error "This plugin requires telescope.nvim (https://github.com/nvim-telescope/telescope.nvim)" end local utils = require "telescope.utils" local defaulter = utils.make_default_callable local actions = require "telescope.actions" local action...
-- taken from https://github.com/wate/clink_completion/blob/master/win.lua local pscp_parser = clink.arg.new_parser() pscp_parser:set_flags( "-ls", "-p", "-q", "-r", "-batch", "-sftp", "-scp" ) clink.arg.register_parser("pscp", pscp_parser) local psftp_parser = clink.arg.new_parser() psftp_parser:set_flags( "-b"...
--[[ This Lua code was generated by Lemplate, the Lua Template Toolkit. Any changes made to this file will be lost the next time the templates are compiled. Copyright 2016 - Yichun Zhang (agentzh) - All rights reserved. Copyright 2006-2014 - Ingy döt Net - All rights reserved. ]] local gsub = ngx.re.g...
local redis = require "resty.redis" local redisex = require "resty.redisex" local log = require "resty.log" local _M = {} function _M.get() local red = redis:new() red:set_timeout(1000) -- 1 sec -- or connect to a unix domain socket file listened -- local ok, err = red:connect("unix:/path/to/red...
--[[ TheNexusAvenger Stores and parses the configuration. --]] local NexusObject = require(script.Parent.Parent:WaitForChild("NexusInstance"):WaitForChild("NexusObject")) local Configuration = NexusObject:Extend() Configuration:SetClassName("Configuration") --[[ Creates the configuration. --]] function Configurat...
local perlin_buffers = {} mapgen_helper.register_perlin = function(name, perlin_params) perlin_buffers[name] = perlin_buffers[name] or {} if perlin_buffers[name].perlin_params then minetest.log("error", "mapgen_helper.register_perlin3d called for " .. name .. " when perlin parameters were already registered.") r...
function EFFECT:Init( data ) if LocalPlayer():Team() == TEAM_STALKER then return end local pos = data:GetOrigin() local emitter = ParticleEmitter( pos ) local particle = emitter:Add( "effects/blood_core", pos ) particle:SetDieTime( 0.5 ) particle:SetStartAlpha( 200 ) particle:SetEndAlpha( 0 ) particle:Se...
local Bot={}; Bot.classifier=nil; Bot.records=nil; Bot.classAttribute=nil; function Bot.initialize(agent) if Bot.classifier == nil then Bot.classifier=Bot.createNaiveBayseClassifier(agent:getScriptClassPath()); end agent:setWalkSpeed(40); agent:setSenseRange(250); agent:setLife(300); local agentId=agent:ge...
local Persistent = require 'projects.persistent' local utils = require 'projects.utils' local extension_man = require('projects.extension_manager'):new() local Config = require 'projects.config' -- **************************************************************************** -- -- **************************************...
function scripts.utils.bind_functional(command, silent, remove_on_new_location) scripts.utils.functional_key = command if not silent then cecho("\n\n<" .. scripts.ui:get_bind_color_backward_compatible() .. ">bind <yellow>" .. scripts.keybind:keybind_tostring("functional_key") .. "<" .. scripts.ui:get_b...
minetest.register_node('ruins:old_skeleton', { description = 'Old Skeleton', drawtype = 'mesh', mesh = 'decoblocks_old_skeleton.obj', tiles = {name='decoblocks_old_skeleton.png'}, visual_scale = 0.5, groups = {cracky=2, oddly_breakable_by_hand=5}, paramtype = 'light', paramtype2 = 'facedir', selection...
require 'image' require 'nn' require 'nngraph' require 'cunn' require 'cudnn' require 'cutorch' require 'lfs' require 'stn' util = paths.dofile('util.lua') torch.setdefaulttensortype('torch.FloatTensor') local alphabet = "abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{} " local dict = {} for i ...
local META = ix.squad.meta or ix.middleclass("ix_squad") META.__index = META META.name = META.name or "ERROR" META.members = META.members or {} function META:__tostring() return "squad["..self.owner.."]["..self.name.."]" end function META:Initialize(owner, name) self.owner = owner self.name = name self.members ...
-- Copyright (c) 2022 Emmanuel Arias local ROOT = "../../../../" project "OpenFBX" kind "StaticLib" language "C" staticruntime "off" targetdir (ROOT .. TARGET_FOLDER) objdir (ROOT .. INTERMEDIATE_FOLDER) files { "src/miniz.c", "src/miniz.h", "src/ofbx.cpp", "src/ofbx.h" }...
local ospath = require 'ospath' module('cppcodebase', package.seeall) function SetDir(dir) if not ospath.exists(dir) then ospath.mkdir(dir .. '/') end ospath.chdir(dir) end function lib_name(i) return "lib_" .. i end function CreateHeader(lib, name) local filename = name .. ".h" local ...
module("luci.controller.agentx1-gui", package.seeall) function index() entry({"admin", "network", "agentx1"}, cbi("agentx1-gui/agentx1-gui"), _("agentx1")) end
----------------------------------- -- PET: Automaton ----------------------------------- require("scripts/globals/status") require("scripts/globals/pets") function onMobSpawn(mob) mob:setLocalVar("MANEUVER_DURATION", 60) mob:addListener("EFFECTS_TICK", "MANEUVER_DURATION", function(automaton) if (auto...
---@class CS.FairyEditor.Component.InputElement : CS.System.ValueType ---@field public name string ---@field public type string ---@field public prop string ---@field public dummy boolean ---@field public extData CS.System.Object ---@field public min CS.FairyEditor.Component.InputElement.OptionalValue_CS.System.Single ...
require("win32")
local function factorial(n) if n == 0 then return 1 else return factorial(n - 1) * n end end print(factorial(10))
local Aye = Aye; -- create radar -- -- @noparam -- @noreturn Aye.modules.Nameplates.radar.init = function() Aye.modules.Nameplates.radar.background = CreateFrame("Frame", nil, UIParent); Aye.modules.Nameplates.radar.background:SetBackdrop({ bgFile = "Interface\\Buttons\\WHITE8X8", edgeFile = "Interface\\Button...
if getgenv().building == true then warn(string.format('already building, type %s%s%s in the chat to stop building.', "'", getgenv().stop_command, "'")) return end local lplayer = game.Players.LocalPlayer local mouse = lplayer:GetMouse() local transparency_table = {} local clicked = false getgenv().buil...
-- Admin Open Player Inventory Soft Module -- Displays a table of all players with and button to open their inventory -- Uses locale __modulename__.cfg -- @usage require('modules/dddgamer/admin/admin-open-player-inventory') -- ------------------------------------------------------- -- -- @author Denis Zholob (DDDGamer)...
local function QuickNPC(Name, PrintName, SpawnName, Race, Distance, Model) local NPC = {} NPC.Name = Name NPC.PrintName = PrintName NPC.SpawnName = SpawnName NPC.Race = Race NPC.DistanceRetreat = Distance NPC.Model = Model return NPC end local function AddBool(Table, IsFrozen, IsInvincible, IsIdle) Table.Froz...
-- ======================================================================= -- ======================== EXTRA FUNCTIONALITY ========================== -- ======================================================================= -- ============================ Admin Tools ============================== -- =================...
return {'chileen','chileens','chili','china','chinees','chinese','chinezen','chiro','chirojeugd','chirojongen','chiromeisje','chianti','chiasma','chiasme','chic','chicane','chicaneren','chicaneur','chick','chicst','chiffon','chiffonniere','chignon','chihuahua','chijl','chikwadraattoets','chili','chiliasme','chilipeper'...
--[[ author: jie123108@163.com date: 20151120 comment: create collection index。 ]] local mongo_dao = require("resty.stats.mongo_dao") local util = require("resty.stats.util") local t_ordered = require("resty.stats.orderedtable") local _M = {} -- created indexes _M.exist_indexes = {} -- create index if not exist! f...
---------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------...
local app = require "app" --/ import local ngx = require("ngx") local app_helpers = require("lapis.application") local respond_to = require("lapis.application").respond_to local json_params = require("lapis.application").json_params local jwt = require ("resty.jwt") local Model = require("lapis.db.model").Model --\ im...
-- don't accumulate indentation after the expression a = { } b = { } a = { table_elt_indented } a = a + 5 + 10 this_should_be_unindented() -- here foobar should be indented as simple continuation statement a = a + dosmth( ) + foobar a = do_smth( do_smth_arg ) b = { ...
local intro = { "In the wake of an asteroid strike, food supplies are", "running low. Desperate to feed the colony until the new", "hydroponics systems come online, you enter the deadly", "asteroid Endor in search of a legendary root vegetable..." } local endings = { { food = -1, "You died in the depths of ...
-- -- Loads optional plugins from our config package that contain -- platform specific support -- local cmd = vim.cmd local fn = vim.fn local function setup() if fn.has('unix') == 1 then cmd('packadd platform-unix') end if fn.exists('g:vscode') == 1 then cmd('packadd host-vscode') els...
object_ship_jedi_starfighter_tier1 = object_ship_shared_jedi_starfighter_tier1:new { } ObjectTemplates:addTemplate(object_ship_jedi_starfighter_tier1, "object/ship/jedi_starfighter_tier1.iff")
function get_stalactite_point() local num_stalactites = get_battle_data_size("stalactite") / 6 local num = rand(num_stalactites) local tip_x = get_battle_data("stalactite", num*6) local tip_y = get_battle_data("stalactite", num*6+1) local side = rand(2) local end_x = get_battle_data("stalactite", num*6+2+side*2) ...
top_background_color = Color.Black bottom_background_color = ThemeColor.White particle_color = ThemeColor.White local t = Def.ActorFrame {} t[#t+1] = LoadActor(THEME:GetPathB("", "_Background"), {}) t[#t+1] = Def.Sprite { InitCommand = function(self) self:LoadFromCurrentSongBackground() end, OnCommand = f...
-- Copyright 2004-present Facebook. All Rights Reserved. require('fb.luaunit') require 'cunn' require('fbcunn') local num_tries = 2 local jacobian = nn.Jacobian local precision = 4e-3 local batch_max = 3 local feature_max = 100 local dim1_max = 3 local dim2_max = 3 local function pickPow() local num = torch.rando...
function eventLoop(tc, tr) Timer.process() end
local matHover = Material( "vgui/spawnmenu/hover" ) local PANEL = {} AccessorFunc( PANEL, "m_iIconSize", "IconSize" ) /*--------------------------------------------------------- Name: Paint ---------------------------------------------------------*/ function PANEL:Init() self.Icon = vgui.Create(...
module(..., package.seeall) ABOUT = { NAME = "mqtt_shelly", VERSION = "2021.04.26", DESCRIPTION = "Shelly MQTT bridge", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2020-2021 AKBooer", DOCUMENTATION = "", LICENSE = [[ Copyright 2013-2021 AK Booer Licensed under the Apache ...
local ffi = require("ffi") require("lj2zydis.ffi.DecoderTypes") require("lj2zydis.ffi.Status") require("lj2zydis.ffi.String") ffi.cdef[[ typedef ZydisU8 ZydisFormatterStyle; enum ZydisFormatterStyles { ZYDIS_FORMATTER_STYLE_INTEL, ZYDIS_FORMATTER_STYLE_MAX_VALUE = ZYDIS_FORMATTER_STYLE_INTEL }; ]] ffi.cde...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(4) --!./tcltestrunner.lua -- 2008 October 20 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others...
local objects = { -- Maxime createObject(18030,2138.0996094,-1625.7998047,391.1000061,0.0000000,0.0000000,0.0000000, 2), --object(gap, 2), (1, 2), createObject(2774,2150.7197266,-1631.3475342,399.7000122,0.0000000,0.0000000,0.0000000, 2), --object(cj_airp_pillars, 2), (9, 2), createObject(2774,2150.7128906,-1629.7998...
-- -- scenetemplate.lua -- ---------------------------------------------------------------------------------- local composer = require( "composer" ) local scene = composer.newScene() local function returnFunc( event ) if event.phase == "began" then print("오버레이 종료") composer.hideOverlay(false, "zoomOutInFade", 20...
--[[ Virtual machine for Postscript This object represents the Postscript "machine", which is the execution model for the Postscript interpreter. The machine is the organization point for things like the various stacks, dictionaries, graphics connection and whatnot. You should be able to ...
local socket = require("socket") local function read(net, size) return net.conn:receive(size) end local function write(net, data) return net.conn:send(data) end local function close(net) return net.conn:close() end local function settimeout(net, v) net.conn:settimeout(v) end local meta = { __index = { ...
ARC.kMoveSpeed = 1.2 -- was 2.0 ARC.kCombatMoveSpeed = 0.4 -- was 0.8 function ARC:GetIsSighted() return true end if Server then local oldOnUpdate = ARC.OnUpdate local function findTarget(targets, arcOrigin, targetSearching, distToTarget, target) if targetSearching then for _, enemy in ipairs (targets) do...
local telescope = require('telescope') telescope.setup {defaults = {file_ignore_patterns = {"node_modules"}}}
-- Yes, I'm American. -- local tokenize = function(sep, ...) -- String, and the separator to look for in said string local words = table.new() local str = table.concat({...}, sep) for word in str:gmatch("[^" .. sep .. "]+") do words:insert(word) end return words end return tokenize
-- see readme.md -- @author Quenty --[[ Update August 16th, 2014 - Any module with the name "Server" in it is not replicated, to prevent people from stealing nevermore's complete source. ]] local NevermoreEngine = {} local Players = game:GetService("Players") local ReplicatedStorage = game:GetServic...
-- Number setting -- Part of Live Simulator: 2 -- See copyright notice in main.lua local love = require("love") local Luaoop = require("libs.Luaoop") local Setting = require("setting") local color = require("color") local MainFont = require("main_font") local Util = require("util") local AssetCache = requi...
object_tangible_collection_reward_sith_holocron_schematic_reward = object_tangible_collection_reward_shared_sith_holocron_schematic_reward:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_sith_holocron_schematic_reward, "object/tangible/collection/reward/sith_holocron_schematic_reward.iff")
function Client_SaveConfigureUI(alert) Mod.Settings.MaxAttacks = InputMaxAttacks.GetValue(); if( Mod.Settings.MaxAttacks == nil)then Mod.Settings.MaxAttacks = 5; end if( Mod.Settings.MaxAttacks < 1)then alert('With this Settings, it is impossible to win a game through elimination.'); end if( Mod.Settings....
solution "packr" configurations { "release" } project "packr" kind "ConsoleApp" language "C++" -- buildoptions { "-Wall" } files { "**.h", "src/launcher.cpp" } includedirs { "include", "include/jni-headers" } defines { "NDEBUG" } flags { "Optimize" } kind "WindowedApp" defines { "WINDOWS" } inc...
--[[ 选择目标 ]] local SelectTarget = class("SelectTarget", require("app.main.modules.script.ScriptBase")) -- 构造函数 function SelectTarget:ctor(config) table.merge(self,config) end -- 执行函数 function SelectTarget:execute(...) if self.scene == "BATTLE" then self:executeInBattle(...) elseif self.scene == "MAP" then s...
--[[ Name: "sh_comm.lua". Product: "HL2 RP". --]] local MOUNT = MOUNT; local COMMAND = {}; -- Set some information. COMMAND.tip = "Record the biosignal of the character you're looking at."; COMMAND.flags = CMD_DEFAULT; -- Called when the command has been run. function COMMAND:OnRun(player, arguments) local target =...
data:extend({ { type = "recipe", name = "5d-mining-drill-range-3", enabled = "false", energy_required = 2, ingredients = { {"5d-mining-drill-range-2", 1}, {"5d-tin-gear-wheel", 35}, {"zinc-plate", 15}, {"electronic-circuit", 50}, {"advanced-circuit", 1...
Hephaistos.Recenter(ScreenData.GhostAdmin, 'ItemStartX', 'ItemStartY')
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require('ISUI/ISScrollingListBox') require('Vehicles/ISUI/ISUI3DScene') local FONT_HGT_SMALL = getTextManager():getFontHeight(UIFont...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local _M = function(role,data) if not data.pos or not data.itemid then return 2 end if type(data.itemid) ~= "table" then return 2 end data.pos = tonumber(data.pos) if data.pos < 1 or data.pos > ...
require "wsapi.request" require "wsapi.response" require "wsapi.util" local _G, setfenv = _G, setfenv module("orbit") local _M = _M setfenv(1, _G) _M._NAME = "orbit" _M._VERSION = "2.2.0" _M._COPYRIGHT = "Copyright (C) 2007-2010 Kepler Project" _M._DESCRIPTION = "MVC Web Development for the Kepler platform" local R...