content stringlengths 5 1.05M |
|---|
vim.cmd([[
" Use <Tab> and <S-Tab> to navigate through popup menu
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Set completeopt to have a better completion experience
set completeopt=menuone,noinsert,noselect
" Avoid showing message extra mes... |
help(
[[
This module loads ViennaRNA-2.2.9.
]])
local version = "2.2.9"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/ViennaRNA/"..version
whatis("The ViennaRNA Package consists of a C code library and several stand-alone programs for the prediction and comparison of RNA secondary structures.")
prepend_pa... |
object_tangible_loot_creature_loot_collections_trader_dom_gem_bead = object_tangible_loot_creature_loot_collections_shared_trader_dom_gem_bead:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_trader_dom_gem_bead, "object/tangible/loot/creature/loot/collections/trader_dom_gem_bead.iff... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
---@class ISToggleLightAction : ISBaseTimedAction
ISToggleLightAction = ISBaseTimedAction:d... |
local tabletool = require 'tabletool'
-- example tables
local t1 = { "hello1", "hello2", "world" , 1 , 2 }
local t2 = { 1 , 2, 3 , 4 , 2 }
local t3 = { 3 , 4 , 12, 2}
local t4 = { 4, 21, 8, 9}
print("-- table 1: original")
tabletool.dumptable(t1)
print("-- table 2: original")
tabletool.dumptable(t2)
print("-- ta... |
local action = { }
local actionmt = {
__index = function(t, k)
local act = rawget(t, k)
if act then
return act
else
act = {
pressed = false,
released = false,
down = false
}
rawset(t, k, act)
return act
end
end
}
setmetatable(action, actionmt)
re... |
Device = { hooks = {} }
Device.__index = Device
function Device:Create(id, info)
local device = setmetatable(info or {}, Device)
device.id = id
device.data = device.data or {}
device:UpdateKvp()
return device
end
function Device:Invoke(name, autoEnable, autoPeek, ...)
Main:Commit("invokeDevice", {
name = sel... |
function handle_request()
local return_string = 'Hello from LUA handler';
local request = platform.get_http_request();
local form = request:parse_req_form();
local response = platform.get_http_response();
local addresses = platform.resolve_host_address('localhost', 'https');
response:set_chunked_trfencoding(tru... |
local config = require("lapis.config")
config("development", {
sqlitedb = 'app.db'
}) |
//Main function
function EFFECT:Init(data)
//Default performance settings
local DrawFlame = 1
local DrawSmoke = 1
local DrawRefraction = 0
//Adjust performance depending on user settings
local PerfIndex = GetConVar("flamethrower_fx"):GetInt()
if PerfIndex == 3 then DrawRefraction = 1 end
//Play impact sound
sound.... |
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
local function get_formspec_default(power)
return "size[8,8.5]"..
epr.gui_bg..
epr.gui_bg_img..
epr.gui_slots..
ele.formspec.power_meter(power)..
"image[2,0.5;1,1;gui_furnace_arrow_bg.png^[tran... |
package("bzip2")
set_homepage("https://en.wikipedia.org/wiki/Bzip2")
set_description("Freely available high-quality data compressor.")
set_urls("https://ftp.osuosl.org/pub/clfs/conglomeration/bzip2/bzip2-$(version).tar.gz",
"https://fossies.org/linux/misc/bzip2-$(version).tar.gz")
add_ver... |
local autopairs = require 'nvim-autopairs'
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
local cmp = require 'cmp'
local comment = require 'Comment'
local escape = require 'better_escape'
vim.g.did_load_filetypes = 1
comment.setup {
mappings = {
extended = true,
},
}
escape.setup {
mapping =... |
Tiled_Levels = Core.class(Sprite)
function Tiled_Levels:init(xworld, xcamera, xtiledlevelpath)
self.world = xworld
-- load the tiled level
local tiledlevel = loadfile(xtiledlevelpath)()
-- the tiled map size
local tilewidth, tileheight = tiledlevel.tilewidth, tiledlevel.tileheight
local mapwidth, mapheig... |
-- Navigation.lua
-- Contains all the command handlers in the navigation category
function HandleUpCommand(a_Split, a_Player)
-- /up
if #a_Split < 2 then
a_Player:SendMessage(cChatColor.Rose .. "Too few arguments.")
a_Player:SendMessage(cChatColor.Rose .. "/up <block>")
return true
elseif #a_Split > 2 ... |
local function tableContains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
end
function class(constructor)
local namespace = {}
namespace.__index = namespace
namespace.new = function(...)
local outerSelf = self
-- aliases
... |
local function lol(gfx)
local items = newItemList()
items:add(newEItem('shroom',11,12,gfx))
items:add(newEItem('score',11,17,gfx))
items:add(newEItem('goal',11,5,gfx))
items:add(newEItem('spawn',9,4,gfx))
items:add(newEItem('score',10,1,gfx))
items:add(newEItem('score',6,17,gfx))
items:add(newEItem('score',17,17,gfx))
... |
local exec
exec = require("libs.cfglib").exec
local insert, remove
do
local _obj_0 = table
insert, remove = _obj_0.insert, _obj_0.remove
end
local MessageQueue
MessageQueue = {
queue = { },
maxwait = 20,
message_delta = 5,
last_sayed = 0,
addMessage = function(message, importance)
print(message, impor... |
-----------------------------------
-- Area: North Gustaberg [S]
-- NPC: Lycopodium
-- !pos -275.953 12.333 262.368 88
-----------------------------------
local ID = require("scripts/zones/Garlaige_Citadel_[S]/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, npc, ... |
local AddonName, AddonTable = ...
-- Well of Eternity (Heroic)
AddonTable.well = {
-- Peroth'arn
72832,
72831,
72830,
72827,
72829,
72828,
-- Queen Azshara
72835,
72833,
72838,
72836,
72834,
72837,
-- Mannoroth <The Destructor> / Captain Varo'then <The Hand of... |
local ips =
{
"208.110.69.200", -- yamaha
"92.83.114.235", -- yamaha 2
"109.96.*.*", -- yamaha rangeban
"92.83.*.*", -- yamaha rangeban 2
"68.119.201.191", -- matthew ello
"68.119.192.184", -- matthew ello 2
"68.119.192.161", -- matthew ello 3
"68.119.*.*", -- matthew ello rangeban
"173.168.242.1... |
--[[
Title: VersionNotice
Author(s): big
CreateDate: 2020.01.14
ModifyDate: 2021.11.15
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local VipNotice = NPL.load('(gl)Mod/WorldShare/cellar/VipNotice/VipNotice.lua')
---------------------------------------------------------... |
local mock = require "deftest.mock"
local M = {}
M.ids = nil
function M.mock()
M.ids = {}
mock.mock(factory)
factory.create.replace(function(url, pos, ...)
local id = factory.create.original(url, pos, ...)
table.insert(M.ids, { url = url, pos = pos, id = id })
return id
end)
end
function M.unmock()
mock... |
local Table = require'Table'
local setmetatable, next, select = setmetatable, next, select
local Generator = {}
local GeneratorMt = {__index = Generator}
function Generator:apply( f, arg )
self[#self+1] = f
self[#self+1] = arg
return self
end
local function domap( g, ... )
return true, g( ... )
end
function ... |
--
local M = {}
local ffi = require('ffi')
function M.loadFileString(path)
local f = io.open(path, 'rb')
local s = f:read('a')
f:close()
return s
end
--
local kernel32 = ffi.load('kernel32.dll')
local CP_ACP = 0 -- default to ANSI code page
local CP_THREAD_ACP = 3 -- current thread's ANSI co... |
data.raw["gui-style"].default["teleportation_thin_flow"] = {
type = "flow_style",
horizontal_spacing = 0,
vertical_spacing = 0,
max_on_row = 0,
resize_row_to_width = true,
}
data.raw["gui-style"].default["teleportation_button_flow"] = {
type = "flow_style",
--parent="flow_style",
horizontal_s... |
local status_ok, npairs = pcall(require, "nvim-autopairs")
if not status_ok then
return
end
npairs.setup({
fast_wrap = {
map = "<M-e>",
chars = { "{", "[", "(", '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""),
offset = -1, -- Offset from pattern match
end_key = "$",
keys = "qwertyu... |
_PARSER = {
}
local P, C, V, Cc, Ct = m.P, m.C, m.V, m.Cc, m.Ct
local ERR_msg = ''
local ERR_i = nil
local LST_tk = nil
local LST_tki = nil
local f = function (s, i, tk)
if tk == '' then
ERR_i = 0
LST_tki = 0 -- restart parsing
LST_tk = 'BOF'
elseif i > ... |
function NPC:OnScaledDamage(npc, hitgroup, dmginfo)
return false
end |
--[[
Copyright (C) Udorn (Blackhand)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Component = require "moonpie.ui.components.component"
Component("body", function(props)
return {
props.content
}
end) |
class("AttireApplyCommand", pm.SimpleCommand).execute = function (slot0, slot1)
if not getProxy(AttireProxy):getAttireFrame(slot1:getBody().type, slot1.getBody().id) then
return
end
slot7 = getProxy(PlayerProxy).getData(slot6)
pg.ConnectionMgr.GetInstance():Send(11005, {
id = slot3,
type = slot4
}, 11006, ... |
ESX = nil
local PlayerData = {}
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(500)
end
while ESX.GetPlayerData().job == nil do
Citizen.Wait(5000)
end
PlayerData = ESX.GetPlayerData()
e... |
-- Copyright 2016 Google Inc, NYU.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... |
function INIT()
screen(300,200,3,[[
#140c1c
#442434
#30346d
#4e4a4e
#854c30
#346524
#d04648
#757161
#597dce
#d27d2c
#8595a1
#6daa2c
#d2aa99
#6dc2ca
#dad45e
#deeed6
]])
local pixelcode = [[
extern vec4 colors[32];
vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 s... |
local F, C = unpack(select(2, ...))
tinsert(C.themes["FreeUI"], function()
local gsub = string.gsub
GossipGreetingText:SetTextColor(1, 1, 1)
NPCFriendshipStatusBar:GetRegions():Hide()
NPCFriendshipStatusBarNotch1:SetColorTexture(0, 0, 0)
NPCFriendshipStatusBarNotch1:SetSize(1, 16)
NPCFriendshipStatusBarNotch2:S... |
---
--- slack.lua
---
--- SLACK incoming webhook interface
---
print("slack: loading")
-- Set fake_slack true to print what would be sent, but send nothing
fake_slack = true
-- slack()
--
-- Simple function to send a message to a slack channel
--
function slack(msg, channel, user, emoji)
print('slack: posting '..m... |
--Registro ABMs
local function Crystal(pos, node, dis)
local Mn = {x = pos.x - dis, y = pos.y - dis, z = pos.z - dis}
local Mx = {x = pos.x + dis, y = pos.y + dis, z = pos.z + dis}
local Air =minetest.find_nodes_in_area(Mn,Mx, "group:stone")
if #Air == 0 then
return
else
... |
local creatureNames, crystalPosition = { 'humongous fungus', 'hideous fungus' }, Position(33104, 31908, 10)
local function summonMonster(name, position)
Game.createMonster(name, position)
position:sendMagicEffect(CONST_ME_TELEPORT)
end
local function chargingText(cid, text, position)
local player = Player(cid)
pl... |
CloneClass( ChatManager )
Hooks:RegisterHook( "ChatManagerOnSendMessage" )
function ChatManager.send_message(this, channel_id, sender, message)
Hooks:Call( "ChatManagerOnSendMessage", channel_id, sender, message )
return this.orig.send_message(this, channel_id, sender, message)
end
Hooks:RegisterHook( "ChatManager... |
local NPC = {};
NPC.Name = "Police Department";
NPC.ID = 11;
NPC.Model = Model("models/humans/SCPD/male_01.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = Vector(-6997.8965, -8858.5801, -431.9688);
NPC.Angles = Angle(0, -90, 0);
NPC.ShowChatBubble = "Normal";
NPC.Sequenc... |
FAdmin.StartHooks["Health"] = function()
FAdmin.Access.AddPrivilege("SetHealth", 2)
FAdmin.Commands.AddCommand("hp", nil, "<Player>", "<health>")
FAdmin.Commands.AddCommand("SetHealth", nil, "[Player]", "<health>")
FAdmin.ScoreBoard.Player:AddActionButton("Set health", "icon16/heart.png", Color(255, 130, 0, 2... |
fs = require 'bee.filesystem'
if _W2L_DIR then
return fs.path(_W2L_DIR)
end
return fs.current_path():parent_path()
|
Test { description = "Testing Connection Cookies" }
local url = "https://httpbin.org/cookies/set/CookieName/CookieValue"
local parameters = {}
local headers = {}
headers["accept"] = "application/json"
local conn = Connection()
jsonText = conn:request("GET", url, parameters, nil, headers)
local json = JSON(jsonText):... |
SWEP.ClassName = "weapon_alyx_emp"
SWEP.Spawnable = true
SWEP.AdminOnly = false
SWEP.PrintName="Alyx EMP tool"
SWEP.Author = "Cherser"
SWEP.HoldType = "pistol"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
SWEP.UseHands = false --true
SWEP.ViewModel = "models/weapons/v_pistol.mdl"
SWEP.WorldModel = "models/weapons... |
slot0 = class("BackYardShopFilterPanel", import("...Decoration.panles.BackYardDecorationFilterPanel"))
slot0.SortForDecorate = function (slot0, slot1, slot2)
slot3 = slot2[1]
slot4 = slot2[2]
slot5 = slot2[3]
function slot6(slot0)
if slot0:canPurchaseByGem() and not slot0:canPurchaseByDormMoeny() then
return... |
--[[
@brief A demo screen
]]
require('Screen')
require('Scene')
require('SceneObject')
require('Vector')
require('util')
ShooterScreen = Class.extend(Screen, {
character = nil,
verticalSpeed = 300, -- px/s
direction = nil,
})
function ShooterScreen:load()
Screen.load(self) -- super
self.characte... |
stepper = require ('stepper')
stepper.init()
desired_steps = 2500
interval = 5
timer_to_use = 0
print('stepper.rotate() - start')
stepper.rotate(stepper.FORWARD,desired_steps,interval,timer_to_use,function ()
print('Rotation done. inside callback.')
end)
|
GM.Weapons = {}
-- Weapon categories
WEAPON_PRIMARY = 1
WEAPON_SECONDARY = 2
WEAPON_ADDON = 3
function GM:LoadWeapons()
if !self then self = GAMEMODE end
if SERVER and ( !self.Multipliers or !self.Multipliers.Weapons ) then
Error("Can't find GM.Multipliers for weapon knockbacks!\n")
end
-- Read weapons con... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "InGame",
id = "XIGMenu",
PlaceObj('XTemplateTemplate', {
'__template', "NewOverlayDlg",
'HostInParent', true,
}, {
PlaceObj('XTemplateAction', {
'ActionId', "close",
'ActionName', T(4523, --[[XTemplate XI... |
local mmver = offsets.MMVersion
if mmver ~= 8 then
return 0
end
-- Disable original handler:
mem.asmpatch(0x44e355, "jmp 0x44e39d - 0x44e355")
----
local SpriteEventsStart = 20000
local Events = {}
local random = math.random
-------------------------------------------------------
-- Give apple
local FruitBowls = {... |
require'diffview'.setup{}
|
local class = require 'middleclass'
local Mesh = require 'core/graphics/Mesh'
local Texture = require 'core/graphics/Texture'
local mesh = Mesh:load(here('Scene.json'), 'Orbot')
local normal = Texture:load{fileName=here('Normal.png')}
local color = Texture:load{fileName=here('Color.png'), colorSpace='srgb'}
lo... |
-- The buy function
function buyShopItem (itemid, ammo, itemprice)
--if ( exports.CSGgift:getChristmasDay() == "Day25" ) then itemprice = 0 end
local playerMoney = getPlayerMoney(source)
if (playerMoney < tonumber(itemprice)) then
exports.NGCdxmsg:createNewDxMessage(source, "You dont have enough money for this ite... |
local guids = require 'exports.mswindows.guids'
local subtypes = {
MEDIASUBTYPE_A2B10G10R10 = guids.guid '576f7893-bdf6-48c4-875f-ae7b81834567';
MEDIASUBTYPE_A2R10G10B10 = guids.guid '2f8bb76d-b644-4550-acf3-d30caa65d5c5';
MEDIASUBTYPE_AI44 = guids.guid '34344941-0000-0010-8000-00aa00389b71';
MEDIASUBTYPE_AIFF = ... |
-- Requirement summary:
-- [Data Resumption]: Data resumption on Unexpected Disconnect
--
-- Description:
-- Check that SDL perform resumption after heartbeat disconnect.
-- 1. Used precondition
-- In smartDeviceLink.ini file HeartBeatTimeout parameter is:
-- HeartBeatTimeout = 7000.
-- App is registerer and a... |
-----------------------------------
-- Area: Mamook
-- Mob: Darting Kachaal Ja
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
|
local expect, printed = require'rx-test'()
local rx, _ = require'rx'()
describe('Pipe Function', function()
describe('pipe', function()
it('handles no operator', function()
local test_ = rx.of('hello').pipe()
--
expect(test_).to.produce('hello')
end)
it... |
return Class({
BaseName = "Base",
Children = {},
Parent = nil,
Color = {1, 1, 1, 1},
Position = {0, 0, 0, 0},
Size = {0, 0, 32, 32},
GlobalAlpha = 1,
Enable = true,
LineWidth = 3,
LineColor = {.5, .5, .5, 1},
Init = function (self, c)
c.Children = {}
... |
local PANEL = {}
AccessorFunc( PANEL, "m_strType", "Type" )
AccessorFunc( PANEL, "m_ConVars", "ConVars" )
AccessorFunc( PANEL, "m_PresetControl", "PresetControl" )
--[[---------------------------------------------------------
Name: Init
-----------------------------------------------------------]]
function PANEL:In... |
local playerReducer = require('reducers/player')
local cameraReducer = require('reducers/camera')
local mapReducer = require('reducers/map')
function combine(state, action)
state = state or {}
return {
player = playerReducer(state.player, action),
camera = cameraReducer(state.camera, action),
... |
local ngx_log = ngx.log
local ngx_DEBUG = ngx.DEBUG
local ngx_ERR = ngx.ERR
local zedcup = require("zedcup")
local GLOBALS = zedcup.globals()
local DEBUG = GLOBALS.DEBUG
local utils = require("zedcup.utils")
local locks = require("zedcup.locks")
local _M = {
_VERSION = "0.0.1",
}
local function _revive_instan... |
local unionModule = require "module.unionModule"
local unionConfig = require "config.unionConfig"
local playerModule = require "module.playerModule"
local timeModule = require "module.Time"
local newUnionList = {}
function newUnionList:initUi()
self.view = CS.SGK.UIReference.Setup(self.gameObject)
CS.UGUIClic... |
local knownWeapons = {"Bullet", "Missile"}
local registry = {}
for i = 1, #knownWeapons do
local name = knownWeapons[i]
local module = require("engine.weapons." .. name)
registry[name] = module
end
local WeaponFactory = {}
function WeaponFactory.create(name, source)
local module = registry[name]
if module... |
return {'seychellen','seycheller','seychels','seychelse'} |
--[[
_
| |
__ _| |__ _ _ _ _ ___ _ _
\ \ /\ / / '_ \| | | | | | | |/ _ \| | | |
\ V V /| | | | |_| | | |_| | (_) | |_| |
\_/\_/ |_| |_|\__, | \__, |\___/ \__,_|
__/ | __/ |
... |
newoption({
trigger = "static-runtime",
description = "Force the use of the static C runtime (only works with static builds)"
})
newoption({
trigger = "lua-api",
value = "lua (default)",
description = "Choose a particular Lua API to use internally",
allowed = {
{"lua", "Lua"},
{"luajit", "LuaJIT"}
}
})
LUA... |
local _={}
_.name="OrangeeTree"
_.new=function(options)
local result=BaseEntity.new()
Entity.setSprite(result,"orangee1")
result.isDrawable=true
result.growPhase=1
result.isActive=false
result.originX=7
result.originY=27
Taggable.addTag(result,"tree")
Entity.afterCreated(result,_,options)
return re... |
pipelines = {}
pipelines[#pipelines + 1] = {
{ dest="monitor_a", shader="shaders/pass.glsl", inputs={ img0="ObjID:2:assets/animals/free/underwater/Pexels Videos 2558530.mp4-SHRINK-REV.mp4", }},
{ dest="monitor_b", shader="shaders/pass.glsl", inputs={ img0="ObjID:3:assets/animals/free/underwater/Video (1).mp4-SH... |
lr = ImportPackage("lightstreamer")
Edit = false
SelectedLight = 0
lightUI = 0
LightTimer = 0
UITimer = 0
EditMode = EDIT_LOCATION
LightsInWorld = {}
TemporySelectedLight = 0
AddEvent("OnPackageStart", function()
local ScreenX, ScreenY = GetScreenSize()
lightUI = CreateWebUI(0.0, 0.0, 0.0, 0.... |
local vim = vim
-- vim.api.nvim_set_keymap('n', '<c-p>', [[<cmd>lua require('telescope.builtin').git_files({previewer = false })<cr>]], { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<c-p>', [[<cmd>lua require('jw.telescope.utils').find_files({previewer = false })<cr>]], { noremap = true, silent = tru... |
-- Base16 Rigel color
-- Author: Alexander Keliris
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#00384d" -- ----
M.base01 = "#9cf087" -- ---
M.base02 = "#ffcc1b" -- --
M.base03 = "#517f8d" -- -
M.base04 = "#7eb2dd" -- +
M.base05 = "#7792... |
-- Data Loader for video datasets: FBMS + VSB + DAVIS
require 'torch'
require'lfs'
local cv = require 'cv'
require 'cv.imgcodecs'
local image = require 'image'
local sys = require 'sys'
local xlua = require 'xlua' -- xlua provides useful tools, like progress bars
local ffi = require 'ffi'
local DataRobot = torch.... |
return {
summary = 'In the beginning, there was nothing.',
description = [[
`lovr` is the single global table that is exposed to every LÖVR app. It contains a set of
**modules** and a set of **callbacks**.
]],
sections = {
{
name = 'Modules',
tag = 'modules',
description = [[
... |
function compressInputItems(inputItems)
local m = {};
for _, inputItem in ipairs(inputItems) do
local itemName = inputItem[1];
local amount = inputItem[2];
if m[itemName] == nil then
m[itemName] = 0;
end
m[itemName] = m[itemName] + amount;
end
... |
return {'deze','dezelfde','dezelve','dezen','dezer','dezerzijds','dezes','dezulke','dezulken','dezelfden','deze'} |
#!/usr/bin/env lua
require 'Test.Assertion'
plan(6)
if not require_ok 'Spore.Middleware.Parameter.Force' then
skip_rest "no Spore.Middleware.Parameter.Force"
os.exit()
end
local mw = require 'Spore.Middleware.Parameter.Force'
equals( require 'Spore'.early_validate, false, "early_validate" )
local req = req... |
local enableDevMode = false
------------------------------------------------------------------------------------------------------------------------
-- Slots Spinner Server
-- Author Morticai (META) - (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380)
-- Date: 2021/5/20
-- Version 0.0.1
-----------------... |
--- Basic caching for the League of Legends API
--
-- This module is one of the core modules that everything is built on top of.
-- If you want to create an `api` object, a `cache` object will be created for you
-- automatically.
--
-- @module lol.cache
--[[
--This is unfortunately a super dumb (and thus likely VERY s... |
print("TID NAME")
for i, thread in ipairs(require("dotos").listthreads()) do
print(string.format("%4d %s", thread.id, thread.name))
end
|
local class = require "andross.middleclass"
Attachment = class("Attachment")
function Attachment:initialize(name)
self.name = name
self.positionX = 0
self.positionY = 0
self.angle = 0
self.scaleX = 1
self.scaleY = 1
end
return Attachment |
local composer = require( "composer" )
local scene = composer.newScene()
local physics = require("physics")
physics.start()
physics.setGravity( 0, 0 )
local sfx = require( "scripts.sfx" )
local screen = require( "scripts.screen" )
local levelData = require( "data.levels" )
local clock = require( "scripts.clock" )
--... |
-- Module containing all graphical and user interface manipulation functions for IUP and CD library.
-- This module aims to abstract away the underlying framework of IUP and CD libraries
require("iuplua")
require("iupluaimglib")
require("cdlua")
require("iupluacd")
local coorc = require("lua-gl.CoordinateCalc")
loca... |
local Prop = {}
Prop.Name = "Tower Casino"
Prop.Cat = "Store"
Prop.Price = 25000
Prop.Doors = {
Vector( -3842, -5034, 191 ),
Vector( -3842, -5078, 191 ),
}
GM.Property:Register( Prop ) |
--[[
~ Weapon Store ~ Serverside ~
~ Lexi ~
--]]
function ENT:SpawnFunction(ply, tr)
print(self, self.IsValid, self:IsValid(), self.GetClass, self:GetClass())
if (not tr.Hit) then return end
local ent = ents.Create ("sent_weaponstore");
ent:SetPos (tr.HitPos + tr.HitNormal * 16);
ent:Spawn();
ent:Activate();
... |
-- Enable relative line numbers
vim.opt_local.number = true
vim.opt_local.relativenumber = true
|
-- Tests here are dedicated to verify that ujit library implementation of
-- variuos functions from 'table' module outperforms naive implementation.
-- Copyright (C) 2020-2022 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
local utils = requ... |
Citizen.CreateThread(function()
TriggerEvent("inv:playerSpawned");
end)
RegisterServerEvent("server-item-quality-update")
AddEventHandler("server-item-quality-update", function(player, data)
if data.quality < 1 then
exports.ghmattimysql:execute("UPDATE user_inventory2 SET `quality` = @quality WHERE nam... |
TX_port = 0;
RX_port = 1;
Burst_size = 4;
Rate = RATE;
TX_count = 1000000;
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;";
require "Pktgen";
pktgen.set(TX_port, "burst", Burst_size);
f = assert(io.open("/tmp/Output.txt", "w"));
for i = 1, REPETITIONS
do
-- Flush remaining packets.
pktgen.set(TX... |
-- import
local EntityModule = require 'candy.Entity'
local Entity = EntityModule.Entity
local AnimatorEventTrackModule = require 'candy.animator.AnimatorEventTrack'
local AnimatorEventKey = AnimatorEventTrackModule.AnimatorEventKey
local AnimatorEventTrack = AnimatorEventTrackModule.AnimatorEventTrack
-- module
local... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "ItemShotgun";
ITEM.cost = 300;
ITEM.model = "models/weapons/w_shotgun.mdl";
ITEM.weight = 4;
ITEM.classes = {CLASS_EOW};
ITEM.uniqueI... |
--- The derma library allows you to add custom derma controls and create & modify derma skins.
_G.derma = {}
--- Gets the color from a Derma skin of a panel and returns default color if not found
--- @param name string
--- @param pnl GPanel
--- @param default table @The default color in case of failure.
function ... |
--------------------------------------------------------------------------------
-- Preconditions
--------------------------------------------------------------------------------
local Preconditions = require('user_modules/shared_testcases/commonPreconditions')
--------------------------------------------------------... |
-- -*- lua -*-
local help = [[
The Gnu Compiler Collecton
]]
local pkg = Pkg:new{Category = "System Environment/Base",
URL = "http://gcc.gnu.org",
Description = "The Gnu Compiler Collection",
display_name = "GCC",
level ... |
local skynet = require 'skynet'
local dc = require 'skynet.datacenter'
return {
get = function(self)
local get = ngx.req.get_uri_args()
local inst = get.inst
local app = dc.get('APPS', inst)
if app.islocal then
lwf.json(self, {version=app.version})
return
end
assert(app and app.name)
local data = ... |
local class = require 'nelua.utils.class'
local Emitter = require 'nelua.emitter'
local traits = require 'nelua.utils.traits'
local typedefs = require 'nelua.typedefs'
local errorer = require 'nelua.utils.errorer'
local pegger = require 'nelua.utils.pegger'
local bn = require 'nelua.utils.bn'
local CEmitter = class(Emi... |
local log = require "log"
local class = require "class"
local co = require "internal.Co"
local wbproto = require "protocol.websocket.protocol"
local _recv_frame = wbproto.recv_frame
local _send_frame = wbproto.send_frame
local co_self = co.self
local co_wait = co.wait
local co_spwan = co.spwan
local co_wakeup = co.wak... |
local Behaviors = {}
Behaviors.Follow = require('pda/behavior/follow')
Behaviors.Alert = require('pda/behavior/alert')
Behaviors.Separation = require('pda/behavior/separation')
Behaviors.PathFollowing = require('pda/behavior/path_following')
return Behaviors
|
C_TaxiMap = {}
---Returns information on taxi nodes at the current flight master.
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_TaxiMap.GetAllTaxiNodes)
---@param uiMapID number
---@return TaxiNodeInfo[] taxiNodes
function C_TaxiMap.GetAllTaxiNodes(uiMapID) end
---Returns information on taxi nodes for a g... |
----------------------------------------------------------------------------------------------
-- Client Lua Script for ForgeUI
--
-- name: hui.lua
-- author: Winty Badass@Jabbit
-- about: ForgeUI GUI library
-----------------------------------------------------------------------------------------------
require "W... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.