content stringlengths 5 1.05M |
|---|
function date_translator(input, seg)
if (input == "date") then
yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), ""))
end
if (input == "time") then
yield(Candidate("date", seg.start, seg._end, os.date("%H:%M:%S"), ""))
end
if (input == "week") then
yield(Candidate("date", seg.st... |
--
-- Using space:before_replace to resolve replication conflicts.
--
env = require('test_run')
test_run = env.new()
engine = test_run:get_cfg('engine')
SERVERS = { 'autobootstrap1', 'autobootstrap2', 'autobootstrap3' }
-- Deploy a cluster.
test_run:create_cluster(SERVERS, "replication", {args="0.1"})
test_run:wait_f... |
Ambi.Files = Ambi.Files or {}
Ambi.Files.WHITELIST_TYPES = {
[ 'txt' ] = true,
[ 'dat' ] = true,
[ 'json' ] = true,
[ 'xml' ] = true,
[ 'csv' ] = true,
[ 'jpg' ] = true,
[ 'jpeg' ] = true,
[ 'png' ] = true,
[ 'vtf' ] = true,
[ 'vmt' ] = true,
[ 'mp3' ] = true,
[ 'wav' ] =... |
-- Zigbee Driver utilities
local defaults = require "st.zigbee.defaults"
local device_management = require "st.zigbee.device_management"
local ZigbeeDriver = require "st.zigbee"
-- Zigbee Spec Utils
local clusters = require "st.zigbee.zcl.clusters"
local Alarm = clusters.... |
---@class CS.FairyGUI.Utils.ByteBuffer
---@field public littleEndian boolean
---@field public stringTable String[]
---@field public version number
---@field public position number
---@field public length number
---@field public bytesAvailable boolean
---@field public buffer Byte[]
---@type CS.FairyGUI.Utils.ByteBuffer... |
local module = {}
function module.start()
-- ensuring correct ADC mode.
print('Setup: Configuring ADC...')
if adc.force_init_mode(adc.INIT_ADC) then
node.restart()
return -- don't bother continuing, the restart is scheduled
end
-- configure D6 as GPIO to power the TSL2561. This sav... |
--- @type ClickedInternal
local _, Addon = ...
local frameCache = {}
-- Local support functions
--- @param frame table
local function EnsureCache(frame)
if frameCache[frame] ~= nil then
return
end
frameCache[frame] = {
pending = {},
applied = {}
}
end
--- @param register table<string,string>
--- @param p... |
return {[1]={stats={[1]="number_of_additional_traps_to_throw"},name="num_additional_traps",lang={English={[1]={limit={[1]={[1]=1,[2]=1}},text="Minions Throw up to 1 additional Trap"},[2]={limit={[1]={[1]="#",[2]="#"}},text="Minions Throw up to %1% additional Traps"}}}},[2]={stats={[1]="number_of_additional_mines_to_pla... |
-- This is a Wireshark dissector for the Baichuan/Reolink proprietary IP camera protocol.
-- Copy/symlink it into ~/.local/lib/wireshark/plugins/ and restart Wireshark;
-- You can use this to dissect the udp traffic from the camera.
-- Just add the random udp port to the DissectorTable.get("udp.port"):add call at the e... |
include("shared.lua")
ENT.RenderGroup = RENDERGROUP_BOTH
surface.CreateFont( "Farmer_NPC_Font", {
font = "Roboto Lt",
extended = false,
size = 65,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = false,
shadow = fal... |
_SOUNDPATHS =
{
interface =
{
music =
{
title = "sounds/interface_title-theme.ogg",
menu = "sounds/interface_menu-theme.ogg",
},
effects =
{
previous = "sounds/interface_previous-click.ogg",
select = "sounds/interface_select-whoosh.ogg",
},
},
gameplay =
{
music =
{
gameplay = "sounds/interface_gamepl... |
function drawGameWin()
love.graphics.setFont(pixelfontbig)
love.graphics.setColor(0.5, 1, 0.5, 1)
if P1.deaths > P2.deaths then
love.graphics.print(P2.name .. " " .. "wins!",
love.graphics.getWidth()/2 - 150, love.graphics.getHeight()/2 - 200)
else
love.graphics.print(P1.name .. " " .. "wins!",
... |
#!/usr/bin/env lua
-- bind F7 exec magic.cfg
local UPDATE_TIME = 2
local AFK_TIME = 5 * 60 -- seconds
local NAME = "Zzzzz"
local function sleep(n)
os.execute("sleep " .. tonumber(n))
end
local magic_cfg_path = os.getenv("HOME").."/.openarena/baseoa/magic.cfg"
local function write_magic(script)
local fd = io.ope... |
floor_bump = loadtexture("Textures\\Floor_Bump.jpg")
camera = createcamera()
setposition(camera, 0, 8, -20)
setangle(camera, 15, 0)
setclscolor(camera, 20, 20, 20)
setfogenabled(camera, true)
setfogrange(camera, 100)
light = createlight()
setposition(light, -5, 13, -2)
setsize(light, 1, 1, 1)
setcolor(lig... |
SWEP.Base = "weapon_twitch_base"
if SERVER then
AddCSLuaFile ("shared.lua")
SWEP.HoldType = "smg"
end
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.PrintName = "Twitch MP5"
SWEP.Slot = 2
SWEP.IconLetter = "x"
SWEP.ViewModel = "models/weapons/v_smg_mp5.mdl"
SWEP.WorldModel = "mode... |
require("email")
--very helpful project https://github.com/slembcke/debugger.lua
--local dbg = require("debugger")
--function that searches for the last index in the mailbox,
--that is bigger or equal with startIdx.
--if there is no id bigger, it returns startIdx.
local function getLastEmailIdx(connection, startIdx)
... |
-- This file is licensed under the terms of the BSD 2-clause license.
-- See LICENSE.txt for details.
function irc2.player_part(name)
if not irc2.joined_players[name] then
return false, "You are not in the channel"
end
irc2.joined_players[name] = nil
return true, "You left the channel"
end
function irc2.player... |
base_research = nil
base_research =
{
{
Name = "HyperspaceDamageReductionUpgrade",
RequiredResearch = "",
RequiredSubSystems = "",
Cost = 0,
Time = 0,
DisplayedName = "Hyperspace Damage Reduction",
DisplayPriority = 950,
Description = "Enhances the fleet's hyperspace drive systems, reducing the hypers... |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACK... |
-- custom exterior houses
createObject(3583, 2396.4348144531, -1309.4885253906, 27.39999961853, 0, 0, 91.244995117188, 0, 0)
createObject(5341, 2395.0732421875, -1300.662109375, 26.5, 0, 0, 270.67565917969, 0, 0)
createObject(2987, 2387.4599609375, -1294.7462158203, 26.432874679565, 0, 0, 270.67565917969, 0, 0)
... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("NamePlates")
local mod = _NamePlates
function mod:UpdateElement_Elite(frame)
local icon = frame.Elite
local c = UnitClassification(frame.unit)
if ... |
--[[ INFO ]]--
-- Name: Adlibber
-- Version: 0.2.0
-- Dates: 18/08/2013
-- Author: Alex Crawford
-- Notes: See wiki on GitHub.
--[[ S01 - WORD / SENTENCE TABLES ]]--
--[[ S01.1 - Adjectives ]]--
local AdjTable = {
[1] = "good",
[2] = "new",
[3] = "old",
[4] = "great",
[5] = "high",
[6] = "small",
[7] = "larg... |
-----------------------------------------------------
--name : lib/crunch/20_deflate.lua
--description: crunch module, writes deflate prefix, wraps the stream (compression + suffix on close, requires data card)
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : none
---------... |
-- this is the lua ls rename plugin
-- takes a regex search and replaces the search within the entry name with the
-- plain text replace
-- the apply function, which is exported for use as plugin
-- takes the standard plugin parameters, uses it's own set of command line
-- parameters as well
-- plugin parameters:
-- ... |
password = require 'android'.new()
function password.create (me)
me.title = me:textView{
'Enter user name and password:',
size='20sp',textColor='white'
}
me.name = me:editText{'Your UserName',inputType='textPersonName'}
me.password = me:editText{'Your Password',inputType='textPassword... |
local addOnNames, ns = ...;
local RPTAGS = RPTAGS;
local Module = RPTAGS.queue:GetModule(addOnNames, "rpClient");
Module:WaitUntil("CORE_KEYBIND",
function(self, event, ...)
local RPTAGS = RPTAGS;
RPTAGS.utils = RPTAGS.utils or {};
RPTAGS.utils.keybinds = RPTAGS.utils.keybinds or {};
local notify ... |
ObjectiveTrackerFrame:Hide()
HideObjectives = {}
function HideObjectives.toggle()
if ObjectiveTrackerFrame:IsVisible() then
ObjectiveTrackerFrame:Hide()
else
ObjectiveTrackerFrame:Show()
end
end
BINDING_HEADER_HIDEOBJECTIVES = "Hide Objectives"
BINDING_NAME_TOGGLEOBJECTIVES = "Toggle objectives t... |
local _, G = ...
G.AddClassActionSpec('Vanilla', 4, {
[1] = {
spell = 'Sinister Strike',
},
[2] = {
spell = 'Eviscerate',
},
[3] = {
spell = 'Backstab',
},
[4] = {
spell = 'Pick Pocket',
},
[5] = {
spell = 'Stealth',
},
[6] = {
spell = 'Gouge',
},
[7] = {
spell = 'K... |
-----------------------------------------
-- Nimbus Cell
-- 5379
-- Removes AGI Down effect
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/salvage")
-----------------------------------------
function onItemCheck(target)
return salvageUtil.onCellItemCheck(target... |
return {
name = "azure-functions",
fields = {
{ config = {
type = "record",
fields = {
-- connection basics
{ timeout = { type = "number", default = 600000}, },
{ keepalive = { type = "number", default = 60000 }, },
{ https = { type =... |
Player = {}
function Player:load()
PlayerImage = love.graphics.newImage("assets/PolarBear.png")
self.x = love.graphics.getWidth() / 2.34
self.y = love.graphics.getHeight() / 1.62
--[[ It's trial and error, to know what divisor to put. oof
But it's pretty easy to understand it
Both are roughly ... |
local module = {
--[=[
_NAME = '_keys.gridded',
_VERSION = 'the 1st digit of Pi/0',
_URL = 'https://github.com/asmagill/hammerspoon-config',
_LICENSE = [[ See README.md ]]
_DESCRIPTION = [[]],
_TODO = [[
Get rid of hs.alert and do something more like the ... |
prepend_path("RTM_PATH","/usr/local/mybin")
prepend_path{"RTM_PATH","/top/dog10",priority=10}
|
_hx_box_mr = function(x,nt)
res = _hx_o({__fields__={}})
for i,v in ipairs(nt) do
res[v] = x[i]
end
return res
end
|
_is_functions = _is_functions or {}
_to_functions = _to_functions or {}
_push_functions = _push_functions or {}
local fsobject= {
"FsObject",
"Scheduler",
"SchedulerTarget",
-- graphics
"Texture2D",
"Render",
"Window",
-- util
"FsArray",
-- mgr
"TextureMgr",
"ResourceMgr",
"Resource",
-- sce... |
require 'image'
local M = {}
function M.Compose(transforms)
return function(input)
for _, transform in ipairs(transforms) do
input = transform(input)
end
return input
end
end
function M.ColorNormalize(meanstd)
return function(img)
img = img:clone()
for i=1,3 do
... |
MonkeyQuestConfig = {
["碧玉矿洞|落赎"] = {
["m_aQuestList"] = {
["风险投资公司 - false"] = {
["m_bChecked"] = true,
},
["荆棘谷 - true"] = {
["m_bChecked"] = false,
},
["血色修道院 - true"] = {
["m_bChecked"] = false,
},
["克拉兹克的要求 - false"] = {
["m_bChecked"] = true,
},
["恶性竞争 - false"] = {
... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local BitBuffer = require(ReplicatedStorage.Packages.BitBuffer)
return function()
local N = script.Parent.TestN.Value
describe("General tests", function()
it("Should not throw when reading", function()
local buffer = BitBuffer.new()
buffer._buff... |
-- Shared part
--[[---------------------------------------------------------------------------
Sound crash glitch
---------------------------------------------------------------------------]]
local entity = FindMetaTable("Entity")
local plyMeta = FindMetaTable("Player")
local EmitSound = entity.EmitSound
function enti... |
--------------------------------
-- @module EaseExponentialInOut
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseExponentialInOut action. If creation failed... |
SetupProject("Tut_03_CPU_Position_Offset", "cpuPositionOffset.cpp", "data/standard.vert", "data/standard.frag")
SetupProject("Tut_03_Shader_Position_Offset", "vertPositionOffset.cpp", "data/positionOffset.vert", "data/standard.frag")
SetupProject("Tut_03_Shader_Calc_Offset", "vertCalcOffset.cpp", "data/calcOffset.vert... |
ITEM.name = "9x39mm PAB-9"
ITEM.model = "models/lostsignalproject/items/ammo/9x39.mdl"
ITEM.width = 2
ITEM.height = 1
ITEM.ammo = "9x39MM -HP-" // type of the ammo
ITEM.ammoAmount = 60 // amount of the ammo
ITEM.description = ""
ITEM.quantdesc = "A box that contains %s rounds of Hollow-Point 9x39mm ammo. "
ITEM.longde... |
local AR = require(script:GetCustomProperty("AR"))
local AS = require(script:GetCustomProperty("AS"))
local EQUIPMENT = script:FindAncestorByType("Equipment")
local RESOURCE = script:GetCustomProperty("Resource")
local PARENT = script.parent
local originalSize = PARENT:GetScale()
function Tick ()
local owner = E... |
_LUA_VERSION = tonumber(string.sub(_VERSION, 5))
if _LUA_VERSION > 5.1 then
loadstring = load
unpack = table.unpack
function math.log10(x)
return math.log(x, 10)
end
end
if _LUA_VERSION > 5.2 then
function math.pow(x,y)
return x^y
end
end |
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_frmFichaAnima()
local obj = GUI.fromHandle(_obj_newObject... |
#!/usr/bin/env lua
assert(arg, "Run from the shell")
local kind = assert(arg[1], "Specify vision or motion")
dofile'include.lua'
local color = require'util'.color
local status_code
if kind=='motion' then
print(color("==== STARTING MOTION ===",'magenta'))
unix.chdir(ROBOT_HOME)
-- Kill old stuff
local ps = {}
... |
return
{
entities =
{
{"stone-wall", {x = -4.5, y = -4.5}, {dead = 0.4, }},
{"stone-wall", {x = -2.5, y = -4.5}, {dead = 0.4, }},
{"stone-wall", {x = -3.5, y = -4.5}, {dead = 0.4, }},
{"stone-wall", {x = -1.5, y = -4.5}, {dead = 0.4, }},
{"stone-wall", {x = -0.5, y = -4.5}, {}},
{"stone-wall... |
-- AI_Utils - Common AI utility functions.
-- Created by Mikko
--------------------------
AI_Utils = {
}
function AI_Utils:CamperCheckProtectSpot(entity, range)
if(not entity.AI.protectSpot) then
local anchorName = AI.FindObjectOfType(entity:GetPos(), range, AIAnchorTable.COMBAT_PROTECT_THIS_POINT);
if(anchorNa... |
fdf_falldamage= CreateClientConVar("fdf_falldamage", 10)
-- totally unnecessary
SWEP.PrintName = "FDF"
SWEP.Author = "TheAndrew61"
SWEP.Category = "TheAndrew61's SWEPs"
SWEP.Spawnable = false
SWEP.AdminOnly = false
SWEP.DrawWeaponInfoBox = false
-- primary click
SWEP.Primary.ClipSize = -1
SWEP.Primary.Defau... |
-- Node will be called <modname>panel_<subname>
function stairsplus.register_panel(modname, subname, recipeitem, groups, images, description, drop, sounds, sunlight)
--
-- nodes
--
minetest.register_node(modname .. ":panel_" .. subname .. "_bottom", {
description = description,
drawtype = "nodebox",
tiles = i... |
local Type, Version = "CustomMultiLineEditBox", 1
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
-- Lua APIs
local pairs = pairs
-- WoW APIs
local GetCursorInfo, GetSpellInfo, ClearCursor = GetCursorInfo, GetSpellInfo, ClearCurso... |
local F = require("luasnip.nodes.functionNode").F
local lambda = {}
local function _concat(lines)
return table.concat(lines, "\n")
end
local function expr_to_fn(expr)
local _lambda = require("luasnip.extras._lambda")
local fn_code = _lambda.instantiate(expr)
local function fn(args)
local inputs = vim.tbl_map(... |
package("libusbmuxd")
set_homepage("https://github.com/libimobiledevice/libusbmuxd")
set_description("A client library to multiplex connections from and to iOS devices")
set_license("LGPL-2.1")
add_urls("https://github.com/libimobiledevice/libusbmuxd/archive/refs/tags/$(version).tar.gz",
... |
RegisterNetEvent('cnr:active_zone')
RegisterNetEvent('cnr:chat_notify')
local activeZone = 1 -- What zone is currently active
-- DEBUG -
local restarted = {}
AddEventHandler('onResourceStop', function(rn)
restarted[rn] = true
end)
AddEventHandler('onResourceStart', function(rn)
if restarted[rn] then
Tr... |
return {
Name = "kick";
Aliases = {"ki"};
Description = "Kicks a player.";
Group = "Admin";
Args = {
{
Type = "player";
Name = "player";
Description = "The player to be kicked.";
},
{
Type = "string";
Name = "reason";
Description = "The reason for t... |
SILE.units = {
pt = {relative = false, value = 1}
}
SILE.registerUnit = function (unit, spec)
local def = SU.required(spec, "definition", "registering unit " .. unit)
local relative = spec.relative or false
if type(def) == "string" then
local factor, baseunit = string.match(def, "(-?[%d%.]+)%s*([%%%a]+)")
... |
---[[---------------------------------------------------------------------]]---
-- __ __ _ --
-- ____ ____ / /_ ______ ___ ____ _________ / /_ (_)____ --
-- / __ \/ __ \/ / / / / __ `__ \/ __ \/ ___/ __ \/ __ \/ / ___/ --
... |
-- mod-version:2 -- lite-xl 2.0
local common = require "core.common"
local command = require "core.command"
local keymap = require "core.keymap"
local RootView = require "core.rootview"
local opacity_on = true
local use_mousewheel = true
local opacity_steps = 0.05
local default_opacity = 1
local current_opacity = defa... |
function onInit()
-- Used to auto populate skills before the skills tab has been opened.
Debug.console("npc_init.lua: inInit");
local skillsnode = window.getDatabaseNode().createChild("skills");
if skillsnode then
local skillautocreated = skillsnode.createChild("..skillsautogenerated", "number");
if ski... |
local setmetatable, type = setmetatable, type
local exports = {}
local try_ghost_mt = {}
try_ghost_mt.__index = function(t, k)
return setmetatable({}, try_ghost_mt)
end
exports.try = function(t, k)
if "table" == type(t) then
local v = t[k]
if nil ~= v then return v end
end
return setm... |
local jid = require "util.jid";
local have_async, async = pcall(require, "util.async");
local muc_domain_prefix
= module:get_option_string("muc_mapper_domain_prefix", "conference");
-- defaults to module.host, the module that uses the utility
local muc_domain_base
= module:get_option_string("muc_mapper_domain_... |
ITEM.name = "Texture Glue"
ITEM.description = "A long thin container with glue."
ITEM.longdesc = ""
ITEM.model = "models/lostsignalproject/items/repair/glue_b.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.price = 340
ITEM.flatweight = 0.003
ITEM.exRender = true
ITEM.iconCam = {
pos = Vector(-200, 0, 3.2),
ang = Angle(... |
local random = math.random
local function add_pine_needles(data, vi, c_air, c_ignore, c_snow, c_pine_needles)
if data[vi] == c_air or data[vi] == c_ignore and snowy_leaves == true then
data[vi] = c_pine_needles
end
end
local function add_pine_snow(data, vi, c_air, c_ignore, c_snow, c_pine_needles)
if data[vi] ==... |
--------------------------------
-- @module RichElementText
-- @extend RichElement
-- @parent_module ccui
--------------------------------
-- brief Initialize a RichElementText with various arguments.<br>
-- param tag A integer tag value.<br>
-- param color A color in Color3B.<br>
-- param opacity A opacity in GLubyt... |
--[[
@Author: Gavin "Mullets" Rosenthal
@Desc: A generic function for Dice Binder module
--]]
--// services
local Services = setmetatable({}, {__index = function(cache, serviceName)
cache[serviceName] = game:GetService(serviceName)
return cache[serviceName]
end})
--// functions
--[[
Return:
each event used to di... |
local class = require "libs.classic"
local _M = class:extend()
function _M:new(hight, low)
self.hight = hight
self.low = low
end
function _M:IsEmpty()
return self.hight == 0 and self.low == 0
end
function _M:String()
if self.low then
return string.format("%016x%016x", self.hight, self.low)
... |
local _, private = ...
if private.isClassic then return end
-- [[ Core ]]
local Aurora = private.Aurora
local Hook, Skin = Aurora.Hook, Aurora.Skin
do --[[ FrameXML\RaidFinder.lua ]]
function Hook.RaidFinderQueueFrameCooldownFrame_Update()
local numPlayers, prefix
if _G.IsInRaid() then
... |
carshop = Service:new('vehicle-shop')
dxDrawText = dxDrawText
exports = exports
dxDrawRectangle = dxDrawRectangle
dxDrawImage = dxDrawImage
localPlayer = getLocalPlayer()
getTickCount = getTickCount
carshop.constructor = function()
screen = Vector2(guiGetScreenSize())
width, height = 300, 300
si... |
local FRAME = {}
local DRAG_MARGIN = 15
local SWAP_SPEED = 10
local WIDTH = 400
surface.CreateFont("Trebuchet28", {font = "Trebuchet", size = 28})
surface.CreateFont("Trebuchet36", {font = "Trebuchet", size = 36})
AccessorFunc(FRAME, "_bgcol", "BackgroundColor")
AccessorFunc(FRAME, "_endTime", "EndTime")
... |
-- tl_ad_tensor.lua
-- (C) 2016 Lesley De Cruz & Jonathan Demaeyer
-- See LICENSE.txt for license information.
------------------------------------------------------------------------
-- Tangent Linear (TL) and Adjoint (AD) model versions of MAOOAM.
---------------------------------------------------------------------... |
include( "shared.lua" )
function ENT:Initialize( )
end
function ENT:Draw( )
self:DrawModel( )
end
net.Receive( "StartAMWineEffect", function( )
local DrunkBlurTime = net.ReadFloat()
if timer.Exists( "EggrollAMDrunkBlur" ) then
timer.Remove( "EggrollAMDrunkBlur" )
end
timer.Create( "EggrollAMDr... |
------------------------------------------------------------------------------------------------
-- 1Version ver. OneVersion-1.6.0
-- Authored by Chrono Syz -- Entity-US / Wildstar
-- Build a50c7d6d094803b86bf8936f1fb180ac508c272c
-- Copyright (c) Chronosis. All rights reserved
--
-- https://github.com/chronosis/1... |
local Interrupts = {}
function Interrupts.new(modules)
local interrupts = {}
local io = modules.io
interrupts.VBlank = 0x1
interrupts.LCDStat = 0x2
interrupts.Timer = 0x4
interrupts.Serial = 0x8
interrupts.Joypad = 0x16
interrupts.enabled = 1
interrupts.service_handler = function() end
interrupts.enable... |
object_tangible_item_loot_cube = object_tangible_item_shared_loot_cube:new {
}
ObjectTemplates:addTemplate(object_tangible_item_loot_cube, "object/tangible/item/loot_cube.iff")
|
-- example of for with generator functions
local fibs = {
1,
1,
2,
3,
5,
8,
13,
21,
34,
55,
89,
144,
233,
377,
610,
987,
}
function generatefib (n)
return coroutine.wrap(function ()
local a,b = 1, 1
while a <= n do
coroutine.yield(a)
a, b = b, a+b
end
end)
end
local j = 1
for i in gener... |
-- #######################################
-- ## Project: MTA iLife ##
-- ## Name: cCore.lua ##
-- ## Author: Audifire ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
cCore = inherit(cSingleton)
cCore.tManager = {
-- // world \\ --
"cInformationW... |
Config = {}
Config.FuelDecor = "FUEL_LEVEL"
Config.DisableKeys = { 0,22,23,24,29,30,31,37,44,56,82,140,166,167,168,170,288,289,311,323 }
Config.PumpModels = {
[-2007231801] = true,
[1339433404] = true,
[1694452750] = true,
[1933174915] = true,
[-462817101] = true,
[-469694731] = true,
[-164877493] = true
}
C... |
local settingsutil = require('__spice-rack-core__/util/settingsutil')
local tableutil = require('__spice-rack-core__/util/tableutil')
------ >> Effectivity Modules
if settingsutil.get_startup_setting("effectivity-modules-change") then
-- {
-- name = "effectivity-module",
-- effect = { consumption =... |
object_tangible_quest_outbreak_outbreak_facility_vent_05 = object_tangible_quest_outbreak_shared_outbreak_facility_vent_05:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_outbreak_outbreak_facility_vent_05, "object/tangible/quest/outbreak/outbreak_facility_vent_05.iff")
|
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Exec Plugin Configuration"),
translate(
"The exec plugin starts external commands to read values " ..
"from or to notify external processes when cer... |
function original_load()
glc = love.graphics.newImage("assets/loading/original/gamelostcrash.png")
glc_w, glc_h = glc:getDimensions()
width, height = love.graphics.getDimensions()
end
function original_update(dt)
-- no-op.
end
function original_draw()
local x = width/2 - glc_w/2
local y = height/2 - glc_... |
require('./test-utopia')
|
local mod = get_mod("rwaon_talents")
-- Glaive
------------------------------------------------------------------------------
NewDamageProfileTemplates.medium_slashing_smiter_flat = {
armor_modifier = {
attack = {
1.25,
0.65,
2.5,
1,
0.75,
... |
local desc = fs.read(path.expand("$sd/../../dump.desc.json"))
T.Equal("ValueType", desc:Member("Instance","Name").ValueType, {
Category="Primitive",
Name="string",
})
|
Config.Email = "scarredsin@gmail.com" -- Your receipt is the 4 digit number found on your order at modit.store
Config.Receipt = "4600" -- Must be the same email you used to purchase the script with. Can check your receipt to verify. |
local mod = require("loadmodule")
return mod |
</body>
</html> |
local ReplCompletion = class.class("ReplCompletion")
local Log = require("api.Log")
function ReplCompletion:init()
end
local function last_index_of(str, c)
return string.find(str, c .. "[^" .. c .. "]*$")
end
function ReplCompletion:find_boundary(line)
local parens = {}
local paren_level = 1
-- We have ... |
--- A double-linked list implementation
-- @classmod LinkedList
local Core = require('__stdlib__/stdlib/core')
local table = require('__stdlib__/stdlib/utils/table')
local Is = require('__stdlib__/stdlib/utils/is')
-- dumb shallow copy suitable for cloning instance metatables in subclasses
local _mtcopy = function(se... |
local lastDimension = getElementDimension(localPlayer)
local function processDimensionChanges()
local currentDimension = getElementDimension(localPlayer)
if currentDimension ~= lastDimension then
lastDimension = currentDimension
triggerServerEvent("AURroomsquitjoin.messageToDim", resourceRo... |
local node_io_present = minetest.get_modpath("node_io") ~= nil
-- Network graphs are built eminating from provider nodes.
-- TODO: Caching
---------------------
-- Graph Functions --
---------------------
local function flatten(map)
local list = {}
for key, value in pairs(map) do
list[#list + 1] = value
end
ret... |
-----------------------------------------
-- Spell: Paralyze
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-------------------------... |
-- server
--[[
Motiviation is to do most stuff on the client
if something _has_ to be done on the server it should be done here
eg: PhysicsService stuff, character loading
]]
local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")
local ReplicatedStorage = game:... |
local Colors = {
black = { 0, 0, 0 },
red = { 1, 0.14, 0 },
blue = { 0.02, 0.45, 1 },
green = { 0, 1, 0.3 },
yellow = { 1, 0.9, 0.1 },
orange = { 0.9, 0.62, 0 },
lightblue = { 0.3, 0.6, 1 },
violet = { 1, 0.28, 0.6 },
}
local Config = {}
Config.template = {
none = {
type = "NONE",
note = "CENTER",
colo... |
Object = require("lib.classic")
local const = require("mod.constants")
local MIN_SIZE = 3 -- sizes are in tile units, 16x16
local MAX_SIZE = 10
local MAX_ROOMS = 10
local Room = Object:extend()
function Room:new(x, y, w, h)
self.x = x or 1
self.y = y or 1
self.w = w or 1
self.h = h or 1
self.map = {}
end... |
object_mobile_tie_pilot_m = object_mobile_shared_tie_pilot_m:new {
}
ObjectTemplates:addTemplate(object_mobile_tie_pilot_m, "object/mobile/tie_pilot_m.iff")
|
local testCasesForPolicySDLErrorsStops = {}
local json = require("modules/json")
local SDL = require('modules/SDL')
local commonTestCases = require ('user_modules/shared_testcases/commonTestCases')
local commonPreconditions = require ('user_modules/shared_testcases/commonPreconditions')
--[[@GetCountOfRows: Ge... |
local cmd, g, fn, execute = vim.cmd, vim.g, vim.fn, vim.api_nvim_command
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
-- install packer if it isn't installed
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
execute('!git cl... |
lovelyMoon = {}
function lovelyMoon.update(dt)
for index, state in pairs(_slotState.states) do
if state and state._enabled and state.update then
local newState = state:update(dt)
if newState then
if state.close then
state:close()
end
state = newState
if state.load then
... |
--------------------------------------------------------------------------------
-- @brief Point One FusionEngine Protocol Wireshark packet dissector.
--
-- To use, install in `~/.local/lib/wireshark/plugins/`, then reload the
-- Wireshark plugins (Analyze -> Reload Lua Plugins) or restart Wireshark. We
-- recommend us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.