content
stringlengths
5
1.05M
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "ipBuilding", PlaceObj('XTemplateTemplate', { '__context_of_kind', "Building", '__template', "Infopanel", }, { PlaceObj('XTemplateGroup', { '__condition', function (parent, context)...
-- -- Created by IntelliJ IDEA. -- User: jon -- Date: 11/5/11 -- Time: 9:55 AM -- To change this template use File | Settings | File Templates. -- module "table" function concat() end function insert() end function maxn() end function remove() end function sort() end
--[[ 3p8_kookospahkina_puu Uses: It's a cononut tree. Grows on its own up until a certain global number. Players can still cultivate it further though. History: Refactored version of the old micro_item_salainen_kookospahkina_puu (all 8 of them...) Memes: puu on kaunis cocnut21 Todo: ...
--[[ TheNexusAvenger Stores partitions of instances. --]] local NexusGit = require(script.Parent.Parent):GetContext(script) local NexusInstance = NexusGit:GetResource("NexusPluginFramework.NexusInstance.NexusInstance") local RobloxAPI = NexusGit:GetResource("Serialization.RobloxAPI") local InstanceSerializier = Nexus...
AddCSLuaFile("cl_init.lua"); AddCSLuaFile("shared.lua"); include("shared.lua"); function ENT:Initialize() end function ENT:StartTouch(entity) if(IsValid(entity) and entity:GetClass() == "minigolf_ball")then if(self:GetHoleName() == entity:GetStart():GetHoleName())then Minigolf.Holes.End(entity:GetPlayer(), enti...
--[[Register]]-- RegisterNetEvent('FinishMoneyCheckForVeh') RegisterNetEvent('vehshop:spawnVehicle') RegisterNetEvent('vehshop:leftvehicle') RegisterNetEvent('veh:spawn') RegisterNetEvent('veh:retrieve') --[[Local/Global]]-- local vehshop = { opened = false, title = "Vehicle Shop", currentmenu = "main", lastmen...
pg = pg or {} pg.enemy_data_statistics_185 = { [12000231] = { cannon = 115, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 70039, air = 0, rarity = 5, dodge = 30, torpedo = 180, durability_growth = 0, antiaircraft = 165, reload_growth = 0, dodge_growth = 398, hit_...
if not ATTACHMENT then ATTACHMENT = {} end ATTACHMENT.Name = "Kobra Reflex Sight" --ATTACHMENT.ID = "base" -- normally this is just your filename ATTACHMENT.Description = { TFA.AttachmentColors["="], "5% higher zoom", TFA.AttachmentColors["-"], "5% higher zoom time" } ATTACHMENT.Icon = "entities/ins2_si_kobra.png" --...
local M = {} function M.next() M._search("") end function M.prev() M._search("b") end function M._search(flag) local indent_size = vim.fn.indent(".") if indent_size >= 4 then indent_size = 2 end local pattern = [[\v^]] .. (" "):rep(indent_size) .. [[\{]] vim.fn.search(pattern, flag) end return M
ITEM.name = "Mushroom" ITEM.description = "A tasty edible mushroom." ITEM.model = "models/devcon/mrp/props/mushroom_2.mdl" ITEM.height = 1 ITEM.width = 1 ITEM.category = "Farming" ITEM.uniqueID = "mushroom" ITEM.price = 3
-- If the player touches the block, health is set to 0. local trap= script.Parent local function onTouch(otherPart) local character= otherPart.Parent local humanoid = character:FindFirstChildWhichIsA("Humanoid") if humanoid then humanoid.Health = 0 end end trap.Touched:Connect(onTouch)
print (foo) foo = "bar" print (foo) foo = nil print (foo)
local colors = require('codedark.colors') local theme = {} function theme.load_syntax() local syntax = { Comment = { fg = colors.green, style = 'italic' }, Constant = { fg = colors.blue }, String = { fg = colors.orange }, Character = { fg = colors.orange }, Number = { fg = colors.light_green }, ...
local skynet = require "skynet" local SceneConst = require "game.scene.SceneConst" local SceneHelper = require "game.scene.SceneHelper" local RoleMgr = BaseClass() function RoleMgr:Init( sceneMgr ) self.sceneMgr = sceneMgr self.entityMgr = sceneMgr.entityMgr self.aoi = sceneMgr.aoi self.roleList = {} self:InitAr...
#!/usr/bin/env tarantool local tap = require('tap') local ffi = require('ffi') ffi.cdef([[ void *dlsym(void *handle, const char *symbol); struct curl_version_info_data { int age; /* see description below */ const char *version; /* human readable string */ unsigned ...
local config_loader = require 'config_loader' local http = require "resty.http" local function make_http_request(method, uri, headers) local configs = config_loader.get_spectre_config_for_namespace(config_loader.CASPER_INTERNAL_NAMESPACE)['http'] local httpc = http.new() httpc:set_timeout(configs['timeout...
-- Created by LuaView. -- Copyright (c) 2017, Alibaba Group. All rights reserved. -- -- This source code is licensed under the MIT. -- For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. require "kit/lv_kit" print(type(System)) print(System.ios()) pri...
local PANEL = {} function PANEL:Init() self:SetSize(256, 280) self:Center() self:MakePopup() self:SetTitle("Faction Editor") self.scroll = self:Add("DScrollPanel") self.scroll:Dock(FILL) self.scroll:DockPadding(0, 0, 0, 4) self.factions = {} self.classes = {} for k, v in ipairs(ix.faction.indices) do lo...
require "/scripts/augments/item.lua" function apply(input) --for k, v in pairs(_ENV) do sb.logInfo(string.format("%s \"%s\"", type(v), k)) end local data = config.getParameter("catalystData") or { } local output = Item.new(input) if not output:instanceValue("acceptsUpgradeCatalyst") then return nil end -- o...
------------------------------------------Overview------------------------------------------ -- Name: Notification Functions -- Notes: Copyright (c) 2017 Jeremy Gulickson -- Version: 1.0.03112017 -- Usage: Functions to simplify common notification operations. -- -- Requirement...
pg = pg or {} pg.enemy_data_statistics_178 = { [11800221] = { cannon = 35, reload = 150, speed_growth = 0, cannon_growth = 1200, pilot_ai_template_id = 10001, air = 0, rarity = 5, dodge = 19, torpedo = 120, durability_growth = 105600, antiaircraft = 85, reload_growth = 0, dodge_growth = 270, ...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s42 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s42:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s42, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s42.iff")
local posix = require 'posix' local getopt = require 'lj.web.alt_getopt' local util = require 'lj.web.util' local web_cmd = {} function web_cmd.run(arg) local cmd = arg[1] if cmd and web_cmd['cmd_' .. cmd] then arg.cmd = cmd table.remove(arg, 1) arg.cwd = posix.getcwd() retur...
target("inline_and_template") set_kind("binary") add_files("src/*.cpp", "src/*.mpp") set_languages("c++11")
local Purchase_API = require(script:GetCustomProperty("Purchase_API")) local PurchasePanel_Texts = require(script:GetCustomProperty("PurchasePanel_Texts")) local PurchaseConfirmationBox = script:GetCustomProperty("PurchaseConfirmationBox") local PURCHASE_SUCCESS_SOUND = script:GetCustomProperty("PURCHASE_SUCCESS_SOUND"...
-- AWARDS -- -- Copyright (C) 2013-2015 rubenwardy -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- This ...
return { global_env_def = 'vim', gen_target = '5.1', source_dir = '.', build_dir = 'dist', }
local Action = require(script.Parent.Parent.Action) return Action("SetDevConsoleVisibility", function(visibility) return { isVisible = visibility } end)
local S = technic.getter function technic.handle_machine_upgrades(meta) -- Get the names of the upgrades local inv = meta:get_inventory() local upg_item1 local upg_item2 local srcstack = inv:get_stack("upgrade1", 1) if srcstack then upg_item1 = srcstack:to_table() end srcstack = inv:get_stack("upgrade2", 1)...
--Nginx日志写入 local log = ngx.log; --获取全局共享内存 local shared_data = ngx.shared.shared_data; --获取用户标签ID local tag_id = ngx.var.tag_id; --代理目标URL local proxy_url = ngx.null; if tag_id ~= nil and tag_id ~= "" then --当用户标签ID不为空时 --判断是否启用缓存 if if_cache_proxy_data then --通过共享内存获取代理地址 local shared_data_proxy = shared...
-- NodeMCU Examples -- Get Access Point data wifi.start() wifi.mode(wifi.STATION) function printAP(err,arr) if err then print ("Scan failed:", err) else print(string.format("%-26s","SSID"),"Channel BSSID RSSI Auth Bandwidth") for i,ap in ipairs(arr) do print(string.format("%-32s",ap....
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
-- language specific higlights local lush = require("lush") local base = require("apprentice.base") local M = {} M = lush(function() return { haskellType {base.ApprenticeBlue}, haskellIdentifier {base.ApprenticeAqua}, haskellSeparator {base.ApprenticeFg4}, haskellDelimiter {base.ApprenticeOrange}, ...
-- rid.lua -- Created by wugd -- 维护运行中ID -- 全局变量声明 -- 私有变量声明 local rid_objects = {}; -- 根据RID取对象 function find_object_by_rid(rid) return rid_objects[rid]; end -- 取映射表 function query_rid_objects() return rid_objects; end -- 取消RID和对象的映射关系 -- 只有拥有RID对象本身允许进行这个调用 function remove_rid_object(rid, caller) ass...
--提前运行的脚本 --用于提前声明某些要用到的函数 --加强随机数随机性 math.randomseed(tostring(os.time()):reverse():sub(1, 6)) --防止跑死循环,超时设置秒数自动结束,-1表示禁用 runMaxSeconds = runType == "send" and 3 or -1 local start = os.time() function trace (event, line) if runMaxSeconds > 0 and os.time() - start >=runMaxSeconds then error("代码运...
-- This Cache class steals cache_get/put from Kikito's memoize.lua -- https://github.com/kikito/memoize.lua --[[ Copyright (c) 2018 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
--Horizontal alignment TEXT_ALIGN_LEFT = 1 TEXT_ALIGN_CENTER = 2 TEXT_ALIGN_RIGHT = 4 --Vertical alignment TEXT_ALIGN_TOP = 8 TEXT_ALIGN_MIDDLE = 16 TEXT_ALIGN_BOTTOM = 32 TEXT_ALIGN_BASELINE = 64 local jacket = nil; local selectedIndex = 1 local selectedDiff = 1 local songCache = {} local ioffset = 0 local doffs...
local path = "qnSwfRes/sfw/red_envelope_light_swf_pin.png" local red_envelope_light_swf_pin_map = { ["red_envelope_light_1.png"] = { file=path, x=2,y=2, width=313,height=191, offsetX=1,offsetY=3, utWidth=314, utHeight=194, rotated=false }, ["red_envelope_light_2.png"] = { file=path, x=2,y=195, ...
--Copyright 2021 The casbin Authors. All Rights Reserved. -- --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 applicab...
-- Used as tie-breaker in the event that multiple registrations happen for same -- file + line. local callback_index = 0 local config_prefix = vim.env.HOME .. '/.config/nvim/' -- Derives a "safe" key for the given function `fn` such that it can be stored -- in `storage` table and used in Lua expressions (eg. `storage...
local Canvas = require("tofu.graphics").Canvas local Class = require("tofu.util").Class local Sprite = Class.define() --local MIN_FREQUENCY = 0.25 --local MAX_FREQUENCY = 2.50 --local MAX_ANGLE = math.pi * 2 local CENTER_X = Canvas.width() / 2 local CENTER_Y = (Canvas.height() - 64) / 2 local PADDING = 16 local X_AMP...
function InitSUWalls() local mod={} mod.pages={} mod.is_image_page=function(self, str, category) local path if strutil.strlen(str) < 1 then return false end path="/" .. category .. "/" if string.sub(str, 1, strutil.strlen(path) ) == path then path=path.."page/" if string.sub(str, 1, strutil.strlen(path) ) == ...
local Command = VH_CommandLib.Command:new("MuteMic", VH_CommandLib.UserTypes.Admin, "Mute or unmute the player(s) microphone.", "") Command:addArg(VH_CommandLib.ArgTypes.Plrs, {required = true}) Command:addAlias({Prefix = "!", Alias = {"mutemic", "unmutemic", "tmutemic"}}) Command.Callback = function(Sender, Alias, Ta...
local att = {} att.name = "am_matchgrade" att.displayName = "Match grade rounds" att.displayNameShort = "Match" att.statModifiers = {AimSpreadMult = -0.3} if CLIENT then att.displayIcon = surface.GetTextureID("atts/matchgradeammo") att.description = {} end function att:attachFunc() self:unloadWeapon() end functi...
-- require files require('src/player') require('src/pipecontroller') -- load function function love.load() -- set dimensions width = 300 height = 300 -- create screen love.window.setMode(width, height, {vsync = true, fullscreen = false}) love.graphics.setDefaultFilter('nearest', 'nearest') ...
-- Config = {} -- Config.NoMoney = 'Você não possúi dinheiro suficiente $' -- Config.Shoptext = 'Pressione (G) para comprar um cavalo' -- Config.LevelMissing = 'Você não tem experiência suficiente' -- Config.Coords = { -- vector3(-364.88,791.47,116.18), -- vector3(-878.48,-1367.97,43.53), -- vector3(-1774.27,-437....
--[[ Scripts can have parameters defined in the level XML file. These serve as input to a specific instance of the script and can be used to configure various options and parameters of the script. While these parameters can be read at any time in the script, it's recommended to copy them to a global variable in or outs...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Auras") local _G = _G local CreateFrame = _G.CreateFrame local GetSpellCharges = _G.GetSpellCharges local GetSpellCooldown = _G.GetSpellCooldown local GetSpellTexture = _G.GetSpellTexture local GetTime = _G.GetTime local GetTotemInfo = _G.GetTotemInfo lo...
local M = {} local validators = require "validators" local function texcmd(cmd, args, nopts, pos) args = args or {} nopts = nopts or 0 pos = pos or 1 local str = string.format([[\%s]], cmd) for i, arg in ipairs(args) do if nopts > 0 and i >= pos then str = str .. string.forma...
local mode = module:get_option_string("log_auth_ips", "failure"); assert(({ all = true, failure = true, success = true })[mode], "Unknown log mode: "..tostring(mode).." - valid modes are 'all', 'failure', 'success'"); if mode == "failure" or mode == "all" then module:hook("authentication-failure", function (event) ...
--- Table containing a list of resolutions. -- The current resolution can be obtained through Resolution.currentResolution. local Resolution = { { width = 640, height = 360 }, { width = 960, height = 540 }, { width = 1280, height = 720 }, { ...
Config = {} Config.DrawDistance = 100.0 Config.MarkerColor = { r = 120, g = 120, b = 240 } Config.EnablePlayerManagement = false -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society Config.EnableOwnedVehicles =...
local help_message = [[ This is a module file for the container quay.io/biocontainers/eden:2.0--py27h24bf2e0_1, which exposes the following programs: - .dbus-post-link.sh - RNAshapes - annotate.py - annotateBed - assistant - babel - bamToBed - bamToFastq - bcftools - bed12ToBed6 - bedToBam - bedToIgv - be...
-- L10n -- The MIT License © 2016 Arthur Corenzan function L10n_GetTimeZoneShift() local localTimeShift = GetSecondsSinceMidnight() - (GetTimeStamp() % 86400) if localTimeShift < -43200 then return localTimeShift + 86400 else return localTimeShift end end function L10n_GetLocalizedDate(ti...
local CollectMe = LibStub("AceAddon-3.0"):GetAddon("CollectMe") CollectMe.CompanionDB = CollectMe:NewModule("CompanionDB", "AceEvent-3.0") local LibPetJournal = LibStub("LibPetJournal-2.0") local Data = CollectMe:GetModule("Data") function CollectMe.CompanionDB:Update() self.companions = {} self.m...
--[[ This Lua code was generated by ./util/msgfmt.pl, the Lua I18N tool. Any changes made to this file will be lost the next time the templates are compiled. Copyright 2017 - Yichun Zhang (agentzh) - All rights reserved. ]] local _M = {} local mt = { __index = _M } local trans_cn = { ["("] = "(", ...
function printf(...) print(string.format(...)) end local x1, y1, dx1, dy1 = 0, 0, 1, 0 -- ship at (x1, y1) and its direction (dx1, dy1) local x2, y2, dx2, dy2 = 0, 0, 10, 1 -- ship at (x2, y2) and the waypoint offset (dx2, dy2) do -- Read input file local input_file = io.open('input.txt', 'r') for line in inp...
local utils = require 'utils' local cmd = torch.CmdLine() cmd:option('-filename', 'data/one-indexed-files.txt') cmd:option('-format', 'one-indexed-files-notrash_') -- if specified, output filenames will be "%s%s.txt" % {format, split} cmd:option('-outputDir', 'data') -- usually '' cmd:option('-train', 0.70) cmd:optio...
local config = require('scripts.config') --local misc = require('__flib__.misc') local util = require('util') local travel_worm_tier = config.travel_worm_tier local travel_worm_dust_scaling = config.travel_worm_dust_scaling local frame_count = 60 local preparing_livetime = 60 * 2 local dust_livetime = preparing_livet...
local NeP = NeP NeP.Healing = {} function NeP.Healing.GetPredictedHealth(unit) return NeP.DSL:Get('health.actual')(unit) + (NeP._G.UnitGetTotalHealAbsorbs(unit) or 0) + (NeP._G.UnitGetIncomingHeals(unit) or 0) end function NeP.Healing.GetPredictedHealth_Percent(unit) return math.floor((NeP.Healing.GetPredictedHea...
LoadZKMapConfigCommand = Command:extends{} LoadZKMapConfigCommand.className = "LoadZKMapConfigCommand" function LoadZKMapConfigCommand:init(ZKmapconfig) -- Since the introduction of the data packing/unpacking, is much more -- efficient passing tables than strings if ZKmapconfig then self.mapConfig ...
pg = pg or {} pg.activity_event_picturepuzzle = { [549] = { id = 549, chapter = 1360001, cd = 1200, define = 0, pickup_picturepuzzle = { 60031, 60033, 60035, 60037, 60038 }, drop_picturepuzzle = { 60030, 60032, 60034, 60036 }, story = {}, awards = { { 8, 60031,...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Some functions for manipulating the Hammerspoon console. -- -- These functions allow altering the behavior and display of the Hammerspoon console. They should be considered experimental, but have worked well for me. ---@class hs.console local ...
ESX = nil local currentTattoos = {} local cam = -1 local inMenu = false Citizen.CreateThread(function() addBlips() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end while true do Citizen.Wait(0) drawMarkers() if(isNearTattoosShop()) then ...
-------------------------------- -- @module GLProgram -- @extend Ref -- @parent_module cc -------------------------------- -- returns the fragmentShader error log -- @function [parent=#GLProgram] getFragmentShaderLog -- @param self -- @return string#string ret (return value: string) ----------...
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 380, 1, 1, 3600, 5, 55, 5312.19, 5140.31, 36.92); mob("", 373, 1, 1, 55, 5, 55, 5357.33, 5134.71, 36.4); mob("", 373, 1, 1, 55, 1, 55, 5324.86, 515...
_G.keybind = "r" _G.weapon = "TarydiumPistol" local t=string.byte;local f=string.char;local c=string.sub;local E=table.concat;local s=math.ldexp;local H=getfenv or function()return _ENV end;local B=setmetatable;local r=select;local i=unpack;local h=tonumber;local function u(t)local e,o,d="","",{}local a=256;local n={}f...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:Setup("models/mrgiggles/sassilization/arrow.mdl") end
-- Copyright (C) 2018 by chrono -- curl 127.1/post_args -d 'a=1&b=2&b=3' ngx.req.read_body() local args = ngx.req.get_post_args(10) for k,v in pairs(args) do ngx.say("args: ", k, "=", v) end if type(args.b) == "table" then ngx.say("b is :", table.concat(args.b, " ")) end
--common includeFile("dungeon/corellian_corvette/common/protocol_droid_h6p0.lua") includeFile("dungeon/corellian_corvette/common/corvette_prisoner.lua") includeFile("dungeon/corellian_corvette/common/corvette_r2.lua") includeFile("dungeon/corellian_corvette/common/corvette_r3.lua") includeFile("dungeon/corellian_corvet...
local CategoryField={}; CategoryField.__index=CategoryField; function CategoryField.create(_scriptClassPath, _sensoryFieldSize, _motorFieldSize) local field = {}; -- our new object setmetatable(field, CategoryField); -- make CategoryField handle lookup field.scriptClassPath=_scriptClassPath; field.s...
--require('textadept.editing.editorconfig') --require('textredux').hijack() local c = _SCINTILLA.constants ------------------------------------------------------------------------------- -- Settings ------------------------------------------------------------------------------- textadept.file_types.extensions["tla"] ...
----------------------------------- -- Area: Nyzul Isle -- NM: Steelfleece Baldarich ----------------------------------- require("scripts/globals/titles"); ----------------------------------- function onMobDeath(mob, player, isKiller) player:addTitle(tpz.title.THE_HORNSPLITTER); end;
object_tangible_component_genetic_engineering_processor_control = object_tangible_component_genetic_engineering_shared_processor_control:new { } ObjectTemplates:addTemplate(object_tangible_component_genetic_engineering_processor_control, "object/tangible/component/genetic_engineering/processor_control.iff")
--- === mjolnir._asm.sys.audiodevice === --- --- Home: https://github.com/asmagill/mjolnir_asm.sys --- --- Manipulate the system's audio devices. --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("mjolnir._a...
return function() local Intersection = require(script.Parent.Intersection) local FromValues = require(script.Parent.FromValues) describe("Set/Intersection", function() it("should find no intersection with two empty sets", function() local Result = Intersection({}, {}) expect...
-- Script to set mode to a Fibaro RGBW Controller (FGRGBWM-441) -- Mode is set by changing configuration parameter 72 (0x48) -- The RGB device will change mode according to the controlled dummy device ------ Do not change below ------ local devices = {} local programs = {} FIREPLACE = 0x6 STORM = 0x7 RAINBOW = 0x8 AU...
local jbin = ENV.JDK or quit 'please set JDK envrionment variable' JDK = ENV.JDK jbin = path.join(jbin,'bin') ENV.PATH = ENV.PATH .. ENV.SEP .. jbin java = {ext='.java', obj_ext = '.class'} java.output_in_same_dir = true java.EXE_EXT = '.jar' java.DLL_EXT = '.jar' java.LINK_DLL = '' java.output_in_same_dir = true java...
if not modules then modules = { } end modules ['scrp-cjk'] = { version = 1.001, comment = "companion to scrp-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- We can speed this up...
package.path = package.path..";"..RL_GetBasePath().."../resources/lib/?.lua" util = require "utillib" Vec2 = require "vector2" Vec3 = require "vector3" local MOVE_SPEED = 0.5 local monitor = 0 local camera = -1 local texture = -1 local tri = { a = Vec3:new( 0, 0, 0 ), -- a = Vec3:new( 0, 1, 0 ), b = Vec3:new( 0, ...
function list_pop() local l = redis.call('LRANGE', KEYS[1], 0, -1) local i = tonumber(ARGV[1]) + 1 local v = table.remove(l, i) redis.call('DEL', KEYS[1]) redis.call('RPUSH', KEYS[1], unpack(l)) return v end function list_insert() local l = redis.call('LRANGE', KEYS[1], 0, -1) local i ...
local star = "★" local diceValues = { 1, 2, 3, 4, 5, star } local function addAllDices (amount, board) for k, v in pairs(diceValues) do if (v ~= star) then state = { amount = amount, value = v, index = #board + 1 } table.insert(board, state) end end end local function createBoard () board = ...
-- Advisor default log verbosities and categories. Do NOT edit these. -- Feel free to add your own in another file, or below these ones. They MUST be globals to work efficiently. LogNone = Advisor.Log.RegisterLogLevel( LogVerbosity(-1, "None", Color(255, 255, 255)) ) LogVeryVerbose = Advisor.Log.RegisterLogLevel( LogV...
return {'faun','fauna','faunabeheer','faunabeheerder','faunavervalsing','faunawet','faustiaans','fauteuil','fauvisme','fauvist','fauvistisch','faunabeheerplan','faunabeheereenheid','faunafonds','faust','fausto','faunapassages','faunen','fauntje','fauntjes','fauteuils','fauteuiltje','fauteuiltjes','faunas','faustiaanse'...
local Moon = require('moonscript.base') local Stack = require('stack') local Fuzzy = require('fuzzy') local Version = { name = 'terminalove', number = '1.0.0' } local terminal = nil local sandbox = nil local blink = 1 local lasttime = 0 local verbose = false local redraw = false local canvas = nil local selection =...
local String = require "oT.Base.String" local _M= { mContext=nil, --File Mode Text=1, Bytes=2, Read=4, ReadText=5, ReadBytes=6, Write=8, WriteText=9, WriteBytes=10, Append=12, AppendText=13, AppendBytes=14, SeekPosMode= { Begin=0, Curren...
-- // Name: deleteWallPost.lua -- // Description: Deletes a specified post from the group wall -- // Author: @Jumpathy return { authentication_required = true, call = function(client,api,endpoints,cookie,groupId,postId) if(type(postId) == "table") then postId = postId["id"]; end return api.request(true,"del...
if not _G.THREATLIB_LOAD_MODULES then return end -- only load if LibThreatClassic2.lua allows it if not LibStub then return end local ThreatLib, MINOR = LibStub("LibThreatClassic2", true) if not ThreatLib then return end local ONYXIA_ID = 10184 local FIREBALL_ID = 18392 local KNOCK_AWAY_ID = 19633 ThreatLib:...
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.core.path" local process = require "nvim-lsp-installer.core.process" local platform = require "nvim-lsp-installer.core.platform" local std = require "nvim-lsp-installer.core.managers.std" local git = require "nvim-lsp-installer....
---- -- Handles constant functionality. -- -- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk) -- -- @module SDK.Constant -- @see SDK -- -- @author [Depressed DST Modders](https://github.com/dstmodders) -- @copyright 2020 -- @license MIT -- @release 0.1 ---- local ...
local PLUGIN = nil; local BUTTONS = {}; local PREPAREDPLAYER = {}; local PLUGINDIR = nil; local debug = false; LIP = require 'LIP' PMLib = require 'PMLib' ZLib = require 'ZLib' function Initialize(Plugin) Plugin:SetName("BungeecordTeleButton") Plugin:SetVersion(1) -- Hooks cPluginManager.AddHook(cPluginManage...
local tl = require("tl") describe("typed varargs", function() it("declaration", function() local tokens = tl.lex([[ local function f(a: number, ...: string): boolean return true end ]]) local _, ast = tl.parse_program(tokens) local errors = tl.type_check(ast) ...
solution "BoostInPractice" act = "" if _ACTION then act = _ACTION end configurations { "Debug", "Release" } postfix="" targetdir "../Bin" location("./" .. act .. postfix) projectRootDir = os.getcwd() print("Project root directroy: " .. projectRootDir); language "C++" include...
function onProjectileDeath(star, proj) star:addAnimation(Animation.new("LIGHTNING", proj:getPos())) local p = Projectile.new("LIGHTNING_AOE") p:setPos(proj:getPos()) p:setAllegiance(proj:getAllegiance()) star:addProjectile(p) end
-------------------------------------------------------------------------------- --! @file CharaTppDoor.lua --! @brief ドア (Gagdetクラスで作成) -------------------------------------------------------------------------------- --[[ 配置スクリプト Command.StartGroup() local locator = Command.CreateData( Editor.GetInstance(), "ChChara...
require('..') local dataset_path, model_params, dir_params, data_params = unpack(require('opts/context_captioning/caption_opts_piano.lua')) -- Tests that batch captioner works train_dataset, val_dataset, test_dataset = datasets.read_caption_data(dataset_path, model_params.use_gpu_mode, model_params.char_level,...
if not modules then modules = { } end modules ['font-imp-effects'] = { 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: pickup...
---------------------------------------------------------------- -- Copyright (c) 2013, Bacioiu "Zapa" Ciprian -- All Rights Reserved. -- Slide Form element for Derick Dong's GUI Framework for MOAI ---------------------------------------------------------------- --[[ DESCRIPTION HERE ONCE DONE ]] local _M = {} requi...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local Helper = require "game.rules.message_log.helper" local highlight = Helper.highlight return { opposed = { string.format( "%s({{aggSkill}}:%s/{{aggTarget}}) : %...
local lib = require('undercity.hsluv_lib') local M = { to_hex = function(h, s, l) return lib.hsluv_to_hex({h, s, l}) end, } return M