content stringlengths 5 1.05M |
|---|
local _M = {}
local home_dir = vim.fn.expand("~")
local sessions_dir = vim.fn.expand("~/.nvim/tmp/sessions")
local function path_to_name(path)
return path:gsub('/', '%%') .. '.vim'
end
local function name_to_path(name)
return name:gsub('%%', '/'):gsub('.vim$', '') .. ''
end
function _M.setup()
vim.o.sessionopt... |
while wait(1) do
game.Players.PLAYERNAME.Backpack.keyinput:FireServer("changestat", "exp", 10000000)
end |
local MAJOR = "LibJayOptions"
local MINOR = 2
assert(LibStub, format("%s requires LibStub.", MAJOR))
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
local safecall, xsafecall
do -- safecall, xsafecall
local pcall = pcall
---@param func function
---@return boolean retOK
safeca... |
---@class CS.FairyGUI.GTree : CS.FairyGUI.GList
---@field public treeNodeRender (fun(node:CS.FairyGUI.GTreeNode, obj:CS.FairyGUI.GComponent):void)
---@field public treeNodeWillExpand (fun(node:CS.FairyGUI.GTreeNode, expand:boolean):void)
---@field public rootNode CS.FairyGUI.GTreeNode
---@field public indent number
---... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["MovementVelocityCorrupted"] = { affix = "", "(2-5)% increased Movement Speed", statOrderKey = "771", statOrder = { 771 }, level = 1, group = "MovementVelocity", weightKey = { "amulet", "boots", "default", }, weightVa... |
function CreateImportProfilesForm()
local form=createWidget(nil, "importProfilesForm", "Form", WIDGET_ALIGN_LOW, WIDGET_ALIGN_LOW, 600, 280, 800, 450)
priority(form, 5500)
hide(form)
local panel=createWidget(form, nil, "Panel")
setLocaleText(createWidget(form, "importProfilesHeader", "TextView", WIDGET_ALIGN_CENT... |
Weapon.PrettyName = "G3SG1"
Weapon.WeaponID = "swb_css_g3sg1"
Weapon.DamageMultiplier = 1.9
Weapon.WeaponType = WEAPON_PRIMARY |
local sti = require 'libs.sti'
local GameObject = require 'objects.GameObject'
local Health = require 'objects.components.Health_cmp'
local Player = require 'objects.assemblages.Player_asm'
local Physics = require 'objects.components.Physics_cmp'
local RenderSystem = require 'objects.systems.Render_sys'
local GravitySy... |
local CqueuesErrno = require "cqueues.errno"
local Server = require "http.server"
local Response = require "framework.response"
local Request = require "framework.request"
local Controller = require "framework.controller"
local appMethods = {}
local appMetaTable = {
__index = appMethods;
__name = nil;
}
local... |
--[[
module:FacadeTest
author:DylanYang
time:2021-02-09 18:29:47
]]
local PageMaker = require("patterns.structural.facade.PageMaker")
local super = require("patterns.BaseTest")
local _M = Class("FacadeTest", super)
function _M.protected:DoExecTest()
PageMaker:MakeWelcomePage("hyuki@hyuki.com", "welcom... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
CW_FRENCH = Clockwork.lang:GetTable("French");
CW_FRENCH["HintBook"] = "Liser un ... |
local save_crafts = require("modules/inventory_sync/save_crafts")
local restore_crafts = require("modules/inventory_sync/restore_crafts")
function add_commands()
--[[
Command to serialize crafting queue for transport.
When serialized, the crafting queue is cleared and stored in global. The items received are clea... |
local AssignmentsScript = {}
AssignmentsScript.Properties = {
}
-------------------------------------------------
-- Client
-------------------------------------------------
function AssignmentsScript:Init()
-- This is a read only, so we can initialize more than once
self.allAssignments = self:DefineAssignments()
... |
if yatm_bees then
yatm_autotest:require("tests/yatm_bees.lua")
end
if yatm_brewery then
yatm_autotest:require("tests/yatm_brewery.lua")
end
if yatm_cables then
yatm_autotest:require("tests/yatm_cables.lua")
end
if yatm_data_fluid_sensor then
yatm_autotest:require("tests/yatm_data_fluid_sensor.lua")
end
if y... |
object_tangible_wearables_cybernetic_s01_cybernetic_s01_arm_r = object_tangible_wearables_cybernetic_s01_shared_cybernetic_s01_arm_r:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_s01_cybernetic_s01_arm_r, "object/tangible/wearables/cybernetic/s01/cybernetic_s01_arm_r.iff")
|
betterinv = {}
betterinv = {}
betterinv.tab_position = tonumber(minetest.settings:get"betterinv.tab_position" or "4")
betterinv.tabs = {}
betterinv.tab_list = {}
betterinv.contexts = {}
betterinv.selections = {}
betterinv.default = "default"
function betterinv.register_tab(name, def)
betterinv.tabs[name] = def
table... |
--[[
More Blocks: crafting recipes
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
if minetest.settings:get_bool("default.circular_saw_crafting") ~= false then -- “If nil or true then”
minetest.register_craft({
output = "default:cir... |
-- Force to include randomkit once only, relying on the global state
-- NB: it is ugly to rely on the fact that we pollute the global
-- namespace, yet I do not see a better way to avoid
-- including ourselves twice -- which would cause seed problems.
--
-- This will need deeper consideration once we will return only
... |
local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon("ZxSimpleUI")
local media = LibStub("LibSharedMedia-3.0")
---@class CoreOptions47
local CoreOptions47 = {}
CoreOptions47.__index = CoreOptions47
CoreOptions47.OPTION_NAME = "CoreOptions47"
ZxSimpleUI.optionTables[CoreOptions47.OPTION_NAME] = CoreOptions47
---@param ... |
-- SPDX-License-Identifier: MIT
-- Copyright (c) 2021 oO (https://github.com/oocytanb)
vci.assets.PlayAnimationFromName("cykhu_land_sky_anim", true)
|
--[[
- Author: yoosan, SYSUDNLP Group
- Date: 10/21/15, 2015.
- Licence MIT
--]]
local Tester = torch.class('Tester')
function Tester:__init(config)
self.task = config.task or 'SICK'
self.mem_dim = config.mem_dim or 150
self.learning_rate = config.learning_rate or 0.... |
--function
print("function")
function sum(...)
print("unpack{...} :", unpack({...}))
local s = 0
for i, v in ipairs{...} do
s = s + v
end
return s
end
s = sum(1, 2, 3)
print("sum(...)", s)
--closure
print()
print("closure")
function counter()
local num = 0
return
function()
... |
local function openColorMixer( data, setting )
local btnH = 20
local w, h = 267, 186 + btnH
local mixerFrame = vgui.Create( "DFrame" )
mixerFrame:SetTitle( "" )
mixerFrame:SetSize( w, h )
mixerFrame:SetPos( gui.MouseX(), gui.MouseY() - h )
mixerFrame:MakePopup()
mixerFrame:SetDraggable(... |
--char-functions.lua
require 'map-functions'
--require 'input'
local tileW, tileH, charTileset, charQuads, charQuadInfo
local charGridX, charGridY = 2, 2
local charActX, charActY = 200, 200
local charFacing = 'forward'
local charMoveSpeed = 10
local moving = false
local timer = 0
local iterator = 1
charPosMessage = '... |
local utils = require "kong.tools.utils"
local Object = require "classic"
local Migrations = Object:extend()
-- Instanciate a migrations runner.
-- @param `core_migrations` (Optional) If specified, will use those migrations for core instead of the real ones (for testing).
-- @param `plugins_namespace` (Optional) If s... |
Student = { name = "Student" }
Student.__index = Student
setmetatable(Student, Person)
function Student.new(id)
local student = setmetatable(Person.new(), Student)
student.id = id
return student
end
function Student:__tostring()
return string.format("{age: %d, id: %d}",self.age, self.id)
end |
local input = Concord.system({_components.control})
-- TODO: we probably just want to flat out react to keys for obstacles, no need for binds I think
-- (actually maybe the individual obstacles have a control component..)
function input:init()
self.timer = Timer.new()
self.polling_rate = 0.01
self.timer:every(
... |
local BaseTest = require 'lualib.basetest'
local oo = require 'lualib.oo'
local empty = require 'lualib.struct.sslattice'
local SSLatticeTest = oo.class(BaseTest)
function SSLatticeTest:test_basic()
local st = empty:add'ball$':add'basic$':add'bea$'
self:assert_equal(tostring(st), ([[
1, b-2
2, a-3, ea-4
... |
local splashScreen=
{
name="splashScreen",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="bg",type=1,typeName="Image",time=58674639,report=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=1,fillParentHeight=1,no... |
local cfg = {}
cfg.inventory_weight_per_strength = 10
return cfg
|
--[[
// FileName: PlayerlistModule.lua
// Version 1.0
// Written by: jmargh
// Description: Implements social features that need to be ran on the server
// TODO
We need to get module script working on the server. When we get that working
This should be moved to a module, and http helper function... |
local dungeonIndex = 21
MethodDungeonTools.dungeonTotalCount[dungeonIndex] = {normal=416,teeming=499,teemingEnabled=true}
MethodDungeonTools.scaleMultiplier[dungeonIndex] = 0.7
MethodDungeonTools.mapPOIs[dungeonIndex] = {
[1] = {
[1] = {
["y"] = -480.35147832794;
["x"] = 434.8042835... |
while true do
local x = io.read()
local s = assert(tonumber(x),"is not a number")
print(s)
end |
local pathwatcher = require "hs.pathwatcher"
local alert = require "hs.alert"
function autoReload()
-- https://www.hammerspoon.org/go/#fancyreload
function reloadConfig(files)
doReload = false
for _, file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = t... |
local modules = (...):gsub('%.[^%.]+$', '') .. '.'
local base_node = require(modules .. 'base_node')
local lovg = love.graphics
local image = base_node:extend('image')
function image:constructor()
image.super.constructor(self)
self.image_w, self.image_h = self.image:getDimensions()
self.keep_aspect_ratio = true
e... |
local StateMachine = {}
function StateMachine:new()
local sm = {}
setmetatable(sm, self)
self.__index = self
return sm
end
StateMachine.VERSION = "2.2.0"
-- the event transitioned successfully from one state to another
StateMachine.SUCCEEDED = 1
-- the event was successfull but no state transition was necessary
... |
object_tangible_loot_generic_usable_poison_grenade_generic = object_tangible_loot_generic_usable_shared_poison_grenade_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_poison_grenade_generic, "object/tangible/loot/generic/usable/poison_grenade_generic.iff")
|
ui.style = {}
ui.style.list = {}
function ui.style.check(name)
return ui.style.list[name]
end
function ui.style.new(name, properties)
if not ui.style.check(name) then
ui.style.list[name] = properties
ui.funcs.info("\""..name.."\" style is created.")
else
ui.funcs.error(name.." st... |
if not modules then modules = { } end modules ['font-otb'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local concat = table.con... |
function reciposszeg(A,B)
return 1/(1/A+1/B)
end
R={} U={} I={}
-- A -> mindenhol az áram iránya
--[[
+---------(<-If=2A)-----------------+
| |
+--(R2=10->)---+---(<-R1=5)---------+
| | |
| +(<-Ug... |
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)... |
describe('count', function()
it('passes through errors', function()
local observable = Rx.Observable.create(function(observer) observer:onError() end)
expect(observable.subscribe).to.fail()
expect(observable:count().subscribe).to.fail()
end)
it('produces a single value representing the number of elem... |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local MazeAgent, ... |
local wasProximityDisabledFromOverride = false
disableProximityCycle = false
RegisterCommand('setvoiceintent', function(source, args)
if GetConvarInt('voice_allowSetIntent', 1) == 1 then
local intent = args[1]
if intent == 'speech' then
MumbleSetAudioInputIntent(`speech`)
elseif intent == 'music' then
Mumb... |
local plateTable = {}
local allowedToUse = false
local directions = {
North = 360, 0,
East = 270,
South = 180,
West = 90
}
Citizen.CreateThread(function()
TriggerServerEvent("Prefech:checkPerms", GetPlayerServerId(PlayerId()))
end)
RegisterNetEvent("Prefech:getPerms")
AddEventHandler("Prefech:ge... |
-- Set of AI functions for objects.
-- Most any function will actually yield (with the exception of parameter generation and other utility functions),
-- and will only continue execution the next time AIProcessor is called, or when trigger becomes true.
-- (When trigger is 0, the function will continue execution on ... |
local itk = require 'itkffi'
local im = itk.Float2D()
im:read("input.nrrd")
print(im:tensor())
--local out = im:gaussiansmoothing(10.0)
local out = im:laplacianofgaussian(10.0)
out:write("output.nrrd")
print(out:tensor())
out:fromtensor(im:tensor())
print(out:tensor())
local outtensor = torch.FloatTensor()
out:te... |
local _M = {}
--请使用和nginx_log_analysis 保持一致的配置
_M.influx_config = {
host = "",
database = "",
port = , --influxdb的HTTP API端口,默认是8086
}
--是个可读写的redis即可, qps的大小是根据你每个时间版本需要爬取的url(包含参数,每个版本的url会先 进行去重在爬取)有关。
_M.redis_conf = {
host = '',
port = ,
}
-- 配置爬取访问的Nginx地址,此Nginx是容灾系统的反向代理
_M.proxy_crash... |
artifactreward34 = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Artifact 34",
directObjectTemplate = "object/tangible/collection/col_stage_controller_01.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("artifactreward34", artifactreward34)
|
hook.Add("LoadFonts", "nutNoticeFont", function(font, genericFont)
surface.CreateFont("nutNoticeFont", {
font = genericFont,
size = 16,
weight = 500,
extended = true,
antialias = true
})
end)
local PANEL = {}
PANEL.pnlTypes = {
[1] = { -- NOT ALLOWED
col = Color(200, 60, 60),
icon = "i... |
--[[
## Widget
TankResource - An `table` holding `StatusBar`s.
## Sub-Widgets
.bg - A `Texture` used as a background. It will inherit the color of the main StatusBar.
## Sub-Widget Options
.multiplier - Used to tint the background based on the widget's R, G and B values. Defaults to 1 (number)[0-1]
## Opti... |
ActiveRecord.define_model('attributes', function(t)
t:string 'attr_id'
t:integer 'character_id'
t:integer 'value'
end)
ActiveRecord.define_model('attribute_multipliers', function(t)
t:integer 'attribute_id'
t:integer 'value'
t:timestamp 'expires'
end)
ActiveRecord.define_model('attribute_boosts', function... |
--By nicholasgower
local initial_recipes=require("initial-recipes")
for key, value in ipairs(initial_recipes) do
local item=table.deepcopy(data.raw["recipe"][value])
item.enabled=false
if item.normal ~= nil then
item.normal.enabled=false
end
if item.expensive ~= nil then
item.... |
---
--- 通用的枚举定义
---
-- UI界面枚举
ECEnumType.UIEnum = {
} |
starlight_background=Class(object)
function starlight_background:init()
--
background.init(self,false)
--resource
LoadTexture('starlight_ground','THlib\\background\\starlight\\ground.png')
LoadImage('starlight_ground','starlight_ground',0,0,256,256,0,0)
LoadTexture('starlight','THlib\\background\\starlight\\star... |
script.on_event("momo-debug", function(e)
if settings.startup["momo-debug"].value then
local logging = ""
local p = game.players[1]
local slot = 1
local items = {}
for name, count in pairs(p.get_main_inventory().get_contents()) do
p.print("["..slot.."]" .. name .. " " .. count)
logging = logging .. ... |
local concat
do
local _obj_0 = table
concat = _obj_0.concat
end
local raw_query, logger
local proxy_location = "/query"
local set_logger
set_logger = function(l)
logger = l
end
local get_logger
get_logger = function()
return logger
end
set_logger(require("lapis.logging"))
local type, tostring, pairs, select
do
... |
DEFINE_BASECLASS("ma2_battlesuit")
AddCSLuaFile()
ENT.Base = "ma2_battlesuit"
ENT.PrintName = "#mechassault.battlesuit.armor"
if CLIENT then
ENT.Category = language.GetPhrase("mechassault.categories.light")
end
ENT.Spawnable = true
ENT.Radius = 26
ENT.Height = 90
ENT.Model = Model("... |
lightning = {}
local Lightning = {}
Lightning.__index = Lightning
lightning.metatable = Lightning
function lightning.create(strCodeName, checkVisibility, x1, y1, x2, y2)
local table = {}
setmetatable(table, Lightning)
table.handle = AddLightning(strCodeName, checkVisibility, x1, y1, x2, y2)
return ta... |
if UseItem(162) == true then goto label0 end;
do return end;
::label0::
AddItem(162, -1);
SetScenceMap(-2, 1, 21, 30, 3698);--by fanyu|门打开。场景08-编号0607
SetScenceMap(-2, 1, 21, 31, 0);--by fanyu|门打开。场景08-编号0607
SetScenceMap(-2, 1, 20, 30, 3696);--by fanyu|门打开。场景08-编号0607
jyx2_ReplaceSceneObject(""... |
local mod = get_mod("StreamingInfo")
local pl = require'pl.import_into'()
mod.SETTING_NAMES = {}
local mod_data = {
name = "Streaming Info",
description = mod:localize("mod_description"),
is_togglable = true,
}
mod_data.options_widgets = pl.List()
mod.localizations = mod.localizations or pl.Map()
mod.add_option... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
fairy_queen_royal_... |
object_mobile_npe_dressed_rakqua_warrior_02 = object_mobile_npe_shared_dressed_rakqua_warrior_02:new {
}
ObjectTemplates:addTemplate(object_mobile_npe_dressed_rakqua_warrior_02, "object/mobile/npe/dressed_rakqua_warrior_02.iff") |
Game = {}
function Game:init()
-- Order of these definitions is important. Don't alter!
spawner = Spawner()
world = Bump.newWorld(32)
self.currentLevel = nil
level = Level()
end
function Game:enter()
windowOffset = Vector(love.graphics.getWidth() / 2, love.graphics.getHeight() / 2)
self:loadLevel('firs... |
--------------------------------------------------------------------------------
-- Game interaction facade
--------------------------------------------------------------------------------
Game = { }
--------------------------------------------------------------------------------
-- Get the current Bpm from the game... |
if turn >= 1 then
EnableChargeAttack()
Summon(6)
character_4:WithWaitTime(1500):UseSkill(2)
character_1:UseSkill(2)
end |
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
local function checkerror(msg, f, ...)
local s, err = pcall(f, ...)
assert(not s and string.find(err, msg))
end
function generateClearedTable(arraySize, hashSize)
local tb = {}
for i = 1, arraySize ... |
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local Layout = require(current_folder .. ".Layout")
local Label = require(current_folder .. ".Label")
local imgui = require(current_folder .. ".imgui")
local Button = require(current_folder .. ".Button")
local Tooltip = require(current_folder .. ".Toolti... |
--------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/842
-- Pre-conditions:
-- 1. SDL is started (EnablePolicy = false)
-- 2. HMI is started
-- Steps to reproduce:
-- 1. Activate App
-- Expected:
-- The application was activated... |
local recipes = data.raw.recipe
local function set_ingredient_amount(recipe_name, ingredient_index, amount)
local recipe = recipes[recipe_name]
if( recipe and recipe.normal and recipe.normal.ingredients )
then
local ingredient = recipe.normal.ingredients[ingredient_index]
if( ingredient )
then
... |
--[[
author:{JanRoid}
time:2018-10-30 14:42:43
Description: 注册popwindow
]]
local PopupConfig = {}
PopupConfig.S_POPID = {
-- test
--POP_DEMO = getIndex();
POP_STORE = g_GetIndex();
POP_SETTING = g_GetIndex();
POP_BANKRUPT = g_GetIndex();
POP_GIFT = g_GetIndex(); --礼物
POP... |
local component=require("component")
local gL = {
type = require("gachLib.type"),
state = require("gachLib.state"),
util = require("gachLib.util")
}
if gL.util.tableCount(component.list("transposer")) > 0 then
gL.transposer = require("gachLib.transposer")
end
if gL.util.tableCount(component.list... |
SILE.hyphenator.languages["und"] = {patterns = {}, exceptions = {}}
|
UIManager={}
UIManager.__index = UIManager
UIManager.name="UIManager"
local uiLayer = {}
UIManager.Layer = {
Buttom = 1,
Normal = 2,
Pop = 3,
Message = 4,
}
function UIManager.New( resPath,layer )
local M = {}
setmetatable(M,UIManager)
M.resPath = resPath
M.layer = layer
M.visibl... |
--
-- Copyright (c) 2017, Jesse Freeman. All rights reserved.
--
-- Licensed under the Microsoft Public License (MS-PL) License.
-- See LICENSE file in the project root for full license information.
--
-- Contributors
-- --------------------------------------------------------
-- This is the official list of Pixel Visi... |
--[[
Copyright (c) 2022, Vsevolod Stakhov <vsevolod@rspamd.com>
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 ... |
local K, C = unpack(KkthnxUI)
local _G = _G
local CreateFont = _G.CreateFont
local CreateFrame = _G.CreateFrame
local KkthnxUIMedia = CreateFrame("Frame", "KKUI_Fonts")
local shadowOffset = K.Mult or 1
local fontSize = 12
-- Create our own fonts
local KkthnxUIFont = CreateFont("KkthnxUIFont")
KkthnxUIFont:SetFont(... |
--------------------------------------------------------------------------
-- This derived class of MName handles the atleast and between modifiers
-- for both prereq and load.
-- @classmod MN_Between
require("strict")
--------------------------------------------------------------------------
-- Lmod License
-------... |
-- ============================================================================
-- Note! As of Aug 16th 2021, LspInstall does not support installing emmet-ls
-- The following configuration expects emmet-ls to be locally installed:
--
-- $ mkdir -p $HOME/.local/share/nvim/lspinstall/emmet
-- $ cd $HOME/.local/share/nvim... |
--Author information
SWEP.Author = "Killberty"
SWEP.Contact = "http://steamcommunity.com/id/killberty"
if SERVER then
-- Adds the current file to the list of files to be downloaded by clients.
AddCSLuaFile()
-- Adds a workshop addon for the client to download before entering the server.
resource.AddWorkshop("85315... |
---------------
-- Markdown-flavoured and very simple no-structure style.
--
-- Here the idea is to structure the document entirely with [Markdown]().
--
-- Using the default markdown processor can be a little irritating: you are
-- required to give a blank line before starting lists. The default stylesheet
-- i... |
local addonName, _ = ...;
-- NIL = 240
-- INT = 241
-- TRUE = 242
-- FALSE = 243
-- STRING = 244
local serialize, deserialize = {}, {};
serialize["nil"] = function() return "\240" end
serialize["number"] = function(n) return "\241" .. n end
serialize["boolean"] = function(bool) return bool and "\242" or "\243" end
se... |
----------------------------------------------------
-- This is the main LUA runtime library of FastPM.
--
-- Author: Yu Feng <rainwoodman@gmail.com> 2016
----------------------------------------------------
local config = require("lua-runtime-config")
local _NAME = ... or 'main'
local fastpm = {}
local schema = co... |
local function DoTransform(inst, self, isfullmoon)
self._task = nil
if isfullmoon then
self:SetWere()
else
self:SetNormal()
end
end
local function OnIsFullmoon(self, isfullmoon)
if self._task ~= nil then
self._task:Cancel()
end
--self._task =
-- isfullmoon ~= ... |
-- TODO: iOS - Need use dependencies:
-- |- https://github.com/ezored/ezored/blob/main/files/targets/ios/conan/recipe/conanfile.py
-- |- conan::sqlite3/3.36.0
-- |- conan::rapidjson/1.1.0
-- |- conan::openssl/1.1.1k
-- |- conan::sqlitecpp/3.1.1
-- |- conan::date/3.0.1
-- |- conan::nlohmann_json/3.9.1
-- ... |
--- A basic module
-- @module a_module
--- @type Foo
local Foo = {}
function Foo:a() end
function Foo.b() end
Foo.c = 123
return {
a = function() end, --- @deprecated
b = 123,
c = (function() end)(),
}
|
---@brief [[
--- Support for `:checkhealth` for lean.nvim.
---@brief ]]
local Job = require('plenary.job')
local subprocess_check_output = require('lean._util').subprocess_check_output
local health = {
report = { __index = function (_, key) return vim.fn['health#report_' .. key] end }
}
setmetatable(health.report, ... |
local ffi = require "ffi"
local ffi_cdef = ffi.cdef
local ffi_typeof = ffi.typeof
ffi_cdef [[
void
nettle_serpent_set_key(struct serpent_ctx *ctx,
size_t length, const uint8_t *key);
void
nettle_serpent128_set_key(struct serpent_ctx *ctx, const uint8_t *key);
void
nettle_serpent192_set_key(str... |
exports.DENsettings:addPlayerSetting("jobcalls", "true")
function createJobWindow()
jobWindow = guiCreateWindow(289,332,269,204,"AUR ~ Job",false)
jobLabel1 = guiCreateLabel(12,29,241,17,"Current occupation:",false,jobWindow)
guiLabelSetHorizontalAlign(jobLabel1,"center",false)
guiSetFont(jobLabel1,"default-bold-s... |
-- Dependencies
local DkJson = require("libraries.dkjson")
-- JSON module
local Json = {}
-- Encodes decoded data
function Json.encode(data)
if data == nil then
return nil, "No data to encode"
else
return DkJson.encode(data, { indent = true })
end
end
-- Decodes encoded data
function Json... |
local phoneProp = 0
local phoneModel = `prop_npc_phone_02`
local function LoadAnimation(dict)
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
Wait(1)
end
end
local function CheckAnimLoop()
CreateThread(function()
while PhoneData.AnimationData.lib ~= nil and PhoneData.AnimationData.anim ~= ... |
--------------------------------
-- @module EaseBezierAction
-- @extend ActionEase
-- @parent_module cc
---@class cc.EaseBezierAction:cc.ActionEase
local EaseBezierAction = {}
cc.EaseBezierAction = EaseBezierAction
--------------------------------
--- brief Set the bezier parameters.
---@param p0 number
---@param p1... |
---
---
--- File: to sequence db support files
---
---
---
dbCtl = {}
dbCtl.helpData = {}
function dbCtl.help()
local i,k
print("help commands for dbCtl")
for i,k in ipairs( dbCtl.helpData) do
printf(".%s -- %s",k[1],k[2] )
end
end
|
a = function() return 1 end
b = function(r) print( r() ) end
b(a)
|
return function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TS = require(ReplicatedStorage:WaitForChild("rbxts_include"):WaitForChild("RuntimeLib"));
local JoystickInputCalculator = TS.import(script, ReplicatedStorage, "TS", "Internal", "JoystickInputCalculator").JoystickInputCalcul... |
includeFile("custom_content/building/player/construction/construction_player_barn.lua")
includeFile("custom_content/building/player/construction/construction_player_diner.lua")
includeFile("custom_content/building/player/construction/construction_player_house_atat.lua")
includeFile("custom_content/building/player/const... |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Camera", function()
local Camera = require "moonpie.graphics.camera"
local mock_love = require "moonpie.test_helpers.mock_love"
it("initializes to an inconsequent... |
author 'JokeDevil'
description 'FiveM Ace Permission report/reply command (https://www.jokedevil.com/)'
version '1.0.0'
url 'https://jokedevil.com'
client_script 'client/client.lua'
client_script 'config.lua'
server_script 'server/server.lua'
server_script 'config.lua'
game 'gta5'
fx_version 'bodacious' |
local M = {}
local Cpml = require 'cpml'
local MR = require 'src'
local lkb = love.keyboard
local lg = love.graphics
M.ts = 0
M.pause = false
local key_state = {}
local camera_move_speed = 500
local camera_rotation_speed = math.pi
local camera, renderer, camera_mode
local near, far, fov = 1, 3000, 70
function M.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.