content
stringlengths
5
1.05M
--[[-- MAIN MENU STATE ---- Display the main menu. --]]-- local st = RunState.new() local mt = {__tostring = function() return 'RunState.menu' end} setmetatable(st, mt) local InputCommandEvent = getClass 'wyx.event.InputCommandEvent' local MenuUI = getClass 'wyx.ui.MenuUI' functio...
function love.conf(t) t.window.title = "Catan IO" t.console = true t.window.width = 600 t.window.height = 480 t.window.msaa = 8 t.window.resizable = true end
local s = require('say') s:set_namespace('ja') s:set("assertion.same.positive", "オブジェクトの内容が同一であることが期待されています。\n実際の値:\n%s\n期待されている値:\n%s") s:set("assertion.same.negative", "オブジェクトの内容が同一でないことが期待されています。\n実際の値:\n%s\n期待されていない値:\n%s") s:set("assertion.equals.positive", "オブジェクトが同一であることが期待されています。\n実際の値:\n%s\n期待されている値:\n%s") ...
local function ProNames(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text and (text:match("^وضع توحيد (.*)$") or text:match("^ضع توحيد (.*)$")) then if Manager(msg) then if DevAbs:get(DevProx.."Abs:Lock:ProNames"..msg.chat_id_) then local Txt = text:match("^وضع توحيد (.*)$") or ...
object_tangible_loot_creature_loot_collections_luxum_crystal = object_tangible_loot_creature_loot_collections_shared_luxum_crystal:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_luxum_crystal, "object/tangible/loot/creature/loot/collections/luxum_crystal.iff")
#! /usr/bin/env lua -- -- test.lua -- Copyright (C) 2020 romgrk <romgrk@arch> -- -- Distributed under terms of the MIT license. -- local export = require'fzy' local function print_table(tbl) if type(tbl) ~= 'table' then print(tbl) return end local result = '{ ' for k, v in pairs(tbl) do result = r...
-- Copyright 2004-present Facebook. All Rights Reserved. require('fb.luaunit') require 'cunn' require 'fbcunn' torch.setdefaulttensortype('torch.FloatTensor') local test = {} -- Let C = m-by-n and A = m-by-k -- Format is m, n, k, seqIter, batch, numHandles, numStreams local problemSize = { -- Sanity tests -- Trivia...
local LrFunctionContext = import 'LrFunctionContext' local LrBinding = import 'LrBinding' local LrDialogs = import 'LrDialogs' local LrView = import 'LrView' local LrTasks = import 'LrTasks' local LrLogger = import 'LrLogger' local LrProgressScope = import 'LrProgressScope' local LrFileUtils = import 'LrFileUtils' loca...
local on_attach = require("lsp/on_attach") require("null-ls").setup { sources = { -- diagnostics require("null-ls").builtins.diagnostics.eslint_d, -- formatters require("null-ls").builtins.formatting.eslint_d, require("null-ls").builtins.formatting.stylua, }, on_attach = on_attach, }
----------------------------------------- -- LOCALIZED GLOBAL VARIABLES ----------------------------------------- local ZGV = _G.ZGV if ZGV.Utils.GetFaction() ~= "DC" and not ZGV.CFG_LOAD_ALL_FACTIONS then return end ZGV._QuestDataDC = [[ Blood and the Crescent Moon=0022001 Basile's Invitation=0022002 Back-Al...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) AddCSLuaFile("bdon_config.lua") include('shared.lua') include('bdon_config.lua') --Network strings util.AddNetworkString("bdon:updateScreenEffect") --Mad at inconsitant namings? >:D util.AddNetworkString("bdn:setselectedbutton") util.AddNetworkString("bdn:winn...
--[[ luci-app-argon-config ]]-- module("luci.controller.argon-config", package.seeall) function index() if not nixio.fs.access('/www/luci-static/argon/css/cascade.css') then return end entry({"admin", "system", "argon-config"}, form("argon-config/configuration"), _("Argon Config"),90) end
geo_yoda = Creature:new { customName = "Yoda", socialGroup = "", faction = "", level = 291, chanceHit = 27.25, damageMin = 1800, damageMax = 3310, baseXp = 27849, baseHAM = 321000, baseHAMmax = 392000, armor = 3, resists = {90,90,90,90,90,90,90,90,-1}, meatType = "", meatAmount = 0, hideType = "", hideA...
--[[ find v1.20140607 Copyright (c) 2014, Kaivalya 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 t...
-- Copyright (C) 2018 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-vecmath. -- -- dromozoa-vecmath is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License...
----------------------------------- -- Area: Xarcabard -- NPC: qm3 (???) -- Involved in Quests: Atop the Highest Mountains (for Boreal Coeurl) -- !pos 580 -9 290 112 ----------------------------------- local ID = require("scripts/zones/Xarcabard/IDs") require("scripts/globals/keyitems") require("scripts/globals/settin...
object_mobile_dressed_meatlump_lieutenant_02 = object_mobile_shared_dressed_meatlump_lieutenant_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_lieutenant_02, "object/mobile/dressed_meatlump_lieutenant_02.iff")
--- @param x number --- @param y number --- @param z number --- @param text string function draw3DText(pos, text, options) options = options or { } local color = options.color or { r = 255, g = 255, b = 255, a = 255 } local scaleOption = options.size or 0.8 local camCoords = GetGameplayCamCoords() ...
OverworldLayoutMode = SurrogateItem:extend() function OverworldLayoutMode:init(isAlt) self.baseCode = "ow_layout" self.label = "Overworld Shuffle" self:initSuffix(isAlt) self:initCode() self:setCount(2) self:setState(0) end function OverworldLayoutMode:providesCode(code) if self.suffix =...
---- -- Auto-Join icon. -- -- Widget for an icon used in `AutoJoinButton`. -- -- **Source Code:** [https://github.com/dstmodders/mod-auto-join](https://github.com/dstmodders/mod-auto-join) -- -- @classmod widgets.Icon -- @see widgets.AutoJoinButton -- @see widgets.Indicator -- @see widgets.RejoinButton -- -- @author [D...
module 'apple' path = "../../frameworks/plugins/apple" headers = [[ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "cclua/xlua.h" #include "apple/Apple.h" ]] make_luacls = function (cppname) cppname = string.gsub(cppname, "^cclua::", "cclua.") cppname = string.gsub(cppn...
-- Globals cur_xpos_g = 0 cur_ypos_g = 0 fr_width_g = 75 fr_height_g = 20 -- Set to 1 for debug messages; Or use /beyond_debug beyond_debug = 0 -- Frame names & Hex color array beyond_f_array = {"IT", "IA", "IPT", "CT", "CA", "CPT", "AT", "AA", "APT", "PT", "MA", "PA", "MP", "PPT"} beyond_c_array = { "000011", ...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Converts between GPS coordinates and more user friendly representations like an address or points of interest. -- -- This module converts between GPS coordinates and the user-friendly representation of that coordinate. A user-friendly represent...
-- Collection Dumper Lightroom Plug-in -- -- @copyright 2020 LiosK -- @license: Apache-2.0 return { LrSdkVersion = 10.0, LrToolkitIdentifier = "net.liosk.lightroom.CollectionDumper", LrPluginName = "Collection Dumper", LrPluginInfoUrl = "https://github.com/LiosK/CollectionDumper.lrplugin", VERSION = { maj...
--The MIT License (MIT) -- --Copyright (c) 2016 Jaap Braam -- --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, modi...
Guidelime.registerGuide([[ [N13-18 Phelx's Ragefire Chasm (RFC) Guide (Tirisfal Glades Start)] [D Phelx's guide to acquiring all RFC quests. There are 5 total.] [GA Horde] All quests require a minimum level of [XP9 9]. Get the Flightpath [P Undercity] for leveling convenience later on. Accept [QA5725] from Va...
WebBanking{ version = 0.10, url = "https://nb.fidelity.com/public/nb/worldwide/home?AuthRedUrl=https://netbenefitsww.fidelity.com/mybenefitsww/stockplans/navigation/PlanSummary", services = {"Fidelity NetBenefits"}, description = "Get securities and their current value from the Fidelity NetBenefi...
local folderOfThisFile = (...):match("(.-)[^%/%.]+$") -- ユーティリティ local util = require 'util' -- ゲームクラス local Game = require(folderOfThisFile .. 'class') -- ライブラリ local Slab = require 'Slab' local Window = require('Slab.Internal.UI.Window') local Input = require('Slab.Internal.UI.Input') local binser = require 'bins...
luanet.load_assembly('mscorlib') luanet.load_assembly('Silence.Macro', 'Silence.Macro') LuaCommands=luanet.import_type('Silence.Macro.LuaCommands') LC=LuaCommands() function inputRecords() LC:Delay(1881504) LC:MouseMove(1283, 758) LC:Delay(39898) LC:MouseMove(1282, 758) LC:Delay(29925) LC:MouseM...
-- RequestBuffer.lua -- David Skrundz -- -- rb = RequestBuffer.new() -- rb:onRequest(function(client, method, path, version, headers, body) ... end) -- rb:append(client, string) -- rb:drop(client) RequestBuffer = {} function RequestBuffer.new() local _requestbuffer = {buffers = {}} setmetatable(_requestbuffer, {__...
-- -------- Mozilla Firefox -- -------- Created by 1lann -- -------- Edited by GravityScore -- -------- Variables autoUpdate = true local x,y = term.getSize() local EditingValue = "" local bDatabase = {} local bvIDs = {} local bvAddresses = {} local bType = nil exitFirefox = false local firsttime = true --Open...
-- This app acts as a responder for neighbor solicitaions for a -- specific target address and as a relay for all other packets. It -- has two ports, north and south. The south port attaches to a port -- on which NS messages are expected. Non-NS packets are sent on -- north. All packets received on the north port a...
project "OverEngine" kind "StaticLib" language "C++" cppdialect "C++17" targetname "OverEngine" targetdir ("../bin/" .. outputdir .. "/%{prj.name}") objdir("../bin-int/" .. outputdir .. "/%{prj.name}") pchheader "pcheader.h" pchsource "src/pcheader.cpp" files { -- Source Files "src/*.h", "src/*.cpp"...
#!/usr/bin/env lua -- API call example. See https://www.sparkpost.com/docs/recipient-validation/integration-guide/ -- local http = require "socket.http" local https = require("ssl.https") local ltn12 = require("ltn12") -- set to api.eu.sparkpost.com for EU accounts local url = "https://api.sparkpost.com/api/v1/recipie...
m = Map("zipgateway", "Z/IP Gateway") s = m:section(TypedSection, "zipgateway", "") s.anonymous = true o = s:option(Flag, "enable", translate("Enable Z/IP Gateway")) o.rmempty = false ...
-- -- Bomb pickup class. -- -- @filename LgBombPickup.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-09-05 -- local DLog = YwDebug.Log local DLogWarn = YwDebug.LogWarning local DLo...
object_tangible_quest_bounty_hunter_1_flower = object_tangible_quest_shared_bounty_hunter_1_flower:new { } ObjectTemplates:addTemplate(object_tangible_quest_bounty_hunter_1_flower, "object/tangible/quest/bounty_hunter_1_flower.iff")
local check = {} function check.runCheck() _, smb = hs.execute("netstat -anp tcp | grep LISTEN | grep -w \"\\.445\"") _, afs = hs.execute("netstat -anp tcp | grep LISTEN | grep -w \"\\.88\"") if smb and afs then return false, "‼️ File sharing is enabled" else return true end end return check
minetest.register_tool("rangedweapons:deagle_rld", { stack_max= 1, wield_scale = {x=1.25,y=1.25,z=1.5}, description = "", range = 0, loaded_gun = "rangedweapons:deagle", groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_deagle_rld.png", }) minetest.register_tool("rangedweapons:deagle_...
-- エイリアス local lg = love.graphics local lk = love.keyboard local lm = love.mouse -- クラス local Scene = require 'Scene' local Level = require 'Level' local Timer = require 'Timer' -- ゲーム local Game = Scene:newState 'game' -- 読み込み function Game:load() end -- ステート開始 function Game:enteredState(width, height, pieceTypes...
-- -- Test suite for Dumb Lua Parser -- local PRETTY_OUTPUT = 1==1 local PRINT_IDS = 1==1 local PRINT_LOCATIONS = 1==1 local EXIT_ON_ERROR = 1==0 collectgarbage("stop") io.stdout:setvbuf("no") io.stderr:setvbuf("no") local loadstring = loadstring or load local parser = require"dumbParser" parser.p...
object_ship_nova_orion_boss_ship_tier7 = object_ship_shared_nova_orion_boss_ship_tier7:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_boss_ship_tier7, "object/ship/nova_orion_boss_ship_tier7.iff")
require 'colors' local ToggleButton = {} ToggleButton.__index = ToggleButton setmetatable(ToggleButton, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_new(...) return self end, }) function ToggleButton:_new(text, x, y, width, height, color, backgroundColor, font...
function math.sign(x) return x>0 and 1 or x<0 and -1 or 0 end
local function foo(a, b) local x if a < b then x = 0 end if a > b then x = 1 end if a <= b then x = 2 end if a >= b then x = 3 end if a == b then x = 4 end if a ~= b then x = 5 end if not (a < b) then x = 6 end return x end local x, y = 7, 3 print(foo(x, y), foo(y, x), foo(x, x))
-- Lua parser extensions for MediaWiki - Wrapper for Lua interpreter -- (c) 2008 Fran Rogers - see 'COPYING' for license -- Creates a new sandbox environment for scripts to safely run in. function make_sandbox() -- Dummy function that returns nil, to quietly replace unsafe functions local function dummy(...) r...
--[[ ModuleName : Path : config_system.lua Author : jinlei CreateTime : 2020-10-05 23:52:31 Description : --]] local config = {} config.login = {} config.login.host = "127.0.0.1" config.login.port = 7001 config.log = {} config.log.level = 1 config.log.level_for_console = 1 config.log.dir = "../client_log" config.log....
-- floor.lua function Floor(boss,properties) local grill = boss.grill local spritesheet = boss.images["floor"] local floor = { name = "floor", x = properties.coord_x, y = properties.coord_y, code = properties.code } function floor.draw() spritesheet.draw_image(floor.x*grill.tile,floor.y*grill.tile,...
local simplehttp = require'simplehttp' local json = require'json' local APIBase = 'https://blockchain.info/no/ticker' return { PRIVMSG = { ['^%pbtc$'] = function(self, source, destination, input) simplehttp(APIBase, function(data) local result = json.decode(data) if(result) then self:Msg('privms...
local ITEM = Clockwork.item:New("clothes_base"); ITEM.name = "Metropolice Uniform"; ITEM.cost = 500; ITEM.replacement = "models/dpfilms/metropolice/hdpolice.mdl"; ITEM.weight = 3; ITEM.access = "v" or "N"; ITEM.business = true; ITEM.protection = 0.5; ITEM.description = "A metropolice suit, used for being disguised or f...
object_tangible_storyteller_prop_pr_lifeday_fireplace_01 = object_tangible_storyteller_prop_shared_pr_lifeday_fireplace_01:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_lifeday_fireplace_01, "object/tangible/storyteller/prop/pr_lifeday_fireplace_01.iff")
require('aerial') vim.g.aerial = { default_direction = 'prefer_left' } require('telescope').load_extension('aerial')
local example_path = "./spec/lua/curstr/example.vim" local util = require("genvdoc.util") local ok, result = pcall(vim.cmd, "source" .. example_path) if not ok then error(result) end require("genvdoc").generate("curstr.nvim", { chapters = { { name = function(group) return "Lua module: " .. group...
local Stream = require(script.Stream) local StreamsClient = {} StreamsClient.__index = StreamsClient function StreamsClient.new(cmdrAdditions) local self = setmetatable({ CmdrAdditions = cmdrAdditions, _streams = {} }, StreamsClient) cmdrAdditions.Network:HandleEvent("StreamEvent", function(streamName, event)...
local Lattice = {} local ResistanceNetwork = require 'Resistance2' local gd Lattice.ExternalField=0; -- This is the external field strength. Lattice.J = 1; Lattice.Temperature = 0; function Lattice:New() local NewLattice = {}; --local RN = ResistanceNetwork:new(); NewLattice.RN = ResistanceNetwork:New(); retur...
local RestyAdapter = class('RestyAdapter', import('.SocketAdapter')) function RestyAdapter:ctor(conf) RestyAdapter.super.ctor(self) local logger = require "resty.logger.socket" if not logger.initted() then local ok, err = logger.init(conf) if not ok then error("failed to initia...
require "resty.core" require "jit.opt".start("minstitch=2", "maxtrace=4000", "maxrecord=8000", "sizemcode=64", "maxmcode=4000", "maxirconst=1000") local local_dir = arg[1] -- ngx.say("local dir: ", local_dir) package.path = local_dir .. "/lib/?.lua;" .. package.path pa...
require('kommentary.config').configure_language("default", { prefer_single_line_comments = true, })
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Shim to replace Lua's built-in IO module with streams. module(..., package.seeall) local stream = require('lib.stream') local file = require('lib.stream.file') local S = require('syscall') local io = {} function io.close(file) if ...
local lm = require 'luamake' lm.flags = { "-mmacosx-version-min=10.13", } lm:source_set 'source_lua' { sources = { "3rd/lua/*.c", "!3rd/lua/luac.c", "!3rd/lua/lua.c", "!3rd/lua/utf8_*.c", }, defines = { "LUA_USE_MACOSX", }, visibility = "default", } lm:...
-- Adapted by xxopxe@gmail.com -- from http://lua-users.org/lists/lua-l/2005-02/msg00641.html -- -- A "packbits" implementation of a bitset. -- A bitset is any set of non-negative integers. -- Does not support iteration over the set (yet). -- -- author: Wim Couwenberg -- created: thu, Feb 24, 2005 -- -- Sample usage...
----------------------------------------- -- ID: 4771 -- Scroll of Stone V -- Teaches the black magic Stone V ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(163) end function onItemUse(target) target:addSpell(163) end
function INSTANCE_ZULAMAN.NALORAKK.Nalorakk_HandleGauntlet(Unit,event,pAggro) local args = getvars(Unit) local guard1,guard2,guard3; guard1 = Unit:GetCreatureNearestCoords(17.345501,1418.599976,12.047500,23582) guard2 = Unit:GetCreatureNearestCoords(19.094801,1420.569946,12.073000,23542) guard3 = Unit:GetCreatureN...
-- mobs:register_mob("bobcraft_hostilemobs:climber", { -- type = "monster", -- collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, -- visual = "mesh", -- mesh = "climber.b3d", -- textures = {"climber.png"}, -- visual_size = {x=1, y=1}, -- makes_footstep_sound = true, -- view_range = 15, -- walk_velocity = 1, -- ...
cfg = { nodeCpuFreq = node.CPU80MHZ, -- node.CPU160MHZ wifiSsid = 'SSID', wifiPass = 'PASSWORD', wifiMode = wifi.PHYMODE_B, telnetPort = 23, transmissionBlock = 10, -- Measurements to send transmissionInterval = 60000, -- miliseconds readRoundInterval = 10000, -- miliseconds toFileWhenHeap = 8000, ...
local scarelength = 0 function onCreate() -- playsound auditor imdead when we decide what to do for that lol makeLuaSprite('jumpscare','monochrome/audi_scare', -500, -350); precacheImage('jumpscare'); end function onEvent(name, value1, value2) --screamer image is placed in the middle of the screen an...
--[[ TheNexusAvenger Runs the motorcycle on the server. --]] local Tool = script.Parent local CreateMotorcycle = require(Tool:WaitForChild("CreateMotorcycle")) local AnimateMotorcycle = require(Tool:WaitForChild("AnimateMotorcycle")) local CurrentHumanoid,CurrentMotorcycle --[[ Invoked when the tool is equipped. ...
package("yyjson") set_homepage("https://github.com/ibireme/yyjson") set_description("The fastest JSON library in C.") add_urls("https://github.com/ibireme/yyjson/archive/$(version).tar.gz", "https://github.com/ibireme/yyjson.git") add_versions("0.2.0", "43aacdc6bc3876dc1322200c74031b56d8d...
item_devDagon = class(ItemBaseClass) function item_devDagon:OnSpellStart() local target = self:GetCursorTarget() local caster = self:GetCaster() target:Kill(self, caster) local particleName = "particles/items_fx/dagon.vpcf" local particle = ParticleManager:CreateParticle(particleName, PATTACH_POINT_FOLLOW,...
local Repos = ACF.Repositories do -- Server syncronization and status printing local PrintToChat = ACF.PrintToChat local Unique = { Branches = true, } local Messages = { ["Unable to check"] = { Type = "Update_Error", Message = "%s: Server is running on version %s. Unable to check for updates.", }, ...
local mymod = RegisterMod("MyModName") local fireCounter = 0 mymod:AddCallback(ModCallbacks.MC_POST_ENTITY_KILL , function(_, ent) if ent.Type == EntityType.ENTITY_FIREPLACE then fireCounter = fireCounter + 1 end if fireCounter == 50 then UILib.displayAchievement("my_achievement_file.png") -- Saved as mo...
MyTable={'dd',66,777,8888,99999,000000,1} -- table.concat()合并表中的字符串,值。输出一长串的字符串 print(table.concat(MyTable)) -- table.insert 在表中插入一个元素 table.insert(MyTable,4,"chianr")--相当于MyTable[4]="chianr" print(MyTable[4]) -- 移除指定位置数据 print(MyTable[1])--当前第二个元素为dd -- 移除第二个元素 table.remove(MyTable,1) print(MyTable[1])--当前第二个元素为66 ...
----------------------------------- -- Area: Kazham -- NPC: Bubupp -- Standard Info NPC ----------------------------------- function onTrade(player,npc,trade) -- item IDs -- 483 Broken Mithran Fishing Rod -- 22 Workbench -- 1008 Ten of Coins -- 1157 Sands of Silence -- 1...
-- extract a slice from a list -- > slice({'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k'}, 3, 7) -- {'c', 'd', 'e', 'f', 'g'} slice = function (t, from, to) local res = {} for i = from, to do table.insert(res, t[i]) end return res end dofile 'dumper.lua' print(DataDumper(slice({'a', 'b', 'c...
local ROIPooling,parent = torch.class('inn.ROIPooling', 'nn.Module') local C = inn.C function ROIPooling:__init(W,H,spatial_scale) parent.__init(self) assert(W and H, 'W and H have to be provided') self.W = W self.H = H self.spatial_scale = spatial_scale or 1 self.gradInput = {} self.indices = torch.Tens...
local GetRandomElement = SimpleNotebook.GetRandomElement local jokes = { "What's the best way to convince even the most pompous Altmer that you have a good point? Stab them in the chest with it.", "What do you get when you cross a Nord, a Dunmer, and an Argonian? Violently Murdered! Blood for the Pact!", ...
-- This example show how user defined shader works local ej = require "ejoy2d" local fw = require "ejoy2d.framework" local pack = require "ejoy2d.simplepackage" pack.load { pattern = fw.WorkDir..[[examples/asset/?]], "sample", } -- define a shader local s = ej.define_shader { name = "EXAMPLE", fs = [[ varying v...
function toggleRun(event) local player = game.players[event.player_index] local on = player.is_shortcut_toggled("toggle-run") player.set_shortcut_toggled("toggle-run", not on) if on then player.force.character_running_speed_modifier = 0 else player.force.character_running_speed_modifier = 1 end end ...
help([[ This is the module file for the llvm and clang compiler. ]]) local version = "4.0.1" whatis("Name: LLVM") whatis("Version: " .. version) whatis("Keywords: System, Compiler") whatis("URL: http://www.llvm.org/") whatis("Description: LLVM compiler family") family("compiler") local prefix = "/opt/llvm-4.0.1" lo...
workspace "OsloNet" architecture "x64" startproject "Client" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" --Oslo Net project-- project "OsloNet" location "OsloNet" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" target...
incognito = { cast = function(player) local magic = 0 local duration = 1000000 -- 1000s if (not player:canCast(1, 1, 1)) then -- dead, invis/transformed, mounted return end if (player.magic < magic) then player:sendMinitext("Your will is too weak.") return end player.magic = player.magi...
local args = ... local offsets, worst_window = args[1], args[2] local pane_width, pane_height = args[3], args[4] -- determine which offset was furthest from flawless prior to smoothing local worst_offset = 0 for offset, count in pairs(offsets) do if math.abs(offset) > worst_offset then worst_offset = math.abs(offset)...
-- This script makes tostring convert tables to a -- representation of their contents. -- The real tostring: _tostring = _tostring or tostring -- Characters that have non-numeric backslash-escaped versions: local BsChars = { ["\a"] = "\\a", ["\b"] = "\\b", ["\f"] = "\\f", ["\n"] = "\\n", ...
local Util = {} function Util.formatForcesText(pullCount, currentCount, totalCount, completedTime) local currentPercent = (currentCount / totalCount) * 100 if currentPercent > 100.0 then currentPercent = 100.0 end local result = ("%.2f%%"):format(currentPercent) if completedTime then local completedText ...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") debug = _G.developer_debug ticks = false -- current time, in ticks ns_per_tick = 1e6 -- tick resolution (millisecond) timers = {} ...
local L = BigWigs:NewBossLocale("The Arcway Trash", "frFR") if not L then return end if L then L.anomaly = "Anomalie arcanique" L.shade = "Ombre dimensionnelle" L.wraith = "Ame en peine de mana flétrie" L.blade = "Gangrelame garde-courroux" L.chaosbringer = "Porte-chaos érédar" end
local ok, nvim_tree = pcall(require, 'nvim-tree') if not ok then vim.cmd('echom "plugin error: nvim-tree is missing"') return end vim.cmd('source ~/.config/nvim/lua/user/plugins/nvim-tree.vim') nvim_tree.setup { -- nvim_tree_indent_markers = true, -- nvim_tree_quit_on_open = false, -- nvim_tree_cha...
package.path = package.path..";../?.lua" local ffi = require "ffi" local BCrypt = require "BCryptUtils" function test_RngAlgorithm() local rngalgo = BCrypt.BCryptAlgorithm(BCrypt.BCRYPT_RNG_ALGORITHM) print("Algo: ",rngalgo); end function test_RandomBytes() for j=1,5 do local rngBuff, err = BCrypt.GetRandom...
local PANEL = Gvue.new_panel() local debug_colors = { border = Color(50, 100, 150), fill = Color(50, 100, 150, 60), tooltip = Color(255, 255, 255), text = Color(125, 125, 125), margin = Color(200, 150, 50, 90), padding = Color(200, 50, 125, 90) } local function create_acccessor_trbl(id) local t,...
SWEP.OldPaP = false SWEP.OldSpCola = false SWEP.SpeedColaFactor = 2 --Amount to speed up by when u get dat speed cola SWEP.SpeedColaActivities = { [ACT_VM_DRAW] = true, [ACT_VM_DRAW_EMPTY] = true, [ACT_VM_DRAW_SILENCED] = true, [ACT_VM_DRAW_DEPLOYED or 0] = true, [ACT_VM_RELOAD] = true, [ACT_VM_RELOAD_EMPTY] = tr...
--- Functions related to fetching and loading local and remote files. --module("luarocks.fetch", package.seeall) local fetch = {} package.loaded["luarocks.fetch"] = fetch local fs = require("luarocks.fs") local dir = require("luarocks.dir") local type_check = require("luarocks.type_check") local path = require("luaro...
if not turtle then printError("Only a turtle can create things") return end local makerbotActions = { floor = function(...) local tArgs = {...} if #tArgs < 2 then return false, "Not enough arguments, 2 required", "Width, depth" end local width = tArgs[1] local depth = tArgs[2] for x = 1, width do ...
-- type = github -- DO NOT REMOVE THIS LINE! local name = "minectl" local version = "0.18.0" local org = "dirien" local repo = "minectl" local base_url = "https://github.com/" .. org .. "/" .. repo food = { name = name, description = "minectl 🗺️ is a cli for creating Minecraft (java or bedrock) server on diff...
if not cookingwithbeaconslib then cookingwithbeaconslib = {public={}, private={}} end require('data/generic-functions') require('data/human-labor') require('data/robot-labor') require('data/hidden-beacon') require('data/tile-bonus') require('data/research-bonus') require('data/custom-beacon-shapes') require('data/co...
-- local math_abs = math.abs local floor = math.floor local max = math.max ---@type table -- local gl_mut_prev_state -- local gl_scrolloff = 5 ---@param available_space number ---@param width_left_of_current number ---@param width_right_of_current number ---@return number, number local center_current_buffer = f...
-- change this settings for window animation -- 0: disable animation hs.window.animationDuration = 0.2 window = require "hs.window" grid = require "hs.grid" grid.setMargins('0, 0') module = {} local windowMeta = {} function Cell(x, y, w, h) return hs.geometry(x, y, w, h) end -- Bind new method to windowMeta func...
-- Nightfox require('nightfox').load('nordfox')
vim.g.goyo_width = 100 vim.cmd([[ function! s:goyo_enter() " Disable tmux to get a clean window silent !tmux set status off silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z " No vim info either set noshowmode set noshowcmd set signcolumn=no "set scrolloff=999 " Also enable Limeli...
local bufferline = {} bufferline.__index = bufferline local function setup() vim.opt.termguicolors = true vim.opt.number = true local ok, bl = pcall(require, 'bufferline') if not ok then return end bl.setup({ options = { numbers = 'ordinal', -- "none" | "ordinal" | "buffer_id" |...
local CharacterData = {} CharacterData.__index = CharacterData local EPSILION = 0.00001 local mathUtils = require(script.Parent.MathUtils) local function Lerp(a, b, frac) return a:Lerp(b, frac) end local function AngleLerp(a, b, frac) return mathUtils:LerpAngle(a, b, frac) end local function NumberLerp(a, b...