content
stringlengths
5
1.05M
--------------------------------------------------------------- -- Table.lua: Extra table functions for various uses --------------------------------------------------------------- -- These table functions are used to perform special operations -- that are not natively supported. -------------------------------------...
-- auto created by Medusa editor DO NOT motify -- created time 2021-09-15 02:57:45 local data = { width = 10, height = 10, layers = 1, walkableNodes = { [0] = {id = 0,x = 0,y = 0,z = 0,walkType = 1,buildingType = 0,res = 'Assets/Medusa/Floor/地面.prefab',buildingRes = '',eventId = 0,}, [1] = {id = 1,x = 1,y = 0,z = 0,wal...
local playsession = { {"mewmew", {277687}}, {"coucounoir", {98824}}, {"beranabus", {101515}}, {"Dofolo", {6190625}}, {"skudd3r", {22797}}, {"NewEpoch", {157940}}, {"Natty", {16176}}, {"shlak", {186500}}, {"Edison_EF", {20698}}, {"AbsoluteZeroIs0K", {168326}}, {"srbrian", {4717591}}, {"tuna_sandwich", {89058...
--[[ Example on how to relax lattice vectors using the LBFGS algorithm. This example can take any geometry and will relax the cell vectors according to the siesta input options: - MD.MaxStressTol - MD.MaxDispl This example is prepared to easily create a combined relaxation of several LBFGS algorithms simultaneou...
local http = require "http" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" description = [[ Requests for specific Log4j vuln. The script will follow up to 5 HTTP redirects, using the default rules in the http library. ]] --- --@args http-log4shell.url The url to...
lfs = lfs or require('lfs') local FileList = { --'D:/UEProject/TestProject/PersistentDownloadDir/DLC/NonCooked_LuaScript.pak', 'D:/GameData/ClassicRPG/WindowsNoEditor/FullAsset/20011103/NonCooked_LuaScript.pak', 'D:/GameData/ClassicRPG/WindowsNoEditor/FullAsset/20011104/NonCooked_LuaScript.pak', } print('----')...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local Assets = require(common:WaitForChild("Assets")) local by = require(common.util:WaitForChild("by")) local products = require(common.util:WaitForChild("compileSubmodulesToArray"))(script, true) l...
one_handed_ryyk_blade = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/melee/sword/sword_blade_ryyk.iff", craftingValues = { {"mindamage",18,33,0}, {"maxdamage",98,132,0}, {"attackspeed",4.3,3,1}, {"woundchance",15,29,0}, {"hitpoints",750,1500,0}, {...
local scalpello = {} local S = minetest.get_translator("scalpello") scalpello.ROTATE_FACE = 1 scalpello.ROTATE_AXIS = 2 scalpello.disallow = function(pos, node, user, mode, new_param2) return false end scalpello.rotate_simple = function(pos, node, user, mode, new_param2) if mode ~= scalpello.ROTATE_FACE then...
C_GuildInfo = {} ---@return boolean canEditOfficerNote ---[Documentation](https://wow.gamepedia.com/API_C_GuildInfo.CanEditOfficerNote) function C_GuildInfo.CanEditOfficerNote() end ---@return boolean canSpeakInGuildChat ---[Documentation](https://wow.gamepedia.com/API_C_GuildInfo.CanSpeakInGuildChat) function C_Guil...
--[[ ---- SettingsLib About | SettingsLib is a general Settings Library for every exploit-related use-case. Project Link | https://github.com/YieldingExploiter/Scripts/blob/main/src/glib/settings/Script.lua Documentation | https://github.com/YieldingExploiter/Scripts/blob/main/src/glib/settings/docs/API.md Supported En...
--Aperture Science's Jetboots, by madiik plyr = game.Players.LocalPlayer char = plyr.Character mouse = plyr:GetMouse() isMouseButton1Down = false t = Instance.new("HopperBin", plyr.Backpack) t.Name = "Aperture Science" limit = 0 limit2 = 0 boot = Instance.new("Part", char) boot.FormFactor = "Custom" boot.Size = Vector...
local t = {08,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,08,49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48,04,56,62,00,81,49,31,73,55,79,14,29,93,71,40,67,53,88,30,03,49,13,36,65,52,70,95,23,04,60,11,42,69,24,68,56,01,32,56,71,37,02,36,91,22,31,16,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80,24,47,32,...
require "Cocos2d" require "Cocos2dConstants" cclog = function(...) print(string.format(...)) end -- for CCLuaEngine traceback function __G__TRACKBACK__(msg) cclog("----------------------------------------") cclog("LUA ERROR: " .. tostring(msg) .. "\n") cclog(debug.traceback()) cclog("----------------------------...
require('impatient') require('init')
-- Particle Extension template local M = {} function M.new(instance) if not instance then error("ERROR: Expected display object") end local parent = instance.parent local name, tiledType = instance.name, instance.type local particle = require("particles." .. name) local emitter = display.newEmitter(particle...
util.AddNetworkString("ChatPrintTotor") local meta = {} meta.__index = meta function meta:Add(string, color) local t = {} t.text = string t.color = color or self.default_color or color_white table.insert(self.msgs, t) return self end function meta:NetConstructMsg() net.Start("ChatPrintTotor") f...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. cape8 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Golden Cape", directObjectTemplate = "object/tangible/tcg/series7/wearable_gold_cape.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLoo...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Microphone" local MODEL = Model("models/jaanus/wiretool/wiretool_range.mdl") function ENT:Initialize() self:SetModel( MODEL ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ...
local input_path = (...):match('(.-)[^%.]+$') .. '.' local Input = {} local self = {} Input.__index = Input -- Local references local pairs = pairs local assert = assert local next = next local setmetatable = setmetatable Input.all_keys = { " ", "return", "escape", "backspace", "tab", "space", "!", "\"",...
-- See LICENSE for terms local OnMsg = OnMsg local IsAboveHeightLimit = ChoGGi.ComFuncs.IsAboveHeightLimit -- we don't add shortcuts and ain't supposed to drink no booze OnMsg.ShortcutsReloaded = ChoGGi.ComFuncs.Rebuildshortcuts -- so we at least have keys when it happens (what is "it"?) OnMsg.ReloadLua = ChoGGi.ComF...
local actions = require("telescope.actions") require("telescope").setup({ defaults = { file_ignore_patterns = { ".git/", ".tox/", "node_modules/", }, mappings = { i = { ["<C-i>"] = actions.select_horizontal, ["<C-s>"] = actions.select_vertical, ["<esc>"] = ...
if Server or Client then kContaminationCooldown = kContaminationCooldown * 2 kContaminationLifeSpan = kContaminationLifeSpan * 2 kContaminationBileInterval = kContaminationBileInterval * 2 kWhipSupply = kWhipSupply * 2 ARC.kCombatMoveSpeed = ARC.kCombatMoveSpeed * 1.1 ARC.kMoveSpeed = ARC.kMoveSpeed * 1.1 -- kW...
local BaseService = require "kong.cli.services.base_service" local IO = require "kong.tools.io" local logger = require "kong.cli.utils.logger" local ssl = require "kong.cli.utils.ssl" local constants = require "kong.constants" local syslog = require "kong.tools.syslog" local socket = require "socket" local Nginx = Bas...
--[[ Desc: Input handler, receive and handle input messages from input manager Author: SerDing Since: 2018-04-06 Alter: 2018-04-06 ]] ---@class Engine.Input.InputHandler local _InputHandler = require("core.class")() function _InputHandler:Ctor() end function _InputHandler:HandleAction(action, state) end functio...
local addonName, addon, _ = ... addon.frame = CreateFrame('Frame') _G[addonName] = addon -- GLOBALS: _G, UIParent, PetBattleFrame, C_PetJournal, C_PetBattles, GameTooltip, ITEM_QUALITY_COLORS, PET_TYPE_SUFFIX, ADD_ANOTHER, GREEN_FONT_COLOR_CODE, YELLOW_FONT_COLOR_CODE, GRAY_FONT_COLOR, NORMAL_FONT_COLOR, UIDROPDOWNMEN...
local AddonName, AddonTable = ... -- Shadowlands Mounts. AddonTable.mounts = { }
-- test input pos = input.getMousePosition() down = input.getMouseButton('right') print('Mouse Pos: ' .. pos) print('Down: ' .. (down and 'true' or 'false'))
-- Water example. -- This sample demonstrates: -- - Creating a large plane to represent a water body for rendering -- - Setting up a second camera to render reflections on the water surface require "LuaScripts/Utilities/Sample" local reflectionCameraNode = nil local waterNode = nil local waterPlane = Plane() ...
local const = require"lacord.const" local setm = setmetatable local req = require local err = error local getm = getmetatable local _ENV = {} --luacheck: ignore 111 local jo_mt local ja_mt local virtual_filenames = setm({}, {__mode = "k"}) local function virtualname(self) return virtual_filenames[self] end local f...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] g_shared_cards = {} g_pokecards_node = nil PokeCardState = { ["NONE"] = 0, ["NORMAL"] = 1, ["PICKED"] = 2, ["PLAYED"] = 3 } -- 扑克牌的取值对照 PokeCardValue = { ["NONE"] = 0, -- 无效 ["THREE"] = 3, -- 3 ["FOUR"] = 4, -- 4 ["FIVE"] = 5, -- 5 ["SIX"] = 6, ...
function HandleMeCommand( Split, Player ) if not Split[2] then SendMessage( Player, "Usage: " .. Split[1] .. " <action ...>" ) return true else cRoot:Get():BroadcastChat( "* " .. Player:GetName() .. " " .. table.concat( Split , " " , 2 ) ) return true end end
object_tangible_loot_creature_loot_collections_col_resource_harvest_hide = object_tangible_loot_creature_loot_collections_shared_col_resource_harvest_hide:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_col_resource_harvest_hide, "object/tangible/loot/creature/loot/collections/col_r...
---------------------------------------------------------------------------------------------------- -- This class is a factory for generating TileObjectRenderer. -- -- @author Makoto -- @release V3.0.0 ---------------------------------------------------------------------------------------------------- -- import local...
local luaSocketLib = require('socket') local logger = require('jls.lang.logger') local Promise = require('jls.lang.Promise') local StreamHandler = require('jls.io.streams.StreamHandler') local Selector = require('jls.net.Selector-socket') return require('jls.lang.class').create('jls.net.Tcp-socket', function(t...
object_mobile_hologram_shared_tauntaun = SharedCreatureObjectTemplate:new { clientTemplateFileName = "object/mobile/hologram/shared_tauntaun.iff" } ObjectTemplates:addClientTemplate(object_mobile_hologram_shared_tauntaun, "object/mobile/hologram/shared_tauntaun.iff") object_mobile_hologram_shared_atat = SharedCrea...
local vfun = vim.fn local tablex = require('tablex') local defaults = { DiagnosticSignError = { text = '', texthl = 'DiagnosticError' }, DiagnosticSignWarn = { text = '‼', texthl = 'DiagnosticWarn' }, DiagnosticSignInfo = { text = 'ℹ', texthl = 'DiagnosticInfo' }, DiagnosticSignHint = { text = '',...
--- Lua bindings for curses module ("curses", package.seeall) require "curses_c" -- These Lua functions detect number of args, like Unified Funcs in Perl Curses -- see http://pjb.com.au/comp/lua/lcurses.html -- see http://search.cpan.org/perldoc?Curses function addch (...) if #{...} == 3 then return curses.std...
return require('lualine').setup({ options = { theme = custom_onedark, section_separators = { '', '' }, component_separators = { '', '' }, }, sections = { lualine_b = { 'branch', { 'diff', diff_color = { added = { fg = '#98c379' }, modified = { fg = '#e5c07b' }, ...
Response = class() -- https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6 local STATUS = { -- 1xx Informational [100] = "Continue", [101] = "Switching Protocols", -- 2xx Success [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [20...
local lock_PostPlayerDraw = false local function lock() lock_PostPlayerDraw = true end local function unlock() lock_PostPlayerDraw = false end hook.Add('PreDrawOpaqueRenderables', 'Slib.Animator.DrawController', function() if lock_PostPlayerDraw then return end for i = 1, #slib.Storage.ActiveAnimations do local ...
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. ------------------...
local F, C = unpack(select(2, ...)) local CHAT = F:GetModule('Chat') local strfind, strmatch, strsub, gsub = string.find, string.match, string.sub, string.gsub local strsplit, strlen = string.split, string.len local foundurl = false local function convertLink(text, value) return '|Hurl:'..tostring(value)..'|h'..C....
--[[ Copyright 2018 American Megatrends Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
local envs = { } for i = 1, 12 do -- fallback to the global environment for io and math envs[i] = setmetatable({ count = 0, n = i }, { __index = _G }) end local code = [[ io.write(("% 4d"):format(n)) if n ~= 1 then count = count + 1 n = (n % 2 == 1) and 3 * n + 1 or math.floor(n / 2) end ]] while true...
data:extend({ -- Item { type = "item", name = "5d-welder", icon = "__5dim_module__/graphics/icon/5dim_icon_welder_.png", flags = {"goes-to-quickbar"}, icon_size = 32, subgroup = "welder", order = "a", place_result = "5d-welder", stack_size = 50 }, --Recipe { type = "recipe...
--[[ made by tyoeer ----constructor: Pool(), Pool:new() ----functions :has(v) returns wether or not v is in the pool :addAtTop(v) adds v at the top of the pool returns true upon succes, false if v already exists :addAtBottom(v) adds v at the top of the pool returns true upon ...
local res = require "res.res" local util = require "res.util" local LocalizationMgr = require "res.LocalizationMgr" local StateLoading = 1 local StateUsing = 2 local StateFree = 3 -------------------------------------------------------- --- res之上是Pool,这2者之上是loader --- 目的是模拟一个同步的机制 --- future = loader.makeXxx(assetinfo)...
local Helper = require('spec.helper.helper') local Promise = require('promise') local dummy = { dummy = 'dummy' } -- we fulfill or reject with this when we don't intend to test against it local sentinel = { sentinel = 'sentinel' } local other = { other = 'other' } -- see https://developer.mozilla.org/en-US/docs/Web/J...
local depots_tab = {} local gui = require("__flib__.gui") local string_find = string.find local string_gsub = string.gsub local string_len = string.len gui.add_handlers{ depots = { depot_button = { on_gui_click = function(e) local _,_,name = string_find(e.element.name, "^ltnm_depot_button_(.*)$")...
local convert = (require "Q/OPERATORS/F1S1OPF2/lua/_f1s1opf2").convert local promote = require "Q/UTILS/lua/promote" local T = {} local function vvpromote(x, y) -- TODO P1 to be written assert(x and type(x) == "lVector") assert(y and type(y) == "lVector") if ( x:fldtype() == y:fldtype() ) then return x, ...
NepHook:Post(ChatManager, "init", function(self) self._player_steam_id = {} self._player_steam_id[1] = "0" self._player_steam_id[2] = "0" self._player_steam_id[3] = "0" self._player_steam_id[4] = "0" end) NepHook:Post(ChatManager, "receive_message_by_peer", function(self, channel_id, peer, message) if not self._...
SetScenceMap(-2, 1, 29, 22, 0);--by fanyu|明教地道出现,贴图变化。场景12-编号12 SetScenceMap(-2, 1, 29, 21, 2898);--by fanyu|明教地道出现,贴图变化。场景12-编号12 jyx2_FixMapObject("明教地道入口出现",1); jyx2_ReplaceSceneObject("", "Dynamic/didaoEntrance", "1"); jyx2_ReplaceSceneObject("", "Dynamic/Leave2", "1"); ModifyEvent(-2, -2, -2, -2, -1, -1, -1, -1,...
local materials = trinium.materials local S = materials.S materials.vanilla_elements = {} local V = materials.vanilla_elements materials.materials = {} local M = materials.materials -- Elements do V.hydrogen = materials.add_element("hydrogen", { formula = "H", melting_point = 14, color = {0, 0, 150}, }) V.c...
local M = {} M.url = 'stevearc/dressing.nvim' M.description = 'Use telescope for vim.ui' M.requires = { 'telescope', } M.after = { 'telescope', } -- ways to activate this M.activation = { wanted_by = { 'telescope' } } local au = require('au') function M.config() vim.cmd [[hi link FloatBorder Normal]]...
return { PlaceObj("ModItemOptionToggle", { "name", "SkipGrid0", "DisplayName", table.concat(T(9428, "Skip") .. " " .. T{11629, "GRID <i>", i = 0}), "Help", T(302535920011494, "Grids with production+consumption = 0 (doesn't skip grids that aren't producing due to throttle)."), "DefaultValue", true, }), PlaceO...
----------------------------------- -- Area: Bastok Mines -- NPC: Door -- Involved in Quest: A Thief in Norg!? -- !pos 70 7 2 234 ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if (...
Config = {} Config.Currency = '€' -- Currency Symbol Config.PricePerLiter = 2 -- Price per liter Config.TimeoutPerLiter = 250 -- Time to fill a liter Config.Classes = { [0] = 120, [1] = 120, [2] = 160, [3] = 120, [4] = 120, [5] = 120, [6] = 120, [7] = 120, [8] = 60, [9] = 150, ...
-- https://en.wikipedia.org/wiki/Barnsley_fern function love.load() love.window.setMode( 600, 600, {resizable=false} ); love.graphics.setPointSize(1); width = love.graphics.getWidth( ); height = love.graphics.getHeight( ); all_points = {}; x = 0; y = 0; end function love.draw() -- Draw ...
Module = {}; Module.RandomState = {}; Module.module_name = "random"; function Module.RandomState:new(seed) local o = {}; setmetatable(o, self); self.__index = self; self.state = lstd_create_random_state(); if seed ~= nil then lstd_random_state_set_seed(self.state, seed); end...
// ============================================================================================ // /* * Wildfire Servers - Portal RP - Base Addon * File description: GLaDoS shared script file * Copyright (C) 2022 KiwifruitDev * Licensed under the MIT License. */ // ================================================...
-- gdprutil.lua local M = {} M.name = "gdprutil" M.version = "0.1" M.verbose = false -- References: -- https://en.wikipedia.org/wiki/Member_state_of_the_European_Union -- https://www.iso.org/iso-3166-country-codes.html -- https://en.wikipedia.org/wiki/ISO_3166-1 -- https://en.wikipedia.org/wiki/General_D...
local BUFF = ix.buff.meta or {} BUFF.__index = BUFF BUFF.uniqueID = "undefined" BUFF.time = 30 -- сколько секунд длится бафф BUFF.time_max = 60 BUFF.permanently = false -- постоянный ли бафф, пока не будет удален вручную. BUFF.isOnlyServer = false -- отправлять бафф на клиента BUFF.isAdditive = true -- Суммировать ба...
b = {} -- Do a file relative to the current mod. b.dofile = function(path) return dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/" .. path) end b.DODIR_INIT = "init.lua" b.dodir = function(path, recursive) local gpath = minetest.get_modpath(minetest.get_current_modname()) .. "/" .. path local na...
local addonName, ns = ... -- Colors oUF.colors.power = { ["MANA"] = {26/255, 160/255, 255/255}, ["RAGE"] = {255/255, 26/255, 48/255}, ["FOCUS"] = {255/255, 128/255, 64/255}, ["ENERGY"] = {255/255, 225/255, 26/255}, ["HAPPINESS"] = {0.00, 1.00, 1.00}, ["RUNES"] = {0.50, 0.50, 0.50}, ["RUNIC_POWER"] = ...
local playerModule = require "module.playerModule" local heroModule = require "module.HeroModule" local HeroLevelup = require "hero.HeroLevelup" local answerModule = require "module.answerModule" local ChatManager = require 'module.ChatModule' local MapConfig = require "config.MapConfig" local openLevel = require "conf...
local Constants = import("./constants") local Reader = import("./reader") local wasm = {} local WASM_ERROR_FORMAT = "[%s] - %s" function wasm.error(errorCode, message, ...) error(WASM_ERROR_FORMAT:format(errorCode, message:format(...))) end Reader.error = wasm.error function wasm.module(binary) local m...
local luv = require 'luv' local unistd = require 'posix.unistd' local stdin = luv.new_tty(0, true) print(luv.tty_get_winsize(stdin)) local h = io.popen '/bin/which lua' local lua = h:read '*l' h:close() local timer = luv.new_timer() timer:start(1000, 0, function() unistd.exec(lua, {'/home/cpup/code/cc-termu/test.lua...
-- NewPolicyEffects -------------------------------------------------------------- -------------------------------------------------------------------------New Policy Effects----------------------------------------------------------------------- -- Militarism reduce city resistance time function OnCityCaptured(oldP...
ITEM.name = "Repair Tools" ITEM.description = "repairToolsDesc" ITEM.price = 35 ITEM.model = "models/props_lab/box01a.mdl"
local tablex = require 'pl.tablex' local utils = require ('pl.utils') local L = utils.string_lambda local test = require('pl.test') -- bring tablex funtions into global namespace utils.import(tablex) local asserteq = test.asserteq local cmp = deepcompare function asserteq_no_order (x,y) if not compare_no_order(x,...
music = "tutorial.ogg" stage = -2 function start() end function stop() end loops = 0 function update(step) if (loops == 1) then loops = loops + 1 if (get_use_dpad() or get_platform() == "pc" or get_platform() == "mac" or get_platform() == "linux") then anotherDoDialogue("Welcome to the tutorial...\nThis tu...
local M = {} function M.collect(self, opts) local pattern = opts.pattern if not pattern then pattern = vim.fn.input("Pattern: ") end if not pattern or pattern == "" then return {}, nil, self.errors.skip_empty_pattern end local cmd = { "gh", "api", "-X", "GET", "search/repositor...
class("ExtraProtoResultCommand", pm.SimpleCommand).execute = function (slot0, slot1) if slot1:getBody().result == 9998 then getProxy(WorldProxy).isProtoLock = true pg.TipsMgr.GetInstance():ShowTips(i18n("world_close")) if getProxy(ContextProxy).getCurrentContext(slot3):retriveLastChild() and slot5 ~= slot4 the...
--[[ Copyright © 2020, Sjshovan (LoTekkie) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
-- Clear items in the craft inventory local ui = unified_inventory -- Backup to inject code unified_inventory_plus.craft_clear = unified_inventory.pages["craft"].get_formspec local function onload() unified_inventory.pages["craft"] = { get_formspec = function(player, perplayer_formspec) local formspecy = perplaye...
local Station = require('modutram.Station') local Slot = require('modutram.slot.Slot') local t = require('modutram.types') local defaults = require("modutram.config.defaults") describe('Station', function () describe('bindToResults', function () it('binds empty station to results', function () ...
require("moonsc").import_tags() -- Test that the state machine is put into the configuration specified -- by the initial element, without regard to any other defaults. -- we should start off in s2p111 and s2p122. the atomic states we should -- not enter all have immediate transitions to failure in them return _scxm...
vim.opt.cursorline = true
require("math") package.path = package.path .. ";../../Scripts/?.lua" require("GLFWKeys") require("vec3") time = 0 rotationConstant = 30 function init() end function update(delta) time = time + delta if keyboard_manager.pollKey(keys.w) == true then rotationConstant = 1000 end if keyboard_mana...
local api = require("fromage") local client = api() coroutine.wrap(function() client.connect("Username#0000", "password") if client.isConnected() then print("Account's images:") local images, err = client.getAccountImages(0) -- Gets all images hosted by the account if images then p(images) else print...
--===================================================================-- -- dmc_touchmanager.lua -- -- by David McCuskey -- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_touchmanager.lua --===================================================================-- --[[ Copyright (C) 2012 David McCuskey. All ...
#!/usr/bin/env th -- Copyright (C) 2016 Gernot Riegler -- Institute for Computer Graphics and Vision (ICG) -- Graz University of Technology (TU GRAZ) -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- 1. Redistributio...
function amov_to_actor(a1, a2, spd, off_x, off_y) off_x = off_x or 0 off_y = off_y or 0 if a1 and a2 then amov_to_point(a1, spd, a2.x+off_x, a2.y+off_y) end end function amov_to_point(a, spd, x, y) local ang = atan2(x - a.x, y - a.y) a.ax, a.ay = spd*cos(ang), spd*sin(ang) end -- returns true ...
local function Radio(name) local base = Object(name) local objectType = "Radio" base.width = 8 base.bgColor = theme.listBG base.fgColor = theme.listFG base:setZIndex(5) local list = {} local itemSelectedBG = theme.selectionBG local itemSelectedFG = theme.selectionFG local boxSel...
Tor = {} Tor.socks = {} Tor.socks.server = '127.0.0.1' Tor.socks.port = 9050 Tor.socks.level = '5' Tor.executable = 'tor.exe' Tor.checkurl = 'http://check.torproject.org/' Tor.proxyserver = 'socks'..Tor.socks.level..'://'..Tor.socks.server..':'..Tor.socks.port Tor.msgenabled = 'Tor Proxy Enabled.\n\nChromium plugin s...
local class = require 'lib.middleclass' local media = require 'media' local Entity = require 'entities.entity' local Debris = require 'entities.debris' local Pickup = class('Pickup', Entity) Pickup.static.updateOrder = 2 local size = 23 function Pickup:initialize(map,world, l, t, img) Entity.initialize(self, wor...
--[[ item.lua A guild item slot button --]] local MODULE = ... local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')] local ItemSlot = Addon:NewClass('GuildItemSlot', 'Button', Addon.ItemSlot) ItemSlot.nextID = 0 ItemSlot.unused = {} --[[ Constructor ]]-- function ItemSlot:Create() local item = ...
AuctionatorConfigTooltipMixin = {} function AuctionatorConfigTooltipMixin:OnEnter() if self.tooltipText ~= nil then GameTooltip:SetOwner(self, "ANCHOR_LEFT") GameTooltip:SetText((self.tooltipTitleText or ""), 0.9, 1.0, 1.0) GameTooltip:AddLine(self.tooltipText, 0.5, 0.5, 1.0, 1) GameTooltip:Show() ...
Elona.GameObjects.Stack = { HasBeenStacked = function(entity, totalCount) return ("%s has been stacked. (Total:%s)") :format(entity, totalCount) end, }
-- Home Decor mod by VanessaE -- -- Mostly my own code, with bits and pieces lifted from Minetest's default -- lua files and from ironzorg's flowers mod. Many thanks to GloopMaster -- for helping me figure out the inventories used in the nightstands/dressers. -- -- The code for ovens, nightstands, refrigerators are ba...
local triggers = { '^/[Ll]ink', '^/[Gg]ruppi' } local link = load_data('link.json') local hide = load_data('hiddenlink.json') local function controllo(gruppo) local link = load_data('link.json') local hide = load_data('hiddenlink.json') if hide[tostring(gruppo)] == 'no' then return link[tostring(gruppo)] els...
return { image = function(cutscene) cutscene:text("* Kris check it out [image:party/susie/dark/t_pose]\n[wait:5]* I'm in the textbox", "surprise_smile", "susie") cutscene:text("* Get out of there!!!", "angrier", "ralsei") cutscene:text("* [wait:10][image:party/susie/dark/fell]", "smile", "su...
help([[CUDA (formerly Compute Unified Device Architecture) is a parallel computing platform and programming model created by NVIDIA and implemented by the graphics processing units (GPUs) that they produce. CUDA gives developers access to the virtual instruction set and memory of the parallel computational elements ...
SoundButton = {} SoundButton.new = function(x, y, width, height, init) local self = self or {} self.name = name self.Vx = x self.Vy = y self.Wx = x + width self.Wy = y + height self.width = width self.height = height self.muted = init self.inOn = love.graphics....
-- local crouched = false -- crouchKey = 19 -- Citizen.CreateThread( function() -- while true do -- Citizen.Wait(1) -- local ped = PlayerPedId() -- if (DoesEntityExist(ped) and not IsEntityDead(ped)) then -- DisableControlAction(0, crouchKey, true) -- if (not IsPauseMenuActive()) then -- ...
local bluesee = require "bluesee" -- Config service definition local config_service_uuid = bluesee.UUID.new('2de598db-ae66-4942-9106-490c3f5e5687') bluesee.set_display_name(config_service_uuid, 'SetWifiPoC') bluesee.set_display_category(config_service_uuid, bluesee.ui) local wifiSSID_uuid = bluesee.UUID.new('15bc7004...
--[[ @package GeanyPluginsLua @filename geany-docblokr/docblokr.lua @version 2.0 @author Díaz Urbaneja Víctor Eduardo Diex (diazvictor) <victor.vector008@gmail.com> @contributor Díaz Víctor aka (Máster Vitronic) <vitronic2@gmail.com> <mastervitronic@vitronic.com.ve> @contributor Telegram ...
return Def.Quad { InitCommand=function(self) self:FullScreen():diffuse(0,0,0,1) end, StartTransitioningCommand=function(self) self:linear(0.4):diffusealpha(0) end }
local async = require 'async' local server = async.tcp.listen({host='127.0.0.1', port=8483}, function(client) print('new connection:',client) client.ondata(function(data) print('received:',data) client.write(data) end) client.onend(function() print('client ended') end) client.onclos...