content stringlengths 5 1.05M |
|---|
ITEM.name = "Request Device"
ITEM.desc = "A device used to communicate with Civil Protection."
ITEM.model = "models/gibs/shield_scanner_gib1.mdl"
ITEM.price = 25
ITEM.permit = "misc" |
-- © 2021 Emmanuel Lajeunesse
-- Modules
local Utility = require(script.Parent.Parent.Parent.Utility)
-- Base
local GizmoBase = require(script.Parent.GizmoBase)
-- Constants
local VERTICAL_PADDING = 6
-- Module
local GizmoSeparator = {}
--
function GizmoSeparator.new(Gui, Name, ParentAPI, Color, Height)
-- De... |
local validDrivebyWeapons = { [22]=true,[23]=true,[24]=true,[25]=true,
[26]=true,[27]=true,[28]=true,[29]=true,[32]=true,[30]=true,[31]=true,
[32]=true,[33]=true,[38]=true }
function setDriverDrivebyAbility ( ... )
local newTable = {...}
for key,weaponID in ipairs(newTable) do
if not validDrivebyWeapons[weaponID]... |
-- This module mainly serves as a safe way to check
-- if cLuaCov is present - the other modules are written
-- in C and may easily error on load due to a missing symbol,
-- for instance, leaving the caller of `require` thinking that
-- they are missing.
return "0.1.1"
|
describe("carbonvfs", function()
local vfs = dofile("init.lua")
describe("should check if path is relative given", function()
local paths = {}
paths["/test"] = false
paths[".."] = true
paths["../a/"] = true
paths["/butter"] = false
for path, expected in pairs(paths) do
it(path .. ", returning "..tos... |
------------------------------------------------------------------
-- common.lua
-- Author : ChenJM
-- Version : 1.15
-- Date :
-- Description: 通用类,包含字体,颜色,适配位置等,
------------------------------------------------------------------
pWinSize=CCDirector:sharedDirector():getWinSize()
... |
--[[ We can represent a polynomial
a_{n}x^{n} + a_{n-1}x^{n-1} + ... + a_{1}x^{1} + a_{0}
in Lua as a list of its coefficients, such as { a_{0}, a_{2}, ..., a_{n} }
Write a function that receives a polynomial (represented as a table) and a
value for x and returns the polynomial value.
]]--
function poly(a, x)... |
local stat = require("orange.plugins.stat.stat")
local API = {}
API["/stat/status"] = {
GET = function(store)
return function(req, res, next)
local stat_result = stat.stat()
local result = {
success = true,
data = stat_result
}
res:json(result)
end
end
}
API[... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New();
ITEM.name = "ItemCitizenSupplements";
ITEM.uniqueID = "citizen_supplements";
ITEM.model = "models/props_lab/jar01b.mdl";
ITEM.weight = 0.6;
ITEM.useText = "Eat... |
slot0 = class("Transition", import("..base.BaseUI"))
slot0.getUIName = function (slot0)
if not slot0.UIName then
slot0.UIName = slot0.contextData.loadUI
end
return slot1
end
slot0.init = function (slot0)
return
end
slot0.didEnter = function (slot0)
return
end
slot0.onBackPressed = function (slot0)
return
e... |
local mus = {current=nil}
function mus:load()
for n,filename in ipairs(love.filesystem.getDirectoryItems("res/aud/mus")) do
print("Loading",filename)
mus[filename:gsub(".ogg", "")] = love.audio.newSource("res/aud/mus/"..filename, "stream")
end
end
function mus:play(m, loop)
if self[self.cu... |
require "dateformat";
-- df - UTC time without DST
local function isSummerTimeEurope(df)
if df.month < 3 or df.month > 10 then return false end
if df.month > 3 and df.month < 10 then return true end
local previousSunday = df.day - df.dayOfWeek
if df.month == 3 then
if df.day >= 25 and df.dayOfWeek == 1 and df.h... |
local Prop = {}
Prop.Name = "Subs House 3"
Prop.Cat = "House"
Prop.Price = 450
Prop.Doors = {
Vector( 8194.000000, 5649.906250, -12332.000000 ),
Vector( 8386.000000, 5614.000000, -12332.000000 ),
Vector( 8318.000000, 5614.062500, -12332.000000 ),
Vector( 8378.062500, 5506.000000, -12332.000000 ),
Vector( 8826.0000... |
--!A cross-platform build utility based on Lua
--
-- 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... |
local display = false
RegisterCommand("nui", function(source, args) SetDisplay(not display) end)
-- very important cb
RegisterNUICallback("exit", function(data)
chat("exited", {0, 255, 0})
SetDisplay(false)
end)
-- This cb is used as the main route to transfer data back
-- and also where we handle the data s... |
local Prop = {}
Prop.Name = "Highway J&M Glass CO"
Prop.Cat = "Warehouse"
Prop.Price = 1200
Prop.Doors = {
Vector( -1763.9899902344, 12464, 622 ),
Vector( -1766, 12665, 584 ),
}
GM.Property:Register( Prop ) |
class "CommandManager"
function CommandManager:__init()
Events:Subscribe( "PlayerChat", self, self.PlayerChat )
end
function CommandManager:PlayerChat( args )
if (args.text:sub(1, 1) ~= '/') then
return true
end
--print( args.player:GetName() .. " " .. args.text )
return false
end
cm = Command... |
local awful = require "awful"
local wibox = require "wibox"
local gears = require "gears"
local beautiful = require "beautiful"
local dpi = require("beautiful.xresources").apply_dpi
local keys = require "keys"
local config = require "config"
--local mymainmenu = require("widgets.startmenu")
-- Widgets
local mytextcl... |
-- The katamari can pick up all decoratives,
-- but these are the only ones that increase katamari size.
return {
["brown-asterisk-mini"] = 0.2822,
["brown-fluff"] = 0.3525,
["brown-fluff-dry"] = 0.4727,
["garballo"] = 0.5166,
["garballo-mini-dry"] = 0.3906,
["green-asterisk-mini"] = 0.3906,
["green-bush-... |
require "nvim-treesitter.configs".setup {
context_commentstring = {enable = true},
ensure_installed = "all",
highlight = {
enable = true,
additional_vim_regex_highlighting = false
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "gr... |
_G.PrinceViewAutoUpdate = true
_G.PrinceViewVersion = 21.04
load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoK0DXXB6y1KEMAAXmEBAAAAQAAAEFAAACBgAAAwcAAAAEBAQBBQQEAhoFBAMUBAAAGwkEARgJCAIQCAAFLAwAApQMAAEqDg4RKw0KFpUMAAEqDA4algwAASoODhoxDwwYABIAGnUOAAYsDAADAAwAEAAQAA90DAQEXAAGADEXDBoAFAAnDBYAAHYUAAorDBArigwAAYwT+f+XDAAAlBAEAZUQB... |
local PLUGIN = PLUGIN or { };
PLUGIN.AngMod = Angle( 0, 0, 0 )
PLUGIN.MouseSensitive = 20
function PLUGIN:InputMouseApply( cmd, x, y, ang )
if LocalPlayer():GetOverrideSeq() then
self.AngMod = self.AngMod - Angle( -y/self.MouseSensitive, x/self.MouseSensitive, 0 )
self.AngMod.p = math.Clamp( self.AngMod.p, -80, ... |
{
"Name":"Samantha",
"Set":{
"MysteryBox":{
"Laugh":[
"nzu/mysterybox/disappear_flux.wav"
],
"Leave":[
"nzu/announcer/samantha/byebye.wav"
]
},
"Round":{
"SpecialStart":[
"nzu/announcer/samantha/dogstart.wav"
]
},
"Powerups":{
"MaxAmmo":[
"nzu/announcer/samantha/powerups... |
if !gAC.config.ANTI_ANTIAIM then return end
local _CurTime = CurTime
local _IsValid = IsValid
local _hook_Add = hook.Add
local _math_abs = math.abs
local Blacklisted_Weapons = {
["weapon_physgun"] = true,
["gmod_tool"] = true,
["weapon_physcannon"] = true,
["gmod_camera"] = true
}
_hook_Add( "StartCo... |
C_SocialRestrictions = {}
---@return boolean isMuted
---[Documentation](https://wow.gamepedia.com/API_C_SocialRestrictions.IsMuted)
function C_SocialRestrictions.IsMuted() end
---@return boolean isSilenced
---[Documentation](https://wow.gamepedia.com/API_C_SocialRestrictions.IsSilenced)
function C_SocialRestrictions.... |
-- Resurrection status, created by Michael --
local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("Grid2")
local Resurrection = Grid2.statusPrototype:new("resurrection")
local Grid2 = Grid2
local GetTime = GetTime
local UnitExists = UnitExists
local UnitIsDeadOrGhost = UnitIsDeadOrGhost
local UnitHasIn... |
local current_scene = _G.game.scene_manager.current()
current_scene:scene():setSceneScale(2)
-- current_scene:scene():setSceneScale(2, 1) -- 第二个参数是缩放时间 |
local columnByName = {}
local scoreboardColumns = {}
local scoreboardRows = {}
local scoreboardGrid
local updateInterval = 1000 --ms
local visibilityCheckInterval = 500 --ms
local indent = ' '
local playerCount
local localPlayer = getLocalPlayer()
local playerTeam = getPlayerTeam(localPlayer)
local player... |
project "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/intermediate/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs
{
... |
--[[
🔥 Campfire HQ
Created with ❤ and ☕ in Great Britain 👑
🛸 Ranking API Module
✨ You won't find much in here and it's not suggested you modify this script
--]]
script.Parent = game.ServerScriptService
local http = game:GetService("HttpService")
local module = {}
function module.SetRank(token, targetId, g... |
--------------------------------
-- @module ZQCustomAction
-- @extend ActionInterval
-- @parent_module zq
--------------------------------
-- initializes the action
-- @function [parent=#ZQCustomAction] initWithDuration
-- @param self
-- @param #float duration
-- @return bool#bool ret (return value: bool)
... |
#!/usr/bin/env luajit
require 'ext'
op = nil -- make way for _G.op = symmath.op
local env = setmetatable({}, {__index=_G})
if setfenv then setfenv(1, env) else _ENV = env end
require 'symmath'.setup{env=env, MathJax={title='Shallow Water Equations - flux eigenvectors'}}
local delta = Tensor:deltaSymbol() -- Kronecher ... |
-- ITS - In The Shadows
-- Copyright (C) 2015, 2016, 2017 James Niemira
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ve... |
local exports = {}
local string = require("string")
local sax = require("../sax")
exports["parseName1"] = function (test)
local parser = sax.NameParser:new()
local nameEventCount = 0
parser:on("name", function(name)
nameEventCount = nameEventCount + 1
test.equal(name, "a")
end)
parser:react("a")
t... |
--[[
MIT License
Copyright (c) 2021 Michael Wiesendanger
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, mod... |
addCommandHandler( "rolldice",
function ( ps )
if getTeamName(getPlayerTeam(ps)) == "Staff" then
x,y,z = getElementPosition(ps)
for k,v in pairs(getElementsByType("player")) do
x2,y2,z2 = getElementPosition(v)
if getDistanceBetweenPoints3D(x,y,z,x2,y2,z2) <= 300 then
exports.CSGsmithsdx:addTextNot... |
return {'eer','eerbaar','eerbaarheid','eerbejag','eerbetoon','eerbetuiging','eerbewijs','eerbied','eerbiedig','eerbiedigen','eerbiedigheid','eerbiediging','eerbiediglijk','eerbiedsbetuiging','eerbiedwaardig','eerbiedwaardigheid','eerbiedwekkend','eerdaags','eerder','eerdergenoemd','eergevoel','eergierig','eergierigheid... |
local empty = function()
error("go empty struct")
end
local emptyStruct = setmetatable({}, {
__len = empty,
__index = empty,
__newindex = empty,
__metatable = false
})
return {
empty = emptyStruct,
}
|
-- Shorten display filenames in buffer title and switch buffer dialog.
-- On Windows
-- C:\Documents and Settings\username\Desktop\...
-- is replaced with
-- Desktop\...,
-- on Max OS X and Linux
-- /home/username/..
-- or
-- /Users/username/...
-- with
-- ~/...
--
-- Modified from Textadept's
-- [c... |
return {
Auth = 1,
System = 2,
Logic = 3,
}; |
-- config.lua
-- Contains functions for initializing and writing a configuration.
g_Config = {}
local g_LoaderEnv = {}
for Key, Value in pairs(_G) do
if (Key:match("E_.*")) then
g_LoaderEnv[ItemTypeToString(Value)] = Value
end
end
local g_ConfigDefault =
[[
WandItem = woodenaxe,
Limits =
{
ButcherRadius = -1,
... |
local utils = require("utils")
local binfile = require("binfile")
local mapcoder = {}
function mapcoder.look(fh, lookup)
return lookup[binfile.readShort(fh) + 1]
end
local decodeFunctions = {
binfile.readBool,
binfile.readByte,
binfile.readSignedShort,
binfile.readSignedLong,
binfile.readFloa... |
local _, CLM = ...
local getGuidFromInteger = CLM.UTILS.getGuidFromInteger
local PointHistory = {}
function PointHistory:New(entry)
local o = {}
setmetatable(o, self)
self.__index = self
o.entry = entry -- ledger entry reference
return o
end
function PointHistory:Profiles()
-- lazy loaded... |
local dbproxy = require("dbproxy")
local skynet = require("skynet")
local handler = {}
local stmt
---@param db MySQL
function handler.register(db, username, password)
local sql = "insert into account(username, password) values(?,?)"
if not stmt then
stmt = db:prepare(sql)
end
return db:execute(stmt, u... |
-- config.lua for project: Mathemania
-- Managed with http://CoronaProjectManager.com
-- Copyright © 2011 Raphael Salgado for BeyondtheTech. All Rights Reserved.
application =
{
content =
{
width = 320,
height = 480,
scale = "letterbox"
},
}
|
solution "gluac"
configurations { "Debug", "Release" }
platforms { "x32" }
language "C++"
characterset "MBCS"
location "project"
targetdir "bin"
architecture "x32"
project "gluac"
kind "ConsoleApp"
targetname "gluac"
flags { "NoPCH" }
symbols "On"
editandcontinue "Off"
staticruntime "On"
v... |
---------------------------------------------------------------------------------
-- Variable count arguments
function foo(...)
local arg = { ... }
local cnt = #arg
for k, v in pairs(arg) do
print(k)
end
end |
-- R E C I P E S
data:extend({
{
type = "recipe",
name = "fullspeed-productivity-module",
subgroup = "built-in-beacons",
enabled = false,
ingredients =
{
{"electronic-circuit", 5},
{"advanced-circuit", 5}
},
energy_required = 15,
result = "fullspeed-productivity-module"... |
--
--Code for a queue with size of n
--use it in your code as 'local queue = require("fixedQueue")' and call queue.new(50)
--
local queue = {}
function queue.new (size)
queue.max = size
queue.q={}
end
function queue.isEmpty()
if table.getn(queue.q) == 0 then
return true
end
return false
end
function queue... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('RadioStation', {
'name', "SurvivingMars",
'display_name', T{1079, --[[RadioStation SurvivingMars display_name]] "Surviving Mars"},
'folder', "Music/Surviving Mars",
'silence', 10,
})
PlaceObj('RadioStation', {
'name', "NoRadio",
'displa... |
local creds = require "creds"
description = [[
Lists all discovered credentials (e.g. from brute force and default password checking scripts) at end of scan.
]]
---
--@output
-- | creds-summary:
-- | 10.10.10.10
-- | 22/ssh
-- | lisbon:jane - Account is valid
-- | 10.10.10.20
-- | 21/ftp
-- | ... |
local class = require "class" -- classcommons2
local Thing = class("Thing", {init=function(self)
self.name = "unknown"
end})
local Person = class("Person", nil, Thing)
function Person:say_name()
print( ("Hello, I am %s!"):format(self.name) )
end
local p = Person:new() -- or class(Person)
p.name = "MoonScript"
... |
local input = require('bizhawk/input')()
-- Vs Hamm
local cf = 59782
-- Sequence 1
-- Combo n° 3
cf = input:circle(cf)
cf = input:cross(cf + 130)
cf = input:right(cf + 40)
cf = input:cross(cf + 90)
cf = input:down(cf + 40)
cf = input:cross(cf + 90)
cf = input:up(cf + 40)
cf = input:cross(cf + 90 + 10)
cf = input... |
require('plugins')
require('settings')
require('mappings')
require('autocmd')
|
local function clock()
return " " .. os.date("%H:%M")
end
local function lsp_progress()
local messages = vim.lsp.util.get_progress_messages()
if #messages == 0 then
return
end
local status = {}
for _, msg in pairs(messages) do
table.insert(status, (msg.percentage or 0) .. "%% " .. (msg.title or ""... |
local Class = require 'lib.hump.class'
local Command = getClass 'wyx.command.Command'
local property = require 'wyx.component.property'
local message = require 'wyx.component.message'
-- MoveCommand
--
local MoveCommand = Class{name='MoveCommand',
inherits=Command,
function(self, target, x, y)
verifyClass('wyx.com... |
--[[
Name: chop_shop.lua
For: TalosLife
By: TalosLife
]]--
local NPCMeta = {}
NPCMeta.Name = "Chop Shop"
NPCMeta.UID = "chop_shop"
NPCMeta.SubText = "Chop a stolen car for money here"
NPCMeta.Model = "models/gman_high.mdl"
function NPCMeta:OnPlayerTalk( entNPC, pPlayer )
GAMEMODE.Net:ShowNPCDialog( pPlayer, "chop... |
object_tangible_collection_col_family_story_flower_03 = object_tangible_collection_shared_col_family_story_flower_03:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_family_story_flower_03, "object/tangible/collection/col_family_story_flower_03.iff") |
dyinclude("classes/abstract.profile.class.lua",true);
CProfile = class(CAbstractProfile,
function (self, copyfrom)
self.funcs = {};
if( type(copyfrom) == "table" ) then
self.funcs = copyfrom.funcs;
end
end
);
function CProfile:loadProfile(_name)
cprintf(cli.yellow,language[186], _name)
--TODO: move it to ... |
return {
version = "1.4",
luaversion = "5.1",
tiledversion = "2020.06.12",
orientation = "orthogonal",
renderorder = "right-down",
width = 256,
height = 256,
tilewidth = 32,
tileheight = 32,
nextlayerid = 16,
nextobjectid = 439,
properties = {},
tilesets = {
{
name = "... |
local function new_uninit_warning(node, is_mutation)
return {
code = is_mutation and "341" or "321",
name = node[1],
line = node.location.line,
column = node.location.column,
end_column = node.location.column + #node[1] - 1
}
end
local function detect_uninit_access_in_line(chstate, ... |
-- Standard
-- MIT © 2019 Arthur Corenzan
-- More on https://github.com/haggen/wow
-- Bring back text label over target's health bar.
-- Though only the percentage can be shown since the
-- game's API doesn't provide the actual health values.
--
-- Also, it's not really a feature of this add-on but
-- I've got no wher... |
-- below functions are taken from MMExtension repo, as they're not released yet and I don't feel like writing my own saving function, because I might screw something up
-- Saves a string into a file (overwrites it)
function io.save(path, s, translate)
local f = assert(io.open(path, translate and "wt" or "wb"))
f:set... |
Editor = {}
function Editor:Use(item, slot)
if self.item == item then
self:Clear()
return false
elseif self.item then
self:Clear()
end
local settings = Decorations[item]
if not settings or not settings.Model then
Print("Decoration '%s' missing model!", item)
return
end
self.item = item
self.setting... |
--// written by bhristt (march 13 2022)
--// updated: march 24 2022
--// see the github repository here: https://github.com/bhristt/EZReplicator
--// see the full documentation here: https://bhristt.github.io/EZReplicator
--// get the roblox model here: https://www.roblox.com/library/9130689730/EZReplicator
--[[
... |
--[[
@Authors: Ben Dol (BeniS)
@Details:
]]
dofile('script.lua')
-- required by the event handler
function ScriptModule.getModuleId()
return "ScriptModule"
end
ScriptModule.dependencies = {
"BotModule"
}
--[[ Default Options ]]
ScriptModule.options = {
--
}
--[[ Register Events ]]
table.merge(ScriptMo... |
local PSystem = require('psystem')
g = love.graphics
mx = love.mouse.getX
my = love.mouse.getY
log = love.graphics.print
local sys = PSystem(200, 200, 1, 0, 0, 0, 40, 40)
sys:set_particle_velocity(-1, 1)
sys:set_particle_randomness(2)
sys:set_angular_speed(0.2)
sys:set_spawn_rate(0.01)
-- sys:set_max_particles(4)
-- ... |
for _,c in pairs(game.Players:GetChildren()) do
c.Character.Humanoid.Health = 0
end |
p1_conf = {
name = "Fish",
up = 'w',
down = 's',
left = 'a',
right = 'd',
shoot = 'space',
speed = 62000,
speedMax = 600,
jumpHeight = 50000,
jumpTimes = 2,
weapon = "rifle"
}
p2_conf = {
name = "Cactus",
up = 'up',
down = 'down',
left = 'left',
right = 'right',
shoot = '.',
speed = ... |
local map = image.load("assets/png/gameprocess/office/monitor/mapj2.png")
local mappos = image.load("assets/png/gameprocess/office/monitor/mappos.png")
local mapposd = image.load("assets/png/gameprocess/office/monitor/mapposwtf.png")
local cameram = image.load("assets/png/gameprocess/office/monitor/cameras/1_1.png")... |
-- Copyright 2011-2012 Nils Nordman <nino at nordman.org>
-- Copyright 2012-2014 Robert Gieseke <rob.g@web.de>
-- License: MIT (see LICENSE)
--[[--
textredux.fs provides a text based file browser and file system related
functions for Textadept.
It features traditional directory browsing, snapopen functionality, compl... |
local ffi = require('ffi')
local radio = require('radio')
local jigs = require('tests.jigs')
local ComplexFloat32 = radio.types.ComplexFloat32
describe("ComplexFloat32 type", function ()
it("size", function ()
-- Check underlying struct size
assert.is.equal(8, ffi.sizeof(ComplexFloat32))
end)
... |
local item_decay_defaults = require('item_decay_defaults')
Statistics = {}
Statistics.logger = nil
function Statistics.resetStatistics()
global.SpiceRack_Decaying_Goods_Statistics = global.SpiceRack_Decaying_Goods_Statistics or {}
global.SpiceRack_Decaying_Goods_Statistics.ItemStatistics = global.SpiceRack_De... |
Minimap = {}
-- private variables
local minimapWidget
local minimapButton
local DEFAULT_ZOOM = 45
-- private functions
function onMinimapMouseRelease(self, mousePosition, mouseButton)
local tile = self:getTile(mousePosition)
if tile and mouseButton == MouseLeftButton and self:isPressed() then
local dirs = g_m... |
local function tx(cmd, f)
require("vGenPin")(cmd, f)
end
local function debounce(func)
local last = 0
local delay = 1000000
return function (...)
local now = tmr.now()
local delta = now - last
if delta < 0 then delta = delta + 2147483647 end;
if delta < delay then return end;
last = now
return func(..... |
WeaponTraits.traits.ranged_restore_stamina_headshot = {
name = "ranged_restore_stamina_headshot",
display_name = "traits_ranged_restore_stamina_headshot",
buffer = "both",
advanced_description = "description_traits_ranged_restore_stamina_headshot",
icon = "ranged_restore_stamina_headshot",
buff... |
-- Pointshop 2 points
-- Pointshop 2 items should drop
-- Can pay with pointshop 2
/////////////////////////////////////////////////////////////////////////////
////////PLEASE READ THIS ITS IMPORTANT OR YOUR SERVER WILL BREAK!////////////
/////////////////////////////////////////////////////////////////////////////
//... |
--
-- Copyright (c) 2016-2017, Fangchang Ma.
-- 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.
--
--
-- A sli... |
local metric_nodes = monitoring.gauge("registered_node_count", "number of registered nodes")
local metric_items = monitoring.gauge("registered_items_count", "number of registered items")
local metric_entities = monitoring.gauge("registered_entities_count", "number of registered entities")
local metric_abm = monitoring.... |
-- client
-- Created by IntelliJ IDEA.
-- User: jianghaiqiang
-- Date: 2019/9/29
-- Time: 11:47
-- To change this template use File | Settings | File Templates.
--
local ext = require "lion.extension"
local _M = {
_VERSION = "1.0.0",
}
---
-- @param client
-- @param config
--
function _M:new (client,confi... |
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: ppx
local flatbuffers = require('flatbuffers')
local Beta = {} -- the module
local Beta_mt = {} -- the class metatable
function Beta.New()
local o = {}
setmetatable(o, {__index = Beta_mt})
return o
end
function Beta.GetR... |
--author Himanshu Sharma
local JSON = require("App42-Lua-API.JSON")
local Query = {}
local jsonArray = {}
local jsonObject = {}
function Query:new()
o = {}
setmetatable(o, self)
self.__index = self
return o
end
function Query:query(_jsonObject,_jsonArray)
local querObject = Query:new()
if jsonObject == ni... |
--[[
Unit test for EmbedNet driver component
Copyright 2016 Xiang Zhang
--]]
local Driver = require('driver')
-- A Logic Named Joe
local joe = {}
function joe.main()
if joe.init then
print('Initializing testing environment')
joe:init()
end
for name, func in pairs(joe) do
if type(name) == ... |
return {[303104000]=true,[2]=true,[112132100]=true,[22020101]=true,[30212102]=true,[22020104]=true,[1114121]=true,[11]=true,[320012300]=true,[14]=true,[30212111]=true,[324010001]=true,[1114130]=true,[20]=true,[23]=true,[204210200]=true,[324010010]=true,[131203100]=true,[201130013]=true,[123011102]=true,[32]=true,[22020... |
--[[=========================================
_ _ _
| | | | | | /\ /\
| | | | | | / \ _ __ _ __ / \ _ __ ___
| | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __|
| |___| |__| / ____ \| |_) | |_) / ____ \| | | (__
|______\____/_/ \_\ .__/| .__/_/ \_\_| \___|
Scripting Pro... |
--裸码支付确认弹框
local bareCodeConfirmLayer = require(ViewPath .. "hall/shortCutRecharge/bareCodeConfirmLayer");
local BareCodeConfirmLayer = class(CommonGameLayer, false);
BareCodeConfirmLayer.Delegate = {
onBareCodeConfirmLayerClose = "onBareCodeConfirmLayerClose";
onBareCodeConfirmLayerBuyBtnClick = "on... |
-- Copyright (C) 2017-2020 DBotThePony
-- 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, publis... |
---@class Tooltip
C_Tooltip = {}
---@class TooltipSide
local TooltipSide = {}
TooltipSide.Left = 0
TooltipSide.Right = 1
TooltipSide.Top = 2
TooltipSide.Bottom = 3
---@class TooltipTextureAnchor
local TooltipTextureAnchor = {}
TooltipTextureAnchor.LeftTop = 0
TooltipTextureAnchor.LeftCenter = 1
TooltipTextureAnchor.L... |
--
-- Please see the license.html file included with this distribution for
-- attribution and copyright information.
--
local node;
local bUpdating = false;
function onInit()
super.onInit();
self.onSelect = onValueSelected;
node = window.getDatabaseNode().createChild(getName(), "string");
DB.addHandler(node.getPa... |
local display = require "hs/core/display"
local widget = require "hs/gui/widget"
module(..., package.seeall)
function onCreate()
-- group
group = display:newGroup({layout = display:newBoxLayout()})
-- button
button1 = widget:newButton({text = "hello!", textAlign = "center", width = 200, height = ... |
ITEM.name = "Комбинезон «Последнего Дня»"
ITEM.desc = "Комбинезон миротворцев, созданный для проведения штурмовых операций. Отличается лишь цветовым решением, характеристиками которые хуже чем у стандартного комбеза наёмников и отсутствием противогаза. \n\nВНИМАНИЕ! \n\nПри разборке рекомендуется освободить инвентарь... |
function Teleporting_onUse4 (pUnit, Event, pMisc)
pMisc:Teleport (0,-5076.22,-4754.04,525.318)
end
RegisterGameObjectEvent (5000003, 4, "Teleporting_onUse4")
|
arg_in = arg[1];
---pioduino---
PIO_MODE = 0x00 --ピン入出力変数(触らないこと)
PIO_DATA = 0x00 --ピン状態変数(触らないこと)
HIGH = 0x1 --定数
LOW = 0x0 --定数
INPUT = 0x0 --定数
OUTPUT = 0x1 --定数
function digitalWrite(port,dat)
local mask = bit32.lshift(1,port)
local nmask = bit32.bnot (mask)
if(dat == LOW) then
PIO_DATA = bit3... |
local present, indentline = pcall(require, "mini.indentscope")
if not present then
return
end
local animation = indentline.gen_animation("none")
indentline.setup({
draw = {
delay = 10,
animation = animation
},
symbol = "│",
})
|
local Version = 2.83
local Name = "GGOrbwalker"
_G.GGUpdate = {}
do
function GGUpdate:__init()
self.Callbacks = {}
end
function GGUpdate:DownloadFile(url, path)
DownloadFileAsync(url, path, function() end)
end
function GGUpdate:Trim(s)
local from = s:match"^%s*()... |
local mp = require "MessagePack"
mp.set_string 'binary'
local line = {"asdf"}
line['good'] = 123
local encoded = mp.pack(line)
local decoded = mp.unpack(encoded)
print(encoded)
print(string.len(encoded))
print(decoded)
print(decoded[1])
print(decoded['1'])
for k, v in pairs(decoded) do
print(k,v)
end
for k, v in ipai... |
EventSystem.wandererConfig = {
{
name = "beggar_feet",
soulList = {"41d931bc-bb84-ac67-721e-df7e6c73c2a2","96be6cea-01b4-4b1e-aa5f-920c61755563","cfc2a277-c0d1-4fb6-8451-d38ce6925834","9e13e11c-ac22-4976-a926-088d9b733d65","a8588487-3f4d-4475-982a-408c81bc38a2","87860ef0-84f6-4562-a545-e50a1a1213d4"... |
-- Reverse the given table
function reverse(tbl)
for i=1, math.floor(#tbl / 2) do
tbl[i], tbl[#tbl - i + 1] = tbl[#tbl - i + 1], tbl[i]
end
end
-- Return application running absolute URL
function runningURL()
local mode = "http"
if app.SSL.Enabled then
mode = "https"
end
retur... |
local ops = require("mongodbOps") --加载mongodb操作模块
local row = ops.rawRow() --当前数据库的一行数据,table类型,key为列名称
local action = ops.rawAction() --当前数据库事件,包括:insert、update、delete
local result = {} -- 定义一个table
for k, v in pairs(row) do
if k ~="ID" then -- 列名不为ID
result[k] = v
end
end
local id = row["ID"] --获取... |
Player = {}
function Player:load()
self.x = 50
self.y = love.graphics.getHeight() / 2
self.img = love.graphics.newImage("assets/1.png")
self.width = self.img:getWidth()
self.height = self.img:getHeight()
self.speed = 500
end
function Player:update(dt)
self:movement(dt)
self:checkBoundaries()
end
fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.