content
stringlengths
5
1.05M
Class = require "lib.hump.class" vector = require "lib.hump.vector" Entity = require "entity" Timer = require "lib.hump.timer" Gamestate = require "lib.hump.gamestate" SimpleParticle = require "game.particles.simpleParticle" Spark = Class{__includes = Entity, init = function(self, x, y, dx, dy) Entity.init(self, x...
local executable = require('utils.files').executable local M = { makeprg = { shellcheck = { '-f', 'gcc', '-x', '-e', '1117', }, }, formatprg = { shfmt = { '-i', '$WIDTH', '-s', ...
local TOCNAME, BOM = ... local BOM_ALL_CLASSES = { "WARRIOR", "MAGE", "ROGUE", "DRUID", "HUNTER", "PRIEST", "WARLOCK", "SHAMAN", "PALADIN" } ---Classes which have a resurrection ability local BOM_RESURRECT_CLASSES = { "SHAMAN", "PRIEST", "PALADIN" } BOM.RESURRECT_CLASS = BOM_RESURRECT_CLASSE...
-- Copyright (C) Dejiang Zhu (doujiang24) local durap = require "system.core.durap" local ngx = ngx local new_timer = ngx.timer.at local _M = { _VERSION = '0.01' } local back_func back_func = function (premature, delay, appname, controller, func, ...) if premature then return end local dp = ...
--[[ LuCI hd-idle (c) 2008 Yanira <forum-2008@email.de> 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 $Id$ ]]-- module("luci.controller.hd_i...
return { n = { ["<leader>"] = { a = { name = "Annotate", ["<cr>"] = { function() require("neogen").generate() end, "Current", }, c = { function() require("neogen").generate({ type = "class" }) end, "Class", }, f = { function() require("n...
root = "./" luaservice = "./?.lua;" .. root .. "service/?.lua;" .. root .. "app/?.lua;" .. root .. "app/?/init.lua;" lualoader = root .. "lualib/loader.lua" lua_path = root .. "./?.lua;" .. root .. "lualib/?.lua;" .. root .. "lualib/?/init.lua;" .. root .. "app/?.lua;" .. root .. "exampl...
insulate("Player:withUpgradeDisplay()", function() require "init" require "spec.mocks" require "spec.asserts" local defaultConfig = { label = "Upgrades", title = "Your Upgrades", noUpgrades = "You have no upgrades installed.", } it("creates a valid upgrade display", fu...
module 'mock' ------------------------------------------------------------------- CLASS: AnimatorClipTreeNodeQueuedSelect ( AnimatorClipTreeNode ) :MODEL{ Field 'looped' :boolean(); } function AnimatorClipTreeNodeQueuedSelect:__init() self.looped = false self.childrenCount = 0 end function AnimatorClipTreeNod...
local tonumber = tonumber local tostring = tostring local pairs = pairs local ipairs = ipairs local type = type local setmetatable = setmetatable local os = os local string = string local math = math local var_dump = require("aspect.utils").var_dump local config = require("aspect.config").date local utf8 = require("asp...
local AlwaysDisableClasses = {"Sound", "LuaSourceContainer", "KeyframeSequence", "Animation"} local AlwaysIgnoreProperties = {MeshId = true} local READY_TEXT = "Ready" local Http = game:GetService("HttpService") local Selection = game:GetService("Selection") local ChangeHistoryService = game:GetService("ChangeHistoryS...
require 'rockspec' package('baz','1.0') C.module.baz() :when 'unix' :add 'ubaz.c' :when 'win32' :add 'wbaz.c' :libraries 'winsock32' rockspec.write()
--[=[ @class FadeBetweenCamera4 ]=] local ReplicatedStorage = game:GetService("ReplicatedStorage") local CameraState = require(script.Parent.Parent.Parent.CameraState) local CubicSplineUtility = require(ReplicatedStorage.Knit.Util.Additions.Utility.CubicSplineUtility) local Debug = require(ReplicatedStorage.Knit.Util...
local t1 = require 'Q/OPERATORS/F1F2OPF3/lua/f1f2opf3_operators' local t2 = require 'Q/OPERATORS/F1F2OPF3/lua/concat_operators' for i, v in ipairs(t2) do t1[#t1+1] = v end -- for i, v in ipairs(t1) do print(i, v) end return t1
fx_version 'bodacious' game 'gta5' description 'nik ta mere' version '0.0.1' client_scripts {'Client.net.dll'}
--哭鬼 local m=14010033 local cm=_G["c"..m] function cm.initial_effect(c) --SpecialSummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountL...
AddCSLuaFile() local validEffects = 0 local Vector = Vector local VectorRand = VectorRand local sin = math.sin local cos = math.cos local max = math.max local ceil = math.ceil local random = math.Rand local redMat = Material("cable/redlaser") local grMat = Material("cable/hydra") local blueMat = Material("cable/blue...
local l = {} l.t = {} l.t.a = {1, 2, 3, 4, ['asd'] = 5} pcall(function() table.insert(l.t.a, 1) end) print(l.t.a[1], l.t.a[2], l.t.a.asd)
local svg = require("heart.svg") local xml = require("heart.external.xml") local MeshLoader = {} MeshLoader.__index = MeshLoader function MeshLoader.new(...) local instance = setmetatable({}, MeshLoader) instance:init(...) return instance end function MeshLoader:init() self.vertexFormat = { {"VertexPosit...
module 'cocos2d_ui' path '../../frameworks/libxgame/src/lua-bindings' headers [[ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "lua-bindings/LuaCocosAdapter.h" #include "cclua/xlua.h" #include "cocos2d.h" #include "ui/CocosGUI.h" #include "ui/UIScrollViewBar.h" ]] luacls(funct...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Configure/control an Elgato Stream Deck -- -- Please note that in order for this module to work, the official Elgato Stream Deck app should not be running -- -- This module would not have been possible without standing on the shoulders of other...
ITEM.name = "Lootbox base" ITEM.model = "models/Items/hevsuit.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.desc = "An Item" ITEM.category = "Loot Boxes" ITEM.boxType = "Standard" // Standard, Superior, Mastercrafted, Relic, Mastercrafted Relic /* ITEM.itemTable = { -- [] Item key, Number Rarity 1-10 // Melee ["chainsword...
local w3xparser = require 'w3xparser' local lang = require 'lang' local convertreal = require 'convertreal' local table_concat = table.concat local ipairs = ipairs local string_char = string.char local pairs = pairs local table_sort = table.sort local table_insert = table.insert local math_floor = math.floor...
-- Name: prod.lua dofile("geometry.lua") dofile("drawing.lua") meter = texture.new() --texture.clear(meter) -- not necessary --texture.setRenderFn(meter, "drawMeter()") function drawMeter() glMatrixModeProjection() glPushMatrix() glLoadIdentity() glOrtho(0,100,0,100,0,10) glMatrixModeModelView()...
local Application = cc.load("mvc").Application local App = class("App", Application) local Connection = require('net.Connection') local Session = require('app.Session') local LocalSettings = require('app.models.LocalSettings') local app = nil function App:ctor( ) app = self self.conn = Connection() self...
local player = game:GetService("Players").LocalPlayer repeat wait() until player.Character local char = player.Character local torso = char:WaitForChild("Torso") local mouse = player:GetMouse() local color = BrickColor.new("Really black") local material = "Neon" local trans = 0.5 local debounce = false blast = funct...
local settings = {} local cam = core.scene.camera local moveStep = 0.3 local rotateStep = 0.01 cam.position = vector3(0, 6, 30) cam:lookAt(vector3(0,0,0)) local devicore = require("deviap/core") settings.rotation = cam.rotation core.input:on("mouseMoved", function(movement, systemHandled) if core.input:isMouseButt...
local baseComponent = require("devgit:source/libraries/UI/components/baseComponent.lua") local state = require("devgit:source/libraries/State/main.lua") local reducer = function(oldState, action) -- Click and drag return { unpack(oldState) } -- lol end return function(props) props.tile1 = props.tile1 or core.const...
local mapEvent={ { belongMap="大地图",name="风陵渡口",x=500,y=360,pic="",description="", event={ { type="map",value="风陵渡口",image="",description="",repeatTimes="",probability=0, condition={ } } } }, { belongMap="风陵渡口",name="松鼠有话说",x=-1,y=-1,pic="头像.汉家松鼠",description="", event={ { type="story",value="风陵渡口.汉家松鼠.回忆1",image="...
function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f) local funcw = Instance.new("Weld") funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1 if (zCoco == true) then funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f) else ...
local Trap_Spikes = script:GetCustomProperty("Trap"):WaitForObject() local Activate_SFX = Trap_Spikes:GetCustomProperty("Activate_SFX") local Deactivate_SFX = Trap_Spikes:GetCustomProperty("Deactivate_SFX") local Impact_SFX = Trap_Spikes:GetCustomProperty("Impact_SFX") local Trigger = script:GetCustomProperty("Trigger"...
windmill = {} windmill.register_windmill = function( nodename, descr, animation_png, animation_png_reverse, scale, inventory_image, animation_speed, craft_material, sel_radius ) minetest.register_node( nodename, { description = descr.." (clockwise)", drawtype = "signlike", visual_scale = scale, tile...
------------------------------------------------------------------------------ -- Project ------------------------------------------------------------------------------ project "msgpack-rpc-asio" --language "C" language "C++" kind "StaticLib" --kind "SharedLib" --kind "ConsoleApp" --kind "WindowedApp" flags { "Uni...
C_StorePublic = {} ---@param groupID number ---@return boolean hasPurchaseableProducts ---[Documentation](https://wow.gamepedia.com/API_C_StorePublic.DoesGroupHavePurchaseableProducts) function C_StorePublic.DoesGroupHavePurchaseableProducts(groupID) end ---@return boolean disabled ---[Documentation](https://wow.game...
--- --- Created by Go Go Easy Team. --- DateTime: 2018/7/9 14:22 --- local _M = {} _M.CODE_WARNING="3001" return _M
local _G = require "_G" local assert = _G.assert local type = _G.type local xpcall = _G.xpcall local coroutine = require "coroutine" local newthread = coroutine.create local resume = coroutine.resume local function onterm(handler, success, ...) if success then return handler(true, ...) end end local function tr...
local self = {} GLib.FileOutBuffer = GLib.MakeConstructor (self, GLib.OutBuffer)
local overlay = {} local default_color = {0.25, 0.5, 1, 0.9} overlay.open = false overlay.confirm_boxes = {} overlay.has_confirm_box = {} function overlay.confirm(args) local confirm_id = args.id or args.text or "Confirm" if overlay.has_confirm_box[confirm_id] then return end local confirm = {} c...
function showInteraction(text, type) local color = "#2196f3" if type == "success" then color = "#4caf50" elseif type == "error" then color = "#f44336" end SendNUIMessage({ display = true, text = text, color = color }) end function hideInteraction() SendNUIMessage({ display = false }) end exports...
local ITEM = Clockwork.item:New("armor_clothes_base"); ITEM.name = "Mercenary Radiation Suit"; ITEM.uniqueID = "merc_radiation_suit"; ITEM.actualWeight = 10; ITEM.invSpace = 6; ITEM.radiationResistance = 0.75; ITEM.maxArmor = 100; ITEM.protection = 0.5; ITEM.gasmask = true; ITEM.business = false; ITEM.replacement = "mo...
load_cc() LmodMessage("Module "..myModuleName().."/"..myModuleVersion().." loaded")
class "C4Controller" C4Controller.AnimationTimeout = 0.6 C4Controller.DetonationTimeout = 0.4 C4Controller.MaxPlantDistance = 6 C4Controller.PlantingOffset = Vector3(0.3, -0.06, -0.02) C4Controller.DetonationOffset = Vector3(0.34, 0.02, 0.05) function C4Controller:__init() self.dummies = {} self.planted = true sel...
Slot = Slot or {} Slot.__index = Slot --[[ Functions: Slot ]]-- function Slot:GetContainer() return Inventory:GetContainer(self.container_id) end function Slot:GetItem() return Inventory:GetItem(self.item_id) end function Slot:GetWeight() -- Get item. local item = Inventory:GetItem(self.item_id) if item == nil ...
-- -- 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 'tor...
--------------------------------- --! @file --! @brief RemoteSocket --------------------------------- local socket = require "socket.core" --! define RemoteSocket local class = {mt = {}} class.mt.__index = class class.getTCPSocket = function(self, host, port) local isipv6_only = false local addrinfo, err ...
EncyclopediaCategoryNames = { {value = "Buildings", text = T{3980, "Buildings"}}, {value = "Units", text = T{3981, "Units"}}, {value = "Deposits", text = T{3982, "Deposits"}}, {value = "Disasters", text = T{3983, "Disasters"}}, {value = "Anomalies", text = T{3984, "Anomalies"}}, } DefineDataInstance("Encyclopedia...
AddCSLuaFile() CustomizableWeaponry.firemodes = {} CustomizableWeaponry.firemodes.registered = {} CustomizableWeaponry.firemodes.registeredByID = {} -- id - the ID of the firemode -- display - the text to display when the firemode is active -- automatic - whether it is a full-auto firemode -- burstAmount - amount of ...
-- implementation of rectangular grid note layout with configurable relation between neighbor notes local fretboard = {} fretboard.__index = fretboard local l = require("lume") fretboard.neckHeight = 0.98 -- with 1.0 being half-screen height fretboard.neckWidth = 3.2 fretboard.fretWidth = 0.4 function fretboard.lo...
function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'TikyMogus Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'TIKY_assets'); setPropertyFromGroup('unspawnNotes', i, 'missHealth', 50.0); if getPropertyFromGroup('unsp...
--穹顶煌刃 真羽返 local m=14000362 local cm=_G["c"..m] cm.named_with_Skayarder=1 function cm.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCond...
--[[ Copyright 2017 YANG Huan (sy.yanghuan@gmail.com). 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 i...
HSNR = HSNR or {} HSNR.MESSAGE = {} HSNR.MESSAGE.NO_QUEUE = 0x01 HSNR.MESSAGE.NAIL_REMOVED = 0x02 HSNR.MESSAGE.SHOWLIST = 0x04 HSNR.MESSAGE.WRONG_ARGUMENT = 0x08 HSNR.MESSAGE.TARGET_DISCONNECT = 0x10 HSNR.MESSAGE.PENALTY_POINT = 0x20 HSNR.MESSAGE.PENALTY_BRAIN = 0x40 HSNR.MESSAGE.PENALTY_DAMAGE = 0x80 HSNR.MESSAGE.PEN...
require 'totem' require 'nngraph' local test = {} local tester = totem.Tester() function test.test_output() local in1 = nn.Identity()() local in2 = nn.Identity()() local in3 = nn.Identity()() local ok = nn.CAddTable()(nngraph.nest({in1})) local in1Again = nngraph.nest(in1) local state = nngraph.nes...
local Request = require 'luncheon.request' local Response = require 'luncheon.response' local utils = require 'luncheon.utils' describe('real sockets tests', function () local cosock = require 'cosock' local expected_body = 'this is a request body' it('tcp sockets', function () local server = cosock.socket.t...
slot2 = "ChargeBankCardCcsView" ChargeBankCardCcsView = class(slot1) ChargeBankCardCcsView.onCreationComplete = function (slot0) slot0._curShowingView = nil slot0._tabViewConfigs = { { csb = "csb/layer/ChargeBankCardTabCreate.csb" }, { csb = "csb/layer/ChargeBankCardTabMyOrder.csb" } } slot0._tabPane...
object_draft_schematic_space_chassis_texture_kit_arc170_s02 = object_draft_schematic_space_chassis_shared_texture_kit_arc170_s02:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_chassis_texture_kit_arc170_s02, "object/draft_schematic/space/chassis/texture_kit_arc170_s02.iff")
artifact_crunching_ground = class({}) function artifact_crunching_ground:OnCreated( data ) -- ### VALUES START ### -- self.radius = 400 self.stun = 1.0 self.all_attributes = 675 self.damage_increase = 20 self.cooldown ...
Player=game:GetService("Players").LocalPlayer Character=Player.Character PlayerGui=Player.PlayerGui Backpack=Player.Backpack Torso=Character.Torso Head=Character.Head Humanoid=Character.Humanoid m=Instance.new('Model',Character) LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Right...
if (ITEM == 1) then quest = tostring(number3) .. " + " .. tostring(number4) .. " : " .. tostring(number1) .. " - " .. tostring(number2) result = number3 + number4 / number1 - number2 end if (ITEM == 2) then quest = "(" .. tostring(number3) .. " + " .. tostring(number4) .. ") : " .. tostring(number1) ....
local tools = require('app.helpers.tools') local PersonalPageView = {} function PersonalPageView:initialize() end local itemlist = {1, 2, 3, 4, 5, 6, 7, 8, 12, 15} function PersonalPageView:layout(data) local MainPanel = self.ui:getChildByName('MainPanel') MainPanel:setContentSize(cc.size(display.width,d...
local Screen = { } local SAVE_STATE_NAME = "save_state_screen.luac" function Screen:init() self.screens = { } end function Screen:restart() self:init() --Load the saved state local state = File.loadTable(SAVE_STATE_NAME) for i, v in ipairs(state) do local screen = Type.restart(v.type, v.save) table.insert(s...
local ent = ents.Derive("base") function ent:setPos (x, y ) self.x = x self.y = y end function ent:load( name, x, y, size, facing, health, r ) self.size = size or 500 self.spr = Spriter:loadSpriter( "gfx/enem/mech/", "mech" ) self.barm = Spriter:loadSpriter( "gfx/enem/mech/", "barm" ) mechAnims = self.spr...
g_pistol_cdef_npe = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "pistol_cdef_npe", weight = 10000000} } } addLootGroupTemplate("g_pistol_cdef_npe", g_pistol_cdef_npe)
local t = Def.ActorFrame{}; local screenName = Var "LoadingScreen" local xPosPlayer = { P1 = (SCREEN_CENTER_X-214); P2 = (SCREEN_CENTER_X+214) }; for _, pn in pairs(GAMESTATE:GetEnabledPlayers()) do t[#t+1] = Def.ActorFrame{ InitCommand=function(self) local short = ToEnumShortString(pn) ...
--[[ Write an improved version of debug.debug that runs the given commands as if they were in the lexical scope of the calling function. (Hint: run the commands in an empty environment and use the __index metamethod attached to function getvarvalue to do all accesses to variables.) ]] rdebug = require 'rdebug' x = 3...
minetest.register_globalstep(function(dtime) local players = minetest.get_connected_players() for i=1, #players do local name = players[i]:get_player_name() if default.player_attached[name] and not players[i]:get_attach() and (players[i]:get_player_control().up == true or players[i]:get_player_control().d...
return PlaceObj("ModDef", { "title", "Mod Options Expanded", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_ModOptionsExpanded", "steam_id", "1813171300", "pops_any_uuid", "b1234bf3-f2c6-4f6e-ba4a-1ccf1bce2432", "author", "ChoGGi", "lua_revision", 2491...
local screenX, screenY = guiGetScreenSize( ) local selection = nil local clicked = false local c_characters = { } local currentTab = 1 --------- [ Account Management ] --------- function showCharactersUI( characters, theFriends, messages, skinmods, weaponmods, vehiclemods ) local winWidth, winHeight = 480, 450 lo...
--[[ - internal structures: Research.tech_status[tech_id] = { researched = nil/number of times researched discovered = nil/index of discovery points = 0, cost = 0, new = nil/true, -- is this tech still not seen by the player? queued = nil/true, repeatable = nil,false/true, -- used to override the def...
expose("expose modules", function() package.path = '../?.lua;' .. package.path _G.lor = require("lor.lib.lor") _G.request = require("test.mock_request") _G.response = require("test.mock_response") end) describe("test about variables parsed from path", function() setup(function() end) tear...
local help = { {name = "How to play", children = { {name = "What is PTPM?", children = { {desc = "Protect the Prime Minister (PTPM) is a team based mode promoting teamwork and strategy over the conventional deathmatch tactics.\n\nThe aim for the 'good guys' is for the PM to stay alive for the al...
-- Pauses the game with a warning if a creature is starving, dehydrated, or very drowsy. -- By Meneth32, PeridexisErrant, Lethosor --@ module = true --[[=begin warn-starving ============= If any (live) units are starving, very thirsty, or very drowsy, the game will be paused and a warning shown and logged to t...
local time = os.date("!%H:%M:%S") local beats = string.sub(time, 0, 2) * (1000.0 / 24) + string.sub(time, 4, 5) * (1000.0 / (24 * 60)) + string.sub(time, 7, 8) * (1000.0 / (24 * 60 * 60)) print(string.format("@%.2f", beats))
return { {}, init_effect = "", name = "", time = 3, color = "red", picture = "", desc = "", stack = 2, id = 24013, icon = 12680, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onAttach", "onStack" }, arg_list = { minTargetNumber = 1, skill_id = 2...
--New object_tangible_food_bar_shared_drink_bar_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/bar/shared_drink_bar_s02.iff" } ObjectTemplates:addClientTemplate(object_tangible_food_bar_shared_drink_bar_s02, "object/tangible/food/bar/shared_drink_bar_s02.iff") ----------------...
--[[ Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved @file UpdateConf.lua @author sunnnychan@gmail.com @date 2016/03/12 11:27:24 @brief action update experiment config ]]-- local require = require local setmetatable = setmetatable local PageUpdateConf = require('models.service.PageUpdateConf') local BDLOG = r...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Ularogg Cragshaper", 1458, 1665) if not mod then return end mod:RegisterEnableMob(91004) mod.engageId = 1791 ---------------------------------------------------------------------...
WepSkins.Core.MySkins = WepSkins.Core.MySkins or {} net.Receive("WepSkin:Initial", function() local skinData = net.ReadTable() for k, v in pairs(skinData) do WepSkins.Core.MySkins[k] = v end end) net.Receive("WepSkin:Update", function() local wepClass = net.ReadString() local newSkin = net.ReadString() Wep...
--[[ __ _ _ __ _ _ __ ___ __ __ __ ( ) )( \/ _\/ )( \/ \ / __) \/ \ / \ )() __ ( \ \/ ( O | (_(_/ ( 0 |_/ / (__)_)(_|_/\_/\__/ \__/ \___|__)\__/ (__) ]] local library = loadstring(game:HttpGet("https://pastebin.com/raw/eKwyeQa0", true))() farmtoggle = "OFF" farmspeed = "0.1" Bodypart = ...
-- See LICENSE for terms return { PlaceObj("ModItemOptionToggle", { "name", "RemovePerks", "DisplayName", T(302535920011760, "Remove Perks"), "Help", T(302535920011761, "Remove (positive) perks from newborn biorobots?"), "DefaultValue", true, }), PlaceObj("ModItemOptionToggle", { "name", "RemoveFlaws", ...
return function() local isStoryModule = require(script.Parent.isStoryModule) it("should return `true` for a ModuleScript with .story in the name", function() local module = Instance.new("ModuleScript") module.Name = "Foo.story" expect(isStoryModule(module)).to.equal(true) end) it("should return `false` if ...
PlazaSubKFCcsView = class("PlazaSubKFCcsView") PlazaSubKFCcsView.onCreationComplete = function (slot0) mainMgr:setIsShowing4Platform(slot0.layerTabs.btnOnlineKF, "tip850Online", true) slot0._titleSpine = sp.SkeletonAnimation:create(slot2, slot3) slot0._titleSpine:setTimeScale(2.2) slot0._titleSpine:setPositionY(...
local composer = require( "composer" ) local scene = composer.newScene() function scene:create( event ) local sceneGroup = self.view --The primary object in the Composer library is the scene object. --This is an event listener that responds to specific events, --and it contains a unique self.view property whic...
local mpack = require('mpack') if arg[1] == '--help' then print('Usage: lua genvimvim.lua src/nvim runtime/syntax/vim/generated.vim') os.exit(0) end local nvimsrcdir = arg[1] local syntax_file = arg[2] local funcs_file = arg[3] package.path = nvimsrcdir .. '/?.lua;' .. package.path local lld = {} local syn_fd =...
-- -- 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. -- local tnt = ...
function EFFECT:Init( data ) local pos = data:GetOrigin() local grav = Vector(0, 0, math.random(50, 60)) local offset = Vector(0,0,10) local emitter = ParticleEmitter( pos ) if emitter then local particle = emitter:Add( "sprites/music", pos + offset ) particle:SetVelocity( ( Vector( 0, 0, 1 ) + ( VectorRa...
firstime = 1 function locks() local vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do setVehicleLocked( v, true ) if (getElementModel(v) == 427 or getElementModel(v) == 427 or getElementModel(v) == 597) then setVehicleSirensOn ( v, true ) end end end function fix() loc...
Move = Class {} moves = {} NumSquaresToEdge = {} oldMoves = {} moveHistory = {} function Move:init(StartSquare, TargetSquare) self.StartSquare = StartSquare self.TargetSquare = TargetSquare end function GenerateMoves(sq) _moves_ = {} local piece = Game.Board.Square[sq][1] local pieceType = Piece....
local pb = require"pb" if #arg < 1 then print("Usage: " .. arg[0] .. " <raw protobuf encoded message>") return end local f = assert(io.open(arg[1])) local bin = assert(f:read('*a')) assert(f:close()) local msg, off = pb.decode_raw(bin) local function dump_fields(unknown) for i,v in ipairs(unknown) do print(i,...
--[[ Lexical Tools - lua\weapons\gmod_tool\stools\moneypot.lua Copyright 2010-2012 Lex Robinson 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 U...
vim.cmd('syntax on') vim.cmd('set relativenumber') vim.cmd('set tabstop=2 softtabstop=2') vim.cmd('set shiftwidth=2') vim.cmd('set expandtab') vim.cmd('set smartindent') vim.cmd('set hls ic') vim.cmd('set so=8') vim.cmd('set showcmd') vim.cmd('set cursorline') vim.cmd('set nocompatible') vim.cmd('set termguicolors') vi...
function onCastSpell(creature, variant) return creature:conjureItem(2260, 2295, 5) end
local ok = prequire('neogit') if not ok then return end vim.keymap.set('n', '<LocalLeader>gg', '<Cmd>Neogit<CR>') vim.keymap.set('n', '<LocalLeader>gG', '<Cmd>Neogit commit<CR>') local group = vim.api.nvim_create_augroup('NeogitFileType', { clear = true }) vim.api.nvim_create_autocmd('FileType', { group = group,...
local encode = require('json').stringify local parse_query = require('querystring').parse local function handler(self, options, sid) self:handle_balancer_cookie() self.auto_chunked = false local query = parse_query(self.req.uri.query) local callback = query.c or query.callback if not callback then return...
local g = vim.g g.startify_files_number = 5 g.startify_session_persistence = 1 g.startify_lists = { { type = "sessions", header = { " Saved sessions" } }, { type = "bookmarks", header = { " Bookmarks" } }, { type = "dir", header = { " Recent files" } }, } g.startify_custom_header = { " ", " ...
NarciGuideMixin = {}; local tutorial; --NarcissusDB local L = Narci.L; local After = C_Timer.After; local FadeFrame = NarciAPI_FadeFrame; local FIXED_WIDTH = 270; local TEXT_INSET = 18; local CRITERIA_MET_MARK = "[OK]"; local function CloseGuide(self) self:GetParent():Hide(); end local function EmptyFunc() ...
local approvalBadges = {} local badgeScale = 2 -- TODO: consider replacing 'draw_text' with 'draw_sprite' and a better icon? (maybe Unicode hammer or hammer-and-wrench?) -- Unicode marks, for convenience: -- Useable: ✘ ✔ -- Not useable: 🛠 ----------------------------------------------------------- -- Public ...
-- Psychospiral animation by Cylgom return function(page, offset, screen_width, screen_height) local percent = math.abs(offset/page.width) side = -1 if(offset>0) then side=1 end local rollup = percent*5 if(rollup>1) then rollup=1 end local runaway = (percent-0.20)/0.6 if(runaway<0) then runaway=0 end if(runawa...
require "tombell.globals" if require "tombell.first_load"() then return end vim.g.mapleader = "," -- Ruby files load slow if you don't set this when using rbenv vim.g.ruby_path = "$HOME/.rbenv/shims/ruby" require "tombell.plugins" require "tombell.autocmd"
----------------------------------- -- Area: Qufim Island -- NPC: Swirling Vortex -- Entrance to Qufim Island -- !pos -436.000 -13.499 340.117 126 ----------------------------------- local ID = require("scripts/zones/Qufim_Island/IDs") require("scripts/globals/teleports") require("scripts/globals/missions") ----------...