content stringlengths 5 1.05M |
|---|
--[[
=== WTSpam ===
F#*& Boost Sellers! LFG is filled with "WTS Boost"-spam, lets get rid of it.
By Gogh/Pampula of Mirage Raceway EU (BCClassic)
[22:32] [4] [Tatamata]: MARA BOOST [] 330+ mobs pull [] 30-52 lvl [] 120k+ EXP/hour [] 35g / run [] nothing reserved [] Can Summon [] 2/4
[22:44] [4] [Ajaxth... |
local event = require 'utils.event'
local function is_depleted(drill, entity)
local position = drill.position
local area
if drill.name == 'electric-mining-drill' then
area = {{position.x - 2.5, position.y - 2.5}, {position.x + 2.5, position.y + 2.5}}
else
area = {{position.x - 1, positi... |
OBJLoader.Type = {
Single = 1 ,
Multiple = 2 ,
MultipleDepthSorted = 3 ,
}
OBJLoader.cachedRequests = {}
OBJLoader.Error = function(text)
error("[OBJLoader] "..text)
end
-- extra1/extra2 are like Events:Subscribe; provide it a function or an instance and function.
-- args is a table which supports t... |
Sprite = {
Animations = {
{
Name = "Normal",
Texture = "@Graphics/Sparks.png",
FrameCount = { X = 16, Y = 2 },
StartIndex = 10,
EndIndex = 19,
FrameTime = 60,
Loop = true,
},
{
Name = "Small",
Texture = "@Graphics/Sparks.png",
FrameCount = { X = 16, Y = 2 },
StartIndex = 0,
... |
local savm = {}
function savm:getCompletedLevels(saveData, mode, range) -- Devuelve el número de niveles completados
if range then
local counter = 0
for i = 1, lm:getTotalLevels("relax") do
if lm:getRange(i, "relax", savm:getMoves(saveData, i, "relax")) == range then counter = counter + 1 end
end
... |
--[[
Filename: Help.lua
Written by: jeditkacheff
Version 1.0
Description: Takes care of the help page in Settings Menu
--]]
------------ FFLAGS -------------------
local success, result = pcall(function() return settings():GetFFlag('UseNotificationsLocalization') end)
local FFlagUseNotificationsLocalization = ... |
---@meta
---@class cc.TransitionFadeTR :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene
local TransitionFadeTR={ }
cc.TransitionFadeTR=TransitionFadeTR
---*
---@param action cc.ActionInterval
---@return cc.ActionInterval
function TransitionFadeTR:easeActionWithAction (action) end
---* Re... |
local util = require 'util'
local lovetoys = require 'lovetoys.lovetoys'
local Component = lovetoys.Component.create('Attribute')
function Component:initialize(asset)
self.asset = asset
self.statistics = {
hp = self:maxHp()
}
end
function Component:stats(key, value)
if key ~= nil and value ... |
moddataPrefix = "savegame.mod.stalkerMod"
currentDataVersion = 2
function migrateData()
dataVersion = GetInt(moddataPrefix .. "Version")
-- Migrate Data
if dataVersion < 1 then
SetBool(moddataPrefix .. "Invisible", false)
SetBool(moddataPrefix .. "Silent", false)
SetBool(moddataPrefix .. "Destructive", false... |
local lang = {
norm = function(str)
return str
end;
upper = function(str)
return str:upper()
end;
lower = function(str)
return str:lower()
end;
}
local mrd = {
lang = lang;
dir = '';
}
local msg = print
local function strip(str)
str = str:gsub("^[ \t]+", ""):gsub("[ \t]$", "")
return str
end
local f... |
--[[
Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
local _, Bartender4 = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
local WoWClassic = select(4, GetBuildInfo()) < 20000
local BagBarMod = Bartender4:GetModule("BagBar")
-- fetch upval... |
--!strict
type Dictionary<K, V> = { [K]: V }
return function<T>(class: string, props: Dictionary<string, any>): T
local instance = Instance.new(class)
local parent = props.Parent
for key, value in pairs(props) do
if key ~= "Parent" then
instance[key] = value
end
end
if parent then
instanc... |
local LightEquipItem, super = Class(Item)
function LightEquipItem:showEquipText()
Game.world:showText("* You equipped the "..self:getName()..".")
end
function LightEquipItem:onWorldUse(target)
Assets.playSound("item")
local chara = Game.party[1]
local replacing = nil
if self.type == "weapon" then
... |
--[[
MIT License
Copyright (c) 2019 nasso <nassomails ~ at ~ gmail {dot} com>
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, ... |
cCommands.add("muteserial",
function(admin, serial, nick, seconds, reason)
if getMuteBySerial(serial) then return false, "serial is already muted" end
local player = getPlayerBySerial(serial)
local playerName = player and getPlayerName(player)
local mute = addMute(serial, admin, reason, seconds, nick or pla... |
local verdanturf_center = DoorSlot("verdanturf", "center")
local verdanturf_center_hub = DoorSlotHub("verdanturf", "center", verdanturf_center)
verdanturf_center:setHubIcon(verdanturf_center_hub)
local verdanturf_house_sw = DoorSlot("verdanturf", "house_sw")
local verdanturf_house_sw_hub = DoorSlotHub("verdanturf", "ho... |
local app_name = "trojan_server"
local d = require "luci.dispatcher"
map = Map(app_name, "Trojan " .. translate("Server Config"))
map.redirect = d.build_url("admin", "vpn", "trojan_server")
t = map:section(NamedSection, arg[1], "user", "")
t.addremove = false
t.dynamic = false
enable = t:option(Flag, "enable", trans... |
-- Quadtree implementation
-- ported from Javascript:
-- https://github.com/timohausmann/quadtree-js/tree/v1.2.1
local Quadtree = {
maxObjects = 10,
maxLevels = 4,
level = 0,
}
-- Construct a new Quadtree
-- @param {glm.vec4} rectangle bounds
-- @param {number?} maximum objects in tree
-- @param {number?} maxim... |
local p = premake
local projects = {}
newaction {
trigger = "vscode",
description = "Generate .vscode folder",
onProject = function(prj)
printf("Generating .vscode for project '%s'", prj.name)
projects[#projects+1] = {
location = prj.location,
configs = {}... |
Balls = {}
Balls.__index = Balls
Balls._b = {}
Balls.numBalls = 0
-- id: 0..128
function Balls:new(id,pos,color,r)
local ball =
{
pos = {x=pos.x,y=pos.y},
color = {color[1],color[2],color[3]},
r = r,
velocity = {x=0,y=0}
}
setmetatable(ball,Balls)
Balls._b[id] = ba... |
--[[
Copyright (c) 2015 gameboxcloud.com
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, distrib... |
--[[
File-Author: Pyrrhus
File-Hash: ef56b6a28a4a8da56f9a0f5cd0348e025bed36ca
File-Date: 2017-10-05T17:37:59Z
]]
local lib,name,path = ...
------------------------------------------------------ ui.editbox ------------------------------------------------------
local me = {}
--- Init
-- @param frame (table or string) na... |
require "paypal"
function post()
if not app.PayPal.Enabled then
http:redirect("/")
return
end
if not session:isLogged() then
http:redirect("/subtopic/login")
return
end
local payment = db:singleQuery("SELECT created_at, payment_id, state, payer_id, package_name, cu... |
local config = {}
config['default_chaos_container'] = [[
{
"name": "kubeinvaders-chaos-node",
"image": "docker.io/luckysideburn/kubeinvaders-stress-ng:latest",
"command": [
"stress-ng",
"--cpu",
"4",
"--io",
"2",
"--vm",
"1",
"--vm-bytes",
... |
-- 1) Install Torch:
-- See http://torch.ch/docs/getting-started.html#_
-- 2) Install necessary packages:
-- $ luarocks install loadcaffe
-- $ luarocks install hdf5
-- 3) Download a model:
-- $ wget http://places2.csail.mit.edu/models/vgg16_places2.tar.gz
-- $ tar xzvf vgg_places2.t... |
------------------------------------------------------------------------------------
-- a resource center for debug/demo only
------------------------------------------------------------------------------------
return {
["require"] = function(parts)
if parts == 'test:local' then
local local_execute_uri = "http://... |
--- World game state.
-- @module world
require 'src.factory'
local World = Game:addState('World')
--- Get camera target.
-- Calculate initial camera position.
-- @tparam Game self Game instance
-- @treturn Vector Camera target vector
local function getCameraTarget(self)
local x, y, mapWidth, mapHeight, halfScree... |
vim.cmd[[ hi HopNextKey cterm=bold ctermfg=176 gui=bold guibg=#ff00ff guifg=#ffffff ]]
require('hop').setup({
case_insensitive = true,
char2_fallback_key = '<CR>',
})
|
return {
no_consumer = false,
fields = {
headers = {type = "table"}
},
self_check = function(schema, plugin_t, dao, is_updating)
return true
end
}
|
return {
--[[
{0, 0, 0},
{95, 87, 79},
{194, 195, 199},
{255, 241, 232},
]]
{34,32,52},
{89,86,82},
{238,195,154},
{203,219,252},
}
|
local providers = require("netman.providers")
local explore_pattern = require("netman.options").protocol.EXPLORE
vim.g.netman_log_level = 1
describe("Netman providers #netman-providers", function()
for _, provider_path in ipairs(providers) do
describe(provider_path, function()
local provider =... |
--[[
Minetest Mod Storage Drawers - A Mod adding storage drawers
Copyright (C) 2017 LNJ <git@lnj.li>
Copyright (C) 2016 Mango Tango <mtango688@gmail.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... |
local filters = PANDOC_SCRIPT_FILE:match '.*/'
package.path = filters..'?.lua;'..filters..'../libexec/?.lua;'..package.path
local utils = require 'utils'
local aliases = require 'aliases'
function Header (h)
local text = pandoc.utils.stringify (h.content)
if h.level == 1 then text = "DESCRIPTION"
else text = t... |
--
-- Chartboost Corona SDK
-- Created by: Chris
--
-- This file holds a few different animation types
-- Examine the code to learn how to instantiate the different options
-- These classes are used in CBAnimationManager
--
local class = require "chartboost.libraries.lib.class"
local AlphaAnimation = class(function(s... |
--- === Token ===
---
--- generate google authenticator token value keystrokes
--- Retrieve a google authenticator token seed from keychain and use this to calculate the current value
--- Simulate keystrokes for this token value
---
--- written by Teun Vink <github@teun.tv>, converted to spoon by Tyler Thrailkill <snow... |
---
-- \file test/t_net_sck_stream_recv.lua
-- \brief Test assuring sck:recv() works in all permutations.
-- \detail Receive data via SOCK_STREAM sockets. All permutations
-- tested in this suite:
--
-- msg, len = sck:recv( )
-- msg, len = sck:recv( max )
-- msg, len = sck:recv( buf )
-- m... |
--
-- DESCRIPTION
--
-- @COMPANY **
-- @AUTHOR fenghailiang
-- @DATE ${date} ${time}
--
require "UnLua"
local FlightCMWeapon_Flare = Class()
-- function FlightCMWeapon_Flare:Initialize(Initializer)
-- end
function FlightCMWeapon_Flare:UserConstructionScript()
self.Overridden.UserConstructionScript(sel... |
---[[---------------------------------------]]---
-- autocmds - Doom Nvim Autocmds --
-- Author: NTBBloodbath --
-- License: GPLv2 --
---[[---------------------------------------]]---
local utils = require("doom.utils")
local log = require("doom.extras.... |
--[[
Brightness control
==================
based on `xbacklight`!
alternative ways to control brightness:
sudo setpci -s 00:02.0 F4.B=80
xgamma -gamma .75
xrandr --output LVDS1 --brightness 0.9
echo X > /sys/class/backlight/intel_backlight/brightness
xbacklight
--]]
local awful = require("awful"... |
local csw = {}
local cur = 1
local initial_cur = cur
local cs = { {}, {}, {}, {}, {}, {}, {}, {}, {}, {} }
---@diagnostic disable
local xplr = xplr
---@diagnostic enable
xplr.fn.custom.context_switch = {}
local rend_ins = function(i, v)
local pwd, fss = "?", ""
if v.pwd then
pwd = v.pwd
loca... |
--mewmew one dimensional noise
local math_floor = math.floor
local heights = {-57, -189, -128, 49, -1, 44, 201, -75, -223, 159, -51, 88, -61, -206, -58, 246, 154, 233, 53, -89, -41, 253, -253, 33, -160, 140, -83, 164, -129, -67, -238, 6, 238, 145, 85, 89, -207, 126, 112, 175, -73, -211, -76, 137, 59, 151, 167, -81, -... |
local fn = vim.fn
local cmd = vim.cmd
-- Automatically install packer.nvim
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path... |
insane_mantigrue_berserker = Creature:new {
objectName = "@mob/creature_names:mantigrue_insane_berserker",
socialGroup = "mantigrue",
faction = "",
level = 60,
chanceHit = 0.55,
damageMin = 470,
damageMax = 650,
baseXp = 5830,
baseHAM = 11000,
baseHAMmax = 14000,
armor = 3,
resists = {165,160,200,150,150,1... |
module 'mock'
CLASS: GraphicsPropComponent ( RenderComponent )
:MODEL{
Field 'index' :int() :range(0) :getset( 'Index' );
}
function GraphicsPropComponent:__init()
self.billboard = false
self.depthMask = false
self.depthTest = false
self.prop = self:_createMoaiProp()
self:setBlend('normal')
end
function Grap... |
--- @module display
--- Render using a texture.
-- Also see the <a href="https://poke1024.github.io/tove2d/features/">TÖVE Feature Matrix</a>.
-- @usage
-- graphics:setDisplay("texture")
-- @table texture
-- @tparam string mode `"texture"`
-- @see Graphics:draw
-- @see Graphics:setDisplay
-- @see Graphics:setResolutio... |
local utils = require "utils"
local cjson = require "cjson"
local args = utils:normalizeKeys(ngx.req.get_query_args())
local red = utils:initRedis()
local key = args["key"]
local attributes = args["attr"]
local from = args["from"] or 0
local to = args["to"] or -1
function getValues(key, attributes)
local value
if r... |
local status, err = pcall(function()
error({code=121})
end)
print (err.code)
|
-- _____ _ __ _ ___
-- /__ \_ __(_)/ _| | ___ / __\___ _ __ ___
-- / /\/ '__| | |_| |/ _ \ / / / _ \| '__/ _ \
-- / / | | | | _| | __/ / /__| (_) | | | __/
-- \/ |_| |_|_| |_|\___| \____/\___/|_| \___|
--
--
-- ... |
local ABOUT = {
NAME = "openLuup.virtualfilesystem",
VERSION = "2018.03.23",
DESCRIPTION = "Virtual storage for Device, Implementation, Service XML and JSON files, and more",
AUTHOR = "@akbooer",
COPYRIGHT = "(c) 2013-2018 AKBooer",
DOCUMENTATION = "https://github.com/akbooer/ope... |
--REF: https://github.com/tpope/vim-fugitive
use 'tpope/vim-fugitive'
|
local status_ok, colorizer = pcall(require, "colorizer")
if not status_ok then
return
end
colorizer.setup({ "*" }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue oe blue
RRGGBBAA = true, -- #RRGGBBAA hex codes
rgb_fn = true, -- CSS rgb() and rgb... |
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
emP = Tunnel.getInterface("vrp_lscustoms")
local inside = false
local currentpos = nil
local currentgarage = 0
local garages = {
[1] = { locked = false, camera = { x = 936.52, y = -973.89, z = 39.76, h... |
--ZFUNC-map-v1
local function map( arr, fv ) --> newarr
local newarr = {}
for i,v in ipairs( arr ) do
table.insert( newarr, fv( v ) )
end
return newarr
end
return map
|
--[[
===============================================================================
** Player v1.1 **
By Lysferd (C) 2014
Summary:
The playable character.
Features:
- Implements movement by key press.
ToDos:
- Collision detection
- Mouse movement
====================================================... |
a = 'campo a';
b = 'campo b';
c = 'campo c';
tab = {
a='tab a';
b='tab b';
c='tab c',
d={ e='tab d e' }
};
function imprime (str) print(str); return 'joao', 1 end;
luaPrint = {
implements='org.keplerproject.luajava.test.Printable',
print=function(self, str)
print('Printing from lua :'..str... |
local warned = false
function directives.loadmod(env, mod)
if not warned then
io.stderr:write("Warning: loadmod is depreciated and unsafe. The API differs from luapreproc. Use the include paths!\n")
warned = true
end
if (not os.execute("stat "..file..">/dev/null")) then
return false, "Module `"..file.."' does ... |
local num_fertilizer_nodes = 10
local cycle_time = 3 * 60
local variation = 1 * 60
for i=1,num_fertilizer_nodes do
local name = "fertilepots:fertilizer_" .. i
-- Next node in the progression, or air if this is the last.
local next_name = (i ~= num_fertilizer_nodes) and ("fertilepots:fertilizer_" .. (i + 1)... |
-- Listens on UDP port 8888 and pushes pixels to a LED screen.
-- A full frame buffer is larger than the size of a UDP packet so it has to
-- be sent in multiple packets. The first byte of each packet determines which
-- part it is. \x01 \x02 \x03 are valid values.
-- When packet #3 is received the pixels are pushed to... |
PlazaEMailDetailCcsView = class("PlazaEMailDetailCcsView")
PlazaEMailDetailCcsView.onCreationComplete = function (slot0)
ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view)
slot0._contentTf = slot0.view.Node_nomal.nodeContent.content_tfs
slot0:setTouchEnabled(false)
slot0._contentTf:s... |
return{
name = 'blade',
description = 'Blade',
type = 'material',
info = 'a single blade, to small to be used as a weapon',
MAX_ITEMS = 1,
width = 5,
} |
fx_version 'cerulean'
games { 'gta5' }
author 'SzybkiRito'
description 'Your own group system'
version '1.0.0'
-- What to run
client_scripts {
'client/client.lua',
'client/corners.lua',
'config.lua'
}
server_script {
'@mysql-async/lib/MySQL.lua',
'server/server.lua',
'server/corners.lua',
... |
--------------------------------
-- @module RichElementText
-- @extend RichElement
-- @parent_module ccui
---@class ccui.RichElementText:ccui.RichElement
local RichElementText = {}
ccui.RichElementText = RichElementText
--------------------------------
--- brief Initialize a RichElementText with various arguments.
-... |
-- make the slash command api available to the wow ui
SLASH_qhunUnitTest1 = "/test"
SLASH_qhunUnitTest2 = "/qut"
SLASH_qhunUnitTest3 = "/qhununittest"
-- the event handler for slash commands
function SlashCmdList.qhunUnitTest(message)
local suite = message:match("^(%S*)%s*(.-)$")
-- get all suites
local s... |
return function(x, y)
local sprite = component.sprite.new()
sprite.name = 'defensivePlant'
local transform = component.transform.new()
transform.pos.x = x
transform.pos.y = y
local body = component.body.new()
body.type = 0
body.layer = 3
body.left = -0.25
body.right = 0.25
... |
local _waypointId = "hamgyong_nam_do"
NoghNpc = {
click = async(function(player, npc)
Tools.configureDialog(player, npc)
local opts = {
"Buy",
"Sell",
"Talk to Nogh",
"Mining the Substratum",
--"Rings of Substratum"
}
if (not Waypoint.isEnabled(player, _waypointId)) then
table.insert(opts,... |
require 'reload-config'
require 'hyper'
require 'fn-arrows'
hs.loadSpoon('ControlEscape'):start() -- Load Hammerspoon bits from https://github.com/jasonrudolph/ControlEscape.spoon
|
return {
Settings = {
--// Ignore any settings that you do not understand; They are preconfigured to a typical game.
--// Whilst I have tried my best to document each setting, they may be difficult to understand.
--// Feel free to contact me if you do not understand something. However, you ... |
object_mobile_barbed_quenker = object_mobile_shared_barbed_quenker:new {
}
ObjectTemplates:addTemplate(object_mobile_barbed_quenker, "object/mobile/barbed_quenker.iff")
|
assert(Skada, "Skada not found!")
Skada:AddLoadableModule("Dispels", function(Skada, L)
if Skada:IsDisabled("Dispels") then return end
local mod = Skada:NewModule(L["Dispels"])
local spellmod = mod:NewModule(L["Dispelled spell list"])
local targetmod = mod:NewModule(L["Dispelled target list"])
local playermod = m... |
module ("L_DataGraphiteAPI", package.seeall)
ABOUT = {
NAME = "graphite_api";
VERSION = "2016.10.04";
DESCRIPTION = "containing: utils, nodes, intervals, storage";
AUTHOR = "@akbooer";
COPYRIGHT = "(c) 2013-2016 AKBooer";
DOCUMENTATION = "http://graphite-api.readthed... |
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, wait, nvim = helpers.clear, helpers.wait, helpers.nvim
local nvim_dir, source, eq = helpers.nvim_dir, helpers.source, helpers.eq
local execute, eval = helpers.execute, helpers.eval
describe('... |
register_outcome{
text = "Full Health",
subtext = "Chat giveth",
good = true,
comment = "todo",
rarity = 20,
apply = function()
twiddle_health(function(cur_hp, max_hp)
return max_hp, max_hp
end)
end,
}
register_outcome{
text = "Small Heal",
subtext = "Chat giveth",
goo... |
TrySource 'lsp.lua'
TrySource 'lsp.omnisharp'
TrySource 'lsp.rust'
TrySource 'lsp.typescript'
TrySource 'lsp.viml'
local function buf_set_option(...)
vim.api.nvim_buf_set_option(0, ...)
end
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- stylua: ignore start
Nnoremap('gD', '<cmd>lua vim.lsp.buf.declaration... |
local u = require("null-ls.utils")
local MOCK_SOURCE_WAIT_TIME = 50
local REAL_SOURCE_WAIT_TIME = 400
local M = {}
M.test_dir = u.path.join(vim.loop.cwd(), "test")
M.get_test_file_path = function(file)
return u.path.join(M.test_dir, "files", file)
end
M.edit_test_file = function(file)
vim.cmd("e! " .. M.get... |
return function(Sunshine, entity)
local widget = entity.widget
if widget then
widget.widget = Sunshine.plugin:CreateDockWidgetPluginGui(entity.core.id,
DockWidgetPluginGuiInfo.new(widget.dockState, widget.enabled, widget.overrideEnabledRestore, widget.size.X,
widget.size.Y, widget.minSiz... |
-- this component contains all of the random types of seating previously
-- scattered among homedecor's other mods
local dc_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 1 }
}
homedecor.register("deckchair", {
mesh = "homedecor_deckchair.obj",
tiles = {"homedecor_deckchair.png"},
description = "De... |
fx_version 'cerulean'
games {'gta5'}
server_script {
"server.lua"
}
|
local concat
concat = table.concat
local type, tostring, pairs, select
do
local _obj_0 = _G
type, tostring, pairs, select = _obj_0.type, _obj_0.tostring, _obj_0.pairs, _obj_0.select
end
local raw_query, raw_disconnect
local logger
local FALSE, NULL, TRUE, build_helpers, format_date, is_raw, raw, is_list, list, is_e... |
object_tangible_component_weapon_mustafar_carbine_coil_sfor = object_tangible_component_weapon_mustafar_shared_carbine_coil_sfor:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_mustafar_carbine_coil_sfor, "object/tangible/component/weapon/mustafar/carbine_coil_sfor.iff")
|
a = peripheral.wrap("top");
function strsplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end
function readPg... |
-- CPU usage widget type for GNU/Linux
-- Copyright (C) 2009 Lucas de Vries <lucas@glacicle.com>
-- Copyright (C) 2011 Adrian C. <anrxc@sysphere.org>
-- Copyright (C) 2011 Jörg Thalheim <jthalheim@gmail.com>
-- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--
-- This file is part of Vicious.
--
-- Vicious is fr... |
local dversion = 211
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
if (not DF) then
DetailsFrameworkCanLoad = false
return
end
DetailsFrameworkCanLoad = true
local SharedMedia = LibStub:GetLibrary ("LibSharedMedia-3.0")
local _
local _type = type
loc... |
require('nvim-treesitter.configs').setup {
ensure_installed = { 'html', 'css', 'vim', 'lua', 'javascript', 'typescript', 'tsx', 'rust', 'c', 'cpp' },
highlight = {
enable = true,
additional_vim_regex_highlighting = false
},
incremental_selection = {
enable = true,
keymaps = {
init_selectio... |
local mod = ...
local ImGuiX = mod.require('mod/ui/imguix')
local str = mod.require('mod/utils/str')
local array = mod.require('mod/utils/array')
local Quality = mod.require('mod/enums/Quality')
local TweakDb = mod.require('mod/helpers/TweakDb')
local SimpleDb = mod.require('mod/helpers/SimpleDb')
local tweaksGui = {}... |
local common = {}
function common.is_utf8_cont(char)
local byte = char:byte()
return byte >= 0x80 and byte < 0xc0
end
function common.utf8_chars(text)
return text:gmatch("[\0-\x7f\xc2-\xf4][\x80-\xbf]*")
end
function common.clamp(n, lo, hi)
return math.max(math.min(n, hi), lo)
end
function common.round(... |
local S = minetest.get_translator("folks")
folks.default_npc = {
initial_properties = {
hp_max = 9999,
physical = true,
collide_with_objects = false,
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
visual_size = {x = 1, y = 1},
visual = "mesh",
mesh = "npc.b3d",
textures = {
fo... |
local Query = require("refactoring.query")
local Region = require("refactoring.region")
local test_utils = require("refactoring.tests.utils")
local utils = require("refactoring.utils")
local ts_utils = require("nvim-treesitter.ts_utils")
local eq = assert.are.same
describe("Query", function()
it("should capture se... |
----
-- @file DeviceInputTime
---- Brief description.
-- @return <#return value description#>
function DeviceInputTime:getClassName()
end
---- Brief description.
-- @return <#return value description#>
function DeviceInputTime:getType()
end
---- Brief description.
-- @return <#return value description#>
function D... |
require("simple")
-- To compute the inverse CDF of the normal distribution, use
-- sqrt(2) * erfinv(2 * x - 1)
local function erfinv(x)
local l = math.log((1 - x) * (1 + x))
local t1 = 2 / (math.pi * 0.147) + l / 2
local res = math.sqrt(-t1 + math.sqrt(t1 * t1 - l / 0.147))
if x < 0 then
return... |
-----------------------------------
-- Area: The Boyahda Tree
-- Mob: Boyahda Sapling
-- Note: PH for Leshonki
-----------------------------------
local ID = require("scripts/zones/The_Boyahda_Tree/IDs")
require("scripts/globals/regimes")
require("scripts/globals/mobs")
-----------------------------------
function on... |
local function count(tbl: { any }, value: any): number
local occurrences = 0
for _, element in ipairs(tbl) do
if element == value then
occurrences += 1
end
end
return occurrences
end
return count |
return {'khmer','khmers'} |
local elem = {}
local sw, sh = guiGetScreenSize()
local part = ""
addEventHandler("onClientResourceStart",resourceRoot,
function()
triggerServerEvent("eEdit.checkPermission",localPlayer)
end
)
addEvent("eEdit.onClientVerified",true)
addEventHandler("eEdit.onClientVerified",root,
function()
if getElementData(lo... |
function generate_hero_name(creature)
local adjectives = {"Green","Horrifying","Monstrous","Good","Evil","Deadly","Fearsome","Rotting","Joyous","Happy","Blessed","Cursed","Undying","Willful","Unbelievable","Incredible","Indestructible","Unknown","Unknowable","Forgotten","All-Seeing","Unwilling","Disgusting","Irritatin... |
local Library = {}
function Library:Create(name,logotext)
if game.CoreGui:FindFirstChild("ProjectTerminate") then
game.CoreGui:FindFirstChild("ProjectTerminate"):Destroy()
end
local ProjectTerminate = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local SideBar = Instance.new("Frame")
local UI... |
RegisterServerEvent("ResyncChannel")
AddEventHandler("ResyncChannel", function(channelID)
TriggerClientEvent("C_ResyncChannel", -1, channelID)
end)
|
--Creates a warning box
function LydsPlayer.CreateWarningBox(title, message, timeout)
timeout = timeout or false
LydsPlayer.ReinstantiatePanel("WarningBox")
LydsPlayer.GetPanel("WarningBox"):SetWarning(title, message, timeout)
end
--Creates a success box
function LydsPlayer.CreateSuccessBox(title, message, timeout... |
-- LaTeX specific settings
local keymap = vim.api.nvim_set_keymap
vim.opt.smartindent = true
vim.opt.tabstop=2
vim.opt.shiftwidth=2
vim.opt.expandtab = true
vim.opt.textwidth=80
vim.opt.conceallevel=2
vim.g.SuperTabDefaultCompletionType = '<C-x><C-o>'
vim.bo.spelllang="en_gb"
-- Keymaps
-- {{{
-- nnoremap <Leader>... |
local Colorscheme = {}
function Colorscheme:new(name)
local o = {}
o.name = name
self.__index = self
return setmetatable(o, self)
end
function Colorscheme:set()
vim.api.nvim_command('hi clear')
vim.api.nvim_command('colorscheme ' .. self.name)
end
return Colorscheme
|
local ntoh16, hton16 = ntoh16, hton16
local ffi = require("ffi")
local pkt = require("packet")
local dpdk = require "dpdk"
local dpdkc = require "dpdkc"
local memory = require "memory"
local device = require "device"
local stats = require "stats"
local pipe = require "pipe"
local percg = require "proto.percg"
local p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.