content stringlengths 5 1.05M |
|---|
require "user.conf.notify"
require "user.conf.nvim-tree"
require "user.conf.cmp"
require "user.conf.telescope"
require "user.conf.treesitter"
require "user.conf.autopairs"
require "user.conf.comment"
require "user.conf.gitsigns"
require "user.conf.vgit"
require "user.conf.bufferline"
require "user.conf.lualine"
require... |
-- references:
-- 1. Linguist: https://github.com/github/linguist
-- 2. coc-explorer: https://github.com/weirongxu/coc-explorer/blob/59bd41f8fffdc871fbd77ac443548426bd31d2c3/src/icons.nerdfont.json#L2
-- 3. chad-tree: https://github.com/ms-jpq/chadtree/blob/f9f333c062/artifacts/icons.json
-- jquery = {
-- icon = "๎",... |
sptbl["waveset"] = {
files = {
module = "waveset.c",
header = "waveset.h",
example = "ex_waveset.c",
},
func = {
create = "sp_waveset_create",
destroy = "sp_waveset_destroy",
init = "sp_waveset_init",
compute = "sp_waveset_compute",
},
param... |
require "lib/ext"
--TODO
local configuration = require("configuration")
if not configuration.disable_rest_api then
require "lib/rest"
end
|
--
require "luasocket"
|
--[[
[guid]={pos,level, {[statid, statrate]*6}}
]]
return {
[212992]={3,50,511166,100000},
[212993]={2,50,511186,100000},
[212994]={3,50,511266,100000},
[212995]={2,50,511586,100000},
[212996]={5,50,510846,100000},
[212997]={2,50,510926,100000},
[212998]={3,50,511026,100000},
[212999]={3,50,511746,100000... |
StateMachine = Class{}
function StateMachine:init(states)
self.empty = {
render = function() end,
update = function() end,
processAI = function() end,
enter = function() end,
exit = function() end
}
self.states = states or {} -- [name] -> [function that returns states]
self.current = self.empt... |
local awful = require("awful")
local beautiful = require("beautiful")
local gears = require("gears")
local hotkeys_popup = require("awful.hotkeys_popup")
local naughty = require("naughty")
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such... |
--mediafire
script:ClearAllChildren()
Player = Game:GetService("Players").LocalPlayer
Character = Player.Character
function FindNearestTorso(Position)
Distance = math.huge
People = Workspace:GetChildren()
for Child = 1, #People do
if People[Child]:FindFirstChild("Zombie") == nil then
Template2 = People[Child]
if ( ... |
net.Receive("DJSet:AddToQueue", function(_, ply)
if XYZShit.CoolDown.Check("DJSet:AddToQueue", 5, ply) then return end
local set = net.ReadEntity()
if set:Getowning_ent() ~= ply then return end
if set:GetClass() ~= "xyz_dj_set" then return end
local url = net.ReadString()
HTTP({
['method'] = 'post',
['url'... |
load("nixpkgs/16.09")
load("imkl/11.3.4.258")
load("intel/2016.4")
|
local utils = require("utils")
local configs = require("configs")
local persistence = require("persistence")
local pluginLoader = require("plugin_loader")
local modHandler = require("mods")
local toolUtils = require("tool_utils")
local logging = require("logging")
local toolHandler = {}
toolHandler.tools = {}
toolHan... |
-- Copyright (C) YuanSheng Wang (membphis), 360 Inc.
local lock = require "resty.lock"
local _M = {
_VERSION = '0.01',
}
local running = true
local mt = { __index = _M }
function _M.new(opts)
opts = opts or {}
local unit_name = opts.unit_name
local write_log = (nil == opts.write_log) and true or opt... |
TellMeWhenDB = {
["profileKeys"] = {
["ๆ
ไผค้พๆไธถ - ๅคๅฐไน็ฅ"] = "ๆ
ไผค้พๆไธถ - ๅคๅฐไน็ฅ",
},
["global"] = {
["TextLayouts"] = {
["icon1"] = {
{
}, -- [1]
{
}, -- [2]
},
["bar2"] = {
{
}, -- [1]
{
}, -- [2]
},
},
},
["Version"] = 85702,
["profiles"] = {
["ๆ
ไผค้พๆไธถ - ๅคๅฐไน็ฅ"] = {
["... |
-- test ai
oo.class("Brain_test","Brain")
function Brain_test:__init(owner, name)
Brain.__init(self, owner, name)
end
-- ๆญปไบกไนๅ๏ผๆธ
้คๅฌๅค็ๅฐๆช
function Brain_test:onStop()
--print("ๅๆญขai")
end
function Brain_test:onStart()
local pz = 0
local owner = self:getOwner()
local x,y = owner:getCell()
local root = PriorityNode:n... |
return function(Sunshine, entity)
local collisionSpawner = entity.collisionSpawner
local collider = entity.collider
local spawner = entity.spawner
if collisionSpawner and collider and spawner then
Sunshine:update(function()
if collider.hitEntity and collider.hitEntity.character and c... |
--[[------------
Q U A K E II
Heads Up Display
Armor indicator
]]--------------
if CLIENT then
local lastAP = 0;
local time = 0;
local anim = false;
local size = 73;
local function ArmorPanel()
if LocalPlayer():Armor() <= 0 then return end;
local ap = LocalPlayer():Armor();
local scale = Q2HUD.... |
๏ปฟlocal L = LibStub("AceLocale-3.0"):NewLocale("GatherLite", "krKR")
if not L then
return
end
L["tracking"] = "์ถ์ "
L["mining"] = "์ฑ๊ด"
L["herbalism"] = "์ฝ์ด"
L["fish"] = "๋์"
L["containers"] = "์์"
L["worldmap.show"] = "GatherLite ํ์"
L["worldmap.hide"] = "GatherLite ์จ๊ธฐ๊ธฐ"
-- ์ฑ๊ดmining
L['node.copper_vein'] = "๊ตฌ๋ฆฌ ๊ด๋งฅ"... |
player_ai = nil
GlobalTargetID = nil
playersetupcomplete = false
function OnAIGoingFirstSecond(name)
local result = 1
player_ai = 0
if name=="AI_Harpie"
or name=="AI_Blackwing"
or name=="AI_Shaddoll"
--or name=="AI_Kozmo"
or name=="AI_Lightsworn"
or name=="AI_GladiatorBeast"
or name=="AI_Fluffal"
th... |
local skynet = require "skynet"
local const = require "logger_const"
require "skynet.manager"
local command = {}
local logfile = nil
local openTime = nil
local logNameTag = nil
local logFilePath = nil
local logLevel = const.log_level.debug
local defaultLogFileSize = 1024*1024*1024
local maxLogFileSize = tonumber(skyne... |
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local helpers = require("helpers")
local pad = helpers.pad
-- Text ... |
function get()
-- Block access for anyone who is not admin
if not session:isLogged() or not session:isAdmin() then
http:redirect("/")
return
end
local data, edit = {}, tonumber(http.getValues.id)
if edit ~= nil then
data = db:singleQuery("SELECT id, title, text FROM castro_articles WHERE id = ?", e... |
local ghosts = {}
function onClientEnterTurf(turfID)
-- exports.UCDdx:add("turf_indicator")
end
addEvent("onClientEnterTurf", true)
addEventHandler("onClientEnterTurf", root, onClientEnterTurf)
function onClientTurf(infoTable)
if (_infoTable) then
for k, v in ipairs(_infoTable) do
exports.UCDdx:del("turf_indi... |
local analysis = {}
-- Returns strips of pixels in the given row that fulfill the given condition.
-- The condition should be a function image_data, x, y, first_x -> boolean
-- first_x is the x-coordinate of the first pixel in the current strip that
-- fulfilled the condition, or nil.
-- The return value is a table wh... |
local DEFAULT_BANDWIDTH = 100 * 10^3
local LATENT_BANDWIDTH = 50 * 10^3
addEvent("gra.cSync.request", true)
addEvent("gra.cSync.gui", true)
local activeClients = {}
local keyPermissions = {}
local keyResponders = {}
local keyOptions = {}
cSync = {}
function cSync.register(key, permission, options)
check("s,?s,?t"... |
--[[
FiveM Scripts
Copyright C 2018 Sighmir
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
at your option any later version.
... |
#!/usr/bin/env lua
--[[
http://echo.lab.madgex.com is an OAuth Test Server
--]]
local Spore = require 'Spore'
local keys = {
oauth_consumer_key = 'key',
oauth_consumer_secret = 'secret',
}
local client = Spore.new_from_string [[
{
"base_url" : "http://echo.lab.madgex.com",
"... |
return {
settings = {
outDir = "retroplug/luawrapper/generated",
},
modules = {
audio = { path = "retroplug/scripts/audio" },
common = { path = "retroplug/scripts/common" },
ui = { path = "retroplug/scripts/ui" },
config = { path = "config/0.3", compile = false }
}
}
|
๏ปฟ--[[
Copyright 2019 Manticore Games, Inc.
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 limitation the
rights to use, copy, modify, merge, publish, ... |
local p = require('lib/utils').prettyPrint
local uv = require('luv')
local child, pid
child, pid = uv.spawn("sleep", {
args = {"100"}
}, function (code, signal)
p("EXIT", {code=code,signal=signal})
uv.close(child)
end)
p{child=child, pid=pid}
-- uv.kill(pid, "SIGTERM")
uv.process_kill(child, "SIGTERM")
repe... |
--[[
Name: init.lua
For: SantosRP
By: TalosLife
]]--
AddCSLuaFile "cl_init.lua"
AddCSLuaFile "shared.lua"
include "shared.lua"
function ENT:Initialize()
self:SetModel( "models/props_equipment/gas_pump_p16.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYS... |
local config = {}
function config.compe()
vim.o.completeopt = "menuone,noselect"
require"compe".setup {
enabled = true,
autocomplete = true,
debug = false,
min_length = 1,
preselect = "enable",
throttle_time = 80,
source_timeout = 200,
incomplete_... |
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
dependency "vrp"
server_script {
"@vrp/lib/utils.lua",
"server.lua"
}
client_script {
"@vrp/lib/utils.lua",
"init.lua"
}
files {
"client.lua",
"c-cops-abilities.lua",
"c-cops-dispatch.lua"
}
|
DEFINE_BASECLASS("ma2_proj_ppc_lvl1")
AddCSLuaFile()
ENT.Base = "ma2_proj_ppc_plasma_lvl1"
ENT.Damage = 454
ENT.BlastRadius = 400
ENT.ParticleAttach = "gm_MA2_Plasma_PPC_lvl2"
ENT.FireSound = Sound("MA2_Weapon.PlasmaPPC2")
PrecacheParticleSystem("gm_MA2_Plasma_PPC_lvl2")
|
-- *************************************************
-- *****S C E N E I N I T I A L I S A T I O N*****
-- *************************************************
-- Skybox
skybox = CreateActorFromModel("Skybox", "Resources/Skybox/Skybox.obj")
skybox:GetTransform():SetScale(vec3(30000.0, 30000.0, -30000.0))
skybox:GetTran... |
object_tangible_loot_npc_loot_artifact_generic = object_tangible_loot_npc_loot_shared_artifact_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_artifact_generic, "object/tangible/loot/npc/loot/artifact_generic.iff")
|
-- ChunkGenerated
function OnChunkGenerated(World, ChunkX, ChunkZ, ChunkDesc)
return ObfuscateChunk(World, ChunkX, ChunkZ, ChunkDesc)
end
-- PlayerBreakingBlock
function OnPlayerBreakingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, BlockType, BlockMeta)
Deobfuscate(Player, BlockX, BlockY, BlockZ, BlockFa... |
local M = {
__prefix = 'name',
__parse_methods = {'name', 'name_with_middle'},
__fetched_methods = {'last_name', 'first_name', 'prefix', 'suffix'}
}
M.title = function(self)
return self:fetch('name.title.descriptor') .. ' ' .. self:fetch('name.title.level') .. ' ' .. self:fetch('name.title.job')
end
... |
return {
id = "tentacles",
name = "Mr. Tentacles",
description = "Lots of arms!",
type = "hat",
rarity = 2,
hidden = false,
}
|
return {
id = 22,
furnitures_1 = {
{
id = 22001,
parent = 0,
y = 0,
dir = 1,
x = 0,
child = {}
},
{
id = 22106,
parent = 0,
y = 21,
dir = 1,
x = 21,
child = {}
},
{
id = 22002,
parent = 0,
y = 0,
dir = 1,
x = 0,
child = {}
},
{
id = 22304,
pare... |
object_tangible_quest_speeder_junk_barc_chassis = object_tangible_quest_shared_speeder_junk_barc_chassis:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_speeder_junk_barc_chassis, "object/tangible/quest/speeder_junk_barc_chassis.iff")
|
--ๆฐๆฎไธๆฅๆฅๅฃ
require("gameData/dataInterfaceBase");
require("ubReport/ubReport");
require("isolater/interface/gameInfoIsolater");
ReportIsolater = class(DataInterfaceBase);
--่ทๅๅฎไพ
ReportIsolater.getInstance = function()
if not ReportIsolater.s_instance then
ReportIsolater.s_instance = new(ReportIsolater); ... |
--- ๆจกๅๅ่ฝ๏ผๅฎๅluat็cๅบๆฅๅฃ
-- @module clib
-- @author openLuat
-- @license MIT
-- @copyright openLuat
-- @release 2017.9.20
local uartReceiveCallbacks = {}
local uartSentCallbacks = {}
--- ๆณจๅไธฒๅฃไบไปถ็ๅค็ๅฝๆฐ
-- @number id ไธฒๅฃID: 1่กจ็คบไธฒๅฃ1๏ผ2่กจ็คบไธฒๅฃ2๏ผuart.ATC่กจ็คบ่ๆATๅฃ
-- @string event ไธฒๅฃไบไปถ:
-- "recieve"่กจ็คบไธฒๅฃๆถๅฐๆฐๆฎ๏ผๆณจๆ๏ผไฝฟ็จuart.setup้
็ฝฎไธฒๅฃๆถ๏ผ็ฌฌ6ไธชๅๆฐ่ฎพ็ฝฎไธบn... |
-- httpserver-connection
-- Part of nodemcu-httpserver, provides a buffered connection object that can handle multiple
-- consecutive send() calls, and buffers small payloads to send once they get big.
-- For this to work, it must be used from a coroutine and owner is responsible for the final
-- flush() and for cl... |
require("Framework.event.Event")
local emptyCaller = {}
---@class Framework.event.EventDispatcher
---@field private nameMap
EventDispatcher = class("Framework.event.EventDispatcher")
function EventDispatcher:ctor()
self:reset()
end
---DispatchEvent
---@param evt Framework.event.Event
function EventDispatcher:... |
SWEP.PrintName = "WESTAR-M5"
SWEP.Author = "TFA, Servius"
SWEP.ViewModelFOV = 56
SWEP.Slot = 2
SWEP.HoldType = "ar2"
SWEP.Base = "tfa_3dscoped_base"
SWEP.Instructions = "This gun is called 'WESTAR M5' not WEST-AR-M5. This is for the idiots that have been saying its the latter of the two." --I... |
test_run = require('test_run').new()
REPLICASET_1 = { 'storage_1_a', 'storage_1_b' }
REPLICASET_2 = { 'storage_2_a', 'storage_2_b' }
test_run:create_cluster(REPLICASET_1, 'misc')
test_run:create_cluster(REPLICASET_2, 'misc')
util = require('util')
test_run:wait_fullmesh(REPLICASET_1)
test_run:wait_fullmesh(REPLICASET_2... |
return function()
local returnArgs = require(script.Parent)
it("should provide proper values", function()
expect(function()
local a, b, c = returnArgs(1, 2, 3)()
assert(a == 1 and b == 2 and c == 3)
end).never.throw()
end)
end
|
--[[
################################################################################
#
# Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the ... |
for i = 1,100 do
output = ""
if i % 3 == 0 then
output = output .. "Fizz"
end
if i % 5 == 0 then
output = output .. "Buzz"
end
if output == "" then
print(i)
else
print(output)
end
end |
--[[
|WARNING| THESE TESTS RUN IN YOUR REAL ENVIRONMENT. |WARNING|
If your tests alter a DataStore, it will actually alter your DataStore.
This is useful in allowing your tests to move Parts around in the workspace or something,
but with great power comes great responsibility. Don't mess up your stuff!
------------... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
--[[
Description: Contains bytecode/loadstring-related functionality
Author: Sceleratis
Date: 12/11/2021
--]]
local Root, Package, Utilities, Service
--- Bytecode-related functionality.
--- @class Client.Bytecode
--- @tag Core
--- @tag Package: System.Core
--- @client
local Bytecode = {}
local RemoteCommands =... |
require('libraries/timers')
local GLOBAL_origin = nil
local ABILITY_dupe_heroes = nil
local function IllusionsCast()
if ABILITY_dupe_heroes:IsFullyCastable() then
ExecuteOrderFromTable({
UnitIndex = thisEntity:entindex(),
OrderType = DOTA_UNIT_ORDER_CAST_NO_TARGET,
AbilityIndex = ABILITY_dupe_... |
-- ==========================
-- BUBBLY.NVIM SIGNIFY BUBBLE
-- ==========================
-- Created by: datwaft [github.com/datwaft]
local bubble_factory = require'bubbly.factories.bubble'
return function(inactive)
if inactive then return '' end
if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end
... |
return {
check = function (data)
return (LuaEnvName ~= "private" and data.msg:gsub("%[CQ:.-%]",""):len() > 1 and
(data.msg:find("%[CQ:at,qq="..CQApi:GetLoginQQId().."%]") or randNum() > 0.9)) or data.msg == "ๆ้ฃ"
end,
run = function (data,sendMessage)
if data.msg == "ๆ้ฃ" then
... |
--[[
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the license found in the
LICENSE-examples file in the root directory of this source tree.
--]]
require('nn')
require('paths')
local tnt = require('torchnet')
-- use GPU or not:
local cmd = torch.CmdLine()
cmd:... |
--"Imports" (ik they are variables)
local component = require ("component")
local sides = require("sides")
local event = require("event")
local term = require("term")
local gpu = component.gpu
local myColors = require("myColors")
-- local rectangle = require("rectangle")
local button = require("buttonAPI")
-- for k... |
--[[---------------------------------------------------------
Media Player History
-----------------------------------------------------------]]
MediaPlayer.History = {}
---
-- Default metadata table name
-- @type String
--
local TableName = "mediaplayer_history"
---
-- SQLite table struct
-- @type String
--
local ... |
local shader = nil
local time
function love.load()
time = 0
print("before shader")
shader = love.graphics.newShader[[
extern number time;
vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords ){
return vec4(abs(sin(time)),abs(cos(time)),abs(tan(time)),1.0);
}
]]
print("finished sett... |
-- car = nil
-- function aaa(thePlayer, seat, jacked)
-- if (getElementType(thePlayer) ~= "player") then
-- return
-- end
-- -- asdf = getModelHandling(476)
-- -- for k,g in pairs(asdf) do
-- -- setVehicleHandling(source, k, g)
-- -- end
-- local sir = createPed(120,0,0,0)
-- if (car) then
-- destroyEleme... |
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2608, 2608, 2608, -2, -2, -2);
AddItem(174, 200);
AddItem(171, 10);
AddItem(1, 4);
AddItem(3, 1);
AddItem(11, 3);
AddItem(22, 2);
AddItem(186, 2);
AddItem(102, 5);
AddEthics(-2);
do return end;
|
-- Copyright (c) 2021 Kirazy
-- Part of Artisanal Reskins: Bob's Mods
--
-- See LICENSE in the project directory for license information.
-- Check to see if reskinning needs to be done.
if not (reskins.bobs and reskins.bobs.triggers.logistics.entities) then return end
-- Set input parameters
local inputs = {
type... |
return function(config)
local eslint_d = {
lintCommand = "eslint_d -f unix --stdin --stdin-filename ${INPUT}",
lintStdin = true,
lintFormats = {"%f:%l:%c: %m"},
lintIgnoreExitCode = true,
formatCommand = "eslint_d --fix-to-stdout --stdin --stdin-filename=${INPUT}",
fo... |
-- CONFIGURATION VARIABLES FOR YOU TO EDIT
local teamLock = true -- True locks the launcher to the teams listed below, false allows everyone to use it
local teams = {"Staff", "Military Forces", "Government", "Criminals", "Bloods", "SWAT Team"} -- These are the teams that will be allowed to use the grenade launcher if y... |
TaanabStarhunterStationScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "TaanabStarhunterStationScreenPlay"
}
registerScreenPlay("TaanabStarhunterStationScreenPlay", true)
function TaanabStarhunterStationScreenPlay:start()
if (isZoneEnabled("taanab")) then
self:spawnMobiles()
self:spawnSceneOb... |
workspace "HelloWorld"
do
startproject("Main")
-- ใใซใใณใณใใฃใฐใฌใผใทใงใณใฎๆงๆ
configurations{ "Debug", "Release" }
-- ใใญใฐใฉใใณใฐ่จ่ช
language "C++"
cppdialect "Default"
-- ใใฏใญ
filter "configurations:*Debug"
defines{ "DEBUG" }
-- ใณใผใใฎๆ้ฉๅ
filter "configurations:*Debug"
optimize "Debug"
filter "configurations:*Release"... |
--[[
ยฉ 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
--]]
local Clockwork = Clockwork;
local tonumber = tonumber;
local tostring = tostring;... |
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 05.02.2015
-- Time: 13:38
-- To change this template use File | Settings | File Templates.
--
cEinstellungsGUI = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
funct... |
-- Ensure that ujit.table.toset works correctly on tables
-- mutated in various manner.
-- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
require("jit").off()
local toset = require("ujit.table").toset
local tests = {}... |
local function lua()
local i = 0
while arg[i] ~= nil do
i = i - 1
end
return arg[i + 1]
end
local function exec(...)
local args = table.pack(...)
table.insert(args, 1, lua())
os.execute(table.concat(args, " "))
end
local function build(ver)
exec("build/"..ver.."/manual/2html", ... |
return {'moravisch','morgenland','moriaan','morin','mora','moraal','moraalfilosofie','moraalfilosoof','moraalridder','moraaltheologie','moraaltheoloog','moraaltheorie','moralisatie','moraliseren','moralisme','moralist','moralistisch','moraliteit','moraliteitsbeginsel','moratoir','moratorium','morbide','morbiditeit','mo... |
local battery = require("hs.battery")
local menu = require("hs.menubar")
local styledtext = require("hs.styledtext")
local module = {}
local adjustTitle = function()
if module.menu then
local text = tostring(battery.amperage()) .. "\n"
if battery.isCharging() then
text = text ... |
RegisterNUICallback("data_status", function(data)
if data.type == "finished" then
soundInfo[data.id].playing = false
TriggerEvent("xSound:songStopPlaying", data.id)
end
end)
RegisterNetEvent("xsound:stateSound")
AddEventHandler("xsound:stateSound", function(state, data)
local soundId = data... |
-- for debuing purposes
--require('mobdebug').start()
require('torch')
require('nn')
require('rnn')
----------------------------------------------------------------------
-- parse command line arguments
if not opt then
print '\n==> processing options'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Bi-Direction... |
-- ***************************************************************************
-- SHT1x module for ESP8266 with nodeMCU
-- SHT1x compatible tested 2016-3-15
--
-- Written by Bill Deng
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
--... |
PLUGIN.name = "DeathDrop"
PLUGIN.author = "gumlefar"
PLUGIN.desc = "Handles items when player dies."
ix.config.Add("deathWeaponDura", true, "If true weapons will take damage when player dies.", nil, {
category = "Death"
})
ix.config.Add("deathWeaponWearDmg", 35, "How much wear damage a weapon will take from a player... |
local core = {
_VERSION = 'paseto v0.4.0',
_DESCRIPTION = 'PASETO (Platform-Agnostic Security Tokens) for Lua',
_URL = 'https://github.com/peter-evans/paseto-lua',
_LICENSE = [[
MIT License
Copyright (c) 2018 Peter Evans
Permission is hereby granted, free of charge, to any person o... |
package.cpath = package.cpath..";../src/?.so"
require 'geoip'
print(geoip.country_code_by_name("212.56.71.159"))
|
-- Controllers
local add_task = require "src.controller.add_task"
local get_task = require "src.controller.get_task"
local stop_task = require "src.controller.stop_task"
local list_tasks = require "src.controller.list_tasks"
local delete_task = require "src.controller.delete_task"
local list_today_tasks = require "src.... |
local typedecl = require 'titan-compiler.typedecl'
local types = typedecl("Type", {
Types = {
Invalid = {},
Nil = {},
Boolean = {},
Integer = {},
Float = {},
String = {},
Value = {},
Function = {"params", "retty... |
--[[
Name: "sh_combine_lock.lua".
Product: "HL2 RP".
--]]
local ITEM = {};
-- Set some information.
ITEM.name = "Combine Lock";
ITEM.cost = 150;
ITEM.model = "models/props_combine/combine_lock01.mdl";
ITEM.weight = 4;
ITEM.useText = "Place";
ITEM.business = true;
ITEM.vocations = {VOC_CPA_EPU, VOC_OTA_OWC};
ITEM.desc... |
-- very simple multicast test client, just listens to a multicast address
-- and prints what it receives.
-- Demonstrates how to set up a multicast client socket and read data
-- from it.
if arg[1] == '6' then
addr = 'ff01::1'
else
addr = '127.255.255.255'
end
port = 8000
ls = require "lsocket"
client, err = ls.bi... |
local MainUIRoleHeadView = BaseClass()
function MainUIRoleHeadView:DefaultVar( )
return {
UIConfig = {
prefab_path = "Assets/AssetBundleRes/ui/mainui/MainUIRoleHeadView.prefab",
canvas_name = "MainUI",
components = {
},
},
}
end
function MainUIRoleHeadView:OnLoad( )
local names = {
"money_1","m... |
-- API
local _Constants_API = require(script:GetCustomProperty("Constants_API"))
local UTIL = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API"))
-- Object references
local TANK_TABLE_TEMPLATE = script:GetCustomProperty("TANK_TABLE_TEMPLATE")
local UIScrollPanel = script:GetCustomProperty("UIScrollPan... |
if GameHelpers.Data == nil then
GameHelpers.Data = {}
end
local ClientCharacterData = Classes.ClientCharacterData
---@class LEVELTYPE
LEVELTYPE = {
GAME = 1,
CHARACTER_CREATION = 2,
LOBBY = 3,
EDITOR = 4,
}
---@class GAMEMODE
GAMEMODE = {
CAMPAIGN = 1,
ARENA = 2,
GAMEMASTER = 3
}
local UserIds = {}
---@cla... |
local Cam = {}
Cam.Name = "Cinematic"
Cam.CamChangeDel = CurTime()
Cam.CurCam = 1
Cam.LastCam = 1
Cam.NrOfCams = 7
Cam.CamFuncs = {}
Cam.LookPos = Vector(0,0,0)
Cam.newAng = Angle(0,0,0)
Cam.newPos = Vector(0,0,0)
function Cam:Init()
end
function Cam:FirstPerson(ply, pos, ang, fov, SCar, veh)
return Cam:Cinemati... |
C_LevelSquish = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_LevelSquish.ConvertFollowerLevel)
---@param level number
---@param maxFollowerLevel number
---@return number squishedLevel
function C_LevelSquish.ConvertFollowerLevel(level, maxFollowerLevel) end
---[Documentation](https://wowpedia.fandom.co... |
local Behavior = CreateAIBehavior("VtolAttack", "HeliAttack",
{
Alertness = 2,
}) |
-- Describes the cRankManager class API
return
{
cRankManager =
{
Desc = [[
Manages the players' permissions. The players are assigned a single rank, which contains groups of
permissions and restrictions. The functions in this class query or modify these.</p>
<p>
All the functions are static, call them... |
return {
prototype = "resources.levels.level",
entities = {
{
title = "Camera",
components = {
transform = {},
viewport = {},
camera = {
transform = {0, 0, 0, 24},
},
},
},
{
components = {
transform = {
transform = ... |
--[[
Collision Shape reference:
1 = __
|__|
2 = /|
/__|
3 = |\
|__\
4 = __
| /
|/
5 = __
\ |
\|
]]
return {
image = "street1.gif";
tilesize = 16; -- not actually used, just for legacy
tiles = {
{x=0, y=1, colshape=0};
{x=1, y=1, colshape=1};
... |
๏ปฟ-- Import SM for statusbar-textures, font-styles and border-types
local SharedMedia = LibStub("LibSharedMedia-3.0");
-- Default settings
local default = {
controlledChildren = {},
anchorPoint = "CENTER",
xOffset = 0,
yOffset = 0,
frameStrata = 1,
border = false,
borderColor = {1.... |
local state = {
students = {},
source_constant = "192.168.1.69"
}
local function send_core_page(sck)
local response = { "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" }
response[#response + 1] = "<head>"
response[#response + 1] = "<link href='https://unpkg.com/tailwindcss@^1.0/dist/tailwind.m... |
-- functions
local function setTextColour(color)
if term.isColor() then
term.setTextColour(color)
end
end
local function question(_question)
if _question == nil then else
setTextColour(colors.orange)
term.write(_question.."? [")
setTextColour(colors.lime)
term.write(... |
LinkLuaModifier("modifier_item_moon_crest_passive", "items/neutral/moon_crest.lua", LUA_MODIFIER_MOTION_NONE)
item_moon_crest = class(ItemBaseClass)
function item_moon_crest:GetIntrinsicModifierName()
return "modifier_item_moon_crest_passive"
end
--------------------------------------------------------------------... |
-- kernels
local updateKernels = {}
updateKernels[1] = function(diffCoeff, dxCells, qTL, qT, qTR, qL, q, qR, qBL, qB, qBR, kerOut)
local dx, dy = dxCells[1], dxCells[2]
local Dxx, Dxy, Dyy, Dyx = diffCoeff.Dxx, diffCoeff.Dxy, diffCoeff.Dyy, diffCoeff.Dxy
kerOut[1] = (0.3333333333333333*qTR[4]*Dyx)/(dx*dy)+(0... |
local eonz = require 'eonz'
local table = eonz.pf.table
local string = eonz.pf.string
local Stream = eonz.class "eonz::lexer::Stream"
do
function Stream:init(list, index)
self._l = assert(list)
self._i = index or 1
end
function Stream:clone()
return Stream(self._l, self._i)
end
function Stream:list(i)
... |
if game:GetService("RunService"):IsServer() then
return require(script.server)
else
local server = script:FindFirstChild("server")
if server then
server:Destroy()
end
return require(script.client)
end
|
--=========== Copyright ยฉ 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: trigger_transition
--
--==========================================================================--
entities.require( "trigger" )
class "trigger_transition" ( "trigger" )
function trigger_transition:trigger_transition()
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.