content stringlengths 5 1.05M |
|---|
local api = require'nvimapi'
local commented_header = "^--%s+.*require[(][\"']debugger[\"'][)]"
local uncommented_header = "require[(][\"']debugger[\"'][)]"
local debugger_header = {
'local dbg = require("debugger")',
'dbg.auto_where = 2'
}
local function insert_debugger_header()
api.set_lines(1, 0, debugger... |
require("../../diff/diff_export")
require("../../track/track_export")
require("../../vr/vr_note_assign")
require("../helpers/auto_y")
function sgn_DefaultDoubleNC_gen(id, assigner, container)
local rand = math.random
local currentNote = container._notes[id]
if rand() < 0.5 then
currentNote:setHand... |
local l_size = ScrW() / 16
local s_size = ScrW() / 48
surface.CreateFont("AzVote CountdownText L", { font = "roboto", size = l_size })
surface.CreateFont("AzVote CountdownText S", { font = "roboto", size = s_size })
local function nicetime( time )
return os.date( "!%X", time )
end
return
{
Set = funct... |
local ObjectManager = require("managers.object.object_manager")
local Logger = require("utils.logger")
require("utils.helpers")
spHelper = require("screenplayHelper")
halloween_moenia = ScreenPlay:new {
numberOfActs = 1,
planet = "naboo",
}
registerScreenPlay("halloween_moenia", true)
function halloween_moenia:s... |
msg = {"konveksan", "paralelogram", "pravougaonik", "trapez", "deltoid", "nekonveksan"}
|
local lockName = KEYS[1]
local lockValue = ARGV[1]
local lockReleaseTime = ARGV[2]
local result = redis.call('setNx', lockName, lockValue)
if result == 1 then
return redis.call('expire', lockName, lockReleaseTime)
else return 0
end
|
require 'logroll'
require "cunn"
require "cutorch"
require "nngraph"
local logger = logroll.print_logger()
local parse_args = require("Persona/parser")
local params = parse_args()
local PersonaModel = require('Persona/Model')
cutorch.setDevice(params.gpu_index)
logger.info('speakerSetting: %s', params.speakerSetting... |
local game = {}
local unpaused = true
function game.enter()
end
function game.update(dt)
end
function game.draw()
end
function game.keyreleased(key, code)
end
function game.mousereleased(x, y, code)
end
function game.quit()
end
return game |
---- Logical operation utilites
-- @module logic
local type_index = {
['str'] = 'string',
['num'] = 'number',
['bool'] = 'boolean',
['tbl'] = 'table',
['file'] = 'userdata',
['func'] = 'function'
}
---- Check if sub is contained in main (like Python's "x in y" syntax)
-- @param sub
-- @param main
-- @ret... |
--[[
Math library
Contains useful math functions
--]]
-------------
-- DEFINES --
-------------
local Rand=Random.new()
local Math={}
function Math:GetRandomVec3FromPart(Part)
local x = Part.Position.X
local xS = Part.Size.X / 2
local y = Part.Position.Y
local z = Part.Position.Z
local zS = Part.Size.Z /... |
return Def.ActorFrame{
Def.Quad{
Name="Horizontal";
InitCommand=function(self)
self:xy(0,-2):zoomto(854,34):halign(0)
end;
SetCommand=function(self)
self:diffuseramp();
self:effectcolor1(color("#FFFFFF33"));
self:effectcolor2(color("#FFFFFF33"));
end;
BeginCommand=function(self)
self:queue... |
local class = require('middleclass')
--[[
This System provider always returns the same instance of the component. The system
is passed to the provider at initialisation.
]]
local SystemInstanceProvider = class('SystemInstanceProvider')
--[[
Constructor
@param instance The instance to return whenever a System is re... |
--LL-プロム・スラッシュ
--Lyrilusc - Prom Thrush
--Script by TheOnePharaoh
function c100425037.initial_effect(c)
c:EnableReviveLimit()
aux.AddXyzProcedure(c,nil,1,2,nil,nil,99)
--ATK Up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)... |
-----------------------------------------------------------------------------------------
--
-- build_ui.lua
--
-----------------------------------------------------------------------------------------
require "build_control"
require "balance"
require "minimap_ui"
require "game_ui"
-----------------------------------... |
function table_count(ta)
local count = 0
for k, v in pairs(ta) do count = count + 1 end
return count
end
function table_last_count(ta)
local count = 0
for i, v in ipairs(ta) do
if v then
count = count + 1
end
end
return count
end
function GetCharacterFromId(id... |
local skynet = require "skynet"
local socket = require "skynet.socket"
local function server()
local host
local on_packet = function(str, from)
print("server recv", str, socket.udp_address(from))
socket.sendto(host, from, "OK " .. str)
end
-- bind an address
host = socket.udp(on_packet, "127.0.0.1", 8765)
en... |
Config.Rank = "Politi-Job" -- Hvem skal have adgang til overvågningen? |
PLUGIN.name = "Stamina"
PLUGIN.author = "Chessnut"
PLUGIN.desc = "Adds a stamina system to limit running."
if (SERVER) then
function PLUGIN:PostPlayerLoadout(client)
client:setLocalVar("stm", 200)
local uniqueID = "nutStam"..client:SteamID()
local offset = 0
local velocity
local length2D = 0
local runSpe... |
local VaultDoor
local CodeEnteredCorrect = false; PlayerList = {}
local Terminal = {['x'] = 253.3081, ['y'] = 228.4226, ['z'] = 101.6833}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
VaultDoor = GetClosestObjectOfType(Terminal.x, Terminal.y, Terminal.z, 25.0, GetHashKey('V_ILEV_BK_VAULTDOOR'), 0... |
return (function(RedisDb)
end) |
return {
action = {
which_direction = {
chip = "Which direction?"
}
}
}
|
-- init.lua
local mqtt_cfg = {
ip = "172.20.10.11",
port = 61613,
user = "nodemcu",
pwd = "esp8266",
retry = 3
}
local wifi_cfg = {
ssid = "anophone",
pwd = "11111111"
}
local oled_cfg = {
i2c = {
sda = 1,
scl = 2,
sla = 0x3c
},
chip = "ssd1306_128x64",
line = 4
}
lo... |
local test = require 'regress'
local ipc = require 'libipc'
test {
testAllReduceSGD = function()
local function theTest(numEpochs, nodeIndex, numNodes, server, client, port)
local tree = require 'ipc.Tree'(nodeIndex, numNodes, 2, server, client, '127.0.0.1', port)
local allReduceSGD = requir... |
lifestealer_feast_lua = class({})
LinkLuaModifier( "modifier_lifestealer_feast_lua", "lua_abilities/lifestealer_feast_lua/modifier_lifestealer_feast_lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
-- Passive Modifier
function lifestealer_feast_lua:GetIn... |
if settings.startup["Noxys_Waterfill-recipe-difficulty"].value == "Extra Hard" then
settings.startup["Noxys_Waterfill-recipe-difficulty"].value = "Hard"
end
for _, force in pairs(game.forces) do
force.reset_technologies()
force.reset_recipes()
local tech = force.technologies['waterfill']
for _,v in ipairs(tech.ef... |
setmetatable(
env,
{
__index = function(t, k)
return rawget(GLOBAL, k)
end
}
)
PrefabFiles = {
"totooria",
"totooriastaff1",
"totooriastaff2",
"totooriastaff3",
"totooriastaff4",
"totooriastaff5green",
"totooriastaff5orange",
"totooriastaff5yellow"
}
Assets = {
... |
local _, wt = ...
if (wt.currentClass ~= "PALADIN") then
return
end
-- Paladin Auras are special in that you never have multiple ranks in the spellbook, only the latest one is usable
-- Even so, IsSpellKnown will only return true for your current rank
-- These tables are ordered by rank
local devotionAura = {465, 10... |
function permutations(array,start)
if start == nil then
start = 1
end
if start == #array then
print(table.concat(array,","))
end
for i = start,#array do
array[start], array[i] = array[i], array[start]
permutations(array, start + 1)
array[start], array[i] = array[i], array[start]
end
end |
local function vim_motion(motion)
vim.cmd(string.format(':exe "norm! %s\\<esc>"', motion))
end
return vim_motion
|
--- === cp.apple.finalcutpro.cmd.CommandEditor ===
---
--- Command Editor Module.
local require = require
local log = require("hs.logger").new("PrefsDlg")
local axutils = require("cp.ui.axutils")
local Button = require("cp.u... |
local ffi = require("ffi")
-- These types are platform specific
-- and should be taylored to match
ffi.cdef[[
typedef long time_t;
typedef long suseconds_t;
]]
-- These should be good for all versions of Linux
ffi.cdef[[
typedef unsigned int mode_t;
typedef unsigned int nlink_t;
typedef int64_t off_t;
typedef u... |
-- Install luaunit.lua under /usr/local/share/lua/VERSION/ from
-- https://github.com/bluebird75/luaunit
lu = require('luaunit')
-- Creates a file with the given filename and data
local function write_file(fname, data)
local f, e = io.open(fname, 'w+')
if f == nil then
io.stderr:write(e)
return nil
end
for _, ... |
-- https://wowpedia.fandom.com/wiki/Module:API_info/elink/api
local Util = require("Util/Util")
local ApiDoc = require("Scribunto/API_info/elink/api_get")
local OUT = "out/lua/API_info.elink.api.lua"
local function main()
local doc, non_doc = table.unpack(ApiDoc)
local full = Util:CombineTable(doc, non_doc)
print(... |
assert(Skada, "Skada not found!")
Skada:AddLoadableModule("Potions", function(Skada, L)
if Skada:IsDisabled("Potions") then return end
local mod = Skada:NewModule(L["Potions"])
local playermod = mod:NewModule(L["Potions list"])
local potionmod = mod:NewModule(L["Players list"])
-- cache frequently used globals
... |
---------------------------------------------------------------------------------
--
-- Prat - A framework for World of Warcraft chat mods
--
-- Copyright (C) 2006-2018 Prat Development Team
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public Licen... |
-----------------------------------
-- Area: Mhaura
-- NPC: Zexu
-- Involved in Quests: The Sand Charm
-- !pos 30 -8 25 249
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (playe... |
function plugindef()
finaleplugin.Author = "Nick Mazuk"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Version = "1.0.0"
finaleplugin.Date = "March 26, 2022"
finaleplugin.CategoryTags = "Playback"
finaleplugin.AuthorURL = "https://nickmazuk.com"
... |
local find = require("modutram.helper.find")
local getKeys = require("modutram.helper.getKeys")
describe("getKeys", function ()
it ("returns array with keys from an table", function ()
local table = {
a = 1,
b = 2,
c = 3
}
local result = get... |
function create(dialogObject, bindings)
print(bindings)
print(dialogObject)
dSysClass = luajava.bindClass( "org.schema.game.common.data.player.dialog.DialogSystem" );
dSysFactoryClass = luajava.bindClass( "org.schema.game.common.data.player.dialog.DialogStateMachineFactory" );
dSysEntryClass = luajava.bin... |
-- ... utilities.lua
local api = vim.api
local map = api.nvim_buf_set_keymap
local opts = { noremap = true, silent = true }
local U = {}
---common format-on-save for lsp servers that implements formatting
---@param client table
function U.fmt_on_save(client)
if client.resolved_capabilities.document_formatting the... |
local api = {}
local ip = kernel.modules.ip
local tcpudp = kernel.modules.tcpudp
local threading
kernel.userspace.package.preload.network = api
function api.resolve(host)
local addr = ip.ip4parse(host)
if addr then
return {4, addr}
end
end
function api.hostname(addr)
if type(addr) == "table" ... |
-- ======================================================================
-- Combo Breaker
-- Advent of Code 2020 Day 25 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ========================... |
local playsession = {
{"anghelnicky", {463956}},
{"Gorlos", {645369}},
{"everLord", {938170}},
{"denis12w2", {27120}},
{"j0n1th4n", {684926}},
{"Nikkichu", {1025990}},
{"Duchesko", {105681}},
{"Teilrock", {750220}},
{"Scuideie-Guy", {170679}},
{"MuddledBox", {726923}},
{"Thoren", {9630}},
{"BravePotato", {3... |
Reported2 = {}
Reported2.OFFENDERS = {}
Reported2.Events = {}
Reported2.Language = {}
Reported2.Config = {}
Reported2.Panel = {}
REPORTED2_CHAT_MSG_CHANNEL = "CHAT_MSG_CHANNEL"
REPORTED2_CHAT_MSG_GUILD = "CHAT_MSG_GUILD"
REPORTED2_CHAT_MSG_INSTANCE_CHAT = "CHAT_MSG_INSTANCE_CHAT"
REPORTED2_CHAT_MSG_INSTANCE_CHAT_LEAD... |
fiber = require 'fiber'
net = require('net.box')
--
-- gh-3629: netbox leaks when a connection is closed deliberately
-- and it has non-finished requests.
--
ready = false
ok = nil
err = nil
c = net:connect(box.cfg.listen)
function do_long() while not ready do fiber.sleep(0.01) end end
box.schema.func.create('do_long'... |
button={
}
local debugStmt=require "helperScripts.printDebugStmt"
local collisionHandler=require "helperScripts.collisionHandler"
local button_mt={__index=button}-- metatable
-------------GUIDE ON EXTRA PARAMS---------Note: params marked with * cannot be passed through constructor and must be defined externally.
-- a... |
--
--
--
--
--
-- ... |
-- oUF_Simple: core/functions
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
local floor, unpack = floor, unpack
--functions container
L.F = {}
-----------------------------
-- Functions
-----------------------------
--NumberFormat
local function NumberFor... |
--
-- ListBox Widget.
-- @copyright Jefferson Gonzalez
-- @license MIT
--
local core = require "core"
local style = require "core.style"
local Widget = require "widget"
---@class widget.listbox.column
---@field public name string
---@field public width string
---@field public expand boolean
---@field public longest i... |
-- import
local UIWidgetModule = require 'candy.ui.light.UIWidget'
local UIWidget = UIWidgetModule.UIWidget
local ComponentModule = require 'candy.Component'
local Component = ComponentModule.Component
-- module
local UIMsgModule = {}
local UIMsgSourceBase, UIMsgTarget, UIMsgSource
----------------------------------... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeSharedIO
System.import(function (out)
SlipeSharedIO = Slipe.Shared.IO
end)
System.namespace("Slipe.Server.IO", function (namespace)
namespace.class("MtaDebug", function (namespace)
local __ctor__
__ctor__ = function (this)
SlipeShare... |
--
-- Game archetype, settings and menus specific for game- frameserver
-- session - primarily display hints and synchronization control
--
local skiptbl = {};
skiptbl["Automatic"] = 0;
skiptbl["None"] = -1;
skiptbl["Skip 1"] = 1;
skiptbl["Skip 2"] = 2;
skiptbl["Skip 3"] = 3;
skiptbl["Skip 4"] = 4;
local skipset = {... |
local S = aurum.get_translator()
local old = minetest.get_node_drops
function minetest.get_node_drops(node, toolname)
local ret = old(node, toolname)
if minetest.get_item_group(node.name, "dig_hammer") > 0 and minetest.get_item_group(toolname, "tool_hammer") > 0 then
for i,v in ipairs(ret) do
local stack = Item... |
-----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- !pos -38.243 -2.25 -120.954 241
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/crafting")
require("scripts/globals/status")
---------------... |
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local _M = {}
local _K = require("Application")
---------------------
---------------------
function _M:localPos(UI)
local sceneGroup = UI.scene.view
local layer = UI.layer
end
--
function _M:didSh... |
JokerL = JokerL or {}
local L = {}
--------------------------------------------------------------------------------------------------------------------
-- Locale: русский (Russian?)
-- All strings currently need translated, any help welcome!
-- Uncomment to enable translated line.
------------------------------------... |
add_rules("mode.debug", "mode.release")
includes("qt_add_static_plugins.lua")
target("${TARGETNAME}")
add_rules("qt.quickapp_static")
add_headerfiles("src/*.h")
add_files("src/*.cpp")
add_files("src/qml.qrc")
add_frameworks("QtQuickControls2", "QtQuickTemplates2")
qt_add_static_plugins("QtQuic... |
--[[
TheNexusAvenger
Sends HTTP requests to a server to get partial responses.
--]]
local NexusGit = require(script.Parent.Parent):GetContext(script)
local NexusInstance = NexusGit:GetResource("NexusPluginFramework.NexusInstance.NexusInstance")
local HttpRequest = NexusGit:GetResource("SplitHttp.HttpRequest")
local H... |
local Triangle = {}
local ref = Instance.new("WedgePart")
ref.Color = Color3.fromRGB(200, 255, 200)
ref.Material = Enum.Material.SmoothPlastic
ref.Reflectance = 0
ref.Transparency = 0
ref.Name = "Tri"
ref.Anchored = true
ref.CanCollide = false
ref.CanTouch = false
ref.CanQuery = false
ref.CFrame = CFrame.new()
ref.Siz... |
-- The MIT License (MIT)
-- Copyright © 2016 Pietro Ribeiro Pepe.
-- 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, m... |
pg = pg or {}
pg.enemy_data_statistics_306 = {
[14401104] = {
cannon = 31,
reload = 150,
speed_growth = 0,
cannon_growth = 2592,
pilot_ai_template_id = 10001,
air = 0,
battle_unit_type = 65,
dodge = 3,
base = 484,
durability_growth = 49600,
antiaircraft = 45,
reload_growth = 0,
dodge_growth =... |
GameObject = class{}
function GameObject:init(def)
self.x = def.x
self.y = def.y
self.texture = def.texture
self.width = def.width
self.height = def.height
self.frame = def.frame
self.solid = def.solid
self.collidable = def.collidable
self.consumable = def.consumable
... |
local finders = require('telescope.finders')
local pickers = require('telescope.pickers')
local actions = require('telescope.actions')
local action_state = require('telescope.actions.state')
local tasks = require('telescope._extensions.gradle').exports.tasks
local projects = function(opts)
return function(projects)... |
local Observer = require("reactivex.observer")
local AnonymousSubject = require("reactivex.subjects.anonymoussubject")
local Subscription = require("reactivex.subscription")
local Observable = require("reactivex.observable") |
local localData = {} -- store our local (non-synced data)
local syncedData = {} -- store our synced data
local privateData = {} -- store our private data
local dataHandlers = {} -- store our data handlers
--[[
/***************************************************
***************************************************\
]]... |
local turnbased = {}
local json = require('json')
local gpgs = require('plugin.gpgs.v2')
local newButton = require('classes.button').newButton
local _W, _H = display.actualContentWidth, display.actualContentHeight
local _CX, _CY = display.contentCenterX, display.contentCenterY
function turnbased:newParticip... |
--[[
Dummy
Replaces a function environment with a Dummy object. Accessing the dummy
object reports the access, and returns more Dummy objects. Since a Dummy
can stand in for tables, functions, and userdata, this can be used to
explore the content of unknown functions.
]]
local NewDummy
local depth = setmetatable... |
// FONTS
surface.CreateFont( 'CAS.MenuHeader', {
font = 'Roboto',
size = 36,
weight = 800,
} )
surface.CreateFont( 'CAS.Item', {
font = 'Roboto',
size = 19,
weight = 800,
} )
surface.CreateFont( 'CAS.ItemBig', {
font = 'Roboto',
size = 22,
weight = 800,
} )
surface.CreateFont( 'CAS.InfoPanelMain', {
font ... |
local TopoRuntime = require(script.Parent.Parent.TopoRuntime)
local useEvent = require(script.Parent.useEvent)
return function()
describe("useEvent", function()
it("should queue up events until useEvent is called again", function()
local node = {
system = {},
}
local event = Instance.new("BindableEven... |
--Shaman Skull Quest 8
-- items: 30994
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.trade, {item1 = 30994})) then --Iksar Relics
eq.unique_spawn(105182,0,0,e.self:GetX(),e.self:GetY(),e.self:GetZ(),e.self:GetHeading()); --Venril_Sathir
eq.unique_spawn(105186,0,0,-13,-658... |
Locales['en'] = {
['new_message'] = '~b~Du modtog en besked:~s~ %s',
['press_take_call'] = '%s - Tryk ~INPUT_CONTEXT~ for at tage opkald',
['taken_call'] = '~y~%s~s~ har taget opkald',
['gps_position'] = 'Lokation sat på GPS',
['message_sent'] = 'Beskeden er blevet sendt',
['cannot_add_self'] = 'Du kan ikke... |
local os = os
local string = string
local print = print
local collectgarbage = collectgarbage
local timers = {}
local memTracks = {}
local profiling = {}
function profiling.StartTimer(id, name)
if timers[id] ~= nil then
print("[Profiling] Warning: Timer '" .. name .. "' not stopped")
end
timers[id] = { name = ... |
keyexplanation = {}
function keyexplanation:OnActivate()
self.keyExplanation = UiCanvasManagerBus.Broadcast.LoadCanvas("Levels/DefectReporterSample/UI/DefectReporterKeyExplanation.uicanvas")
local keyExplanationText = UiCanvasBus.Event.FindElementByName(self.keyExplanation, "Key")
local reportDefectKey = ... |
-----------------
-- Items stuff --
-----------------
local ID = 1
function loadGCTrials ( player, bool, settings )
triggerClientEvent(player, 'loadGCTrials', player, bool, settings)
if bool then
addCommandHandler('trials', setTrials)
else
removeCommandHandler('trials', setTrials)
end
end
------------------... |
local AutoDodger3 = {}
AutoDodger3.option = Menu.AddOption({ "Utility", "Super Auto Dodger" }, "Skill Picker", "Displays enemy hero cooldowns in an easy and intuitive way.")
AutoDodger3.boxSizeOption = Menu.AddOption({ "Utility", "Super Auto Dodger" }, "Display Size", "", 21, 64, 1)
AutoDodger3.needsInit = true
AutoDo... |
local AddonName, AddonTable = ...
AddonTable.enchanting = {
-- Reagents
172437, -- Enchanted Elethium Bar
172438, -- Enchanted Heavy Desolate Hide
172439, -- Enchanted Lightless Silk
-- Materials
172230, -- Soul Dust
172231, -- Sacred Shard
172232, -- Eternal Crystal
-- Wands
17... |
-- 2バイト文字の描画
vim.o.ambiwidth = 'double'
-- メッセージ表示欄を1行確保
vim.o.cmdheight = 1
-- 不可視文字を表示
vim.wo.list = true
-- 行番号を表示
vim.o.number = true
-- カラースキーム
vim.cmd'colorscheme iceberg'
vim.o.background = 'dark'
-- ステータスラインの表示
vim.o.laststatus = 2
-- Tabで挿入するとき、スペースを使う
vim.o.expandtab = true
-- インデント設定
vim.o.tabstop = 4... |
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2021
-------------------------------------------------------------------------------
--]]
local function implement(self, ...)
for _, class in pairs({...}) do
for k, v in pairs(class) do
if self[k] == n... |
-- test target
local Group = flower.Group
-- test case
local TestGroup = {}
_G.TestGroup = TestGroup
---
-- setUp
function TestGroup:setUp()
self.group = Group()
self.group:setSize(100, 100)
self.prop = flower.Image("cathead.png")
self.prop.name = "cathead"
self.group:addChild(self.prop... |
------------------------------------------------------------------------------
-- Require --
------------------------------------------------------------------------------
local Type = require('orm.class.type')
------------------------------------... |
return {'luw','luwen','luwte','luwde','luwden','luwe','luwer','luwere','luwst','luwste','luwt'} |
local gMVars={selectedObject=nil,propertiesWindowOpen=true}
local function gM()
--[[if slab.BeginMainMenuBar() then
if slab.BeginMenu("File") then
slab.MenuItem("Item")
slab.EndMenu()
end
slab.EndMainMenuBar()
end]]
if engineSettings.hiddenSettings.properties ~= ni... |
-- Low level nessDB LuaJIT FFI binding
-- This binding export only nessDB functions and types
-- Copyright (C) 2012 Olivier Goudron
local ffi = require("ffi")
ffi.cdef[[
struct slice{
char *data;
int len;
};
struct nessdb *db_open(const char *basedir, int is_log_recovery);
int db_get(struct nessdb *db, struct s... |
utils = {}
function utils.merge_tables(from, to, key_prefix)
if key_prefix then
key_prefix = key_prefix .. "_"
else
key_prefix = ""
end
for k, v in pairs(from) do to[key_prefix .. k] = v end
end
function utils.get_services_list_string(services)
local res = "["
if bit32.band(ser... |
local Recount = _G.Recount
local revision = tonumber(string.sub("$Revision: 1445 $", 12, -3))
if Recount.Version < revision then
Recount.Version = revision
end
local C_Scenario = C_Scenario
local GetZonePVPInfo = GetZonePVPInfo
local IsInInstance = IsInInstance
local UnitIsGhost = UnitIsGhost
function... |
local miniGameName = "refluxive"
local miniGamePath = "miniGames/refluxive/";
--utils:log(miniGameName, "Loaded");
local miniGameBase = require("miniGames.miniGameBase");
local scene = miniGameBase:newMiniGameScene(miniGameName);
-- Game instructions.
scene.instructions =
"Rocks... from space! Use your special Rock ... |
parachuteActions = {}
parachuteActions[Action.ActivateParachuteThrusters] = true
parachuteActions[Action.ExitToStuntposParachute] = true
parachuteActions[Action.ParachuteOpenClose] = true
parachuteActions[Action.ParachuteLandOnVehicle] = true
parachuteActions[Action.StuntposToParachute] = true
parachuteActions[Action.... |
require 'dokx'
local stringx = require 'pl.stringx'
local dir = require 'pl.dir'
local tester = torch.Tester()
local myTests = {}
local optionalScripts = {
['dokx-combine-html'] = true,
['dokx-combine-toc'] = true,
['dokx-extract-toc'] = true,
['dokx-extract-markdown'] = true,
['dokx-generate-html'... |
--Debug Functions
--Setup: Require this file
--Setup (Log): Call Debug.log_on_init() in your script.on_init
-- Change Debug.log_name below to your mod name
--Use: Call Debug.console to write to the console
-- Call Debug.log to write to the log file with the current tick number
-- Use the below flags to turn thi... |
require "api-umbrella.utils.random_seed"
return function(min, max)
return math.random(min, max)
end
|
local metadata =
{
plugin =
{
format = 'staticLibrary',
staticLibs = { 'APDStartAppAdapter', },
frameworks = { 'StartApp', },
frameworksOptional = {},
},
}
return metadata
|
local M = trinium.materials.materials
local research = trinium.research
local nei = trinium.nei
local S = research.S
local R = trinium.machines.recipes
research.add("OilDesulf", {
texture = M.desulf:get"cell",
x = 0,
y = 0,
name = S"Desulfurization",
chapter = "Chemistry2",
text = {
S[[You found some interesti... |
EditorSequenceCharacter = EditorSequenceCharacter or class(MissionScriptEditor)
function EditorSequenceCharacter:create_element()
self.super.create_element(self)
self._element.class = "ElementSequenceCharacter"
self._element.values.elements = {}
self._element.values.sequence = ""
end
function EditorSequence... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setArea(createCombatArea(AREA_CIRCLE2X2))
local parameters = {
{key = CONDITION_PARAM_TICKS, value = 6 * 1000},
{key = CONDITION_PARAM_SKILL_SHIELDPERCENT, value = nil}
}
function onTargetCreature(creature, target)
target:a... |
-- prints a list of levels and level stats
levels_table =
{
"HW1_2DHelo4.level",
"HW1_2ndChance4.level",
"HW1_Aiko2.level",
"HW1_AlliedForces4.level",
"HW1_Amphion4.level",
"HW1_AncientHate4.level",
"HW1_Angel4.level",
"HW1_Arachne6.level",
"HW1_Art of war 4.level",
"HW1_Aruna6.level",
"HW1_Attrition6.level"... |
local Actor = class("Actor", Physics3.PhysObj)
local ActorState = require "class.ActorState"
local ActorEvent = require "class.ActorEvent"
function Actor:__tostring()
return string.format("Actor (%s)", self.actorTemplate.name)
end
function Actor:initialize(world, x, y, actorTemplate)
self.actorTemplate = acto... |
--[[
Copyright (C) 2013 simplex
This program 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 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... |
--[=[
HTTP 1.1 client & server protocol
Written by Cosmin Apreutesei. Public Domain.
This module only implements the protocol. For a working HTTP client
see http_client.lua, for a server see http_server.lua.
GZip compression can be enabled with http.zlib = require'zlib'.
All functions return nil,err on I/O err... |
----------------------------------------------------------------------------------------
-- PlantCare --
-- --
-- Language File: Russian ... |
interface = {}
interface.console = require("utils.console")
function interface.reset_gui(player)
if not player then return end
gui.destroy(player)
gui.create(player)
end
function interface.on_init()
signals.on_init()
combinators.on_init()
gui.on_init()
end
remote.add_interface("prodmon", ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.