content stringlengths 5 1.05M |
|---|
local responses = require "kong.tools.responses"
local validations = require "kong.dao.schemas_validation"
local app_helpers = require "lapis.application"
local utils = require "kong.tools.utils"
local is_uuid = validations.is_valid_uuid
local _M = {}
function _M.find_api_by_name_or_id(self, dao_factory, helpers)
l... |
function CreateEngineService(name, copyToOutput)
copyToOutput = copyToOutput or true
project(name)
kind "SharedLib"
language "C++"
cppdialect "C++17"
staticruntime "Off"
targetdir ("%{OutputDir}%{prj.name}")
objdir ("%{OutputDir}Intermediate/%{prj.name}")
includedirs
{
IncludeDir,
"%{wks.location}/..... |
--[[
Project: SA-MP-API
Author: Tim4ukys
My url: vk.com/tim4ukys
]]
local sys = require 'SA-MP API.kernel'
sys.ffi.cdef[[
struct stTextLabel {
char *pText;
unsigned int color;
float fPosition[3];
float fMaxViewDistance;
unsigned char byteShowBehindWalls;
unsigned short sAttachedToPlayerI... |
---
-- ChannelHandler.server.lua - Instrument channel handler
--
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CollectionSubscriber = require(ReplicatedStorage.Common.CollectionSubscriber)
local events = ReplicatedStorage.Instrument
local Channel = {}
... |
---
-- @module RxBinderUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Binder = require("Binder")
local Brio = require("Brio")
local Maid = require("Maid")
local Observable = require("Observable")
local Rx = require("Rx")
local RxBrioUtils = require("RxBrioUtils")
local RxInst... |
local lsp_config = require('lspconfig')
local on_attach = require('lsp/on_attach')
lsp_config.cssls.setup({
filetypes = { 'css', 'sass', 'scss' },
settings = {
css = {
validate = true
},
sass = {
validate = true
},
scss = {
validate = true
}
},
on_attach = function(cli... |
local _G = _G;
_G.ABP_4H = _G.LibStub("AceAddon-3.0"):NewAddon("ABP_4H", "AceConsole-3.0", "AceComm-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceHook-3.0");
local ABP_4H = _G.ABP_4H;
local AceGUI = _G.LibStub("AceGUI-3.0");
local UnitExists = UnitExists;
local UnitClass = UnitClass;
local UnitGUID = UnitGUID;
local UnitN... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage:WaitForChild("common")
local Thunks = require(common:WaitForChild("Thunks"))
local Assets = require(common:WaitForChild("Assets"))
return {
id = "itempack_spooky",
name = "Spooky Item Pack",
desc = (
... |
-- Super Mario Bros. script by ugetab.
-- 2010, April 20th.
-- Competition Recorder:
-- Start the script, then make a recording from Start.
-- Play until you get a score you'd like to keep, then end the movie.
-- A record of your best scores, and the filename you got it in, will be saved.
-- You can easily find y... |
--[[
################################################################################
#
# Copyright (c) 2014-2017 Ultraschall (http://ultraschall.fm)
#
# 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 th... |
--
--------------------------------------------------------------------------------
-- FILE: test.lua
-- USAGE: ./test.lua
-- DESCRIPTION: just for test
-- OPTIONS: ---
-- REQUIREMENTS: ---
-- BUGS: ---
-- NOTES: ---
-- AUTHOR: (), <>
-- COMPANY:
-- ... |
--[[-----------------------------------------------------------------------------
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 26
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Tip Jar"
ENT.Author = "FPtje"
ENT.Spawnable = false
function ENT:initVars()
self.model = "models/props_lab/jar01a.mdl"
self.damage = 100
self.callOnRemoveId = "tipjar_activedonation_" .. self:EntIndex() .. "_"
self.activeDonations = {}
... |
-----------------------------------------
-- ID: 5780
-- Item: coffee_macaron
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Increases rate of synthesis success +5%
-- Increases synthesis skill gain rate +5%
-----------------------------------------
require("scripts/globals/status")
requi... |
----------------------------------------
--- Discord Whitelist, Made by FAXES ---
----------------------------------------
fx_version 'bodacious'
game 'gta5'
server_only 'yes'
author 'FAXES'
description 'Hate updating those ACE Permission white-lists? Well just use Discord! Now you can thanks to this script,... |
local L = require "espalier/elpatt"
local D, E, P, R, S, V = L.D, L.E, L.P, L.R, L.S, L.V
local Grammar = require "espalier/grammar"
local function pegylator(_ENV)
START "rules"
---[[
SUPPRESS ("WS", "enclosed", "form",
"element" ,"elements",
"allowed_prefixed", "allo... |
local starlib = require('starlib')
local trace = require('tracedoc.test.trace')
local doc = trace.new()
print('-------- set doc')
doc.a = 1
print('dump')
print(debug.dump(doc, nil, 5))
print('commit')
print(debug.dump(trace.commit(doc)))
print('-------- unset doc')
doc.a = nil
print('dump')
print(... |
include "app.gameClass.skill.Skill"
include "app.gameClass.Buff"
_ENV=namespace "game"
using_namespace "luaClass"
using_namespace "container"
---@class UniqueSkill : Skill
class("UniqueSkill"){
CLASS_DEBUG(false);
}
function UniqueSkill:UniqueSkill(pSkill,uniqueStruct)
--实例继承
inheritInstance(self,pSkill... |
ITEM.name = "작은 탁자"
ITEM.model = Model("models/props_c17/FurnitureDrawer002a.mdl")
ITEM.uniqueID = "stor_sdrawer"
ITEM.maxWeight = 4
ITEM.desc = "조금 작은 탁자입니다."
|
local Button = Object:extend()
function Button:new(scene, x, y, width)
if not Button.load then
Button.tiles = love.graphics.newImage("assets/tiles.png")
Button.tiles:setFilter("linear", "nearest")
Button.load = true
end
self.scene = scene
self.x = x
self.y = y
self.width = width
self.batch = love.graphic... |
local M = {}
M.config = function()
O.lang.clang = {
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
cross_file_rename = true,
header_insertion = "never",
filetypes = { "c", "cpp", "objc" },
formatter = {
exe = "clang-format",
args = {},
st... |
local LAM = LibAddonMenu2
local LMP = LibMediaProvider
Recount.SettingsMenu = {
name = "Recount_SettingsMenu",
}
function Recount.SettingsMenu.Initialize()
local panelData = {
type = "panel",
name = Recount.name,
displayName = Recount.name.." Settings",
author = "lwndow, Ferather, Shadow-Fighter... |
local module = ...
local function build_list(objects)
local out = {}
for key, value in pairs(objects) do
if type(value) == 'table' then
if type(key) == 'string' then
table.insert(out, key .. "=")
end
table.insert(out, "{")
table.insert(out, build_list(value))
table.insert... |
nevermore_ultimate = class({})
LinkLuaModifier("modifier_nevermore_ultimate", "abilities/heroes/nevermore/nevermore_ultimate/modifier_nevermore_ultimate", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_nevermore_ultimate_thinker", "abilities/heroes/nevermore/nevermore_ultimate/modifier_nevermore_ultimate_thinker",... |
--[[
Description: Probability computation functions for multinomial and nested logit models
Author: Harish Loganathan
]]
math.randomseed( os.time() )
local function calculate_multinomial_logit_probability(choices, utility, availables)
local probability = {}
local evsum = 0
local exp = math.exp
for k,c in ipairs(ch... |
--!strict
-- Unit tests are needed in this module more than any other.
local Types = require(script.Parent.Parent.Types)
local spec: Types.Spec = function(practModule, describe)
local PractGlobalSystems = (require :: any)(practModule.PractGlobalSystems)
local Symbols = (require :: any)(practModule.Symbols)
... |
if select(2, UnitClass("player")) ~= "ROGUE" then return end
local GetSpellInfo = DrDamage.SafeGetSpellInfo
local GetSpellCritChance = GetSpellCritChance
local GetCritChance = GetCritChance
local UnitDebuff = UnitDebuff
local UnitCreatureType = UnitCreatureType
local math_min = math.min
local math_max = math.max... |
--final = final drive ratio of car
--gearratio[6] = gear ratio in 6th gear
--tcircumference = tire circumference
gearratio = {}
acceleration = 5.7
redline = 8000
final = 4.2
gearratio[1] = 2.92
gearratio[2] = 1.75
gearratio[3] = 1.31
gearratio[4] = 1.03
gearratio[5] = .848
gearratio[6] = 0
tcircumference = 6.17
price... |
Set = {}
Set.mt = {} -- metatable for sets
function Set.new (t)
local set = {}
-- important
setmetatable(set, Set.mt)
for _, l in ipairs(t) do set[l] = true end
return Set
end
function Set.union (a,b)
local res = Set.new{}
for k in pairs(a) do res[k] = true end
for k in pairs(b) do res[k] = true ... |
--// Syn Admin Commands; Loader \\--
--<< Setup >>--
local Folder = script.Parent.Parent.Parent
local Setup = Folder:FindFirstChild('Setup')
local Plugins = Setup:FindFirstChild('Plugins')
local settings = Setup:FindFirstChild('Settings')
-- MainModule; https://www.roblox.com/library/4665853426/Syn-Admin-Comm... |
local bin = require "bin"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local tab = require "tab"
local table = require "table"
description = [[
Queries Quake3-style master servers for game servers (many games other than Quake 3 use th... |
local network = {}
network.isClient = game:GetService("RunService"):IsClient()
network.isServer = game:GetService("RunService"):IsServer()
network.binds = {}
network.funcBinds = {}
network.event = function()
local e = game:GetService("ReplicatedStorage"):FindFirstChild("Event")
return e
end
network.func = function... |
return {
tag = 'listener',
summary = 'Get the name of the active spatializer',
description = [[
Returns the name of the active spatializer (`simple`, `oculus`, or `phonon`).
The `t.audio.spatializer` setting in `lovr.conf` can be used to express a preference for a
particular spatializer. If it's `ni... |
require 'mock_edit.gizmos.BoundGizmo'
require 'mock_edit.gizmos.IconGizmo'
require 'mock_edit.gizmos.PhysicsShapeGizmo'
require 'mock_edit.gizmos.WaypointGraphGizmo'
require 'mock_edit.gizmos.PathGizmo'
|
-- baby
-- babyjeans
--
-- the inevitable lua 'engine'
---
-- should name it 'project killer'
---
local baby = class('baby')
babyDebug = require('script/baby/babydebug')
babyGfx = require('script/baby/babygfx')
function baby:init()
end
return baby() |
ConCommand = {}
-- Command list
-- { [string command] = { function func = Function callback, bool is_shared = It needs to run shared }, ... }
local ccon_list = {}
--[[
Add console commands
Arguments:
string command = Console command
function func = Function callback name or address
... |
data:extend({
{
type = "furnace",
name = "electric-furnace-mk2",
icon_size = 32,
icon = "__FactorioExtended-Machines__/graphics/icons/electric-furnace-mk2.png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {mining_time = 1, result = "electric-furnace-mk2"},
... |
----------------------------------------------------------------------
-- Metalua: $Id: mlp_meta.lua,v 1.4 2006/11/15 09:07:50 fab13n Exp $
--
-- Summary: Meta-operations: AST quasi-quoting and splicing
--
----------------------------------------------------------------------
--
-- Copyright (c) 2006, Fabien Fleutot <... |
-- Neovim configuration ~/.config/nvim/init.lua
--[[ Bootstrap Paq by cloning it into the "right place"
git clone https://github.com/savq/paq-nvim.git \
~/.local/share/nvim/site/pack/paqs/opt/paq-nvim
Paq Commands:
:PaqInstall <- Install all packages listed in configuration below
... |
slot0 = class("ThirdAnniversarySquareScene", import("..TemplateMV.BackHillTemplate"))
slot0.UIName = "ThirdAnniversarySquareUI"
slot0.HUB_ID = 9
slot0.edge2area = {
default = "_middle",
3_4 = "_bottom",
4_5 = "_bottom",
7_7 = "_front"
}
slot0.init = function (slot0)
slot0.loader = ThirdAnniversaryAutoloader.New()... |
--[[
An interface to have one event listener at a time on an event.
One listener can be registered per SingleEventManager/Instance/Event triple.
For example:
myManager:connect(myPart, "Touched", touchedListener)
myManager:connect(myPart, "Touched", otherTouchedListener)
If myPart is touched, only `otherTouc... |
#!@path_to_lua@/lua
-- -*- lua -*-
local sys_lua_path = "@sys_lua_path@"
if (sys_lua_path:sub(1,1) == "@") then
sys_lua_path = package.path
end
local sys_lua_cpath = "@sys_lua_cpath@"
if (sys_lua_cpath:sub(1,1) == "@") then
sys_lua_cpath = package.cpath
end
package.path = sys_lua_path
package.cpath = sys_lua... |
VolumeNorm = {}
setmetatable(VolumeNorm, {__index = HiveBaseModule})
VolumeNorm.new = function (varname)
local this = HiveBaseModule.new(varname)
local vf = LoadModule("VolumeFilter")
this.vf = vf
setmetatable(this, {__index=VolumeNorm})
return this
end
function VolumeNorm:Do()
self:UpdateValue(... |
return {'zowaar','zowat','zowel'} |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.ui.title_screen", function()
require "game.ui"
local title_screen
before_each(function()
title_screen = moonpie.ui.components.title_screen()
end)
... |
-----------------------------------------
-- ID: 5547
-- Item: Beef Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Attack +18% Cap 40
-- Evasion +5
--------------------... |
--[[
基于ip来表征用户
]]--
local _M = {
_VERSION = '0.01'
}
local ffi = require("ffi")
--[[
c库代码
]]--
ffi.cdef[[
struct in_addr {
uint32_t s_addr;
};
int inet_pton(int af, const char *src, void *dst);
int inet_aton(const char *cp, struct in_addr *inp);
uint32_t ntohl(uint32_t netlong);
char *inet_ntoa(struct in_... |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
if (CLIENT) then
SWEP.Slot = 3;
SWEP.SlotPos = 5;
SWEP.DrawAmmo = false;
SWEP.PrintName = "Broom";
SWEP.DrawCrosshair = true;
end
SWEP.Author = "JohnyReaper"
SWEP.Instructions = "Primary Fire: Sweep";
SWEP.Purpose = "To sweep up dirt and trash.";
SW... |
-----------------------------------
-- Area: Metalworks
-- NPC: Kaela
-- Type: Adventurer's Assistant
-- !pos 40.167 -14.999 16.073 237
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
... |
local login = require "status.login"
local hall = require "status.hall"
local room = require "status.room"
local status_tbl = {
["login"] = login,
["room"] = room,
["hall"] = hall
}
local M = {
cur = nil
}
function M:enter(name)
if self.cur then
self.cur:leave()
end
self.cur = sta... |
dilvin_lormurojo_missions =
{
{
missionType = "assassinate",
primarySpawns =
{
{ npcTemplate = "borvos_thug", npcName = "" }
},
secondarySpawns = {},
itemSpawns = {},
rewards =
{
{ rewardType = "credits", amount = 100 }
}
}
}
-- Has initial convo strings for 3 more missions but is missing mos... |
--[[
> File Name: is_table_empty.lua
> Author: weijie.yuan
> Mail: yuanweijie1993@gmail.com
> Created Time: Tue 13 Mar 2018 03:00:12 PM CST
--]]
function is_table_empty(table)
if type(table) ~= 'table' then return false end
return table == nil or next(table) == nil --t is nil or {}
end
|
Amazon = Amazon or {}
function Amazon.SerializeOrder(order)
return util.TableToJSON(order)
end
function Amazon.DeserializeOrder(order)
return util.JSONToTable(order)
end |
local window = require 'lspsaga.window'
local vim,api,lsp,vfn = vim,vim.api,vim.lsp,vim.fn
local config = require('lspsaga').config_values
local libs = require('lspsaga.libs')
local home_dir = libs.get_home_dir()
local scroll_in_win = require('lspsaga.action').scroll_in_win
local send_request = function(timeout)
loc... |
--此文件为比赛配置说明
local GameMatchConfig = {};
----------------------------------------------------------------------------------------
-- --场景配置,它必须配
-- GameMatchConfig.scene = {
-- ["controller"] = {filePath,className};
-- ["scene"] = {filePath,className};
-- ["sceneLayout"] = {filePath,className}; --可以不... |
-- Created as global
new = {}
-- Implements new(), which returns the constructor for cls
local function new_call(_, cls)
return cls[new_call]
end
new.__call = new_call
-- Create a new class, using arguments as mixins
local function new_class(cls, parents)
cls.__index = cls
-- The default constructor
... |
-- xTODO: sets of zones behind a prefix.
-- xTODO: zones with local vs other failover.
-- xTODO: failover on get
-- xTODO: all zone sync on set
-- TODO: fallback cache for broken/overloaded zones.
-- local zone could/should be fetched from environment or local file.
-- doing so allows all configuration files to be ide... |
--- @module luci.usbleach.modules.email
local email = {}
function email.index()
return { name = "Email" }
end
--- EDIT ME PLEASE :)
-- Default domain appended to "email" addresses when
-- they don't contain an arobase symbol
local DEFAULT_DOMAIN = "@gmail.com"
-- SMTP server to be used.
local SMTP_HOST = "your_... |
-- import
local AnimatorClipTreeModule = require 'candy.animator.AnimatorClipTree'
local AnimatorClipTreeNode = AnimatorClipTreeModule.AnimatorClipTreeNode
-- module
local AnimatorClipTreeNodeSelectModule = {}
---@class AnimatorClipTreeNodeSelect : AnimatorClipTreeNode
local AnimatorClipTreeNodeSelect = CLASS: Animat... |
local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
local check_backspace = function()
local col = vim.fn.col "." - 1
return col == 0 or vim.fn.getline("."):sub(col, col):match "%... |
function onCreate()
if difficulty == 0 then
close(true);
end
end
local iconSize = 1;
local iconSpeed = 0.02;
local iconP1X = 0;
local iconP1Y = 0;
local iconP2X = 0;
local iconP2Y = 0;
local funnies = false;
local fuck = 0;
local shit = 0;
-- Sword Icon System by swordcube
-- This script r... |
local skynet = require "skynet"
local sharetable = require "skynet.sharetable"
local function queryall_test()
sharetable.loadtable("test_one", {["message"] = "hello one", x = 1, 1})
sharetable.loadtable("test_two", {["message"] = "hello two", x = 2, 2})
sharetable.loadtable("test_three", {["message"] = "hello three... |
---
-- A library providing functions for doing SSLv2 communications
--
--
-- @author Bertrand Bonnefoy-Claudet
-- @author Daniel Miller
local stdnse = require "stdnse"
local bin = require "bin"
local bit = require "bit"
local table = require "table"
local nmap = require "nmap"
local sslcert = require "sslcert"
_ENV = ... |
---------------------------------------------------------------------------
--- Remote control module allowing usage of awesome-client.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @module awful.remote
------------------------------------------------------------------------... |
-- Map leader to space
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
-- bootstrap packer plugin
local fn = vim.fn
local execute = vim.api.nvim_command
local install_path = fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
execute('!git clone https://github.co... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
--!A cross-platform build utility based on Lua
--
-- 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... |
local ffi = require('ffi')
ffi.cdef [[
void *memchr(const void *str, int c, size_t n);
int memcmp(const void *str1, const void *str2, size_t n);
void *memcpy(void *dest, const void *src, size_t n);
void *memmove(void *dest, const void *src, size_t n);
void *memset(void *str, int c, size_t n);
char *strcat(char *dest,... |
-- @todo
-- @module native
-- @submodule networkcash
-- @see NETWORK_INITIALIZE_CASH
-- @usage void NETWORK_INITIALIZE_CASH(int p0, int p1);
-- @param p0 int
-- @param p1 int
-- @return void
function NetworkInitializeCash(p0, p1) end
-- Note the 2nd parameters are always 1, 0. I have a feeling it deals with ... |
------------------------------------------------------------------------------
-- DynASM PPC module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... |
-- Author : bobby.cannon
-- Create Date : 1/13/2012 7:41:32 PM
BobsCastingBarBlockTemplate = {
}
function BobsCastingBarBlockTemplate:Layout(bar)
-- Set the bar settings.
bar:SetWidth(bar.Settings.Width);
bar:SetHeight(bar.Settings.Height);
-- Reset the graphics settings.
local Graphics = bar.Graphics;
... |
-- sample rate is 22050
local Kaes = {}
Kaes["ohh"] = {}
Kaes["ohh"]["B"] = 0.44985782687267
Kaes["ohh"]["gainV"] = 1
Kaes["ohh"]["areas"] = {}
Kaes["ohh"]["areas"][1] = 1
Kaes["ohh"]["areas"][2] = 0.012551292341688
Kaes["ohh"]["areas"][3] = 0.4052771830498
Kaes["ohh"]["areas"][4] = 0.034730394189099
Kaes["ohh"]["areas... |
if not rawget(_G, "yatm_data_logic") then
return
end
--
-- Access Chips are the Data equivalent of Locks
-- They can be installed in place of a lock, and will require the use of an access card to unlock.
--
for _,row in ipairs(yatm.colors_with_default) do
local basename = row.name
local name = row.description
... |
--name
local results = redis.call('ZRANGE', 'feed.ids:'..ARGV[1], 0, -1);
return {false, results};
|
object_mobile_skeleton_vr_bat = object_mobile_skeleton_shared_vr_bat:new {
}
ObjectTemplates:addTemplate(object_mobile_skeleton_vr_bat, "object/mobile/skeleton/vr_bat.iff")
|
local skynet = require "skynet"
local mysql = require "skynet.db.mysql"
local mysql_file = skynet.getenv("mysql_file")
local mysql_config = load(string.format("return %s", skynet.getenv("mysql")))()
local db_config = {
host = mysql_config.host,
port = mysql_config.port,
user = mysql_config.username,
p... |
local techUpgradesTable =
{
kTechId.Jetpack,
kTechId.Welder,
kTechId.ClusterGrenade,
kTechId.PulseGrenade,
kTechId.GasGrenade,
kTechId.Mine,
kTechId.Vampirism,
-- kTechId.Carapace,
kTechId.Regeneration,
kTechId.Aura,
kTechId.Neurotoxin,
kTechId.Camouflage,
kTechId.... |
-- Transliteration for Marathi (in progress)
local export = {}
local gsub = mw.ustring.gsub
local find = mw.ustring.find
local conv = {
-- consonants
['क'] = 'k', ['ख'] = 'kh', ['ग'] = 'g', ['घ'] = 'gh', ['ङ'] = 'ṅ',
['च'] = 'c', ['छ'] = 'ch', ['ज'] = 'j', ['झ'] = 'jh', ['ञ'] = 'ñ',
['ट'] = 'ṭ', ['ठ'] = 'ṭh', [... |
local S = aurum.get_translator()
aurum.farming = {}
-- Fertilizer and soil.
b.dofile("base.lua")
-- Crops.
b.dodir("crops")
|
local cmd = vim.cmd -- to execute vim commands without any output
local fn = vim.fn -- to execute vim functions
local u = require("util")
vim.g.mapleader = " " -- Set leader to space.
vim.o.termguicolors = true -- Enable termguicolor support.
-- Backup {{{1
vim.opt.backup = false -- Disable backups.
vim.opt.confirm =... |
package.path = "../?.lua;"..package.path
local namespace = require("lj2ps.namespace")
local PostscriptVM = require("lj2ps.ps_vm")
local ops = require("lj2ps.ps_operators")
local ns = namespace(ops)
-- put ops into a local namespace
--[[
3 dict begin
/proc1 { pop } def
/two 2 def
/three (trois) def
currentd... |
function Client_PresentConfigureUI(rootParent)
rootParentobj = rootParent;
AIDeclerationinit = Mod.Settings.AllowAIDeclaration;
if(AIDeclerationinit == nil)then
AIDeclerationinit = false;
end
SeeAllyTerritoriesinit = Mod.Settings.SeeAllyTerritories;
if(SeeAllyTerritoriesinit == nil)then
SeeAllyTerri... |
data:extend({
{
type = "int-setting",
name = "muro-wall-builder-thickness",
default_value = 1,
minimum_value = 1,
setting_type = "runtime-per-user",
order = 'a[muro-wall-builder-settings]'
},
{
type = "int-setting",
... |
-- arm specific definitions
return {
ucontext = [[
typedef int greg_t, gregset_t[18];
typedef struct sigcontext {
unsigned long trap_no, error_code, oldmask;
unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
unsigned l... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local VoteResultsWindow = require(script.Parent.Parent:WaitForChild("Resources"):WaitForChild("VoteResultsWindow"))
local VoteChoiceWindow = require(script.Parent.Parent:WaitForChild("R... |
Ship = 0
SubSystem = 1
dofilepath("data:scripts/utilfunc.lua")
dofilepath("data:scripts/techfunc.lua")
dofilepath("data:scripts/races/hiigaran_hwce/scripts/out_hgn_bld.lua")
--PrintBuildNames()
--CountBuildItems()
--build = {}
|
-- Sort a selected text
function lines(str, botlin, toplin)
local t = {}
for i = botlin,toplin do
table.insert(t,(editor:GetLine(i)))
end
return t
end
function real_sort_text(f)
local botlin = editor:LineFromPosition(editor.Anchor)
local toplin = editor:LineFromPosition(editor.CurrentPos)
if botli... |
--[[
Title: History Manager
Author(s): big
CreateDate: 2018.09.03
ModifyDate: 2021.12.16
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local HistoryManager = NPL.load('(gl)Mod/WorldShare/cellar/HistoryManager/HistoryManager.lua')
-----------------------------------------... |
local vehicles = {}
local particles = {}
function IsVehicleNitroPurgeEnabled(vehicle)
return vehicles[vehicle] == true
end
function SetVehicleNitroPurgeEnabled(vehicle, enabled)
if IsVehicleNitroPurgeEnabled(vehicle) == enabled then
return
end
if enabled then
local bone = GetEntityBon... |
local _
local BLOCK_TABBAR_CALLBACK = true
ZO_GAMEPAD_INVENTORY_SCENE_NAME = "gamepad_inventory_root"
-- Note: "ZOS_*" functions correspond to the shrinkwrapped modules
BUI.Inventory.Class = ZO_GamepadInventory:Subclass()
local NEW_ICON_TEXTURE = "EsoUI/Art/Miscellaneous/Gamepad/gp_icon_new.dds"
local CATEGORY_ITEM... |
-- luacheck: std max+busted
describe("Primitives", function()
local G2D, G2D12
setup(function()
G2D = require"geometry2d"
G2D12 = G2D:new(1, 2, 1)
end)
test("dot", function()
assert.equal(1, G2D12:dot(0, 1, 0, 1))
assert.equal(0, G2D12:dot(0, 1, 1, 0))
assert.equal(2, G2D12:dot(1, 1, 1, 1... |
function Initialize()
-- Get info from Skin
measureOriginalWidth = SKIN:GetMeasure('MeasureOriginalWidth')
measureOriginalHeight = SKIN:GetMeasure('MeasureOriginalHeight')
sizeOfSquare = SELF:GetOption('SizeOfSquare')
end -- function Initialize
function Update()
-- TODO Allow Height Customization
newWidt... |
PLoop(function()
namespace "KittyBox.Layout"
import "KittyBox.Layout"
class "FrameLayout"(function()
inherit "ViewGroup"
__Sealed__()
struct "LayoutParams"(function()
__base = KittyBox.Layout.LayoutParams
-- The gravity to apply with the View to w... |
-- package with minimal resources size
wpkconf = {
-- result package name
label = "hms-tiny",
-- list of skins IDs, see 'id' tags of 'skinlist' in 'resmodel.json' file
skinset = {
"daylight", "blue", "dark",
},
-- list of icons collections IDs, see 'id' tags of 'iconlist' in 'resmodel.json' file
iconset = {
... |
local ReactFiberCompleteWork = require "ReactFiberCompleteWork"
local pi = require "pi"
pi(ReactFiberCompleteWork) |
--- Premake 5 Glasslight Ninja generator.
--- Mykola Konyk, 2021
local p = premake
local tree = p.tree
local ninja = p.modules.ninja
ninja.rules = {}
local m = ninja.rules
function m.build_command_cc_cxx(toolset, cfg, exe)
local result = ""
if toolset.getname() == "msc" then
result = "$out.d /showInc... |
function start (song)
end
function onBeatHit()
bounce = true
end |
music = "fortress.ogg"
exceptions = {
{ 5, 7 },
}
function start()
up = Portal:new{x=5, y=7}
chest = Chest:new{x=10, y=5, anim_set="chest", milestone=MS_FORT_UNDER_CHEST_2, index=ITEM_CURE3}
end
function stop()
end
function update(step)
if (up:update()) then
change_areas("fort_start", 60, 42, DIRECTION_SOUTH)... |
local M = {}
local NIL = vim.NIL
--@private
local recursive_convert_NIL
recursive_convert_NIL = function(v, tbl_processed)
if v == NIL then
return nil
elseif not tbl_processed[v] and type(v) == 'table' then
tbl_processed[v] = true
return vim.tbl_map(function(x)
return recursive_convert_NIL(x, t... |
object_building_kashyyyk_poi_kash_rryatt_bridge_sm_mid_s03 = object_building_kashyyyk_shared_poi_kash_rryatt_bridge_sm_mid_s03:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_bridge_sm_mid_s03, "object/building/kashyyyk/poi_kash_rryatt_bridge_sm_mid_s03.iff")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.