content stringlengths 5 1.05M |
|---|
Config = {}
Config.PlateText = '000000'
Config.MaxNoJob = 1
Config.MaxJob = 3
Config.DistanseSpawn = 50.0
Config.DistanseLock = 5.0
Config.CarLock = true
Config.VehiclePositions = {
{x = -1735.68, y = -1124.84, z = 13.0, h = 134.24, model = 'lambokart', price = 3, job = 'none'},
{x = ... |
--REF: https://github.com/phaazon/hop.nvim
use 'phaazon/hop.nvim'
nnoremap <Leader>l <cmd>HopLine<CR>
vnoremap <Leader>l <cmd>HopLine<CR>
|
setBufferName("schedulingwidget.lua")
do
closeBuffer()
switchToBuffer("prod.lua - command")
end
|
local anims = {chica, tree, cupcakes, fredbare, happy, mangle, chica, puppet, balloon, glitch, raw}
function onEvent(name, value1, value2)
if name == 'Shadow Bonnie Glitch' then --whyrror
if value1 == '' then
runTimer('sbBack', 0.6)
objectPlayAnimation('sbb', 'glitch', true)
end
... |
-- Load and set namespace
local _, core = ...
core.Merchant = {}
local Merchant = core.Merchant
core.options.merchantenable = false
-- Create the area from which other elements will position into
function Merchant:Create()
core:Debug("Merchant: Create")
-- Create MerchantFrame
Merchant.Frame = core.Config:Create... |
require "ISUI/ISLayoutManager"
SurvivorInfoWindow = ISCollapsableWindow:derive("SurvivorInfoWindow");
function CallButtonPressed()
local GID = SSM:Get(0):getGroupID()
local members = SSGM:Get(GID):getMembers()
local selected = tonumber(myGroupWindow:getSelected())
local member = members[selected]
if(member) then... |
----------------------------------------------
-- PerimeterX(www.perimeterx.com) Nginx plugin
----------------------------------------------
local _M = {}
_M.px_enabled = true
-- ## Required Parameters ##
_M.px_appId = 'PX_APP_ID'
_M.cookie_secret = 'COOKIE_KEY'
_M.auth_token = 'PX_AUTH_TOKEN'
return _M
|
return {'ingaan','ingaand','ingaande','ingang','ingangsdatum','ingangsdeur','ingangsexamen','ingangsleeftijd','ingangspartij','ingangspoort','ingangsvariabele','ingebakken','ingebed','ingebeeld','ingebeelden','ingeblikt','ingebonden','ingeboren','ingebouwd','ingebrand','ingebrekestelling','ingebruikname','ingebruiknemi... |
local least = {}
local active_suites = {}
local esc = string.char(27)
local color = {
reset = esc.."[0m",
bold = esc.."[1m",
dim = esc.."[2m",
under = esc.."[4m",
blink = esc.."[5m",
rev = esc.."[7m",
hiddn = esc.."[8m",
black = esc.."[30m",
r ... |
return(function(l,...)local j="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local z=l[((644655459-#("still waiting for luci to fix the API :|")))];local A=l[(83374847)];local b=l["ezzptNpFp"];local f=l[((515964001-#("why does psu.dev attract so many ddosing retards wtf"))... |
local Util = {}
function Util.Copy(tab)
local newTab = {}
for k, v in pairs(tab) do
newTab[k] = v
end
return newTab
end
function Util.DeepCopy(tab)
local newTab = {}
for k, v in pairs(tab) do
if type(v) == "table" then
newTab[k] = Util.DeepCopy(v)
else
newTab[k] = v
end
end
return newTab... |
--[[
Steam Whitelist
by Maldevs.com
If your looking to have a whitelisted server
and not worry about a password being leaked
this is the best way to go! Thanks for downloading!
]]
-- [CONFIGURATION] -- [CONFIGURATION] -- [CONFIGURATION] --
--[[
WhitelistedIDs - Table Config
Must be the 64bit version of the SteamID.... |
return {
["comment"]="% generated by mtxrun --script pattern --convert",
["exceptions"]={
["characters"]="adefhorstw",
["data"]="hard-ware soft-ware",
["length"]=19,
["n"]=2,
},
["metadata"]={
["mnemonic"]="pt",
["source"]="hyph-pt",
["texcomment"]="% This file has been converted for the hyph-utf8 pro... |
FACTION.name = "Темерия"
FACTION.desc = "Жемчужина Севера."
FACTION.color = Color(19, 47, 189)
FACTION.isDefault = false
FACTION_TEM = FACTION.index |
object_tangible_food_crafted_crafted_bantha_surprise = object_tangible_food_crafted_shared_crafted_bantha_surprise:new {
}
ObjectTemplates:addTemplate(object_tangible_food_crafted_crafted_bantha_surprise, "object/tangible/food/crafted/crafted_bantha_surprise.iff")
|
local INTERVAL = 7
gl.setup(1024, 768)
json = require "json"
util.resource_loader{
"font.ttf";
"white.png";
"background.vert";
"background.frag";
}
function wrap(str, limit, indent, indent1)
limit = limit or 72
local here = 1
local wrapped = str:gsub("(%s+)()(%S+)()", function(sp, st, wo... |
local module = {}
module.GameKey = "8a70de271d7a3ff4f1bf1008d726e32e"
module.SecretKey = "93cad05e13866a6e0d90c92af7cc5cd5c120fecb"
return module
|
-- Primo tentativo di utilizzo della funzione mediawiki "require"
-- In questo modulo semplicemente è contenuta una tabella con tutti i colori:
-- Il primo indice è il nome del colore, e il secondo la variante
local c = {}
local s = require('Colore')
-- Generazione dimanica provvisoria: mancano i colori zona_text e ... |
object_ship_ykl37r_tier7 = object_ship_shared_ykl37r_tier7:new {
}
ObjectTemplates:addTemplate(object_ship_ykl37r_tier7, "object/ship/ykl37r_tier7.iff")
|
-- See LICENSE for terms
local tonumber = tonumber
local floatfloor = floatfloor
local GetDate = GetDate
local T = T
local clock = {302535920011360, "<hour>:<min>"}
local IsValidXWin = ChoGGi.ComFuncs.IsValidXWin
local Infobar
local mod_ShowClock
local mod_TimeFormat
local mod_TextStyle
local mod_Background
local mo... |
--[[
Copyright (c) 2014 Juan Carlos González Amestoy
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, publi... |
--[[
Shop Item Model
v0.5.0
by: standardcombo
Implements Shop Item interface:
IsItemData()
GetUniqueId()
GetName()
GetDescription()
GetCost()
GetCurrencyPrefix()
GetTemplate()
GetGoods()
GetInventoryCount()
GetAllowBuyDuplicate()
--]]
function IsItemData(data)
return data and Object.IsValid(data)... |
require "SyMini"
function updateprogress(pos,max)
task:setprogress(pos,max)
end
function sitemapupdate(t)
runtabcmd('treeseturls', t.urls)
runtabcmd('treesetaffecteditems',hs.vulnurls)
end
function statsupdate(t)
runtabcmd('resupdatehtml', t.csv)
end
function addthreat(v)
local loc = v.location
if v.loca... |
--more pedantic version, returns 0 for non-integer n
function pfibs(n)
if n ~= math.floor(n) then return 0
elseif n < 0 then return pfibs(n + 2) - pfibs(n + 1)
elseif n < 2 then return n
else return pfibs(n - 1) + pfibs(n - 2)
end
end
|
-- Copyright (C) Jinhua Luo
local ffi = require("ffi")
local C = require("ljio.cdef")
local tcp = require("ljio.socket.tcp")
local in_addr = ffi.new("struct in_addr")
local addr_in = ffi.new("struct sockaddr_in")
local in_addr_t_sz = ffi.sizeof("in_addr_t")
local in_port_t_sz = ffi.sizeof("in_port_t")
local tmp1 = ff... |
#!/usr/bin/env lua
function replaceVariableInFile(pattern, substitution, filepath)
local file = io.open(filepath)
local contents
if _VERSION == "Lua 5.3" then
contents = file:read("a")
else
contents = file:read("*a")
end
file:close()
contents = contents:gsub(pattern, substi... |
require 'torch'
--wrist(1),
--TMCP(2), IMCP(3), MMCP(4), RMCP(5), PMCP(6)
--TPIP(7), TDIP(8), TTIP(9)
--IPIP(10), IDIP(11), ITIP(12)
--MPIP(13), MDIP(14), MTIP(15)
--RPIP(16), RDIP(17), RTIP(18)
--PPIP(19), PDIP(20), PTIP(21)
--training set
--mindepth of joint: 138.70
--maxdepth of joint: 906.58
--avg depth of joint... |
---------------------------------------------------------------------------------------------------
---delayed_acc_bullet.lua
---author: Karl
---date created: before 2021
---desc: Defines a acceleration controlled, multi-purposes, commonly used bullet type
---------------------------------------------------------------... |
--
-- htslib 1.13 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Biological Sciences"
-- "Description: HTSlib A C library for reading/writing high-throughput sequencing data."
-- "Keywords: singularity bioinformatics"
whatis("Name: htslib")
whatis("Version: 1.13")
whatis("Category: Biolo... |
-- Setup vars that are user-dependent.
function user_setup()
state.OffenseMode:options('Normal', 'Acc', 'Hybrid', 'Kendatsuba')
state.HybridMode:options('Normal', 'PDT', 'Reraise')
state.WeaponskillMode:options('Normal', 'HighBuff', 'Acc', 'Proc')
state.PhysicalDefenseMode:options('PDT', 'Reraise')
... |
local Plugin = script.Parent.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local RoactRodux = require(Libs.RoactRodux)
local Utility = require(Plugin.Core.Util.Utility)
local Constants = require(Plugin.Core.Util.Constants)
local ContextGetter = require(Plugin.Core.Util.ContextGetter)... |
-- Definitions
VER_MAJOR = "3"
VER_MINOR = "9"
VER_MICRO = "3"
MINFARVERSION = "{ 3, 0, 0, 3300 }" -- 3.0.0.4364 for non-embedded plugin build (-DRUN_LUAFAR_INIT)
COPYRIGHT = "Shmuel Zeigerman, 2007-2021"
-- Derivative values --
VER_STRING = VER_MAJOR.."."..VER_MINOR.."."..VER_MICRO
|
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2015, Ziyuan Guo <s10e.cn@gmail.com>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local string = { gmatch = string.g... |
print("Hello LuaView")
print("Hello LuaView")
print("Hello LuaView") |
local janim = require 'lib/janim'
local Resource = {Sprite = {}, Image = {}, Sound = {}, UI = {}}
function Resource.load()
Resource.Sprite.Player = janim.newSpriteSheet(
'assets/image/player_yellow.png', 12, 1)
Resource.Sprite.Fly = janim.newSpriteSheet('assets/image/fly.png', 5, 1)
... |
workspace "CellLang"
architecture "x64"
startproject "Cell"
configurations {
"Debug",
"Release",
}
local outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "Cell"
kind "ConsoleApp"
location "Cell"
language "C++"
cppdialect "C++17"
staticruntime "off"
targetdir ("%... |
-- UdpListener.lua
local ffi = require("ffi");
local IOCPSocket = require("IOCPSocket");
local SocketUtils = require("SocketUtils")
local Network = require("Network")
local UdpListener = {}
setmetatable(UdpListener, {
__call = function(self, ...)
return self:create(...)
end,
})
local UdpListener_mt = {
__index... |
local a={}function a.load(b)assert(type(b)=='string','Parameter "fileName" must be a string.')local c=assert(io.open(b,'r'),'Error loading file : '..b)local d={}local e;for f in c:lines()do local g=f:match('^%[([^%[%]]+)%]$')if g then e=tonumber(g)and tonumber(g)or g;d[e]=d[e]or{}end;local h,i=f:match('^([%w|_]+)%s-=%s... |
slot0 = class("BattleGateDuel")
ys.Battle.BattleGateDuel = slot0
slot0.__name = "BattleGateDuel"
slot0.Entrance = function (slot0, slot1)
slot2 = slot0.mainFleetId
if not slot1.LegalFleet(slot0.mainFleetId) then
return
end
if not getProxy(MilitaryExerciseProxy).getSeasonInfo(slot3):canExercise() then
pg.Tips... |
local playsession = {
{"Dammpi", {34722}},
{"MontrealCrook", {754514}},
{"ManuelG", {418189}},
{"GuidoCram", {125641}},
{"lukikl98", {83399}},
{"Agocelt", {739954}},
{"ragegear", {4194}},
{"Gnabergasher", {716203}},
{"bernat312", {325719}},
{"651782904", {8563}},
{"matryona12", {604522}},
{"sobitome", {6530... |
local helpers = require('test.functional.helpers')
local screen = require('test.functional.ui.screen')
local curbufmeths = helpers.curbufmeths
local curwinmeths = helpers.curwinmeths
local nvim_dir = helpers.nvim_dir
local command = helpers.command
local meths = helpers.meths
local clear = helpers.clear
local eq = hel... |
--- === plugins.core.monogram.manager ===
---
--- Monogram Actions for Final Cut Pro
local require = require
local log = require "hs.logger".new "monogram"
local fnutils = require "hs.fnutils"
local plist = require "hs.plist"
local timer = require "hs.timer"
... |
--!strict
--[[
Constructs special keys for property tables which connect event listeners to
an instance.
]]
local Package = script.Parent.Parent
local PubTypes = require(Package.PubTypes)
local logError = require(Package.Logging.logError)
local function getProperty_unsafe(instance: Instance, property: string)
ret... |
--Lua Script
--Non-threaded Associated Child Script
function sysCall_init()
--Leg lengths
l1 = 0.074948
l2 = 0.097066
l3 = 0.184358
--Step change
step = 0.001
--Initial phase
phase = 0
--Initial Co-ordinates of each leg
x4 = 0.172161
y4 = 0
z4 = 0.184358
x1 = 0.1... |
-- read metadata file into string
local metafile = io.open('tools/project_infos.yaml', 'r')
local content = metafile:read("*a")
metafile:close()
-- get metadata
local default_meta = pandoc.read(content, "markdown").meta
return {
{
Meta = function(meta)
-- use default metadata field if it hasn't b... |
--[[@@
to use this component simply do the ff.
var = gui.newPointer({image = image})
when using quads just add quad = quad
var = gui.newPointer({image = image , quad = quad})
@@]]
function SimplyLibrary.gui.newPointer(params)
params = params or {}
local pointer = {}
--@@ POINTER TYP... |
local files = require 'files'
local define = require 'proto.define'
local config = require 'config'
local await = require 'await'
local vm = require "vm.vm"
-- 把耗时最长的诊断放到最后面
local diagSort = {
['undefined-field'] = 99,
['redundant-parameter'] = 100,
}
local diagList = {}
for k in pairs(define.Diagnostic... |
data:extend({
{
type = "double-setting",
name = "recall-delay-per-robot",
setting_type = "startup",
default_value = 0.5
}
}) |
require('level')
local function human_stat_gain_fn(creature_id, level)
local is_pl = is_player(creature_id)
if level % 7 == 0 then
local stat = RNG_range(1, 3)
-- One of str, dex, agi
if stat == 1 then
incr_str(creature_id, is_pl)
elseif stat == 2 then
incr_dex(creature_id, is_pl)
... |
local _G = _G or getfenv(0)
local Abbreviate = ShaguTweaks.Abbreviate
local GetColorGradient = ShaguTweaks.GetColorGradient
local vanilla = ShaguTweaks.GetExpansion() == "vanilla" or nil
local module = ShaguTweaks:register({
title = "Real Health Numbers",
description = "Estimates health numbers, and shows numbers ... |
local key = "redis.limit:" .. KEYS[1] -- 限流key
local limit = tonumber(ARGV[1]) -- 限流大小
local windows = tonumber(ARGV[2]) -- 时间窗口
local val = redis.call('get', key)
if not val then
redis.call('INCRBY', key, 1)
redis.call('expire', key, windows)
return 0 -- 0表示不限流
end
local current = tonumer(redis.call('get', key) ... |
--Initialization script for the Mission lua Environment (SSE)
dofile('Scripts/ScriptingSystem.lua')
--Sanitize Mission Scripting environment
--This makes unavailable some unsecure functions.
--Mission downloaded from server to client may contain potentialy harmful lua code that may use these functions.
--You ... |
local utf8 = require("lua-utf8")
local u = utf8.escape
local Keys = {}
local KEYS = {
["null"] = u("%x{000}"),
["cancel"] = u("%x{001}"),
["help"] = u("%x{002}"),
["backspace"] = u("%x{003}"),
["tab"] = u("%x{004}"),
["clear"] = u("%x{005}"),... |
local validate_scope = require("kong.plugins.jwt-keycloak.validators.scope").validate_scope
local test_claims = {
scope = "profile email"
}
describe("Validator", function()
describe("for scope should", function()
it("handle a when allowed scopes is nil", function()
local valid, err = valid... |
getJob = function(jid)
local duplicate_job = false
local jid, parent, data, queue, worker, hash, status, options, submitted, retries, tags, result, duplicate, failedReason, history, dependants = unpack(redis.call('hmget', 'bee:h:jobs:' .. jid,
'jid', 'parent', 'data', 'queue', 'worker', 'hash', 'status... |
local resX, resY = guiGetScreenSize()
local isPlayerJailed = false
local jailTime = nil
local height = dxGetFontHeight(1.5,"bankgothic")
local whoIn = 0
-- Event when a player gets jailed
addEvent( "onSetPlayerJailed", true )
addEventHandler( "onSetPlayerJailed", root,
function ( theTime )
if ( theTime ) then
if ... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
return {'wuyts'} |
ITEM.name = "Shovel"
ITEM.description = "A old large digging shovel with blunt edges and a decaying handle."
ITEM.model = "models/weapons/hl2meleepack/w_shovel.mdl"
ITEM.class = "arccw_shovel_tn"
ITEM.category = "Melee"
ITEM.weaponCategory = "melee"
ITEM.flag = "V"
ITEM.width = 1
ITEM.height = 4
ITEM.bDropOnDeath = tru... |
-- Last Update: 09.04.2020
local waterMountList = {
"Azumarill Mount",
"S Azumarill Mount",
"Empoleon Mount",
"S Empoleon Mount",
"Whiscash Mount",
"S Whiscash Mount",
"Vaporeon Mount",
"S Vaporeon Mount",
"Mantine Mount",
"S Mantine Mount",
"Light Yellow Jet Skii",
"Light Teal Jet Skii",
"Light Red Jet S... |
local Command = {}
---@type NeopmState
local state
local function load_state()
if state then
return true
end
local ok, res = pcall(require, 'neopm.state')
if not ok then
return false
end
state = res
return true
end
local function echo(msg, hl, history)
vim.api.nvim_echo({{msg, hl}}, history ... |
local skynet = require "skynet"
local mysql = require "mysql"
local socket = require "skynet.socket"
Package = {}
function Package.init(cID)
socket.write(cID, "ok")
skynet.sleep(10)
socket.write(cID, "ok")
local str = socket.read(cID)
if str == false then
return
end
local name = str
local db = mysql.connec... |
local _, addonData = ...
City = {
16609, --"WarChief's Blessing",
22888, --"Rallying Cry of the Dragonslayer",
24425, --"Spirit of Zandalar",
}
DarkMoon = {
23768, --"Sayge's Dark Fortune of Damage",
23769, --"Sayge's Dark Fortune of Resistance",
23767, --"Sayge's Dark Fortune of Armor",
23766, --"Sayge... |
function update(time_)
print(time_, '\n')
end |
ESX = nil
cachedData = {}
Citizen.CreateThread(function()
while not ESX do
--Fetching esx library, due to new to esx using this.
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
if Config.VehicleMenu then
while true do
Citizen.Wait(5)
if IsControlJustPressed(0,... |
days = {
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
}
revDays = {}
for i, v in ipairs(days) do
revDays[v] = i
end
x = "Tuesday"
print(revDays[x]) --> 3
|
local isLoggedIn = false
local isBleeding = 0
local advanceBleedTimer = 0
local blackoutTimer = 0
local onPainKiller = 0
local wasOnPainKillers = false
local onDrugs = 0
local wasOnDrugs = false
local legCount = 0
local armcount = 0
local headCount = 0
local playerHealth = nil
local playerArmour = nil
local Weapon... |
ITEM.name = "SCAR-H"
ITEM.description = "The FN SCAR is a gas-operated self-loading rifle with a rotating bolt. It is constructed to be extremely modular, including barrel change to switch between calibers. The rifle was developed by Belgian manufacturer FN Herstal (FNH) for the United States Special Operations Command... |
require("CustomGame.UI.TestUI")
---@type Framework.UI.Prefab
local super = require("Framework.UI.Prefab")
---@class CustomGame.UI.TestContainer:Framework.UI.Prefab
---@field m_Doc CustomGame.UI.TestUI
TestContainer = class("CustomGame.UI.TestContainer", super)
function TestContainer:GetAssetPath()
if IsEditor th... |
local tnt = require 'torchnet.env'
-- CUDA testing on Travis is just painful...
if not os.getenv("TRAVIS_TEST") then
require 'cutorch'
end
local tester
local test = torch.TestSuite()
function test.AverageValueMeter()
local mtr = tnt.AverageValueMeter()
mtr:add(1)
local avg, var = mtr:value()
tester:... |
-- NetHack 3.7 sokoban.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.13 $
-- Copyright (c) 1998-1999 by Kevin Hugo
-- NetHack may be freely redistributed. See license for details.
--
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel", "notelepor... |
return {'spraak','spraakcentrum','spraakgebrek','spraakgebruik','spraakgeluid','spraakgestuurd','spraakherkenning','spraakklank','spraakkunst','spraakkunstig','spraakleer','spraakleraar','spraaklerares','spraakles','spraakmakend','spraakmaker','spraakorgaan','spraakstoornis','spraaksynthese','spraaktechnologie','spraak... |
Elona.CurseState = {
Equipped = {
Blessed = function(actor, target, item)
return ("%sは何かに見守られている感じがした。"):format(_.name(target))
end,
Cursed = function(actor, target, item)
return ("%sは急に寒気がしてふるえた。"):format(_.name(target))
end,
Doomed = function(actor, ... |
local nata = require 'nata'
describe('nata.new', function()
it('returns a pool', function()
assert.is.table(nata.new())
end)
it('only accepts tables as the first argument', function()
assert.has_error(function()
nata.new(2)
end, "bad argument #1 to 'new' (expected table, got number)")
assert.has_error(f... |
assert( SF.Vehicles )
local vehicle_methods = SF.Vehicles.Methods
local vehicle_metamethods = SF.Vehicles.Metatable
local wrap = SF.Vehicles.Wrap
local unwrap = SF.Vehicles.Unwrap
--- Gets the entity that is driving the vehicle
-- @return The player driving the vehicle or nil if there is no driver
function vehicle_m... |
if SERVER then
AddCSLuaFile()
else
SWEP.PrintName = "MP5"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 2
SWEP.SlotPos = 3
SWEP.IconLetter = "x"
killicon.AddFont( "weapon_mp5", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) )
end
SWEP.HoldType = "smg"
SWEP.Base = "weapon_cs_ba... |
-- luacheck: globals love
local createLeafNode = require('reactor.helpers.createLeafNode')
local function getFormattedText(props)
local value = props.value
local wraplimit = nil
local alignment = 'left'
if props.width ~= nil then
wraplimit = props.width
end
if props.alignment ~= nil then
alignme... |
--[[
luci-app-argonne-config
]]--
module("luci.controller.argonne-config", package.seeall)
function index()
if not nixio.fs.access('/www/luci-static/argonne/css/cascade.css') then
return
end
entry({"admin", "system", "argonne-config"}, form("argonne-config"), _("Argonne Config"), 90)
end
|
local ServerScriptService = game:GetService("ServerScriptService")
local Pet = require(ServerScriptService.Pet)
local Dog = require(ServerScriptService.Dog)
local pet = Pet.new("Chuck", 6)
pet:sayHi()
local dog = Dog.new("Annie", 7)
dog:sayHi()
dog:bark() |
function purgeLocoFromPairs(loco)
-- Purge pairs with these same locomotives before adding a new pair with them
-- Safe remove-while-iterating algorithm from
-- https://stackoverflow.com/questions/12394841/safely-remove-items-from-an-array-table-while-iterating
local n = #global.mu_pairs
local done = false
for... |
PROPERTY = {};
PROPERTY.ID = 37;
PROPERTY.Name = "Penthouse Apartment";
PROPERTY.Category = "Apartment";
PROPERTY.Description = "A very large apartemnt, with a nice balcony";
PROPERTY.Image = "ev33x_penthouse";
PROPERTY.Cost = 1500;
PROPERTY.Doors = {
{Vector(-10747, -10081, 510.2... |
lwlgl = {
version = "v0.0.1",
author = "Rabia Alhaffar",
libs = {
gl = { "gl.lua", "bin/opengl32" },
glu = { "glu.lua", "bin/glu32" },
glut = { "glut.lua", "bin/freeglut" },
sdl = { "sdl2.lua", "bin/SDL2" },
sdl_sound = { "sdl_sound.lua", "bin/SDL_sound" },
vulkan = { "vulkan.lua", "bin/vu... |
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'beancount-language-server', '--stdio' },
filetypes = { 'beancount', 'bean' },
root_dir = util.find_git_ancestor,
single_file_support = true,
init_options = {
-- this is the path to the beancout journal file
jou... |
local version = "1.02"
local menu = menuconfig("aawareness", "Avada Awareness")
menu:boolean("HealthBarDrawer_load", "Draw Health Bar Infos", true)
menu:boolean("HUDDrawer_load", "Draw Advanced HUD", true)
-- menu:boolean("JunglerTracker_load", "Draw Jungler Ganks Alert", true)
-- menu:boolean("ObjectivesTracker_load"... |
function onCreate()
--Iterate over all notes
for i = 0, getProperty('unspawnNotes.length')-1 do
--Check if the note is an Pe-Li-Gro
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Pe-Li-Gro' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'PE_LI_GRO'); --Change texture
if getPrope... |
-- Event notes hooks
function onEvent(name, value1, value2)
if name == 'Opponent Fade' then
duration = tonumber(value1);
if duration < 0 then
duration = 0;
end
doTweenAlpha('dadFadeEventTween', 'dad', value2, duration, 'linear');
doTweenAlpha('iconDadFadeEventTween', 'iconP2', value2, duration, ... |
--
-- tests/base/test_detoken.lua
-- Test suite for the token expansion API.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local suite = test.declare("detoken")
local detoken = premake.detoken
--
-- Setup
--
local x
local environ = {}
--
-- The contents of the token should be executed a... |
-- indent blankline
vim.g.indent_blankline_buftype_exclude = { 'terminal', 'nofile'}
vim.g.indent_blankline_char = "┊"
vim.g.indent_blankline_char_highlight = 'LineNr'
vim.g.indent_blankline_filetype_exclude = { 'help', 'packer' }
vim.g.indent_blankline_show_current_context = true
vim.g.indent_blankline_use_treesitter... |
local function concommand_executed(ply, cmd, args)
if not args[1] then return end
local name = string.lower(args[1]);
if not name or not FAdmin.Commands.List[name] then
FAdmin.Messages.SendMessage(ply, 1, "Command does not exist!");
return
end
local args2 = args
table.remove(args2, 1);
for k,v in pairs(arg... |
require "app.common.http.httpc"
require "app.common.http.httpd"
|
local ItemPrototypes = {
Armor = "power-armor-mk2",
Robot = "construction-robot",
Fuel = "",
Reactor = "fusion-reactor-equipment", --4x4
Exoskeleton = "exoskeleton-equipment", --2x4
Shield = "energy-shield-mk2-equipment", --2x2
Roboport = "personal-roboport-mk2-equipment", --2x2
Battery = "battery-mk2-equipment... |
local utf8 = {}
local bit = require "plenary.bit"
local band = bit.band
local bor = bit.bor
local rshift = bit.rshift
local lshift = bit.lshift
---The pattern (a string, not a function) "[\0-\x7F\xC2-\xF4][\x80-\xBF]*",
---which matches exactly one UTF-8 byte sequence, assuming that the subject is a valid UTF-8 stri... |
local zip = require("zip")
local fs = require("filesystem")
local arg = {...}
if arg[1] == "archive" then
fs.makeDirectory(fs.path(arg[3]))
zip.archive(arg[2], arg[3], true)
elseif arg[1] == "unarchive" then
if not fs.exists(arg[2]) then error("There is no file named as \"" .. arg[2] .. "\"") end
fs.makeDirectory... |
local utils = require "utils"
local M = {}
function M:init()
self.room_tbl = {}
self.addr_tbl = {}
self.fd_2_userid = {}
self.fd_2_addr = {}
self.userid_2_fd = {}
end
function M:new_room(info)
self.room_tbl[info.roomid] = info
self.addr_tbl[info.roomid] = info.addr
end
function M:get_roo... |
ITEM.name = "Хлеб"
ITEM.desc = "Уже зачерствел, но все еще пригоден в пищу."
ITEM.category = "Еда"
ITEM.model = "models/items/provisions/bread01/bread01_cooked.mdl"
ITEM.hunger = 40
ITEM.thirst = -15
ITEM.drunk = -15
ITEM.price = 35
ITEM.quantity = 5
ITEM.permit = "food" |
fx_version 'adamant'
game 'gta5'
author 'Night'
server_scripts {
'server/main.lua'
}
client_scripts {
'client/main.lua'
}
shared_script {'@es_extended/imports.lua', 'Config.lua'}
|
--[[
Copyright (c) 2011-2014 chukong-inc.com
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, dis... |
socket = require "socket"
json = require "cjson"
math.randomseed(socket.gettime()*1000)
math.random(); math.random(); math.random()
-- curl -k -u 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP -X POST https://172.17.0.1/api/v1/namespaces/_/actions/compute_py?block... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:caf28ab37c937d6fc33eb979cb5877f9:4dcab5c190115bd8fb11fe99c76eaa0a:cf8ab4992190eb44f97f06311ef326d7$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
condition:setParameter(CONDITION_PARAM_SKILL_SHIELDPERCENT, 60)
condition:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, 70)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_YELLOW)
co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.