content
stringlengths
5
1.05M
local screenW, screenH = guiGetScreenSize() GTmodelsviewer = { gridlist = {}, window = {}, button = {}, label = {} } GTmodelsviewer.window[1] = guiCreateWindow(10, (screenH - 421) / 2, 326, 421, "Real Estate - Property Viewer", false) guiWindowSetSizable(GTmodelsviewer.window[1], false) guiSetVisible(...
local AliasesModif = {} local colors = require "colors" local sides = require "sides" local dmp = require "dump" local aliasNode = require "AliasNode" local client local name function AliasesModif:set(aname) client = self; name = aname end local tree local containerHEAD, containerCRUD, containerButtons local nameF...
-------------------------------------------------------------------------------- -- Handler.......... : onApplicationWillQuit -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------...
local util = require "util" local create_configuration = require "create_configuration" local create_tasks = require "create_tasks" local create_environment = require "create_environment" local args = { ... } local fs_normalise = util.fs_normalise local shared_print = util.shared_print local run_with_stacktrace = ut...
local toolbar = require"hs.webview.toolbar" local console = require"hs.console" local image = require"hs.image" local fnutils = require"hs.fnutils" local listener = require"utils.speech" local application = require"hs.application" local styledtext = require"hs.styledtext" local doc = requi...
--[[ --=====================================================================================================-- Script Name: Console Logo, for SAPP (PC & CE) Description: Custom ascii console logo NOTES: USE THIS WEBSITE TO GENERATE YOUR LOGO: https://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%...
local win = am.window{ title = "tunnel", } -- constants local num_edges = 7 local num_rings = 50 local ring_gap = 2 local forward = vec3(0, 0, -1) local up = vec3(0, 1, 0) -- state local player_pos = vec3(0) local player_speed = vec3(0, 0, -50) local ring_color = vec4(1) local radius = 10 -- tunnel shader local ...
local m = require 'lpeglabel' local matcher = require 'glob.matcher' local function prop(name, pat) return m.Cg(m.Cc(true), name) * pat end local function object(type, pat) return m.Ct( m.Cg(m.Cc(type), 'type') * m.Cg(pat, 'value') ) end local function expect(p, err) return p + m.T(er...
minetest.register_craftitem("snowball:ball", { description = "Throwable Snowball", range = 0, stack_max= 16, inventory_image = "snowball.png", on_use = function(itemstack, user, pointed_thing) if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end if pointed_thing.type ~= "nothing" ...
require 'socket' local c = socket.connect('localhost',3335) local log = io.open('log.txt','a') function readfile(file) local f,err = io.open(file) if not f then return nil,err end local contents = f:read '*a':gsub('\n','\001') f:close() return contents end function eval(line) c:send(line..'\n') local re...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "ipAlienDigger", PlaceObj('XTemplateTemplate', { '__context_of_kind', "AlienDigger", '__template', "Infopanel", }, { PlaceObj('XTemplateTemplate', { 'comment', "salvage", '__cond...
---------------------------------------------- -- Sample of SlibRGB57wTM1640.lua for W4.00.03 -- Copyright (c) 2019, AoiSaya -- All rights reserved. -- 2019/09/01 rev.0.03 ----------------------------------------------- function chkBreak(n) sleep(n or 0) if fa.sharedmemory("read", 0x00, 0x01, "") == "!" then error(...
-- MODULE CONFIG.LUA -- by Garran Plum -- -- GP Configuration for this individual mod. -- IMPORT GP OBJECT local myMod, GP = ... GP:log("config.lua", GP:version()) -- MY CONFIG Mod Name local modName = "DETAILER" -- MY CONFIG Remix local remix = { -- Pine Trees -- Fancy Nature Pack PINES = {"JK_PINE_A_P...
--settings.lua data:extend( { { type = "bool-setting", name = "debug-messages", order = "aa", setting_type = "runtime-global", localised_name = "Debug messages?", localised_description = "[facDump] Should we turn on debug messages?", default_value = false, ...
slot0 = class("BattleGateTest") ys.Battle.BattleGateTest = slot0 slot0.__name = "BattleGateTest" slot0.Entrance = function (slot0, slot1) if not slot1.LegalFleet(slot0.mainFleetId) then return end slot4 = {} for slot10, slot11 in ipairs(slot6) do slot4[#slot4 + 1] = slot11.id end slot7 = slot0.mainFleetId...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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...
function class_new(name) local new_class = {} function new_class.newObject(...) local sup = new_class:superClass() local newinst = {} local meta = {} if sup == nil then meta.__index = new_class else newinst.super = sup.new(...) function meta.__index(table,key) local cla...
-- -*- coding: utf-8 -*- ------------------------------------------------------------------------ -- Copyright ยฉ 2011-2015, RedJack, LLC. -- All rights reserved. -- -- Please see the COPYING file in this distribution for license details. ------------------------------------------------------------------------ -- Loads...
-- -- Chartboost Corona SDK -- Created by: Chris -- local cmd = (...) local mod_name if cmd then mod_name = cmd:match( "^(.*)%..-$" ) end local __chartboost__modules = {} local function __chartboost__require__(name) local mod = __chartboost__modules[name] if mod then return __chartboost__modules[name]...
--- Telegram dice object. -- This object represents a dice with random value from 1 to 6. (Yes, we're aware of the โ€œproperโ€ singular of die. But it's awkward, and we decided to help it change. One dice at a time!). -- @classmod Dice local class = require("middleclass") local Dice = class("telegram.structures.Dice") ...
ITEM.name = "Titanium" ITEM.description = "A small beam of titanium, which is used to craft most weapons." ITEM.model = "models/props_c17/TrapPropeller_Lever.mdl" ITEM.price = 45 ITEM.exRender = true
require("prototype.entity") require("prototype.fluid") require("prototype.item") require("prototype.tile") require("prototype.recipe")
local stat_overrides = { _NpcDaggers = { Talents = "ViolentMagic;Ambidextrous" }, _NpcUnarmed = { Talents = "ViolentMagic;Ambidextrous" }, _NpcWands_Water = { Talents = "ViolentMagic;Ambidextrous" }, _NpcSwords = { Talents = "ViolentMagic;Ambidextrous" }, _NpcAxes = { Talents = "ViolentMagic;Ambidext...
require("util/static") Util = {} --[[-- keyup fallback ]] function Util.KeyUp(key) if key == KEY_ESCAPE then static.quit() end end --[[-- keydown fallback ]] function Util.KeyDown(key) end --[[-- resize fallback @param w @param h ]] function Util.Resize(w, h) SCREEN_WIDTH = w SCR...
local awful = require("awful") local gears = require("gears") local utils = require("utils") local icons = require("icons") local BaseWidget = require("widgets.base").BaseWidget local WiredWidget = BaseWidget.derive() function WiredWidget:update() local connected = utils.read_number("/sys/class/net/" .. self.inte...
--[[ pbInfo - Locales/lang.DE.lua v0.49 by p.b. a.k.a. novayuna released under the Creative Commons License By-Nc-Sa: http://creativecommons.org/licenses/by-nc-sa/3.0/ ]] pbInfo.QuestTracker.CompleteText = '%(Fertig%)'; pbInfo.QuestTracker.DailyQuestPatterns = {'"(%d+) Tages%-Quest"', "heute nicht noch einmal", "ben...
function Server_StartGame(game,standing) print("Test1"); local playerGameData = Mod.PlayerGameData; for _,pid in pairs(game.ServerGame.Game.Players)do if(pid.IsAI == false)then playerGameData[pid.ID] = {}; playerGameData[pid.ID].Capturedterritories = 0; playerGameData[pid.ID].Lostterritories = 0...
--This script converts an excel file in a txt file by using LuaCOM --1 previously delete temporary test data os.execute('del "C:\\Temp\\test_*.txt"') --1.1 library require("luacom") --require treatment of office files --2.1 read excel file names of the directory in a Lua table excelFileTable={} p=io.popen(...
mappings = { { name = "value", device="Audio", control="Volume Envelope"}, }
local beautiful = require 'beautiful' local gears = require 'gears' screen.connect_signal('request::wallpaper', function(s) if beautiful.wallpaper then local wallpaper = beautiful.wallpaper if type(wallpaper) == 'function' then wallpaper = wallpaper(s) end gears.wallpape...
jester.help_map.event = {} jester.help_map.event.description_short = [[Interact with the FreeSWITCH event system.]] jester.help_map.event.description_long = [[This module provides actions for interacting with the FreeSWITCH event system.]] jester.help_map.event.actions = {} jester.help_map.event.actions.fire_event = ...
-- handles all music and soundeffects local loop = nil -- the default background loop function soundHandler_init() loop = love.audio.newSource( "res/sound/ambient.ogg") loop:setLooping(true) --loop:play() end
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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...
include("shared.lua") local hsvToColor = HSVToColor local curTime = CurTime function ENT:Draw() self:DrawModel() local ang = LocalPlayer():EyeAngles() ang:RotateAroundAxis( ang:Forward(), 90 ) ang:RotateAroundAxis( ang:Right(), 90 ) local centerx, centery = 0, -150 cam.Start3D2D(self:GetPos(), Angle( 0, ang....
local String = require("string"); local Lockbox = require("lockbox"); Lockbox.ALLOW_INSECURE = true; local tests = { "Base64Tests", "MD2Tests", "MD4Tests", "MD5Tests", "RIPEMD128Tests", "RIPEMD160Tests", "SHA1Tests", "SHA2_224Tests", "SHA2_256Tests", "HMACTests", "HKDFTests", "PBKDF2Tests", "DESCipherTes...
local ITEM = Clockwork.item:New("weapon_base"); ITEM.name = "M92 Beretta"; ITEM.cost = 0; ITEM.model = "models/weapons/w_beretta_m92.mdl"; ITEM.weight = 0.95; ITEM.uniqueID = "m9k_m92beretta"; ITEM.business = false; ITEM.description = "A fairly new looking handgun and is very light, chambers 9x19mm Parabellum"; ITEM.i...
-- Based off of the Duplicator GUI PANEL.VoteName = "none" PANEL.MaterialName = "exclamation" function PANEL:Init() self.RefreshBtn = vgui.Create("DImageButton", self) self.RefreshBtn:SetMaterial("gui/silkicons/arrow_refresh") self.RefreshBtn:SetTooltip("Refresh List") self.RefreshBtn.DoClick = function() ret...
slot0 = class("GuildDonateTask", import("..BaseVO")) slot0.Ctor = function (slot0, slot1) slot0.id = slot1.id slot0.configId = slot0.id end slot0.bindConfigTable = function (slot0) return pg.guild_contribution_template end slot0.getCommitItem = function (slot0) return { slot0:getConfig("type"), slot0:getConf...
--MCmobs v0.4 --maikerumine --made for MC like Survival game --License for code WTFPL and otherwise stated in readmes --dofile(minetest.get_modpath("mobs").."/api.lua") --################### --################### ZOMBIE --################### --[[ mobs:register_mob("mobs_mc:22zombie", { type = "animal", passive = ...
-- `--::-.` -- ./shddddddddhs+. -- :yddddddddddddddddy: -- `sdddddddddddddddddddds` -- ydddh+sdddddddddy+ydddds M-Like:Box -- /ddddy:oddddddddds:sddddd/ By adebray - adebray -- sdddddddddddddddddddddddds -- sdddddddddddddddddddddddds Created: 2015-12-01 03:38:03 -- :ddddddddddhyyddddddddddd: Modifie...
require("functions") require("prototypes.categories") require("prototypes.styles") require("prototypes.research-reports") require("prototypes.particles") require("prototypes.elements") require("prototypes.deep-space-accelerator") require("prototypes.building.research-center") require("prototypes.building.analysis-ce...
-- stateful.lua - v1.0.3 (2014-10) -- requires middleclass >2.0 -- Copyright (c) 2011 Enrique Garcรญa Cota -- 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 ...
๏ปฟlocal ROOT = script:GetCustomProperty("Root"):WaitForObject() local LIQUID = ROOT:GetCustomProperty("Liquid"):WaitForObject() local TRIGGER = ROOT:GetCustomProperty("Trigger"):WaitForObject() local SPLASH = ROOT:GetCustomProperty("Splash"):WaitForObject() local GLOW = ROOT:GetCustomProperty("Glow"):WaitForObject()...
local oBody = require("oBody") local oEffect = require("oEffect") local tolua = require("tolua") local oModel = require("oModel") local CCScheduler = require("CCScheduler") local oWorld = require("oWorld") local oPlatformWorld = require("oPlatformWorld") local CCSprite = require("CCSprite") local oData = require("oData...
local math = require 'math' local storage_dict = require 'nginx-metrix.storage.dict' math.randomseed(ngx and ngx.now() or os.time()) -- Window Item -- local WindowItem = {} WindowItem.__index = WindowItem --- -- function WindowItem.create_key() return ngx.md5(string.format('%.3f %.12f', ngx.now(), math.random())) ...
๏ปฟlocal l_sys = require("l_sys") local sh = l_sys.sh local x86_64_driver = {} -- ๅŠ ่ฝฝ้ฉฑๅŠจ x86_64_driver.load = function() end -- ๅธ่ฝฝ้ฉฑๅŠจ x86_64_driver.unload = function() end return x86_64_driver
hook.Add("TTS.PlayerInitialSpawn", "TTS::CheckFamilySharing", function(ply) if ply:IsBot() then return end -- print(ply:GetPData("notfamilysharing")) -- if ply:GetPData("notfamilysharing") == "true" then return end local ply64 = ply:SteamID64() local RadioUrlStreams = "https://api.steampowered.com/IPlayer...
--!The Make-like install Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache...
admins = { { name = "KaliBwoy", title = "Owner", accountName = "KaliBwoy" }, { name = "Cena", title = "Co-owner", accountName = "Cena" }, { name = "Kreator", title = "Server Manager", accountName = "Goldberg" }, { name = "Mihoje", title = "Developer", accountName = "Mihoje" }, { name = "Haxardous", title = "Dev...
if aaa then end if aaa+bbb+ccc == 123 then end if aaa+bbb and ccc or eee then local t = 123 if aaa then end if ddd then else --hahh end end if a then elseif aa then elseif ccc then else end if a then return a --end end if a -- then end
local common = require("common") local s1 = common.getApprox(7,14,50) local s2 = common.getApprox(14,7,50) local s3 = common.getApprox(14,6,50) local s4 = common.getApprox(355,113,50) local s5 = common.getApprox(307,113,50) print(s1:len(), s1) print(s2:len(), s2) print(s3:len(), s3) print(s4:len(), s4) p...
--[[ add stealth detection via W add peel for most AD teammate ]]-- if myHero.charName ~= "Warwick" then return end local qrange = 400 local wrange = 1250 local rrange = 700 local smiterange = 760 local SmiteSlot = nil local ts local QREADY, WREADY, EREADY, RREADY = false, false, false, false local BRKSlot, DFGSl...
--[[ * Label : Module for hover module base functionality * Author : DVD ( dvd_video ) * E-mail : dvd_video@abv.bg * Date : 19-01-2017 * Location : lua/hovermodule/hovermodlib.lua * Defines : A list of functions for initializing a hover module ]]-- local type = type local next ...
require('abilities/overlord_interface') require('abilities/creature_powers') require('dire_events') function summon_melee_spawner(keys) return create_spawner(keys,"npc_melee_spawner",spawners.melee_spawn_string) end function summon_ranged_spawner(keys) return create_spawner(keys,"npc_ranged_spawner",spawners.r...
local Size = require "util.Size" describe("util.size", function() it("should construct as Size(int, int)", function() local s = Size(5,10) assert.are.equal(5,s.width) assert.are.equal(10,s.height) end) it("should construct as Size{int, int}", function() local s = Size{5,10} assert.are.equal(5...
require('quest') -- A quest to clear Stonewall of the goblin sea-captain. local function kirin_goblin_start_fn() add_message_with_pause("KIRIN_GOBLIN_QUEST_START_SID") add_message_with_pause("KIRIN_GOBLIN_QUEST_START2_SID") clear_and_add_message("KIRIN_GOBLIN_QUEST_START3_SID") add_object_to_player_tile("gobli...
return { ["skull"] = "๐Ÿ’€", ["exploding_head"] = "๐Ÿคฏ", ["camping"] = "๐Ÿ•๏ธ", ["mortar_board"] = "๐ŸŽ“", ["gem"] = "๐Ÿ’Ž", ["scream"] = "๐Ÿ˜ฑ", ["control_knobs"] = "๐ŸŽ›๏ธ", ["woman_guard"] = "๐Ÿ’‚โ€โ™€๏ธ", ["man_lifting_weights"] = "๐Ÿ‹๏ธโ€โ™‚๏ธ", ["family_mmgg"] = "๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง", ["raised_hand"] = "โœ‹", ["family_wwb"] = "๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ"...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/2803 --------------------------------------------------------------------------------------------------- -- Description: Check that SDL is able to resume HMI l...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP", "vrp_coke") RegisterNetEvent('vrp_coke:check') AddEventHandler('vrp_coke:check', function() local _source = source local user_id = vRP.getUserId({sourc...
๏ปฟlocal spam = {} local zaman = {} local spamkapatsure = 700 function komutkullandi( commandName ) if getElementData(source, "komutkullanimikapat") == false or getElementData(source, "komutkullanimikapat") == 0 then spam[source] = tonumber(spam[source] or 0) + 1 if spam[source] >= 9 then local playerName = getPlay...
require("moonsc").import_tags() -- The child process will return success if its var1 is set to 1, -- failure otherwise. For this test we try passing in var1 by param -- and by namelist and check that we either get two successes or two -- failures. This test will fail schema validation due to multiple -- declarations ...
require("runtime-core/src/helpers/renderSlot") require("runtime-core/src/h") require("@vue/shared") describe('renderSlot', function() mockWarn() it('should render slot', function() local child = nil local vnode = renderSlot({default=function() {child = h('child')} end }, 'default') expect...
P3D = {} P3D.BlankHeader = "P3D\255\012\000\000\000\012\000\000\000" P3D.Identifiers = { ATC = 0x3000602, Anim = 0x3F0000C, Anim_Coll = 0x3F00008, Anim_Dyna_Phys = 0x3F0000E, Anim_Dyna_Phys_Wrapper = 0x3F0000F, Anim_Obj_Wrapper = 0x3F00010, Animated_Object = 0x20001, Animated_Object_Animation = 0x20002, Animat...
--- GENERATED CODE - DO NOT MODIFY -- Amazon Simple Notification Service (sns-2010-03-31) local M = {} M.metadata = { api_version = "2010-03-31", json_version = "", protocol = "query", checksum_format = "", endpoint_prefix = "sns", service_abbreviation = "Amazon SNS", service_full_name = "Amazon Simple Notific...
package.path = "../lua/?.lua;?.lua;;" local utf8 = require "utf8" local corpus_compress = require "corpus_compress" local corpus_derive = require "corpus_derive" --------------------- -- testing local test_runs = 1000 local test_size_range = {30, 400} local test_files = { --plain language "australian", "french", "...
-- Adds -d as a debug suffix rule("debug_suffix") on_load(function (target) if target:kind() ~= "binary" then target:set("basename", target:basename() .. "-d") end end)
local M = {} M.reload = function() require("plenary.reload").reload_module("refactoring") end return M
dofile("sys/lua/utf8.lua")--ไฝฟ็”จไธญๆ–‡่ฝฌ็  parse("mp_infammo 1")--ๆ— ๅฐฝ hero={0,0,0,0,0,0,0} boss={0,0,0,0} spy={0,0,0,0} choose={0,0,0,0}--็ง็ฑป้€‰ๆ‹ฉ fix={0,0,0,0} player_num={} num=0 if_death=0--ๆญปไบกๅˆคๅฎš death_num=0 sleep_f=0 --------------------------------------------------- function equip_boss(who,n_choose)--ๆญฆๅ™จ็ป™ไบˆ if(n_choose==1...
function onUpdate(elapsed) if curStep == 272 or curStep == 276 songPos = getSongPosition() noteTweenAngle('A',4 , 360 , 0.25, linear); noteTweenAngle('B',5 , 360 , 0.25, linear); noteTweenAngle('C',6 , 360 , 0.25, linear); noteTweenAngle('D',7 , 360 , 0.25, linear); -- oppt notespin noteTweenAngle('E',0 , 360 ...
local Command = VH_CommandLib.Command:new("Slay", VH_CommandLib.UserTypes.Admin, "Kills the player(s).", "") Command:addArg(VH_CommandLib.ArgTypes.Plrs, {required = true}) Command:addAlias({Prefix = "!", Alias = {"kill", "slay"}}) Command.Callback = function(Sender, Alias, Targets) for _, ply in ipairs(Targets) do ...
-- -*- coding: utf-8 -*- local record_response = require "modules.log_response" local funcall = record_response:GenerateResponseBody()
return { ping = { ping = "pinging....", pong = "pong ``{{arg1}}ms``", description = "shows latency information" }, help = { embedTitle = "Help for Tiger 2.0", embedDescription = "Hello! I'm Tiger, a bot written in Lua with the Discordia library.\nUse the reaction butt...
--[[ โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆ ...
local qc = require 'Q/UTILS/lua/q_core' local ffi = require 'Q/UTILS/lua/q_ffi' local Q = require 'Q' -- local dbg = require 'Q/UTILS/lua/debugger' local qc = require 'Q/UTILS/lua/q_core' local filenm = arg[1] local Column = require 'Q/RUNTIME/COLUMN/code/lua/Column' local col = Column{field_type='I4', filename=fi...
pc.checkedBalance = true
pac.OwnerNames = { "self", "viewmodel", "hands", "active vehicle", "active weapon", "world", } local function find_ent(ent, str) return pac.StringFind(ent:GetClass(), str) or pac.StringFind(ent:GetClass(), str, true) or (ent.GetName and pac.StringFind(ent:GetName(), str)) or (ent.GetName and pac.String...
-------------------------------- -- @module BoneData -- @extend BaseData -- @parent_module ccs ---@class ccs.BoneData:ccs.BaseData local BoneData = {} ccs.BoneData = BoneData -------------------------------- --- ---@param index number ---@return ccs.DisplayData function BoneData:getDisplayData(index) end ---------...
local ffi = require("ffi") local base = require("rider.base") local C = ffi.C local ffi_cast = ffi.cast local ffi_str = ffi.string local ffi_new = ffi.new local get_string_buf = base.get_string_buf local FFI_OK = base.FFI_OK local get_context_handle = base.get_context_handle local registry = debug.getregistry() local...
local HideNSeek local BORDER_NODE_NAME = "hidenseek:border" -- TODO: use Lua Voxel Manipulator local function safe_set_border_node(pos) local node = minetest.get_node(pos) if node.name == "air" then minetest.set_node(pos, { name = BORDER_NODE_NAME } ) end end local function safe_unset_border_node(pos) l...
-- maps.lua local map = vim.api.nvim_set_keymap -- map the leader key map('n', '<Space>', '', {}) vim.g.mapleader = ' ' -- 'vim.g' sets global variables options = { noremap = true } map('n', '<leader><esc>', ':nohlsearch<cr>', options) map('n', '<leader>n', ':bnext<cr>', options) map('n', '<leader>p', ':bprev<cr>'...
local o = vim.g.onedark_color_overrides or {} local colors = { red = o.red or { gui = '#E06C75', cterm = '204', cterm16 = '1' }, dark_red = o.dark_red or { gui = '#BE5046', cterm = '196', cterm16 = '9' }, green = o.green or { gui = '#98C379', cterm = '114',...
function lolzz(fibu, n, i) return ((i%n)==0) and io.write(fibu.."zz") end function fizz(i) return lolzz("Fi", 3, i) end function buzz(i) return lolzz("Bu", 5, i) end function test(a, b) return a or b end function fizzbuzz(i) return test(fizz(i), buzz(i)) or io.write(i) end for i = 1, 100 do fizzbuzz(i) io.write('...
-- Tests: -- info() -- exists() -- index() -- get() -- delete() -- mget() -- -- Importing modules local util = require "lib.util" -- Setting up environment local _ENV = lunit.TEST_CASE "tests.integration.BasicTest" function test() local dataset_1 = util.subarr(dataset, 1, math.floor(#dataset/2)...
--- A simple wrapper around SendNUIMessage that you can use to --- dispatch actions to the React frame. --- ---@param action string The action you wish to target ---@param data any The data you wish to send along with this action function SendReactMessage(action, data) SendNUIMessage({ action = action, data =...
local sp = require 'bee.subprocess' local nonil = require 'without-check-nil' local client = require 'provider.client' local platform = require 'bee.platform' local completion = require 'provider.completion' local m = {} local function testFileEvents(initer) initer.fileOperations = { di...
-- debug function DumpComponent( comp ) for name,value in pairs(comp) do if type(value) == "function" then -- local info = debug.getinfo(value,"LnS") -- print(string.format(" %s = function - %s", name, info.source..":"..tostring(info.linedefined))) else if value and type(value) == "table" and value....
local label_text= false return Def.ActorFrame { LoadFont("Common Normal") .. { Text=GetTimingDifficulty(); AltText=""; InitCommand=cmd(horizalign,left;zoom,0.675); OnCommand= function(self) label_text= self self:shadowlength(1):settextf(Screen.String("TimingDifficulty"), ""); end, }; LoadFont("Common...
QBCore.Commands.Add("fix", "Repair your vehicle (Admin Only)", {}, false, function(source, args) TriggerClientEvent('iens:repaira', source) TriggerClientEvent('vehiclemod:client:fixEverything', source) end, "admin") QBCore.Functions.CreateUseableItem("repairkit", function(source, item) local Player = QBCor...
return { source = { type = 'dist', location = 'https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz', sha256sum = '823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86' }, build = { type = 'gnu', }, install = { l...
-- acid v0.0.1 -- ? -- -- llllllll.co/t/? -- -- -- -- โ–ผ instructions below โ–ผ -- -- ? INSTRUMENTS={ "chord", "lead", "bass", "kick", "snare", "clap", "hat", "reverb", } CHORD_ATTR={"mod1","mod2","attack","1","2","3","4"} ACID_ATTR={"n","k","mod1","mod2","note","duration","amp"} DRUMS_ATTR={"n","k","w...
-- function resetLayout() -- local allScreens = hs.screen.allScreens() -- -- if #allScreens == 3 then -- local laptopScreen = allScreens[1] -- local bigLtScreen = allScreens[2] -- local bigRtScreen = allScreens[3] -- local layoutsTop = hs.geometry.rect(0, 0, 1, 0.66) -- local layoutsRtLow = hs.geometry.rect(...
return function(on_attach) return { filetypes = {"typescript", "javascript"}, on_attach = function(client, bufnr) on_attach(client, bufnr) -- tsserver, stop messing with prettier da fuck! client.resolved_capabilities.document_formatting = false require...
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file ------------------------------------------------------------ -- base58 tests local base58 = require "plc.base58" local function base58test() assert(base58.encode('\x01') == '2') assert(base58.encode('\x00\x01') == '12') assert(base58.encode('') == '') ass...
local root = root local config = config local awful = require("awful") module("jweslley/tools") function screenshot() awful.util.spawn("screenshot", false) end function lock_screen() awful.util.spawn("xscreensaver-command -lock") end function terminal() awful.spawn(config.terminal) end function promptbox(...
PCM = { RequestId = 0x7e0, ResponseId = 0x7e8, ReadDataByIdentifier { ["f190"] = ascii("SALGA2EV9HA298784"), ["f124"] = ascii("HPLA-12345-AB"), ["f123"] = readf123(), ["fabc"] = nil, ["1e23"] = "231132" }, -- Alternative 1: Raw { ["22 F1 90...
--- === MenuHammer === --- --- Menuing system inspired by Spacemacs --- ---------------------------------------------------------------------------------------------------- ---------------------------------- Menuhammer Definition ------------------------------------------- ---------------------------------------------...
-- See LICENSE for terms local pairs, tostring, type, table, tonumber = pairs, tostring, type, table, tonumber local Translate = ChoGGi.ComFuncs.Translate local IsValidXWin = ChoGGi.ComFuncs.IsValidXWin local TableConcat = ChoGGi.ComFuncs.TableConcat local IsShiftPressed = ChoGGi.ComFuncs.IsShiftPressed local Strin...
local skynet = require "skynet" local function debug_call(addr, cmd, ...) return skynet.call(addr, "debug", cmd, ...) end return function() local list = {} local all = skynet.call(".launcher", "lua", "LIST") for addr, desc in pairs(all) do addr = string.gsub(addr, ':', "0x") local me...
local GameObject = require('modules/GameObject') local Enemy = class('Enemy', GameObject) local EffectDeath = require('modules/EffectDeath') local EffectSpawn = require('modules/EffectSpawn') function Enemy:initialize( options ) GameObject.initialize( self, options ) self.speed = 1 self.health = 1 se...
yatm_oku:require("nodes/computer.lua") yatm_oku:require("nodes/floppy_disk_drive.lua") yatm_oku:require("nodes/micro_controller.lua")