content
stringlengths
5
1.05M
return { summary = 'A big ol\' block of data that can be sent to a Shader.', description = [[ ShaderBlocks are objects that can hold large amounts of data and can be sent to Shaders. It is common to use "uniform" variables to send data to shaders, but uniforms are usually limited to a few kilobytes in ...
local genx = require("genx") local ffi = require("ffi") local minizip = require("minizip") local zlib = require("zlib") local odFuncs = {} function odFuncs:save(filename) local zip = minizip.open(filename,"w") local xml = genx.new() local function writeToZip(s) if s then zip:write(ffi.string(s)) end end ...
-- local i = vim.inspect local api = vim.api local M = {} function M.set_abbr(abbr) vim.validate { abbrevation = { abbr, 'table' } } if not abbr.mode or not abbr.lhs then vim.notify('Missing arguments!! set_abbr need a mode and a lhs attribbutes', 'ERROR', { title = 'Nvim Abbrs' }) return fals...
-- DCP Dissector for Wireshark -- declare protocol dcp_proto = Proto("dcp","Distributed Co-Simulation Protocol") -- create a function to dissect it function dcp_proto.dissector(buffer,pinfo,tree) pinfo.cols.protocol = "DCP" -- add msg subtree to wireshark display local subtree = tree:add(dcp_proto,buffer()...
local base = memory.getBaseAddress() assert(base > 0) -- ELF magic number assert(memory.readByte(base) == 0x7f) assert(memory.readUByte(base) == 0x7f) assert(memory.readShort(base) == 0x457f) assert(memory.readUShort(base) == 0x457f) assert(memory.readInt(base) == 0x464c457f) assert(memory.readUInt(base) == 0x464c457f...
local drawableSpriteStruct = require("structs.drawable_sprite") local player = {} player.depth = 0 local texture = "characters/player/sitDown00" function player.sprite(room, entity) local playerSprite = drawableSpriteStruct.spriteFromTexture(texture, entity) playerSprite:setJustification(0.5, 1.0) retu...
return { setup = function() local api = vim.api local fmt = string.format local TMUX = os.getenv('TMUX') local TMUX_PANE = os.getenv('TMUX_PANE') local TMUX_SOCKET = vim.split(TMUX or ',', ',')[1] local function tmux_jump(to) local directions = { h = 'L', k = 'U', l = 'R', j =...
--[[ Steam - Flat Default Derma Skin Ryan 'Joudoki' Lewellen Friday, July 11, 2008 ]]-- local surface = surface; local draw = draw; local Color = Color; local SKIN = {}; SKIN.PrintName = "Steam - Default Flat"; SKIN.Author = "Ryan Lewellen"; SKIN.DermaVersion = 1; SKIN.fontFrame = "Default"; SKIN...
function convert(input) return input end
local Class = require 'lib.hump.class' local Event = getClass 'wyx.event.Event' -- MapNode Update - fires after the node is updated local MapNodeUpdateEvent = Class{name='MapNodeUpdateEvent', inherits=Event, function(self, node) verifyClass('wyx.map.MapNode', node) Event.construct(self, 'MapNode Update') self...
local mt = {} mt.__type = "Faces" function mt:__tostring() return string.format("[%s, %s, %s, %s, %s, %s]", tostring(self.Top), tostring(self.Bottom), tostring(self.Left), tostring(self.Right), tostring(self.Back), tostring(self.Front) ) end function mt:__eq(other) return self.Top == other...
local state = require'completion.state' local complete = require'completion.complete' local hover = require'completion.hover' local signature = require'completion.signature' local completion = {} function completion.insertEnter() local timer = vim.loop.new_timer() state.reset() timer:start(100, 80, vim.schedule...
object_building_general_dark_slab = object_building_general_shared_dark_slab:new { } ObjectTemplates:addTemplate(object_building_general_dark_slab, "object/building/general/dark_slab.iff")
<tr> <td>{{ icon( "items/jewel", decor.color ) }}</td> <td class="name"><a href="{{ U( ( "armory/jwl/%s_%d" ):format( urlFromName( decor.name ), decor.slots ) ) }}" class="rare{{ decor.rarity }}">{{ T( decor.name ) }}</a></td> <td>{{ ( "O" ):rep( decor.slots ) }}</td> <td>{% local first = true for _, ski...
local Profile = require 'lprofile' local LuaUnit = require 'luaunit.luaunit' -- ===================== ---Util to pretty-print a table local function _tblstr(t, d) d = d or 0 local gap = '' for i=1, d do gap = gap .. ' ' end local s = gap .. '{' local first = true for k,v in pairs(t) do ...
local pendingChanges -- VARIABLES_LOADED seems to consistently fire after ADDON_LOADED local function OnEvent(self, event, addon) if event == "ADDON_LOADED" and addon == "HideTutorial" then local tocVersion = select(4, GetBuildInfo()) if not HideTutorialDB2 or HideTutorialDB2 < tocVersion then -- only do this ...
local wibox = require("wibox") local awful = require("awful") local beautiful = require("beautiful") local widget = require("util.widgets") local helpers = require("helpers") local font = require("util.font") local tooltip = require("utils.tooltip") local font = require("util.font") -- beautiful vars local fg_read = b...
local mod = {} mod.on_init = function(self, msg, src, req) log.i("[mod]on_init", src, msg) cast(self.uid, {"stat", time()}, 1000) end mod.on_exit = function(self, msg, src, req) log.i("[mod]on_exit", src, msg) end mod.on_recv = function(self, msg, src, req) log.i("[mod]["..time().."]on_data", src, m...
#!/usr/bin/env lua local parse_args parse_args = require("pl.app").parse_args local run run = require("moonrocks.actions").run local original_args do local _tbl_0 = { } for k, v in pairs(arg) do _tbl_0[k] = v end original_args = _tbl_0 end local flags = parse_args() local params do local _accum_0 = { } ...
UI = { -- Константы с цветами COLORS = { BLACK = { r = 0, g = 0, b = 0 }, GRAY = { r = 100, g = 100, b = 100 }, WHITE = { r = 255, g = 255, b = 255 }, ACCENT = { r = 205, g = 198, b = 131 }, RED = { r = 255, g = 60, b = 4...
ITEM.name = "PAC Outfit" ITEM.description = "A PAC Outfit Base." ITEM.longdesc = "No Longer Description Available" ITEM.category = "Outfit" ITEM.model = "models/Gibs/HGIBS.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.pacData = {} ITEM.resistance = true ITEM.isHelmet = nil ITEM.isGasmask = nil ITEM.equipIcon = Material("mat...
local _, NeP = ... NeP.ClassTable = { { -- Warrior hex = 'c79c6e', rgb = {0.78,0.61,0.43}, [71] = { range = 'melee', name = 'Arms', role = 'DPS' }, [72] = { range = 'melee', name = 'Fury', role = 'DPS' }, [73] = { range = 'melee', name = 'Protection', role = 'TANK' } }, { ...
function SwapTeam( keys ) local caster = keys.caster local target = keys.target AddFOWViewer(target:GetTeam(), target:GetAbsOrigin(), 5000, 5, false) LarsTeamNumb = caster:GetTeamNumber() TargetTeamNumb = target:GetTeamNumber() target:SetTeam(LarsTeamNumb) target:SetFriction(0) end function SwapBack( keys ) ...
-- NOTE: recentf = oldfiles in Vim -- TODO: disable preview in Telescope? -- # Aliases local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') -- local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() -- local g = vim.g -- a table to access global variables -- local exec = vim.api.nvim_exec ...
--[[------------------------------------------------------------------------- -- FrameOptionsPanel.lua -- -- This file contains the definitions of the frame blacklist options panel. -- -- Events registered: -- None -------------------------------------------------------------------------]]-- local addonName, addon =...
return { actors = { { costume = "title_screen", position = { x = 0, y = 0 } }, { copymode = 3, font = "good_neighbors.16bc", parallax = 1.5, position = { x = 0, y = 0 }, role = "text", text = "Press A to start!" ...
return {'edgar','edgard','edgars','edgards'}
assert(love.graphics.getSupported().glsl3,"Glsl3 required!") local bulletType = {} bulletType.__index = bulletType local spatialHash bulletType.bufferHandle = {1,5000} local ffi = require("ffi") local function getPositionStuff(bufferSize,data) local p1 if not data then data = love.data.newByteD...
if settings.startup["5d-stack-artillery-bullets"].value then data.raw.ammo["artillery-shell"].stack_size = 5 end
local character, super = Class(PartyMember, "noelle") function character:init() super:init(self) -- Display name self.name = "Noelle" -- Actor (handles sprites) self:setActor("noelle") self:setLightActor("noelle_lw") -- Display level (saved to the save file) self.level = Game.chapter...
--This script contains common functions that are used in CRQs: -- [GENIVI] PerformAudioPassThru: SDL must support new "audioPassThruIcon" parameter --How to use: --1. local testCasesForPerformAudioPassThru = require('user_modules/shared_testcases/testCasesForPerformAudioPassThru') local commonSteps = require('user_mod...
return{ name = "waterSpout", description = "Water Spout", type = "weapon", subtype = "projectile", damage = '5', special_damage = 'water= 6', info = 'a water spout', MAX_ITEMS = 15, quantity = 5, directory = 'weapons/', }
AddCSLuaFile() SWEP.PrintName = "Самодельный детектор" SWEP.Category = "Call of Pripyat" SWEP.Base = "weapon_cop_base" SWEP.Slot = 4 SWEP.SlotPos = 2 SWEP.Spawnable = true SWEP.AdminOnly = false SWEP.ViewModel = "models/wick/weapons/stalker/stcopwep/d0_model.mdl" SWEP.WorldModel = "models/wic...
--[[ MIT License Copyright (c) 2021 Pedro Lucas (github.com/elloramir) 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, m...
require("entity") require("item") require("recipe")
local function Create(ty) return function(data) local obj = Instance.new(ty) for k, v in pairs(data) do if type(k) == 'number' then v.Parent = obj else obj[k] = v end end return obj end end island=Create'Model'{ Name = "Island"; Create'Part'{ TopSurface = Enum.SurfaceType.Smooth; Brick...
-- Druid Raven.classConditions.DRUID = { ["Remove Corruption (Poison)"] = { tests = { ["Spell Ready"] = { enable = true, spell = 2782, }, -- "Remove Corruption" ["Debuff Type"] = { enable = true, unit = "player", hasDebuff = "Poison", }, }, associatedSpell = 2782, -- "Remove Corruption" }, ["Remove Cor...
local C, N, L, oUF = unpack(select(2, ...)) local ShortValue = N.ShortValue -- Lua APIs local unpack = unpack local pairs = pairs local floor = math.floor local format = string.format -- WoW APIs local UnitXP = UnitXP local UnitXPMax = UnitXPMax local UnitClass = UnitClass loca...
ITEM.name = "Первенство «Следопыта»" ITEM.desc = "Награда за достижение ранга. Выдается, если текущий ранг более 100. Для преобразования в капитал - необходимо использовать.\n\nХАРАКТЕРИСТИКИ: \n-выоская стоимость" ITEM.price = 2000 ITEM.exRender = false ITEM.weight = 0.02 ITEM.model = "models/kek1ch/dev_money....
--[[ Purpose: A library for the framework's item system. This includes the registration, loading, and player's inventory functions and handles item interaction. --]] nut.item = nut.item or {} nut.item.buffer = {} nut.item.list = {} nut.item.bases = {} nut.item.queries = {} function nut.item.RegisterQuery(query, cal...
object_tangible_component_vehicle_veh_power_plant_desert_skiff = object_tangible_component_vehicle_shared_veh_power_plant_desert_skiff:new { } ObjectTemplates:addTemplate(object_tangible_component_vehicle_veh_power_plant_desert_skiff, "object/tangible/component/vehicle/veh_power_plant_desert_skiff.iff")
local md local function OnMutePlayer(client, networkMessage) clientIndex, isMuted = ParseMutePlayerMessage(networkMessage) for _, player in pairs(TGNS.GetPlayerList()) do if player:GetClientIndex() == clientIndex then if isMuted then muteText = "muted" else muteText = "unmuted" end local source...
local awful = require("awful") local config = require("config") local join = require("gears.table").join local key = awful.key local menu = require("menu") local unpack = table.unpack local util = require("util") local terminal = util.apps.app(config.terminal) local file_manager = util.apps.app(config.file_manager or ...
local Types = require(script.Parent.Types) --[=[ A Queue is a data structure that follows the first-in, first-out (FIFO). @class Queue ]=] local Queue = {} Queue.ClassName = "Queue" Queue.__index = Queue type Array<Value> = Types.Array<Value> type int = Types.int type NonNil = Types.NonNil --[=[ @within Queue @...
local crewboardTweaks_onTransferCrew -- server, extended function if onServer() then -- Fix vanilla exploit that allows to steal other people crew from a crew transport crewboardTweaks_onTransferCrew = CrewTransport.onTransferCrew function CrewTransport.onTransferCrew(...) local player = Player(callingPlayer) ...
--- <strong>A light implementation of `binary heaps`</strong>. -- While running a search, some algorithms have to maintains a list of nodes called __open list__. -- Finding in this list the lowest cost node from the node being processed can be quite slow, -- (as it requires to skim through the collection of nodes stor...
-- Zytharian (roblox: Legend26) -- Exported object local UTIL = {} UTIL.findAll = (function (object, className) local found = {} for _,v in next, object:GetChildren() do if v:IsA(className) then table.insert(found, v) else local recur = UTIL.findAll(v, className) for _,v in next, recur do table.ins...
local s_ruins = {} table.insert(s_ruins, require("smallRuins.crossOfPipes")) table.insert(s_ruins, require("smallRuins.crossOfPipes2")) table.insert(s_ruins, require("smallRuins.crossOfPipes3")) table.insert(s_ruins, require("smallRuins.crossOfPipes4")) table.insert(s_ruins, require("smallRuins.diagonalWall")) table.i...
ys = ys or {} slot1 = class("BattleBuffAddAttrConvert", ys.Battle.BattleBuffAddAttr) ys.Battle.BattleBuffAddAttrConvert = slot1 slot1.__name = "BattleBuffAddAttrConvert" slot1.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0, slot1) end slot1.GetEffectType = function (slot0) return slot0.Battle.BattleBuffEffec...
local M = {} -- Auto-install local lsp_installer_servers = require('nvim-lsp-installer.servers') local ok, html = lsp_installer_servers.get_server('html') if ok then if not html:is_installed() then html:install() end end -- Settings -- Enable (broadcasting) snippet capability for completion local capabilit...
require 'uv/ctypes/init' local ffi = require 'ffi' local async = require 'uv/util/async' local ctype = require 'uv/util/ctype' local libuv = require 'uv/libuv' local libuv2 = require 'uv/libuv2' local libc = require 'uv/libc' local uv_buf_t = require 'uv/ctypes/uv_buf_t' local uv_signal_t = require 'uv/ctypes/uv_signal...
print("Nested IF\n") local var_x = 1 local lua = "lua" if var_x == 1 then if lua == "lua" then print("Nested IF example running!") end else if lua == "rock" then print("Nested ELSE-IF running!") end end
require("gameBase/socketProcesser") require("hall/onlineSocket/globalSocketCmd"); require("libs/json"); RankSocketProcesser = class(SocketProcesser) -- 获取rank list 列表 RankSocketProcesser.onGetRankListCallBack = function(self, isSuccessed, ranlList) self.m_controller:handleSocketCmd(PHP_GET_RANK_LIST, isSucce...
local mysql = require "mysql" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Checks for MySQL servers with an empty password for <code>root</code> or <code>anonymous</code>. ]] --- -- @see...
require("common/IBaseDialog"); require("uilibs/richText"); local passwordViewLayout = require(ViewPath .. "hall/password/passwordViewLayout"); -- 口令弹框 local PasswordView = class(IBaseDialog, false); local h_index = 0; local getIndex = function(self) h_index = h_index + 1; return h_index; end Pas...
--- Settings -- -- @module settings.lua --- Replace nodes specified in `MineralDef.replace` -- -- @setting mineral.replace_default -- @settype bool -- @default false mineral.replace_default = core.settings:get_bool("mineral.replace_default", false) --- The node wherein minerals will appear. -- -- @setting mine...
-- module local graphics = {} -- fix bugged 'line' in love2d function graphics.rectangle(style, x, y, w, h) if 'line' == style then love.graphics.rectangle('line', x + 1, y, w - 1, h - 1) return end love.graphics.rectangle('fill', x, y, w, h) end return graphics
local protocol = {} local ESC = "\027" local STX = "\002" local ETX = "\003" local escape_group = ("[%s%s%s]"):format(ESC, STX, ETX) local packet_pattern = ("%%z%s(.-)%%z%s"):format(STX, ETX) local function escapechar(c) return ESC .. c end local function unescapechar(c) return c:sub(2, 2) end function protocol.e...
ITEM.name = "Old Backpack" ITEM.description= "An old backpack, well worn and tattered. Its weight betrays its contents." ITEM.model = "models/kek1ch/sumka1.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.flag = "A" ITEM.exRender = true ITEM.iconCam = { pos = Vector(277.58795166016, 232.89892578125, 177.14739990234), ang =...
--[[ -- -- Copyright (c) 2013-2017 Wilson Kazuo Mizutani -- -- 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, mo...
--[[ Humor API Awesome Humor API. The version of the OpenAPI document: 1.0 Contact: mail@humorapi.com Generated by: https://openapi-generator.tech ]] -- inline_response_200_7 class local inline_response_200_7 = {} local inline_response_200_7_mt = { __name = "inline_response_200_7"; __index = inline_res...
function init() if root.itemConfig({ name="ct_warpcore", count=1}) then player.giveItem({ name="ct_warpcore", count=1}) item.consume(1) sb.logWarn("%s", "replace deprecated item acwarpcore.") end end function update(dt, fireMode, shiftHeld) end function uninit() end function activate(fireMode, shiftHeld) ...
#!../out/bin/lua Net,Buffer,fmt=require't.Net',require't.Buffer',string.format ipAddr = arg[1] and arg[1] or Net.Interface.default( ).address.ip port = arg[2] and arg[2] or 8888 tcpsock, ip = Net.Socket.connect( ipAddr, port ) print( tcpsock, ip ) print( tcpsock.nonblock ) tcpsock.nonblock = true print( tcpsock.non...
-- modify or link more counters according to the amount of aux boards you have function toggleAuxBoards() counter1.next() counter1.next() counter1.next() end -- boardID indexed from 1 to 99, however many you configured -- lightID indexed from 1 to 9, if some lights are missing, the aux boards skip them -- ...
local M, bin = {}, require("casc.bin") local uint32_be, uint16_le, ssub = bin.uint32_be, bin.uint16_le, string.sub local encoding_mt = {} do local api = {} local function parseContentChunk(data, chunk, into) local p, last, firstKey = chunk[3]-1, chunk[3] + 4059, chunk[1] repeat local c, chsh = uint16_le(data,...
local ps = game:GetService("Players") local p = ps.LocalPlayer game:GetService("RunService"):BindToRenderStep("nigger", 0, function() -- that fucking argument wtffffff game.ReplicatedStorage.IncreaseSize:InvokeServer("103953efea35103953efea357034031asd3848034384803vasdwa08483084800380843037503740374103953efea3570340...
--[[ Mod Xpro para Minetest Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) Recebeste uma cópia da GNU Lesser General Public License junto com esse software, se não, veja em <http://www.gnu.org/licenses/>. Shopping de XP ]] -- Traduções local S = xpro.S -- Assegurar dados minetest.register_on...
function test() Thread.endCall() testEnd = true end test() scriptEnd = true
local Parser = {} local Source = require("luacs.source") local methods = {} local metatable = {} function metatable.__index(parser, key) return methods[key] end -- Specification: https://www.w3.org/TR/selectors-3/ -- -- Grammar: -- -- selectors_group -- : selector [ COMMA S* selector ]* -- ; -- -- selector --...
local Players = game:GetService("Players") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Rodux = require(Modules.Packages.Rodux) local SetCurrentCharacter = require(Modules.AvatarExperience.Common.Actions.SetCurrentCharacter) local defaultState = nil return Rodux.createReducer(defa...
-- Standard awesome library require("awful") require("awful.autofocus") require("awful.rules") -- Theme handling library require("beautiful") -- Notification library require("naughty") local USE_DBG = false dbg = function (msg) if USE_DBG then naughty.notify({ preset = naughty.config.presets.critical, ...
while wait(.1) do for _,v in ipairs(workspace.Levels.Forest:GetChildren()) do if v.Name == "SpawnPoint" then v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame end end end
options.namespace = false options.info = true gmail = IMAP { server = 'imap.gmail.com', username = 'your-account@gmail.com', password = 'your-gmail-password', ssl = 'ssl3' }
--[[ __ __ _______ __ __ __ __ ________ / \ / / / _____/ \ \ / / \ \ \ \ \ _____\ / /\ \ / / / /____ \ \/ / \ \ \ \ \ \_____ / / \ \ / / / _____/ / /\ \ \ \ \ \ \_____ \ / / \ \/ / / /____ / / \ \ \ \__\ \ ____\ \ /_/ \__/ /______/ /...
--[[ © 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 --]] Clockwork.salesman = Clockwork.kernel:NewLibrary("Salesman"); -- A function to ge...
crafting = {} crafting.type = {} local modpath = minetest.get_modpath(minetest.get_current_modname()) dofile(modpath .. "/config.lua") dofile(modpath .. "/util.lua") dofile(modpath .. "/guide.lua") dofile(modpath .. "/legacy.lua") dofile(modpath .. "/table.lua") dofile(modpath .. "/furnace.lua") if crafting.config...
--[[ -- added by wsh @ 2017-12-11 -- UILogin模块UILoginView窗口中服务器列表的可复用Item --]] local UIServerWrapItem = BaseClass("UIServerWrapItem", UIWrapComponent) local base = UIWrapComponent local function GetServerStateSpriteName(state) -- 服务器状态:0-良好、1-普通、2-爆满、3-未开服 local sprite_name = "login2_10.png" if state == 1 then s...
-------------------------------------------------------------------------------- --[[ Dusk Engine Component: Update Wraps camera and tile culling to create a unified system. --]] -------------------------------------------------------------------------------- local lib_update = {} -- ********************************...
local unauthNames = { "administrator", "admin", "adm1n", "adm!n", "admln", "moderator", "owner", "nigger", "n1gger", "moderator", "eulencheats", "lynxmenu", "atgmenu", "hacker", "bastard", "hamhaxia", "333gang", "n1gger", "n1ga", "nigga", "n1gga", "nigg3r", "nig3r", "shagged", "4dm1n", "4dmin", "m0d3r4t0r", "...
vim.wo.spell = true vim.bo.spelllang = "pt"
--- Script based on Sighmir's vrp_id_display vRPN = {} Tunnel.bindInterface("vrp_names",vRPN) local players = {} local names = {} local permissions = {} local groups = {} function vRPN.insertUser(user_id,source,name,permission,group) players[user_id] = GetPlayerFromServerId(source) names[user_id] = name p...
addEvent("onOwnerReceived", false) addEventHandler("onOwnerReceived", resourceRoot, function (owner_id, player, vehicleId, tuning, stickers) if player:getData("_id") ~= owner_id then triggerClientEvent(player, "dpGarage.saveCar", resourceRoot, false) return end exports.dpCore:updateVehicleTuning(vehicleId, tuni...
require "AdHoc" local this = GetThis() local entities = {} local rigidbodies = {} local nextId = 0 local input = GetInput() function Start() end function Update() -- if input:GetKey(AdHoc.Key.a) == true then entities[nextId] = CreateEntity() AddComponent(entities[nextId], "RigidBody", "Box"); ...
function love.conf(t) t.identity = 'ColorWheel' t.console = true t.window.title = 'Color Wheel Generator' t.window.width = 1024 t.window.height = 1024 end
local go1_script = [[function init(self) go.animate(".", "position.y", go.PLAYBACK_LOOP_PINGPONG, 100, go.EASING_LINEAR, 2) end function final(self) end function update(self, dt) end function on_message(self, message_id, message, sender) end function on_input(self, action_id, action) end function on_reload(se...
function setDefault(id) _G['defaultStrum'..id..'X'] = getActorX(id) _G['defaultStrum'..id..'Y'] = getActorY(id) _G['defaultStrum'..id..'Z'] = getActorAngle(id) setActorAngle(0,id) end function update(elapsed) local currentBeat = (songPos / 1000)*(bpm/60) end function stepHit (step) if step ==...
TextHTMLTabelle={ [====[Title 1. Introduction This programm functions on a Raspberry Pi. 2. Title This is a title. 2.1 Subtitle 1 This is the subtitle 1. 2.2 Subtitle 2 This ist the subtitle 2. 3. Title ]====], }--TextHTMLTabelle<!-- --This script is a tool to write articles in a reflexive way --1. basic data...
require("core/object"); require("common/httpDownload"); require("util/TableLib"); local IosReplaceInstallLogic = require("hall/update/iosReplaceInstallLogic"); -----------------------------------全局函数----------------------------------- KTaskType_Update_APK_Patch =1;--APK增量更新 KTaskType_Update_APK =2;--APK全量更新...
package("tinycrypt") set_homepage("https://github.com/intel/tinycrypt") set_description("TinyCrypt Cryptographic Library") add_urls("https://github.com/intel/tinycrypt.git") add_versions("2019.9.18", "5969b0e0f572a15ed95dc272e57104faeb5eb6b0") on_install(function (package) local configs = ...
macros.load_next_char = function(next_char) assert(load(next_char))() print('dentro') return 'print("output da macro")' end assert(load([[ @load_next_char print('comido pelo load') ]]))()
local fighter_progression = require("progression/fighter_progression") local gameplay_data = require("resources/gameplay_data") local game_session = new_class() function game_session:init() -- current floor number the player character is located at self.floor_number = gameplay_data.initial_floor -- highest floo...
-- base copied from 3d_armor_ui -- support for i18n kiosk = {} kiosk.path = minetest.get_modpath("kiosk") kiosk.config = minetest.get_mod_storage() kiosk.modname=minetest.get_current_modname() local S = dofile(kiosk.path .. "/intllib.lua") kiosk.intllib = S local F = minetest.formspec_escape minetest.log("action", "[M...
if PLANE_ICAO == "C172" or PLANE_ICAO == "M20J" or PLANE_ICAO == "BE33" or PLANE_ICAO == "PA28" or PLANE_TAILNUMBER == "N399CK" then dataref("xp_mixture_ratio_all", "sim/cockpit2/engine/actuators/mixture_ratio_all", "writable") local axis_function_type_is = 0 local i -- take a look where the mixture axis is fo...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
-- Copyright (C) 2016-2018 DBot -- 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, modify, merge, publish, dist...
-------------------------------- -- @module RichElementText -- @extend RichElement -- @parent_module ccui -------------------------------- -- -- @function [parent=#RichElementText] init -- @param self -- @param #int tag -- @param #color3b_table color -- @param #unsigned char opacity -- @param #string t...
local skynet = require "skynet" local args = {...} if #args == 0 then table.insert( args, "test-uniqueservice" ); end skynet.start(function ( ) local us skynet.error("start query unique service") -- 如果test-uniqueservice未被创建,该接口将会阻塞,后面的代码将不会执行 skynet.error("args[1] ", args[1], "args[2] ", args[2])...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function GenerateUniquePhoneNumber() local numBase0 = math.random(100,999) local numBase1 = math.random(0,9999) local num = string.format("%03d-%04d", numBase0, numBase1 ) return num end function rNum(source) local source = sour...
-- Use spell checker vim.opt_local.spell = true vim.opt_local.spelllang = "en_us" -- Use thesaurus vim.opt_local.thesaurus = vim.opt_local.thesaurus + vim.fn .expand("~/.config/nvim/thesaurus/thesaurus.txt") -- Set text width to 80 vim.opt_local.textwidth = 80...
test_run = require('test_run').new() -- Restart the server to finish all snaphsots from prior tests. test_run:cmd('restart server default') fiber = require('fiber') -- optimize one index space = box.schema.space.create('test', { engine = 'vinyl' }) index = space:create_index('primary', { run_count_per_level = 20 }) i...