content stringlengths 5 1.05M |
|---|
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
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, modify, merge, publish, dis... |
local Class = require 'lib.hump.class'
local Event = getClass 'wyx.event.Event'
-- LightingStatusRequest
--
local LightingStatusRequest = Class{name='LightingStatusRequest',
inherits=Event,
function(self, entityID, x, y)
if type(entityID) ~= 'string' then entityID = entityID:getID() end
verify('string', entityID... |
local class = require'luna'
local queue = class {
Size = {get = function (this) return #this.stack end};
__construct = function (this, ...)
this.stack = {...}
end;
Push = function (this, value)
table.insert(this.stack, value)
end;
Pop = function (this)
local value = ... |
local opts = {
command_on_first_image_loaded="",
command_on_image_loaded="",
command_on_non_image_loaded="",
}
local options = require 'mp.options'
local msg = require 'mp.msg'
options.read_options(opts, nil, function() end)
function run_maybe(str)
if str ~= "" then
mp.command(str)
end
end... |
local date = require 'date'
local cjson = require 'cjson.safe'
local basexx = require 'basexx'
return function(app)
assert(app, "App missing")
local sys = app:sys_api()
local host_name = sys:id()
return {
log = function(app, procid, lvl, timestamp, content)
local content = content:gsub('\n', '\\\\n')
retu... |
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Tuning values for the game, broken off into a lua script so that
-- people can muck with them easily w/o editing the game exe directly.
-- Note: items in here are just shoved in lua globals. Items added
-- will require the exe to be mo... |
--[[ An implementation of a simple numerical gradient checker.
ARGS:
- `opfunc` : a function that takes a single input (X), the point of
evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `eps` : the epsilon to use for the numerical check (default is 1e-7)
RETURN:
- `diff` : error in the gradie... |
local systemTime = hs and hs.timer.secondsSinceEpoch or os.time
local t = systemTime()
local MAX = 28123
local d = function(n)
local max = math.sqrt(n)
local sum = 0
for i = 1, max, 1 do
if n % i == 0 then
sum = sum + i
if i ~= max and i ~= 1 then sum = sum + (n // i) end
... |
local pb = require"pb"
local utils = require"utils"
-- load .proto file.
local media = require"protos.media"
--print(utils.dump(media))
local MediaContent = media.MediaContent
local data = {
media = {
uri = "http://javaone.com/keynote.mpg",
title = "Javaone Keynote",
width = 640,
height = 480,
format =... |
require("which-key").setup({
popup_mappings = {
scroll_down = "<Down>", -- binding to scroll down inside the popup
scroll_up = "<Up>", -- binding to scroll up inside the popup
},
window = {
border = "single", -- none, single, double, shadow
position = "bottom", -- bottom, top
margin = { 1, 0, 1, 0 }, -- ex... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "ISUI/ISUIElement"
---@class ISWeather : ISPanel
ISWeather = ISPanel:derive("ISWeather");
--******************************... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'CAEAudioEntity'
shared... |
local tap = require('tap')
local utils = require('utils')
local test = tap.test('gh-6084-missed-carg1-in-bctsetr-fallback')
test:plan(2)
-- XXX: Bytecode TSETR appears only in built-ins libraries, when
-- doing fixups for fast function written in Lua (i.e.
-- `table.move()`), by replacing all TSETV bytecodes with
-- ... |
local isFunc = require(script.Parent:WaitForChild("isFunc"))
return function (tbl,funcName,...)
assert(type(tbl) == "table", "expected table in arg 1")
assert(type(funcName) == "string", "expected function in arg 2")
for _,module in pairs(tbl) do
if isFunc(module[funcName]) then
module... |
--Thanks to SinisterRectus for this script.
local pp = require('pretty-print')
local function prettyLine(...)
local ret = {}
for i = 1, select('#', ...) do
local arg = pp.strip(pp.dump(select(i, ...)))
table.insert(ret, arg)
end
return table.concat(ret, '\t')
end
local function printLine(...)
local ret = {}... |
local image = require('../image')
return {
name = "Merlin",
description = "He keeps going on about 'programming' and 'algorithms'. Just what are those?",
image = image.merlin
} |
-- Vehicle Data
local VD = ts_vehicles.get
ts_vehicles.handle_rightclick = function(self, player, def)
local player_name = player:get_player_name()
local wielded_item = player:get_wielded_item()
local item_name = wielded_item:get_name()
local control = player:get_player_control()
local vd = VD(self... |
local webviewLib = require('webview')
-- This module allows to launch a web page that could executes custom Lua code.
-- The webview library may change locale to native and thus mislead the JSON libraries.
if os.setlocale() == 'C' then
-- Default locale is 'C' at startup, set native locale
os.setlocale('')... |
object_ship_nova_orion_pirate_light_tier1 = object_ship_shared_nova_orion_pirate_light_tier1:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_pirate_light_tier1, "object/ship/nova_orion_pirate_light_tier1.iff")
|
--[[
说明:
根据分隔符(或者分隔符的正则式)来切分字符串
返回值:
table 包含各个被切分的字符串的数组
参数:
s string 源字符串
sep string 分隔符或者分隔符的正则表达式
]]
function string.split(s, sep)
s = tostring(s)
sep = tostring(sep)
assert(sep ~= '')
if string.len(s) == 0 then return {} end
local pos, r = 0, {}
local iterator = function() return string.find(s, s... |
ITEM.name = "The Communist Manifesto"
ITEM.desc = ""
ITEM.contents = [[
<h1>Manifesto of the Communist Party</h1>
<h3>By Friedrich Engels and Karl Marx</h3>
<p>
A spectre is haunting Europe — the spectre of communism. All the powers of old Europe have entered into a holy alliance to exorcise this spectre: Pope and Tsar... |
fiber = require('fiber')
--
-- gh-2784: do not validate space formatted but not indexed fields
-- in surrogate statements.
--
-- At first, test simple surrogate delete generated from a key.
format = {{name = 'a', type = 'unsigned'}, {name = 'b', type = 'unsigned'}}
s = box.schema.space.create('test', {engine = 'vinyl... |
TOOL.AddToMenu = false
TOOL.ClientConVar["train"] = 1
TOOL.ClientConVar["wagnum"] = 3
TOOL.ClientConVar["lighter"] = 0
TOOL.ClientConVar["texture"] = ""
TOOL.ClientConVar["passtexture"] = ""
TOOL.ClientConVar["cabtexture"] = ""
TOOL.ClientConVar["adv"] = 1
TOOL.ClientConVar["ars"] = 1
TOOL.ClientConVar["skin"]... |
local BonusItem = GetFileConfig("server/setting/bonus/bonus_item_config.lua").RuleData
-- local BonusGold = GetFileConfig("server/setting/bonus/bonus_gold_config.lua").RuleData
-- local BonusExp = GetFileConfig("server/setting/bonus/bonus_exp_config.lua").BonusRule
return function(Data)
local DataTbl = Split(Data, ","... |
require "scripts/settings"
require "scripts/protocol"
function Main()
Protocol:Connect(server, port)
end
function ErrorInfo(code)
if code == 0x03 then
Console:Error("Incorrect account name or password")
elseif code == 0x08 then
Console:Error("Server network error")
elseif code == 0x20 then
Console:Error("Yo... |
if (redis.call('set', KEYS[1], ARGV[1], 'ex', ARGV[2], 'nx')) then
return true
end
return false |
function dorelease()
end
|
local platform = require 'bee.platform'
local config = require 'config'
local glob = require 'glob'
local furi = require 'file-uri'
local parser = require 'parser'
local lang = require 'language'
local await = require 'await'
local timer = require 'timer'
local util = require 'utility'
local g... |
local M = {}
function M.config()
local status_ok, toggleterm = pcall(require, "toggleterm")
if not status_ok then
return
end
toggleterm.setup(require("core.utils").user_plugin_opts("plugins.toggleterm", {
size = 10,
open_mapping = [[<c-\>]],
hide_numbers = true,
shade_filetypes = {},
s... |
---@meta
---@class cc.TransitionFlipAngular :cc.TransitionSceneOriented
local TransitionFlipAngular={ }
cc.TransitionFlipAngular=TransitionFlipAngular
---@overload fun(float:float,cc.Scene:cc.Scene):self
---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self
---@param t float
---@param s cc.Scene
---@param o... |
---------
-- CLI for the make module.
----
local make = require 'luapak.make'
local optparse = require 'luapak.optparse'
local utils = require 'luapak.utils'
local concat = table.concat
local fmt = string.format
local is_empty = utils.is_empty
local reject = utils.reject
local split = utils.split
local tableize = util... |
AddCSLuaFile( "cl_init.lua" );
AddCSLuaFile( "shared.lua" );
include( "shared.lua" );
util.AddNetworkString("hsholoemitter_datamsg")
// wire debug and overlay crap.
ENT.WireDebugName = "High speed Holographic Emitter"
ENT.OverlayDelay = 0;
ENT.LastClear = 0;
// init.
function ENT:Initialize( )
// ... |
local _M = {}
local app = require('lib.app')
function _M:loadAudio()
local stream = audio.loadStream('music/fire.mp3')
local c = audio.play(stream, {loops = -1})
audio.setVolume(0, {channel = c})
audio.fade{channel = c, time = 3000, volume = 0.4}
end
return _M |
local Plugin = {}
function Plugin:Initialise()
self.Enabled = true
TGNS.ScheduleAction(10, function()
local originalStatusFunc = Shine.Commands.sh_status and Shine.Commands.sh_status.Func or nil
if originalStatusFunc then
Shine.Commands.sh_status.Func = function(client)
originalStatusFunc(client)
S... |
--[[
Name: cl_menu_actmenu.lua
For: TalosLife
By: TalosLife
Push and hold "T" to view the taunt menu, mouse over an action and release "T".
]]--
local MAT_BLUR = Material( "pp/blurscreen.png", "noclamp" )
local Actions = {
"Cheer",
"Laugh",
"Muscle",
"Zombie",
"Robot",
"Disagree",
"Agree",
"Dance",
"Becon... |
local plugin = {}
plugin.name = "Change Swap Timers Live"
plugin.author = "SushiKishi"
plugin.settings = {
{ name="timerFile", type="file", label="What file to use?" },
}
plugin.description =
[[ NOTE: Using this plugin will render the Minimum and Maximum swap times on the setup window useless, as they are overwrit... |
local modularStationUtil = {}
|
WireToolSetup.setCategory( "Vehicle Control" )
WireToolSetup.open( "vehicle", "Vehicle Controller", "gmod_wire_vehicle", nil, "Vehicle Controllers" )
if CLIENT then
language.Add("Tool.wire_vehicle.name", "Vehicle Controller Tool (Wire)")
language.Add("Tool.wire_vehicle.desc", "Spawn/link a Wire Vehicle controller.")... |
/*---------------------------------------------------------------------------
Vector2 class
Author: Oskar
---------------------------------------------------------------------------*/
do
local meta = {}
meta.__index = meta
function meta:__add( other )
return Vector2( self.x + other.x, self.y + other.y )
e... |
-----------------------------------------
-- ID: 5178
-- Item: plate_of_dorado_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 5
-- Accuracy % 15
-- Accuracy Cap 72
-- Ranged ACC % 15
-- Ranged ACC Cap 72
-- Sleep Resist 1
-- Enmity 4
---------------------------------------... |
local getSeagull = require("entity/seagull")
local camera = require("core/camera")
local function getSeagullSpawner(player)
seagullSpawner = {}
seagullSpawner.spawncounter = 1
seagullSpawner.player = player
function seagullSpawner:update(dt)
-- Spawn random seagulls.
self.spawncounter... |
local item = require("../item");
local image = require("../image")
return {
name = "A ratty proposal",
amount = 5,
weight = 0.5,
condition = function (state)
return state.coins >= 5 and state.ratLevel == 0
end,
description = "A sketchy man in a trenchcoat approaches you. For only $5, you may join the R... |
require("enet")
local class = require("libs.class")
local utils = require("utils")
local netUtils = require("net.utils")
local GameObject = require("gameobject")
local mp = require("libs.MessagePack")
local Client = class("Client")
function Client:initialize(server_host)
self.host = enet.host_create()
self... |
function min(x, y)
if x >= y then
return y
else
return x
end
end
function max(x, y)
if x <= y then
return y
else
return x
end
end
|
local Class = require "smee.libs.middleclass"
local GameComponent = Class "GameComponent"
function GameComponent:initialize()
end
function GameComponent:update(dt)
end
function GameComponent:draw(dt)
end
return GameComponent |
nadmin.config.adverts = nadmin.config.adverts or {}
local adverts = nadmin.config.adverts
util.AddNetworkString("nadmin_add_advert")
util.AddNetworkString("nadmin_req_adverts")
util.AddNetworkString("nadmin_resend_advert")
net.Receive("nadmin_resend_advert", function(len, ply)
if not ply:HasPerm("manage_s... |
--Localization.enUS.lua
TomTomLocals = {
["%d yards"] = "%d yards",
["%s (%.2f, %.2f)"] = "%s (%.2f, %.2f)",
["%s yards away"] = "%s yards away",
["%s%s - %s %s %s %s"] = "%s%s - %s %s %s %s",
["%s%s - %s (map: %d)"] = "%s%s - %s (map: %d)",
["%s: No coordinate information found for '%s' at this map level"] = "%... |
-----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Lageegee
-- Type: Assault Mission Giver
-- !pos 120.808 0.161 -30.435
-----------------------------------
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
require("scripts/globals/besieged")
require("scripts/globals/keyitems")
requir... |
object_tangible_furniture_all_frn_diner_counter_corner = object_tangible_furniture_all_shared_frn_diner_counter_corner:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_diner_counter_corner, "object/tangible/furniture/all/frn_diner_counter_corner.iff")
|
return function()
local strrLine = "Turn,Scroll,7,8,9,10"
if GAMESTATE:GetCurrentGame():GetName() == "gh" then
strrLine = strrLine .. ",GH"
end
strrLine = strrLine .. ",11,12,125,13,14"
if ThemePrefs.Get("OptionStyle") == 0 then
strrLine = strrLine .. ",NextScreen"
elseif Theme... |
local fn = vim.fn
local lsp = vim.lsp
local M = {}
-- Credit https://github.com/kosayoda/nvim-lightbulb/blob/master/lua/nvim-lightbulb.lua
local function _update_sign(new_line)
local bufnr = vim.api.nvim_get_current_buf() or '%'
local old_line = vim.b.code_action_line
if old_line then
fn.sign_unpl... |
----------------------------------------------------------------
-- EVTCalendar English Localization
-- Author: Reed
--
--
----------------------------------------------------------------
EVT_SLASH = "/evt";
EVT_CALENDAR = "EVTCalendar";
EVT_HELP = "help";
EVT_ABOUT = "about";
--MONTHS
EVT_JAN = "January";
EVT_FEB =... |
local assert = require('assert')
local sched = require('sched')
local fs = require('fs')
local testing = require('testing')
-- the return value of this require() call is a top-level TestSuite
-- object predefined by the testing module (root_suite)
-- we can either add our tests directly to the root suite or create
--... |
-- luacheck: globals unpack vim
local curry2 = function(fn)
return function(fst, snd)
if snd ~= nil then
return fn(fst, snd)
end
return function(new)
return fn(fst, new)
end
end
end
local view = {}
view.openfloat = function(config, buff)
return vim.api.nvim_open_win(buff, false, con... |
-- Awesome theme for esonov distro.
local gears = require("gears")
local naughty_config = require("naughty").config
local xresources = require("beautiful.xresources")
local beautiful = require("beautiful")
local gtk = beautiful.gtk.get_theme_variables()
local dpi = xresources.apply_dpi
local theme = {}
-- General loo... |
---------------------------------------------------------------
-- Copyright 2020 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/sample-apps/blob/master/LICENSE --
... |
--- lexer for etlua.
-- Uses embeddings of lua and html.
-- @author [Alejandro Baez](https://twitter.com/a_baez)
-- @copyright 2015
-- @license MIT (see LICENSE)
-- @module etlua
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 = 'etlua... |
insulate("log setup", function()
it("check default channel registration", function()
require("tmux.log").setup()
local channels = require("tmux.log.channels")
assert.is_true(channels.current["file"] ~= nil)
end)
end)
describe("log", function()
local log
local message = ""
... |
local trainingStartMarker = createMarker(2237.94, -1720.32, 12.61, "cylinder", 2, 255, 255, 0)
function trainingMarkerHit(hitElement, dimensions)
if (getElementType(hitElement) ~= "player") then
return false
end
if (not dimensions) then
return false
end
if (not isPedOnGround(hitElement)) then
exports.NGC... |
local customEventHooks = {}
customEventHooks.validators = {}
customEventHooks.handlers = {}
function customEventHooks.makeEventStatus(validDefaultHandler, validCustomHandlers)
return {
validDefaultHandler = validDefaultHandler,
validCustomHandlers = validCustomHandlers
}
end
function customEv... |
ITEM.name = "5.45x39 Ammo"
ITEM.model = "models/gmodz/ammo/545x39.mdl"
ITEM.ammo = "5.45x39mm"
ITEM.ammoAmount = 30
ITEM.maxRounds = 60
ITEM.description = "Ammo box that contains 5.45x39 mm caliber"
ITEM.price = 13500
ITEM.rarity = { weight = 30 } |
local timer = require('timer')
local Deque = require('./Deque')
local setTimeout = timer.setTimeout
local running, yield, resume = coroutine.running, coroutine.yield, coroutine.resume
local Mutex, property, method = class('Mutex', Deque)
Mutex.__description = "Mutual exclusion class for coroutines."
functio... |
--[[ File
@description:
This file contains several different reward functions for the task of target reaching.
@version: V0.25
@author: Fangyi Zhang email:gzzhangfangyi@gmail.com
@acknowledgement:
ARC Centre of Excellence for Robotic Vision (ACRV)
Queensland Univsersity of Technology (QUT)
@history:
V... |
require("ramchaik.telescope")
require("ramchaik.lsp")
require("ramchaik.lualine")
require("ramchaik.harpoon")
require("ramchaik.nvim-treesitter")
require("ramchaik.comment")
-- require("ramchaik.debugger")
-- require("ramchaik.git-worktree")
require("ramchaik.plugins")
P = function(v)
print(vim.inspect(v))
retur... |
return {
corraven = {
acceleration = 0.108,
brakerate = 0.56,
buildcostenergy = 82114,
buildcostmetal = 4856,
builder = false,
buildpic = "corraven.dds",
buildtime = 125000,
canattack = true,
canguard = true,
canmove = true,
canpatrol = true,
canstop = 1,
category = "ALL HUGE MOBILE SURFACE U... |
--- Druid checkbox component
-- @module druid.checkbox
--- Component events
-- @table Events
-- @tfield druid_event on_change_state On change state callback
--- Component fields
-- @table Fields
-- @tfield node node Visual node
-- @tfield[opt=node] node click_node Button trigger node
-- @tfield druid.button button Bu... |
-- https://github.com/sunjon/Shade.nvim
require'shade'.setup({
overlay_opacity = 50,
opacity_step = 1
})
|
--------------------- SAMPLE MINIMAL IMPLEMENTATION --------------------
--- TODO: documents args
function init(virtual)
if not virtual then
storageApi.init(args)
end
end
function die()
storageApi.die()
end
--------------------- HOOKS --------------------
--- Called when an item is about to be taken from... |
XYZ_ORGS = {}
XYZ_ORGS.Config = {}
XYZ_ORGS.Core = {}
XYZ_ORGS.Core.Members = {}
XYZ_ORGS.Core.Orgs = {}
XYZ_ORGS.Core.Invites = {}
XYZ_ORGS.Database = {}
print("Loading Organisations")
local path = "xyz_organisations/"
if SERVER then
local files, folders = file.Find(path .. "*", "LUA")
for _, folder in SortedPa... |
include("names")
include("set_names")
imenilac1 = math.random(8) + 2;
imenilac2 = math.random(imenilac1 - 2) + 1;
factor = (math.random(10));
rezultat = factor*imenilac1*imenilac2
broj1 = factor*imenilac2
broj2 = factor*imenilac1
brojp= broj1 + broj2;
brojo = rezultat-brojp
vrednost = brojo / rezultat
simp_brojo =... |
if deadlock then
deadlock.add_tier({
transport_belt = "BetterBelts_ultra-transport-belt",
colour = {r=0,g=211,b=37},
technology = "logistics-3",
order = "d",
loader = "BetterBelts_ultra-deadlock-loader",
loader_ingredients = {
{"express-transport-belt-loader",1},
... |
--[[-----------------------------------------------------------------------------
* Infected Wars, an open source Garry's Mod game-mode.
*
* Infected Wars is the work of multiple authors,
* a full list can be found in CONTRIBUTORS.md.
* For more information, visit https://github.com/JarnoVgr/InfectedWars
*
* Inf... |
-- Global variables
----------------------------------------------------------------------------------------------------
local bot = GetBot();
local mutils = require(GetScriptDirectory() .. "/MyUtility")
local itemsData = require(GetScriptDirectory() .. "/ItemData" )
local itemBuild = require(GetScriptDirectory() .. ... |
--- Caching mechanism for novus.
-- Dependencies: `util`
-- @module cache
-- @alias _ENV
--imports--
local interposable = require"novus.client.interposable"
local util = require"novus.util"
local ipairs = ipairs
local eq = rawequal
--start-module--
local _ENV = interposable{}
local cachable_entities = {
"channel... |
ISCharacterScreen = {}
function ISCharacterScreen:render() end
|
module ('content.triggers', package.seeall)
require 'base.trigger'
mouse_exited = base.trigger:new {}
function mouse_exited:check( x, y )
if not self.visible then return end
local inside = self.visible:inside(lux.geom.point:new{x,y})
if not self.visible.mouse_exited_mousein and inside then
self.visible.mou... |
local prometheus = require "kong.plugins.prometheus.exporter"
local printable_metric_data = function()
return table.concat(prometheus.metric_data(), "")
end
return {
["/metrics"] = {
GET = function()
prometheus.collect()
end,
},
_stream = ngx.config.subsystem == "stream" and printable_metric_da... |
simulator =
{
device = "nx64",
screenOriginX = 92,
screenOriginY = 420,
screenWidth = 720,
screenHeight = 1280,
deviceImage = "NX-Switch.png",
displayManufacturer = "Nintendo",
displayName = "Switch",
windowTitleBarName = "NX Switch",
defaultFontSize = 17, -- Converts default font point size to pi... |
---@class CS.FairyEditor.LoaderExtension : CS.FairyGUI.GLoader
---@type CS.FairyEditor.LoaderExtension
CS.FairyEditor.LoaderExtension = { }
---@return CS.FairyEditor.LoaderExtension
function CS.FairyEditor.LoaderExtension.New() end
return CS.FairyEditor.LoaderExtension
|
target("grid")
set_kind("binary")
set_optimize("smallest")
set_runtimes("MT")
add_defines("UNICODE", "NDEBUG")
add_files("ScreenGrid/*.cpp")
add_files("ScreenGrid/*.rc")
add_syslinks("user32","gdi32","comdlg32")
if is_plat('msys') or is_subhost('msys') then
add_ldflags('-static')
add_ldflags('-W... |
local markersData =
{
["walk"] =
{
{x = 773.0488, y = 5.4462, z = 1000.7802, dim = 13000, int = 5}, -- LS Gym
{x = 763.2203, y = -47.9901, z = 1000.5859, dim = 13001, int = 6}, -- SF Gym
{x = 765.072, y = -76.6134, z = 1000.6563, dim = 13002, int = 7}, -- LV Gym
},
["fight"] =
{
{x = 761.3682, y = 5.5028, ... |
net.Receive("nutCharList", function()
local newCharList = {}
local length = net.ReadUInt(32)
for i = 1, length do
newCharList[i] = net.ReadUInt(32)
end
local oldCharList = nut.characters
nut.characters = newCharList
if (oldCharList) then
hook.Run("CharacterListUpdated", oldCharList, newCharList)
else
ho... |
local command = require 'aula.core.command'
local keymap = require 'aula.core.keymap'
local M = {}
local function reload()
for name,_ in pairs(package.loaded) do
if name:match('^aula') then
package.loaded[name] = nil
end
end
dofile(vim.env.MYVIMRC)
print('[Aula] Config Reloaded!')
end
function... |
AddCSLuaFile( "shared.lua" )
AddCSLuaFile( "cl_init.lua" )
include("shared.lua")
function ENT:Initialize()
self.health = 30
self.Entity:SetModel( "models/roller.mdl" )
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
util.S... |
--[[
## Library Scroll ##
Designed By DevDavis (Davis Nuñez) 2011 - 2018.
Based on library of Robert Galarga.
Create a obj scroll, this is very usefull for list show
Modified by gdljjrod 2019
]]
function newScroll(a,b,c)
local obj = {ini=1,sel=1,lim=1,maxim=0,minim=0}
function obj:set(tab,mxn,... |
local function test()
local v="test"
local function test2()
print(v)
end
test2()
return
end
local d=string.dump(test)
io.write(d)
test()
|
return {'vair','vaiaku'} |
local enchantment = {
elona = {
random_tele = {
description = "ランダムなテレポートを引き起こす"
},
suck_blood = {
description = "使用者の生き血を吸う"
},
suck_exp = {
description = "あなたの成長を妨げる"
},
summon_monster = {
description = "魔物を呼び寄せる"
},
prevent_... |
function start (song) -- do nothing
end
function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918
if curStep > 496 then
tweenCameraZoom(1.5,(crochet * 4) / 100)
local currentBeat = (songPos / 496)*(bpm/150)
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 25 * ... |
local register_node = minetest.register_node
register_node('bt_core:blank_painting', {
description = 'Blank Painting',
tiles = { 'bt_core_blank_painting.png' },
paramtype = "light",
paramtype2 = "facedir",
drawtype = "mesh",
groups = { choppy = 3 },
is_ground_content = true,
selection_... |
ruRU_gossip_texts = {
["ezekiel said that you might have a certain book..."] = "Иезекииль говорит что у тебя есть кой какая книга...",
["get out of here, tobias, you're free!"] = "Вы свободны, Тобиас! Уходите!",
["i am ready to begin."] = "Я "..ST_G("готов", "готова")..".",
["i am ready, as are my forces. let us en... |
return LoadFont("BPMDisplay", "bpm") .. {
Text="BPM";
}; |
-- Implements virtio virtq
module(...,package.seeall)
local buffer = require("core.buffer")
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local ffi = require("ffi")
local C = ffi.C
local band = bit.band
local rshift ... |
AddCSLuaFile()
-- Base info
SWEP.Base = "rp_base_grenade"
-- Spawnmenu info
SWEP.Category = "Roleplay Weapons"
SWEP.Spawnable = true
SWEP.AdminOnly = true
SWEP.DisableDuplicator = true
-- Weapon selection menu info
SWEP.AutoSwitchFrom = false
SWEP.AutoSwitchTo = false
-- Print info
SWEP.Pri... |
---@class lstg.mbg.PointF
local M = class('lstg.mbg.PointF')
function M:ctor(x, y)
self.X = x or 0
self.Y = y or 0
end
return M
|
local M = {}
function M.c3b(hex)
local b = bit.band(hex, 0xff)
hex = bit.rshift(hex, 8)
local g = bit.band(hex, 0xff)
hex = bit.rshift(hex, 8)
local r = bit.band(hex, 0xff)
return cc.c3b(r, g, b)
end
function M.c4b(hex, alpha)
local c3 = M.c3b(hex)
alpha = alpha or 0xff
return cc.c4b(c3.r, c3.g, c3.... |
local app = app
local libcore = require "core.libcore"
local Class = require "Base.Class"
local Unit = require "Unit"
local Fader = require "Unit.ViewControl.Fader"
local Encoder = require "Encoder"
local MicroDelay = Class {}
MicroDelay:include(Unit)
function MicroDelay:init(args)
args.title = "uDelay"
... |
local M = {}
M.config = function ()
require'nvim-treesitter.configs'.setup {
ensure_installed = 'maintained',
highlight = { enable = true },
incremental_selection = { enable = true },
textobjects = { enable = true },
rainbow = {
enable = true,
extended_mode = false,
max_file_lin... |
local export = {}
local gsub = mw.ustring.gsub
local sub = mw.ustring.sub
local match = mw.ustring.match
local system_list = {
{ 1, ["type"] = "phonetic", ["name"] = "IPA" },
{ 2, ["type"] = "orthographic", ["name"] = "MLCTS" },
{ 3, ["type"] = "orthographic", ["name"] = "ALA-LC" },
{ 4, ["type"] = "phonetic", [... |
CustomSBValues = {}
done = 0
-- Ext.RegisterOsirisListener("CharacterUsedSkillOnTarget", 5, "before", function(character, target, skill, skillType, skillElement)
-- local stat = Ext.GetStat(skill)
-- local isCSB = false
-- for i, properties in pairs(stat.SkillProperties) do
-- if properties.Action ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.