content stringlengths 5 1.05M |
|---|
local a = "~w~YKZ-AC ~s~Menu"
local b = false
local c = false
local d = false
local e = true
local f = false
local g = false
local h = false
local i = false
local j = 0
TriggerServerEvent("YakuzaYKZ-AC:adminmenuenable")
RegisterNetEvent("YakuzaYKZ-AC:adminmenuenabley")
AddEventHandler(
"YakuzaYKZ-AC:ad... |
local t = Def.ActorFrame{};
-- The math.floor(10000*aspect) trick is used to circumvent float precision problems.
local aspectRatioSuffix = {
[math.floor(10000*4/3)] = " 4_3",
[math.floor(10000*16/9)] = " 16_9",
[math.floor(10000*16/10)] = " 16_9"
}
local bg = "back"
--fall back on the 4:3 frame if we don't know ... |
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function dumpTable (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
info(formatting)
dumpTable(... |
local Tree = require("which-key.tree")
local Util = require("which-key.util")
local Config = require("which-key.config")
-- secret character that will be used to create <nop> mappings
local secret = "Þ"
---@class Keys
local M = {}
M.functions = {}
M.operators = {}
M.nowait = {}
M.blacklist = {}
function M.setup()
... |
local lsp_name = "cmake"
local config = require("lspmanager.utilities").get_config(lsp_name).document_config.default_config
local pip = require("lspmanager.installers.pip")
local os = require("lspmanager.os")
local cmd_exec = "./venv/bin/cmake-language-server"
if os.get_os() == os.OSes.Windows then
cmd_exec = cmd... |
--This script exports an Excel file with the data in independent columns in textfile csv with tabulators and write the content in a tree
--1. basic data
--1.1 library
require("luacom") --require treatment of office files
--1.2.1 path of the file
path_excel="C:\\Temp"
excel_filename_full="test.xlsx" --test... |
local M = {}
M._init_seq = 0
M.receiver = nil
M.scenes = {}
local is_loading_scene = nil
local is_loading_popup = nil
M.current_scene = nil
M.current_popup = nil
local LOAD_MSG = hash("async_load")
M.load_timestamp = 0
M.debug_text = ""
--
-- PRIVATE API
--
local function stop_scene(scene)
msg.post(M.current... |
local Object = require('core').Object
local String = require('string')
local Socket = require('dgram').Socket
local Levels = require('./utils').Levels
local function _noop() end
local SyslogLogger = Object:extend()
function SyslogLogger:initialize(options)
self.type = options.type
self.level = nil
if type(op... |
local job = require("plenary.job")
local finders = require("telescope.finders")
local pickers = require("telescope.pickers")
local sorters = require("telescope.sorters")
local conf = require("telescope.config").values
local actions = require("telescope.actions")
local action_state = require("telescope.actions.state")
l... |
local class = require('opus.class')
local UI = require('opus.ui')
UI.ProgressBar = class(UI.Window)
UI.ProgressBar.defaults = {
UIElement = 'ProgressBar',
backgroundColor = 'gray',
height = 1,
progressColor = 'lime',
progressChar = UI.extChars and '\153' or ' ',
fillChar = ' ',
fillColor = 'gray',
textColor... |
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Patryk Adamowicz <patrykadam.dev@gmail.com>
Discord: PatrykAdam#1293
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
local gate = {}
local gateTable = {}
gateAnim = { "Linear", "InQuad", "OutQuad", "InOutQuad", "OutInQuad", "InEl... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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... |
-- ===========================================================================
-- Cached Base Functions
-- ===========================================================================
BASE_CQUI_AddCityStateRow = AddCityStateRow;
-- ===========================================================================
-- CONSTANT... |
if (CLIENT) then return; end
AddCSLuaFile("cl_bank.lua");
AddCSLuaFile("sh_bank.lua");
include("sh_bank.lua");
SetGlobalFloat("bank_money", bankConfig.initialMoney);
local moneyCur;
local beingRobbed = false;
local weaponsgave = false;
local invault = false;
local function start()
end
local function giveGuardWeapo... |
local test = 99
return test |
jewelrymaking = {
craft = function(player, npc, speech)
local t = {
graphic = convertGraphic(npc.look, "monster"),
color = npc.lookColor
}
player.npcGraphic = t.graphic
player.npcColor = t.color
player.dialogType = 0
player.lastClick = npc.ID
if speech == "jewel" then
local choices = {"Ring", "... |
-----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Goblin Grenadier
-- Type: Mission NPC
-- !pos -26.283 -60.49 -76.640 111
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(509);
end;
function onEventUpdate(player,c... |
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.3,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
local damageForColours =
{
[25] = Color3.fromRGB(255,196,101),
[50] = Color3.fromRGB(255,234,0),
[75] = Color3.fromRGB(255,140,0),
[100] = Color3.fromRGB(255,0,0),
}
... |
return {
---saner behavior of ; and , (search character forward and
---backward, respectively)
setup = function()
local function search(forward)
return function()
return vim.fn.getcharsearch().forward == forward and ';' or ','
end
end
vim.keymap.set({ 'n', 'x', 'o' }, ';', search(1), { expr = true, ... |
local Discordia = require("discordia")
local client = Discordia.Client()
local dogPics = {
{"acting dog", "https://upload.wikimedia.org/wikipedia/commons/4/43/Ace_The_Wonder_Dog.jpg"},
{"sledding dogs", "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/The_dogs_tethered_out_at_The_Grottoes.jpg/800px-Th... |
-- premake5.lua
workspace "ServerTest"
configurations { "Debug", "Release" }
project "ServerTest"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
includedirs { "include" }
files { "**.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "... |
list = {}
input = ""
while input ~= "exit" do
print ("your list:")
for i,v in pairs(list) do
print(i, v)
end
print("Command:")
input = io.read()
if input == "add" then
print("What do you want to add?")
item = io.read()
table.insert(list, item)
end
if input == "remove" then
print("W... |
function screenshotGUIOpenClose(player)
triggerClientEvent(player, "AURscreenshot.t", player)
end
addCommandHandler("screenshots", screenshotGUIOpenClose)
function takePlayerScreen(w, h)
takePlayerScreenShot(client, w, h, "1234566778808005102421")
end
addEvent("AURscreenshot.takess", true)
addEventHandler("AURscreen... |
data:extend({
{
type = "recipe",
name = "probe-data-processing",
enabled = false,
icon = "__expanded-rocket-payloads__/graphic/pluto-heart-32.png",
icon_size = 32,
ingredients =
{
{"probe-data", 1},
},
result = "space-science-pack",
res... |
-- Add input fluid_box to Induction Furnace
for n = 1, 4 do
local name = (n > 1) and "induction-furnace-"..n or "induction-furnace"
local entity = data.raw["assembling-machine"][name]
if not entity then goto continue end
table.insert(entity.fluid_boxes, {
production_type = "input",
pip... |
local Config={}
Config.Point=[[
类Point : 坐标
实现2.0引擎Point类的所有功能
支持+、-、*、/、==和取反等基本运算。
]]
Config.Size=[[
类Size : 尺寸
实现2.0引擎Size类的所有功能
支持+、-、*、/、==和取反等基本运算。
]]
Config.Rect=[[
类Rect : 矩形
实现2.0引擎Rect类的所有功能
]]
Config.Color3B=[[
类Color3B : 颜色值(整型)
实现2.0引擎Color3B类的所有功能
]]
Config.Color3F=[[
类Color3F : 颜色值(浮点型)
实现2.0引擎Color3F类的... |
local tcp_agent_check_monitor = require "durpina.monitor.haproxy-agent-check"
local handle_agent_check_data = tcp_agent_check_monitor.handle_agent_check_data
local http_agent = require "durpina.monitor.http"
local function check_response(response, err, upstream, peer, shared, lcl)
if err or response.status >= 400 t... |
--- The fall-over node inherits from the @{action} base node class and rotates the mob on it's side while
-- optionally playing a fall sound and animation. Typically used to represent death of the mob.
-- @action fall_over
local action = behaviors.action
local fall_over = behaviors.class("fall_over", action)
behaviors... |
require "luaClass.init"
include "algorithm.init"
include "container.array"
include "container.stack"
include "container.map"
include "container.queue"
include "container.graph"
include "container.set"
include "container.mat"
|
-- Symbol
-- Stephen Leitnick
-- December 27, 2020
--[[
symbol = Symbol.new(id: string [, scope: Symbol])
Symbol.Is(obj: any): boolean
Symbol.IsInScope(obj: any, scope: Symbol): boolean
--]]
local CLASSNAME = "Symbol"
local Symbol = {}
Symbol.__index = Symbol
function Symbol.new(id, scope)
assert(id ~= nil, ... |
local date = require("date")
describe("Testing the 'date' module", function()
it("Tests date parsing", function()
assert( date("Jul 27 2006 03:56:28 +2:00") == date(2006,07,27,1,56,28))
assert(date("Jul 27 2006 -75 ") == date(2006,07,27,1,15,0))
assert(date("Jul 27 2006 -115") == date(2006,07,27,1,15,0)... |
return {
config = {
common = {
assign_button = "ボタンを割り当てたい項目にカーソルをあわせて\nゲームパッドのボタンを押してください。(L),(R)の付いている\n項目は、メニュー画面でタブの移動に使われます。",
formatter = {
every_minutes = function(_1)
return ("%s分毎")
:format(_1)
end,
wait = function(... |
local BindUI = class("BindUI", BaseUI)
function BindUI:ctor()
self:load(UriConst.ui_bind, UIType.Fixed, UIAnim.MiddleAppear)
end
function BindUI:Awake()
self.txt_coin.text = "5"
end
function BindUI:Refresh()
--self.loginProxy:CheckVerifyWait(self.txt_otp)
end
function BindUI:Hide()
--self.loginProxy:... |
local theme={colors={normal={blue={0.23921568627451,0.56078431372549,0.81960784313725,1},green={0.67450980392157,0.5921568627451,0.22352941176471,1},cyan={0.13333333333333,0.63529411764706,0.78823529411765,1},white={0.36862745098039,0.4,0.52941176470588,1},red={0.78823529411765,0.28627450980392,0.13333333333333,1},mage... |
alven.output(alven.get_theme_url("test"))
|
script = {}
-- Current Action
script.current_action = "wait"
-- Commander Id
script.commander = 0
-- Circle openess. More = more open
script.circle_openess = 1000
-- Rotation speed. More = faster
script.rotation_speed = 0.001
-- Current state time.
script.current_time = 0
-- Threshold for proximity states.
script.thr... |
chemistry.register_substance("chemistry:water", {
solid = {
description = "Ice",
texture = "chemistry_flask_blue_3.png",
nodes = {"default:ice"}
},
liquid = {
description = "Water",
texture = "chemistry_flask_blue_2.png",
nodes = {
"default:water_source",
"default:water_flowing",
"default:... |
CommandMap = {}
CommandMap.FuncMap = {}
function CommandMap:AddCommand(key, widget, func)
local value = {
widget = widget,
func = func
}
if not CommandMap.FuncMap[key] then
-- --print("Add One Command:",key)
CommandMap.FuncMap[key] = {}
end
CommandMap.FuncMap[key][#C... |
require('byui/class')
local Am = require('animation')
local M = {}
local class, mixin, super = unpack(require('byui/class'))
local NORMAL_DECAY = 0.95
local FAST_DECAY = 0.70
local Decay = class('Decay', nil, {
__init__ = function(self, on_value)
self.on_value = on_value
self._handler = nil
... |
local M = {}
function M.str_2_table(str)
local func_str = "return "..str
local func = load(func_str)
return func()
end
local function serialize(obj)
local lua = ""
local t = type(obj)
if t == "number" then
lua = lua .. obj
elseif t == "boolean" then
lua = lua .. tostring(ob... |
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150 --Set to your wanted speed
|
DarkRP.createAmmoType("pistol", {
name = "Pistol ammo",
model = "models/items/357ammo.mdl",
price = 900,
amountGiven = 24
})
DarkRP.createAmmoType("buckshot", {
name = "Shotgun ammo",
model = "models/Items/BoxBuckshot.mdl",
price = 1000,
amountGiven = 16
})
DarkRP.createAmmoType("smg1"... |
data:extend(
{
{
type = "technology",
name = "physical-projectile-damage-1",
icon_size = 128,
icon = "__base__/graphics/technology/physical-projectile-damage-1.png",
effects =
{
{
type = "ammo-damage",
ammo_category = "bullet",
modifier = 0.1
},
{
... |
if not modules then modules = { } end modules ['font-otj'] = {
version = 1.001,
comment = "companion to font-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files",
}
-- This property based... |
return (function(self)
return select('#', m(self, 'GetChildren'))
end)(...)
|
------------------------
-- Scalable [mixin](https://github.com/kikito/middleclass/wiki/Mixins).
-- Apply to classes that can be scaled.
-- @mixin Scalable
--- @type Scalable
local Scalable = {}
function Scalable:initialize()
self._scale = Vector(1,1)
end
--- Set the object's scale.
-- @number x x-scale (width)
--... |
-----------------------------------
-- Area: Dynamis-Beaucedine
-- NPC: ??? (qm0)
-- Note: Spawns Angra Mainyu / Arch Angra Mainyu
-----------------------------------
require("scripts/globals/dynamis")
-----------------------------------
function onTrade(player, npc, trade)
dynamis.qmOnTrade(player, npc, trade)
e... |
pcall(function()
require'lfs'
end
)
local next = next
local floor = math.floor
local insert = table.insert
local ipairs, pairs = ipairs,pairs
local rep, format, gsub = string.rep, string.format,string.gsub
local codegen,codegenList
local insert=table.insert
------------------... |
package("ghostscript")
set_homepage("https://www.ghostscript.com/")
set_description("Ghostscript is an interpreter for the PostScript® language and PDF files.")
set_license("AGPL-3.0")
add_urls("https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/$(version).tar.gz", {version = func... |
--[[
void set_nht_limit_list(string token_hash_or_id,
string contract_name_or_ids, bool limit_type, bool enable_logger = false)
]]
function test_set_nht_limit_list(nh_asset, contract, limit_type, enable_logger)
chainhelper:log("nh_asset: " .. nh_asset .. ", contract_name_or_ids: "..contract)
chainhe... |
--[[*************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** self file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid comm... |
-- Latest Version: 1.014
LoadProtectedScript('VjUzEzdFTURpN0NFYN50TGhvRUxAbTNLRXlNeER2ZUVMRm1zSyB5TXlMMuXFU0DtM0lFeU19RXJlRRMHbTdFRXlNJg8cDyAvNCtBLiAVInlHcmVFTUBtM1xFeU17RlAaRUxA5jNLSb9NOUZ0JAVMBuxzS8O4DXmAcyRFiwGsME3HOE0/hDNlw04CbfUJB3lL+gRyI4YOQCowiEP/jjtG9SYGS4aucUuC+o5+QLYnRUuELjsNQT1N/wI2ZYPIBG01jgF5C3wDcuNADUDqN... |
impulse.Data = impulse.Data or {}
function meta:GetData()
return self.impulseData or {}
end
function meta:SaveData()
local query = mysql:Update("impulse_players")
query:Update("data", util.TableToJSON(self.impulseData))
query:Where("steamid", self:SteamID())
query:Execute()
end
function impulse.Data.Write(name... |
--[[
--=====================================================================================================--
Script Name: Show Admin Names, for SAPP (PC & CE)
Description: Prints the name and level of admins who are currently online.
Copyright (c) 2021, Jericho Crosby <jericho.crosby227@gmail.com>
* Notice: You can ... |
local PackageManager = require 'packagemanager/init'
local Misc = require 'packagemanager/misc'
local Unit = require 'packagemanager/unit'
local lanes = require 'packagemanager/lanes'
local Bar = require 'packagemanager-cli/bar'
local RateCalculator = require 'packagemanager-cli/RateCalculator'
local RichText = require... |
local mod = get_mod("HideBuffs")
local pl = require'pl.import_into'()
mod.bm = {}
local bm = mod.bm
bm.added_buffs = pl.Map{
-- traits_melee_attack_speed_on_crit_proc = "melee_attack_speed_on_crit",
}
bm.is_buff_manager_maximized = false
bm.buff_manager_storage_key = "buff_manager_storage"
bm.priority_buffs_key =... |
-- This file is generated by proto-gen-lua. DO NOT EDIT.
-- The protoc version is 'v3.19.2'
-- The proto-gen-lua version is 'Develop'
return {
name = [[google/protobuf/wrappers.proto]],
package = [[google.protobuf]],
message_type = {
{
name = [[DoubleValue]],
field = {
... |
local framework = require("test_framework")
local assert = require("assert")
local virtual_io_util = require("lib.virtual_io_util")
local io_util = require("io_util")
local cache = require("cache")
local profile_util = require("profile_util")
local phobos_version = require("phobos_version")
local constants = require(... |
local awful = require('awful')
local wibox = require('wibox')
local beautiful = require('beautiful')
local gears = require('gears')
local helpers = require("helpers")
local dpi = require('beautiful').xresources.apply_dpi
beautiful.init(gears.filesystem.get_configuration_dir() .. "deftheme.lua")
local time_text = ... |
loadstring(game:HttpGet("https://pastebin.com/raw/QaqDJ4zG", true))() |
if SERVER then
AddCSLuaFile()
end
-- create the exported table
fw.group = fw.group or {}
fw.group.chats = fw.group.chats or {}
fw.group.voice = fw.group.voice or {}
-- load internal dependencies
fw.dep(SHARED, "notif")
fw.dep(SERVER, "chat_commands")
fw.dep(SHARED, "hook")
fw.dep(SHARED, "teams")
fw.dep(SHARED, "uti... |
-- Copyright (c) 2016 Clockwork Engine. All Rights Reserved.
-- See License.txt in the project root for license information.
newoption {
trigger = "ci-jobs",
description = "Compile just necessary libraries.",
}
-- Useful functions
function isWindows()
if "winphone8" == _OPTIONS["vs"] or
"winph... |
if Grid2.isClassic then return end
-- Stagger monk status, created by Michael
local Stagger = Grid2.statusPrototype:new("monk-stagger")
local Grid2 = Grid2
local fmt = string.format
local UnitClass = UnitClass
local UnitStagger = UnitStagger
local UnitHealthMax = UnitHealthMax
function Stagger:OnEnable()
self:Reg... |
--[[
GD50
Legend of Zelda
Author: Colton Ogden
cogden@cs50.harvard.edu
]]
Hitbox = Class{}
function Hitbox:init(x, y, width, height)
self.x = x
self.y = y
self.width = width
self.height = height
end |
class "Lobby"
valueses = { 100, 150, 200, 250, 300, 350, 400, 450, 500 }
function Lobby:__init( config )
self.state = GamemodeState.WAITING
self.world = World.Create()
self.timer = Timer()
self.queue = Set()
self.playerOrigins = {}
self.startingTime = 0
self.waitingTime = 30
vmoney = valueses[ma... |
local bus = {}
local EventBus = {}
function EventBus.subscribe(event, listener)
local listeners = bus[event]
if not listeners then
listeners = {}
bus[event] = listeners
end
listeners[#listeners + 1] = listener
end
function EventBus.unsubscribe(event, listener)
local listeners = bus[event]
if list... |
-- notify.lua -- Desktop notifications for mpv.
-- Just put this file into your ~/.config/mpv/scripts folder and mpv will find it.
--
-- Copyright (c) 2014 Roland Hieber
-- (Also some minor edits from Arindam Das)
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and... |
return {
name = 'dean',
offset = 8,
ow = 14,
costumes = {
{name='Dean Craig Pelton', sheet='base', category='base' },
{name='Devil Dean', sheet='devil', category='s3e5' },
{name='Mardi Gras', sheet='mardigras', category='s2e21' }
},
animations = {
dead = {
... |
--[[
序列化管理器
]]
local THIS_MODULE = ...
-- 模块名
local C_MODULE_NAME = "__Serialize__"
-- 注册模块元数据配置
metaMgr:registerModule(C_MODULE_NAME, "src/serializes/")
local SerializeManager = class("SerializeManager")
-- 获得单例对象
local instance = nil
function SerializeManager:getInstance()
if instance == nil then
instance = S... |
local function starts_with(str, start)
return str:sub(1, #start) == start
end
local function ends_with(str, ending)
return ending == "" or str:sub(-#ending) == ending
end
local function eval(params)
local cmd = table.concat(params, " ")
if starts_with(cmd, "=") then
cmd = "print(" .. cmd:sub(2) .. ")"
e... |
local hmm = vehicleBaseRepairCost
RegisterServerEvent('npc-bennys:attemptPurchase')
AddEventHandler('npc-bennys:attemptPurchase', function(cheap, type, upgradeLevel)
local src = source
local user = exports["npc-core"]:getModule("Player"):GetUser(src)
if type == "repair" then
if user:getCash() >= hmm then... |
id = 'V-38437'
severity = 'low'
weight = 10.0
title = 'Automated file system mounting tools must not be enabled unless needed.'
description = [=[All filesystems that are required for the successful operation of the system should be explicitly listed in "/etc/fstab" by an administrator. New filesystems should not be arb... |
-- User story: https://github.com/smartdevicelink/sdl_core/issues/1896
--
-- Steps to reproduce:
-- 1. "HeartBeat" param in .ini file is zero
-- 2. SDL, HMI are running
-- 3. App is registered.
-- SDL must:
-- 1. respond ACK to HeartBeat_request from mobile app
-- 2. NOT send HeartBeat_request to mobile app
-----------... |
local strongholds = {
["Bal Isra"] = "Bal Isra",
["Indarys Manor"] = "Indarys Manor",
["Odai Plateau"] = "Odai Plateau",
["Rethan Manor"] = "Rethan Manor",
["Uvirith's Grave"] = "Uvirith's Grave",
["Tel Uvirith"] = "Tel Uvirith"
}
return strongholds
|
--[[
NoMoreTroll
Version 1.0.0.2
By CalixFoxUK
]]--
-- Freeze command freeze {PlayerID} {true/false}
RegisterCommand("freeze", function(source, arg, raw)
if source > 0 then
pedfreeze = source;
if type(raw) ~= "nil" then
cl = stringsplit(raw, " ");
if cl[1] == "freeze" then
Can_Trigger = ... |
#!/usr/bin/env lua
-- -*- lua -*-
-- copyright: 2012 Appwill Inc.
-- author : KDr2
--
module("d3_test_v2",package.seeall)
local JSON = require("cjson")
require("mch.controller")
--[[
Controller : ctller_v2
--]]
ctller_v2=mch.controller.Controller:new()
function ctller_v2:before(req, resp)
resp:writeln("BEFO... |
local d = process.env.DEBUG and debug or function () end
--
-- Connection
--
local Table = require('table')
local Utils = require('utils')
local Timer = require('timer')
local transports = require('./transport')
--
-- connection states
--
local Connection = {
CONNECTING = 0,
OPEN = 1,
CLOSING = 2,
CLOSED =... |
local wibox = require ('wibox')
local awful = require ('awful')
local gears = require ('gears')
local naughty = require ('naughty')
local beautiful = require ('beautiful')
local dpi = beautiful.xresources.apply_dpi
local gears = require ('gears')
local gfs = gears.filesystem
local pi = require ('util.panel_item')
lo... |
local utils = require 'luainlua.common.utils'
local ast = {}
function ast:before(node)
end
function ast:after(node, result)
return result
end
function ast:accept(node, ...)
if not node.kind then
return
end
self:before(node)
local action = self['on_' .. node.kind]
local result, c... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program 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 version 2 of the License,
--or (at your option) any later versio... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
addEvent("onItemShopOpen", true)
ItemShopSelectedItem = nil
... |
SkadaPerCharDB = {
["total"] = {
["healingabsorbed"] = 0,
["dispells"] = 0,
["ccbreaks"] = 0,
["time"] = 0,
["interrupts"] = 0,
["damage"] = 567,
["players"] = {
{
["healingabsorbed"] = 0,
["class"] = "MONK",
["damaged"] = {
},
["dispells"] = 0,
["role"] = "NON... |
f = Const("f")
a = Const("a")
t = f(a)
s = State()
s:dostring("x = 10")
t1, t2, t3 =
s:dostring([[
a, b = ...
print("x = " .. tostring(x))
print("a = " .. tostring(a))
print("b = " .. tostring(b))
g = Const("g")
return g(b), g(g(b)), g(b, b)
]], 10, t)
print("t1: " .. tostring(t1))
print("t2: " .. tostring(t2))
print(... |
SWEP.Base = "arccw_base"
SWEP.Spawnable = true -- this obviously has to be set to true
SWEP.Category = "ArcCW - Black Ops II" -- edit this if you like
SWEP.AdminOnly = false
SWEP.PrintName = "TDI Vector"
SWEP.Trivia_Class = "Submachine Gun"
SWEP.Trivia_Desc = "American SMG with a unique recoil absorption system."
SWEP... |
-- This script comes from https://github.com/cg2121/obs-advanced-timer
-- Licensed under GPL 2.0
obs = obslua
source_name = ""
stop_text = ""
mode = ""
a_mode = ""
format = ""
activated = false
global = false
timer_active = false
settings_ = nil
orig_time = 0... |
pg = pg or {}
pg.enemy_data_statistics_288 = {
[14001114] = {
cannon = 31,
reload = 150,
speed_growth = 0,
cannon_growth = 2592,
rarity = 3,
air = 0,
torpedo = 0,
dodge = 3,
durability_growth = 49600,
antiaircraft = 45,
luck = 0,
reload_growth = 0,
dodge_growth = 48,
hit_growth = 210,
sta... |
if GoodGame == nil then
GoodGame = class({})
end
function GoodGame:Init()
GG_TABLE = {}
local count = PlayerResource:GetPlayerCount()
if IsInToolsMode() then count = 20 end
for i = 0, count - 1 do
GG_TABLE[i] = {false, false, PlayerResource:GetTeam(i)}
end
end
function GoodGame:Call(event)
if GameRules:Sta... |
local _M = {}
function _M.writeFile(filename, pool)
local file = io.open(filename, "w")
file:write(pool.generation .. "\n")
file:write(pool.maxFitness .. "\n")
file:write(#pool.species .. "\n")
for n,species in pairs(pool.species) do
file:write(species.topFitness .. "\n")
file:write(... |
--- Short anonymous functions (lambdas).
-- This syntax is suited
-- to any naive token-processor because the payload is always inside parens.
-- It is an example of a macro associated with a 'operator' character.
--
-- Syntax is `\<args>(<expr>)`
--
-- `\x(x+10)` is short for
-- `function(x) return x+10 end`. There ma... |
NPC.Core.hasLoaded = false
function NPC.Core.Initialize(self)
Citizen.CreateThread(function()
while true do
if NetworkIsSessionStarted() then
TriggerEvent("npc-core:playerSessionStarted")
TriggerServerEvent("npc-core:playerSessionStarted")
break
... |
object_tangible_loot_beast_beast_steroid_elephant_camel = object_tangible_loot_beast_shared_beast_steroid_elephant_camel:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_beast_beast_steroid_elephant_camel, "object/tangible/loot/beast/beast_steroid_elephant_camel.iff")
|
--
-- Minetest blueprints mod: Register blueprint items
--
-- Create image name from item name
local function image_from_item(name)
return name:gsub(':', '_') .. '.png'
end
-- Handle on_use for non-blank blueprints.
blueprints.on_use = function(itemstack, user, pointed_thing)
user = user:get_player_name()
... |
local PANEL = {}
AccessorFunc(PANEL, "vertices", "Vertices")
function PANEL:Init()
self:SetVertices(90)
self.avatar = vgui.Create("AvatarImage", self)
self.avatar:SetPaintedManually(true)
end
function PANEL:CalculatePoly(w, h)
local poly = {}
local x = w/2
local y = h/2
local radius = h/2
table.i... |
--[[Author: Pizzalol
Date: 11.01.2015.
It applies a different modifier depending on the time of day]]
function CripplingFear( keys )
local caster = keys.caster
local ability = keys.ability
local target = keys.target
local modifier_day = keys.modifier_day
local modifier_night = keys.modifier_night
if GameRules... |
function ENT:TendanciesInit()
self.home = self:GetPos()
self.home_angle = self:GetAngles()
self.returns_to_home = true
self.hides_that_he_is_looking = true
self.tries_to_be_quiet = true
self.stalks_slowly = true
end |
--[[
--MIT License
--
--Copyright (c) 2019 manilarome
--Copyright (c) 2020 Tom Meyers
--
--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 ... |
slot2 = "LoadPicesAsyncBean"
LoadPicesAsyncBean = class(slot1)
LoadPicesAsyncBean.ctor = function (slot0)
slot4 = AbstractBean
ClassUtil.extends(slot2, slot0)
ClassUtil.extends(slot2, slot0)
slot5 = "plist_font.plist"
slot5 = "plist_head.plist"
slot5 = "plist_rouletee_font.plist"
slot5 = "plist_notice.plist"
... |
-- region *.lua
-- Date
-- 此文件由[BabeLua]插件自动生成
ui_session_id =
{
INVALID = "invalid",
UI_TOPBAR = "ui_topbar",
UI_MESSAGEBOX = "ui_messagebox",
UI_MAINMENU_SCENE = "ui_mainmenu_scene",
UI_TEAMMANAGE_SCENE = "ui_teammanage_scene",
} |
-- Petit script pour configurer le client WIFI du NodeMCU
print("\n wifi_cli_conf.lua zf180824.2000 \n")
wifi.sta.config{ssid="Hugo", pwd="tototutu", save=true}
|
local object = require "es.object"
local utils = require "es.utils.utils"
local get_response = object:extend()
function get_response:new(response_data)
get_response.super.new(self, "get_response")
if "string" == type(response_data) then
self._response_data = response_data
self._response_json_d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.