content stringlengths 5 1.05M |
|---|
object_static_particle_pt_poi_broken_electronics_no_wind = object_static_particle_shared_pt_poi_broken_electronics_no_wind:new {
}
ObjectTemplates:addTemplate(object_static_particle_pt_poi_broken_electronics_no_wind, "object/static/particle/pt_poi_broken_electronics_no_wind.iff")
|
cc = cc or {}
---FlipY3D object
---@class FlipY3D : FlipX3D
local FlipY3D = {}
cc.FlipY3D = FlipY3D
--------------------------------
---brief Create the action with duration.<br>
---param duration Specify the duration of the FlipY3D action. It's a value in seconds.<br>
---return If the creation success, return a point... |
local foo = {}
foo.name = "foo"
foo.path = "/foo"
foo.layout = "foo.layout"
foo.before_filter = function(self)
-- do something before all routes in this app
end
foo.routes = {
[{ index = "/index" }] = {
before = function(self)
-- do something before this route
end,
GET = require("actions.foo.in... |
TreeviewClass={}
TreeviewClass.__index = TreeviewClass
TreeviewCount = 0;
TreeviewUpdateFlag=false;
TreeviewFolderClass={}
TreeviewFolderClass.__index = TreeviewFolderClass
TreeviewFolderCount = 0;
dofile(chinTreeViewDir.."chin_treeview_00_constrdestr.lua")
dofile(chinTreeViewDir.."chin_treeview_01_functions.lua")
... |
local a = ...
return {
include = function()
includedirs "../vendor/mbedtls/include/"
end,
run = function()
language "C"
kind "StaticLib"
defines {
"NATIVE_LITTLE_ENDIAN",
"MBEDTLS_HAVEGE_C"
}
if a then
staticruntime 'On'
end
files_project "../vendor/mbedtls/" {
"library/**.c"
... |
local M = {}
function M.common()
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
return capabilities
end
---Make capabilities and return them
---@param with_snippets boolean
---@param use_cmp boolean
---@return table
functi... |
local meropisLocations = Harmony.ui.side.top.addButton("walkToMeropis", "Meropis")
Harmony.ui.side.top.addChild(meropisLocations, "wildToSapience", "To Sapience", "mmp.gotoRoom", 1226) |
--
--
-- ----------------------------------------------------------
-- Mosaic | OF Visual Patching Developer Platform
--
-- Copyright (c) 2019 Emanuele Mazza aka n3m3da
--
-- Mosaic is distributed under the MIT License. This gives everyone the
-- freedoms to use Mosaic in any context: commercial or non-commercial,
-- ... |
passengerSpeach = {
"To trAIn or not to trAIn, that is the question.",
"I really like Gokarts 2 - ah, wait, wrong game.",
"What idiot programmed these trAIns? They're slow as hell...",
"Those trAIn rides make me sick...",
"Dentist appointment, so, uhm... take your time. No rush. Really.",
"Bazinga!",
"Just a ano... |
env = require('test_run')
net_box = require('net.box')
fiber = require('fiber')
test_run = env.new()
test_run:cmd("create server test with script=\
'box/gh-5645-several-iproto-threads.lua'")
test_run:cmd("setopt delimiter ';'")
function iproto_call(server_addr, fibers_count, call_count)
local fibers ... |
ITEM.name ="CS-1"
ITEM.model ="models/stalker/outfit/cs_light.mdl"
ITEM.replacements ="models/nasca/stalker/male_cs1a.mdl"
ITEM.description="A CS-1 suit."
ITEM.longdesc = "A pair of jeans, a rain jacket and a kevlar vest with lots of pouches. Another type of stalker 'uniform', made from off-the-shelf products. This one... |
--
-- 项目: hsgame
-- 作者: andy
-- 日期: 2017/2/7 13:46
-- 描述:
--
local M = {
-- redis配置
redisConfig = {
host = '10.10.2.63',
port = 6379,
db = 2,
}
}
return M |
local lang = require 'language'
local config = require 'config'
local library = require 'core.library'
local buildGlobal = require 'vm.global'
local DiagnosticSeverity = require 'constant.DiagnosticSeverity'
local DiagnosticDefaultSeverity = require 'constant.DiagnosticDefaultSeverity'
local mt = {}
mt.__index = mt
f... |
local function Connect()
Logger:Info("Connecting to websocket")
local Response, Read, Write = require("coro-websocket").connect(
{
host = Config.WebClient.Host,
port = Config.WebClient.Port,
pathname = Config.WebClient.PathName,
tls = Config.WebClient.TLS... |
#!/usr/bin/lua
-- Remove given session
local dirname = string.gsub(arg[0], "(.*)/(.*)", "%1");
package.path = package.path .. ";" .. dirname .. "/../vendor/?.lua;" .. dirname .. "/../backend/?.lua";
-- bootstrap application (to have database), but not run
require "application".bootstrap(dirname .. "/../backend");
lo... |
--[[
GUI: Lista aktualizacji online
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-gui
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local sx, sy = guiGetScreenSize()
local text = nil
local ts_lc = ge... |
local assets=
{
Asset("ANIM", "anim/axe.zip"),
Asset("ANIM", "anim/goldenaxe.zip"),
Asset("ANIM", "anim/swap_axe.zip"),
Asset("ANIM", "anim/swap_goldenaxe.zip"),
}
local function onfinished(inst)
inst:Remove()
end
local function giveitems(inst, data)
if data.owner.components.inventory and data.recipe then... |
--
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
-- The master list of built-in scripts. Order is important! If you want to
-- build a new script into Premake, add it to this list.
return
{
-- core files
"../lua/base/os.lua",... |
local setmetatable = setmetatable
local ipairs = ipairs
local pairs = pairs
local Maze = {
directions = {
north = {
x = 0,
y = -1,
},
east = {
x = 1,
y = 0,
},
south = {
x = 0,
y = 1,
},
west = {
x = -1,
y = 0,
},
},
}
function Maze:new(width, height, closed, obj)
obj = obj ... |
ITEM.name = "Stew"
ITEM.model = "models/props_c17/metalPot001a.mdl"
ITEM.hungerAmount = 100
ITEM.mustCooked = true
ITEM.foodDesc = "stewDesc"
ITEM.quantity = 8
ITEM.width = 2
ITEM.price = 300
ITEM.height = 2
ITEM.staminaAmount = 15 |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
local htmlEntities = module("vrp", "lib/htmlEntities")
vRPhk = {}
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vrp_hotkeys")
HKclient = Tunnel.getInterface("vrp_hotkeys","vrp_hotkeys")
Tunnel.bindInterface("vrp... |
local redis = require 'resty.redis'
local json = require 'cjson'
local ngx_log = ngx.log
local ngx_now = ngx.now
local ngx_ERR = ngx.ERR
local json_encode = json.encode
local json_decode = json.decode
local HOSTNAME = '127.0.0.1'
local PORT = 6379
local MAX_IDLE_TIME = 10000
local POOL_SIZE = 500
local TIMEOUT = 1000... |
--[[ ============================================================================================================
Author: Rook
Date: February 3, 2015
A helper method that switches the keys.ability item to one with the inputted name.
====================================================================================... |
-- Author: philh30
--
-- Copyright 2021 SmartThings
--
-- 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 applicabl... |
local labelColor = {}
_guiLabelSetColor = guiLabelSetColor
function guiLabelSetColor ( label, ... )
if not isElement ( label ) or getElementType ( label ) ~= "gui-label" then
return false
end
local c = {...}
for i=1,3 do
c[i] = type ( c[i] ) == "number" and ( ( c[i] <= 25... |
--== Misc Jua Hooks ==--
local await = jua.await
local lightVal = false
local redstoneTimer = 0
local updateTimer = 0
local intervalInc = math.min(config.redstoneInterval or 5, config.updateInterval or 30)
jua.setInterval(function()
redstoneTimer = redstoneTimer + intervalInc
updateTimer = updateTimer + intervalI... |
--
-- Handle aiming
--
local crosshair = {
x = 160,
y = 120,
dx = 160,
dy = 120,
vx = 0,
vy = 0,
ax = 0,
ay = 0,
drunk = 0, -- in [0, 1)
}
function crosshair.load()
crosshair.aimimg = love.graphics.newImage("assets/crosshair.png")
crosshair.reloadimg = love.graphics.newImag... |
local serverMatchType = "squad"
local matchesList = {}
local matchCounter = 0
function setServerMatchType(matchType)
if matchType and matchType == "solo" or matchType == "squad" then
serverMatchType = matchType
exports.pb_lobby:updateAllLobbies()
return true
else
return false
... |
CLASS.name = "Supply Dealer"
CLASS.faction = FACTION_CITIZEN
CLASS.salary = 210
CLASS.limit = 2
CLASS.color = Color(160, 100, 30)
CLASS.business = {
-- Storages
["bagsmall"] = 1,
-- Communication
["radio"] = 1,
["pager"] = 1,
-- Misc
["spraycan"] = 1,
-- Outfit
["endbook"] = 1,
["gunskillbook"] = 1,
[... |
object_tangible_theme_park_nym_hatch_to_stronghold = object_tangible_theme_park_nym_shared_hatch_to_stronghold:new {
}
ObjectTemplates:addTemplate(object_tangible_theme_park_nym_hatch_to_stronghold, "object/tangible/theme_park/nym/hatch_to_stronghold.iff")
|
local config = require('yasm.config')
local yasm = require('yasm.yasm')
local M = {
setup = config.setup,
save_session = yasm.save_prompt,
delete_session = yasm.delete_session
}
return M
|
function nut.item.instance(index, uniqueID, itemData, x, y, callback)
-- New overload: nut.item.instance(itemType, itemData = {})
-- which returns a promise that resolves to the item instance
if (
isstring(index) and
(istable(uniqueID) or (itemData == nil and x == nil))
) then
itemData = uniqueID
uniqueID =... |
--[[!
Establece el valor de una variable de configuración en una cuenta
Esta configuración se guardará en la cuenta de un usuario, y por tanto, no será
accesible directamente por el cliente.
@param account Es una cuenta donde se guardará la variable de configuración.
@param configDataName Es el nombre de la vari... |
-----------------------------------
-- Shijin Spiral
-- Hand-to-Hand weapon skill
-- Skill Level: N/A
-- Delivers a fivefold attack that Plagues the target. Chance of inflicting Plague varies with TP.
-- In order to obtain Shijin Spiral, the quest Martial Mastery must be completed.
-- Aligned with the Flame Gorget, Lig... |
slot0 = class("MonopolyCarPage", import("....base.BaseActivityPage"))
slot0.ON_START = "MonopolyGame:ON_START"
slot0.ON_MOVE = "MonopolyGame:ON_MOVE"
slot0.ON_TRIGGER = "MonopolyGame:ON_TRIGGER"
slot0.ON_AWARD = "MonopolyGame:ON_AWARD"
slot0.OnInit = function (slot0)
slot0:bind(MonopolyCarPage.ON_START, function (slo... |
package.path = [[../../Lua/Common/?.lua;../../Lua/?.lua]]
local sprotoparser = require "sprotoparser"
local param = {...}
local proto_c2s_tb = {}
local proto_s2c_tb = {}
for k,v in pairs(param or {}) do
local proto_str = require("Proto/"..v)
if proto_str[1] then
table.insert(proto_c2s_tb, proto_str[1])
... |
---@class CS.FairyEditor.BinPack.BinarySearch
---@field public min number
---@field public max number
---@field public fuzziness number
---@field public low number
---@field public high number
---@field public current number
---@field public pot boolean
---@field public mof boolean
---@type CS.FairyEditor.BinPack.Bina... |
-- Builds project files for the sample for either DX11 or DX12.
newoption {
trigger = "gfxapi",
value = "API",
description = "Choose a particular 3D API for rendering",
allowed = {
{ "d3d11", "D3D11" },
{ "d3d12", "D3D12" }
}
}
if not _OPTIONS["gfxapi"] then
_OPTIO... |
describe("Ethernet class", function()
local pkt = require "packet"
local ffi = require "ffi"
it("should set", function()
local raw = ffi.new("struct ethernet_header")
local set = ffi.new("struct ethernet_header")
raw.dst:setString("90:e2:ba:35:b5:81")
set:setDstString("90:e2:ba:35:b5:81")
for i = 0, 5 d... |
--[[
Name: "cl_directory.lua".
Product: "nexus".
--]]
local PANEL = {};
-- Called when the panel is initialized.
function PANEL:Init()
self:SetSize( nexus.menu.GetWidth(), nexus.menu.GetHeight() );
self:SetTitle( nexus.schema.GetOption("name_directory") );
self:SetSizable(false);
self:SetDraggable(false);
self:S... |
local colors = {
black = '#17191e',
bg0 = '#293329',
bg1 = '#435643',
bg2 = '#3a4b3a',
bg3 = '#313f31',
bg_d = '#1f281f',
bg_green = '#738f54',
bg_yellow = '#ebd09c',
fg = '#c5cac5',
purple = '#c08da4',
green = '#a4cc78',
... |
-- Norbunny
-- November 1, 2020
--[[
Message.new(content: string) - Creates a new message
Message.addEmbed(embed: RichEmbed) - Attaches a RichEmbed to the message
]]
local Message = {}
Message.ClassName = "Message"
Message.__index = Message
function Message.new(content)
assert(content, "Content can... |
---@class Activity
---@field client Client
---@field parent Container|Client
---@field applicationId string|nil
---@field details string|nil
---@field emojiHash string|nil
---@field emojiId SnowflakeId|nil
---@field emojiName string|nil
---@field emojiURL string|nil
---@field imageLarge string|nil
---@field imageSmall ... |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Door : Wooden Shutter
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(5);
... |
local lspconfig = require('lspconfig')
local completion = require('completion')
local on_attach_callback = function(_, bufnr)
completion.on_attach()
local opts = { noremap = true }
Keybind.b({
{ bufnr, 'n', '<leader>a', '<Cmd>lua vim.lsp.buf.code_action()<CR>', opts },
{ bufnr, 'n', '<lea... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Fuel Tank"
ENT.Spawnable = true
ENT.Category = "Bitminers 2 Extras"
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
function ENT:SetupDataTables()
self:NetworkVar( "Bool", 3, "ShowNoFuelWarning")
self:NetworkVar("Int",0, "FuelLevel")
end |
function CreateText()
-- Construct new Text object
local helloText = Text:new()
-- Set String to display
helloText.text = "Hello, World!"
-- Set font and text color
helloText:SetFont(cache:GetResource("Font", "Fonts/Anonymous Pro.ttf"), 30)
helloText.color = Color(0.0, 1.0, 0.0)
-- Al... |
-----------------------------------
-- Area: Pso'Xja
-- NPC: _i96 (Stone Gate)
-- Notes: Red Bracelet Door
-- !pos -310.000 -1.925 -238.399 9
-----------------------------------
local ID = require("scripts/zones/PsoXja/IDs");
require("scripts/globals/keyitems");
-----------------------------------
function onTrade(pl... |
clang_msvc_flags =
{
"/wd4146", "/wd4244", "/wd4800", "/wd4345",
"/wd4355", "/wd4996", "/wd4624", "/wd4291",
"/wd4251"
}
if not (string.starts(action, "vs") and not os.is_windows()) then
project "CppSharp.CppParser"
kind "SharedLib"
language "C++"
SetupNativeProject()
flags { common_flags }
flags {... |
-- Check request method
if ngx.req.get_method() ~= "POST" then
ngx.status = ngx.HTTP_NOT_ALLOWED
ngx.say("Method not allowed")
return
end
-- Get form data
local args, err = ngx.req.get_post_args()
if not args or (args.email == nil) then
ngx.status = ngx.HTTP_BAD_REQUEST
ngx.say("Bad request")
r... |
local current
local amount = tonumber(ARGV[2])
current = redis.call("incrby", KEYS[1], amount)
if tonumber(current) == amount then
redis.call("expire", KEYS[1], ARGV[1])
end
return current
|
-- The MIT License (MIT)
-- Copyright (c) 2016 Ruairidh Carmichael - ruairidhcarmichael@live.co.uk
-- 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 ... |
--------------------------------------------------------------------------------
--! @file TppSystemUtility.lua
--! @brief システム関連のユーティリティ Lua 関数群
--!
--------------------------------------------------------------------------------
-- パックデータに含めるためにパッドデータ関連は
-- /Assets/tpp/level_asset/chara/player/TppPlayerPadConfig... |
local base = require('xe.input.Base')
---@class xe.input.Parameter:xe.input.Base
local M = class('xe.input.Parameter', base)
local im = imgui
local wi = require('imgui.Widget')
local _def_node_type = {
enemydefine = true,
bulletdefine = true,
objectdefine = true,
laserdefine = true,
la... |
---
-- move_action.lua
local class = require "middleclass"
local MoveAction = class("MoveAction")
function MoveAction:initialize(data)
self.unit = data.unit
self.path = data.path
self.game_data = data.game_data
self.stop = false
self.index = 1
self.target = nil
self.index, self.target ... |
function love.conf(t)
t.window.title = "Lovebpm Demo"
t.window.width = 500
t.window.height = 500
end
|
-- Italian
kText_Easy = "Facile"
kText_Medium = "Medio"
kText_Hard = "Duro"
kText_Extreme = "Estremo"
kText_Locked = "BLOCCATO"
kText_Coins = "Monete"
kText_ThankYou = "X Grazie X"
kText_GameOver = "Game Over"
kText_Recover = "Annulla l'ultima mossa (3 monete)"
kText_HowToPlay = "? Come si gioca ?"
kText_Quit = "Smet... |
----------------------------------------------------------------------------------------------------
-- Script: jp.lua
-- Description: Joypad test. Execute externally built asm program that reads joypad input, waiting
-- for a particular input sequence. Requires user interaction.
-------------------... |
local soundTable = {
shootSound = audio.loadSound( "shoot.wav" ),
hitSound = audio.loadSound( "hit.wav" ),
explodeSound = audio.loadSound( "explode.wav" ),
game = audio.loadSound("Game.mp3"),
}
return soundTable;
|
local awful = require("awful")
local hotkeys_popup = require("awful.hotkeys_popup")
awful.keyboard.append_global_keybindings({
awful.key {
modifiers = { modkey },
key = "s",
group = "awesome",
description = "Show help",
on_press = hotkeys_popup.show_help,
},
awful.ke... |
print( "load luaAdapter.lua" )
luaAdapter = {
luaAdapterToken = "lcx looking for you"
}
function luaAdapter_lua_getNamespaceTable( nameOfNamespace )
return luaAdapter[nameOfNamespace]
end
function luaAdapter_lua_getClassTable( nameOfNamespace, className)
local namespaceTable = luaAdapter_lua_getNamespaceTable( n... |
function func(a, b)
print(a + b)
end |
-- implement a date type using embedded C
C__decl [[
typedef struct {
unsigned char d;
unsigned char m;
short y;
int serial;
} Date;
]]
DateFunctions = {}
function DateFunctions.make_date(d: integer, m: integer, y: integer)
local date = C__new('Date', 1)
C__unsafe(date, d, m, y) [[
Da... |
local loadedChunks = {}
local prevDimension = 0
function loadChunk(id)
loadedChunks[id] = true
triggerServerEvent("onPlayerRequireChunk", resourceRoot, id)
end
function unloadChunk(id)
if not loadedChunks[id] then
return
end
loadedChunks[id] = nil
end
function updateChunks()
if localP... |
local AddonName, AddonTable = ...
AddonTable.reputation = {
146936, -- Dreamweaver Insignia
146938, -- Highmountain Tribe Insignia
146949, -- Legionfall Insignia
}
|
-- --This script is not redis cluster compatible as it uses dynamic keys at runtime which are renamed apart from KEYS passed in.
local keyPrepend = ARGV[8]
local pendingSetsKey = keyPrepend .. KEYS[1]
local metaLastSetTimeKey = keyPrepend .. KEYS[2]
local metaCountKey = keyPrepend .. KEYS[3]
local metaBytesKey = keyPre... |
instrument { name = "RAVI", overlay = false }
short_cycle = input (7, "Short Cycle", input.integer, 1)
long_cycle = input (65, "Long Cycle", input.integer, 1)
overbought = input (3, "front.overbought", input.double, 0, 100, 1, false)
oversold = input (-3, "front.oversold", input.double, -100, 0, 1, false)
source = i... |
local consul = require "easx.consul"
local utils = require "easx.utils"
local cjson = require('cjson')
local json_decode = cjson.decode
local json_encode = cjson.encode
local exports = {}
function getRouteConsulServiceForSource(source)
return "/catalog/service/" .. consul.service_prefix .. source
end
function t... |
local Players = game:GetService("Players")
local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(currentCharacter)
return {
currentCharacter = currentCharacter,
}
end) |
--------------------------------------------------------------------
--
-- Commande !uptime
--
--------------------------------------------------------------------
-- Est une commande
ScriptType = "command"
-- La commande
CommandString = "uptime"
-- Nombre minimum d'arguments
MinArguments = 0
-- Nombre maximum d'ar... |
appname="AndroLua+"
appver="1.0"
app_key="4yCilmN24RCRG82uc93kSZ1F"
app_channel="github"
packagename="com.androlua"
user_permission={
"INTERNET",
"WRITE_EXTERNAL_STORAGE",
}
|
-- #lua_package_path "/path/to/lua-resty-mysql/lib/?.lua;;";
local _M = {}
function _M.mysqlwhiteip()
local mysql = require "resty.mysql"
local db, err = mysql:new()
if not db then
ngx.say("failed to instantiate mysql: ", err)
return
end
local ok, err, errcode, sqlstate = db:connec... |
MapRoutes.registerModdedMapRoute(OrderType.AutoTrader, {
orderDescriptionFunction = "autoTraderDescription",
pixelIcon = "data/textures/icons/pixel/autoTrader.png",
});
function MapRoutes.autoTraderDescription(order, i, line)
line.ltext = "[${i}] AutoTrader"%_t % {i = i}
end
callable(MapRoutes, "autoTrader... |
return {
id1 = 6,
id2 = 11,
id3 = "ab6",
num = 6,
desc = "desc6",
} |
local QuietPrep_EventFrame = CreateFrame("Frame")
QuietPrep_EventFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
QuietPrep_EventFrame:RegisterEvent("ARENA_OPPONENT_UPDATE")
QuietPrep_EventFrame:SetScript("OnEvent", QuietPrep_EventHandler)
local QuietPrep_SoundFXToggled = QuietPrep_SoundFXToggled
local function QuietPre... |
--[[
Name: "cl_storage.lua".
Product: "kuroScript".
--]]
kuroScript.storage = {};
-- A function to get whether storage is open.
function kuroScript.storage.IsStorageOpen()
local panel = kuroScript.storage.GetPanel();
-- Check if a statement is true.
if (panel and panel:IsValid() ) then
return true;
end;
end;
... |
local FarOutManFixSkillTypes = {
Cone = "Range",
Zone = "Range",
}
---@param character EclCharacter
---@param skill string
---@param tooltip TooltipData
function TooltipHandler.OnSkillTooltip(character, skill, tooltip)
if Vars.DebugMode and skill == "ActionSkillFlee" then
tooltip:MarkDirty()
if tooltip:IsExpan... |
--[[
Fire an event that messages have been checked.
]]
-- Mailbox that was checked.
mailbox = storage("login_settings", "mailbox_number")
-- Get message count, supplied to the fired event.
message_count = storage("data", "message_new_count")
return
{
{
action = "call_sequence",
sequence = "sub:get_messag... |
object_building_general_shiparm = object_building_general_shared_shiparm:new {
}
ObjectTemplates:addTemplate(object_building_general_shiparm, "object/building/general/shiparm.iff")
|
-- LOOK AT ME NOW !
fx_version 'bodacious'
game 'gta5'
server_script '@mysql-async/lib/MySQL.lua'
server_script 'server.lua'
client_script 'client.lua'
|
local K, C = unpack(select(2,...))
-- Sourced: NDui (siweia)
-- Edited: KkthnxUI (Kkthnx)
local _G = _G
local string_split = _G.string.split
local pairs = _G.pairs
local CreateFrame = _G.CreateFrame
local UIParent = _G.UIParent
local CLOSE = _G.CLOSE
-- Starting words used in changelog.
-- Updated, Fixed, Added, Re... |
-----------------------------------------------------------------------------------------
-- Conway's Game of Life
--
-- main.lua
--
-- author: Luca Anzalone (05/04/2018)
-----------------------------------------------------------------------------------------
local Grid = require "class.grid"
-----------------... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
leather_head_db = {
id0 = {
source = "A Baying of Gnolls",
drop_rate = "quest",
name = "Shadowsong Vengeance Cowl",
category_territory = "",
territory = "War Zone",
id = "0",
expansion = "",
location = "Redridge Mountains"
},
id1 = {
source = "Ivus the Decayed",
drop_rate = "Unknown",
name = "W... |
local M = [[
error_a 0x10000 {
.cmd:integer 1
.errno:integer 2
}
auth_r 0x11000 {
.account:string 1
.passwd:string 2
.server:integer 3
.uid_:uinteger 4
}
auth_a 0x11001 {
.uid:uinteger 1
.gate:string 2
.token:integer 3
}
login_r 0x1102 {
.uid:uinteger 1
.token:integer 2
.uid_:uinteger 3
... |
local Perlin = {}
math.randomseed(os.time())
local Types = require(game.ReplicatedStorage.Common.Types)
Perlin.Seed = math.random(0, 10000000)
function Perlin:CreateNoise(x: number, y: number, z: number, Amp: number, Scale: number, Seed: number?): Types.BlockNoise
if Seed then
self.Seed = Seed
end
... |
Mission = Mission or {}
--- A mission that the player can accept.
--- It is supposed to be used for side missions that ships can give you.
--- @param self
--- @param mission Mission
--- @param title string the title of this mission
--- @param config table
--- @field description string the description of the mission
... |
local stepheightvalue = 33;
local stepwidthvalue = 33;
local stepicononvalue = "progresstracker_on";
local stepiconoffvalue = "progresstracker_off";
local stepfontnamevalue = "sheetlabelinline";
local stepcountmaxvalue = 10;
local iconnamevalue = "button_openwindow2";
local dragging = false;
local sourcenod... |
Item = Base:new({ item = SimpleString:new() })
function Item:getItem()
return self.item._value
end
function Item:setItem(item)
self.item._value = item
end
|
local Panel = {}
function Panel:BuildList()
self.m_tblList = {}
self.m_intCurSelection = 0
self.m_tblCurBodyGroups = {}
local jobPath = GAMEMODE.Jobs:GetPlayerJob(LocalPlayer()):GetPlayerModel(LocalPlayer())
local jobModel = ClientsideModel( jobPath )
if jobModel:SkinCount() > 1 then
for i = 0, jobModel:SkinCou... |
--- Plugin loader extension.
-- This module is intended to be loaded directly by the glirc
-- Lua extension.
--
-- extensions:
-- * path: "glirc-lua.bundle"
-- args: [ "extension.lua", "Plugin1", "Plugin1" ]
--
-- @module extension
-- Penlight
local app = require 'pl.app'
local strict = require 'pl.strict'
... |
-- resty.aws
local cjson = require 'cjson'
local resty_hmac = require 'resty.hmac'
local resty_sha256 = require 'resty.sha256'
local str = require 'resty.string'
local ordered_pairs = require 'resty.ordered_pairs'
local _M = { _VERSION = '0.1.0' }
local function get_credentials ()
local access_key = os.getenv('AWS_... |
return function()
return {
name = "wisker",
func = function(event, dt)
DETECTIONS = event
end
}
end
|
local controls = {}
local l = require('lume')
controls.readTilt = function() return 0, 0, 0 end -- stub
controls.frozen = false -- ability to freeze tilt reading
local tiltP = {0,0,0}
local activeTouches = {}
function controls.load()
-- finding accelerometer
local joysticks = love.joystick.getJoysticks()
fo... |
#!/usr/bin/env lua
--- A simple LuaRocks mock-server for testing.
local restserver = require("restserver")
local server = restserver:new():port(8080)
server:add_resource("api/tool_version", {
{
method = "GET",
path = "/",
produces = "application/json",
handler = function(query)
loc... |
local fs = require('fs')
local timer = require('timer')
local mysql = require("mysql/mysql")
local boundary = require('boundary')
local __pgk = "BOUNDARY MYSQL"
function berror(err)
if err then print(string.format("%s ERROR: %s", __pgk, tostring(err))) return err end
end
-- get the natural difference ... |
local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function map(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
option('omnifunc', 'v:lua.vim.lsp.omnifunc')
local opts = { noremap=true,silent=true }
map('n... |
for _, a in {"PARTY_INVITE", "CONFIRM_SUMMON"} do
StaticPopupDialogs[a].hideOnEscape = nil
end |
--[[
Copyright © Lili, 2019-2020
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... |
local mod = LazarusMod
local logger = mod:GetModule('logger')
local techHandler = mod:GetModule('techhandler')
local function CreateHook(functionName, nodeName, oldFunction, toChangeGetter, toRemoveGetter)
local tempFunc = function(self, ...)
local args = {...}
local techId = args[1]
local ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.