content
stringlengths
5
1.05M
-- This script shows an example of how passing data from the iOS share sheet to scripts. -- With Luade, you can share text, URLs and files with your scripts. -- For that, just create a script the the "Share Sheet" directory. Then, when you share a text, an URL or a file, you can select 'Run Lua Script' and select the...
-- Copyright 2006-2022 Mitchell. See LICENSE. -- Gnuplot LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('gnuplot') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Keywords. lex:...
--control.lua --[[ script.on_event(defines.events.on_player_changed_position, function(event) local player = game.get_player(event.player_index) -- get the player that moved -- if they're wearing our armor -- if player.character and player.get_inventory(defines.inventory.character_armor).get_item_count("...
--table of item,amount,cost return { weapons = { {"blueskyspecial",1,10000}, }, materials = { {"fries",99,25}, {"pancake",99,100}, {"banana",99,100}, {"toast",99,100}, {"carkeys",99,100}, {"bubblegum",99,100}, }, keys = { {"ladiesroom",1,1000}, } }
staticText = {} local options = {} local classes = {} local currentPM = nil addEventHandler( "onClientResourceStart", resourceRoot, function() triggerServerEvent( "onClientReady", localPlayer ) end ) function drawGameTextToScreen( text, duration, colour, font, size, valign, halign, importance ) if not importan...
return {'hukken','huk','hukt','hukte'}
local a, b = 1, 10 if a < b then print(a) --> 1 local a -- `= nil' is implicit print(a) --> nil end -- ends the block started at `then' print(a, b) --> 1 10
-- -- File: appEvents.lua -- This lua file manages application events -- 1. insures that application events have a unique id -- 2. maintains a list of register events -- -- -- -- appEvents = {} appEvents.dictionary = {} function appEvents.addEvent( eventName, eventDescription ) local temp local id ...
return {'gbit'}
local CorePackages = game:GetService("CorePackages") local Rodux = require(CorePackages.Rodux) local Cryo = require(CorePackages.Cryo) local Actions = script.Parent.Parent.Actions local AddTeam = require(Actions.AddTeam) local RemoveTeam = require(Actions.RemoveTeam) local SetTeamName = require(Actions.SetTeamName) ...
----------------------------------------- -- ID: 4697 -- Scroll of Barblindra -- Teaches the white magic Barblindra ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(89) end function onItemUse(target) target:addSpell(89) end
--[[--------------------------------------------------------- This file should contain variables and functions that are the same on both client and server. This file will get sent to the client - so don't add anything to this file that you don't want them to be able to see. ------------------...
----------------------------------- -- Area: Temenos -- Mob: Orichalcum Quadav ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobEngaged(mob,target) if (IsMobDead(16929017)==true and IsMobDead(16929018)==true and IsMobDead(16929019)==true and ...
-- Luapress -- File: luapress/default_config.lua -- Desc: the default config we use to generate local config.lua's local config = { -- Url url = nil, -- Build to this directory build_dir = 'build', -- Environments envs = { -- Eg: -- dev = { -- -- Both optional: ...
----------------------------------------------------------------------------------------- -- Composites -- Switch -- Executes ONE child based on the provided int or enum and return it's status. If set the -- Dynamic and 'case' change while a child is running, that child will be interrupted -- before the new child i...
local Vibration = require(script.Parent.Parent.Vibration) local impact = Vibration.new(Enum.UserInputType.Gamepad1, Enum.VibrationMotor.Large, { { amplitude = 0.25, length = 0.07, }, }) return impact
fx_version 'adamant' game 'gta5' description 'Job script created by Tigo#9999' name 'ESX Jobs' author 'TigoDevelopment' contact 'me@tigodev.com' version '1.0.0' server_scripts { '@async/async.lua', '@mysql-async/lib/MySQL.lua', 'shared/locale.lua', 'locales/nl.lua', 'locales/en.lua', 'data/...
require "Polycode/EventHandler" class "EventDispatcher" (EventHandler) function EventDispatcher:EventDispatcher(...) if type(arg[1]) == "table" and count(arg) == 1 then if ""..arg[1]:class() == "EventHandler" then self.__ptr = arg[1].__ptr return end end for k,v in pairs(arg) do if type(v) == "ta...
-- Copyright 2018 Chizhong Jin <pjincz@gmail.com> -- Licensed to the public under the BSD 3-clause license m = Map("luci_statistics", translate("cUrl Plugin Configuration")) s = m:section(NamedSection, "collectd_curl") s_enable = s:option(Flag, "enable", translate("Enable this plugin")) s_enable.default = 0 page =...
local MortarWeaponFired = class("MortarWeaponFired") function MortarWeaponFired:initialize(playerid, origin_x, origin_y, dest_x, dest_y) self.playerid = playerid self.origin_x = origin_x self.origin_y = origin_y self.dest_x = dest_x self.dest_y = dest_y end return MortarWeaponFired
parse('transfer_speed 500') gajosframework = { users = {}, DIR = { gfx = 'gfx/gajosframework/', }, } COLOR_VALUE = { ['white'] = '255255255', ['black'] = '000000000', ['grey'] = '100100100', ['grey_lighten'] = '220220220', ['red'] = '255050000', ['red_lighten'] = '255100050...
local M = {} function M.mk_handler(fn) return function(...) local config_or_client_id = select(4, ...) local is_new = type(config_or_client_id) ~= 'number' if is_new then fn(...) else local err = select(1, ...) local method = select(2, ...) local result = select(3, ...) ...
--!strict --[[ Given a reactive object, updates all dependent reactive objects. Objects are only ever updated after all of their dependencies are updated, are only ever updated once, and won't be updated if their dependencies are unchanged. ]] local Package = script.Parent.Parent local PubTypes = require(Package....
----------------------------------- -- Area: Windurst Woods -- NPC: Tih Pikeh -- Working 100% ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) end function onEventUpdate(player,csid,option) end function onEventFinish(player,csid,option) end
-- FreeBSD specific syscalls local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local version = require "syscall...
ZO_SavedVars = { accounts = {} } function ZO_SavedVars:NewAccountWide(savedVariableTable, version, namespace, defaults, profile, displayName) local index = 1 if nil ~= ZO_SavedVars.accounts then index = #ZO_SavedVars.accounts + 1 end ZO_SavedVars.accounts[index] = { ...
require 'cutorch' require 'nn' hog = {} include 'ffi.lua' include 'utils.lua' include 'hog.lua'
require("instrument") local i = instrument("?*::5::INSTR") i:write("*CLS") i:write("*IDN?") print(i:read()) i:w("*CLS") i:w("*IDN?") print(i:r()) i:w("*CLS") i:w("XXX %f", 4.0) local s,m = i:q("SYST:%s", "*l", "ERR?") print("status:"..s) print("message:"..m)
include("bluejackpot.lua") local JackpotPot = 0 local numberOfPlayers = 0 local TimeUntilNextGame = 0 local JackpotPlayerInfo = {} local JackpotCurrentRoundTime local JackpotTimerActive = false local CanDepositeToJackpot = false local meta = FindMetaTable("Player") --Network String util.AddNetworkString("UpdateJ...
local AES = require "AES" print("\n--------------------------ecb模式--------------------------\n") local lcp = AES.mcrypt_module_open("rijndael-128", "ecb") --用指定算法和模式打开加密模块 AES.mcrypt_generic_init(lcp, "1234567890123456", "", 3) --初始化加密所需的缓冲区, 使用 PKCS7_PADDING local encrypt,err = AES.mcrypt_generic(lcp, "We meet at o...
-- Enabling this increases the recipe costs for Logistics Rails to include an Advanced circuit. -- This also causes Logistics Rails to no longer give you back a regular rail when picked up, but instead gives you the appropriate type of rail. expensiveRails = false
if not modules then modules = { } end modules ['l-set'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- This will become obsole...
local core = require "core" local config = require "core.config" local command = require "core.command" --[[ Date and time format placeholders from https://www.lua.org/pil/22.1.html %a abbreviated weekday name (e.g., Wed) %A full weekday name (e.g., Wednesday) %b abbreviated month name (e.g., Sep) %B full month name (...
-- File: /home/sergio/.config/nvim/lua/user/lualine.lua -- Last Change: Sat, 30 Apr 2022 18:27 local status_ok, lualine = pcall(require, "lualine") if not status_ok then return end local hide_in_width = function() return vim.fn.winwidth(0) > 80 end local diagnostics = { "diagnostics", sources = { "nvim_diagnosti...
-- Credits to EinBaum, SP_SwingTimer zUI:RegisterComponent("zSwingTimer", function () local _, class = UnitClass("player") if (C.quality.swingtimer.disable == "0" and class == "WARRIOR" or class == "SHAMAN" or class == "PALADIN" or class == "HUNTER" or C.quality.swingtimer.enable_for_all == "1") then zUI.swingtime...
--[[ wowmock - WoW environment mock Copyright 2014 Adirelle (adirelle@gmail.com) See LICENSE for usage. --]] local function strsplit(delim, str, count) if count and count <= 1 then return str end local a, b = str:find(delim, 1, true) if not a then return str end return str:sub(1, a-1), strsplit(delim, str:sub(b+1)...
-- -- kmeans.lua -- kmeans-kernels -- -- Created by Andrey Kolishchak on 12/19/15. -- function kmeans(x, c_num, max_iter) max_iter = max_iter or 1 local centroids = x.new(c_num, x:size(2))--:normal() -- -- initialize centroids -- centroids:normal(x:mean(), x:std()) local dist = x.new(x:siz...
local changes = {} local interface = require('interface') changes['1.8.2'] = function() interface.reset_queue('nano_queue') end changes['1.8.7'] = function() interface.reset_queue('cell_queue') end return changes
local ffi = require("ffi") -- stylua: ignore ffi.cdef[[ int printf(const char * Format, ...); ]] local function print(...) local Array = {} for Index = 1, select("#", ...) do Array[Index] = tostring(select(Index, ...)) end ffi.C.printf("%s\n", table.concat(Array, " ")) end local PROJECT_FILES = {"default.pro...
------------------------------------------------------------------------------------ -- CSG -- v1.0 -- ppEvent_s.lua (server-side) -- Armored Truck Event -- Priyen Patel ------------------------------------------------------------------------------------ local truckMaxSpeed = 55 --kmh local lawNeeded = 2 local ti...
---@type cc.Director local M = cc.Director M.EVENT_BEFORE_SET_NEXT_SCENE = "director_before_set_next_scene" M.EVENT_AFTER_SET_NEXT_SCENE = "director_after_set_next_scene" M.EVENT_PROJECTION_CHANGED = "director_projection_changed" M.EVENT_AFTER_DRAW = "director_after_draw" M.EVENT_AFTER_VISIT = "director_after_visit" M...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("High Sage Viryx", 1209, 968) if not mod then return end mod:RegisterEnableMob(76266) mod.engageId = 1701 mod.respawnTime = 15 ----------------------------------------------------...
local CharacterStats = require 'common.class' () function CharacterStats:_init(position, character) self.position = position self.character = character self.font = love.graphics.newFont('assets/fonts/VT323-Regular.ttf', 36) self.font:setFilter('nearest', 'nearest') end function CharacterStats:draw() local ...
module("luci.controller.rclone", package.seeall) function index() if not nixio.fs.access("/etc/config/rclone") then return end entry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false local page = entry({"admin", "nas", "rclone"}, cbi("rclone"), _("Rclone")) page.order = 100 page.dependent = false ...
require 'paths' require 'qtcore' require 'qtgui' if qt and qt.qApp and qt.qApp:runsWithoutGraphics() then print("qlua: not loading module qtide (running with -nographics)") return end qt.require 'libqtide' local G = _G local error = error local dofile = dofile local loadstring = loadstring local print = print...
--[[ desc: Obstacle, a component with obstacle. author: Musoucrow since: 2018-5-18 alter: 2018-6-4 ]]-- ---@class Actor.Component.Obstacle ---@field public list table<number, Graphics.Drawunit.Point> local _Obstacle = require("core.class")() function _Obstacle:Ctor(data) self.list = {} self.data = data en...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Dynamic Box Corner" ENT.Author = "Lexi" ENT.Contact = "mwaness@gmail.com" ENT.Purpose = "Making finding box-based areas easier / Fun" ENT.Instructions = "press 'use' to print out coords. 'sprint+use' to change movetype." ENT.Information = "Spa...
--[[ /* Copyright: (c) Kayne Ruse 2016 * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including com...
-- Implementation of ESP over IPv6 using AES-128-GCM using a 12 byte ICV and -- “Extended Sequence Number” (see RFC 4303 and RFC 4106). -- -- Notes: -- -- * Wrapping around of the Extended Sequence Number is *not* detected because -- it is assumed to be an unrealistic scenario as it would take 584 years to -- ov...
function triggerZoneEvent(name, ...) TriggerClientEvent(name, -1, ...) end RegisterNetEvent("PolyZone:TriggerZoneEvent") AddEventHandler("PolyZone:TriggerZoneEvent", triggerZoneEvent) exports("TriggerZoneEvent", triggerZoneEvent)
-- -------------------------------------------------------------------------------- -- FILE: type_checkers.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.c...
-- -- tests/test_premake.lua -- Automated test suite for the Premake support functions. -- Copyright (c) 2008-2009 Jason Perkins and the Premake project -- T.premake = {} local suite = T.premake -- -- Setup -- local sln, prj function suite.setup() sln = test.createsolution() location "MyLocation" prj = p...
function onClientStartChat( ) local px, py, pz = getElementPosition(client) for k, v in ipairs ( getElementsByType("player") ) do local vx, vy, vz = getElementPosition(v) if ( getDistanceBetweenPoints3D( px, py, pz, vx, vy, vz ) <= 25 ) and not (v == client) then triggerClientEvent(v, "addChatBubble", cl...
mapQuests = require "lib/mapQuests" npcSpeakers = require "lib/npcSpeakers" charInventory = require "lib/charInventory" quest = target.get_quest(mapQuests.getID("FeedingBullDog")) utah = self.as_speaker(npcSpeakers.getID("Utah")) self.say({ utah.get_speech("Haha. I had a good laugh. Hahaha. But enough with that non...
local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local LOCAL_PLAYER = Game.GetLocalPlayer() function OnResourceChanged(player, resource, value) if resource == "NewPlayer" and value == 1 then API_RE.Broadcast("ForceOpenViewByName", "Help") end end if LOCAL_PLAYER:GetResource("NewPla...
local blockedTasks = { ["TASK_SIMPLE_JUMP"] = true, ["TASK_SIMPLE_LAND"] = true, ["TASK_SIMPLE_SWIM"] = true, ["TASK_SIMPLE_FALL"] = true, ["TASK_SIMPLE_CLIMB"] = true, ["TASK_SIMPLE_GET_UP"] = true, ["TASK_SIMPLE_IN_AIR"] = true, ["TASK_SIMPLE_HIT_HEAD"] = true, ["TASK_SIMP...
local Action = require 'lqc.fsm.action' local function mock_obj(value) local obj = {} local obj_mt = { __index = function() return function() return value end end } return setmetatable(obj, obj_mt) end describe('Action helper object', function() it('is necessary to pass a vari...
local ffi = require("ffi") ffi.cdef[[ /* Doubly linked list head or element. */ struct ovs_list { struct ovs_list *prev; /* Previous list element. */ struct ovs_list *next; /* Next list element. */ }; ]] --#define OVS_LIST_INITIALIZER(LIST) { LIST, LIST }
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 5.56 SWEP.CaseLength = 45 SWEP.MuzVel = 616.796 SWEP.InternalParts = { [1] = {{key = "hbar"}, {key = "lbar"}}, [2] = {{key = "hframe"}}, [3] = {{key = "ergonomichandle"}}, [4] = {{key = "customstock"}}, [5] = {{key = "lightbolt"}, {key = "...
function Server_Created(game, settings) local overriddenBonuses = {}; local MapID = game.Map.ID; for _, bonus in pairs(game.Map.Bonuses) do -- Hardcoded cases for the INSS maps local Allowed = true; if MapID == 69965 then if bonus.ID > 42 then Allowed = false; end elseif M...
local menu = {} function menuLoad() imgLove = LG.newImage('lib/img/madewithlove2d.png') intro = { x = 150, y = 50, w = LG.getWidth()-300, text = [[ Welcome to Operation: Caravan! You are an aspiring young captain in search of getting filthy rich. You start out piloting a small ship, buying and sel...
local rules = require "scripts.rules" local animations = require "character.animations" local CastleGuard = require "character.castle_guard" local CastleGuardConcerned = CastleGuard:new() function CastleGuardConcerned:new(o, control) o = o or CastleGuard:new(o, control) setmetatable(o, self) self.__index = sel...
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
--------------- -- Song Bird -- --------------- local random = math.random local function clamp(val, min, max) if val < min then val = min elseif max < val then val = max end return val end creatura.register_mob("animalia:bird", { -- Stats max_health = 5, armor_groups = {fleshy = 200}, damage...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/resource_allocation.md -- Item: Use Case 1: Excep...
local t = require('luatest') local g = t.group() local fun = require('fun') local Runner = require('luatest.runner') local utils = require('luatest.utils') local helper = require('test.helper') local assert_failure_matches = helper.assert_failure_matches local function range(start, stop) -- return list of {start...
--[[ ################################################################################ # # Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), t...
Player = { weapons = {}, weaponCasings = {}, weaponFlashes = {}, weaponCost = {}, activeWeapon = 1, score = 0, enableControls = true, lockTransform = false, transformDelay = 1, invuln = false, shield = 0, maxShield = 0, isAttacking = false, specialAmmo = 0, specialMaxAmmo = 1 } function Player:new(X,Y) ...
-- TODO(ddc): derive this from the url for prod. For dev, just use unit 1 app.unit = Unit:by_id(1) execute.inner()
local skynet = require "skynet" local socket = require "socket" function echo( id, addr ) socket.start(id) while true do local str = socket.read(id) if str then skynet.error("客户端:"..id, "发送内容:"..str) socket.write(id, str) else socket.close(...
return { tllobserver = { acceleration = 0.045, activatewhenbuilt = true, brakerate = 0.054, buildcostenergy = 1076, buildcostmetal = 203, builder = false, buildpic = "tllobserver.dds", buildtime = 3655, canattack = false, canguard = true, canmove = true, canpatrol = true, canstop = 1, categ...
hs.hotkey.bind({"cmd","alt"},"B",function () -- 中划线转驼峰 -- a-a-a => aAA copy_context = string.gsub(hs.pasteboard.getContents(), "-([a-z]?)", string.upper) hs.pasteboard.setContents(copy_context) hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)
function onCreate() camY = 'camFollow.y'; camX = 'camFollow.x'; nevada = true; setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'bfded'); --put in mods/sounds/ makeLuaSprite('city', 'nevada/nevada_city', -600, -100) --the background addLuaSprite('city', false); setProperty('city.scale.x', get...
-------------------------------------------------------------------------------- --- Lua-nucleo exports profile -- @module lua-nucleo.code.profile -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------------------...
------------------------------ -- library ------------------------------ require 'torch' require 'xlua' ------------------------------ -- function ------------------------------ function test() valid_score, model_idx = vr_mean:max(1) local model_idx = model_idx[{1,1}] local valid_score = valid_score[{1,1}] lo...
function base_project( name ) project( name ) location 'build/%{_ACTION}' sysincludedirs { 'include' } files { -- C/C++ 'src/%{prj.name}/**.c', 'src/%{prj.name}/**.cc', 'src/%{prj.name}/**.cpp', 'src/%{prj.name}/**.cxx', 'src/%{prj.name}/**.h', 'src/%{prj.name}/**.hh', 'src/%{prj.name}/**.hpp', ...
local RESOURCES = require("editor_resources"); local fileList = {}; return fileList;
local parsers = {} local function registerParser(pattern, callback) pattern = (istable(pattern) and pattern or {pattern}) table.insert(parsers, {pattern, callback}) end function lutils.colorify(text, dontPrint) local parseData = {} parseData.commentBreaker = nil parseData.stringBreaker = nil parseData.lastColor...
------------------------------------------------------------ -- Manager.lua -- -- Abin -- 2012/1/03 ------------------------------------------------------------ local type = type local CreateFrame = CreateFrame local format = format local pairs = pairs local ReloadUI = ReloadUI local wipe = wipe local InCombatLockdown...
local bug = require "toy.debug" local log = require "toy.logger" local int = require("toy.math.bignum.int").new local function main() local a = int("126") local b = int("124") local c = a+b local d = int() -- Default value is zero -- log.print("look a:" .. a:str() ) log.print("look a:" .. a ) log.print(...
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
--- -- This module provides a parser for messages with named parameters and can expand the message using the parameter -- values. -- -- @module M -- local M = {} local FROM_STATE_INDEX = 1 local GUARD_INDEX = 2 local ACTION_INDEX = 3 local TO_STATE_INDEX = 4 --- -- Create a new instance of a message expander. -- -- @...
function print_r (t, name, indent) local tableList = {} function table_r (t, name, indent, full) local id = not full and name or type(name)~="number" and tostring(name) or '['..name..']' local tag = indent .. id .. ' = ' local out = {} -- result if type(t) == "table...
require "test-setup" local lunit = require "lunit" local Cairo = require "oocairo" local assert_error = lunit.assert_error local assert_true = lunit.assert_true local assert_false = lunit.assert_false local assert_equal = lunit.assert_equal local assert_userdata = lunit.assert_userdata local ass...
-- =========================================================================== -- Cui Remind Panel -- eudaimonia, 11/11/2019 -- =========================================================================== include("InstanceManager") include("cui_helper") include("cui_settings") include("cui_tech_civic_support") -- -----...
-- Inline 3 engines -- Petrol ACF_DefineEngine( "1.2-I3", { name = "1.2L I3 Petrol", desc = "Tiny microcar engine, efficient but weak", model = "models/engines/inline3s.mdl", sound = "acf_base/engines/i4_petrolsmall2.wav", category = "I3", fuel = "Petrol", enginetype = "GenericPetrol", weight = 40, torque =...
w,h = System:screenSize();--获取屏幕尺寸 demoLabel = Label(); demoLabel:frame(0,20,w,40); demoLabel:text("点击屏幕一次执行一个测试demo"); label = Label();-- 创建一个文本框 label:frame(160,h-80,w,80); detailInfo = Label(); detailInfo:frame(0, h-40, w, 40); function detail( info ) detailInfo:text(info); detailInfo:adjustSize(); end ...
local stub = require("luassert.stub") local methods = require("null-ls.methods") local generators = require("null-ls.generators") local lsp = vim.lsp describe("handlers", function() local handlers = require("null-ls.handlers") describe("setup", function() local has = stub(vim.fn, "has") afte...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/Eli.mdl") self:SetHullType(HULL_HUMAN) self:SetHullSizeNormal() self:SetNPCState(NPC_STATE_SCRIPT) self:SetSolid(SOLID_BBOX) self:SetUseType(SIMPLE_USE) self:DropToFloor() self:SetTrigge...
-- -- KDL Module -- https://github.com/kdl-org/kdl local mod = foundation.new_module("foundation_kdl", "0.0.0") mod:require("kdl.lua") if foundation.com.Luna then mod:require("tests.lua") end
AuctionatorListImportFrameMixin = {} function AuctionatorListImportFrameMixin:OnLoad() Auctionator.Debug.Message("AuctionatorListImportFrameMixin:OnLoad()") self.ScrollFrame:SetHeight(self.Inset:GetHeight()) self.ScrollFrame.ImportString:SetWidth(300) end function AuctionatorListImportFrameMixin:OnShow() Auc...
-- Default locales -- -- -- Last updated: 2010-01-31T20:02:15Z local L = LibStub("AceLocale-3.0"):NewLocale("Cascade", "enUS", true) --if not L then return end L.Cascade_tooltip = "|cffeda55fClick|r to open history frame.\n|cffeda55fRight-click|r to open options." -- COMBAT_LOG_EVENT_UNFILTERED L.DISPELLED = "Dispel...
return {'daim','daisy','daisys'}
-------------------------------- -- @module TableViewCell -- @extend Node -- @parent_module cc -------------------------------- -- Cleans up any resources linked to this cell and resets <code>idx</code> property. -- @function [parent=#TableViewCell] reset -- @param self -- @return TableViewCell#TableViewCell self (r...
-- ----------------------------------------------------------------- -- -- This Lua5 module is Copyright (c) 2010, Peter J Billam -- -- www.pjb.com.au -- -- -- -- This module is free softwar...
Database_Warlock = {date="2020-09-05 13:03:47",lookup={["Affliction"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [2335] = {}, [2343] = {}, [2336] = {}, [2331] = {}, [2345] = {}, [2337] = {}, [2344] = {}},["Demonology"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [2335] =...
-- -- Created by IntelliJ IDEA. Copyright (C) 2017 Hanks -- User: hanks -- Date: 2017/5/26 -- qiqu -- require "import" import "android.widget.*" import "android.content.*" import "androlua.LuaWebView" import "android.os.Build" import "android.view.View" import "android.support.v7.widget.AppCompatSeekBar" import "andro...
Grid128 = {} Grid128.new = function (_id, _grid) obj = { id = _id, grid = _grid, aftertouch_active = false, intensity_level = 127, leds = {}, ledBuffer = {}, init = function (self) print("lp init") self:set_aftertouch (self.aftertouch_active) self:intensity (self.intens...
---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -- -- em_safehouseInfoBox -- -- --------------------------------------------------------------------------------------...
local _, Addon = ... ---------------------------------------- Addon.SchedulerLib = ---------------------------------------- { Version = 1, EventFrame = CreateFrame("Frame", nil, UIParent), HasTasks = false, NeedSorted = false, Tasks = {}, IteratorIndex = nil, IteratorCount = nil, } Addon.SchedulerLib.Eve...