content
stringlengths
5
1.05M
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local myfeds = {} local mattata = require('mattata') local redis = require('libs.redis') function myfeds:init() myfeds.commands = mattata.commands(self.info.username):command('...
object_tangible_meatlump_event_meatlump_safe_01_02 = object_tangible_meatlump_event_shared_meatlump_safe_01_02:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_safe_01_02, "object/tangible/meatlump/event/meatlump_safe_01_02.iff")
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- C O M M A N D P O S T -- -----------------------------------------------------------------------------...
HonorSpyDB = { ["realms"] = { ["ReturnPTR - Alliance"] = { ["hs"] = { ["last_reset"] = 1536141601, ["reset_day"] = 3, }, }, ["Northdale - Alliance"] = { ["hs"] = { ["last_reset"] = 1539165601, ["limit"] = "500", ["reset_day"] = 3, ["currentStandings"] = { ["B...
Description "Enhanced handsup kneel script for rp servers." client_scripts{ "client.lua" }
print('IronBrew 2:tm: Benchmark-y Meme') local Iterations = 100000 print('Iterations: ' .. tostring(Iterations)) print('CLOSURE testing.') local Start = os.clock(); local TStart = Start for Idx = 1, Iterations do (function() if (not true) then print'Hey gamer.'; end; end)(); end; print('Time:', os.clock() - S...
--- indent guides configuration local log = require('log') require('indent_blankline') local has_iguides, iguides = pcall(require, 'indent_blankline') if not has_iguides then log.error('Tried loading plugin ... unsuccessfully ‼', 'indent-guides') return has_iguides end -- will make screen redrawing slower but...
local function printResp(resp) print(type(resp)) print(#resp, resp) for key, val in pairs(resp) do print(type(val)) print(key .. " " .. val) end end local function setMode(newMode) local modeMask = 0xE0 --spi.set_mosi(1, 0, 8, 0x05, 0x0F, modeMask, newMode) --spi.transact...
return { npm = 'npm install --silent --quiet --global %s' }
-- root widget, starting point for mousepicking, immediate childs are layers (dialogs,menus,tooltips..) -- see also lib.gui.widget.lua RegisterWidgetClass("Root") function CreateRootWidget (rendermanager2d) return CreateWidget("Root",nil,rendermanager2d) end -- parentwidget_ignored : since this is a root widget, th...
--[[ -- Copyright(c) 2019, 武汉舜立软件 All Rights Reserved -- Created: 2019/04/08 -- -- @file t_set_eth0.lua -- @brief 设置sta模式 -- @version 0.1 -- @author 李绍良 -- @history 修改历史 -- \n 2019/04/08 0.1 创建文件 -- @warning 没有警告 --]] local string = require("string") local l_sys = require("l_sys") local eth0 = require("ipc.phy...
local Q = require 'Q' local okfldtypes = {} okfldtypes["F4"] = true okfldtypes["F8"] = true local function predict1( betas, x, -- point whose classification we desire is_fast ) -- CHECK params if ( not is_fast ) then assert(type(betas) == "lVector") assert(type(x) == "lVector") assert(okf...
-- Info.lua -- Implements the g_PluginInfo standard plugin description g_PluginInfo = { Name = "ProtectionAreas", Date = "2013-12-29", Description = [[ This plugin lets VIP users define areas of the world where only specified users are allowed to build and dig. An area is defined by the VIP by using ...
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- File: test_create.lua ------------------------------------------------------------------------------- package.cpath = "./build/?.so;" describe("iptable module: ", function() expose("ipt", function() ip...
local module = { --[=[ _NAME = '', _VERSION = '', _URL = 'https://github.com/asmagill/hydra_config', _DESCRIPTION = [[]], _TODO = [[]], _LICENSE = [[ See README.md ]] --]=] } -- private variables and methods ----------------------------------------- local window ...
-- Undo.lua -- class to store a game state -- for later restoring local Undo = {} function Undo:new(game) local o = {} setmetatable(o, {__index = Undo}) o.time = 0 o.biggestYet = 0 o.cells = {} o.game = game return o end setmetatable(Undo, {__call = Undo.new}) function Undo:backup() ...
GET_SVC_TYPE = { unique = 1, robin = 2, player_id = 3, } DB_SERVICE = { unique = "unique_db", account = "account_db", hall = "hall_db", game = "game_db", agent = "agent_db", } CACHE_TYPE = { memory = 0, redis = 1, mysql = 2, }
local widget = require("widget") local about = {} local properties = {} function about:render(params) local background = display.newImage( "images/mainBackGround.jpg") background.x = backgroundX background.y = backgroundY table.insert(properties, background) local pageTitleBackground = display.newImage("ima...
local constants = {} -- versions constants.VERSION_1 = 1 -- misc constants.ITEM_COLLECTOR_QUEUE_SIZE = 6 constants.ITEM_COLLECTOR_MAX_QUEUE_SIZE = 20 constants.INTERVAL_LOGIC = 38 -- item collector constants.ITEM_COLLECTOR_DISTANCE = 50 return constants
DEFINE_BASECLASS("acf_base_simple") ENT.PrintName = "ACF Engine" ENT.WireDebugName = "ACF Engine" ENT.PluralName = "ACF Engines" ENT.IsACFEngine = true cleanup.Register("acf_engine")
--[[ Name: "sh_clothes_base.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.rare = true; ITEM.name = "Clothes Base2"; ITEM.model = "models/props_c17/suitcase_passenger_physics.mdl"; ITEM.weight = 3; ITEM.useText = "Wear"; ITEM.category = "Clothing"; ITEM.description = "A suitcase full of ...
push = require 'lib/push' Class = require 'lib/class' require 'src/Util' require 'src/Input' require 'src/SoundSystem' require 'src/Graphics' require 'src/Animation' require 'src/Raycaster' require 'src/GameObject' require 'src/gameobjects/Camera' require 'src/gameobjects/Objects' require 'src/gameobjects/Player' re...
-- Returns the x, y position that is in front of Link -- "dist" number of pixels away function getLinkFrontPosition(dist) local px, py = player:getPosition() if player.dir == "right" then px = px + dist elseif player.dir == "left" then px = px - dist elseif player.dir == "up" then ...
CharacterList = { } -- private variables local charactersWindow local loadBox local characterList local errorBox -- private functions local function onCharactersWindowKeyPress(self, keyCode, keyboardModifiers) if keyboardModifiers == KeyboardNoModifier then if keyCode == KeyUp then characterList:focusPrev...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseConfirm_pb', package.seeall) local BSECONFIRM = protobuf.Descriptor(); local BSECONFIRM_TYPE_FIELD = protobuf.FieldDescriptor(); local BSECONFIRM_MESSAGE_FIELD = protobuf.FieldDescriptor(); local BSECONFIRM_USERSESSION_FIELD = p...
local f = require('f') local tablex = require('tablex') local awful = require('awful') local beautiful = require('beautiful') -- Rules to apply to new clients (through the 'manage' signal). local default = { -- All clients will match this rule. { rule = {}, properties = { b...
local b4={}; for k,v in pairs(_ENV) do b4[k]=v end local etc=require"etc" local about=require"about" local isa,klass,push,atom= etc.isa,etc.klass,etc.push,etc.atom local cat,shout,out,go = etc.cat,etc.shout, etc.out, etc.og local top,shuffle = etc.top, etc.shuffle local main,csv = etc.main, etc.csv local Sym,...
--1、if you fist time use ,please check you mian.lua file contain the folowing three lines:[5,6,23], or else you can't debug you exe --2、if you project is the new project ,you can just replace you mian.lua with this file simply --2018.1.2 by cjoy:http://www.5icoin.com/luaDebug.zip local breakSocketHandle,debugXpCall =...
local f = string.format My.Translator:register("en", { side_mission_raging_miner = function(sectorName) return f("Destroy miner in sector %s", sectorName) end, side_mission_raging_miner_description = function(payment) local cause = Util.random({ "an asteroid collision", ...
Config.DefaultWeaponTints = { [0] = _U('tint_default'), [1] = _U('tint_green'), [2] = _U('tint_gold'), [3] = _U('tint_pink'), [4] = _U('tint_army'), [5] = _U('tint_lspd'), [6] = _U('tint_orange'), [7] = _U('tint_platinum') } Config.Weapons = { { name = 'WEAPON_FLASHBANG', label = 'Granat Oślepiający' }, { ...
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ci (Gate of Light) -- Involved In Mission: 3-2 -- !pos -331 0 139 192 ----------------------------------- local ID = require("scripts/zones/Inner_Horutoto_Ruins/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") ----...
Npc = Npc or {} Npc.__index = Npc function Npc:Create(data) -- Check data. if not data then error("npc missing data") end -- Check id. if not data.id then error("npc missing id") end -- Create instance. local npc = setmetatable(data, Npc) -- Cache instance. Npcs.npcs[data.id] = npc -- Npcs callbacks...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules return require(Modules.Packages.Localization.LocalizationContext)
-- Message format: See README for more details -- { channel, message, ...args } local uv = require 'uv' local sub = string.sub local function makeCallback() local thread = coroutine.running() return function (err, value, ...) if err then assert(coroutine.resume(thread, nil, err)) else assert(c...
#!/usr/bin/env tarantool local fiber = require('fiber') local tap = require('tap') local test = tap.test('yield-in-debug-hook') test:plan(2) -- Test that HOOK_ACTIVE is not enough to panic and -- fiber still can use general hooks at switches. fiber.create(function() local old_hook, mask, count = debug.gethook() ...
AuctionatorScanButtonMixin = {} function AuctionatorScanButtonMixin:OnClick() Auctionator.State.FullScanFrameRef:InitiateScan() end
GM.OCRP_Skills = {} GM.OCRP_Skills["skill_conc"] = { Name = "Concentration Training", Desc = "Increases weapon accuracy.", Model = "models/props_lab/binderbluelabel.mdl", MaxLevel = 5, Color = Color(255,0,0,100), LvlDesc = {"Accuracy with guns increased by 10%.","Accuracy with guns increased by 20%.","Accurac...
local t = Def.ActorFrame{ InitCommand=cmd(zoom,0;CenterX;y,SCREEN_CENTER_Y*1.85;fov,90;rotationx,-7;y,SCREEN_TOP+7;); OnCommand=cmd(sleep,0.2;queuecommand,"TweenOn"); TweenOnCommand=cmd(linear,0.3;zoomy,0.175;decelerate,1.2;zoomx,1); LoadActor("base")..{ InitCommand=cmd(y,-4;zoomto,SCREEN_WIDTH-40,80;); ...
-- Set how large the level will be. local width = 600fx local height = 600fx pewpew.set_level_size(width, height) -- Create an entity at position (0,0) that will hold the background mesh. local background = pewpew.new_customizable_entity(0fx, 0fx) pewpew.customizable_entity_set_mesh(background, "/dynamic/rectangles_gr...
object_tangible_quest_must_control_computer = object_tangible_quest_shared_must_control_computer:new { } ObjectTemplates:addTemplate(object_tangible_quest_must_control_computer, "object/tangible/quest/must_control_computer.iff")
-- title: Outline 256b -- author: ps & mantratronic -- desc: 256b intro for Outline 2021 -- script: lua w=240 u=68 v=120 h=136 st=time() function TIC() dt = time()-st a=dt*0.001 b=a*3 c=a*5 --dt = 0 ms = math.sin(a)*20 ts = math.sin(b)*30 mc = math.sin(c)*30 for i=0,71 do poke(65438+i,math.random()*8+v) poke...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("NamePlates") local mod = _NamePlates local LSM = LibStub("LibSharedMedia-3.0") local goodR, goodG, goodB = unpack(RayUF["colors"].reaction[5]) local badR, ba...
return {'zorg','zorgaanbieder','zorgaanbod','zorgadministratie','zorgarbeid','zorgbarend','zorgbehoefte','zorgbehoevend','zorgbeleid','zorgboerderij','zorgbreedte','zorgbudget','zorgcentrum','zorgcircuit','zorgcoordinator','zorgdifferentiatie','zorgdragend','zorgelijk','zorgelijkheid','zorgeloos','zorgeloosheid','zorge...
function Log(lm) vlc.msg.info("[dplay.lua] " .. lm) end local function isdef(p,...) if not p then return false else local tb = p for i,v in ipairs(arg) do if tb[v]==nil then return false else tb = tb[v] ...
--Essence ore if resourcecrops.settings.essence_ore then minetest.register_node("resource_crops:essence_ore", { description = "Essence Ore", tiles = {"default_stone.png^resource_crops_essence_ore.png"}, groups = {cracky = 2}, drop = "resource_crops:essence_dust", sounds = default.node_sound_stone_defaults(), }) mi...
local branch_workbench = {} local utils = require('workbench.utils') branch_workbench_bufnr = vim.api.nvim_create_buf(false, true) branch_workbench_initialized = false function branch_workbench.filepath() -- for git flow the branch name is something like feature/ch1234/branch_name local git_branch = utils.get_git...
--- Zlib library -- @module configure.modules.zlib local M = {} --- Build Zlib library -- -- @param args -- @param args.build Build instance -- @param args.name Name of the project (defaults to 'zlib') -- @param args.version Version to use -- @param args.compiler -- @param args.install_directory -- @param args.kind '...
local energy_source = require("prototypes.parts.energy_source") -- {name, speed, energy, area, modSlots, ingredients, iconTint, entityTint} function miningDrill(args) local name = args.name local speed = args.speed local energy = args.energy local area = args.area local modSlots = args.modSlots local ing...
local cfg = {} -- * Possible buildings for resources cfg.buildings = {}
--[[ Name: bank_storage.lua ----------------------------------------------------------------- -- @package VrZn - Custom Gamemode (SRP BASE) -- @author Nodge -- @build Beta 1 ----------------------------------------------------------------- ]]-- local NPCMeta = {} NPCMeta.Name = "Bank Storage" NPCMeta.U...
local ReStructuredText = {} local function is_heading(line, char) for i = 1, #line do local c = line:sub(i, i) if c ~= char then return false end end return true end function ReStructuredText.get_headings(filepath, start, total) local headings = {} local index ...
local defs = {} defs["ImGui_ImplDX11_CreateDeviceObjects"] = {} defs["ImGui_ImplDX11_CreateDeviceObjects"][1] = {} defs["ImGui_ImplDX11_CreateDeviceObjects"][1]["args"] = "()" defs["ImGui_ImplDX11_CreateDeviceObjects"][1]["argsT"] = {} defs["ImGui_ImplDX11_CreateDeviceObjects"][1]["argsoriginal"] = "()" defs["ImGui_Imp...
local module = {} module.new = function(Name: string, Title: string?, Parent: instance) local Comp = script.Comp:Clone() Comp.Name = Name Comp.Container.Title.TextColor3 = module.Latte.Modules.Stylesheet.SeparatedList.TitleColor Comp.Container.Title.Text = Title or Name Comp.Size = UDim2.new(Comp.Size.X, 0, 0) C...
object_ship_nova_orion_smuggler_light_tier1 = object_ship_shared_nova_orion_smuggler_light_tier1:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_smuggler_light_tier1, "object/ship/nova_orion_smuggler_light_tier1.iff")
-- Example: Setting the mouse position -- Press a key to move the mouse to -- some random point. function love.keypressed(k) local x, y = math.random(0,800), math.random(0,600) love.mouse.setPosition(x, y) end
require'nvim-treesitter.configs'.setup { -- Ensure that these language parsers are installed ensure_installed = { 'python', 'json', 'lua', 'html', 'css', 'javascript', 'typescript', 'comment', }, -- Modules highlight = { enable = true, use_languagetree = true }, in...
-- FogOfWarEscape behavior -- Created by Francesco Roccucci -- Simple example -- local Behavior = CreateAIBehavior("FogOfWarEscape", { Alertness = 2, AI.BeginGoalPipe("fow_escape"); AI.PushGoal("locate",0, "atttarget"); AI.PushGoal("run",0,1); AI.PushGoal("backoff",1,5,0); AI.PushGoal("signal",1,1,"TO_AT...
WORLD_SIZE = 1000.0 WORLD_TILES = {5,5} local ACTIVE_TILE_TEX_SLOT = 42 local function addTile(colsys, col, pos) local b = col.bounds local terrainMesh = setmetatable({ tris = col.tris, mat = col.mat, bounds = cols.newBox({b.min-pos, b.max-pos}) }, col.__index) te...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local CertifyController = class("CertifyController", Controller):include(HasSignals) local tools = require('app.helpers.tools') local app = require("app.App"):instance() local SoundMng = re...
-- This code is derived from the SOM benchmarks, see AUTHORS.md file. -- -- Copyright (c) 2016 Francois Perrad <francois.perrad@gadz.org> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the 'Software'), to deal -- in the Software...
http = require "resty.http" function openURL(status, page) local httpc = http.new() local res, err = httpc:request_uri(page, { path = "/", method = "GET" }) if not res then ngx.log(ngx.ERR, err) ngx.exit(500) end ngx.status = tonumber(status) ngx.header["C...
local Packages = script.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local RoactGamepad = require(Packages.RoactGamepad) local Cryo = require(Packages.Cryo) local CursorKind = require(script.Parent.CursorKind) local SelectionImageContext = require(script.Parent.SelectionImageContext) local OnRoot...
function sysCall_beforeInstanceSwitch() -- Called before switching to another scene. See also sysCall_afterInstanceSwitch end
local stormlib = require 'ffi.stormlib' local w2l = require 'w3x2lni' local mapdump = require 'mapdump' local mt = {} mt.__index = mt function mt:process_create(command_line, current_dir) if self.h then self.h:kill() self.h = nil end local p = sys.process() p:hide_window() if not p:create(nil...
class 'Tetris' function Tetris:__init() self.inTetrisMode = false self.gridNotCurrent = {} self.moveDownTimer = Client:GetElapsedSeconds() self.moving = false self.current = {} self.currentLoc = Vector2.Zero self.currentRot = 1 self.currentPiece = 0 self.currentLeaderboard = {} self.rows = ...
describe('sample', function() it('errors if no sampler is specified', function() expect(function() Rx.Observable.empty():sample() end).to.fail() end) it('produces nil values if the sampler fires before the source does', function() local sampler = Rx.Observable.fromRange(3) local onNext, onError, onCo...
package.path = "../?.lua;" .. package.path local inspect = require "./inspect" local export = require "./export" local f if arg[1] ~= nil then f = io.open(arg[1], "rb") else print("-------------------------------------") print("\n\nYou must specify a filename to read from \n\ne.g. lua ToByHand.lua example....
for k,_ in pairs(package.loaded) do package.loaded[k] = nil end local builtin = _G.builtin builtin.CCView = builtin.CCView() builtin.CCApplication = builtin.CCApplication() builtin.CCDirector = builtin.CCDirector() builtin.CCUserDefault = builtin.CCUserDefault() builtin.CCKeyboard = builtin.CCKeyboard() bui...
return { PlaceObj("ModItemOptionToggle", { "name", "ToggleShrubs", "DisplayName", T(302535920011434, "Toggle Shrubs"), "Help", T(302535920011506, "Show shrubs beneath mouse cursor."), "DefaultValue", true, }), }
-- The test runs loop of given number of rounds. -- Every round does the following: -- The test starts several concurrent transactions in vinyl. -- The transactions make some read/write operations over several keys in -- a random order and commit at a random moment. -- After that all transactions are sorted in order o...
-- Code required to initialize the plugin function Initialize(Plugin) dofile(cPluginManager:GetPluginsPath() .. "/InfoReg.lua") -- Sets the name and version of the plugin Plugin:SetName(g_PluginInfo.Name) Plugin:SetVersion(g_PluginInfo.Version) -- Hook required when right-clicking ingame cPluginManager:AddHook(...
--[[ MIT License Copyright (c) 2019-2021 Love2D Community <love2d.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
local floatD = 5 local dadY = 0 function onCreate() makeLuaSprite('redskybackground','redsky',-200,-300) addLuaSprite('redskybackground',false) end function onBeatHit( ... )--for every beat -- body end function onStepHit( ... )--for every step -- body end function onUpdate( ... ) -- body end function onUpd...
-- -- SetParticleSortingLayer class. -- -- @filename LgSetParticleSortingLayer.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-09-01 -- local DLog = YwDebug.Log local DLogWarn = YwD...
local assets = require "assets" Entity = Class{ init = function(self) self._images = {} self._sprites = {} -- is actually the animations self.sprite = nil -- currently active animation -- x and y coordinate of sprite self.x = 0 self.y = 0 -- sprite/animation variables self._sprite_...
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" local send_content_types = require "spec.integration.admin_api.helpers" describe("Admin API", function() setup(function() spec_helper.prepare_db() spec_helper.start_kong() end)...
local ffi = require "ffi" local bit = require "bit" local lib = require('ffi-loader')(module.dir, "sqlite3.h") local sqlite3 = ffi.load("sqlite3") local new_db_ptr = ffi.typeof("sqlite3*[1]") local new_stmt_ptr = ffi.typeof("sqlite3_stmt*[1]") --local new_exec_ptr = ffi.typeof("int (*)(void*,int,char**,char**)") loca...
if SERVER then util.AddNetworkString("sbv_title") hook.Add("PlayerInitialSpawn", "sbv_fakename", function(ply) local title = ply:GetPData("title", nil) if title then ply:SetNWString("title", title) end end) else net.Receive("sbv_title", function() local ply = Player(net.ReadInt(32)) if IsValid(...
-- 文字コードはUTF-8 local ffi = require("ffi") require("ffi_typedef") ffi.cdef[[ //// 型宣言 typedef void *HANDLE; //// プロトタイプ宣言 //端末出力コードページを取得 UINT GetConsoleOutputCP(void); //戻り値:端末出力コードページ //標準入出力のハンドルを取得 HANDLE GetStdHandle( //戻り値:ハンドル DWORD nStdHandle); //入力:取得対象 //コンソール入出力の現在のモードを取得 BOOL GetCons...
--[[ z sorted "3d" ascii renderer chuck glyphs at it with xyz positions, they'll be drawn properly sorted as a big batch ]] local texture = love.graphics.newImage("assets/cga8x8thick_edit.png") texture:setFilter("nearest", "nearest") local quad = love.graphics.newQuad(0,0,0,0,texture:getDimensions()) local textur...
ITEM.name = ".500 Magnum DPX" ITEM.model = "models/items/ammo_500sw.mdl" ITEM.ammo = ".500 Magnum -HP-" // type of the ammo ITEM.ammoAmount = 30 // amount of the ammo ITEM.description = "" ITEM.quantdesc = "A box that contains %s rounds of .500 Magnum ammo. " ITEM.longdesc = "This high power cartridge was designed by ...
--- Provide a simple HTTP handler that proxies requests. -- See https://tools.ietf.org/html/rfc7230 and https://tools.ietf.org/html/rfc7231 -- @module jls.net.http.handler.ProxyHttpHandler -- @pragma nostrip local logger = require('jls.lang.logger') local HttpClient = require('jls.net.http.HttpClient') local HTTP_CONS...
----------------------------------------------------- --name : bin/quidemo.lua --description: a small program to highlight how easy it is to create an ui using "mpm.qui" --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : TODO --------------------------------------------------...
-- local M = {} ---@return ccui.Scale9Sprite function M.Frame(size, color, scale) local ret = ccui.Scale9Sprite:create('ui/frame_white.png') ret:setCapInsets(cc.rect(3, 3, 2, 2)) scale = scale or 1 if size then ret:setContentSize(cc.size(size.width / scale, size.height / scale)) end ret...
-- Mock DataStoreService -- Crazyman32 -- August 20, 2014 --[[ USAGE EXAMPLE: -------- local dataStoreService = game:GetService("DataStoreService") -- Mock service if the game is offline: if (game.PlaceId == 0) then dataStoreService = require(game.ServerStorage.MockDataStoreService) end -- d...
function prev_file() mp.command('playlist-prev') end function next_file() mp.command('playlist-next') end function first_file() mp.set_property('playlist-pos', 0) end function last_file() mp.set_property('playlist-pos', mp.get_property('playlist-count') - 1) end mp.register_script_message('first-fil...
local colors = { [0] = "#2E3440", [1] = "#3B4252", [2] = "#434C5E", [3] = "#4C566A", [4] = "#D8DEE9", [5] = "#E5E9F0", [6] = "#ECEFF4", [7] = "#8FBCBB", [8] = "#88C0D0", [9] = "#81A1C1", [10] = "#5E81AC", [11] = "#BF616A", [12] = "#D08770", [13] = "#EBCB8B", [14] = "#A3BE8C", [15] = "#B4...
--- === PseudoNumKey === --- --- Pseudo numeric keypad with FN key for Mac --- --- Download: [https://github.com/doiken/Spoons/raw/master/Spoons/PseudoNumKey.spoon.zip](https://github.com/doiken/Spoons/raw/master/Spoons/PseudoNumKey.spoon.zip) local obj = {} -- Metadata obj.name = "PseudoNumKey" obj.version = "1.0" o...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
return { formatCommand = "prettierd ${INPUT}", formatStdin = true, env = { string.format('PRETTIERD_DEFAULT_CONFIG=%s', vim.fn.expand('~/.config/nvim/lua/efm/prettierrc.json')), } }
local Plugin = script.Parent.Parent.Parent.Parent.Parent local RoduxHooks = require(Plugin.Packages.RoduxHooks) local Roact = require(Plugin.Packages.Roact) local Hooks = require(Plugin.Packages.Hooks) local Sift = require(Plugin.Packages.Sift) local Actions = require(Plugin.Actions) local Dropdown = require(Plugin....
if JudgeAttack(0, 75, 1000) == true then goto label0 end; PlayAnimation(-1, 7864, 7912); jyx2_PlayTimeline("[Timeline]ka460_金蛇山洞_拔金蛇剑_失败", 1, true); Talk(0, "哇塞!我使尽了吃奶的力气还拔不出来,难道要请亚瑟王来才行吗?", "talkname0", 1); jyx2_StopTimeline("[Timeline]ka460_金蛇山洞_拔金蛇剑_失败"); do return end; ::label0:: ModifyEvent...
-- This is the environment used when loading our custom Panel classes local color = require("util.color") local env = { -- QOL Stuff audio = love.audio, data = love.data, event = love.event, filesystem = love.filesystem, font = love.font, graphics = love.graphics, timer = love.timer, window = love.window, ...
-- Simulates the motion of a critically damped spring -- @author fractality --[[ MIT License Copyright (c) 2020 Parker Stebbins 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 restrictio...
slot0 = class("Model") slot0.Ctor = function (slot0, slot1) if slot0.instanceMap[slot1] then error(slot0.MULTITON_MSG) end slot0.multitonKey = slot1 slot0.instanceMap[slot1] = slot0 slot0.proxyMap = {} slot0:initializeModel() end slot0.initializeModel = function (slot0) return end slot0.getInstance = func...
-- Generated by CSharp.lua Compiler local System = System local SlipeServerPeds local SlipeSharedElements System.import(function (out) SlipeServerPeds = Slipe.Server.Peds SlipeSharedElements = Slipe.Shared.Elements end) System.namespace("Slipe.Server.Peds.Events", function (namespace) namespace.class("OnPrivateMe...
object_building_mustafar_terrain_must_rock_spire_lg_lumpy_03 = object_building_mustafar_terrain_shared_must_rock_spire_lg_lumpy_03:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_spire_lg_lumpy_03, "object/building/mustafar/terrain/must_rock_spire_lg_lumpy_03.iff")
return { "init.lua", "_preload.lua", "cmake_common.lua", "cmake_workspace.lua", "cmake_project.lua" }
local event = require("event") local mdm = require("mdm") local types = require("types") local log = require("log") local net = {} autoload(net, "net", "dns", "echo", "gps", "Message", "nfs", "route", "rpc", "status", "syslog", ...
local states = require("states") local utf8 = require("utf8") local button = require("button") local input = {} local inputText local flashPeriod = 0.5 local flashTimeElapsed = 0 local flashingSymbol = true local staticText local callbackApply, callbackCancel function input.open(params) inputText = params.inputTe...