content
stringlengths
5
1.05M
box.cfg { listen=3303, logger="tarantool.log", log_level=5, logger_nonblock=true, wal_mode="none", pid_file="tarantool.pid" } box.schema.space.create("ycsb", {id = 1024}) box.space.ycsb:create_index('primary', {type = 'hash', parts = {1, 'STR'}}) box.schema.user.grant('guest', 'read,write,execute', '...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP", "vrp_wallet") RegisterServerEvent('vrp_wallet:getMoneys') AddEventHandler('vrp_wallet:getMoneys', function() local user_id = vRP.getUserId({source}) if user_id ...
local usage = arg[0] .. ' <prefix> <output> <inputs...>' assert(arg[1], 'Missing <prefix>\n' .. usage) assert(arg[2], 'Missing <output>\n' .. usage) assert(arg[3], 'Missing <inputs...>\n' .. usage) local prefix = arg[1] local function strip_prefix(s) return string.format("%q", s:sub(#prefix + 1)) end local output...
local core = require "core" local command = require "core.command" local Doc = require "core.doc" local keymap = require "core.keymap" command.add("core.docview", { ["move-to-to-start-of-line-ignoring-whitespace"] = function() local doc = core.active_view.doc local current_line, current_pos = doc:get_selec...
local cjson = require "cjson" local _M = {} function _M.merge_table(base_table, up_table) if "table" ~= type(base_table) then return up_table end if "table" ~= type(up_table) then return base_table end local new_table = {} for k, v in pairs(base_table) do if "table" ...
local function doScale(um) local ply = um:ReadEntity() local scale = um:ReadFloat() if not IsValid(ply) then return end ply:SetModelScale(scale, 1) ply:SetHull(Vector(-16, -16, 0), Vector(16, 16, 72 * scale)) end usermessage.Hook("frenchrp_playerscale", doScale)
data:extend({ { enabled = false, energy_required = 20, ingredients = { {"laser-turret", 1 * 50 }, {"stone-wall", 20 * 50 }, {"processing-unit", 1 * 50} }, name = "pulse-laser", result = "pulse-laser", type = "recipe" }, { enabled = false, ...
print("Hello,", "World !")
local people = getRootElement() local gate1 = getElementByID("toldicht1") local marker1 = getElementByID("tolmarker1") local x1, y1, z1 = getElementPosition(gate1) function open1() if (gate1) then moveObject (gate1, 1500, x1, y1, z1, 0, 90, 0) setTimer(close1, 3000, 1) end end addEventHandler("onMarkerHit...
-------------------------------------------------------------------------------- -- -- This file is part of the Doxyrest toolkit. -- -- Doxyrest is distributed under the MIT license. -- For details see accompanying license.txt file, -- the public copy of which is also available at: -- http://tibbo.com/downloads/ar...
-------------------------- -- WebKit WebView class -- -------------------------- -- Webview class table webview = {} -- Table of functions which are called on new webview widgets. webview.init_funcs = { -- Set useragent set_useragent = function (view, w) view.user_agent = globals.useragent end, ...
module ('mock') local function AuroraSpriteLoader( node ) --[[ sprite <package> .moduletexture <texture> .modules <uvquad[...]> .frames <deck_quadlist> ]] local data = loadAssetDataTable( node:getObjectFile('def') ) local textures = {} local texRects = {} local uvRects = {} --load images for i, ...
----------------------------------------------------------------------------- -- A LUA script for MySQL proxy to output failed SQL queries as JSON -- -- Version: 0.3 -- This script is released under the MIT License (MIT). -- Please see LICENCE.txt for details. -- -- REQUIREMENTS: -- JSON module (https://github.com/cr...
-- start with standard + ap mode wifi.setmode(wifi.STATIONAP); -- create access-point apCfg = {}; apCfg.ssid = "my1btn"; --apCfg.ssid = "myBtn_"..string.sub(string.upper(string.gsub(wifi.sta.getmac(), ":", "")), -6); apCfg.pwd = "12345678"; wifi.ap.config(apCfg); -- configure access-point ipcfg = {}; ipcfg.ip = "192....
if SERVER then util.AddNetworkString( "guthwhitelistsystem:SetJobWhitelist" ) net.Receive( "guthwhitelistsystem:SetJobWhitelist", function( _, ply ) if not ply or not ply:IsValid() then return end if not ply:WLIsAdmin() then return end local job = net.ReadUInt( guthwhitelistsystem.JobI...
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.0 -- Date: 31.10.2010 --------------------------------------------------------------------- local x,y = guiGetScreenSize() local window = guiCreateWindow(0.25,0.3,0.5...
function AddGamesToScrollArea(entry) if entry == nil then AddAllGames(); elseif callbacks.containerFrame ~= nil then AddGameToScrollArea(entry); end end L = {}; function AddGameToScrollArea(gameEntry) -- Have a static list L that keeps all the new game containers -- Create a conta...
-- evoker: mount.lua -- could be mount or unmount. -- processed on all local _=function(event) log("mount_ok:"..pack(event)) -- created in ClientAction.toggleMount local mountEvent=event.mountEvent local isMounting=mountEvent.targetEntityName~=nil local mount=nil if isMounting then mount=Entity.find(mountEv...
--[[ LibC Copyright Amlal El Mahrouss All rights reserved Core functionalities. ]] LibC = LibC or {} function LibC:AddCommand(Name, Func, Perms) LibC.Promise:Init(function(Name, Func, Perms) return isfunction(Func) && istable(Perms) && isstring(Name) end, Name, Func, Perms):Do():Then(functi...
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com> -- -- 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 -...
local IR = require("ir/insts") local PUSH = setmetatable({}, { __tostring=function() return "[PUSH]" end }) local function same(a, b) local t = a[1] if b[1] ~= t then return false end if t == IR.CONST then return a[2] == b[2] elseif t == IR.GETLOCAL then return a[2] == b[2] end...
--[[ Basic generic ground mode AI implementation. An entity running this AI will randomly turn and wander a bit from time to time. ]]-- require 'common' local BaseAI = require 'ai.ground_baseai' local BaseState = require 'ai.base_state' ------------------------------- -- States Class Definitions ---------------...
--[[ vim.api.nvim_buf_set_lines(0, 4, -1, false, vim.tbl_keys(require('telescope.builtin'))) --]] require('telescope.builtin').git_files() RELOAD('telescope'); require('telescope.builtin').oldfiles() require('telescope.builtin').grep_string() require('telescope.builtin').lsp_document_symbols() RELOAD('telescope'); req...
--Var local item, recipe, entity, name, icon --Copies item = table.deepcopy(data.raw["item"]["roboport"]) recipe = table.deepcopy(data.raw["recipe"]["roboport"]) entity = table.deepcopy(data.raw["roboport"]["roboport"]) icon = "__5dim_logistic__/graphics/icon/roboport/roboport_3.png" icon_size = 32 name = "5d-roboport...
--[[ =============================================================================== ** BattleSprite v1.2 ** By Lysferd (C) 2015 =============================================================================== --]] --------------------------------------------------------------------- -- * Declare BattleSprite. -----...
local yourScreenWidth = 1920 -- Change to your screen width local yourScreenHeight = 1080 -- Change to your screen height local function WidthScaled( x ) return x / yourScreenWidth * ScrW() end local function HeightScaled( y ) return y / yourScreenHeight * ScrH() end hook.Add( "HUDPaint", "Base", function() ...
describe('lol.league', function() local league,match setup(function() match = require('luassert.match') league = require('lol.league') end) it('loaded okay', function() assert.not_nil(league) end) it('errors if given an invalid api obj', function() assert.has.er...
AddCSLuaFile() ENT.Base = "base_anim" ENT.Type = "anim" ENT.PrintName = "Spider Antidote" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "Drones Rewrite Tools" if SERVER then function ENT:SpawnFunction(ply, tr, class) if not tr.Hit then return end local pos = tr.HitPos + tr.HitNormal * 16 loca...
local vmf = get_mod("VMF") local _ingame_ui local _ingame_ui_disabled -- There's no direct access to local variable 'transitions' in ingame_ui. local _ingame_ui_transitions = require("scripts/ui/views/ingame_ui_settings").transitions local _views_data = {} local ERRORS = { THROWABLE = { -- inject_view: view...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
return {'joggelen','joggen','jogger','jogging','joggingbroek','joggingpak','jogjakarta','joggel','joggers','jog','jogde','joggend','joggingbroeken','joggingpakken','joggingpakje'}
require("ts3init") local registeredEvents = { onTextMessageEvent = tipps_events.onTextMessageEvent onClientMoveEvent = tipps_events.onClientMoveEvent } ts3RegisterModule("tipps", registeredEvents)
function PresentModWinConSettings() Conditionsrequiredforwinit = Mod.Settings.Conditionsrequiredforwin; if(Conditionsrequiredforwinit == nil)then Conditionsrequiredforwinit = 1; end Capturedterritoriesinit = Mod.Settings.Capturedterritories; if(Capturedterritoriesinit == nil)then Capturedterritoriesinit = 0; ...
local skynet = require "skynet" local utils = require "utils" local M = {} function M:init() self.id_tbl = {} self.account_tbl = {} self:load_all() end function M:load_all() local num = 0 local accounts = skynet.call("mongo", "lua", "load_all_account") for _,obj in ipairs(accounts) do ...
local status_ok, lualine = pcall(require, "lualine") if not status_ok then print('error loading lualine') return end lualine.setup({ options = { theme = 'vscode', }, sections = { lualine_a = {{'filename', path = 2}}, lualine_b = {'branch', 'diff'}, lualine_c = {}, lualine_x = {}, lual...
local ssl = require "ngx.ssl" local io = require "io" string.split = function(s, p) local rt= {} string.gsub(s, '[^'..p..']+', function(w) table.insert(rt, w) end ) return rt end local server_name = ssl.server_name() if not server_name then return end -- 清除之前设置的证书和私钥 local ok, err = ssl.clear_cert...
local input = require('lib4/inpt') local game = {} function game:_load() love3d:enable() input.enable_keyevents() end return game
package.path = "internal/lua/?.lua" local included = pcall(debug.getlocal, 4, 1) local T = require("test") local A = require("argparse") local expect = T.expect local is_table = T.is_table local raised = T.error_raised local new = function() local parser = A() local p = parser:parse({}) is_table(p) end local one_arg...
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/StopReverseEngineeringMyScripts/WhatAreYouDoingHere/main/YummySource",true))() local main = library:CreateWindow('Main') local Items = library:CreateWindow('Items') local Teams = library:CreateWindow('Teams') noclip = false game:GetService('R...
local function foo(k) return k*k, 2*k + 1 end local a, b a, b = 13, foo(3) print(a, b)
local skynet = require "skynet" local ball = require "ball" local systemcontainer = require "systemcontainer" local entity = require "room.components" local basesystem = require "room.systems.base" local tiny = require "tiny" local assert = assert local cls = class("context") function cls:ctor(id, ... ) -- body sel...
local AddonName, AddonTable = ... -- TBC Junk AddonTable.junk = { 22153, -- Tome of Arcane Brilliance 22980, -- Tome of Frost Ward 23938, -- Pristine Ravager Carapace 24368, -- Coilfang Armaments 24508, -- Elemental Fragment 24511, -- Primordial Essence 24576, -- Loosely Threaded Belt ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local Actions = require(common:WaitForChild("Actions")) return { id = "coins1000000", name = "1M Coins", desc = ( "Gives 1,000,000 coins." ), productId = 838293310, o...
return function(prefix) local result = {} local files = FILEMAN:GetDirListing(THEMEDIR().."/Modules/",false,false) for _,file in pairs(files) do local pl,pr = string.find( file, prefix.."." ) local sl,sr = string.find( file, ".lua" ) if pl ~= nil and pl == 1 and pr + 1 <= sl - 1 then...
local tools = require('app.helpers.tools') local FeedbackView = {} function FeedbackView:initialize() end function FeedbackView:layout() local MainPanel = self.ui:getChildByName('MainPanel') MainPanel:setContentSize(cc.size(display.width,display.height)) MainPanel:setPosition(display.cx,display.cy) self.MainPane...
--- This processes commands from the user -- It maintains a list of commands, ordered by priority and then arbitrarily, -- such that you can send commands to this and they are processed into one -- or more events which can be added to the event queue -- @classmod CommandProcessor -- region imports local class =...
local Utils = require("contextprint.utils") local Nodes = require("contextprint.nodes") local parsers = require("nvim-treesitter.parsers") local M = {} function get_name_defaults() return { ["function"] = "(anonymous)", ["if"] = "if", ["for"] = "for", ["for_in"] = "for_in", ...
--[[-------------------------------------------------------------------- Copyright (C) 2009, 2010, 2011, 2012 Sidoine De Wispelaere. Copyright (C) 2012, 2013, 2014, 2015 Johnny C. Lam. See the file LICENSE.txt for copying permission. --]]------------------------------------------------------------------...
---@class ui.ListBox:ccui.ScrollView local M = class('ui.ListBox', ccui.ScrollView) function M:ctor(size, item_h) self.size = size or cc.size(192, 256) self.item_size = cc.size(self.size.width, item_h or 16) self:setContentSize(self.size) self:setBackGroundColorType(1)--:setBackGroundColor(cc.c3b(255, ...
local scheduler = cc.Director:getInstance():getScheduler() local SID_STEP1 = 100 local SID_STEP2 = 101 local SID_STEP3 = 102 local IDC_PAUSE = 200 local function IntervalLayer() local ret = cc.Layer:create() local m_time0 = 0 local m_time1 = 0 local m_time2 = 0 local m_time3 = 0 loc...
id = 'V-38634' severity = 'medium' weight = 10.0 title = 'The system must rotate audit log files that reach the maximum file size.' description = 'Automatically rotating logs (by setting this to "rotate") minimizes the chances of the system unexpectedly running out of disk space by being overwhelmed with log data. Howe...
--[[ Adobe Experience Manager (AEM) API Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API The version of the OpenAPI document: 3.5.0-pre.0 Contact: opensource@shinesolutions.com Generated by: https://openapi-generator.tech ]] -- saml_configuration_property_items_array class l...
--!The Make-like Build 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 L...
require("prototypes.prototypes") require("prototypes.legacy")
-- Tests for not doing smart indenting when it isn't set. local helpers = require('test.functional.helpers')(after_each) local feed = helpers.feed local clear = helpers.clear local insert = helpers.insert local expect = helpers.expect local feed_command = helpers.feed_command describe('unset smart indenting', functi...
wifi.sta.clearconfig()
--- === TurboBoost === --- --- A spoon to load/unload the Turbo Boost Disable kernel extension --- from https://github.com/rugarciap/Turbo-Boost-Switcher. --- --- Note: this spoon by default uses sudo to load/unload the kernel --- extension, so for it to work from Hammerspoon, you need to --- configure sudo to be able ...
dofile "../Premake/Setup.lua" NewSolution("TestFramework") NewProject("TestFramework", "ConsoleApp")
------------------------------------------ Define subplot class.. local subplot={} function subplot.new(self) local obj=self.windowHandle:newObject(); obj.className="subplot" obj.draw = subplot.draw; obj.redraw = subplot.draw; obj.beginScaling=subplot.beginScaling; obj.endScaling=subplot.endScaling; return o...
require 'nn' require('../../common/NYU_params') local ABC_sum, parent = torch.class('nn.ABC_sum', 'nn.Module') local elementwise_div, Parent = torch.class('nn.elementwise_div', 'nn.Module') local elementwise_mul, Parent = torch.class('nn.elementwise_mul', 'nn.Module') local elementwise_shift, Parent = torch.class('nn....
elite_geonosian_warrior = Creature:new { customName = "Elite Geonosian Warrior", socialGroup = "geonosian", faction = "", level = 300, chanceHit = 0.85, damageMin = 800, damageMax = 1600, baseXp = 13500, baseHAM = 60000, baseHAMmax = 120000, armor = 2, resists = {130,125,130,125,125,130,130,130,...
local M = {} local conf_defaults = { max_lines = 1000; max_num_results = 20; sort = true; priority = 5000; show_prediction_strength = true; run_on_every_keystroke = true; snippet_placeholder = '..'; ignored_file_types = { -- default is not to ignore -- uncomment to ignore in lua: -- lua = true }; } func...
-- © https://github.com/ncopa/lua-shell local shell = {} function shell.escape(args) local ret = {} for _,a in pairs(args) do s = tostring(a) if s:match("[^A-Za-z0-9_/:=-]") then s = "'"..s:gsub("'", "'\\''").."'" end table.insert(ret,s) end return table.concat(ret, " ") end function shell.run(args) l...
-- 3 steps: remove nullables, remove all cycles, and finally remove immediate left recursion local left_recursion_elimination = {} local ll1 = require 'luainlua.ll1.ll1' local utils = require 'luainlua.common.utils' local graph = require 'luainlua.common.graph' local worklist = require 'luainlua.common.worklis...
local pipes = require('pipes') local log = pipes.log log('boot start') pipes.console({port=11112}) --local json = require('pipes.json') --local str = '{"name":"dada", "age":25, "score":98.5, "arr":[123, "hehe123", 456, {"sub":"ddd"}, [55,66,77,88]], "arr2":[], "obj2":{} }' --local jObj = json.decode(str) --for ...
minetest.register_node("tardis:interior_door", { description = "Tardis Interior Door", tiles = {"inside_door.png"}, drawtype = "mesh", mesh = "tardis.obj", selection_box = { type = "fixed", fixed = { { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }, }, }, collision_bo...
--- ftable module -- @classmod ftable local M = {} function M.new(t) return setmetatable(t or {}, { __index = M, __tostring = function(t) return M.tostring(t) end }) end local function is_from_module(t, new_t) local mt = getmetatable(t) if(mt and mt.__index == M and new_t) then ...
--[[ This file is part of toml. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene-modules/toml/master/COPYRIGHT. No part of toml, including this file, may be copied, modified, propagated, or distributed except ...
local class = require 'ext.class' local ViscousFlux = class() function ViscousFlux:init(args) self.solver = assert(args.solver) end -- insert extra flux calculations into fvsolver's calcFlux() kernel function ViscousFlux:addCalcFluxCode() --[[ from "CFD - An Open Approach" section 14.2 dU^I/dt + dF^Ij/dx^j = 0 dU^...
--[[ ################################################################################ # # Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in th...
myCanvas = hs.canvas.new{ x = 100, y = 100, h = 200, w = 200 }:show() myCanvas[#myCanvas + 1] = { id = "primary", -- we check for this in the callback below (_i) type = "circle", radius = 100, center = { x = 100, y = 100 }, action = "fill", fillColo...
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' files { 'vehicles.meta', 'carvariations.meta', 'carcols.meta', 'handling.meta', 'vehiclelayouts.meta', 'carraddonContentUnlocks.meta', } data_file 'HANDLING_FILE' 'handling.meta' data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'...
local local0 = 0.6 local local1 = 0 - local0 local local2 = 0 - local0 local local3 = 3.6 - local0 local local4 = 0 - local0 local local5 = 3.4 - local0 local local6 = 0 - local0 local local7 = 3.2 - local0 local local8 = 0 - local0 local local9 = 2.9 - local0 local local10 = 5 - local0 local local11 = 0 - local0 local...
require("cURL") -- setup easy c = cURL.easy_init() c2 = cURL.easy_init() -- setup url c:setopt_url("http://www.example.com/") c2:setopt_url("http://www.hoetzel.info/") -- c.perform() m = cURL.multi_init() m2 = cURL.multi_init() m:add_handle(c) m2:add_handle(c2) -- perform, -- it = m:perform() for data, type, easy i...
pg = pg or {} pg.enemy_data_statistics_378 = { [213003] = { cannon = 5, reload = 150, speed_growth = 0, cannon_growth = 432, pilot_ai_template_id = 10001, air = 0, base = 152, dodge = 22, durability_growth = 37800, antiaircraft = 22, speed = 36, reload_growth = 0, dodge_growth = 270, luck =...
project(path.getname(os.getcwd())) kind "ConsoleApp" language "c++" objdir "../obj" files { "**.cpp", "**.cc", "**.h"} -- recursively add files includedirs {"../../../glm", "../../../sdl/include", "../../../glew/include", "../src"} libdirs {"../../../sdl/lib/x86", "../../../glew/lib/x86"} l...
dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') if mg.get_var(mg.request_info.query_string,'t')=='d' then if SHOW_DEBUG_LOG then t='\\EpgTimerSrvDebugLog.txt' end else if SHOW_NOTIFY_LOG then t='\\EpgTimerSrvNotify.log' end end if t then f=edcb.io.open(edcb.GetPrivateProfile('SET',...
local a= 10; local b= 30; return a*b;
local state = {}
require('lualine').setup { options = { icons_enabled = true, theme = 'material', component_separators = {}, section_separators = {}, disabled_filetypes = {'NvimTree'}, }, sections = { lualine_a = {'mode'}, lualine_b = {{'branch'}, {'diff',colored=false...
--- @class GNPC : GEntity --- This is a list of all methods only available for NPCs. It is also possible to call [Entity](http://wiki.garrysmod.com/index.php?title=Category:Entity) functions on NPCs. local GNPC = {} --- Makes the NPC like, hate, feel neutral towards, or fear the entity in question. If you want to set...
local types = require "resty.nettle.types.common" local context = require "resty.nettle.types.umac" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local setmetatable = setmetatable local umacs = { umac32 = { length = 4, context = contex...
print("Loading lua file") print("CTEST_FULL_OUTPUT") testapp = {counter = 0, max = 10} function testapp:initScene() print("In initScene") end function testapp:preFrame(dt) print("In preFrame") self.counter = self.counter + 1 print("Counter at " .. tostring(self.counter)) if self.counter >= self.max then pr...
local LogonView = class("LogonView",function() local logonView = display.newLayer() return logonView end) local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun") local MultiPlatform = appdf.req(appdf.EXTERNAL_SRC .. "MultiPlatform") LogonView.BT_LOGON = 1 LogonView.BT_REGISTER = 2 LogonView.CBT_RECOR...
--GPU: Window and canvas creation. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local events = require("Engine.events") local RenderVars = GPUVars.Render local WindowVars = GPUVars.Window --==Localized Lua Library==-- local mathFloor = math.floor --==Local Variables==...
r3 = Creature:new { objectName = "@mob/creature_names:r3", randomNameType = NAME_R3, socialGroup = "townsperson", faction = "townsperson", level = 4, chanceHit = 0.24, damageMin = 40, damageMax = 45, baseXp = 62, baseHAM = 113, baseHAMmax = 138, armor = 0, resists = {15,15,15,15,15,15,15,-1,-1}, meatType ...
local core = assert(l2df, 'L2DF is not available') local data = assert(data, 'Shared data is not available') -- UTILS local utf8 = require 'utf8' local cfg = core.import 'config' -- COMPONENTS local Camera = core.import 'class.component.camera' local Collision = core.import 'class.component.collision' local Controlle...
local intermediatemulti = angelsmods.marathon.intermediatemulti data:extend( { -- Nitinol Plate { type = "recipe", name = "molten-nitinol-remelting", category = "induction-smelting", subgroup = "angels-alloys-casting", -- Original Angel's Smelting does not add an expensive version to casting. -- Not sure...
local cls = require('uuclass') local ExecutionSession = require('nvimRepl.execution_session') local filetype2cmdMapping = { javascript = 'node'; typescript = 'node'; } ---@param cmd string ---@return string | nil local function which(cmd) --< if filetype2cmdMapping[cmd] then cmd = filetype2cmdMapping[cmd]...
local hi = vim.highlight.create vim.cmd "syntax enable" vim.o.background = "dark" vim.cmd "colorscheme delek" hi("TabLineFill", {ctermfg="None", ctermbg="None", cterm="None"}, false) hi("TabLine", {ctermfg="Grey", ctermbg="None", cterm="None"}, false) hi("TabLineSel", {ctermfg="White", ctermbg="None", cterm="None"}, ...
-- All the deity anger functions. Contains a common function with key -- "__default__" (so, this can't be used as a deity ID) which will be -- called if the lookup for the given deity ID fails. deity_anger_fns = {} -- Blue-bolt the worthless! local function deity_anger_blast(creature_id, deity_id) set_creature_curr...
-- add lucky blocks if minetest.get_modpath("lucky_block") then lucky_block:add_blocks({ {"dro", {"farming:corn"}, 5}, {"dro", {"farming:coffee_cup_hot"}, 1}, {"dro", {"farming:bread"}, 5}, {"nod", "farming:jackolantern", 0}, {"tro", "farming:jackolantern_on"}, {"nod", "default:river_water_source", 1}, ...
LobbyBadgeIcon = { NONE = 0, ACTIVE_HEADSET = 47, INACTIVE_HEADSET = 48, MUTED_HEADSET = 49, GTAV = 54, WORLD = 63, KICK = 64, RANK_FREEMODE = 65, SPECTATOR = 66, IS_CONSOLE_PLAYER = 119, IS_PC_PLAYER = 120 }
-- Copyright 2013 mokasin -- This file is part of the Awesome Pulseaudio Widget (APW). -- -- APW 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, or -- (at your option) ...
local sprite = app.activeSprite local dlg = Dialog() --- @param f FILE* --- @param tag any local function export_animation_tag(f, tag) local fps = 10 local animation_type = "PLAYBACK_LOOP_FORWARD" if tag.aniDir == AniDir.FORWARD then animation_type = "PLAYBACK_LOOP_FORWARD" elseif tag.ani...
local uv = require"lluv" local WS = require"websocket.client_lluv" local cli = WS() do cli:on_open(function(ws) print("Connected") end) cli:on_error(function(ws, err) print("Error:", err) end) cli:on_message(function(ws, msg, code) if math.mod(tonumber(msg), 60) == 0 then print("Message:", msg) end end)...
local VK = require('./vk') local Queue = require('./queue') local APIWrapper = require('./api_wrapper') local function API(options) if type(options) == 'string' or not options.token then options = {token = options} end local vk = VK(options.token, options.version) if options.queued then vk = Queue(vk)...
return function(config, makeImmutable) config.tiers = {} config.tiers[0] = { throughput = 0, efficiency = 0, } config.tiers[1] = { throughput = 15000, efficiency = 0.10, cost_multiplier = 100, cost = { {"science-pack-1", 1}, ...
require("hs.spoons").use('Caffeine', { hotkeys = { toggle = { {'ctrl', 'alt'}, 'c' } }, start = true, } ) return spoon.Caffeine -- -- variation on https://gist.github.com/heptal/50998f66de5aba955c00 -- -- local ampOnIcon = [[ASCII: -- .....1a..........AC..........E -- ..............................
--- ihelp.lua (c) Dirk Laurie 2013, Lua-style MIT license -- Lua interactive help. -- -- To get started: -- -- $ lua -e "help = require'ihelp'" -- help() do local getinfo, open, insert, concat, sort = debug.getinfo, io.open, table.insert, table.concat, table.sort local pairs, select...