content
stringlengths
5
1.05M
-- TODO: Get string code for relevant Materials -- TODO: read() for every ore local mine = ("Gold Ore", "Diamond Ore", "Iron Ore") local slotFuel = 1 local slotTorch = 2 local slotChestFuel = 3 local slotChestShit = 4 local torchDistance = 7 write("Tunnel length: ) local tunnelLength = read() write("Spacing between...
SomeName = "Alice" -- single line comment SomeValue = 10.5f [[-- Multi-line comment . . . --]] SomePath = "./this/potato/is/mine.pdf" Potato = { Temp = 260, Color = 'yellow', some_bool = true } some_multiline_string = [[ This is a multiline string ]]
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local PrefixExpression = setmetatable({}, { __index = SyntaxNode, }) PrefixExpression.__index = setmetatable({}, SyntaxNode) function PrefixExpression.new(start_pos, end_pos, expr) return PrefixExpression.constru...
--[[ 优点:外观模式的目的不是给子系统添加新的功能接口, 而是为了让外部减少与子系统内多个模块的交互, 松散耦合,从而让外部能够更简单的使用子系统。 当然,这是一把双刃剑 缺点:不能很好的限制客户端直接使用子系统类, 如果对客户端访问子系统类做太多的限制则减少了 可变性和灵活性 下面外部只与Facade交互,而facade与system交互, 从而达到上述优点 ]] System = {} function System:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end SubSystemOne = ...
local att = {} att.name = "md_fas2_eotech" att.displayName = "EOTech 553 holographic sight" att.displayNameShort = "EoTech" att.aimPos = {"EoTech553Pos", "EoTech553Ang"} att.FOVModifier = 15 att.isSight = true att.colorType = CustomizableWeaponry.colorableParts.COLOR_TYPE_SIGHT att.statModifiers = {OverallMouseSensMult...
local _M = {} _M._VERSION = '1.0' local function split(s, sep) local fields = {} local sep = sep or "," local pattern = string.format("([^%s]+)", sep) string.gsub(s, pattern, function(c) fields[#fields + 1] = c end) return fields end local function cookieFix(source, token) if source == "cookie...
print('hello') a = safemath.bigint('123') pprint('a=', a) b = safemath.bigint(456) pprint('b=', b) pprint('hex(a)=', safemath.tohex(a)) pprint('int(a)=', safemath.toint(a)) pprint('str(a)=', safemath.tostring(a)) c = safemath.add(a, b) d = safemath.sub(a, b) e = safemath.mul(a, b) f = safemath.div(b, a) g = safemath.po...
CyrodiilAction = CyrodiilAction or {} CyrodiilAction.NotificationManager = CyrodiilAction.NotificationManager or {} CyrodiilAction.Utils = {} ---------------------------------------------- -- Returns smaller keep names. ---------------------------------------------- function CyrodiilAction.Utils:shortenKeepName(str) ...
-- View an animation namespace "standard" local flat = require "engine.flat" local ui2 = require "ent.ui2" local ModelDrawer = require "app.debug.modelView.modelDrawer" local ModelEditAnimationUi = classNamed("ModelEditAnimationUi", ModelDrawer) function ModelEditAnimationUi:onLoad() local function Home() return s...
function main() uv.resolve4('baidu.com', function (addresses, err) if addresses == nil then print('error', err) return end print(addresses) print('[') for i, v in ipairs(addresses) do print(v) ...
local ELEMENT = Element.New() function ELEMENT:Initialize() self:SetDamageType(DMG_CLUB) self:SetWeakAgainst(ELEMENT_ROCK) self:SetStrongAgainst(ELEMENT_FIRE, ELEMENT_ICE) self:SetImmuneAgainst(ELEMENT_SHOCK) end function ELEMENT:OnInteractWith(target, other, dmg_info) if target:HasDebuff(DEBUFF_FROZEN) then ...
require 'nn' require 'image' require 'xlua' local Provider = torch.class 'Provider' function Provider:__init(full) local trsize = 50000 local tesize = 10000 -- download dataset if not paths.dirp('cifar-10-batches-t7') then local www = 'http://torch7.s3-website-us-east-1.amazonaws.com/data/cifar-10-torch...
local util = require('radio.core.util') describe("table and array utilities", function () it("table_length()", function () assert.is.equal(0, util.table_length({})) assert.is.equal(3, util.table_length({foo = 'bar', bar = nil, abc = true, def = 1})) assert.is.equal(5, util.table_length({1, ...
local libgen = require 'libgen' local config = assert(arg[1]) local T = require (config) assert(type(T) == "table") use_lua = false libgen(T, use_lua)
-------------------------------- -- @module Animate3D -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @function [parent=#Animate3D] getSpeed -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#Animate3D] se...
--呪詛返しのヒトガタ --id:Ruby QQ:917770701 function c100290023.initial_effect(c) --reflect local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c100290023.condition) e1:SetOperation(c100290023.refop) c:RegisterEffect(e1) --set local e2=Effect.CreateEffe...
-- file: runme.lua -- This file illustrates class C++ interface generated -- by SWIG. ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else -- lua 5.1 do...
local file = require 'pl.file' local textx = require 'pl.text' local stringx = require 'pl.stringx' local tablex = require 'pl.tablex' local path = require 'pl.path' local dir = require 'pl.dir' --[[ Return a table describing the .dokx config format Table entries are themselves tables, with keys 'key', 'description' ...
return { plan = function(char, state) for _,task in ipairs(state) do char:push_task(task.name, task.state) end end, perform = function(char, state) return true end }
local jua = nil local idPatt = "#R%d+" if not ((socket and socket.websocket) or http.websocketAsync) then error("You do not have CC:Tweaked/CCTweaks installed or you are not on the latest version.") end local newws = socket and socket.websocket or http.websocketAsync local async if socket and socket.websocket the...
-- `--::-.` -- ./shddddddddhs+. -- :yddddddddddddddddy: -- `sdddddddddddddddddddds` -- ydddh+sdddddddddy+ydddds M-Like:main -- /ddddy:oddddddddds:sddddd/ By adebray - adebray -- sdddddddddddddddddddddddds -- sdddddddddddddddddddddddds Created: 2015-10-26 21:10:55 -- :ddddddddddhyyddddddddddd: Modifi...
require "behaviours/standstill" require "behaviours/runaway" require "behaviours/doaction" require "behaviours/panic" require "behaviours/wander" require "behaviours/chaseandattack" local MAX_CHASE_TIME = 60 local MAX_CHASE_DIST = 40 local BatBrain = Class(Brain, function(self, inst) Brain._ctor(self, inst) end) lo...
module 'mock_edit' -------------------------------------------------------------------- local handleSize = 80 local handleArrowSize = 12 local handlePad = 15 -------------------------------------------------------------------- ---Handles -------------------------------------------------------------------- CLASS: Transl...
object_tangible_food_generic_drink_breath_of_heaven = object_tangible_food_generic_shared_drink_breath_of_heaven:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_drink_breath_of_heaven, "object/tangible/food/generic/drink_breath_of_heaven.iff")
--[[ ByteStorage, CharStorage, ShortStorage, IntStorage, LongStorage, FloatStorage, DoubleStorage. ]]-- require 'torch' x = torch.IntStorage(10):fill(1) --print("IntStorage default:",torch.IntStorage(10)) --random value print("IntStorage:",x) print(x[5]) -- convert int to double y = torch.DoubleStorage(10):copy(x) ...
--[[/* * (C) 2012-2013 Marmalade. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish,...
local sWidth,sHeight = guiGetScreenSize() -- The variables -- add blips and convert to dxDrawImage function showMap() if map_window and guiGetVisible ( map_window ) == false then guiSetVisible( map_window, true) centerWindow(map_window) addEventHandler ( "onClientGUIClick", root, onMapClick ) addEventHa...
-------------------ModuleInfo------------------- --- Author : jxy --- Date : 2020/02/15 23:58 --- Description : 所有类的基类 --- https://github.com/JomiXedYu/JxCode.LuaSharp ------------------------------------------------ ---@class SysLib.Object ---@field New fun() local Object = class.extends("SysLib.Object"...
---@class CS.UnityEngine.WaitForSeconds : CS.UnityEngine.YieldInstruction ---@type CS.UnityEngine.WaitForSeconds CS.UnityEngine.WaitForSeconds = { } ---@return CS.UnityEngine.WaitForSeconds ---@param seconds number function CS.UnityEngine.WaitForSeconds.New(seconds) end return CS.UnityEngine.WaitForSeconds
-- pretty much stolen from https://learnopengl.com/Advanced-Lighting/Bloom -- i can't figure out who wrote that though so uh thanks whoever local bloom = {} if not OS_MOBILE then local blur = love.graphics.newShader [[ float weight[6] = float[] (0.13298,0.125858,0.106701,0.081029,0.055119,0.033585); float size_x = ...
--@name moneydb DEMO --@shared --@include casino/moneydb/sv_lib.lua if SERVER then dofile('casino/moneydb/sv_lib.lua') moneydb.init() local fetching = {} net.receive('getBalance', function(_, ply) if fetching[ply] then return end fetching[ply] = true moneydb.getBalance(ply, function(success, balance) ...
ENT.Base = "dronesrewrite_base" ENT.Type = "anim" ENT.PrintName = "Ambulance" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "Drones Rewrite" ENT.UNIT = "AMB" ENT.Weight = 250 ENT.Model = "models/dronesrewrite/medic/medic.mdl" ENT.FirstPersonCam_pos = Vector(13, 0, -10) ENT.RenderCam = false ENT.Expl...
-- P51 - [练习 1.40] function fixed_point(f, first_guess) function close_enough(x, y) local abs = math.abs local tolerance = 0.00001 return abs(x - y) < tolerance end function try(guess) local next_guess = f(guess) if close_enough(guess, next_guess) then ...
slot0 = class("BundleLoaderPort") slot0.Ctor = function (slot0, slot1) slot0.pool = slot1 or BundlePool.New() slot0.pool:Bind(slot0) slot0._returnRequest = {} end slot0.GetPrefab = function (slot0, slot1, slot2, slot3, slot4) slot2 = slot2 or "" if slot4 and slot0._returnRequest[slot4] then slot0:ClearReque...
solution "IOCP_01" configurations { "Debug", "Release" } platforms { "Win64" } -- A project defines one build target project "IOCP_01" kind "ConsoleApp" language "C++" files { "**.h", "**.cpp" } configuration "Debug" defines { "DEBUG" } flags { "Symbols" } platforms { "Win64" } configurati...
Object = require "classic" require "dungeon/dungeon" local width = 100 local height = 100 local rooms = 22 local display = { tri = false, tile = true, mst = false } function love.load() dungeon = Dungeon(width,height,rooms) dungeon:generateMap() end function love.update(dt) end function love....
require 'lush'(require 'gruvbox') -- nvim-treesitter if not pcall(require, 'nvim-treesitter') then return end local parser_config = require('nvim-treesitter.parsers').get_parser_configs() parser_config.org = { install_info = { url = '~/Projects/tree-sitter-org', files = { 'src/parser.c', 'src/scanner.cc' ...
TIMERS_VERSION = "1.06" --[[ 1.06 modified by Celireor (now uses binary heap priority queue instead of iteration to determine timer of shortest duration) DO NOT MODIFY A REALTIME TIMER TO USE GAMETIME OR VICE VERSA MIDWAY WITHOUT FIRST REMOVING AND RE-ADDING THE TIMER -- A timer running every second that starts ...
local cwd = (...):gsub("%.[^%.]+$", "") .. "." local cfg_mgzjh_robot = require(cwd .. "config_mgzjh_robot") --[[ { id = 1001, type = 1, -- 'upstream type : 1 = game, 2 = chat', name = '游戏服务器1', -- '名称', host = '127.0.0.1', port = 8861, visibility = 1, -- '可见性,1=正式服,2=...
local TreeSitter = require("refactoring.treesitter.treesitter") local Typescript = require("refactoring.treesitter.langs.typescript") local Cpp = require("refactoring.treesitter.langs.cpp") local go = require("refactoring.treesitter.langs.go") local Lua = require("refactoring.treesitter.langs.lua") local Python = requi...
-- -- c_water.lua -- local textureVol, textureCube local g_Timer function enableWater () -- Version check if getVersion ().sortable < "1.1.0" then outputChatBox( "Resource is not compatible with this client." ) return end -- Create shader myShader, tec = dxCreateShader ( "water.fx" )...
-- -- Register lua controller and lua tube for Magic pen -- local o2b_lookup = { ['0'] = '000', ['1'] = '001', ['2'] = '010', ['3'] = '011', ['4'] = '100', ['5'] = '101', ['6'] = '110', ['7'] = '111', } local o2b = function(o) return o:gsub('.', o2b_lookup) end local d2b = function(d) return o2b(string.forma...
--白泽球的增援 function c22221202.initial_effect(c) c:SetUniqueOnField(1,0,22221202) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c22221202.target) e1:SetO...
--[[ EVDevice Represents a single libevdev device You can create a blank one, and fill it in, as if creating one for event injection Or you can create one from a filename Or you can create one from an existing file descriptor --]] local ffi = require("ffi") local bit = require("bit") local band, bor = bit.band, ...
TLua = { content = nil, data = nil, exportedData = nil, } function TLua.checkContent() if string.sub(TLua.content, -5) == '.tlua' then TLua.content = TLua.getFileContent(TLua.content) end end function TLua.getFileContent(filename) local handler = assert(io.open(filename, 'r')) loca...
local I = require(script.Parent.Parent.Types) local Util = require(script.Parent.Parent.Parent.Shared.Util) local Lens = require(script.Parent.Lens) local Constants = require(script.Parent.Parent.Constants) local LensCollection = {} LensCollection.__index = LensCollection function LensCollection.new(rocs) return set...
TOOL.Category = "Construction" TOOL.Name = "#tool.wheel.name" TOOL.Command = nil TOOL.ConfigName = "" TOOL.ClientConVar[ "torque" ] = "3000" TOOL.ClientConVar[ "friction" ] = "1" TOOL.ClientConVar[ "nocollide" ] = "1" TOOL.ClientConVar[ "forcelimit" ] = "0" TOOL.ClientConVar[ "fwd" ] = "8" -- Forward ke...
-- uncomment to run unit tests -- require 'skeletor.unittests.run' -- load the skeletor module with property adjustments local Skeletor = require('skeletor.skeletor') skeletor = Skeletor({ boundariesCalculate = true, boundariesShow = true, shapeShow = true, shapeMode = "fill" }) opts = { x = 400, y = 200, angl...
mapFields = require "lib/mapFields" selection = self.ask_menu("What do you want from me?", { [0] = "Gather up some information on the hideout.", [1] = "Take me to the hideout.", [2] = "Nothing." }) if selection == 0 then self.say("I can take you to the hideout, but the place is infested with thugs loo...
Projectile = GameObject:extend() function Projectile:new(area, x, y, opts) Projectile.super.new(self, area, x, y, opts) self.s = opts.s or 2.5 self.v = opts.v or 200 self.color = attacks[self.attack].color self.collider = self.area.world:newCircleCollider(self.x, self.y, self.s) self.collide...
local python = require "dap-python" python.setup "/usr/bin/python3" vim.api.nvim_set_keymap( "n", "<leader>dn", ":lua require('dap-python').test_method()<CR>", { noremap = true, silent = true } ) vim.api.nvim_set_keymap( "n", "<leader>df", ":lua require('dap-python').test_class()<CR>", { noremap = tru...
SILE.registerCommand("xmltricks:ignore", function (_, content) for token in SU.gtoke(content[1]) do if token.string then SILE.call("define", { command = token.string}, function() end) end end end) SILE.registerCommand("xmltricks:passthru", function (_, content) for token in SU.gtoke(content[1]) do if tok...
local Beam = {} function Beam.initialize(enemy, props) local game = enemy:get_game() local map = enemy:get_map() local hero = map:get_hero() local sprite local movement -- Event called when the enemy is initialized. function enemy:on_created() -- Initialize the properties of your enemy here, -...
local core = l2df or require((...):match("(.-)[^%.]+$") .. "core") assert(type(core) == "table" and core.version >= 1.0, "UI works only with l2df v1.0 and higher") local i18n = core.import "i18n" local fonts = core.import "fonts" local media = core.import "media" local settings = core.import "settings" local Entity = ...
local Object = require("lib.classic.main") local private = require("bin.instances") local Stat = Object:extend() local function createEntry(value, action, reason) reason = reason or "None" assert(type(action) == "string", "'" .. tostring(action) .. "' is not a string.") assert(type(reason) == "string", ...
hydro = { -- The case prefix and postfixes prefix = "shock_box_3d", postfix = "dat", -- The frequency of outputs output_freq = 1e6, -- The time stepping parameters final_time = 0.2, max_steps = 1e6, CFL = 1./3., -- the mesh mesh = { type = "box", dimensions = {10, 10, 10}, xmin = {-0.5...
local rnd = math.random local G = require 'geoip' local function time(f, desc) s = os.clock() f() e = os.clock() print("DESC: " .. desc .. '\t' .. e-s .. 's') end time(function() cnt, err = G.load("ipdb.csv") assert(err == nil) end, "DB load") time(function() for i=1,100000 do local i...
pfUI:RegisterSkin("Options - Video", function () local border = tonumber(pfUI_config.appearance.border.default) local bpad = border > 1 and border - 1 or 1 CreateBackdrop(OptionsFrame, nil, nil, .75) EnableMovable(OptionsFrame) HookScript(OptionsFrame, "OnShow", function() this:ClearAllPoints() this...
------------------------------------- ---------------- Cuffs -------------- ------------------------------------- -- Copyright (c) 2015 Nathan Healy -- -------- All rights reserved -------- ------------------------------------- -- weapon_cuff_police.lua SHARED -- -- -- -- Strong police...
local cjson = require "cjson" local utils = require "kong.tools.utils" local helpers = require "spec.helpers" local pl_path = require "pl.path" local pl_file = require "pl.file" local pl_stringx = require "pl.stringx" local FILE_LOG_PATH = os.tmpname() describe("Plugin: file-log (log)", function() local client se...
--[[Improved by Cit, You can press a key to respawn, and you don't lose your animation.]] --[[Good for places with lots of explosions or things that would otherwise kill you in normal math.huge godmode.]] --[[ Press p to turn on godmode. Quickly doubletap p to respawn. ]] -------------------------------------------...
--!A cross-platform build utility based on Lua -- -- 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...
-- lua扩展 -- table扩展 -- 返回table大小 table.size = function(t) local count = 0 for _ in pairs(t) do count = count + 1 end return count end -- 判断table是否为空 table.empty = function(t) return not next(t) end -- 返回table索引列表 table.indices = function(t) local result = {} for k, v in pairs(t) do table.i...
-- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local lualine_require = require 'lualine_require' local modules = lualine_require.lazy_require { default_config = 'lualine.components.diagnostics.config', sources = 'lualine.components.diagnostics.sources', highlight = 'lualine.highl...
require "json" require "nn" require "paths" require "torch" local models = {} local function LoadNNs(hero) local path = "data/" .. hero .. "/nets/" if not paths.dirp(path) then return false end for net in paths.iterfiles(path) do local parts = net:gmatch("[^_]+") local team = tonumber(parts()) local ty...
local F, C = unpack(select(2, ...)) C.themes["Blizzard_BlackMarketUI"] = function() local r, g, b = C.r, C.g, C.b F.StripTextures(BlackMarketFrame) BlackMarketFrame.MoneyFrameBorder:SetAlpha(0) F.StripTextures(BlackMarketFrame.HotDeal) F.CreateBG(BlackMarketFrame.HotDeal.Item) BlackMarketFrame.HotDeal.Item.Icon...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildFire_pb', package.seeall) local BCEGUILDFIRE = protobuf.Descriptor(); local BCEGUILDFIRE_USERID_FIELD = protobuf.FieldDescriptor(); BCEGUILDFIRE_USERID_FIELD.name = "userid" BCEGUILDFIRE_USERID_FIELD.full_name = ".com.xinq...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
local Plug = vim.fn['plug#'] vim.call('plug#begin', '~/.config/nvim/plugged') ----------------------------------- -- THEMES -- ----------------------------------- Plug 'bluz71/vim-nightfly-guicolors' ----------------------------------- -- SYNTAX HL COMPLETION LINTER -- ----------------------...
forge.clear() carHeight = math.random(10, 20) / 100 carWidth = math.random(100, 125) / 100 wheelArchHeight = math.random(0, 10) / 100 wheelHeight = 0.3 windshieldHeight = math.random(50, 100) / 100 forge.build("Vehicles/body_standard", {0, -carHeight, 0}, {0, 0, 0}, {carWidth, 1, 1}) randomFronts = { "Vehicles/body_...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local LSM = LibStub('LibSharedMedia-3.0') local Masque = LibStub('Masque', true) --Cache global variables --Lua functions local _G = _G local tonumber, pairs, ipairs, error, unpack, select, tostring = tonumber, pair...
local BasePlugin = require "kong.plugins.base_plugin" local init_worker = require "kong.plugins.ip_restriction.init_worker" local access = require "kong.plugins.ip_restriction.access" local IpRestrictionHandler = BasePlugin:extend() function IpRestrictionHandler:new() IpRestrictionHandler.super.new(self, "ip_restri...
function pcl_text(txt, options) local _center,_chars,_w,_x,_y,_col,_stroke,_shadow = options and options.center,#txt,#txt*4,(options and options.x) or 0,(options and options.y) or 0,(options and options.col) or 7,(options and options.stk),options and options.shd if _center then _x = (127-_w)/2 end if _str...
function widget:GetInfo() return { name = "Loop Select", desc = "Selects units inside drawn loop (Hold meta to draw loop)", author = "Niobium", version = "v1.1", date = "Jul 18, 2009", license = "GNU GPL, v2 or later", layer = 0, enabled = true -- loaded by defa...
if not modules then modules = { } end modules ['font-syn'] = { version = 1.001, comment = "companion to font-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- todo: subs in lookup...
local protobuf = require("pb") local protoc = require("Network.Proto.protoc") local tmProto = require("Network.Protos") local all_proto_files = {} local all_loaded_protos = {} local M = {} function M.Register(protos) all_proto_files = protos or {} protoc.unknown_import = function(self, module_name) f...
PROPERTIES = {year=0, month=0, day=0, hour=0, min=0, sec=0} totalTime = 0 startTime = 0 isWorkOvertime = false YYYY = 2021 MM = 1 DD = 5 H = 8 M = 0 S = 0 function Initialize() stringDate = tolua.cast(SKIN:GetMeter("Date"), "CMeterString") stringHour = tolua.cast(SKIN:GetMeter("Hour"), "CMeterString") stringMinut...
local uv = require "lluv" local host = host or "127.0.0.1" local port = port or "8384" local function write(s, data, cb) local ok, err = s:write(data, cb) if not ok then print("write return error :", err) os.exit(-1) end return true end local function on_write(cli, err,...) if err then print("...
BigWigs3DB = nil BigWigsIconDB = { } BigWigsStatsDB = nil
function nether_sword(keys) local caster = keys.caster local target = keys.target local ability = keys.ability if caster:IsRealHero() then local damage = ability:GetSpecialValueFor("max_hp_percent") / 100 * target:GetMaxHealth() local damage_table = { victim = target, ...
local world = require 'world' local quads = require 'quads' -- maps local map_01 = require 'maps.map_05' -- local map_02 = require 'maps.map_02' -- environment tilesets local tileset = love.graphics.newImage('tileset.png') tileset:setFilter('nearest', 'nearest', 0) local tilesetQuads = quads:loadQuads(tileset, 1, 6) ...
local class = require 'ext.class' local table = require 'ext.table' local Binary = require 'symmath.op.Binary' local wedge = class(Binary) wedge.precedence = 4 wedge.name = '/\\' -- copied from mul -- is this in add as well? put in parent class? function wedge:flatten() for i=#self,1,-1 do local ch = self[i] if...
-- Lit nodes. minetest.register_node("greek:fire_bowl", { description = "Fire Bowl", drawtype = "mesh", mesh = "greek_fire_bowl.obj", tiles = {"greek_fire_bowl.png", "blank.png"}, inventory_image = "greek_fire_bowl_inv.png", paramtype = "light", sunlight_propagates = true, paramtype2 = ...
----------------------------------- -- Ability: Healing Waltz -- Removes one detrimental status effect from target party member. -- Obtained: Dancer Level 35 -- TP Required: 200 -- Recast Time: 00:00:15 ----------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------...
local syntax = require "core.syntax" syntax.add { files = { "%.php$", "%.phtml", "%.phps$" }, headers = "^<%?php", comment = "//", patterns = { { pattern = "//.-\n", type = "comment" }, { pattern = "#.-\n", type = "comment" }, { pattern = { "/%*", "%*/" }, ...
-- LibShowUIPanel-1.0.lua -- @Author : Dencer (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 6/15/2021, 11:20:01 PM -- local MAJOR, MINOR = "LibShowUIPanel-1.0-KkthnxUI", 5 ---@class LibShowUIPanel-1.0 local Lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not Lib then return end if WOW_PROJECT...
vim.g.python3_host_prog = vim.fn.expand('~/.config/nvim/venv/bin/python3') -- plugs!! local plug = require('plug') local plug_dir = vim.fn.expand('~/.config/nvim/plugs') plug .start(plug_dir) .install('airblade/vim-gitgutter') .install('crockeo/find-pytest.nvim') .install('neovim/nvim-lspconfig') ....
--- @ignore CLGAMEMODESUBMENU.base = "base_gamemodesubmenu" CLGAMEMODESUBMENU.priority = 96 CLGAMEMODESUBMENU.title = "submenu_appearance_shop_title" function CLGAMEMODESUBMENU:Populate(parent) local form = vgui.CreateTTT2Form(parent, "header_shop_settings") form:MakeHelp({ label = "help_shop_key_desc" }) fo...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmVantagemItem() local obj = GUI.fromHandle(_obj_newObje...
-- v. 0.2 -- Push subtitles to clipboard -- in linux needs xsel or xclip to work -- -- default keybinding to start/stop: Y -- verify which command to use (false if none is found) local clipboard = package.config:sub(1,1) == '\\' and 'clip.exe' or -- Windows (pcall(function () io.popen('pbcopy'):close(...
AddCSLuaFile() ENT.Type = "point" util.PrecacheSound("ZMPower.PhysExplode_Buildup") util.PrecacheSound("ZMPower.PhysExplode_Boom") function ENT:DelayedExplode(delay) self:SetSolid( SOLID_NONE ) self:AddEffects( EF_NODRAW ) self:SetMoveType( MOVETYPE_NONE ) self:CreateDelayEffects(delay) self...
function love.conf(t) t.window.width = 100 * 6 t.window.height = 100 * 6 end
return {'asfa','asfalt','asfaltbaan','asfaltbestrating','asfaltbeton','asfaltcentrale','asfalteren','asfaltering','asfalthelling','asfaltjeugd','asfaltlaag','asfaltlucht','asfaltpapier','asfaltspreider','asfaltweg','asfaltdakwerk','asfaltjungle','asfaltpad','asfaltfabriek','asfaltfietspad','asfaltverharding','asfaltbek...
/*============================================================================================== Expression Advanced: Entitys. Creditors: Rusketh, Oskar94 ==============================================================================================*/ local LEMON, API = LEMON, LEMON.API local Core = API:GetComponent...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin local category = {} local delay = 0 category.name = "MOTD" category.material = "serverguard/menuicons/icon_motd.png" category.permissions = "Manage MOTD" f...
local lib, oldminor = LibStub:NewLibrary("tekKonfig-TopTab", 1) if not lib then return end oldminor = oldminor or 0 function lib:activatetab() self.left:ClearAllPoints() self.left:SetPoint("TOPLEFT") self.left:SetTexture("Interface\\OptionsFrame\\UI-OptionsFrame-ActiveTab") self.middle:SetTexture("Interface\\Opt...
---------------------- -------------------- -- Table Functions ---------------- -------------- ------------ ---------- -------- ------ ---- -- ------------------ -- Private Functions -------- ------ ---- -- -- Insert element property into `t` -- based on index type. -- -- @private -- Note: assumes `t` is a table. l...
local penisx = -600 local penisy = -400 function onCreate() -- le bg fuckin shit makeLuaSprite('bg', 'bgs/syn/SynTech', -400, -300); scaleObject('bg',0.7,0.7); setLuaSpriteScrollFactor('bg', 0.9, 0.9); makeLuaSprite('wires', 'bgs/syn/SynTechwires', -500, -70); scaleObject('wires',0.7,0.7); setLuaSpriteScrollFac...
local t = require('luatest') local log = require('log') local Cluster = require('test.luatest_helpers.cluster') local server = require('test.luatest_helpers.server') local pg = t.group('no_quorum', {{engine = 'memtx'}, {engine = 'vinyl'}}) pg.before_each(function(cg) local engine = cg.params.engine cg.cluster...
require "busted" local DurstenfeldShuffle = require "DurstenfeldShuffle" describe("Durstenfeld Shuffle | ", function() test("Shuffle zero element; Should Return zero element", function() -- Arrange local t1 = {} -- Act local t2 = DurstenfeldShuffle:shuffle(t1) -- Assert assert.is.same(t1, t2)...