content stringlengths 5 1.05M |
|---|
local mt = require 'vm.manager'
local library = require 'vm.library'
---@param func emmyFunction
function mt:callIpairs(func, values, source)
local tbl = values[1]
func:setReturn(1, library.special['@ipairs'])
func:setReturn(2, tbl)
end
---@param func emmyFunction
function mt:callAtIpairs(func, values, so... |
project "libep"
kind "StaticLib"
language "C++"
flags { "FatalCompileWarnings", "OmitDefaultLibrary" }
pic "on"
files { "src/**" }
files { "public/**" }
files { "doc/**" }
files { "project.lua" }
filter { "system:windows" }
buildoptions { "/MP" }
filter { }
-- include common stuff
dofile "../common-pro... |
local Array = require("array_2d")
function range(start, stop, step)
local step = step or 1
local dataTable = {}
for i = start, stop, step do
table.insert(dataTable, {i})
end
local outArr = Array(#dataTable, 1)
outArr._data = dataTable
return outArr
end
a = range(1, 25):reshape(5, ... |
local filesystem = require("utils.filesystem")
local github = require("utils.github")
local configs = require("configs")
local persistence = require("persistence")
local utils = require("utils")
local meta = require("meta")
local versionParser = require("utils.version_parser")
local sceneHandler = require("scene_handle... |
local mod = getfenv(1)
assert(mod)
--module(mod._NAME..".DARKWEAVER_SYTH",package.seeall)
local self = getfenv(1)
function OnCombat(unit,_,mTarget)
self[tostring(unit)] = {
shock = math.random(2,6),
chain = math.random(10,15),
summon_phase = 1,
isHeroic = (mTarget:IsPlayer() and mTarget:IsHeroic() )
}
unit:... |
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ FrameXML\PetStable.lua ]]
function Hook.PetStable_SetSelectedPetInfo(icon, name, level, family, talent... |
--[[--
ui.field.hidden{
... -- generic ui.field.* arguments, as described for ui.autofield{...}
}
This function inserts a hidden form field in the active slot. It is a high level function compared to ui.hidden_field{...}. If called inside a read-only form, then this function does nothing.
--]]--
functi... |
local t = Def.ActorFrame {
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
StartTransitioningCommand=cmd(play);
};
---- DOOR OPEN > CLOSE CLOSE > OPEN
LoadActor(THEME:GetPathB("","2013Door01.png"))..{
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;);
OnCommand=cmd(sleep,0.25;linear,0.25;y,... |
-- Run Hello autonomous entities, adapted for Lovr
-- Assumes in namespace: "ent", pl "class" and "stringx"
-- IMPORTS ALL ON REQUIRE
namespace "standard"
require "engine.types"
require "engine.ent"
-- Ent that loads a series of classes, creates them and sets them as children
-- Constructor treats its positional argu... |
local game = require('game')
local shader = require('shader')
_G.lg = love.graphics
_G.lk = love.keyboard
_G.lm = love.mouse
-- configuration settings go here:
-- width and height of the window
_G.WIN_WIDTH = 800
_G.WIN_HEIGHT = 600
-- width and height of the cursor in pixels
local CURSOR_SCALE_X = 4
local CURSOR_SC... |
-- 8
--2 O 1
-- 4
function updateAutotiles()
-- calculates auxillary tables for autotile manipulation
project.autotilet, project.autotilet_strict = {}, {}
-- n => set of autotiles n belongs to
-- strict excludes extra autotiles (>=16)
for n = 0, 255 do
project.autotilet[n] = {}
... |
object_draft_schematic_reverse_engineering_shared_enhancement_module = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/reverse_engineering/shared_enhancement_module.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_reverse_engineering_shared_enhancement_module, ... |
local sessionutils = require ("sessionutils")
local buildkey = sessionutils.buildkey
local should_exclude = sessionutils.should_exclude
local should_include = sessionutils.should_include
--[===[
[
{
"id": "b7323e78a3ec",
"name": "New Flow Control",
"ttl": 60,
"active": true,
"notes": "New Fl... |
return function(Modules, ReplicatedModules)
local public = {}
local private = {}
local GameGui
local PlayerData = {}
local Bindings = {}
function public.Awake()
GameGui = Modules.GuiLibrary.GetGameGui()
end
function public.Init()
Modules.Remotes.Bind("UpdateStats", private.UpdateStats)
end
function p... |
-- Key: model name
-- Value: Model
Race.modelCache = {}
function Race:__init(args)
if settings.debugLevel >= 2 then
print("Race:__init")
end
self.state = nil
self.stateName = nil
self.version = args.version
self.numPlayers = -1
self.playerIdToInfo = {}
self.courseInfo = {}
self.recordTime = -1
self.re... |
function dorelease()
--
-- Helper function: runs a command (formatted, with optional arguments) and
-- suppresses any output. Works on both Windows and POSIX. Might be a good
-- candidate for a core function.
--
local function exec(cmd, ...)
cmd = string.format(cmd, ...)
local z = os.execute(cmd .. " > output... |
local dns = require('dns')
local nb = require('dns.nbio')
-- Parse config options
local tx, rx = 0, 0
local udp = false
local count = 65536
local reps = 1
local host, port = '127.0.0.1', 53
local receiver = false
local k = 1 while k <= #arg do
local o = arg[k]
if o == '-r' then
receiver = true
elseif o == '-u' th... |
strfile = { }
function strfile.open(s)
return {
_buf = s,
_pos = 1,
_readline = function(self)
if self._pos == nil then
return nil
end
local nl = self._buf:find("\n", self._pos, true)
local line
if nl then
line = self._buf:sub(self._pos, nl - 1)
nl = nl + 1
else
line = self._b... |
local ok, nvimtree = pcall(require, "nvim-tree")
if not ok then
return
end
local signs = require("utils").signs
local colors = require("theme").colors
vim.g.nvim_tree_special_files = {}
vim.g.nvim_tree_add_trailing = 1
vim.g.nvim_tree_show_icons = {
git = 0,
folders = 1,
files = 1,
folder_arrows ... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
ValidEqStrEncodings = class.class(KaitaiStruct)
function ValidEqStrEncoding... |
local lspconfig = require('lspconfig')
local lsp = require('sh.lsp')
local M = {}
function M.lua_setup()
return {
{
formatCommand = 'lua-format --tab-width=2 --indent-width 2 --column-limit=150 --align-parameter --chop-down-table --chop-down-kv-table -i',
formatStdin = true,
rootMarkers = {".g... |
local schema = require('vn-night.schema').schema
local u = require('vn-night.utils')
function load_syntax()
local syntax = {
Normal = { fg=schema.fg, bg=schema.none };
Terminal = { fg=schema.fg, bg=schema.none };
SignColumn = { fg=schema.fg,... |
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_essentials\ce_abilities_familiar_cr.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
SetSource({
SourceLong="Core Rulebook",
SourceShort="CR",
SourceWeb="http://paizo.com/store/downloads/... |
local Plugin = script.Parent.Parent.Parent
local InstanceStorage = Plugin.InstanceStorage
local wrapStrictTable = require(Plugin.Core.Util.wrapStrictTable)
local Types = require(Plugin.Core.Util.Types)
local Constants = {}
Constants.DEBUG_LABEL = "RopeMaster"
Constants.PLUGIN_MIN_WIDTH = 320
Constants.PLUGIN_MAX_WID... |
return {'giulia','giuliano','giulio','giuseppe','giulias','giulianos','giulios','giuseppes'} |
-- util.lua
local macro_defs = require("macro_defs")
local util = {}
util.toHex = function(data, sep, record_per_line, line_break)
local res = ""
sep = sep or ""
record_per_line = record_per_line or 8
line_break = line_break or "\n"
local sssep = ""
if not data then return "<null>" end
local... |
---
--- A script to generate some dataset used by migration.test.lua
---
box.cfg{ wal_max_size = 250 }
box.schema.space.create("distro")
box.space.distro:create_index('primary', { type = 'hash', unique = true,
parts = {1, 'str', 2, 'str', 3, 'num'}})
box.space.distro:create_index('codename', { type = 'hash', uniqu... |
local FloatBallData = class(GameData);
FloatBallData.Delegate = {
onGetFloatBallConfigCallBack = "onGetFloatBallConfigCallBack";
}
FloatBallData.s_tryCount = 3;
FloatBallData.s_maxShowCount = 5;
FloatBallData.s_minShowCount = 3;
FloatBallData.initData = function(self)
self.m_redBubbleShow = fa... |
game:DefineFastFlag("AvatarEditorRecommendedUIBloxButton", false)
return function()
return game:GetFastFlag("AvatarEditorRecommendedUIBloxButton")
end |
--
-- Created by IntelliJ IDEA.
-- User: Guy
-- Date: 18/06/2017
-- Time: 22:37
-- To change this template use File | Settings | File Templates.
--
PDUI_Animations = PDUI_Animations or class();
PDUI_Animations.animations = PDUI_Animations.animations or {};
PDUI_Animations.runningAnimations = PDUI_Animations.runningAn... |
data:extend({
{
type = "item-subgroup",
name = "upgrade-machines",
group = "logistics",
order = "z",
}
})
Jelmergu:addRecipe({
name = "burner-to-electric-drill",
enabled = true,
expensive = true,
ingredients = {
{ "burner-mining-drill", 1 },
{ "ir... |
--- Tools for working with tiles.
-- A tile represents a 1 unit<sup>2</sup> on a surface in Factorio.
-- @module Tile
-- @usage local Tile = require('stdlib/area/tile')
-- @see LuaTile
local Tile = {_module_name = 'Tile'}
setmetatable(Tile, {__index = require('stdlib/core')})
local Is = require('stdlib/utils/is')
loc... |
--[[
File name: monster.lua
Description: create serene monster/enemys
Author: oldmilk
--]]
-- import services
local pathfindingService = game:GetService("PathfindingService")
local tweenService = game:GetService("TweenService")
local HttpService = game:GetService("HttpService")
local item = require(game.Re... |
--[===[DOC
= escapeshellarg
[source,lua]
----
function escapeshellarg( str ) --> esc
----
Adds double quotes around the `str` string and quotes/escapes any existing
double quotes allowing you to pass the result `esc` string directly to a shell
function and having it be treated as a single safe argument.
This functi... |
object_mobile_nexus_8t88 = object_mobile_shared_nexus_8t88:new {
}
ObjectTemplates:addTemplate(object_mobile_nexus_8t88, "object/mobile/nexus_8t88.iff")
|
local orig = CrimeNetGui.check_job_pressed
function CrimeNetGui:check_job_pressed(x,y, ...)
for _, job in pairs(self._jobs) do
if job.mouse_over == 1 and job.update_data then
self:disable_crimenet()
BeardLib.Utils.Sync:DownloadMap(job.level_name, job.job_key, job.update_data, functio... |
-- Copyright 2019 Teverse
-- This script is required when workshop is loaded,
-- and engine.workshop is passed to the function returned.
-- e.g. require('tevgit:workshop/main.lua')(engine.workshop)
local function beginLoad(workshop)
--[[
Teverse currently downloads tevgit files from the github repo when requested b... |
require("Game/MainUI/MainUIConst")
require("Game/MainUI/MainUIModel")
MainUIController = {}
function MainUIController:Init( )
self.login_succeed_handler = GlobalEventSystem:Bind(MainUIConst.Event.InitMainUIViews, MainUIController.InitMainUIViews, self)
end
function MainUIController:InitMainUIViews( )
... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ESX STRIP'
version '1.0.0'
client_scripts {
'config.lua',
'client.lua',
}
server_scripts {
'config.lua',
'server.lua',
}
|
local class = require "class"
local Highscores = class:derive("Highscores")
function Highscores:new()
self.entries = self:load()
end
function Highscores:save()
local data = loadJson(parsePath("runtime.json"))
data.highscores = self.entries
saveJson(parsePath("runtime.json"), data)
end
function Highscores:load()
... |
--[[
This is a simple signal implementation that has a dead-simple API.
local signal = createSignal()
local disconnect = signal:subscribe(function(foo)
print("Cool foo:", foo)
end)
signal:fire("something")
disconnect()
]]
local function addToMap(map, addKey, addValue)
local new = {}
for k... |
include("shared.lua")
include("testhud.lua")
include("custom_menu.lua")
include("custom_scoreboard.lua")
include("player/sh_player.lua")
include("shop/sh_shop.lua")
function GM:ContextMenuOpen()
return false
end |
return function(state)
return state.notifications
end |
local SYSROOT = os.getenv("LUCI_SYSROOT")
-- override uci access
local uci_core = require "uci"
local uci_model = require "luci.model.uci"
uci_model.cursor = function(config, save)
return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
uci_model.cursor_state = function()
re... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- P R O W L N O T I F I C A T I O N S --
-----------------------------------------------------------------------------... |
workspace.CurrentCamera.CameraSubject = script:WaitForChild("Object").Value
script:Destroy() |
local ngx = ngx
local _M = {}
function _M.rewrite()
local ua = ngx.var.http_user_agent
if ua == "hello" then
ngx.req.set_header("x-hello-world", "1")
end
end
return _M
|
package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/entity/ui/complexManager/?.lua"
package.path = package.path .. ";data/scripts/entity/?.lua"
require ("utility")
require ("faction")
require ("defaultscripts")
require ("randomext")
require ("stationextensions")
requir... |
ambox = require('ambox')
p = print
function a1(a, b, c)
assert(a > 0)
assert(b > 0)
assert(c > 0)
local self_addr = ambox.self_addr()
assert(self_addr)
while true do
x, y, z = ambox.recv()
assert(x > 0 and x == y - 1 and y == z - 1)
end
end
a1_addr = ambox.spawn(a1, 111, 222, 333)
ambox.send... |
-------------------------------------------------------------------------------
-- Class to help to build GuiButton
--
-- @module GuiButton
--
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] constructor
-- @param #arg name
-- @return #GuiButton
--
Gui... |
local libDataBroker = LibStub:GetLibrary("LibDataBroker-1.1", true)
if not libDataBroker then return end
local ldb = libDataBroker:NewDataObject("HeroicRaidReady", {
type = "launcher",
icon = "Interface\\Icons\\Achievement_Dungeon_GloryoftheRaider",
label = "HeroicRaidReady",
})
function ldb:OnClick(click... |
local verse = require "verse";
local xmlns_register = "jabber:iq:register";
function verse.plugins.register(stream)
local function handle_features(features_stanza)
if features_stanza:get_child("register", "http://jabber.org/features/iq-register") then
local request = verse.iq({ to = stream.host_, type = "set" }... |
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
-- language support
use 'https://tildegit.org/sloum/gemini-vim-syntax' -- gemini
use 'lervag/vimtex' -- LaTeX
use {
'nvim-telescope/telescope-fzf-native.nvim',
run = 'make',
}
use {
'nvim-telescope/telescope.nvim',
... |
local M = {}
M.setup = function()
vim.opt.foldlevelstart = 99
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.indentexpr = "nvim_treesitter#indent()"
require("nvim-treesitter.configs").setup {
ensure_installed = {
"bash",
"comment... |
--[[
=====================================================================
** Map Tools **
By Calinou.
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
maptools = {}
local... |
local addNode = require('graph.addNode')
local function addLink(fromId, toId, data)
local _fromId = addNode(fromId);
local _toId = addNode(toId);
-- NOTE: this design prohibits multiedges (since we are using sets)
redis.call('SADD', _fromId .. '.out', _toId);
redis.call('SADD', _toId .. '.in', _fromId);
... |
local IS_ENABLED = script:GetCustomProperty("ShowSkinsAtRun")
if (Environment.IsPreview() and IS_ENABLED) then
local EQDB = script:GetCustomProperty("EquipmentDataBase"):WaitForObject()
for _, folder in pairs(EQDB:GetChildren()) do
for _, firstChild in pairs(folder:GetChildren()) do
print... |
local awful = require("awful")
local rofi = require("modules.rofi")
local modkey = require("config.keys.mod").modkey
local altkey = require("config.keys.mod").altkey
local shiftkey = require("config.keys.mod").shiftkey
local ctrlkey = require("config.keys.mod").ctrlkey
return awful.util.table.join(
awfu... |
-- Set of known compatible/incompatible plugins for your gamemode (any not in this table will use their default behaviour).
local CompatiblePlugins = {
voterandom = true,
votesurrender = true,
pregame = true
}
Shine.Hook.Add( "CanPluginLoad", "MyGamemodeCheck", function( Plugin, GamemodeName )
return CompatiblePlug... |
module(...,package.seeall)
--
----定义规范:
----PacketID/100 为协议组,每个模块对应一组,如角色,技能等
----PacketID%100 为子协议号
---- 10000以下为 内部通信消息
-- CG == client to game server
-- GC == game server to client
--- character ---
CG_ASK_LOGIN = 10001
GC_ASK_LOGIN = 10002
CG_REGISTER = 10003
GC_REGISTER = 10004
GC_HUMAN_INFO = 10006
CG_GET_NA... |
local defaults = require("plugins.telescope.defaults")
require("telescope").setup({
defaults = defaults,
extensions = {
-- Fast, fast, really fast sorter
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
},
fzf = {
fuzzy = true, -- false will only do exa... |
<script src="<%- staticFile('/public/libs/editor/editor.js') %>" ></script>
<script src="<%- staticFile('/public/libs/webuploader/webuploader.withoutimage.js') %>"></script>
<script src="<%- staticFile('/public/libs/editor/ext.js') %>"></script>
|
--[[
Powerarrow Darker Awesome WM config 2.0
github.com/copycat-killer
--]]
local awful = require("awful")
awful.util = require("awful.util")
--{{{ Main
theme = {}
home = os.getenv("HOME")
c... |
--
--
--
--
--
-- ... |
require("ltest.init")
require "libtdrlua"
pkg_table = {
head = {
magic = 0x7FFF,
msgid = 10000001,
cmd = 1,
version = 0,
bodyLen = 0,
datetime = libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"),
srcIp = libtdrlua.str2tdrip("127.0.0.1"),
},
... |
local fiber = require('fiber')
local checks = require('checks')
local errors = require('errors')
local netbox = require('net.box')
local ClientError = errors.new_class('ClientError')
local SessionError = errors.new_class('SessionError')
local function acquire_lock(session, lock_args)
checks('stateboard_session',... |
local data = {}
data.CODE_TRUNCATE = 300 -- 300
data.COMMENT_TRUNCATE = 300 -- 300
data.BATCH_SIZE = 5
data.EOS_NUM = 1
data.RES_NUM = 1
function data.string_split(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
... |
local damage = {
long_sword = {
name = "長剣",
verb = "切られた",
verb_and = "切り払い"
},
short_sword = {
name = "短剣",
verb = "刺された",
verb_and = "突き刺して"
},
axe = {
name = "斧",
verb = "切られた",
verb_and = "切り払い"
},
blunt = {
name = "鈍器",
verb = ... |
r = math.random(#zensko_ime_nom);
ime = zensko_ime_nom[r];
|
slot0 = class("ShipRarity")
slot0.Gray = 2
slot0.Blue = 3
slot0.Purple = 4
slot0.Gold = 5
slot0.SSR = 6
slot0.Rarity2Print = function (slot0)
if not slot0.prints then
slot0.prints = {
nil,
"1",
"2",
"3",
"4",
"5"
}
end
return slot0.prints[slot0]
end
slot0.Rarity2HexColor = function (slot0)
... |
--------------------------------------------------------------------------------
-- Handler.......... : onOpenItemInBrowser
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
---------------------------------------------------------------... |
package.path = "../?.lua;" .. package.path
local rawterm = require("rawterm")
rawterm.enableRawMode({ signals = true })
local function isControlChar(c)
if type(c) == "string" then c = c:byte() end
return not (c >= 32 and c <= 126)
end
local function copyTable(t)
local nt = {}
for i = 1, #t do
... |
--[[
Original work Copyright (c) 2015 Frank Edelhaeuser
Modified work Copyright (c) 2017 Uday G
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 w... |
return function(state, action)
state = state or false
if action.type == "ToggleWorldView" then
return action.enabled
end
return state
end
|
include( "shared.lua" )
include( "robloxhud.lua")
include( "robloxchat.lua")
--include( "camerastuff.lua")
include( "buildmode.lua")
include( "lavakillfield.lua")
function GM:SpawnMenuOpen()
--Just for the competition i'm disabling the q menu cuz I dont have any way to figure out if this admin check works.
--r... |
if game.SinglePlayer() then
util.AddNetworkString("arccw_sp_lhikanim")
util.AddNetworkString("arccw_sp_anim")
util.AddNetworkString("arccw_sp_health")
util.AddNetworkString("arccw_sp_checkpoints")
end
util.AddNetworkString("arccw_sendattinv")
util.AddNetworkString("arccw_slidepos")
util.AddNetworkString("arccw_color... |
-----------------------------------
-- Area: Yahse Hunting Grounds
-- NPC: Yahse Wildflower
-- Involved in quest Children of the Rune
-- pos 370.6285 0.6692 153.3728
-----------------------------------
require("scripts/globals/npc_util")
local ID = require("scripts/zones/Yahse_Hunting_Grounds/IDs")
function onTrade(p... |
local p = {}
p.ssid = "linksys"
p.pass = "1234"
return p
|
--------------------------------
-- @module EventFocus
-- @extend Event
-- @parent_module cc
--------------------------------
-- Constructor.<br>
-- param widgetLoseFocus The widget which lose focus.<br>
-- param widgetGetFocus The widget which get focus.<br>
-- js ctor
-- @function [parent=#EventFocus] EventFocus
... |
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
return function(loveframes)
---------- module start ----------
-- button object
local newobject = loveframes.newObject("tre... |
return {
"000_base_oauth2",
--"001_14_to_15",
--"002_15_to_10",
}
|
--[[
General functions that control the operation and flow of the script.
Physical input -> Description
esc: Escape key
tab: Tab key
lmb: Left mouse button
rmb: Right mouse button
mmb: Middle mouse button
uparrow: Up arrow key
downarrow: Down arrow key
leftarrow: Left arrow key
rightarrow: Right arrow key
f1-f12: Func... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {
PlaceObj('AddTrait', {
'Trait', "scientist",
}),
PlaceObj('AddTrait', {
'Trait', "Enthusiast",
}),
},
Effects = {},
Prerequisites = {
PlaceObj('IsAssociatedObject', nil),
},
ScriptDone =... |
-----------------------------------
-- Area: Lebros Cavern (Wamoura Farm Raid)
-- Mob: Ranch Wamouracampa
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local instance = mob:getInstance();
instance:setPro... |
-- audio
function InitialiseAudio()
FCAudio.AddCollisionTypeHandler( "BallActor", "BallActor", "BallCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "WorldActor", "BallActor", "BallCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "WorldActor", "GemActor", "GemCollisionAudioHandler" )
FCAudio.Ad... |
local BackgroundSlice = require "class.BackgroundSlice"
local Background = class("Background")
function Background:initialize(slices, path)
self.slices = {}
self.y = 0
for i, slice in ipairs(slices) do
local img = love.graphics.newImage(path .. i .. ".png")
img:setWrap("repeat", "repeat")
... |
-- Gkyl --------------------------------------------------------------
local Plasma = require ("App.PlasmaOnCartGrid").VlasovMaxwell
-- Maxwellian in 2v
local function maxwellian2D(n, vx, vy, ux, uy, vth)
local v2 = (vx - ux)^2 + (vy - uy)^2
return n/(2*math.pi*vth^2)*math.exp(-v2/(2*vth^2))
end
sim = Plasma.Ap... |
local utils = require 'renamer.mappings.utils'
local stub = require 'luassert.stub'
local eq = assert.are.same
describe('mappings', function()
describe('utils', function()
describe('exec_in_normal', function()
it('should exit "insert" mode and execute callback', function()
loc... |
local path = require 'pl.path'
local hasMoon, moonscript = pcall(require, 'moonscript')
return function()
local loadHelper = function(busted, helper, options)
local old_arg = arg
local success, err = pcall(function()
arg = options.arguments
if helper:match('%.lua$') then
dofile(path.normp... |
---
-- Ball Class
-- @author debuss-a
--
Ball = {}
Ball.__index = Ball
function Ball.new(x, y, colors, velocity)
local self = setmetatable({}, Ball)
-- Coordinates
self.x = x or love.math.random(0, love.graphics.getWidth())
self.y = y or love.math.random(0, love.graphics.getHeight())
self.colors ... |
----
--- @alias SocketName "spine_01"|"spine_02"|"spine_03"|"spine_04"|"spine_05"|"neck_01"|"neck_02"|"head"|"clavicle_l"|"shoulder_l"|"upperarm_l"|"lowerarm_l"|"hand_l"|"weapon_l"|"clavicle_r"|"shoulder_r"|"upperarm_r"|"lowerarm_r"|"hand_r"|"weapon_r"|"thigh_l"|"calf_l"|"foot_l"|"thigh_r"|"calf_r"|"foot_r"
----
|
modifier_ability_power = class(Modifier)
LinkLuaModifier("modifier_ability_power", modifier_ability_power)
function modifier_ability_power:OnCreated ()
self.GetModifierBonus = self.GetModifierBonus
self:SetVisible(false)
self:AttachVariableModifier("ability_power");
end
function modifier_ability_power:GetModifier... |
--FPS Engine premake4 build script generaor
local Libs_common = { "freeimage", "glfw3", "pthread"}
local Libs_lin = { "GL", "GLU", "X11", "Xxf86vm", "Xrandr", "Xi", "rt" }
local Libs_win = { "opengl32", "glu32", "gdi32", }
solution "ppcheckers"
configurations { "Release" }
language "C++"
links(Libs_common)
... |
--[[
TheNexusAvenger
Test for SurfaceGuis containing unwrapped buttons.
--]]
local BaseTest = require(script.Parent:WaitForChild("BaseTest"))
local ProblemHighlights = require(script.Parent:WaitForChild("Common"):WaitForChild("ProblemHighlights"))
local UnwrappedSurfaceGuiButtonsTest = BaseTest:Extend()
UnwrappedSur... |
fx_version 'bodacious'
games { 'rdr3', 'gta5' }
author 'JRenZ'
description "Motel resource, using MLO by JRenZ."
version "1.1"
server_scripts {
"@async/async.lua",
"@mysql-async/lib/MySQL.lua",
"server/*"
}
client_scripts {
"client/*"
}
shared_scripts {
"configs/*",
... |
object_mobile_dug_static = object_mobile_shared_dug_static:new {
}
ObjectTemplates:addTemplate(object_mobile_dug_static, "object/mobile/dug_static.iff")
|
test=function(url)
local req= HTTP:New("GET",url)
req.GetID()
req.GetURL()
req.SetURL(url)
req.GetBody()
req.SetBody("test")
req.ResetHeader()
req.SetHeader("uid","123")
req.AddHeader("uid","234")
req.GetHeader("uid")
req.DelHeader("uid")
req.GetMethod()
req.SetMethod... |
return NOTESKIN:LoadActor("DownLeft","Hold Head")..{
--InitCommand=cmd(rotationy,180);
}; |
local Event = {}
Event.__index = Event;
function Event:set_keyboard(keycode, release, is_repeat)
self.keycode = keycode
self.release = jge.try_or(release, false)
self.is_repeat = jge.try_or(is_repeat, false)
end
function Event:set_directory(dir)
self.directory = dir;
end
function Event:set_mousemove(x, y, relx, ... |
slot0 = class("WorldScene", import("..base.BaseUI"))
slot0.SceneOp = "WorldScene.SceneOp"
slot0.Listeners = {
onAchievementAchieved = "OnAchievementAchieved",
onUpdateEventTips = "OnUpdateEventTips",
onSelectFleet = "OnSelectFleet",
onUpdateSubmarineSupport = "OnUpdateSubmarineSupport",
onClearMoveQueue = "ClearMo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.