content stringlengths 5 1.05M |
|---|
local isUiOpen = false
local speedBuffer = {}
local velBuffer = {}
local beltOn = false
local wasInCar = false
IsCar = function(veh)
local vc = GetVehicleClass(veh)
return (vc >= 0 and vc <= 7) or (vc >= 9 and vc <= 12) or (vc >= 17 and vc <= 20)
end
Fwv = function (entity)
... |
-- tolua: declaration class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: declaration.lua,v 1.5 2011/01/13 13:43:46 fabraham Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligatio... |
----
-- Tests for the xlsxwriter.lua worksheet class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
require "Test.LongString"
plan(1)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require "xlsxwriter.worksheet"
local Format = require "xlsxwriter.... |
function Test()
local lines = RunJam()
local pattern =
{
'*** found 17 target(s)...',
'*** updating 8 target(s)...',
'@ BatchIt hello.out',
'hello hi more',
'@ BatchIt hello.out',
'less somewhere over',
'@ BatchIt hello.out',
'the rainbow',
'*** updated 8 target(s)...',
}
return TestPattern(pat... |
-- © 2021 Emmanuel Lajeunesse
-- Roblox Services --
local Chat = game:GetService("Chat")
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local Workspace = game:GetService("Workspace")
local StarterPlayer = game:GetService("StarterPlayer")... |
prepend_path("PATH","/share/PI/langlotz/software/rmate")
help([[ This module provides support for the Anaconda 2 distribution]])
|
-- This script will cause mpv to always play on startup (since pause=no doesn't
-- seem to work in mpv.conf)
--https://github.com/AN3223/dotfiles/blob/master/.config/mpv/scripts/always-play-on-startup.lua
mp.register_event(
"file-loaded", function() mp.set_property_bool("pause", false) end
)
|
local ok, dim = pcall(require, "neodim")
if not ok then
vim.notify "Could not load dim"
return
end
vim.diagnostic.config {
virtual_text = {
prefix = "",
format = function(diagnostic)
return require("neodim").ignore_vtext(diagnostic)
end,
},
signs = true,
underline = false,
update_in_in... |
local M = {}
function M.readable(file_path)
return vim.fn.filereadable(file_path) ~= 0
end
function M.is_directory(file_path)
return vim.fn.isdirectory(file_path) ~= 0
end
return M
|
-- Small stats library --
----------------------------------------------
-- Version History --
-- 1.0 First written.
-- http://lua-users.org/wiki/SimpleStats
-- Tables supplied as arguments are not changed.
local function mean (t)
local sum = 0
local count = 0
for _, v in ipairs (t) do
... |
BLT.Items.TextBox = BLT.Items.TextBox or class(BLT.Items.Item)
local TextBox = BLT.Items.TextBox
TextBox.type_name = "TextBox"
function TextBox:Init()
self.size_by_text = false
TextBox.super.Init(self)
self.floats = self.floats or 2
if self.filter == "number" then
self.value = tonumber(self.value) or 0
... |
local M = {}
function M.test()
local cairo = require "org.xboot.cairo"
local M_PI = math.pi
local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400)
local cr = cairo.create(cs)
cr:save()
cr:set_source_rgb(0.9, 0.9, 0.9)
cr:paint()
cr:restore()
local x0 = 25.6
local y0 = 25.6
local... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_underlord... |
-- ======================================================================
-- Ticket Translation
-- Advent of Code 2020 Day 16 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ===================... |
-- making these locals will make things slighly faster
local pi = math.pi
local b1 = 1 / 2.75
local b2 = 2 / 2.75
local b3 = 1.5 / 2.75
local b4 = 2.5 / 2.75
local b5 = 2.25 / 2.75
local b6 = 2.625 / 2.75
local sin = math.sin
local cos = math.cos
local sqrt = math.sqrt
local pow = math.pow
local t = {}
function t.lin... |
-- =============================================================================
-- __ __________ ______
-- / \ / \_____ \ / __ \
-- \ \/\/ // ____/ > <
-- \ // \/ -- \
-- \__/\ / \_______ \______ /
-- \/ \/ \/
-- plugins.lua --- List of plugins
-- Co... |
-- Player PLS Info
local PlayerInfo = class("PlayerInfo")
-- 构造函数;
function PlayerInfo:ctor()
self.PLSID = nil;
self.UID = nil;
end
return PlayerInfo;
|
-- Project: Snap
--
-- Date: Sep 11, 2014
--
-- Version: 0.1
--
-- File name: snap.lua
--
-- Author: Michael Wilson / Ponywolf
--
-- Update History:
--
-- 0.1 - Initial release
-- 0.2 - Lots of re-org
-- 0.3 - Added align
-- 0.4 - Safe snap
--
-- Snap display objects for HUD purposes
--
-- Examples:
-- snap(object, "t... |
--[[--------------------------------------------------------------------
Copyright (C) 2011, 2012 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
local OVALE,... |
--[[
-- Copyright(c) 2018-2025, 武汉舜立软件 All Rights Reserved
-- @brief p_net 网络部分协议
-- @author 李绍良
--]]
local string = require("string")
local np_err = require("base.np_err")
local cfg = require("ipc.cfg.cfg")
local imsg = require("ipc.imsg")
local iworker = require("ipc.iworker")
local p_net = {}
-- @brief 设置ipv4
-... |
Map = {}
local mapMeta = {}
Map.new = function (map)
local obj = {
map = require(map)
}
setmetatable(obj, mapMeta)
return obj
end
Map.Load = function(self)
local tileSetPath = "maps/tilesets/" .. self.map.tilesets[1].name
local tileSet = require(tileSetPath)
self.tiles = {}
... |
-- local max = ARGV[1] - '0'
local max = tonumber(ARGV[1])
if redis.call('exists', KEYS[1]) == 1 then
local value = redis.call('get', KEYS[1]) - '0'
if value <= max then
redis.call('incr', KEYS[1])
redis.call('expire', KEYS[1], ARGV[2])
return 1
end
else
redis.call('set', KEYS[1]... |
-----------------------------------
-- Guillotine
-- Scythe weapon skill
-- Skill level: 200
-- Delivers a four-hit attack. Duration varies with TP.
-- Modifiers: STR:25% MND:25%
-- 100%TP 200%TP 300%TP
-- 0.875 0.875 0.875
-----------------------------------
require("scripts/globals/status")
require("sc... |
-- bash specific settings
-- I always write bash, never posix shell
vim.api.nvim_buf_set_var(0, 'is_bash', 1)
|
--Script Name : jlp_Split item under mouse cursor (select right)(don't move edit cursor).lua
--Author : Jean Loup Pecquais
--Description : Split item under mouse cursor
--v1.0.0
local libPath = reaper.GetExtState("Reaper Evolution", "libPath")
if not libPath or libPath == "" then
reaper.MB("Reaper Evolution librar... |
--[[----------------------------------------------------------------------------
This file is part of Friday Night Funkin' Rewritten by HTV04
------------------------------------------------------------------------------]]
return Sprite (
sheets["notes"],
{
{x = 157, y = 235, width = 153, height = 157, offs... |
-- Air Foil
-- Crazyman32 Modified By Widgeon
-- January 18, 2017
--[[
References:
https://www.grc.nasa.gov/www/Wright/airplane/lifteq.html
https://www.grc.nasa.gov/www/Wright/airplane/drageq.html
https://www.grc.nasa.gov/www/Wright/airplane/incline.html
This module handles the aerodynamic physics of a si... |
Webhook = {
Name = "LogsVenturas",
Logo = "https://media.discordapp.net/attachments/743953072266412056/744662695541735504/CoreoLogo.png",
ShowIp = true,
Chan = {
-- Players --
["Connnection"] = "https://discord.com/api/webhooks/797541598186831962/Cdho1heCBNTG0VjRXP9fpMpEyfzAZUehOEnCyxPEr... |
include "client.lua"
TRAJECTORY_BUILDER.pure_localization_trimmer = {
max_submaps_to_keep = 3,
}
POSE_GRAPH.optimize_every_n_nodes = 10
return options |
-- Copyright (C) 2019 By KGHX
-- Licensed to the public under the GNU General Public License v3.
local sys = require "luci.sys"
local util = require "luci.util"
local state=(sys.call("pidof memcached > /dev/null") == 0)
if state then
state_msg = "<b><font color=\"green\">" .. translate("Running") .. "</font></b>"
el... |
-- Turn emphasized into strong text.
--
-- Invoke with:
-- pandoc -t emph2strong.lua [READ-OPTIONS] | pandoc -f json [WRITE-OPTIONS]
panluna = require("panlunatic")
function Emph(s)
return panlunatic.Strong(s)
end
setmetatable(_G, {__index = panlunatic})
|
--[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local tostring = tostring
local assert = assert
local jsonutil = require("json.util")
local type = type
local _ENV = nil
-- Shortcut that works
local encodeBoolean = tostring
local defaultOp... |
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
-- ───────────────────────────────────────────────── --
-- Plugin: nvim-bufferline.lua
-- Github: github.com/akinsho/nvim-bufferline.lua
-- ───────────────────────────────────────────────── --
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
... |
local oop = require("diffview.oop")
local utils = require("diffview.utils")
local Node = require("diffview.views.file_tree.node").Node
local M = {}
---@class DirData
---@field name string
---@field collapsed boolean
---@field status string
---@class FileTree
---@field root Node
local FileTree = oop.Object
FileTree =... |
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.Spawnable = false
ENT.Model = Model( "models/props_phx/rt_screen.mdl" )
ENT.MediaPlayerType = "entity"
ENT.IsMediaPlayerEntity = true
local ErrorModel = "models/error.mdl"
function ENT:Initialize()
if SERVER then
if self:GetModel() == ErrorModel then
self:SetMode... |
return {
name = "dns.switch.ch",
label = _("Switch DNS - CH"),
resolver_url = "https://dns.switch.ch/dns-query",
bootstrap_dns = "130.59.31.248,2001:620:0:ff::2",
help_link = "https://www.switch.ch/security/info/public-dns/",
help_link_text = "Switch.ch"
}
|
local filesystem = require("filesystem")
local file = io.open("A:/mandelbrot.b", "r")
local txt = file:read("a")
--local bf = string.toCharArray(txt)
local brackets = {}
local mem = {0}
local ptr = 1
local waitDepth = 0
local waitBracket = false
local i = 1
while i < #txt do
local c = txt:sub(i, i)
--io.stdout:wri... |
local snd = require('playsound')
o = obslua
ALERT_INTERVAL = 0
IS_ALERTING = false
IS_PLAYING = false
IS_HOLDING_KEY = false
HOTKEY_ID = o.OBS_INVALID_HOTKEY_ID
DETECT_INPUT = false
PROP_ALERT_AUDIO_FILEPATH = script_path() .. "defaultalert.wav"
function script_description()
return "Alerts user in chosen interval i... |
local M = {}
local composer = require( "composer" )
local physics = require( "physics" )
local savedata = require( "scenes.libs.savedata" )
-- submarine vars
local submarine
local submarineIsRising
local touchActive
local group
local bubbleGroup
local submarineSkin
local bubbleSkin
-- constant vars
local submar... |
local strawberryBlockfield = {}
strawberryBlockfield.name = "blockField"
strawberryBlockfield.fillColor = {0.4, 0.4, 1.0, 0.4}
strawberryBlockfield.borderColor = {0.4, 0.4, 1.0, 1.0}
strawberryBlockfield.placements = {
name = "block_field",
data = {
width = 8,
height = 8
}
}
return strawbe... |
Stocks = {}
Stocks.open = false
function Stocks.create()
phone.stocks = {gridlist = {}, button = {}, label = {}}
phone.stocks.button["view_market"] = GuiButton(26, 480, 257, 38, "View Stock Market", false, phone.image["phone_window"])
phone.stocks.gridlist["own"] = GuiGridList(26, 301, 257, 169, false, phone.im... |
-- $Id: ShieldSphereColor.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local ShieldSphereColorPa... |
return {
{
type = "label",
id = 8,
export = "default_label",
width = 200,
height = 100,
font = "",
align = 0,
size = 16,
color = 0xffffffff,
noedge = true,
},
{
type = "picture",
id = 1,
export = "die2",
{
tex = 1,
src = { 122, 1, 122, 111, 224, 111, 224, 1 },
screen = { -1040, -880, -1040, 880, 59... |
local Object = require("classic")
local cjson = require("cjson")
local Logger = Object:extend()
local function merge(extendee, extender)
for key, value in pairs(extender) do
extendee[key] = value
end
return extendee
end
function Logger:new()
if not Logger.ngx then
error('Nginx is... |
FrenchRP.stub{
name = "drawPlayerInfo",
description = "Draw player info above a player's head (name, health job). Override this function to disable or change drawing behaviour in FrenchRP.",
parameters = {
},
returns = {
},
metatable = FrenchRP.PLAYER
}
FrenchRP.stub{
name = "drawWanted... |
-- CADMIUM --
-- Roblox Rootkit/Remote Access Trojan --
-- What is Cadmium? --
-- Cadmium is a ROBLOX Rootkit/Remote Access Trojan. It hooks onto a player using a remote event and then allows you to completely --
-- take control of the victim's robux value, cookies, reporting functions, chat and execute serverside ... |
return {'luur','luuk','luuc','luus','luut','luursema','luucs','luuks','luus','luuts'} |
--- Provides utility methods for MarketplaceService
-- @module MarketplaceUtils
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local MarketplaceService = game:GetService("MarketplaceService")
local Promise = require("Promise")
local MarketplaceUtils = {}
function Marketplac... |
return {
slugs={{["type"]="test2", number=1}, {["type"]="test", number=2}}
}
|
-- Source: https://github.com/soumith/imagenet-multiGPU.torch/blob/master/util.lua
local ffi=require 'ffi'
------ Some FFI stuff used to pass storages between threads ------------------
ffi.cdef[[
void THFloatStorage_free(THFloatStorage *self);
void THLongStorage_free(THLongStorage *self);
]]
local function setFloatS... |
IsPassive = false
local passivetextbox = nil
local disabling_passive = false
local can_enable_passive = true
local locked = false
local function PassiveTextBoxUpdate()
if IsPassive then
if not passivetextbox then
passivetextbox = CreateTextBox(0, 350, "Passive Mode")
end
CreateNotificati... |
local M = {}
local msg_map = {}
M.message = {
-- 服务器准备完毕
REQ_SERVER_READY = 1,
-- 帧率
REQ_SERVER_UPDATE = 2,
-- 固定帧更新
REQ_SERVER_FIXED_UPDATE = 3,
-- 登录认证
LoginAuthReq = 100,
LoginAuthResp = 101,
-- 发出PING
LoginPingReq = 102,
LoginPingResp = 103,
-- 发出GCM码
... |
-- LoadModule is by default included in 5.3, If people use 5.1 load 5.3's version manualy.
if not LoadModule then
function LoadModule(ModuleName,...)
local Path = THEME:GetCurrentThemeDirectory().."Modules/"..ModuleName
if not FILEMAN:DoesFileExist(Path) then
Path = "Appearance/Themes/_fallback/Modules/"..... |
local fun = require 'fun'
local record = require 'record'
local rx = require 'rx'
local rxtnt = require 'rxtnt'
local util = require 'util'
local ITERATORS = {'EQ', 'REQ', 'GT', 'GE', 'LT', 'LE', 'ALL'}
local INDEXES = {'id', 'offset'}
local assertup = util.assertup
local M = {}
function M.is_ready()
return fun.i... |
-- mod-version:2
local syntax = require "core.syntax"
syntax.add {
name = "TOML",
files = { "%.toml$" },
comment = '#',
patterns = {
{ pattern = "#.-\n", type = "comment" },
{ pattern = { '"""', '"""', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { ... |
return{
name = "stone",
}
|
require 'torch'
require 'optim'
dofile 'rosenbrock.lua'
dofile 'l2.lua'
x = torch.Tensor(2):fill(0)
fx = {}
config = {learningRate=1e-1}
for i = 1,10001 do
x,f=optim.adagrad(rosenbrock,x,config)
if (i-1)%1000 == 0 then
table.insert(fx,f[1])
end
end
print()
print('Rosenbrock test')
print()
print('x=');print(x)
... |
local smoketest = smoketest
local sam = smoketest.sam
local positions = smoketest.testbox.positions
local initial_stack_size = 5
return function(name, def)
if not def.after_use then return end
describe(name .. " after_use", function()
its("after_use will return an itemstack or nil", function()
Given "an ItemSta... |
local playsession = {
{"mewmew", {1149229}},
{"redlabel", {1684312}},
{"ANV1L", {300588}},
{"opasuke", {1204692}},
{"Itai795", {303518}},
{"anonieme_beer", {3068}},
{"abrown4521", {339098}},
{"maate", {1073034}},
{"Jhumekes", {195435}},
{"Drezik99", {88901}},
{"legendary_banana", {10341}},
{"Dreamon5410", {... |
MODE = 'history' -- 'history' or 'users'
CONTACT_NAME = 'Raff' -- It can be a part of contacts name
MESSAGE_COUNT = 500
TYPE = 'csv' -- 'csv' or 'sqlite'
DATABASE_FILE = 'db.sqlite3'
CSV_FILE_CONTACTS = 'contacts.csv'
CSV_FILE_MESSAGES = 'messages.csv'
function writeCSV(path, data, sep)
sep = sep or ','
local fi... |
local M = {}
local utils = require("telescope._extensions.repo.utils")
-- Prepare fd command and change opts accordingly
M.prepare_command = function(opts)
opts = opts or {}
opts.bin = opts.bin or utils.find_fd_binary()
if opts.bin == "" then
error("fd not found, is fd installed?")
end
opt... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- weapon_vape_mega.lua
-- Defines a big vape that makes massive clouds (admin only recommended)
-- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/
if CLIENT then
include('weapon_vap... |
-----------------------------------
-- Area: Aydeewa Subterrane
-- ZNM: Pandemonium Warden
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
local ID = require("scripts/zones/Aydeewa_Subterrane/IDs");
-- Pet Arrays, we'll altern... |
SWEP.Base = "arccw_base"
SWEP.Spawnable = true -- this obviously has to be set to true
SWEP.Category = "ArcCW - Black Ops" -- edit this if you like
SWEP.AdminOnly = false
SWEP.PrintName = "Ingram MAC-11"
SWEP.Trivia_Class = "Machine Pistol"
SWEP.Trivia_Desc = "The MAC-11 is an american subcompact submachiine gun. It i... |
-- generate useful data from Unicode Character Database.
-- you should have these files in ucd folder in current path:
-- - ucd\CaseFolding.txt
-- - ucd\DerivedCoreProperties.txt
-- - ucd\EastAsianWidth.txt
-- - ucd\PropList.txt
-- - ucd\UnicodeData.txt
--
-- files can be downloaded at: http://unicode.org/... |
-- vim:ts=2 sw=2
local deque = require "deque"
local screenWidth, screenHeight
local assets = {textfont, blockfont}
local bag = {} -- source of tiles
-- these two could be local to the scoring function,
-- but are here to show the diagnostic view
local groups = {}
local failedGroups = {}
local currentTile = nil
loc... |
--[[
╔═══════════════════════════════════════════════╗
Author: Ali Shahid
Github: github.com/shaeinst
╚═══════════════════════════════════════════════╝
--]]
--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--
--━━━━━━━━━━━━━❰ Plugin-Independent Mapping ❱━━━━━━━━━━━━━--
--━━━━━━━━━━━━━━━━━━... |
vim.opt.nu = true
vim.opt.rnu = true
vim.opt.wrap = false
vim.opt.ruler = true
vim.opt.cindent = true
vim.opt.smarttab = true
vim.opt.expandtab = true
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.autoindent = true
vim.opt.ignorecase = true
vim.opt.cursorline = true
vim.opt.smartindent = false
vim.opt.ter... |
local wieldhooks = modns.get("com.github.thetaepsilon.minetest.libmt_wield_hooks")
local warning = function(msg)
minetest.log("warning", "[handheld_torch] "..msg)
end
-- TODO: make this configurable to help alleviate server lag
local master_interval = 0.28
-- map from an object reference to their associated light e... |
-- spritelib-start
cursorhanddown={width=2,spriteIDs={102,103,128,129}}
cursorhand={width=2,spriteIDs={15,16,61,62}}
cursorhelp={width=2,spriteIDs={106,107,132,133}}
cursorpointer={width=2,spriteIDs={13,14,59,60}}
cursortext={width=2,spriteIDs={17,18,63,64}}
instrumentbutton1disabled={width=2,spriteIDs={252,253,300,301... |
local rgfx = require("rgfx")
local sbyte, schar = string.byte, string.char
local serialize, deserialize, write, read
do
local function int2str(n)
return schar(n & 0xFF,
n >> 8 & 0xFF,
n >> 16 & 0xFF,
n >> 24 & 0xFF,
n ... |
local crypto_stream_sig = [[
int (%s)(unsigned char *c, unsigned long long clen,
const unsigned char *n, const unsigned char *k)
]]
local crypto_stream_xor_sig = [[
int (%s)(unsigned char *c, const unsigned char *m,
unsigned long long mlen,
const unsigned char *n, const unsigned ch... |
--ifttt.lua
-- requires keys.lua not included in git repo, which defines keys required.
dofile("keys.lua")
conn = nil
conn=net.createConnection(net.TCP, 0)
conn:on("receive", function(conn, payload)
print(payload)
end)
conn:on("connection", function(conn, payload)
print('\nConnected')
... |
-- Copyright 2015 Boundary, Inc.
--
-- 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 or agreed to i... |
if string.find(vim.o['runtimepath'], 'neo-tree') then
require("neo-tree").setup({
popup_border_style = "rounded",
enable_git_status = true,
enable_diagnostics = true,
filesystem = {
follow_current_file = false, -- This will find and focus the file in the
-- ac... |
local function getNewTexturePath(oldTexturePath)
local newTexturePath,changes = string.gsub(oldTexturePath, "^__base__", "__RealisticOres__")
return newTexturePath
end
local function changeOreTextures(oreName, mapColor, doShadows)
local oreResource = data.raw.resource[oreName .. "-ore"]
oreResource.icon = getNewTe... |
frmMain = class()
local function btnApplyClick(sender, e)
MessageBox.Show("Apply!")
end
function frmMain:__init()
self.form = Form()
self.form:SuspendLayout()
self.cboxHost = ComboBox()
self.cboxHost.FormattingEnabled = true
self.cboxHost.Location = Point(12, 12)
self.cboxHost.Size = Size(150, 21)
self.cboxH... |
--[[
Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
]]
local Http = require ("contrib/http");
local Sql = require ("contrib/sql");
local Session = require ("contrib/session");
local DocumentsExt = {"txt", "pdf", "ps", "rtf", "wps", "xml", "xps", "odt", "doc", "docm", "docx", "dot", "dotm", "dotx", "csv", "dbf",... |
Config = {}
-------------------------------------- MENUS --------------------------------------------
Config.TeleportMenu = true
Config.VehicleSpawnMenu = true
Config.WeaponMenu = true
------------------------------------- OPTIONS -------------------------------------------
Config.Suicide = true
--------------... |
function Configuration(root,commonF,dataController,guiMessages)
local slaves = (dataController.getObjects()).slaveList.getSlaves()
local continue = true
local function createTask(id,execution,params)
task = {}
task.id = id or 0
task.complete = false
task.sent = false
task.params = params or {}
task.... |
-- Skins mod for minetest
-- Adds a skin gallery to the inventory, using inventory_plus
-- Released by Zeg9 under WTFPL
-- Have fun !
skins = {}
skins.type = { SPRITE=0, MODEL=1 }
skins.skins = {}
skins.default = function()
return "character_1"
end
skins.get_type = function(texture)
if not texture then return end
... |
local sister = {}
sister.name="Onee"
sister.lastname="Chan"
sister.personadeck = {["Jack Frost"]=dofile(DATAPATH.."pers/Jack Frost.lua")}
sister.persona=sister.personadeck["Jack Frost"]
sister.maxhp = 100
sister.hp = 100
sister.maxsp = 50
sister.sp = 50
return sister |
-- vim: ts=4 sw=4
--
-- collects all http responder and add them
require "console"
if not httpreq then httpreq={} end
if not httpreq.responder then
httpreq.responder = {}
local fslist = file.list()
table.foreach(fslist, function(name, size)
if name:match("^httpresponder/") then
table.insert(httpreq.responder,... |
function dedserv.init()
svconfig.init()
local nextMapDelay = 0
local nextMap = ""
local messageTimer = 0
function bindings.afterUpdate()
if svConfig.showmessage == 1 then
if messageTimer < (svConfig.messagedelay*6000) then
messageTimer = messageTimer + 1
else
promode.svsay(svConfig.message)
... |
local id_mgr = require "id_mgr"
local room = require "room"
local game_list = require "game_list"
local room_mgr = {}
function room_mgr:init()
id_mgr:init()
self.room_tbl = {}
self.player_2_room = {}
self.game_2_room = {}
for game_id, _ in ipairs(game_list) do
self.game_2_room[game_id] =... |
-- -----------------------------------------------------------------------------
-- Star Wars: Imperial Assault - Skirmish
-- by Ikon
-- -----------------------------------------------------------------------------
local DEFS = require("swia-skirmish-tts/modules/common/definitions")
local STRING = require("swia-... |
module("luci.controller.poweroffdevice", package.seeall)
function index()
entry({"admin","system","poweroffdevice"},, template("poweroffdevice/poweroffdevice"), _("PowerOff"), 92)
entry({"admin","system","poweroffdevice","call"},post("action_poweroff"))
end
function action_poweroff()
luci.sys.exec("... |
local scriptpath = core.get_builtin_path()..DIR_DELIM
local commonpath = scriptpath.."common"..DIR_DELIM
local gamepath = scriptpath.."game"..DIR_DELIM
-- Shared between builtin files, but
-- not exposed to outer context
local builtin_shared = {}
dofile(commonpath.."vector.lua")
dofile(gamepath.."constants.lua")
as... |
-- FIXME refractor me
local config = require('definitions.gui_config')
local list_config = config.binding_list
local runner = require('command.runner')
local getActionTypes = require('command.action_sequences').getActionTypes
local createBindingListBoxElement = require('internal.gui.binding_list.binding_list_box')
lo... |
object_tangible_wearables_cybernetic_cybernetic_crafted_s01_legs = object_tangible_wearables_cybernetic_shared_cybernetic_crafted_s01_legs:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_cybernetic_crafted_s01_legs, "object/tangible/wearables/cybernetic/cybernetic_crafted_s01_legs.iff") |
return {
query = [[
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
description
i... |
package("xtrans")
set_homepage("https://www.x.org/")
set_description("X.Org: X Network Transport layer shared code")
set_urls("https://www.x.org/archive/individual/lib/xtrans-$(version).tar.bz2")
add_versions("1.4.0", "377c4491593c417946efcd2c7600d1e62639f7a8bbca391887e2c4679807d773")
if is_plat(... |
local animator = require 'animator'
local anim, anim2, anim3, anim4
local rotation
function love.load()
love.graphics.setDefaultFilter( 'nearest', 'nearest' )
local one = love.graphics.newImage( 'Images/1.png' )
local quadImage = love.graphics.newImage( 'Images/2 and 4.png' )
local three = love.graphic... |
-- config: (lint (only syntax:empty-if))
if x then
elseif y then
elseif z then
print()
else
end
|
local module = {}
-- CONFIG
local sla = 0x62 -- I2C address of SCD4x
local bus_id = 0
-- GLOBALS
_G.I2CINIT = 0 -- for multiple I2C modules
local callback
local callback_comm
local operations_timer
local operation_seq = 0
local calibration_seq = -1
local calibration_seq_action -- calculated count of timer to ... |
return {
new_ui_mng = ling_import"module/gui/ui_mng",
new_button = ling_import"module/gui/controls/button",
new_input = ling_import"module/gui/controls/input",
new_slide = ling_import"module/gui/controls/slide",
new_window = ling_import"module/gui/controls/window"
} |
-- helpers.lua provides commonly used functions
-- and sets customizable params, e.g. SRID and schema name.
local srid_env = os.getenv("PGOSM_SRID")
if srid_env then
srid = srid_env
print('Custom SRID: ' .. srid)
else
srid = 3857
print('Default SRID: ' .. srid)
end
local pgosm_date_env = os.getenv("... |
local ZeroAuth = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/teppyboy/RbxScripts/master/ZeroScripts/Authentication.lua"))()
ZeroAuth.Authenticate("ZeroFuruit")
-- Variables
local VU = game:GetService("VirtualUser")
local TS = game:GetService("TweenService")
local RS = game:GetService('RunService')
... |
return Def.ActorFrame{
OnCommand=function(self)
--SCREENMAN:SystemMessage("hello world!");
GAMESTATE:Reset();
GAMESTATE:JoinPlayer(LAST_SCANNED_CARD.Player);
SCREENMAN:GetTopScreen():StartTransitioningScreen("SM_GoToNextScreen");
end;
};
|
local path = "WebExtension.xml";
do path == fileDirectory;
number = 355;
local lim = {
number "355"
do number -1 end
limit number "1";
}
--ex. 355 - 1 = 354
if curSteps = {lim}
end
if curStepsLua = {"1", +1} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.