content
stringlengths
5
1.05M
pointSystem = {25, 18, 15, 12, 10, 8, 6, 4, 2, 1} -- [rank] = points, according to the formula 1 point system currentMap = {} mapList = {} playerTeamID = {} ranking = {} -- [i] = {teamid, points} teamMembers = nil TWState = false function startTeamWar(challengerTeam, victimTeam, maps) if #maps < 6 then local xml =...
require("love.timer") require("love.system") require("love.sound") require("love.physics") require("love.mouse") require("love.math") require("love.keyboard") require("love.joystick") require("love.image") require("love.font") require("love.filesystem") require("love.event") require("love.audio") require("love.graphics...
object_tangible_loot_creature_loot_kashyyyk_loot_potion_component_02 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_potion_component_02:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_potion_component_02, "object/tangible/loot/creature_loot/kashyyyk_loot/potion_componen...
print("") print("") print("") print("Outra migração") select_database("test_db") migration = alter_table("users") create_field(migration, "remember_token", "string") print("DUMP DA TABELA INTEIRA") dumptbl(migration) print("migration end")
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Vegemite"; ITEM.model = "models/vegemite/vegemite.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "The greatest thing humanity has to offer. It tastes of raw salt when consumed in large quantitie...
-- LUALOCALS < --------------------------------------------------------- local dofile, minetest, rawset = dofile, minetest, rawset -- LUALOCALS > --------------------------------------------------------- local thismod = minetest.get_current_modname() local modpath = minetest.get_modpath(thismod) parentmod = minete...
local Scalar = require 'libsclr' local f_to_s = require 'Q/OPERATORS/F_TO_S/lua/f_to_s' local T = {} local function fold( fns, vec) assert(type(vec) == "lVector") -- make sure functions are unique local cnt = 0 for i1, v1 in ipairs(fns) do for i2, v2 in ipairs(fns) do if ( i1 ~= i2 ) then assert(v1 ~...
function Local.Init(x, y, cluster, hits, rotation) Object.cluster = Engine.Scene:getGameObject(cluster); Object.index = Object.cluster:addTarget(Object); print("Target", x, y) local sprite_size = This.Sprite:getSize(); This.Sprite:setPosition(obe.Transform.UnitVector(0, 0), obe.Transform.Referential...
local function check_back_space() local col = vim.fn.col('.') - 1 if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then return true else return false end end local t = function(str) return vim.api.nvim_replace_termcodes(str, true, true, true) end --- move to prev/next ite...
return LoadActor(THEME:GetPathG("","_grade"),"Tier05");
ITEM.name = "Navy IO7A" ITEM.description = "A basic IO7A suit colored navy camo." ITEM.category = "Outfit" ITEM.model = "models/tnb/stalker/items/io7a.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.outfitCategory = "model" ITEM.pacData = {} ITEM.newSkin = 5 ITEM.replacements = "models/tnb/stalker/male_io7a.mdl"
generateOreItems({ name = "iron", slurry = { base_color = "#51898c", flow_color = "#323535", }, }) generateOreItems({ name = "copper", slurry = { base_color = "#60301b", flow_color = "#896848", }, }) generateOreItems({ name = "tin", slurry = { base_color = "#18300e", flow_color...
ESX = nil local PlayersHarvestingOrange = {} local PlayersHarvestingGrape = {} local PlayersWashMoney = {} local CopsConnected = 0 AddEventHandler('esx:playerLoaded', function(source) local xPlayer = ESX.GetPlayerFromId(source) end) AddEventHandler('esx:playerDropped', function(s...
mytable = 123 yourtable = 321
local action = require('vfiler/extensions/action') function action.check(extension) extension:check() end function action.execute(extension) extension:execute() end return action
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper" -- NOTE: This *should* be generic, but might not be due to differences in MegaChip/GigaChip handling and/or library stars return ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("loadouts", GAME_ID, "draft_sm_lib_max_1")
--author Himanshu Sharma local Score = {} local createdOn = nil local scoreId = nil local userName = nil local facebookArrayList = require("App42-Lua-API.FacebookProfile") local jsonDocList = require("App42-Lua-API.JSONDocument") local value function Score:new() o = {} setmetatable(o, self) self.__index = self ...
local PLAYER = FindMetaTable( 'Player' ) function GM:PlayerInitialSpawn( ply ) local Data = {} Data = ply:DataLoad() ply:SetNick( Data.name ) ply:SetRank( Data.rank ) ply:SetFrags( Data.frags ) ply:SetDeaths( Data.deaths ) ply:SetModel( Data.model ) ply:DataSave() player_manager.SetPlayerCl...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/resource_allocation.md -- Item: Use Case 1: Main Flo...
-- a quick LUA access script for nginx to check IP addresses against an -- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403. -- -- allows for a common blacklist to be shared between a bunch of nginx -- web servers using a remote redis instance. lookups are cached for a -- configurable period of time...
return require("installer/integrations/ls/helpers").npm.builder({ install_package = "emmet-ls", lang = "emmet_ls", bin_name = "emmet-ls", inherit_lspconfig = false, config = { default_config = { cmd = { "emmet-ls", "--stdio" }, filetypes = { "html", "css" }, root_dir = function(...
return Def.ActorFrame { --p1 LoadActor( "Back" )..{ InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,480); OnCommand=cmd(addx,-SCREEN_WIDTH;sleep,0.5;accelerate,0.5;addx,SCREEN_WIDTH); OffCommand=cmd(sleep,0.2;accelerate,0.5;addx,SCREEN_WIDTH); }; LoadActor( "Explanation" )..{ InitCommand=cmd(visible,GAMESTATE:Is...
local wrap, yield = coroutine.wrap, coroutine.yield local Iterable = require('iterables/Iterable') local TableIterable = require('class')('TableIterable', Iterable) function TableIterable:__init(tbl, map) self._tbl = tbl self._map = map end function TableIterable:iter() local tbl = self._tbl if not...
local K, C, L = unpack(KkthnxUI) tinsert(C.defaultThemes, function() local LootFrame = _G.LootFrame LootFrame:StripTextures() LootFrame:CreateBorder() LootFrameCloseButton:SkinCloseButton() LootFrame:SetHeight(LootFrame:GetHeight() - 30) LootFramePortraitOverlay:SetParent(K.UIFrameHider) for i = 1, LootFra...
data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel" data:extend( { { type = "solar-panel", name = "solar-panel-mk2", icon_size = 32, icon = "__FactorioExtended-Power__/graphics/icons/solar-panel-mk2.png", flags = {"placeable-neutral", "player-creation"}, minable = {hard...
-- -- Created by IntelliJ IDEA. -- User: gaoyangang -- Date: 16-10-22 -- Time: 下午2:48 -- To change this template use File | Settings | File Templates. -- local http = require("socket.http") local md5 = require("md5") print(md5.sumhexa("123456789")) b, c, h = http.request("http://www.baidu.com") --print(b) --print(c) --...
------------------------------------------------------------------------------- -- Importing module ------------------------------------------------------------------------------- local Selector = require "elasticsearch.selector.Selector" ------------------------------------------------------------------------------- ...
tileset = class("tileset") function tileset:initialize(path) self.set = love.graphics.newImage("assets/gfx/tilesets/"..path) self.quads = {} for i=0, 9 do local quad = love.graphics.newQuad(15*i, 0, 15, 15, self.set:getWidth(), self.set:getHeight()) table.insert(self.quads, quad) end end
-- Custom local prop_TournamentMgr = script:GetCustomProperty("_TournamentMgr") local Tournament = require(prop_TournamentMgr) local tourney = Tournament.New() function SubmitScores() print("submitting scores") for k,p in pairs(tourney:GetActivePlayers()) do local score = math.random(1, 100) print("f...
return setmetatable({},{ __index = function(self, key: string) return game.GetService(game, key) or nil end })
local M = {} function M.get(cp) local hi = { IndentBlanklineChar = { fg = cp.surface0 }, IndentBlanklineContextChar = { fg = cp.text }, } if cnf.integrations.indent_blankline.colored_indent_levels then hi["IndentBlanklineIndent6"] = {blend = "nocombine", fg = cp.yellow} hi["IndentBlanklineIndent5"] = {ble...
--[[ DUMPED USING COMPOSER DEVIL ]]-- Config = {} Config.Locale = 'en' -- Set the time (in minutes) during the player is outlaw Config.Timer = 1 -- Set if show alert when player use gun Config.GunshotAlert = true -- Polisler zor durumdayken bildirim Config.PoliceCode = true -- Polisler zor durumdayken bildirim Co...
require("lib_gamesense") local imageLib = require( "lib_image" ) local icons_statusIndicators = imageLib.load(require("imagepack_battlefield")) -- [About]------------------------------------------------------------------------------------------------------------------------------------------------------ -- Made by w7ru...
--[[ Retrieves at most one child from the children passed to a component. If passed nil or an empty table, will return nil. Throws an error if passed more than one child. ]] local function oneChild(children) if not children then return nil end local key, child = next(children) if not child then return ni...
BLTNotificationsManager = BLTNotificationsManager or class() function BLTNotificationsManager:init() self._notifications = {} self._uid = 1000 end function BLTNotificationsManager:_get_uid() local uid = self._uid self._uid = uid + 1 return uid end function BLTNotificationsManager:_ge...
local objmask = {} function objmask.demo() --Set a very visible color for the screen to clearly see what happens*/ -- lvgl.obj_set_style_local_bg_color(lvgl.scr_act(), lvgl.OBJ_PART_MAIN, lvgl.STATE_DEFAULT, lvgl.color_hex3(0xf33)); -- local om = lvgl.objmask_create(lvgl.scr_act(), nil); -- lvg...
local bullet = {} function bullet.inherit(x, y, vx, vy, rot) local self = { img = LG.newImage('lib/img/bullet.png'), x = x, y = y, vx = vx, vy = vy, rot = rot, lifeTime = 10, collides = true, action = { smoke = false, thrust = false } } self.vx = self.vx + math.sin(self.rot) * 500 se...
p = game.Players.LocalPlayer char = p.Character torso = char.Torso attacking = false track = false curcam = Workspace.CurrentCamera name = 'KFM' pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end) m = Instance.new("Model",char) m.Name = "legetony" cfn,ang = CFrame.new...
--[[-------------------------------------------------------------------- PhanxChat Reduces chat frame clutter and enhances chat frame functionality. Copyright (c) 2006-2018 Phanx <addons@phanx.net>. All rights reserved. https://www.wowinterface.com/downloads/info6323-PhanxChat.html https://www.curseforge.com/wow/a...
pagination = pagination or {} pagination.DEFAULT_PER_PAGE = 8 pagination.INTERACTIVE_TIME = 480 pagination.EMOJI_LEFT_ARROW = "⬅" pagination.EMOJI_RIGHT_ARROW = "➡" pagination.EMOJI_CROSS = "❌" function pagination.create(channel, options) local can_edit = channel:supports_feature(bot.FEATURES.Edit) local can_r...
workspace "Orca" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" include "Orca/3rdParty/glfw" include "Orca/3rdParty/glad" include "Orca/3rdParty/imgui" project "Orca" location "Orca" kind "SharedLib" language "C++" ...
local log = { } log.file = nil log.level = 'trace' local modes = { 'trace', 'debug', 'info', 'warn', 'error', 'fatal', } local levels = {} local origin = os.time() - os.clock() local function os_date(fmt) local ti, tf = math.modf(origin + os.clock()) return os.date(fmt, ti):gsub('{ms...
-- Generated by protobuf; do not edit local module = {} local protobuf = require 'protobuf' module.ENUM = protobuf.EnumDescriptor() module.ENUM_SOMETHING_ENUM = protobuf.EnumValueDescriptor() module.ENUM_SOMETHING_ELSE_ENUM = protobuf.EnumValueDescriptor() module.ENUM_ANOTHER_THING_ENUM = protobuf.EnumValueDescriptor(...
uac.permission = uac.permission or { list = {} } local permission_list = uac.permission.list function uac.permission.Add(name, description) if permission_list[name] ~= nil then return end local permission = {name = name, description = description} local index = table.insert(permission_list, permission) permi...
--- -- Slider.lua - UI slider component -- local Utils = require(script.Parent.Utils) local UserInput = game:GetService("UserInputService") local Slider = {} Slider.__index = Slider function Slider.new(parent, notifyOnRelease) local self = setmetatable({}, Slider) local slider = Instance.new("Frame") slider.Act...
local tbTable = GameMain:GetMod("MagicHelper") local tbMagic = tbTable:GetMagic("TTMG_6_2") function tbMagic:Init() end function tbMagic:EnableCheck(npc) return true end function tbMagic:TargetCheck(key, t) if t.ThingType == CS.XiaWorld.g_emThingType.Npc then return true else return fals...
--[[ © 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 --]] local Clockwork = Clockwork; local IsValid = IsValid; local Color = Color; local ...
--This is a program for testing LIKO-12 API. if tostring((...) or false) == "-?" then printUsage("testapi","A WIP Program for testing LIKO-12 API, Used by the developer.") return end local sw, sh = screenSize() local tw, th = termSize() --Wait for any keypress or screen touch. local function waitrelease() for e...
--graphics if settings.startup["moreshinybobs-gfx-alien-artifact"] and settings.startup["moreshinybobs-gfx-alien-artifact"].value == true then --alien artifact require("gfx-alien-artifact") end if settings.startup["moreshinybobs-gfx-ammo"] and settings.startup["moreshinybobs-gfx-ammo"].value == true then --ammo r...
local CSGSecurity = {{{{{ {}, {}, {} }}}}} Objects = { createObject ( 16000, 109.6, 1024, 12.7 ), createObject ( 6959, 77.6, 1031.5, 25.4, 0, 90, 0 ), createObject ( 6959, 77.6, 1071.5, 25.4, 0, 90, 0 ), createObject ( 6959, 77.8, 1093.6, 25.4, 0, 90, 0 ), createObject ( 6959, 142.2, 1031.7, 25.4, 0, 90, 0 ), createOb...
local pathjoin = require('pathjoin') local Channel = require('containers/abstract/Channel') local Message = require('containers/Message') local WeakCache = require('iterables/WeakCache') local SecondaryCache = require('iterables/SecondaryCache') local Resolver = require('client/Resolver') local fs = require('fs') loca...
print("Hello from lua") return 1 + 2
DiffviewGlobal = {} --[[ Debug Levels: 0: NOTHING 1: NORMAL 10: RENDERING --]] DiffviewGlobal.debug_level = tonumber(os.getenv("DEBUG_DIFFVIEW")) or 0 local arg_parser = require("diffview.arg_parser") local lib = require("diffview.lib") local config = require("diffview.config") local colors = require("diffview...
local _PATH = (...) require(_PATH..".Timer")
function onCreate() -- Add The Flicker makeAnimatedLuaSprite('bob', 'bob', -90, -50) -- Properties setScrollFactor('bob', 0, 0) scaleObject('bob', 1.5, 1.5) -- Animations addAnimationByPrefix('bob', 'bob', 'bob', 24, false) end function onEvent(name, value1, value2) if name == 'bob' then playSound('bobj...
require("ai.ai") SelectAttackBase = createClass(Ai) function SelectAttackBase:checkConditions(pAgent) if (pAgent ~= nil) then local creature = CreatureObject(pAgent) if (creature:isDead()) then local agent = AiAgent(pAgent) agent:removeDefenders() agent:setFollowObject(nil) return false end ...
to_drop = {} particles = {"copper-ore-particle", "wooden-particle", "iron-ore-particle"} function angle(splash) return (math.random() - math.random()) / splash end function on_tick() if #to_drop > 0 then for k, v in pairs(to_drop) do for i = v.v, 1, -v.itemstack.count do ...
object_tangible_item_beast_converted_flit_decoration = object_tangible_item_beast_shared_converted_flit_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_flit_decoration, "object/tangible/item/beast/converted_flit_decoration.iff")
exports.name = "creationix/git-fs" exports.version = "0.1.0" exports.dependencies = { "creationix/git@0.1.1", "creationix/hex-bin@1.0.0", } --[[ Git Object Database =================== Consumes a storage interface and return a git database interface db.has(hash) -> bool - check if db has an ob...
--[[--------------------------------------------------------- Name: Models -----------------------------------------------------------]] resource.AddFile( "models/freeman/moneyprinters/coolers/cooler_2.mdl" ) --[[--------------------------------------------------------- Name: Materials ---------------------...
class("WorldUpdateFormationCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot4 = nowWorld.GetActiveMap(slot3) pg.ConnectionMgr.GetInstance().Send(slot6, 33405, { fleet_list = _.map(slot1:getBody().list, function (slot0) return { group_id = slot0.fleetId, ship_id = _.map(slot0.ships, func...
---------------------------------------- -- Outfitter Copyright 2009-2018 John Stephen -- All rights reserved, unauthorized redistribution is prohibited ---------------------------------------- local _ _, Outfitter = ... Outfitter.DebugColorCode = "|cff99ffcc" Outfitter.AddonPath = "Interface\\Addons\\"..sel...
-- ============================================================================= -- import -- ============================================================================= local convert = require("convert") _convert_base = convert.input_convert _to_table = convert.binstr_to_table -- ==============================...
function f1(x) return x end function f2(x) return f1(x) end f2(5) --print(f2(5)) --returns 120 return 1
client_script 'call.lua' server_script 'call_server.lua'
Platform = Entity:extend() function Platform:new(x, y, w, h) Platform.super.new(self, x, y, w, h) end function Platform:draw() love.graphics.setColor(hex.rgb("88ff88")) love.graphics.rectangle("line", self.x, self.y, self.w, self.h) end
-- premake file for Bucket -- workspace "BucketEngine" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" --Include directories relative to the root folder IncludeDir = {} IncludeDir["GLFW"] = "Buck...
local drpath = require("directories") drpath.addPath("myprograms", "ZeroBraineProjects", "CorporateProjects", -- When not located in general directory search in projects "ZeroBraineProjects/dvdlualib", "ZeroBraineProjects/Ex...
majestic_whisper_bird = Creature:new { objectName = "@mob/creature_names:whisper_bird_majestic", socialGroup = "bird", faction = "", level = 19, chanceHit = 0.32, damageMin = 170, damageMax = 180, baseXp = 1426, baseHAM = 4500, baseHAMmax = 5500, armor = 0, resists = {0,0,0,0,0,0,0,0,-1}, meatType = "meat_...
ITEM.name = "Charged Battery" ITEM.model = "models/items/battery.mdl" ITEM.ammo = "battery" ITEM.ammoAmount = 50 ITEM.desc = "A single, seemingly enhanced battery." ITEM.category = "Ammunition" ITEM.flag = "v" ITEM.price = 0 ITEM.uniqueID = "ammo_battery" ITEM.material = "phoenix_storms/wire/pcb_blue" ITEM.maxstack =...
require('constants') require('quest') local function secretary_writing_start_fn() add_message_with_pause("PRAETOR_SECRETARY_WRITING_QUEST_START_SID") add_message_with_pause("PRAETOR_SECRETARY_WRITING_QUEST_START2_SID") clear_and_add_message("PRAETOR_SECRETARY_WRITING_QUEST_START3_SID") end local functi...
dofile("data/scripts/city-buildings.lua") dofile("data/scripts/city-names.lua") dofile("data/scripts/city-customers.lua") dofile("data/scripts/deepcopy.lua") function place:init() self.reputation = 0 self.buildings = { } local feature = World:featureAt(self:getX(), self:getY()) self.settlementType = feature table...
-- KEYS[1] is reserved for VERSION of migrations local files_index_pub = KEYS[1] local files_data = KEYS[2] -- retrieves all filenames in the public index local uids = redis.call('smembers', files_index_pub) for i, uid in ipairs(uids) do local dataKey = files_data .. ':' .. uid if redis.call('exists', dataKey) =...
local imageFileName = "Images/grossini.png" local function initDefaultSprite(filename, spp, layer) layer:addChild(spp) local s = cc.Director:getInstance():getWinSize() local offset = cc.p(0.15 * s.width, 0) spp:setPosition(s.width/2 + 0.15 * s.width, s.height/2) local sp = cc.Sprite:create(imageF...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local ITEM = Clockwork.item:New(); ITEM.name = "ItemMelon"; ITEM.uniqueID = "melon"; ITEM.cost = 8; ITEM.model = "models/props_junk/watermelon01.mdl"; ITEM.weight = 1; ITEM.access = "v"; ITEM.us...
local PANEL = {} --colors local associated_colors = GM.UIColors.WaitList local color_background = associated_colors.Background local color_text_light = associated_colors.TextLight --local functions local function name_refresh_think(self) end --panel functions function PANEL:Init() self:DockPadding(4, 4, 4, 4) d...
--------------------------------------------------------------------------------------------------- -- func: hasitem -- desc: Checks if a player has a specific item --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "is"...
local wallUtils = {} function wallUtils.addResistance(eType, name, resistance) if data.raw[eType][name] then for i=1,#data.raw[eType][name].resistances do if (resistance.type == data.raw[eType][name].resistances[i].type) then data.raw[eType][name].resistances[i] = resistance return end end data.ra...
local Native = require('lib.native.native') ---@class AnimType local AnimType = { Birth = Native.ConvertAnimType(0), --ANIM_TYPE_BIRTH Death = Native.ConvertAnimType(1), --ANIM_TYPE_DEATH Decay = Native.ConvertAnimType(2), --ANIM_TYPE_DECAY Dissipate = Native.ConvertAnimType(3), --ANIM_TYPE_DISSIPATE ...
local self = {} GLib.IDisposable = GLib.MakeConstructor (self) --[[ Events: Disposed () Fired when this object has been disposed. ]] function self:ctor () self.Disposed = false end function self:dtor () self:Dispose () end function self:Dispose () if self:IsDisposed () then return end self.Disposed = tr...
local view = require 'launch.util.view' local state = require 'launch.util.view.state' local component = require 'launch.util.view.component' local bindings_gateway = require 'launch.util.view.bindings_gateway' local seq = require 'launch.util.seq' local block = component.block describe('component', function () it('...
--[[ PROYECTO DE TITULO Pamela Vilches Ivelic ]] -- Used to represent the fraction signs Object = Class{} function Object:init(x, y, brick_size, module_n) self.x = x + 32 self.y = y - 32 if brick_size == 1 then self.denom = 4 elseif brick_size == 2 then self.denom = 2 else...
return function (utils, connection, httpservConfig, valuetable, badvalues) local getRadioChecked = utils.getRadioChecked local getTextFilledValue = utils.getTextFilledValue local getRadioValue = utils.getRadioValue local getTextColor = utils.getTextColor local getInputTypeTextString = utils.getInput...
return {'wredelijk','wreed','wreedaard','wreedaardig','wreedaardigheid','wreedheid','wreef','wreken','wreker','wreking','wrensen','wrevel','wrevelig','wreveligheid','wrevelmoed','wrevelmoedig','wrede','wreder','wreedaardige','wreedaardiger','wreedaardigste','wreedaards','wreedheden','wreedst','wreek','wreekt','wreekte'...
--双天の調伏 -- --Script by JustFish function c101102059.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW+CATEGORY_REMOVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MO...
object_tangible_food_spice_spice_shadowpaw_01 = object_tangible_food_spice_shared_spice_shadowpaw_01:new { } ObjectTemplates:addTemplate(object_tangible_food_spice_spice_shadowpaw_01, "object/tangible/food/spice/spice_shadowpaw_01.iff")
----------------------------------------- -- ID: 5153 -- Item: plate_of_fatty_tuna_sushi -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 20 -- Dexterity 3 -- Charisma 5 -- Accuracy % 16 (cap 76) -- Ranged ACC 16 (cap 76) -- Sleep Resist 2 ----------------------------------------- re...
--[[ Test case ]] local FileReader = require 'whale.io.FileReader' local NeuralNetwork = require 'whale.ml.NeuralNetwork' require 'whale.Matrix' require 'whale.Vector' classes = {} classes["Iris-setosa"] = vector{1, 0, 0} classes["Iris-versicolor"] = vector{0, 1, 0} classes["Iris-virginica"] = vector{0...
-- Copyright 2014 David Mentler include( "struct.lua" ) include( "physmesh.lua" ) include( "bsp_constants.lua" ) -- Header t_lump = struct( t_int, "off", t_int, "len", t_int, "version", skip( 4 ) ) t_header = struct( t_int, "ident", t_int, "version", array( t_lump, 64 ), "lumps", t_int, "r...
local Util = {} local Common = game.ReplicatedStorage.Pioneers.Common local World = require(Common.World) local Tile = require(Common.Tile) local Unit = require(Common.Unit) local TILESPACING = 10 --Distance from center of hexagon to edge vertex local EDGESPACING = TILESPACING * (0.5 * 3^.5) local YOFF...
modifier_enchantress_enchant_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_enchantress_enchant_lua:IsHidden() return false end function modifier_enchantress_enchant_lua:IsDebuff() return false end function modifier_enchantress_...
function times(C,D) local A = newlm(C) local B = newlm(D) local m =A:size()[1] local n = A:size()[2] local p = B:size()[1] local q = B:size()[2] local result if(n==p)then result=sp1(A.tensor,B.tensor) return newlm(result) elseif (n%p==0)then result=sp1(A.tenso...
--[[ File: sh_sound.lua Author: toneo Realm: Shared This file handles sounds which are played directly on the client. ]]-- if SERVER then module( "netsound", package.seeall ) util.AddNetworkString( "PlaySound" ) function PlayToAll( sound ) net.Start( "PlaySound" ) net.WriteString( sound ) net.B...
-- Prevent from script error when no action is given if not _ACTION then printf "Error: No action defined!" return end -- Check for supported OS and action if os.is( "windows" ) then isWindows = true if string.startswith(_ACTION, "vs") then isVisualStudio = true else printf "Warning: Not tested fo...
local nmap = require('utils').nmap local cmp = require('cmp') local lsp = require('lspconfig') nmap('<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>') nmap('<leader>rf', '<cmd>lua vim.lsp.buf.references()<cr>') nmap('K', '<cmd>lua vim.lsp.buf.hover()<cr>') nmap('gd', '<cmd>lua vim.lsp.buf.defi...
local Draw = require("api.Draw") local Ui = require("api.Ui") local IUiElement = require("api.gui.IUiElement") local ISettable = require("api.gui.ISettable") local I18N = require("api.I18N") local ISidebarView = require("api.gui.menu.ISidebarView") local UiHelpMarkup = require("api.gui.UiHelpMarkup") local UiTheme = re...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local mat = Material("phoenix_storms/FuturisticTrackRamp_1-2") function ENT:Initialize() local ent = ents.Create("prop_dynamic") ent:SetModel("models/props_doomsday/rocket_socket_doomsday.mdl") ent:SetPos(self:LocalToWorld(Vector(80,0,469...
-- Behavior for observer (2) in the level gandriatower routine = function(O) O:wait(3) O:gotoTile(3.5, 2.5) O:wait(3) O:gotoTile(18.5, 2.5) end
---------------------------------------------------------------------------- -- global misc script -- contains function tend to be useed by every module -- ---------------------------------------------------------------------------- --- Version Control tVar.getVersion = function() tex.print("Version: " .. tVar.Version...
-- -- Dan Schuller: Tween Class based on Flash -- Tween = {} Tween.__index = Tween function Tween:IsFinished() return self.isFinished end function Tween:Value() return self.current end function Tween.EaseInQuad(t, b, c, d) t = t / d return c * t * t + b end function Tween.EaseOutQuad(t, b, ...