content stringlengths 5 1.05M |
|---|
BlacklistedWeapons = { -- weapons that will get people banned
"WEAPON_BALL",
"WEAPON_RAILGUN",
"WEAPON_GARBAGEBAG",
}
CageObjs = {
"prop_gold_cont_01",
"p_cablecar_s",
"stt_prop_stunt_tube_l",
"stt_prop_stunt_track_dwuturn",
"hei_prop_carrier_cargo_02a",
"p_ferris_car_01",
"prop_cj_big_boat",
"prop_rock_4_... |
local command = wincent.vim.command
-- TODO: complete `find` arg names too
-- TODO: check escaping (q-args) is correct
command('Find', 'call wincent#commands#find(<q-args>)', {complete = 'file', nargs = '*'})
command('Lint', 'call wincent#commands#lint()')
command('OpenOnGitHub', '<line1>,<line2>call wincent#commands... |
#!/usr/bin/env luajit
-- MTW's Gravitation ch. 16 problem 1
require 'ext'
local env = setmetatable({}, {__index=_G})
if setfenv then setfenv(1, env) else _ENV = env end
require 'symmath'.setup{env=env, MathJax={title='Gravitation 16.1 - dense', useCommaDerivative=true}}
local t, x, y, z = vars('t', 'x', 'y', 'z')
loc... |
require "MQTTDevice"
device=MQTTDevice:new("test","12345","uid","pwd",{name="testDevice",serial="12345",description="this is a test device"})
t={}
t.read=function() return 10 end
t.type="s"
device.properties["temprature"]=t
print(device:getMeta())
device:start("192.168.1.100",1883) |
queen_of_pain_shadow_strike_lua = class({})
LinkLuaModifier( "modifier_queen_of_pain_shadow_strike_lua", "lua_abilities/queen_of_pain_shadow_strike_lua/modifier_queen_of_pain_shadow_strike_lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
-- Ability Start... |
local c = require "ejoy2d.matrix.c"
local matrix_meta = {
__index = c,
__tostring = c.tostring,
}
function matrix(srt)
local mat = c.new(srt)
if type(srt) == "table" then
if srt.scale then
c.scale(mat, srt.scale)
elseif srt.sx and srt.sy then
c.scale(mat,srt.sx, srt.sy)
end
if srt.rot then
c.rot(... |
--[[
Ambi Eco — платформа (экосистема) для создания проектов в игре Garry's Mod
Github: https://github.com/Titanovsky/ambi-eco
Documentation: https://titanovskyteam.gitbook.io/ambi-eco
--]]
--############################################################################################ --
Ambi.Config.dev = ... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local NP = E:GetModule('NamePlates')
local oUF = E.oUF
local _G = _G
local unpack, max = unpack, max
local CreateFrame = CreateFrame
local UnitHasVehicleUI = UnitHasVehicleUI
local MAX_POINTS = {
['DRUID'] = 5,
[... |
local M = {}
M.__index = M
local code_dir = (...):gsub('.[^%.]+$', '')
-- local file_dir = code_dir:gsub('%.', '/')
local Cpml = require 'cpml'
local Mat4 = Cpml.mat4
local Util = require(code_dir..'.util')
local lg = love.graphics
function M:extend()
local cls = {}
for k, v in pairs(self) do
if type(v) ==... |
local _M = {}
_M.visa_config = {
username_sand = '',
password_sand = '',
username_prod = '',
password_prod = '' ,
api_key = '',
shared_secred = ''
}
return _M;
|
return Def.ActorFrame {
FOV=90;
LoadActor(THEME:GetPathG("Combo","100Milestone"));
};
|
day2 = {"понедељак", "уторак", "среду", "четвртак", "петак", "суботу", "недељу"}
month1 = {"јануар", "фебруар", "март", "април", "мај", "јуни", "јули", "август", "септембар", "октобар", "новембар", "децембар"}
month2 = {"јануара", "фебруара", "марта", "априла", "маја", "јуна", "јула", "августа", "септембара", "октобр... |
local K, C = unpack(select(2, ...))
if C["Automation"].AutoQuest ~= true then
return
end
local _G = _G
local next = next
local select = select
local string_find = string.find
local string_match = string.match
local string_sub = string.sub
local tonumber = tonumber
local AcceptQuest = _G.AcceptQuest
local Acknowledge... |
--[=[
Wraps the datastore object to provide async cached loading and saving. See [DataStoreStage] for more API.
Has the following features
* Automatic save
* Jitter
* De-duplication (only updates data it needs)
```lua
local playerMoneyValue = Instance.new("IntValue")
playerMoneyValue.Value = 0
local dataSto... |
--[[--
Provide pipe and named pipe abstraction.
The Pipe class provides inter-process stream communication.
The Pipe class also provides named pipe.
Note: The only implementation is based on libuv
@module jls.io.Pipe
@pragma nostrip
]]
local luvLib = require('luv')
local class = require('jls.lang.cla... |
object_draft_schematic_space_weapon_wpn_elite_gauss = object_draft_schematic_space_weapon_shared_wpn_elite_gauss:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_weapon_wpn_elite_gauss, "object/draft_schematic/space/weapon/wpn_elite_gauss.iff")
|
if not Global.editor_mode then
return
end
if true then
return
end
core:module("CoreMissionManager")
core:import("CoreMissionScriptElement")
core:import("CoreEvent")
core:import("CoreClass")
core:import("CoreDebug")
core:import("CoreCode")
core:import("CoreTable")
require("core/lib/managers/mission/CoreElementDebug"... |
require 'closureclass'
describe('Helper functions', function()
local A = class('A')
local B = class('B', A)
local C = class('C', B)
test('isClass', function()
assert_true(isClass(A))
assert_false(isClass({}))
assert_false(isClass({ __closureClass = true }))
assert_false(isClass(""))
end)
... |
-- Local instances of Global tables --
local PA = PersonalAssistant
local PAC = PA.Constants
-- =====================================================================================================================
local PABankingMenuDefaults = {
name = table.concat({GetString(SI_PA_PROFILE), " ", 1}),
-- ---... |
--[[
Destructible Weapon AOE
v1.1-b
by: standardcombo
Deals damage in an area, to Players and NPCs.
--]]
-- Component dependencies
local MODULE = require( script:GetCustomProperty("ModuleManager") )
function COMBAT() return MODULE.Get("standardcombo.Combat.Wrap") end
local WEAPON = script.parent
... |
local package = require 'charon.package'
local test = {}
test.should_return_if_file_is_update = function()
package.time = 0
assert( package.isPathUpdated('util.lib.example') == true )
package.time = os.microtime()
assert( package.isPathUpdated('util.lib.example') == false )
end
test.should_return_false_if_... |
local Grid = script.Parent
local App = Grid.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local t = require(Packages.t)
local VerticalScrollView = require(App.Container.VerticalScrollView)
local ScrollingGridView = Roact.PureComponent:extend("ScrollingGridView"... |
require( "components/cavern/cavern_encounter" )
--------------------------------------------------------------------
if encounter_combat_trollcamp == nil then
encounter_combat_trollcamp = class( {}, {}, CCavernEncounter )
end
--------------------------------------------------------------------
function encounter_... |
MCS_ROOT = MONO_ROOT .. 'mcs/'
function GenerateConsts()
print('Generating Consts.cs')
local consts = 'build/common/Consts.cs.in'
local src = MCS_ROOT .. consts
local dest = gendir .. '/Consts.cs'
local file = io.open(path.getabsolute(src))
if not file then
error(consts .. " was not found")
end
... |
-- disable jit compiler for redhat and centos
local jit = true
local plat = "$(plat)"
local arch = "$(arch)"
if is_plat("msys", "cygwin") then
plat = "windows"
arch = is_arch("x86_64") and "x64" or "x86"
end
if is_arch("arm64", "arm64-v8a") then
arch = "arm64"
elseif is_arch("arm.*") then
arch = "arm"
e... |
#!/usr/bin/lua
-- if #arg ~= 1 then
-- print("Missing sketch file name")
-- return 1
-- end
local uploaded_name = "./paper_test.ino.hex"
local destination_file = "./mega2560.hex"
local io = require("io")
local uploaded_sketch = io.open(uploaded_name)
if not uploaded_sketch then
print("Unable to open file " ..... |
local ast_walker = require("ast_walker")
local on_open = {
---@param node AstCall
call = function(node, scope, is_statement)
if node.ex.node_type == "func_proto" then
if is_statement then
error("-- TODO: impl inline_iife for statements.")
end
-- find the parent functiondef
whi... |
require 'lualine'.setup{
options = { theme = 'oceanicnext' },
sections = { lualine_x = { 'filetype' } },
extensions = { 'fzf' }
}
|
function print_r (t, name, indent)
local tableList = {}
function table_r (t, name, indent, full)
local id = not full and name
or type(name)~="number" and tostring(name) or '['..name..']'
local tag = indent .. id .. ' = '
local out = {} -- result
if type(t) == "table" then
if tableList[t] ~= nil then ta... |
local ui = {}
local conf = require("modules.ui.config")
ui["kyazdani42/nvim-web-devicons"] = { opt = false }
ui["shaunsingh/nord.nvim"] = { opt = false, config = conf.nord }
ui["sainnhe/edge"] = { opt = false, config = conf.edge }
ui["catppuccin/nvim"] = {
opt = false,
as = "catppuccin",
config = conf.catppuccin,
}... |
Locales['en'] = {
-- Cloackroom
['cloakroom'] = 'Vestuário',
['citizen_wear'] = 'Roupa casual',
['gnr_wear'] = 'Uniforme da GNR',
['sheriff_wear'] = 'Uniforme de sherife',
['lieutenant_wear'] = 'Uniforme do Corpo de intervenção ',
['commandant_wear'] = 'Uniforme do Policia Judiciaria ',
['statep... |
if GetLocale() ~= "ruRU" then
return
end
local _, L = ...
L["author"] = "Автор"
L["%s Configuration"] = "Конфигурация %s"
L["ConfigPanelTitle"] = "Глобальные настройки"
L["Class settings"] = "Настройки классов"
L["Modifier"] = "Модификатор"
L["Normal mount summon"] = "Обычный призыв средства передвижения."
L["Second... |
local ffi = require("ffi")
ffi.cdef[[
struct _IO_FILE;
typedef struct _IO_FILE FILE;
]]
ffi.cdef[[
void *calloc(size_t nitems, size_t size);
void * malloc(const size_t size);
void free(void *);
char *strcpy(char *dest, const char *src);
size_t strlen(const char *);
// file operations
int fclose(FILE *stream);
in... |
module("luci.controller.clash", package.seeall)
local fs=require"nixio.fs"
local http=require"luci.http"
local uci=require"luci.model.uci".cursor()
function index()
if not nixio.fs.access("/etc/config/clash") then
return
end
entry({"admin", "services", "clash"},alias("admin", "services", "clash", "overview"), _... |
return function()
local liter = require(game:GetService('ReplicatedStorage').liter)
it('should enumerate through the array returning an index-value pair', function()
local iter = liter.array({ 1, 5 }):enumerate()
local a = iter:after()
expect(a[1]).to.equal(1)
expect(a[2]).to.equal(1)
local b =... |
local vm = require 'vm.vm'
local function checkMetaArg1(source, callback)
local node, index = vm.getArgInfo(source)
local special = vm.getSpecial(node)
if special == 'setmetatable' and index == 1 then
local mt = node.next.args[2]
if mt then
vm.eachField(mt, function (src)
... |
-- vim: sw=4 ts=4
--
-- http request handler
require "class"
require "console"
require "httpserver/request"
local Handler=class(function(handler, socket)
console.log("http handler connection opened")
handler.socket=socket
handler.payload=""
handler.package=0
handler.header=false
handler.bytesReceived=0
handl... |
--[[
Security Service
Runs various tasks to help stop exploiters.
--]]
local SecurityService={}
---------------------
-- Roblox Services --
---------------------
local HttpService=game:GetService("HttpService")
-------------
-- DEFINES --
-------------
local SERVICE_RENAMEINTERVAL=2 --The interval (in seconds) be... |
--[[
Screens display the content of UI scripts and can be made interactive.
]]
---@param tag string Tag name
---@param global boolean _optional_ Search in entire scene
---@return number Handle to first screen with specified tag or zero if not found
---@see @https://www.teardowngame.com/modding/api.html#FindScreen
func... |
--////////////////////////////////////////
--Site Infrastructure section
--////////////////////////////////////////
data:extend({
{
type = "recipe",
category = "crafting",
name = "fuel-storage",
result = "fuel-storage",
enabled = false,
energy_required = 30,
ingredients =
{
{"structural-concrete", 3... |
local Modules = script.Parent.Parent.Parent
local Rodux = require(Modules.Rodux)
return Rodux.createReducer(true, {})
|
class("SubmitWeekTaskCommand", pm.SimpleCommand).execute = function (slot0, slot1)
if not getProxy(TaskProxy).GetWeekTaskProgressInfo(slot4):GetSubTask(slot1:getBody().id) or not slot6:IsFinished() then
return
end
pg.ConnectionMgr.GetInstance():Send(20106, {
id = slot3
}, 20107, function (slot0)
if slot0.res... |
package = "blunty666.nodes.gui.events"
class = "DeselectEvent"
extends = "BaseEvent"
constructor = function(self)
self.super("deselect")
end
|
require "movie_player.lua"
---@class MoviePlayerEvent
---@field End function @동영상 끝날 때 실행되는 함수
---@class MoviePlayerCreateOptions
---@field Parent Window @동영상이 재생될 Window class
---@field FileName string @동영상 파일 경로
---@field Center boolean : 가운데 위치 여부
---@field X integer : X 위치
---@field Y integer : Y 위치
---@class Mo... |
require("lab1.z1")
local function map(tab, func)
local mapped = {}
for i=1,#tab do
mapped[i] = func(tab[i])
end
return mapped
end
local function add1 (x)
return x+1
end
t = {1,2,3,4,5,6}
printf(map(t,add1)) |
local curl = require("cURL.safe")
local json = require("cjson.safe")
local version = dofile("version.lua")
local function fetch_json(entity)
local queue = {}
local url = string.format("https://www.wikidata.org/w/api.php?action=wbgetclaims&entity=%s&property=P348&format=json", entity)
local request = curl.easy()
:... |
DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
function PLAYER:GetHandsModel()
return { model = "models/weapons/c_arms_combine.mdl", skin = 1, body = "0100000" }
end
player_manager.RegisterClass( "player_combine", PLAYER, "player_default" ) |
--[[
frame.lua
A dominos frame, a generic container object
--]]
local AddonName, Addon = ...
local Frame = Addon:CreateClass('Frame')
local L = LibStub('AceLocale-3.0'):GetLocale(AddonName)
local FlyPaper = LibStub("LibFlyPaper-1.0")
local active = {}
local unused = {}
--constructor
function Frame:New(id, tooltip... |
require 'funcs'
local MarathonAX = require 'tetris.modes.marathon_ax'
local Piece = require 'tetris.components.piece'
local History6RollsRandomizer = require 'tetris.randomizers.history_6rolls'
local MarathonAX2Game = MarathonAX:extend()
MarathonAX2Game.name = "Marathon AX2"
MarathonAX2Game.hash = "MarathonAX2"
Mar... |
-- lua script for merchand 'Zeff' (in Gandria)
wares =
{
{"eq_huntershat", 2},
{"eq_leatherarmor", 1},
{"mi_wolf_fur", 2},
{"fo_sausage", 1},
}
multiplier = 1.0
|
-- ReceptorArrow positions are hardcoded using Metrics.ini in Casual, ITG,
-- and FA+ modes. If we're in one of those modes, bail now.
if SL.Global.GameMode ~= "StomperZ" then return end
local player = ...
-- these numbers are relative to the ReceptorArrowsYStandard and ReceptorArrowsYReverse
-- positions already sp... |
local _G = require "_G"
local creds = require "creds"
local http = require "http"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
description = [[
Tests for access with default credentials used by a variety of web applications and devices.... |
local sigmsg = "[default:kill,hup,user1,user2,stop,quit,continue]"
local signame = {"kill", "hup", "user1", "user2", "stop", "quit", "continue"}
local oksig = {
kill = true,
hup = true,
user1 = true,
user2 = true,
stop = true,
quit = true,
continue = true
}
return function(cat9, root, builtins, suggest)
funct... |
-- ===========================================================================
-- Input for placing items on the world map.
-- Copyright 2015-2016, Firaxis Games
--
-- To hot-reload, save this then re-save the file that imports the file
-- (e.g., WorldInput)
-- ==========================================================... |
-- Pre-built outfit quickhacks for easy use. Mostly just things I like personally.
local OutfitHack = {}
local Logger = require("utility/logger")
local Glossary = require("data/glossary")
local ItemHandler = require("handler/item")
function OutfitHack:GiveFemaleNomadCustomOutfit()
local itemspecs = {
{
... |
if CLIENT then
local definedGrabPoints = {}
function vrmod.AddUseGrabPoint(uid, map, class, model, bodygroup_id, bodygroup_value, bone, pos, ang_left_hand, ang_right_hand)
definedGrabPoints[class] = definedGrabPoints[class] or {}
definedGrabPoints[class][uid] = {map=map, model=model, bodygroup_id=bodygrou... |
-- -------------------------------------------------------------------------------------------------------------------------------------------------------------
-- BELT BRUSH
-- dependencies
local event = require('lualib.event')
local util = require('lualib.util')
-- locals
local draw_circle = rendering.draw_circle
l... |
-- Copyright (c) 2020 Christian Georg Kurz [chrikuvellberg@gmail.com]
--
-- This file is part of the Blue-Scheduler.
--
-- The Blue-Scheduler is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as
-- published by the Free Software Foundation, either v... |
DEFINE_BASECLASS("ma2_mech")
AddCSLuaFile()
ENT.Base = "ma2_mech"
ENT.PrintName = "#mechassault.mech.prometheus"
if CLIENT then
ENT.Category = language.GetPhrase("mechassault.categories.assault")
end
ENT.Spawnable = true
ENT.Radius = 220
ENT.Height = 540
ENT.Model = Model("models/me... |
--[[
Stained Glass 1.2
This mod provides luminescent stained glass blocks for Minetest 0.4.x.
Depends:
[moreblocks] by Calinou
[unifieddyes] by VanessaE
==============================================================================
Sat 04 May 2013 01:52:35 PM EDT
Copyright (C) 2013, Eli Innis
Email: doyousketch2 @... |
-- made by uiojaafdosijfafdssf (on roblox)
-- and arChEmiT (on v3rmillion) fixed the limbs not freezing
-- yes i used gui to lua to make this, sorry for the messy code
-- Instances:
local FreezeGuiR6 = Instance.new("ScreenGui")
local main = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local torso = ... |
local playsession = {
{"Menander", {430881}},
{"tmoneyfizzle", {774}},
{"Ed9210", {1351}},
{"Chaoskiller", {3655}},
{"MrJSelig", {12876}},
{"rocifier", {113322}},
{"AroN57", {1870}},
{"Croustibax", {3967}},
{"Zory", {571}},
{"kaimix", {93892}},
{"TiTaN", {56048}}
}
return playsession |
local enums = require("consts.celeste_enums")
local lightFade = {}
lightFade.name = "lightFadeTrigger"
lightFade.fieldInformation = {
positionMode = {
options = enums.trigger_position_modes,
editable = false
}
}
lightFade.placements = {
name = "light_fade",
data = {
lightAddFro... |
-- TODO: This needs implementation in C.
local classes = require "klib.classes"
-- Check for and use C lib if available.
local ok, lib = pcall(require, "klib.gui.clipboard_native")
if ok and lib then
return lib
end
-- Simple implementation for when native support is not available.
local m = classes.module "klib.g... |
local tiny = require('lib.tiny')
local class = require('lib.middleclass')
local System = tiny.processingSystem(class('system.move'))
function System:initialize()
self.filter = tiny.requireAll('x', 'dx', 'y', 'dy')
end
function System:process(e, dt)
e.x = e.x + e.dx
e.y = e.y + e.dy
if e.hitbox then
e.hit... |
bgml.hooks = {}
-- Metatable for hook tables.
local hmt = {}
-- Add `callback` to `hook` with `name`.
function hmt:add(hook, name, callback)
self:hook_list(hook)[name] = callback
end
-- Remove `name` from `hook`.
function hmt:remove(hook, name)
local existed = (self:hook_list(hook)[name] ~= nil)
self:hoo... |
return function()
local AppStorageService = game:GetService("AppStorageService")
local UserLocalStore = require(script.Parent.UserLocalStore)
-- we need to use a registered key for testing
local testKey = "NativeCloseLuaPromptDisplayCount"
it("can set and get a value for the same user", function()
local initia... |
--[[
File name: ridgeServer.lua
Description: auto save data when the player leaves the game. DO NOT move this into the main ridge module
Author: oldmilk
--]]
-- NOTE: I also stuck the backpack saving code in here.
local dataStoreService = game:GetService("DataStoreService")
function getPlayerProfile(player)... |
require('assets/scripts/level/level')
local materials = {
Game.makeMaterial {
shader = 'pbr',
albedo = 'objects/Player/Texture/Main_Character_01_AlbedoTransparency.png',
metallicSmoothness = 'objects/Player/Texture/Main_Character_01_MetallicSmoothness.png',
ao = 'objects/Player/Text... |
package.path = "?.lua;test/lua/errors/?.lua"
require 'compare.errors.args'
-- arg type tests for string library functions
-- string.byte
banner('string.byte')
checkallpass('string.byte', { somestring })
checkallpass('string.byte', { somestring, somenumber })
checkallpass('string.byte', { somestring, somenumber, somen... |
local angleshit = 0.3;
local anglevar = 0.3;
function opponentNoteHit(id, direction, noteType, isSustainNote)
if difficulty == 2 then
if curBeat < 592 then
if curBeat > 528 then
cameraShake('cam', '0.015', '0.1')
end
end
if curBeat < 703 then
if curBeat > 688 then
cameraShake('cam', '0.015', '0.... |
local viewportHandler = require("viewport_handler")
local drawableSpriteStruct = require("structs.drawable_sprite")
local templeEye = {}
local function isBackground(room, entity)
local x = entity.x or 0
local y = entity.y or 0
local tx = math.floor(x / 8) + 1
local ty = math.floor(y / 8) + 1
ret... |
local state_machine = {}
local state_interface = require('state_machine.state_interface')
local state_machine_constants = require('state_machine.constants')
local buildCommand = require('command.builder')
local handleCommand = require('command.handler')
local getPossibleFutureEntries = require('command.completer')
l... |
function coroutine.Call(func, ...)
local cr = coroutine.create(func)
coroutine.Run(cr, ...)
end
function coroutine.Run(cr, ...)
local ok, err = coroutine.resume(cr, ...)
if not ok then
local msg = string.format("\n\n--- ERROR IN COROUTINE ---\n\n%s\n\n--- END OF COROUTINE ERROR ---\n", debug.traceback(cr, "[ER... |
object_draft_schematic_spices_spice_giggledust_s01 = object_draft_schematic_spices_shared_spice_giggledust_s01:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_spices_spice_giggledust_s01, "object/draft_schematic/spices/spice_giggledust_s01.iff")
|
local debug = false;
--[===[@debug@
debug = true;
--@end-debug@]===]
local L = LibStub("AceLocale-3.0"):NewLocale("SellOMatic", "enUS", true, debug);
L["added to"] = true
L["add items to the sell/save lists"] = true
L["already on"] = true
L["Auto sell"] = true
L["Auto sell all"] = true
L["Autoselling"] = true
L["Auto... |
" Lint / Fix
" Plug 'dense-analysis/ale'
Plug 'psf/black'
|
pg = pg or {}
pg.enemy_data_statistics_133 = {
[10051007] = {
cannon = 80,
reload = 150,
speed_growth = 0,
cannon_growth = 936,
rarity = 2,
air = 0,
torpedo = 80,
dodge = 11,
durability_growth = 33000,
antiaircraft = 50,
luck = 0,
reload_growth = 0,
dodge_growth = 156,
hit_growth = 210,
s... |
--
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
local scriptfile = "premake4.lua"
local shorthelp = "Type 'premake4 --help' for help"
local versionhelp = "premake4 (Premake Build Script Generator) %s"
_WO... |
---------------------------------------------------------------------------------------------------
-- Unique Icon Widget
---------------------------------------------------------------------------------------------------
local ADDON_NAME, Addon = ...
local Widget = Addon.Widgets:NewWidget("UniqueIcon")
-------------... |
local cbe = CraftBagExtended
local util = cbe.utility
local class = cbe.classes
local name = cbe.name .. "Inventory"
class.Inventory = class.Module:Subclass()
function class.Inventory:New(...)
local instance = class.Module.New(self, name, "inventory")
instance:Setup()
return ins... |
-- food.lua
function Food(boss, code)
local food = {code = code}
local grill = boss.grill
local spritesheet = boss.images["food"]
function food.draw(x,y)
spritesheet.draw_image(x*grill.tile,y*grill.tile,spritesheet.quads[food.code])
end
return food
end
return Food
|
-- Bootstrapping
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
execute "packadd packer.nvim"
end
... |
local M = {}
function M.setup()
require("bufferline").setup {
options = {
numbers = "buffer_id",
diagnostics = "nvim_lsp",
separator_style = "slant" or "padded_slant",
show_tab_indicators = true,
show_buffer_close_icons = false,
show_close_icon = false,
},
}
end
return ... |
local param = require "param"
local exit = require "exit"
local function process ()
local repository = require(param.repository)
local username = param.username
local password = param.password
local path = param.path
local directoryName = param.directoryName
return repository.add(username, passw... |
--[=[
@class ScoredActionPicker
]=]
local require = require(script.Parent.loader).load(script)
local Set = require("Set")
local ValueObject = require("ValueObject")
local BaseObject = require("BaseObject")
local Maid = require("Maid")
local MAX_ACTION_LIST_SIZE_BEFORE_WARN = 25
local ScoredActionPicker = setmetata... |
local ENT = {}
ENT.Type = "anim"
ENT.Base = "base_entity"
-- Allow spawnmenu too
ENT.Category = "nZombies Unlimited"
ENT.PrintName = "Barricade"
ENT.Author = "Zet0r"
ENT.Spawnable = true
--ENT.Editable = true
ENT.RepairSound = "nzu_barricade_postrepair"
sound.Add({
name = "nzu_barricade_postrepair",
channel = CHAN_... |
local ObjectManager = require("managers.object.object_manager")
deathWatchLutinNightstalkerConvoHandler = conv_handler:new {}
function deathWatchLutinNightstalkerConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate)
local convoTemplate = LuaConversationTemplate(pConvTemplate)
if (CreatureObject(pPlayer):isOn... |
name="lym"
template="tool"
|
local M = {}
local sched = require("lumen.sched")
local function not_on_path(rong)
local inv, conf = rong.inv, rong.conf
local own = inv.own
local nop = {}
for mid, m in pairs(inv) do
if not own[mid] then
local meta = m.meta
if not meta.path[conf.name] then
nop[mid] = m
end
end
end
re... |
return {'djahe','djak','djakken','djati','djatiboom','djatihout','djamel','djamila','django','djatibomen','djakte','djaks','djatis','djamels','djamilas','djangos'} |
function onCreate()
addLuaScript('lua_characters/spurkmatt')
setProperty('spurkmatt.x', 1250)
setProperty('spurkmatt.y', 450)
end |
---@meta
--=== gpio ===
---@class gpio
---@field OUTPUT integer
---@field INPUT integer
---@field OPENDRAIN integer
---@field INT integer
---@field PULLUP integer
---@field FLOAT integer
---@field HIGH integer
---@field LOW integer
gpio = {}
---@class gpio.pulse
gpio.pulse = {}
---@class pulser
local pulser = {}
-... |
local K, C = unpack(KkthnxUI)
local Module = K:GetModule("Automation")
local _G = _G
local GetBindingAction = _G.GetBindingAction
local GetBindingKey = _G.GetBindingKey
local GetCurrentBindingSet = _G.GetCurrentBindingSet
local GetZonePVPInfo = _G.GetZonePVPInfo
local InCombatLockdown = _G.InCombatLockdown
local IsIn... |
local wibox = require("wibox")
local naughty = require("naughty")
local gears = require("gears")
local lain = require("lain")
local awful = require("awful")
local createAnimObject = require("utils.animation").createAnimObject
local markup = lain.util.markup
local background = wibox.container.background
local constrain... |
package("lightgbm")
set_homepage("https://github.com/microsoft/LightGBM")
set_description("LightGBM is a gradient boosting framework that uses tree based learning algorithms.")
set_license("MIT")
add_urls("https://github.com/microsoft/LightGBM/releases/download/v$(version)/lightgbm-$(version).tar.gz")... |
local TAG = 'scheduler'
local scheduler = class()
-- 最多支持3个擦书
function scheduler:ctor(id, callback, intaval, times, delay, target, ...)
self.name = id
self:updateSet(id, callback, intaval, times, delay, target, ...)
end
function scheduler:dtor()
end
function scheduler:updateSet(name, callback, intaval, times,... |
local i = 0
while(i<10) do
do
if i<5 then
goto __continue0
end
end
::__continue0::
i=i+1
end
|
-- Class: DebugStepper
-- This lets you pause execution of the app and step through it line by line.
-- This adds a function, debugger.breakpt(), that triggers this intrument.
-- Until this is called, the instrument remains hidden.
DebugStepper = DebugInstrument:extend
{
visible = false,
lineContext = 10,
... |
local FindMetaTable = FindMetaTable
local table_concat = table.concat
local file_Exists = file.Exists
local string_lower = string.lower
local util_PrecacheModel = util.PrecacheModel
local string_GetPathFromFilename = string.GetPathFromFilename
local string_GetExtensionFromFilename = string.GetExtensionFromFilename
loca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.