content stringlengths 5 1.05M |
|---|
-- Teste le deep sleep !
-- s'endore pendant xx secondes après xx secondes
-- ATTENTION: il faut connecter la pin 0 à la pin RESET avec une résistance de 1k !
print("\n dsleep.lua zf181211.0018 \n")
f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end
function dsleep_on()
print("timer dsleep on..... |
local AmbushRaiders_getPossibleMissions = MissionBulletins.getPossibleMissions
function MissionBulletins.getPossibleMissions()
local station = Entity()
local stationTitle = station.title
local scripts = AmbushRaiders_getPossibleMissions()
--Everything but factories, basically.
local _Tokens = {
"Ha... |
local local0 = 0.4
local local1 = 0 - local0
local local2 = 0 - local0
local local3 = 2.3 - local0
local local4 = 0 - local0
local local5 = 0 - local0
local local6 = 0 - local0
local local7 = 0 - local0
local local8 = 0 - local0
function OnIf_210000(arg0, arg1, arg2)
if arg2 == 0 then
EyeCollector_Boss21002... |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id map.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/09/07 19:28
- @uses The m... |
#!/usr/bin/env luajit
-- binary solution
local bit=require"bit"
local band,bor=bit.band,bit.bor
local function hanoi(n)
local even=(n-1)%2
for m=1,2^n-1 do
io.write(m,":",band(m,m-1)%3+1, "→", (bor(m,m-1)+1)%3+1, " ")
end
end
local num=arg[1] and tonumber(arg[1]) or 4
hanoi(num)
|
AmmoCrateMP = {
type = "AmmoCrateMP",
-- Based from the SP AmmoCrate
Client = {},
Server = {},
Properties = {
fileModelOverride = "",
teamId = 0, -- 0 means team is ignored
bEnabled = 0,
NumUsagesPerPlayer = 1,
GroupId = "",
audioSignal = -1,
Ammo =
{
GiveClips = 1,
bRefillWeaponAmm... |
local cjson = require("cjson")
local constants = require "kong.constants"
local M = {}
local function parseFilters(csvFilters)
local filters = {}
if (not (csvFilters == nil)) and (not (csvFilters == ",")) then
for pattern in string.gmatch(csvFilters, "[^,]+") do
table.insert(filters, pattern)
end
... |
local player_inventory = {}
function creative.init_creative_inventory(player)
local player_name = player:get_player_name()
player_inventory[player_name] = {
size = 0,
filter = "",
start_i = 0
}
minetest.create_detached_inventory("creative_" .. player_name, {
allow_move = function(inv, from_list, from_inde... |
slot0 = require("jit")
slot1 = require("jit.profile")
slot2 = require("jit.vmdef")
slot4 = pairs
slot5 = ipairs
slot6 = tonumber
slot7 = math.floor
slot8 = table.sort
slot9 = string.format
slot10 = io.stdout
slot11, slot12, slot13, slot14, slot15, slot16, slot17, slot18, slot19, slot20, slot21, slot22, slot23 = nil
slo... |
while wait(1) do
self = script.Parent
c = workspace.CurrentCamera
player = game.Players.LocalPlayer
char = player.Character or player.CharacterAdded:wait()
humanoid = char:WaitForChild("Humanoid")
function ok()
humanoid.CameraOffset = Vector3.new(0,0,-1.2)
end
function ok2()
humanoid.CameraOffset = Vector3.new(0,-1,-1... |
-- @description Nearest Regions Edges To Items
-- @author Aaron Cendan
-- @version 1.0
-- @metapackage
-- @provides
-- [main] . > acendan_Set nearest regions edges to selected media items.lua
-- @link https://aaroncendan.me
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~~~~~~~~~~ GLOBAL VARS ~~~~~~~~~~
-- ~~~~~~~~~~~~~~... |
-- ===========================================================================
-- World Icon Manager
-- Handles showing world icons (e.g., resources) on the map.
-- May be moved to PlotInfo.lua
-- ===========================================================================
include( "InstanceManager" );
include( "Suppo... |
local f = require 'mp.f'
local N = 15000
f.precision = math.ceil(N/math.log(2,10))
local a, b, t = f(1), f():sqrt(.5), f(.25)
local tmp = f()
for i = 0, 15 do
tmp: add(a, b)
tmp: div_2exp(tmp, 1)
b: mul(a, b)
b: sqrt(b)
a: swap(tmp) -- tmp is now old a
tmp: sub(tmp, a)
tmp: mul(tmp, tmp)
tmp: mul_2exp(tmp, i... |
workspace "Octane"
architecture "x64"
systemversion "latest"
startproject "GXSystem"
outputDir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}"
includeDir = {}
includeDir["Deps"] = "GXSystem/Deps/include"
includeDir["thirdparty"] = "GXSystem/Third-Party"
libDir = {}
libDir["SDL_Windows"] = "GXSystem/Deps/lib/... |
----------------------------------------------------------------------------------------------------
-- Client Lua Script for RaidCore Addon on WildStar Game.
--
-- Copyright (C) 2015 RaidCore
----------------------------------------------------------------------------------------------------
--------------------------... |
D3View=Core.class(Sprite)
function D3View:init(sw,sh,fov,near,far)
self.view=Viewport.new()
self.projection=Matrix.new()
self.fov=fov or 45
self.near=near or 0.1
self.far=far or 1000
self:setSize(sw or 1,sh or 1)
self.scene=Sprite.new()
self.view:setContent(self.scene)
self:addChild(self.view)
end
function D... |
-- requires luaposix have to include in our luarocks def
-- local stdlib = require("posix.stdlib")
-- CUDA: Current focus is on f1f2opf3
-- require all the root operator files
require "Q/OPERATORS/MK_COL/lua/mk_col"
require "Q/OPERATORS/LOAD_CSV/lua/load_csv"
require "Q/OPERATORS/PRINT/lua/print_csv"
require "Q/UTILS/l... |
----------------------------------------------------------------------
-- A utility module containing Torch-based functions for editing
-- tensors, normalization, and other purposes.
-- @author John Bucknam
-- @license MIT
-- @module Torch-Utilities
-----------------------------------------------------------------... |
PROJECT = "miniz"
VERSION = "1.0.0"
local sys = require "sys"
local s_str = "Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! "
sys.taskInit(
function()
log.info("SRC_STR",s_str)
log.info("SRC_LEN",s_str:len())
cdata, clen = miniz.compress(s_str)
... |
--Pelicula del intro |
local module = {}
module.eof = function() return {type="EOF"} end
module.newline = function() return {type="newline"} end
module.identifier = function() return {type="identifier"} end
module.number = function() return {type="number"} end
module.operator = function(o_type, o, pred) return {type="operator",op=o,op_type=... |
format_version = "1.0"
rtc_bindings = {
-- this will initialize the C++ object
{ source = "/environment/system_sample_rate", dest = "/global_rtc/init_instance" },
}
global_rtc = {
init_instance = function(source_property_path, new_value)
local sample_rate = jbox.load_property("/environment/system_sample_rat... |
--- 模块功能:格式化字符串功能测试.
-- @author openLuat
-- @module formatString.testFormatString
-- @license MIT
-- @copyright openLuat
-- @release 2018.03.27
module(...,package.seeall)
require"common"
require"utils"
--[[函数名:bittese
功能:介绍bit库的使用,并打印出来
返回值:无--]]
local function bittest()
print("bittest:") --程序运行开始标... |
local cudnnBinarySpatialConvolution, parent =
torch.class('cudnnBinarySpatialConvolution', 'cudnn.SpatialConvolution')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
local autotunerCache = {}
autotunerCache[1] = {} -- forward
autotunerCache[2] = {} -- backwardFilter
autotunerCache[3] = {} -- backwardDat... |
local objects =
{
createObject(3055,1385.0146500,1468.0957000,9.8545800,90.0000000,179.9950000,90.0000000, 45), --object(kmb_shutter) (2)
createObject(3055,1382.0859400,1468.0576200,10.2989200,0.0000000,0.0000000,90.0000000, 45), --object(kmb_shutter) (5)
createObject(3055,1384.2841800,1479.0000000,10.2989200,0.000... |
-- 5 added separate metatables for each dataobject to skip a function call and 2 lookups in attribute reads.
local MAJOR, MINOR = "LibDataBroker-1.1", 6
assert(LibStub, "LibDataBroker-1.1 requires LibStub")
LibStub("CallbackHandler-1.0", nil, MAJOR)
local LibDataBroker, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if ... |
require "lib.classes.class"
require "Global.application.application"
local NullControl = require "Overworld.ctrl.controls.NullControl"
--------------------------------------------------------------------------------------------------------
-- class: RegularControl
-- param: ctrl:Ctrl -> the controller of the overworld... |
local tick_to_timestring = require "tick_to_timestring"
local function row(mark)
local tick = mark.tick
local timestamp = tick_to_timestring(mark.tick)
local name = mark.name
local param = mark.param
local value = mark.value
local tickStr = "<td>" .. tostring(tick) .. "</td>\n"
local timestampStr = "<td>" .. t... |
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local M = {
-- 类型和id
name = "",
id = 0,
-- 回调函数
exit = nil,
init = nil,
-- 分发方法
resp = {}
}
local function arg2str(...)
local argstr = ""
print(select("#",...))
for i=1,select("#",...) do
loc... |
------------------------------------------------------------------------------
-- LuaFAR Search --
------------------------------------------------------------------------------
local Guid = 0x8E11EA75
local function LFS_Editor(...) Plugin.Call(Guid, "own", "editor", ...) end
local function LFS_Panels(...) Plugin.Cal... |
local Event = require('__stdlib__/stdlib/event/event')
local Position = require('__stdlib__/stdlib/area/position')
local tables = {}
tables.tick_options = {
skip_valid = true,
protected_mode = false
}
tables.protected = {
protected_mode = Event.options.protected_mode,
skip_valid = true
}
tables.empty ... |
local util = require "util"
local VeryNginxConfig = require "VeryNginxConfig"
local scheme_lock = require "scheme_lock"
local redirect = require "redirect"
local uri_rewrite = require "uri_rewrite"
if ngx.var.vn_exec_flag and ngx.var.vn_exec_flag ~= '' then
util.ngx_ctx_load()
return
end
--At first , make sur... |
--------------------------------------------------------------------------------
--Options
--------------------------------------------------------------------------------
local ChargeSortedBags = Apollo.GetAddon("ChargeSortedBags")
local Designs = {
[1] = "AbilitiesSprites:spr_StatVertProgBase",
[2] = "CRB_Ba... |
local __exports = LibStub:NewLibrary("ovale/Pool", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local assert = assert
local tostring = tostring
local wipe = wipe
local insert = table.insert
local remove = table.remove
local format = string.format
__exports.OvalePool = __c... |
print("Fire Script has loaded! Coded by Rjross2013")
-- RegisterServerEvent("lol:startfire")
-- AddEventHandler("lol:startfire", function( x , y , z , args, p)
-- TriggerClientEvent("chatMessage", p, "LOL ", {255, 0, 0}, "it got to server.")
-- maxChilds = args[1]
-- isGas = args[2]
-- gasFire = false
-- if (isGa... |
local AluraMasterLoot = {
tRaiders = {},
tLootList = {},
tSave = {
tRanks = {},
bRaidOnly = false,
nVScrollPos = 0,
nSortColumn = 0,
bSortAscending = true,
nRollSeconds = 16,
}
}
local knColumns = string.byte("R") - string.byte("A") + 1
local knNameColumn = string.byte("A") - strin... |
return {
"000_base_acme",
}
|
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("tinyproxy", translate("Tinyproxy"),
translate("Tinyproxy is a small and fast non-caching HTTP(S)-Proxy"))
s = m:section(TypedSection, "tinyprox... |
DummyPoint = Object:extend()
function DummyPoint:new(x, y)
self.x = x
self.y = y
end
function DummyPoint:update(dt)
end
function DummyPoint:isColliding()
return true
end
function DummyPoint:draw()
love.graphics.setColor(1, 1, 0)
love.graphics.circle("line", self.x, self.y, 3)
end
|
local http = require("http"):new()
local json = require("rapidjson")
http.useProxy = true
http:setProxy("192.168.0.103", 8888)
print(json.encode({1,http.useProxy, http.proxy}))
print("start async get")
http:postAsync("http://192.168.0.100/", 'hello world')
res = http:waitAll()
for i,v in ipairs(res) do
print("--------... |
Menu.Checkbox("Start GIF", "cGIFStart")
Menu.InputText("GIF Name", "cGIFName", "")
Menu.Checkbox("Load GIF", "cGIFLoad")
Menu.InputInt("Playback FPS", "cGIFFPS", 30)
Menu.Spacing()
Menu.Spacing()
Menu.InputInt("x Size", "cGIFx", 512)
Menu.InputInt("y Size", "cGIFy", 512)
--Startup
Print("--------------------... |
log = {
is_debug = false,
is_info = true,
is_warn = true,
is_error = true,
uart_id = 0,
}
log_file = {
enabled = true,
file_name = "utils.log",
max_lines = 10000
}
local line_cnt = 0
local file_ref = nil
local function open_file()
file_ref = file.open(log_file.file_name, "a+")
end... |
--[[
Synapse Xen v1.1.2 by Synapse GP
VM Hash: b9b65aed3fe19a4a77253a59f45174535d28642e3457ea222a20da78166cda1f
]]
local SynapseXen_lilIIIl=select;local SynapseXen_IlllIiIllIIIl=string.byte;local SynapseXen_IliIIliIIliilIIlil=string.sub;local SynapseXen_ilIlilIiiillilllI=string.char;local SynapseXen_ililliilIi... |
local ffi = require("ffi");
ffi.cdef[[
int32_t memcmp(const void* buff1, const void* buff2, size_t count);
]];
local pack = {};
local PackState = {
COMPLETE = 0,
READY_TO_TRADE = 1,
AWAITING_TRADE_RESPONSE = 2,
AWAITING_MENU_STATUS = 3,
AWAITING_MENU_COMPLETION = 4
};
local MenuIdByZone = {
... |
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
EN... |
return {
name = "Lautenschlager-id/transfromage",
version = "3.0.0",
homepage = "https://github.com/Lautenschlager-id/Transfromage",
dependencies = {
"creationix/base64",
"creationix/coro-http",
"luvit/secure-socket",
"luvit/net"
},
tags = { "transformice", "bot", "game", "api", "lua", "luvit", "fromage",... |
-- const { utils, consts } = require('../lora-lib');
-- const BluebirdPromise = require('bluebird');
-- const DUTYCYCLEREQ_PARAM = consts.DUTYCYCLEREQ;
-- module.exports = function (devAddr, MaxDCycle) {
-- let _this = this;
-- return new BluebirdPromise((resolve, reject) => {
-- if (typeof (MaxDCycle) !== 'n... |
------------------------------------------------------------------------------
-- LuaFAR Search --
------------------------------------------------------------------------------
local Guid = "8E11EA75-0303-4374-AC60-D1E38F865449"
local function LFS_Editor(...) Plugin.Call(Guid, "own", "editor", ...) end
local function... |
module("shadows.Functions", package.seeall)
Shadows = require("shadows")
local sqrt = math.sqrt
local min = math.min
local max = math.max
function Shadows.Normalize(v)
local LengthFactor = 1 / sqrt( v[1] * v[1] + v[2] * v[2] )
return {
v[1] * LengthFactor,
v[2] * LengthFactor
}
end
function Shado... |
describe('interpret.Interpreter', function()
local scan = require 'scan.scan'
local parse = require 'parse.parse'
local Interpreter = require 'interpret.Interpreter'
local Resolver = require 'resolve.Resolver'
local match = require 'luassert.match'
assert:register('matcher', 'tostringable_to', function(sta... |
--settings
totalDt = 0
firstUpdate = true
entering = true
transitting = false
levelName = ""
levelPref = ""
cam = nil
function Constructor()
GO = owner
transit = GetLayer("Transition"):GetObject("Transition"):GetLuaScript("UIFade.lua")
camObj = owner:GetLayer():GetObject("MainCamera")
if (camObj ~= nil) then... |
--[[lit-meta
name = "creationix/coro-spawn"
version = "3.0.0"
dependencies = {
"creationix/coro-channel@3.0.0"
}
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-spawn.lua"
description = "An coro style interface to child processes."
tags = {"coro", "spawn", "child", "process"}
license ... |
require "ISUI/ISCollapsableWindow"
---@class ISBBQInfoWindow : ISCollapsableWindow
ISBBQInfoWindow = ISCollapsableWindow:derive("ISBBQInfoWindow")
ISBBQInfoWindow.windows = {}
function ISBBQInfoWindow:createChildren()
ISCollapsableWindow.createChildren(self)
self.panel = ISToolTip:new()
self.panel.followMouse = fa... |
--[[
Purpose: The framework needs to define this so the schemas can reference
the framework without AdvNut.BaseClass since it the baseclass is not defined in time.
--]]
-- Set this since self.BaseClass for schemas aren't created in time.
AdvNut = AdvNut or GM;
nut = AdvNut or GM;
-- A table of vgui elements. This i... |
local tex_base = "water\\water_ryaska1"
local tex_nmap = "water\\water_normal"
local tex_dist = "water\\water_dudv"
local tex_env0 = "$user$sky0" -- "sky\\sky_8_cube"
local tex_env1 = "$user$sky1" -- "sky\\sky_8_cube"
function n... |
client_scripts {
"functions.lua",
"guns-c.lua"
} |
-- tintinabulli piece for SFZ strings
-- more explanations on tintinabuli script
-- you must set your SFZ path in SOSpath
----------- synthdefs --------------------------
SynthDef("dwgreverb", { busin=0, busout=0,c1=4,c3=4,len=1200,mix = 1},function()
local source=Mix(In.ar(busin,2));
--source = DWGReverb.ar(source... |
chestfunctions = require("scenarios/chestfunctions")
local function OnCreate(inst, scenariorunner)
local items =
{
{
item = "cutgrass",
count = 30,
},
{
item = "log",
count = 20,
},
{
item = "flint",
count = 10,
},
{
item = "twigs",
count = 30,
},
{
item = "rocks",
... |
local Collections = require("Collections")
local Functor = require("Functor")
local waitForCondition = {}
setmetatable(waitForCondition, {
__call = function(self, ...)
return self:create(...)
end,
})
local waitForCondition_mt = {
__index = waitForCondition;
}
function waitForCondition.init(self, scheduler)
l... |
local lightstone_rules = {
{x=0, y=0, z=-1},
{x=1, y=0, z=0},
{x=-1, y=0, z=0},
{x=0, y=0, z=1},
{x=1, y=1, z=0},
{x=1, y=-1, z=0},
{x=-1, y=1, z=0},
{x=-1, y=-1, z=0},
{x=0, y=1, z=1},
{x=0, y=-1, z=1},
{x=0, y=1, z=-1},
{x=0, y=-1, z=-1},
{x=0, y=-1, z=0},
}
function mesecon.lightstone... |
#!/usr/local/bin/lua
local read = require('CyberlandRead')
local post = require('CyberlandPost')
local status = require('CyberlandStatus')
read.filter("~/.config/cyberland.lua/filter")
function main()
if arg[1] and arg[1] == "read" then
if #arg == 3 and tonumber(arg[3]) then
read.showLastL... |
local class = require "lib.middleclass"
local Bullet = class("Bullet")
function Bullet:initialize(x, y, width, height, world, collisionWorld)
self.world = world
self.position = {x = x, y = y}
self.velocity = {x = 4, y = 0}
self.aabb = {width = width, height = height, world = collisionWorld}
self.... |
function SCHEMA:CanCreateCharInfo()
return {
faction = true,
}
end
hook.Add("BuildHelpMenu", "nutBasicHelp", function(tabs)
tabs["commands"] = function(node)
local body = ""
for k, v in SortedPairs(nut.command.list) do
local allowed = false
if (v.adminOnly and !LocalPlayer():IsAdmin()or v.superAdminOn... |
local playsession = {
{"danyal_knights", {188142}},
{"Scuideie-Guy", {215034}},
{"Giatros", {5325}},
{"stevern", {174348}},
{"Ar_enerit", {151076}},
{"SergLevua", {440}},
{"DistortionUltra", {10594}},
{"tykak", {38683}},
{"Zorzzz", {90066}},
{"Eriksonn", {16748}},
{"Nikkichu", {18691}},
{"Jhumekes", {64366}... |
local Chunk = class("Chunk")
function Chunk:initialize()
self.children = {}
end
return Chunk
|
{
ident=1243000,
sort=1243000000,
group=1243,
features=ASSEMBLER|COMMAND|GENERATOR|MELEE|TELEPORTER|THRUSTER|TORQUER|TRACTOR,
name=_("_text_b10_tech")_("_bl")_("_text_capsule"),
blurb=_("_blurb_B10Capsule"),
shape=COMMAND,
fillColor=0x821d28,
fillColor1=0x39347a,
lineColor=0x252b46,
command={
... |
slot0 = class("WorldFleetSelectLayer", import("..base.BaseUI"))
slot0.getUIName = function (slot0)
return "WorldFleetSelect"
end
slot0.init = function (slot0)
slot0.rtBg = slot0._tf:Find("bg")
slot1 = nowWorld:GetRealm()
eachChild(slot0.rtBg, function (slot0)
setActive(slot0, slot0.name == tostring(slot0))
en... |
local _, core = ...
core.Config = {}
local Config = core.Config
local UIConfig
local defaults = {
theme = {
r = 0,
g = 0.8, -- 204/255
b = 1,
hex = "00ccff"
}
}
function Config:Toggle()
local menu = UIConfig or Config:CreateMenu()
menu:SetShown(not menu:IsShown())
end
function Config:GetThemeColor()
l... |
--
-- Ion mod_sp configuration file
--
defbindings("WScreen", {
bdoc("Toggle scratchpad."),
kpress(META.."space", "mod_sp.set_shown_on(_, 'toggle')"),
-- A more ideal key for toggling the scratchpad would be the key left of
-- the key for numeral 1. Unfortunately the symbols mapped to this key
-- ... |
module("luci.controller.unblockmusic", package.seeall)
function index()
if not nixio.fs.access("/etc/config/unblockmusic") then
return
end
entry({"admin", "services", "unblockmusic"},firstchild(), _("解锁网易云灰色歌曲"), 50).dependent = false
entry({"admin", "services", "unblockmusic", "general"},cbi("unblockmusic")... |
local skynet = require "skynet"
require "skynet.manager"
local socket = require "skynet.socket"
local anysocket = require "anysocket"
local crypt = require "skynet.crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes ... |
local firstSpawn, PlayerLoaded = true, false
isDead, isSearched, medic = false, false, 0
ESX = nil
AddEventHandler("onClientMapStart", function()
exports.spawnmanager:spawnPlayer()
Citizen.Wait(5000)
exports.spawnmanager:setAutoSpawn(false)
end)
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent(... |
local cmd = {}
cmd.title = "Explode"
cmd.description = "Explode a player."
cmd.author = "Nub"
cmd.timeCreated = "Wednesday, May 20 2020 @ 10:47 PM CST"
cmd.category = "Fun"
cmd.call = "explode"
cmd.usage = "<player>"
cmd.server = function(caller, args)
local targs = nadmin:FindPlayer(args[1], caller, nadmi... |
--[[
Functions to remove jobs.
]]
-- Includes
--- @include "batches"
local function getListItems(keyName, max)
return rcall('LRANGE', keyName, 0, max - 1)
end
--- @include "getZSetItems"
--- @include "removeJob"
local function removeJobs(keys, hard, baseKey, max)
for i, key in ipairs(keys) do
removeJob(ke... |
local libplan = require("libplan")
local libnav = require("libnav")
local robot = require("robot")
local util = require("util")
local component = require("component")
util.init()
local ico = component.inventory_controller
local args = { ... }
local function help()
print("Usage:")
print(" dump")
print(" Dump... |
local dataforms_new = require "util.dataforms".new;
local usermanager_set_password = require "core.usermanager".set_password;
local usermanager_test_password = require "core.usermanager".test_password;
local jid_split = require"util.jid".split;
local close_others = module:get_option_boolean("close_sessions_on_password_... |
--# selene: allow(almost_swapped, divide_by_zero, duplicate_keys, empty_if, global_usage, if_same_then_else, ifs_same_cond, multiple_statements, mismatched_arg_count, parenthese_conditions, roblox_incorrect_color3_new_bounds, roblox_incorrect_roact_usage, shadowing, incorrect_standard_library_use, suspicious_reverse_lo... |
local mod = get_mod("MutatorsSelector")
local mod_data = {
name = mod:localize("mod_name"),
description = mod:localize("mod_description"),
is_togglable = true,
}
mod:hook("Localize", function(func, id, ...)
if not id then return end
local localized = func(id, ...)
if string.find(localized, "<") == 1 then
... |
-- Allium by hugeblank
-- Dependency Loading
local raisin, color, semver, mojson = require("lib.raisin"), require("lib.color"), require("lib.semver"), require("lib.mojson")
-- Internal definitions
local allium, plugins, group = {}, {}, {thread = raisin.group(1) , command = raisin.group(2)}
-- Executing path
local pa... |
local comp = {}
local strict = require(script.Util.Strict)
for _, module in ipairs(script.Components:GetChildren()) do
if module:IsA("ModuleScript") then
comp[module.Name] = require(module)
end
end
return strict(comp) |
--| VyonEXE
--| Services
local plrs = game:GetService('Players')
--| Modules
local tM = require(script.touchModule)
--| Locals
local Parts = workspace.gameObjects.Parts
local hotelSections = workspace.gameObjects.HotelSections
local RHH = Parts.RHH
local DM = hotelSections['RHH_Hotel|DarkMatter']
local FM = hotelSec... |
dofile('../object/objects.lua')
dofile('../util/draw-box.lua')
function objectHpHud()
for i,obj in ipairs(objects) do
if (obj.isAlive() and obj.getHp() > 0) then
for hp = 0, obj.getHp() - 1 do
drawBox(obj.getX() + hp * 4, obj.getY(), 4, 4, 'Black', 'Green')
end
end
end
end
if (not hud)... |
local _ = require "cosy.util.string"
local Configuration = require "cosy.server.configuration"
local Status = require "cosy.server.status"
local coroutine = require "coroutine.make" ()
local json = require "cjson"
local logger = Configuration.logger
local scheduler = Config... |
-- GMod Enum Dump
CONTINUOUS_USE=0
ONOFF_USE=1
DIRECTIONAL_USE=2
SIMPLE_USE=3
ACT_RUN_SCARED=111
ACT_VM_IDLE_DEPLOYED_5=538
ACT_MP_PRIMARY_GRENADE1_IDLE=1278
ACT_DOD_SPRINT_IDLE_PSCHRECK=793
ACT_MP_RELOAD_SWIM=1031
ACT_TURN_RIGHT=44
ACT_HL2MP_SWIM_AR2=1816
ACT_SLAM_DETONATOR_STICKWALL_DRAW=265
ACT_MP_ATTACK_CROUCH_PR... |
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
vim.cmd 'autocmd Bu... |
-- Original junit.lua here:
-- https://raw.githubusercontent.com/Olivine-Labs/busted/master/busted/outputHandlers/junit.lua
-- Original plain terminal here:
-- https://github.com/Olivine-Labs/busted/blob/master/busted/outputHandlers/plainTerminal.lua
local xml = require 'pl.xml'
local string = require("string")
local i... |
local EaseUI = require(script:GetCustomProperty("EaseUI"))
local Gradient = script:GetCustomProperty("Gradient"):WaitForObject()
local TextBG = script:GetCustomProperty("TextBG"):WaitForObject()
local BottomFrame = script:GetCustomProperty("BottomFrame"):WaitForObject()
local TopFrame = script:GetCustomProperty("TopFra... |
local Library = require "CoronaLibrary"
-- Create library
local lib = Library:new{ name='plugin.openudid', publisherId='com.coronalabs' }
lib.getValue = function()
print( "WARNING: The 'plugin.openudid' library is not available on this platform." )
print( "WARNING: openudid.getValue() will not return a unique value... |
local S = technic.getter
minetest.register_tool("technic:treetap", {
description = S("Tree Tap"),
inventory_image = "technic_tree_tap.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= "node" then
return
end
local pos = pointed_thing.under
if minetest.is_protected(pos, user... |
--[[
Title: Local Service Filter
Author(s): Big
Date: 2021.04.16
Desc:
use the lib:
------------------------------------------------------------
local LocalServiceFilter = NPL.load('(gl)Mod/WorldShare/filters/service/LocalService/LocalServiceFilter.lua')
LocalServiceFilter:Init()
-------------------------------------... |
return { sharp = { 6, 7, 38, 16 }, sharpp = { 6, 7, 38, 18, 9 } } |
local rex = client.regex
-- basiert urspruenglich auf reduce.tf aus TinyMacros:
-- https://github.com/jexp/TinyMacros
-- (dem Nachfolger von Ringors legendaerem kampfmeldungen.tf)
-- BEDEUTUNG DER AUSGABE
-- ---------------------
-- ________ Rueckendeckung
-- | _______ Parade / Schildparade
-- || ______ Waffe
-- ||... |
--[[
ExtendedManager.lua
--]]
local ExtendedManager, dbg, dbgf = Manager:newClass{ className='ExtendedManager' }
--[[
Constructor for extending class.
--]]
function ExtendedManager:newClass( t )
return Manager.newClass( self, t )
end
--[[
Constructor for new instance object.
--]]
fun... |
-- with this you can turn on/off specific anticheese components, note: you can also turn these off while the script is running by using events, see examples for such below
Components = {
Teleport = true,
GodMode = true,
Speedhack = true,
WeaponBlacklist = true,
CustomFlag = true,
Explosions = true,
CarBlacklist ... |
room {
nam = "couloir1";
disp = "Коридор";
dsc=[[Куда теперь?]];
onenter = function()
if not have ("Лейка") and not have ("Лейка с водой") then
walkin ("couloir2");
return false
end;
end;
decor=function(s,w)
if have "Бутерброд" then
p[[... |
local battery = {}
local wibox = require("wibox")
local awful = require("awful")
local gears = require("gears")
local naughty = require("naughty")
local lfs = require("lfs")
local timer = gears.timer or timer
local lgi = require("lgi")
local cairo = lgi.require("cairo")
local function draw_glow(cr, x, y, w, h, r, g... |
local game = {}
game.MENU_SCREEN_REGION = Region(2100,1200,1000,1000)
game.CONTINUE_REGION = Region(1400,1000,600,200)
game.MENU_SELECT_QUEST_CLICK = Location(2290,400)
game.MENU_START_QUEST_CLICK = Location(2400,1350)
game.CONTINUE_CLICK = Location(1650,1120)
game.MENU_STORY_SKIP_REGION = Region(2240,20,300,120)
game... |
-----------------------------------------------------------
-- Guardian- A Simple FiveM Script, Made By Jordan.#2139 --
-----------------------------------------------------------
-------------------------------------------------------
-- CONFIG YOUR PERIPHERALS HERE! --
---------------------------... |
#!/usr/bin/env luajit
-- Tupperware
-- Skye Soss 2018
local ffi = require 'ffi'
local M = {}
M.endl = ffi.os == "Windows" and "\r\n" or "\n"
function M.printf(fmt, ...)
io.stdout:write(string.format(fmt, ...))
end
function M.fprintf(file, fmt, ...)
file:write(string.format(fmt, ...))
end
function M.fata... |
env = require('test_run')
test_run = env.new()
test_run:cmd('create server vinyl_info with script="vinyl/vinyl_info.lua"')
test_run:cmd("start server vinyl_info")
test_run:cmd('switch vinyl_info')
space = box.schema.space.create('test', { engine = 'vinyl' })
index = space:create_index('primary', { type = 'tree', part... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.