content stringlengths 5 1.05M |
|---|
local GUIComponent = require("gui.GUIComponent")
local Dialog = class("Dialog", GUIComponent)
Dialog.static.CHAR_WAIT = 0.05
Dialog.static.LINE_WAIT = 0.5
function Dialog:initialize(lines, fun)
GUIComponent.initialize(self)
self.font = Resources.getImageFont("small.png")
self.fun = fun
self.lines = lines
self... |
local jsondata = [[
{
"cached": 0,
"data": {
"activityGroup": {
"listInfo": [
{
"backgroundColor": "",
"bannerId": "22278016",
"image": "http://h.hiphotos.baidu.com/nuomi/pic/item/b2de9c82d158ccbf9ba22bc71ed8bc3eb135... |
describe( 'Creature template spec', function()
local FILE_PATH = 'res/data/creatures/bodies/';
local function getDirectoryItems( dir )
local i, t = 0, {};
local pfile = io.popen( 'ls "'..dir..'"' );
for filename in pfile:lines() do
local fn, fe = filename:match( '^(.+)%.(.... |
-- Transliteration for Bengali
local export = {}
local gsub = mw.ustring.gsub
local match = mw.ustring.match
local conv = {
-- consonants
['ক্ষ'] = 'kkh', ['জ্ঞ'] = 'gg',
['ক'] = 'k', ['খ'] = 'kh', ['গ'] = 'g', ['ঘ'] = 'gh', ['ঙ'] = 'ṅ',
['চ'] = 'c', ['ছ'] = 'ch', ['জ'] = 'j', ['ঝ'] = 'jh', ['ঞ'] = 'ñ',
['ট'] =... |
local ngx_re_split = require "ngx.re".split
local influxdb_query = require "models.influxdb".query
local table_concat = table.concat
local _M = {}
_M.name = "example_cdn_bandwdith"
_M._VERSION = "0.1"
-- 用于判断请求查询的数据是否跨了多个月份,
-- 如果跨了月份,就将使用1h粒度的数据表(measurement).
local span_months = function(args)
local timesta... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Rodux = require(Modules.Packages.Rodux)
local SetBodyColors = require(Modules.AvatarExperience.AvatarEditor.Actions.SetBodyColors)
local ReceivedAvatarData = require(Modules.AvatarExperience.AvatarEditor.Actions.ReceivedA... |
--- === cp.apple.finalcutpro.viewer.ControlBar ===
---
--- Represents the bottom "control" bar on a [Viewer](cp.apple.finalcutpro.viewer.Viewer.md)
--- which contains the play/pause button, timecode, audio meters, etc.
local log = require "hs.logger" .new "ViewerCB"
local canvas = require "hs... |
return {
{
effect_list = {
{
type = "BattleBuffHP",
trigger = {
"onAttach",
"onStack"
},
arg_list = {
casterMaxHPRatio = 150
}
}
}
},
{
effect_list = {
{
type = "BattleBuffHP",
trigger = {
"onAttach",
"onStack"
},
arg_list = {
casterMax... |
local uv = vim.loop
local setup = require 'metals.setup'
local messages = require 'metals.messages'
local health_start = vim.fn['health#report_start']
local health_ok = vim.fn['health#report_ok']
local health_info = vim.fn['health#report_info']
local health_error = vim.fn['health#report_error']
local M = {}
M.checkH... |
-- @Author: tkx
-- @Date: 2017-02-14 09:08:23
-- @Last Modified by: tkx
-- @Last Modified time: 2017-02-14 10:20:32
package.path = "./lualib/?.lua;./service/?.lua;./test/?.lua;./examples/?.lua;./tgateserver/?.lua;./log/?.lua"
local skynet = require "skynet"
local gateserver = require "tgateserver"
local netpack = ... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
local PANEL = {}
function PANEL:Init()
self.stagePanels = {}
self.drawHeader = true
self:SetTitle("");
self:ShowCloseButton( false )
end
function PANEL:DrawHeader()
self.header = self:Add("DP... |
--function start()
component = require("component")
term = require("term")
modem = component.modem
event = require("event")
ip = 8887
--[[
local arg = {...}
if not arg[1] then
print("Connent to which ip?")
ip = io.read("*n")
else ip = tonumber(arg[1]) end
]]
m = modem.broadcast
modem.open(ip)
term.clear()
prin... |
local meta = FindMetaTable('Player')
if not meta then
error('Whoops! Couldn\'t find the Player meta table!')
end
if not file.Exists('ttt_pointshop_roles', 'DATA') then
file.CreateDir('ttt_pointshop_roles')
end
local function load_player(ply)
local fi = file.Read('ttt_pointshop_roles/' .. ply:SteamID64() ... |
function eventKeyboard(name, key, down, x, y)
if key == keys.SPACE or key == keys.DOWN then
Player.players[name]:shoot(x, y)
elseif key == keys.LEFT then
Player.players[name].stance = -1
elseif key == keys.RIGHT then
Player.players[name].stance = 1
elseif key == keys.LETTER_H then
displayHelp(name)... |
object_tangible_tcg_series7_garage_display_vehicles_tcg_8_air_speeder = object_tangible_tcg_series7_garage_display_vehicles_shared_tcg_8_air_speeder:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_tcg_8_air_speeder, "object/tangible/tcg/series7/garage_display_vehicles/tcg_8_air... |
--===========================================================================--
-- --
-- System.IO.StringReader --
-- --
... |
-- ===========================================================================
-- View list of slots representing districts that can house great works.
--
-- Original Author: Sam Batista
-- ===========================================================================
include("InstanceManager");
include("PopupDialog")
inc... |
local smartmove = {}
local c = require("component")
local ic
local sides = require("sides")
local event = require("event")
-- Utility that keeps track of the robot's movements so it knows where it is relative to the starting location.
-- Coordinates have nothing to do with map coordinates, it does not rely on the map ... |
-- emscripten.lua
-- Emscripten/EMCC toolset adapter for Premake
local p = premake
local clang = p.tools.clang
local emcc
-- New configurators.
p.api.register {
name = "installers",
scope = "project",
kind = "table",
tokens = true
}
p.api.register {
name = "assetdirs",
scope = "project",
kind = "list:string",... |
-- utils.lua
M = {}
-- need a map method to handle the different kinds of key maps
M.map = function(mode, combo, mapping, opts)
local options = {noremap = true}
if opts then
options = vim.tbl_extend('force', options, opts)
end
vim.api.nvim_set_keymap(mode, combo, mapping, options)
end
-- lead... |
ITEM.name = "Чертеж: Нильфгаардский короткий меч"
ITEM.desc = "Здесь что-то написано на нильфгаардском наречии, а также нарисовано и зачёркнуто множество мечей. Один из них, самый удачный, обведен." |
--[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "EditBox", 26
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or... |
function draw()
drawAll(components)
end
|
------------------------------------------------------------
-- Simulation file for the Sample Engine------------------------------------------------------------
------------------------------------------------------------
-- Setup
------------------------------------------------------------
-- Called when the... |
local Serialize = {};
return Serialize;
|
--[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... |
local dt = _en.dt
local Sprite = require"classes.Sprite"
local Mob = {
pos = {0,0};
vel = {0,0};
over = true;
to = 1;
speed = 1;
sight = 1;
}
function Mob.newMob(new, x, y, speed)
local x, y, speed = x or 0, y or 0, speed or 10
new = new or {}
local _ENV = new
pos = pos or {0,... |
local HUDCommons = HUDCommons
local util = util
do
local _class_0
local _base_0 = {
Randomize = function(self)
self.isRandom = true
self.pointerX = 1
self.pointerY = 1
do
local _accum_0 = { }
local _len_0 = 1
for i = 1, self.iterations do
_a... |
--- Cream-Browser API
-- @author David Delassus <david.jose.delassus@gmail.com>
module ("cream")
--- Set/get current browser's state
-- @param ... If given, set the browser's state
-- @return If no parameters are given, return current browser's state
-- @class function
-- @name state.current
--- All available ... |
-- from https://github.com/a-vrma/pandoc-filters/blob/master/src/standard-code.lua
-- via https://github.com/jgm/pandoc/issues/3858
-- Turns <pre class="*"><code> into <pre><code class="language-*".
-- Throws away all attributes, so it should come after any filters that use attributes.
local function escape(s, in_att... |
--------------------------------------------------------------------------
-- Spider the class that handles walking the directory tree. It builds a
-- table called *moduleT* first. This needs more description.
-- @classmod Spider
require("strict")
--------------------------------------------------------------------... |
fx_version 'cerulean'
game 'gta5'
client_scripts {
'clside.lua',
'cfg.lua'
} |
object_draft_schematic_space_shields_shared_elite_shields = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/shields/shared_elite_shields.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_shields_shared_elite_shields, "object/draft_schematic/space/shi... |
require "luarocks.loader"
local lyaml = require "lyaml"
local datafile = require("datafile")
local inspect = require('inspect')
local function read_file(path)
local file = io.open(path, "rb") -- r read mode and b binary mode
if not file then return nil end
local content = file:read "*a" -- *a or *all reads the ... |
modifier_rune_hill_super_sight = class(ModifierBaseClass)
function modifier_rune_hill_super_sight:IsHidden()
return false
end
function modifier_rune_hill_super_sight:IsPurgable()
return false
end
function modifier_rune_hill_super_sight:GetEffectName()
return "particles/econ/courier/courier_greevil_white/couri... |
LibRoot.PFold = SrcDir() .. "r0.platform/pfold"
-- ==============================================================================
ModuleRefInclude["pfold"] = function()
sysincludedirs
{
LibRoot.PFold,
}
end
-- ==============================================================================
project ... |
local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local Module = E:GetModule("AuraWatch")
if not Module then return; end
-- copy from ShestakUI's filger at 2018-10-07 by eui.cc
Module.Default = {
["DEATHKNIGHT"] = {
{
Name = "玩家增益",
Direction = "RIGHT... |
for i = 1, 10 do
io.write(i)
if i == 10 then break end
io.write", "
end
|
--[[---------------------------------------------------------
Name: Setup
-----------------------------------------------------------]]
ENT.Type = 'anim'
ENT.Base = 'base_gmodentity'
ENT.PrintName = 'FG Printer - Base'
ENT.Author = 'TheCodingBeast'
ENT.Spawnable = false
ENT.AdminSpawnable = false
--[[----... |
require("test_lib.strict")
--[[
tableToString: An example of using format tables to prioritize the order of certain keys.
--]]
local tableToString = require("table_to_string")
-- The table to serialize.
local rooms = {
{
name = "Red room",
location = "North",
boxes = {
{x=0, y=0, w=16, h=16},
{y=144, ... |
local Graphics={}
local FilterGraph=require "filtergraph"
local UI=require "ui"
function Graphics:new(o)
o=o or {}
setmetatable(o,self)
self.__index=self
o.alert_clock_id=nil
o.alert_msg=""
o.dirty=false
o.animation_frame=0
return o
end
function Graphics:update()
self.dirty=true
end
-- alert sho... |
require("Modules/FileIO")
require("Modules/TableFunctions")
local xml = require('Modules/xml2lua')
local handler = require('Modules/xmlhandler/tree')
local lfs = require('lfs')
local parser = xml.parser(handler)
local affixes = {}
local items = {}
local implicits = {}
function generate_affixes()
loc... |
local http_lib = require('luaw_http')
--[[
Luaw allows you to replace it's default MVC/REST request handler with your own custom HTTP
request handler implementation. To override the default HTTP request handler just set Luaw object's
request_handler property to your custom Lua function. This function is passed in a... |
emperors_house_loot_deed = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Emperors Spire Blueprint",
directObjectTemplate = "object/tangible/loot/loot_schematic/emperors_house_loot_schem.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("empero... |
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
local overrides = {
severities = {
error = h.diagnostics.severities["error"],
warning = h.diagnostics.severities["warning"],
note = h.diagnostics.severities["inf... |
local zlib = require "zlib"
-- see https://stackoverflow.com/questions/45216069/lua-how-to-gzip-a-string-gzip-not-zlib-in-memory
-- and https://github.com/brimworks/lua-zlib
local _M = {}
-- input: string
-- output: string compressed with gzip
function _M.compress(uncompressed)
local level = 9
local windowS... |
-- Organizer library
local org = {}
register_unhandled_command(function(...)
local cmds = {...}
for _,v in ipairs(cmds) do
if S{'organizer','organize','org','o'}:contains(v:lower()) then
org.export_set()
return true
end
end
return false
end)
function org.export... |
return {
tag = 'callbacks',
summary = 'Called when a key is pressed.',
description = 'This callback is called when a key is pressed.',
arguments = {
{
name = 'key',
type = 'KeyCode',
description = 'The key that was pressed.'
},
{
name = 'scancode',
type = 'number',
... |
-- test.TbDemoPrimitive
return
{
[3] =
{
x1=false,
x2=1,
x3=2,
x4=3,
x5=4,
x6=5,
x7=6,
s1="hello",
s2={key='/test/key1',text="测试本地化字符串1"},
v2={x=1,y=2},
v3={x=2,y=3,z=4},
v4={x=4,y=5,z=6,w=7},
t1=946742700,
},
[4] =
{
x1=true,
x2=1,
x3=2,
x4=4,
x5=4,
x6=5,
x7=6,
s1="world",
s2={key='/test/ke... |
class "C4Manager"
C4Manager.__type = "C4Manager"
function C4Manager:__init()
self.C4 = {}
Events:Subscribe("WorldNetworkObjectCreate", self, self.WorldNetworkObjectCreate)
Events:Subscribe("WorldNetworkObjectDestroy", self, self.WorldNetworkObjectDestroy)
end
function C4Manager.IsValidWNO(object)
re... |
require '.'
require 'shortcut'
require 'paths'
require 'LSTMLM'
-- require 'RawLM_Dataset'
require 'RawLM_Dataset_Legacy'
local model_utils = require 'model_utils'
local EPOCH_INFO = ''
local lmdata = RawLM_Dataset()
local function getOpts()
local cmd = torch.CmdLine()
cmd:text('====== LSTM Language Model ====... |
function iterate()
pos = Bullet.getPos()
vel = Bullet.getVel()
Bullet.setPos(pos.x + 1 * msElapsed()/100, pos.y + 1 * msElapsed()/100)
end |
local PANEL = {}
function PANEL:Init(uniqueID)
self:SetSize(ScrW() * 0.41, ScrH() * 0.57)
self:MakePopup()
self:Center()
self:SetTitle("")
self:ShowCloseButton(false)
self:SetDraggable(false)
end
vgui.Register("pda_kek1ch", PANEL, "DFrame")
netstream.Hook("pda_kek1ch", function()
pda_kek1ch = vgui.Create("pda_... |
local clusterio_api = require("modules/clusterio/api")
local serialize = require("modules/clusterio/serialize")
local itertools = require("itertools")
local is_transport_belt = {
["transport-belt"] = true,
["fast-transport-belt"] = true,
["express-transport-belt"] = true,
}
local belt_type_to_loader_type = {
["t... |
#!/usr/bin/env lua
------------------------------------------------------------------------------------------
--[[
After creation a table does not have a valid meta table (it is set to nil).
To set a meta table function setmetatable needs to be used explicitly:
--]]
local container_data = {
value = 5;
}
-----------... |
require 'nn'
require 'dp'
require 'cutorch'
require 'sequenceadapter'
require 'cudnn'
require 'msr3daction'
require 'nturgbd'
require 'sbukinect'
require 'berkeleymhad'
require 'hdf5'
require 'rnn'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Test a Recurrent Model')
cmd:text('Example:')
c... |
---
--- input.lua
---
--- Copyright (C) 2018 Xrysnow. All rights reserved.
---
--region 输入控制函数
---当前,手柄输入被映射到0x92和0xFE(共2个手柄、32个按键)的位置上。
---其中,X轴Y轴的位置被映射到前4个按键上,对应上下左右。
---立即更新输入状态
function UpdateInput()
end
---给出虚拟键代码检测是否按下
--- VK_CODE的具体含义请查阅MSDN
---@param vk_code number
---@return boolean
function GetKeySt... |
object_tangible_loot_loot_schematic_armor_appearance_infiltrator_s02_bicep_r = object_tangible_loot_loot_schematic_shared_armor_appearance_infiltrator_s02_bicep_r:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_armor_appearance_infiltrator_s02_bicep_r, "object/tangible/loot/loot_schematic/armor_... |
-- autoicons.lua: Automatically generates/renders weapon select icons and killicons
-- for SWEPs not containing them. Made by swamponions (STEAM_0:0:38422842)
local ReplaceAllConvar = CreateClientConVar("autoicons_replaceall", "1", true, false)
local namejunk = "autoicon" .. tostring(os.time()) .. "_"
local function ... |
-- compatible CUDA
require 'torch'
require 'nn'
local WeldonPooling, parent = torch.class('nn.WeldonPooling', 'nn.Module')
function WeldonPooling:__init(nMax, nMin)
parent.__init(self)
self.nMax = nMax or 1
self.nMin = nMin or self.nMax
self.output = torch.Tensor()
self.indicesMax = torch.Tensor(... |
local B=LibStub("AceAddon-3.0"):GetAddon("DKP Bidder");
local GRI=LibStub("GuildRosterInfo-1.0");
local L = LibStub("AceLocale-3.0"):GetLocale("DKP-Bidder")
function B:GROUP_ROSTER_UPDATE()
if B.bidMaster then
if not UnitInRaid("player") then
self:StopBids();
... |
return function(Modules, ReplicatedModules)
local public = {}
local private = {}
public.Enabled = true
local MarketplaceService = game:GetService("MarketplaceService")
local FunctionBindings = {}
function public.Init()
Modules.DataManager.BindToPlayerAdded(private.PlayerJoined)
end
function private.Player... |
local MAX_LEVEL = 100
local xpValues = {}
local function _getXPFromLevel(level)
if type(level) ~= "number" then
return
end
level = level - 1
return math.floor(808.0809 * level * (1 + level))
end
for i = 1, MAX_LEVEL + 1 do
xpValues[i] = _getXPFromLevel(i)
end
function getMaxLevel()
return MAX_LEVEL
end
func... |
----------------------------------------------------------------------------------------
-- Description: Loads and initialises Tactical Position specifications
-- Created by: Matthew Jack
----------------------------------------------------------------------------------------
AI.TacticalPositionManager = AI.Tactical... |
local PLUGIN = PLUGIN
function PLUGIN:OnPlayerObserve(client, state)
if (client.rappelling) then
self:EndRappel(client)
end
end
|
require("@vue/compiler-dom/ElementTypes")
require("@vue/compiler-dom")
require("@vue/compiler-dom/NodeTypes")
require("@vue/compiler-dom/DOMErrorCodes")
require("compiler-ssr/src/runtimeHelpers")
local ssrTransformModel = function(dir, node, context)
local model = nil
function checkDuplicatedValue()
local valu... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
local QuestID = 50
local Quest = Quests[QuestID]
local QuestD... |
--[[
desc: Bleed, A buff of Bleed.
author: SkyFvcker
since: 2018-9-25
]]--
local _RESMGR = require("actor.resmgr")
local _SOUND = require("lib.sound")
local _ASPECT = require("actor.service.aspect")
local _Gear_Attack = require("actor.gear.attack")
local _Color = require("graphics.drawunit.color")
local _Base = re... |
-- 0m0.190s
-- local t = {}
-- local insert = table.insert
-- for i = 1, 10000000 do
-- insert(t, i)
-- end
-- 0m1.359s
-- local t = {}
-- for i = 1, 10000000 do
-- t[#t+1] = i
-- end
-- -- 0m0.666s
-- local t = {}
-- local insert = table.insert
-- for i = 1, 10000 do
-- insert(t, 1, i)
-- end |
-- Tweens used to animate gems colors and 'glitter', etc...
local K = require("game.constants")
local tweener = require("tweener.base")
local easing = require("tweener.easing")
local floor = math.floor
local gemTweens = {} do
for i = 1, K.NUM_GEMS do
local tweens = { glitter = tweener("loopforward"), scale = t... |
--虚无王座-爱莎
function c60150808.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,c60150808.mfilter,8,2)
c:EnableReviveLimit()
--cannot target
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_CANNOT_BE_EFFECT_T... |
-- Configuration
local background_color = tocolor(15, 15, 15, 150)
local background_error_color = tocolor( 255, 0, 0, 127 )
local background_movetoelement_color = tocolor( 0, 250, 0, 40 ) -- tocolor( 127, 127, 255, 63 )
local empty_color = tocolor(127, 127, 127, 10 )
local full_color = tocolor( 255, 255, 255, 10 )
loca... |
msg = {" tetive", " tangente"}
|
turtle.select(1)
local function refillBucket()
engineAreNotRunningRunning = turtle.getItemDetail(1) ~= turtle.getItemDetail(2)
if engineAreNotRunningRunning then
turtle.dropDown()
os.sleep(3)
end
return engineAreNotRunningRunning
end
local function feedFirst()
turtle.up()
tur... |
--- Button has all the methods from Frame, plus its own.
---@class Button:Frame
Button = {}
--- Execute the click action of the button.
---@param button ButtonType
---@param down boolean
---@overload fun()
---@overload fun(button:ButtonType)
function Button:Click(button, down) end
--- Disable the Button so that it ca... |
-- compile failure
function handler.get(
end
|
casting_no_turning_modifier = class( {} )
function casting_no_turning_modifier:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_DISABLE_TURNING
}
return funcs
end
function casting_no_turning_modifier:CheckState()
local state = {
[MODIFIER_STATE_SILENCED] = true,
[MODIFIER_STATE_DISARMED] = true,
[MODIFI... |
local math = math
local surface = surface
local table = table
_G.spritesheet = {}
local icons = {}
--[[
Icon format example:
{
name = "example-icon", -- icon name
mat = Material( "path/spritesheet.png" ), -- material for spritesheet
w = 32, -- icon width
h = 32, -- icon height
xoffset = 64, -- ... |
DisconnectionSprite = { path = "Images/Online.png", clipWidth = 256, clipHeight = 128 } |
module = {}
module.host = "127.0.0.1"
module.port = "6379"
module.auth = ""
return module |
--
-- addrbook.lua
--
-- Space 0: User recipients info
-- Tuple: { user_id (NUM), data (STR) }
-- Index 0: HASH user_id
-- Space 1: User recipients info
-- Tuple: { user_id (NUM), rcp_email (STR), rcp_name (NUM), timestamp (NUM), weight (NUM) }
-- Index 0: TREE { user_id, rcp_email }
-- configuration:
-- spa... |
slot0 = require("protobuf")
slot1 = require("common_pb")
module("p40_pb")
CS_40001 = slot0.Descriptor()
SC_40002 = slot0.Descriptor()
CS_40003 = slot0.Descriptor()
SC_40004 = slot0.Descriptor()
CS_40005 = slot0.Descriptor()
SC_40006 = slot0.Descriptor()
CS_40007 = slot0.Descriptor()
SC_40008 = slot0.Descriptor()
QUIC... |
local params = ...
local headers = params.headers
local libs = params.libs
local platform = params.platform
local builddir = params.builddir
local addHeadersFor = params.addHeadersFor
local libjpeg_dir = "glorp/libs/jpeg-8c"
ursa.token.rule{"libjpeg files", nil, ("cd %s && find . -type f | sed s*\\\\./**"):format(li... |
-- luacheck:globals Account
Account = {}
Account.__index = Account
function Account:create(balance)
local acnt = {} -- our new object
setmetatable(acnt,Account) -- make Account handle lookup
acnt.balance = balance -- initialize our object
return acnt
end
function Account:debit(amount)
... |
-- Advanced NPC System (Created by Jiddo),
-- Modified by TheForgottenServer Team.
if(Queue == nil) then
Queue = {
customers = nil,
handler = nil,
}
-- Creates a new queue, connected to the given NpcHandler handler
function Queue:new(handler)
local obj = {}
obj.handler = handler
obj.customers = {}
se... |
local fetch = require "nvim-lsp-installer.core.fetch"
local M = {}
---@alias Crate {crate: {id: string, max_stable_version: string, max_version: string, newest_version: string}}
---@param crate string
---@param callback fun(err: string|nil, data: Crate|nil)
function M.fetch_crate(crate, callback)
fetch(("https://... |
--[[
Nintendo Entertainment System emulator for Love2D
Memory Map Emulation
By Gamax92
--]]
local _bus = {
map = {
},
last = 0xFF
}
NES.bus = {
-- Read from "Device"
readByte = function(address)
address = address % 65536
for i = 1, #_bus.map do
map = _bus.map[i]
if map[1] <= address... |
local map = {}
local const = {}
local const_tmp = {}
local const_metatable = {
__newindex = function(t, k, v)
if not t[k] then
const_tmp[k] = v
else
print("do not attemp assign a value to a const variable!")
end
end,
__index = const_tmp
}
setmetatable(const, ... |
local config = require'zbus.json'
local service = require'zbus.member'.new(config)
service:replier_add(
'^echo$',
function(_,...)
local args = {...}
for i,arg in ipairs(args) do
local more = i~=#args
service:notify('echoing_'..i,more,arg)
end
return ...
end)
service:... |
-----------------------------------
-- Area: Windurst Walls
-- NPC: Moan-Maon
-- Type: Standard NPC
-- !pos 88.244 -6.32 148.912 239
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
... |
--[[
Inspiré de : https://love2d.org/forums/viewtopic.php?f=4&t=78317&p=170558#p170558
local Scaling = require "scaling"
function love.draw()
Scaling.preRender(gameWidth, gameHeight)
...
Scaling.postRender()
end
]]
local function scaling(gameWidth, gameHeight)
local width = love.graphics.getWid... |
--[[Made by PointCoded]]--
--[[Private Script, Do Not Leek!]]--
--[[==The Darkness Wielder==]]--
--[[Not finished]]--
-------------------------
local Music = false
-------------------------
local Player = game:GetService("Players").LocalPlayer
local Char = Player.Character
local Torso = Char["Torso"]
local Head = Char[... |
EOT_CopyBoxFrame = nil
function EOT_CopyBox(text, selectAll)
f, _, _ = GameFontNormal:GetFont()
if EOT_CopyBoxFrame == nil then
-- Adds parent frame where we will add raid roster
EOT_CopyBoxFrame = CreateFrame("Frame", nil, UIParent)
EOT_CopyBoxFrame:SetWidth(300)
EOT_CopyBoxFrame:SetHeight(500)
... |
local keyOrder = {
"instances",
"weight",
"burdenId",
"apparatuses",
"effects",
"ingerdients",
}
local default = {
instances = {},
weight = {},
burdenId = {},
["apparatuses"] = {
["apparatus_a_mortar_01"] = {
["type"] = 1,
["tier"] = 1,
... |
--[[
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec vers... |
-- [[ ----- ----- ----- MASTER UPDATE ----- ----- ---- ]] --
-- Main group info array
groupsarray_c = {}
playerGroups = {}
extraValue = nil -- pomocnicza
-- Server-available function to update local groups list
function updateClientList(groupsarray)
groupsarray_c = groupsarray
end
addEvent( "updateClientList", true ... |
--[[
Audio Player
Acts as a 'music player', allowing the easy deployment of audio on the client and server.
Programmed by @Reshiram110
]]
local AudioPlayer={}
---------------------
-- Roblox Services --
---------------------
local HttpService=game:GetService("HttpService")
local TweenService=game:GetService("Twe... |
-------------------------------------------------------------------------------
-- config.require.lua
--
-- Modifies `require` to enforce subscription rights
-------------------------------------------------------------------------------
-- config.lua
application =
{
content =
{
width = 320,
height = 480,
sca... |
require 'common'
-- Open/close tree browser
MapKey('n', '<C-Tab>', '<cmd>NvimTreeToggle<CR>')
-- Telescope
MapKey('n', '<C-f>', '<cmd>Telescope find_files find_command=fd,-Ht,f<CR>')
MapKey('n', '<C-g>', '<cmd>Telescope live_grep<CR>')
-- Completion
-- Navigate completions with tab and shift tab
MapKey('i', '<S-Tab>... |
data:extend({
{
type = "item",
name = "complex-combinator",
icon = "__ComplexCombinator__/complex-combinator-icon.png",
flags = {"goes-to-quickbar"},
subgroup = "circuit-network",
order = "b[combinators]-l[complex-combinator]",
place_result = "complex-combinator",
stack_size = 50
},
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.