content
stringlengths
5
1.05M
local KifuPlayer = require("kifu_player") local SS = require("sakura_script") local StringBuffer = require("string_buffer") return { { id = "将棋の戦法と手筋", content = [[ \0 \_q \n \n \q[【横歩取り急戦】,OnShogiViewFromFile,talk\shogi\study\yokofu.kif]\n \q[【片美濃崩し】,OnShogiViewFromFile,talk\shogi\study\minokuzushi.kif]\...
object_tangible_component_weapon_mustafar_rifle_coil_dist = object_tangible_component_weapon_mustafar_shared_rifle_coil_dist:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_mustafar_rifle_coil_dist, "object/tangible/component/weapon/mustafar/rifle_coil_dist.iff")
vim.opt.showmode = false vim.g.lightline = { active = { left = { { "mode", "paste" }, { "relativepath" }, { "readonly", "modified" }, }, right = { { "lineinfo" }, { "filetype" }, }, }, inactive = { left = { ...
require 'CLRPackage' import 'System.Reflection' import 'LuaInterface' local ctype, enum = luanet.ctype, luanet.enum -- get all the static methods of LuaDLL and import them into global local mm = ctype(LuaDLL):GetMethods(enum(BindingFlags,'Static,Public')) for i = 0, mm.Length-1 do local name = mm[i].Name _G[n...
HunterData = LibStub("AceAddon-3.0"):NewAddon("HunterData", "AceConsole-3.0") local HunterPetData = getHunterDataTable() -- Helper function for checking key existence in a table local function tableKeyExists(table, key) for k, v in pairs(table) do if k == key then return true end end return false end -- Loo...
----------------------------------- -- Area: Al Zahbi -- NPC: Nudahaal -- Type: Bonecraft Normal/Adv. Image Support -- !pos -57.056 -7 -88.377 48 ----------------------------------- require("scripts/globals/status") require("scripts/globals/crafting") local ID = require("scripts/zones/Al_Zahbi/IDs") ------------------...
------------------------------------------------------------------------------- -- advanced spawning mod -- --@license WTFP --@copyright Sapier --@author Sapier --@date 2013-12-05 -- ------------------------------------------------------------------------------- --------------------------------------------------------...
local msgpack = require('MessagePack') local MsgpackStream = require('nvim.msgpack_stream') describe('MsgpackStream', function() local tbl = {'abc', 'def', {1, 2, 3}} local loop, stream, unpacked local function message_cb(msg) table.insert(unpacked, msg) end before_each(function() loop = {input = ...
------------ -- Uncomplicated Desktop for OpenComputers. -- - [Homepage](https://github.com/quentinrossetti/undesk) -- - [API documentation](https://quentinrossetti.github.io/undesk) -- @module undesk.Init -- @license ICS -- @copyright 2020 Quentin Rossetti <code@bleu.gdn> package.loaded["themes"] = nil package.loade...
local api = vim.api local log = require("prosesitter/log") local res = require("prosesitter/linter/marks/process_results") local state = require("prosesitter/state") local M = {} local ns_placeholders = state.ns_placeholders local ns_marks =state.ns_marks -- clear a mark and issue if no other linter is depending on i...
return { version = "1.5", luaversion = "5.1", tiledversion = "1.7.2", orientation = "orthogonal", renderorder = "right-down", width = 29, height = 22, tilewidth = 16, tileheight = 16, nextlayerid = 4, nextobjectid = 28, properties = {}, tilesets = { { name = "dungeon-tileset", ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject() if not phys:IsValid() then se...
local blueguy = {} function blueguy.init() blueguy.data = {} blueguy.name = "blueguy" editor.importObject("MEN", blueguy.name, "obj_blueguy.new") end function blueguy.new(x, y) local tbl = {} tbl.x = x tbl.y = y table.insert(blueguy.data, tbl) end function blueguy.draw() local i = 1 while i <= #blueguy.data...
-- Copyright 2015-2019 Mitchell mitchell.att.foicica.com. See LICENSE. -- Sponsored by the Library of the University of Antwerp. -- Contributions from Ana Balan. -- Lupa templating engine. --[[ This comment is for LuaDoc. --- -- Lupa is a Jinja2 template engine implementation written in Lua and supports -- Lua syntax ...
AddPlayerPostInit( function(player) GLOBAL.ExecuteConsoleCommand("c_supergodmode()") end )
--[==[ Hello World ]==] function foo() print('Hello World') end --[[ Hello World ]] function foo(flag) if flag then print('Hello World') end end
--[[ Loads map and game objects created in Tiled. Map is a 8 rows, 8 colum matrix of 16 tiles x 32 pixels. [0][0][0][0][0][0][0][0] [0][ ][ ][0] [0][ A ][ B ][0] [0][_______][_______][0] [0][ ][ ][0] [0][ C ][ D ][0] [0][_______][_______][0] ...
local factorySYK = require("items/factory_sange_yasha_kaya") item_battlefury_baseclass = {} LinkLuaModifier("modifier_item_battlefury_arena", "items/item_battlefury.lua", LUA_MODIFIER_MOTION_NONE) function item_battlefury_baseclass:GetIntrinsicModifierName() return "modifier_item_battlefury_arena" end function item...
local HC = require 'HC' local push = require 'push' local timer = require 'timer' local gamestate = require 'gamestate' local background = require 'background' local duck = require 'duck' local Pipe = require 'pipe' local game = {} function game:enter () self:start() end function game:leave () self:stop() end f...
local telescope = require "telescope" local finders = require "telescope.finders" local pickers = require "telescope.pickers" local make_entry = require "telescope.make_entry" local conf = require("telescope.config").values local insert_table = function(tbl, data) for file in data:lines() do table.insert(t...
local x1 = 1479.455078125 local y1 = -1686.5869140625 local z1 = 11.046875 local objects1 = { createObject(654, x1, y1, z1), createObject(3038, x1-2, y1-2, z1+8, 0, 0, 45), createObject(3038, x1-2, y1-2, z1+12, 0, 0, 45), createObject(3038, x1-2, y1-2, z1+16, 0, 0, 45), createObject(3038, x1, y1+3, z1+8, 0, 0,...
utils = {} utils.__index = utils function utils.pushToScreen(win, screen) local screen = screen or win:screen() if screen == win:screen() then return end local fullscreenChange = win:isFullScreen() if fullscreenChange then id = win:id() win:toggleFullScreen() os.execute('sleep 3') win = hs.win...
local Tile = require 'src.tile' local inspect = require 'lib.inspect' local mt = {} mt.__index = mt function mt:create() self.offset = (self.screen_size - (self.size * self.cellsize)) / 2 for i = 1, self.size do self.cells[i] = {} for j = 1, self.size do self.cells[i][j] = Tile.n...
-- See LICENSE for terms local mod_EnableMod local mod_LessDust -- fired when settings are changed/init local function ModOptions() mod_EnableMod = CurrentModOptions:GetProperty("EnableMod") mod_LessDust = CurrentModOptions:GetProperty("LessDust") end -- load default/saved settings OnMsg.ModsReloaded = ModOptions ...
local modules = require(game.ReplicatedStorage.modules) local network = modules.load("network") local utilities = modules.load("utilities") local SPIDER_BOW_ID = 92 local SPIDER_DAGGER_ID = 52 local perkData = { sharedValues = { layoutOrder = 0; subtitle = "Equipment Perk"; color = Color3.fromRGB(147, 40, 23...
local _2afile_2a = "fnl/conjure/client/clojure/nrepl/ui.fnl" local _0_ do local name_0_ = "conjure.client.clojure.nrepl.ui" local module_0_ do local x_0_ = package.loaded[name_0_] if ("table" == type(x_0_)) then module_0_ = x_0_ else module_0_ = {} end end module_0_["aniseed/module...
local _, ns = ... local B, C, L, DB, P = unpack(ns) local oUF = ns.oUF local UF = P:GetModule("UnitFrames") local unitFrames = { ["player"] = true, ["pet"] = true, } function UF:Configure_Fader(frame) if UF.db["Fader"] then if not frame:IsElementEnabled("Fader") then frame:EnableElement("Fader") end fram...
local scan = require("plenary.scandir") local M = {} local function contains(list, text) for _, v in pairs(list) do if v == text then return true end end return false end M.create_dependency_string = function(artifact, selected_artifact) print(vim.inspect(selected_artifact)) local project_roo...
function conky_vars() -- Set network interface for all scripts here var_NETWORK = "enp0s31f6" --bars & graphs --for text var_NETUP = "${upspeed enp0s31f6}" var_NETDOWN = "${downspeed enp0s31f6}" var_TOTALUP = "${totalup enp0s31f6}" var_TOTALDOWN = "${totaldown enp0s31f6}" ...
local Light = require('light') local Music = require('music') local Map = require('map') local Player = require('mob.player') local Assets = require('assets') local World = require('world') local Time = require('time') local serpent = require('serpent') local TerrainGeneration = require('terrain_generation') local max,...
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local keymap = require "core.keymap" local common = require "core.common" local function suggest_directory(text) text = common.home_expand(text) return common.home_encode_list(text == "" and core.recent_projects or ...
-- -- Demonstration of value collection from client/server threads. -- local sockfd = collect(-1) -- `sockfd` now refers to a special table ("{ -1 }") w/ metadata set. -- Should be treated as an opaque object. local function log_fd(fd) io.write(tostring(fd) .. " ") io.flush() end local function on_socket(fd) l...
-- Author: Shush -- Date: 30/04/2017 -- Setting the two behavior changing talents to call for behavior again so the update works properly LinkLuaModifier("modifier_special_bonus_imba_skeleton_king_2", "components/abilities/heroes/hero_skeleton_king.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_special_bonu...
local tween = require 'tween.tween' local TaskSequence = {} TaskSequence.__index = TaskSequence --------------------------------------------------------------------------------------------------- function TaskSequence.new() local tasksequence = { tasks = {}, currentTaskId = 1, isFinished = false} retur...
local function AfterGarrisonFollowerPage_ShowFollower(self,followerID) local followerInfo = C_Garrison.GetFollowerInfo(followerID) if not followerInfo then return end if not followerInfo.isCollected then return end local weaponItemID, weaponItemLevel, armorItemID, armorItemLevel = C_Garrison.GetFollowerItem...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) local tile = Tile(Position({ x = 32780 , y = 32231 , z = 8})) if item.itemid == 1945 then if tile:getItemById(387) then tile:getItemById(387):remove() item:transform(1946) else Game.createItem(387, 1, { x = 32780 , y = 32231 , z = 8...
return { version = "1.4", luaversion = "5.1", tiledversion = "2020.06.12", orientation = "orthogonal", renderorder = "right-down", width = 256, height = 256, tilewidth = 32, tileheight = 32, nextlayerid = 15, nextobjectid = 957, properties = {}, tilesets = { { name = "...
local utils = require("vintellij.utils") local cfg = require("vintellij.config").config local M = {} local function notification_handler() if vim.fn.has "nvim-0.5.1" > 0 then vim.lsp.handlers["vintellij/notification"] = function(_, params, ctx, _) if params["eventType"] == 1 then -- Close connecti...
local LerpAngle = LerpAngle local BUILDER, PART = pac.PartTemplate("base_movable") PART.ClassName = "camera" PART.Group = 'entity' PART.Icon = 'icon16/camera.png' BUILDER:StartStorableVars() BUILDER:GetSet("EyeAnglesLerp", 1) BUILDER:GetSet("DrawViewModel", false) BUILDER:GetSet("NearZ", -1) BUILDER:GetSet("Far...
-- Script to fly an aircraft on a strafing mission -- 2014, VT-MAK -- TODO: -- Add a goal point state variable, and collapse the two at-point predicates -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Spatial utilities. For the CSC path function. spatialUtil = require "spatialUtil" -- ...
workspace "CustomTerminal" architecture "x64" configurations{ "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "TerminalCore" location "TerminalCore" language "C++" kind "ConsoleApp" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-obj/" .. outpu...
-- Generated by CSharp.lua Compiler local System = System local SlipeClientPeds local SlipeMtaDefinitions local SlipeSharedElements local SystemNumerics System.import(function (out) SlipeClientPeds = Slipe.Client.Peds SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedElements = Slipe.Shared.Elements SystemN...
require 'nn' return function (opt) -- Conventional CNN local model = nn.Sequential() -- feature learning model:add(nn.SpatialConvolutionMM(3, 80, 3, 3)) model:add(nn.ReLU()) model:add(nn.SpatialMaxPooling(2, 2, 2, 2)) if opt.dataset == "MNIST-rot-12k" then mo...
local path = require("eden.core.path") local opt = vim.opt local backup = path.join(path.cachehome, "backup") local swap = path.join(path.cachehome, "swap") local undo = path.join(path.cachehome, "undo") local view = path.join(path.cachehome, "view") path.create_dir(backup) path.create_dir(swap) path.create_dir(undo...
package("pcre2") set_homepage("https://www.pcre.org/") set_description("A Perl Compatible Regular Expressions Library") set_urls("https://ftp.pcre.org/pub/pcre/pcre2-$(version).zip", "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$(version).zip") add_versions("10.23", "6301...
workspace "X-Engine" architecture "x86_64" startproject "X-Editor" configurations { "Debug", "Release", "Dist" } outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "X-Engine/vendor/GLFW/include" IncludeDir["GLAD"] = "X-Engine/vendor/GLAD/include" IncludeD...
if not modules then modules = { } end modules ['regi-8859-10'] = { version = 1.001, comment = "companion to regi-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } return { [0] = ...
module("resty.mongol", package.seeall) local mod_name = (...) local assert , pcall = assert , pcall local ipairs , pairs = ipairs , pairs local setmetatable = setmetatable local socket = ngx.socket.tcp local connmethods = { } local connmt = { __index = connmethods } local dbmt = require ( mod_name .. ".dbmt" ) fu...
--Libromancer Displaced --Script by Lyris12 local s,id,o=GetID() function s.initial_effect(c) --control local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_CONTROL+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetHintTiming...
local time = os.clock() local target = arg[1] assert(target) os.execute ("luac5.1 -s " .. target) local ir = io.open ('luac.out', 'rb'):read ('*all') local code = 'local code = \'' for i = 1, #ir do code = code .. '\\' .. string.byte (ir, i) end code = code .. '\'' local src = io.open ('loader_test.l...
----------------------------------- -- Area: The Sanctuary of Zi'Tah (121) -- NPC: qm1 (???) -- Quests: The Weight of Your Limits (Steel Cyclone WSNM "Greenman") -- !pos -324 1 474 121 ----------------------------------- local ID = require("scripts/zones/The_Sanctuary_of_ZiTah/IDs") require("scripts/globals/wsquest") ...
Liftup = {} Liftup.e = {} ------------------------------------------------------ -- System events ------------------------------------------------------ function Liftup:new() local u = {} setmetatable(u, self) self.__index = self return u end function Liftup:onConnect() self.dt = 0 self.enabled = false e...
data:extend( { { type = "item", name = "titanium-plate", icon = "__spicy-teeth-core_assets__/graphics/icons/titanium-plate.png", icon_size = 32, subgroup = "raw-material", order = "e-b[titanium-plate]", stack_size = 100 } } )
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:SpawnFunction( ply, tr ) if ( !tr.Hit ) then return end local SpawnPos = tr.HitPos + tr.HitNormal * 16 local ent = ents.Create( self.ClassName ) ent:SetPos( SpawnPos ) ent:Spawn() ent:Activate() // timer.Create("batter...
local StringIO = require 'StringIO' local byte, sub, char = string.byte, string.sub, string.char local insert, concat = table.insert, table.concat local tostring, tonumber = tostring, tonumber local open = io.open local bit = require 'bit' local bit_band, bit_bor, bit_rshift, bit_lshift = bit.band, bit.bor, bit.rshift,...
Class = require "lui.class" Widget = require "lui.widget" Button = Class("Button", Widget) function Button:init(values) Widget.init(self, values) end return Button
require 'apache2' function translate_name(r) r:debug("translate_name: " .. r.uri) local query = r:parseargs() if query.translateme then r:debug("translate_name: translateme was true " .. r.uri) r.uri = "/modules/lua/hello.lua" return apache2.DECLINED end return apache2.DE...
vim.o.completeopt = "menuone,noselect" local present, compe = pcall(require, "compe") if not present then return end compe.setup { enabled = true, autocomplete = true, debug = false, min_length = 1, preselect = "disable", throttle_time = 0, source_timeout = 200, incomplete_delay = ...
return { name = "cmdline", version = "0.0.1", description = "A simple parser for command line", author = "Vladimir Dronnikov <dronnikov@gmail.com>", dependencies = { }, main = "cmdline", }
local PercentageUi = script:GetCustomProperty("NextCreatePercentage"):WaitForObject() local AmountText = PercentageUi:GetCustomProperty("AmountText"):WaitForObject() local LOCAL_PLAYER = Game.GetLocalPlayer() function UpdateBar() local Gold = LOCAL_PLAYER:GetResource("Gold") PercentageUi.progress = Gold/10 ...
DefineClass.TunnelConstructionDialog = { __parents = { "InterfaceModeDialog" }, MouseCursor = const.DefaultMouseCursor, mode_name = "tunnel_construction", success_sound = "CableConstructionSuccess", template = false, params = false, TryCloseAfterPlace = TryCloseAfterPlace, } function TunnelConstructionDialo...
-- Localization for ruRU if GetLocale() ~= "ruRU" then return end -- Actionbar Localization L_GUI_ACTIONBAR_BAGS_BAR = "Включить панель сумок" L_GUI_ACTIONBAR_BAGS_BAR_HIDE = "Скрыть панель сумок" L_GUI_ACTIONBAR_BAGS_BAR_MOUSEOVER = "Показывать панель сумок при наведении мыши" L_GUI_ACTIONBAR_ENABLE = "Включить панел...
----------------------------------------- -- ID: 4661 -- Scroll of Blink -- Teaches the white magic Blink ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(53) end function onItemUse(target) target:addSpell(53) end
local dir=... require(dir .. ".focus_stack") require(dir .. ".frame") require(dir .. ".transition_frame") require(dir .. ".toolbar") require(dir .. ".widget") require(dir .. ".editor") require(dir .. ".theme")
-- -- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved. -- @attribution Inspired by https://github.com/friesencr/lua_promise -- @license <http://unlicense.org/> -- local Promise = Class() local function null_or_unpack(val) if val then return unpack(val) else return...
local function equalObjects(...) local firstObject = select(1, ...) for i = 2, select('#', ...) do if firstObject ~= select(i, ...) then return false end end return true end return equalObjects
---- -- Tests for the xlsxwriter.lua core class. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- require "Test.More" require "Test.LongString" plan(1) ---- -- Tests setup. -- local expected local got local caption local Core = require "xlsxwriter.core" local core -- Remove extra whitespace in the formatt...
--[[ Copyright (C) 2013 Lex Robinson This code is freely available under the MIT License. See the LICENSE file for more information. --]] AddCSLuaFile(); ENT.Type = "anim"; -- ENT.Base = "base_shootable"; DEFINE_BASECLASS("base_shootable"); ENT.PrintName = "Shootable Bottle"; ENT.Author = "Lex Robinson"; E...
local Gamestate = require "lib.hump.gamestate" local display = require "display.display" local Image = require "lib.image" local Sfx = require "lib.sfx" local Timer = require "lib.hump.timer" local str = require "lib.str" local pos, text, title local speed = 30 local timer local blink local time local dialog = {} dia...
local part_length = 16 function blockexchange.iterator(origin, pos1, pos2) local base_pos1 = blockexchange.get_base_pos(origin, pos1) local base_pos2 = blockexchange.get_base_pos(origin, pos2) local pos local count = 0 local total_parts = math.max(math.ceil(math.abs(pos1.x - pos2.x) / part_leng...
require("mineunit") mineunit("core") mineunit("default/functions") sourcefile("init") describe("mtzip.unzip", function() it("unzip smoketests", function() assert.not_nil(mtzip.unzip) assert.equals("function", type(mtzip.unzip)) end) it("extracts the uncompressed test-archive", function() local f = io.open(...
ENT.Type = "anim" ENT.Base = "cw_ammo_ent_base" ENT.PrintName = "9x39MM Ammo" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "CW 2.0 Ammo" ENT.CaliberSpecific = true ENT.AmmoCapacity = 60 ENT.ResupplyAmount = 20 ENT.Caliber = "9x39MM" ENT.Model = "models/Items/BoxMRounds.mdl"
print 'starting' local co = coroutine.create(error) print('returned', coroutine.resume(co,'errormessage'))
--[[Dominos Config Localization - Italian]] local L = LibStub('AceLocale-3.0'):NewLocale('Dominos-Config', 'itIT') if not L then return end L.Scale = 'Proporzione' L.Opacity = 'Opacità' L.FadedOpacity = 'Dissolvenza' L.Visibility = 'Visibilità' L.Spacing = 'Distanza' L.Padding = 'Imbottitura' L.Layout = 'Disposizione...
AddEventHandler('qb-lockpick:client:openLockpick', function(callback) lockpickCallback = callback openLockpick(true) end) RegisterNUICallback('callback', function(data, cb) openLockpick(false) lockpickCallback(data.success) cb('ok') end) RegisterNUICallback('exit', function() openLockpick(false) ...
if not modules then modules = { } end modules ['scrn-hlp'] = { version = 1.001, comment = "companion to scrn-hlp.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local tonumber = tonumb...
local module = {async = true} local classes = {} local id = 0 local function Make(class, info) id += 1 info.id = id for key, value in pairs(class) do info[key] = value end return class end function classes.Bandit() return { ownsHome = true, wanderX = 20, wanderZ = 20, searchRadius = 150, searc...
require("engine/test/bustedhelper") local sprite_data = require("engine/render/sprite_data") describe('sprite', function () describe('_init', function () it('should init a sprite with an id_loc', function () local spr_data = sprite_data(sprite_id_location(1, 3)) assert.are_same(sprite_id_location(1,...
local M = {} local api = vim.api M.toggle = function() local is_number_line_on = api.nvim_win_get_option(0, 'number') api.nvim_win_set_option(0, 'number', not is_number_line_on) api.nvim_win_set_option(0, 'relativenumber', not is_number_line_on) end return M
_nb_energy_bars = nil IsInGroceryUI = false local WaitingEnergyBuyConfirmation = false local _e_text function LeaveGroceryUI() ShowMouseCursor(false) SetIgnoreMoveInput(false) SetIgnoreLookInput(false) SetInputMode(INPUT_GAME) IsInGroceryUI = false _e_text = nil end function GroceryUI() l...
#! /usr/bin/env lua -- lua-tinycdb does not assign to any global variables, so name it yourself cdb = require("cdb") -- make new cdb, creating a file called example.cdb.tmp that will be renamed -- to example.cdb when finished. Due to the semantics of rename, this will -- atomically replace example.cdb with the newl...
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
--Config here function love.conf(t) t.title = "Generic Top Down Shooter" t.version = "0.9.1" t.window.width = 1280 t.window.height = 720 end
-- -- Created by IntelliJ IDEA. -- User: RJ -- Date: 30/04/14 -- Time: 09:57 -- To change this template use File | Settings | File Templates. -- if isClient() then return end require "Map/SGlobalObjectSystem" ---@class STrapSystem : SGlobalObjectSystem STrapSystem = SGlobalObjectSystem:derive("STrapSystem") STrapSys...
local item = require("../item") local image = require("../image") return { name = "Villager confrontation", amount = 5, condition = function (state) return state.ratsSold > 15 and state.ratLevel >= 2 end, description = "A villager appears to confront you about your recent rat dealings", heads = { e...
-- Copyright 2015-2017 David B. Lamkins <david@lamkins.net>. See LICENSE. -- Faust LPeg lexer, see http://faust.grame.fr/ local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'faust'} -- Whitespace. local ws = token(l.WHITESPACE, l.space...
local Renderer = {} Renderer.rectangle = function(mode, posX, posY, width, height, radiusX, radiusY) love.graphics.rectangle(mode, posX, posY, width, height, radiusX, radiusY) end Renderer.setColor = function(color) love.graphics.setColor(color[1] / 255, color[2] / 255, color[3] / 255, color[4]) end Renderer...
-- BEQ Branch if Zero is Set, Relative, 2 Bytes, 2+ Cycles local mem = require(script.Parent.Parent.Memory) local statusRegisters = require(script.Parent.Parent.Registers) local internal = require(script.Parent.Parent.Internal) local opVar = require(script.Parent.Parent.Util.OperatorVariations) return function() ...
--[[ Name: cl_gui.lua ]]-- -- PrintTable( Entity( 1 ):GetSequenceList() ) local SANDBOX = {} GM.Gui = (GAMEMODE or GM).Gui or {} GM.Gui.m_intKeyDelay = 0.15 GM.Gui.m_tblNWMenus = (GAMEMODE or GM).Gui.m_tblNWMenus or {} GM.Gui.m_tblKeyStates = (GAMEMODE or GM).Gui.m_tblKeyStates or {} GM.Gui.m_tblVoicePanels = {} ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Effects = {}, InheritsObject = false, Prerequisites = { PlaceObj('CheckTechStatus', { 'Field', "Storybits", 'TechId', "AnomalousGenomeResequencing", }), }, ScriptDone = true, Text = T(44499...
require("internal.data.base") local fs = require("util.fs") local paths = require("internal.paths") local argparse = require("thirdparty.argparse") local Env = require("api.Env") local Log = require("api.Log") local function build_app() local parser = argparse("opennefia", "An open-source engine reimplementation o...
local flow = require("engine/application/flow") local gamestate = require("engine/application/gamestate") local text_helper = require("engine/ui/text_helper") local menu_item = require("menu/menu_item") local menu = require("menu/menu_with_sfx") local visual = require("resources/visual_common") -- we should require t...
-- this table houses all handling properties that can be used by scripts to modify the vehicles' handlings, this list may or may not be useless, but is kept for reference. local handlingData = { -- generic handling data "handlingName", "fMass", "fInitialDragCoeff", "fPercentSubmerged", "vecCentreOfMassOffset", "...
require("tests/testsuite") Cmd.InsertStringIntoParagraph("foo") Cmd.SplitCurrentWord() Cmd.InsertStringIntoParagraph("bar") Cmd.GotoPreviousCharW() Cmd.GotoPreviousCharW() Cmd.GotoPreviousCharW() Cmd.GotoPreviousCharW() Cmd.SplitCurrentParagraph() Cmd.GotoNextCharW() Cmd.DeletePreviousChar() AssertTableEquals({"foo"}...
local Gui = require("api.Gui") local ItemFunction = require("mod.elona.api.ItemFunction") local Rand = require("api.Rand") local Magic = require("mod.elona_sys.api.Magic") local Item = require("api.Item") local Enum = require("api.Enum") local IItemWell = require("mod.elona.api.aspect.IItemWell") local ItemHolyWellAsp...
---------------------------------------------- -- Lua Terminal Module -- Supports multiple terminals with independent command histories -- @module LuaTerminal -- @dependency iup -- @dependency luasocket if terminal over socket is created -- @date 9/3/2014 local iup = iup local type = type local tonumber = tonumber lo...
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, ["BACKS...
local test_name = "" local function assertEqual(actual, expect, msg) if not msg then msg = "" end if actual ~= expect then msg = test_name.." : expect ="..tostring(expect).." but actual = "..tostring(actual).." : "..msg error(msg) end end function main() local player = game_sides[player_side].pla...
local class = require 'middleclass' local DStream = require 'stuart.streaming.DStream' local QueueInputDStream = class('QueueInputDStream', DStream) function QueueInputDStream:initialize(ssc, rdds, oneAtATime) DStream.initialize(self, ssc) self.queue = rdds self.oneAtATime = oneAtATime end function QueueInput...
-- -- Created by IntelliJ IDEA. -- User: w2 -- Date: 17-1-27 -- Time: 上午8:59 -- To change this template use File | Settings | File Templates. --