content stringlengths 5 1.05M |
|---|
local states = {}
states.all = {}
states.common = {} -- Common variables for all the states. Stored in the state environments as 'out'
states.commonModules = {} -- Common module variables for all the states. Stored in the state environments as 'mods'
states.current = nil
local env_mt = {}
function env_mt.__index(t, k)... |
local name, addon = ...
local oUF = addon.oUF or oUF
local Config = addon.Config
local Functions = CreateFrame('Frame')
addon.Functions = Functions
------------
-- Utilities
------------
Functions.CreateStatusBar = function(name, parent, texture, color)
local StatusBar = CreateFrame('StatusBar', name or nil, par... |
local config = require("conf.config")
local shell = require("shell")
local item_utils = require("util.item_utils")
local args, _ = shell.parse(...)
local _M = {}
local input = config.chestInput.proxy
local inputSide = config.chestInput.chestSourceSide
local function readData(data)
if type(data) == "table" then
... |
--[[
Modulo temporaneo che sostituisce il modulo squadra:
le chiamate al modulo attuale presentano codice non
compatibile con questo modulo che è stato reso mobile
friendly, pertanto si è reso necessario creare questa
pagina temporanea prima di riunire il tutto.
I parametri dovrebbero essere gli stessi del modulo squ... |
local sensorInfo = {
name = "isInDanger",
desc = "Returns whether unit is in danger",
author = "Petrroll",
date = "2018-07-29",
license = "notAlicense",
}
local EVAL_PERIOD_DEFAULT = -1 -- acutal, no caching
function getInfo()
return {
period = EVAL_PERIOD_DEFAULT
}
end
local ret... |
-- TODO: clean this up!
module(..., package.seeall)
require "source/gridNeighbors"
require "source/gui/guiUtilities"
require "source/utilities/vector"
-- import
local flower = flower
-- local variables
local layer = nil
local view = nil
-- MapEditor singleton
MapEditor = {}
MapEditor.texture = "hex-tiles.png"
MapE... |
local trg = CreateTrigger()
ModeInstructionFlush = function()
DestroyTrigger(trg)
trg = nil
end
local modes
local modeword = {}
TriggerRegisterPlayerChatEvent(trg, FirstPlayer, "-", false)
TriggerAddCondition(trg, Condition(
function()
... |
function getVehiclesOwnedByCharacter(thePlayer)
local dbid = tonumber(getElementData(thePlayer, "dbid"))
local carids = { }
local numcars = 0
local indexcars = 1
for key, value in ipairs(exports.mrp_pool:getPoolElementsByType("vehicle")) do
local owner = tonumber(getElementData(value, "owner"))
if (owner) a... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
local condition = Condition(CONDITION_ENERGY)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition:addDamage(20, 10000, -25)
combat:setCondition(condition)
functi... |
--[[
this looks a lot like GRHDBehavior
it does the same thing -- adds 'getADMArgs' and 'getADMVarCode' for the eqn to use
make it a behavior for adding ADM args to eqns
--]]
local class = require 'ext.class'
local template = require 'template'
return function(parent)
local templateClass = class(parent)
-- eqn/grh... |
local path = "hall/message_pin.png"
local message_pin_map = {
["msg_item_detail_bg.png"] = {
file=path,
x=2,y=2,
width=129,height=129,
rotated=false
},
["sys_msg.png"] = {
file=path,
x=2,y=133,
width=200,height=52,
rotated=false
},
["msg_attachment.png"] = {
file=path,
x=133,y=2,
width=12... |
local ALIASES = {
static_variable = "static_variables",
static_getter = "static_getters",
static_setter = "static_setters",
static_method = "static_methods",
variable = "variables",
getter = "getters",
setter = "setters",
method = "methods",
}
local METHOD_DUPLICATES = {"static_variables", "static_getters", "s... |
if Server then
function AlienTeamInfo:UpdateAllLocationsSlotData()
local statusEnts = GetEntitiesMatchAnyTypesForTeam( AlienTeamInfo.kLocationEntityTypes, self:GetTeamNumber() )
for _, entity in ipairs(statusEnts) do
if entity:GetIsAlive() then
... |
--[[
Name: LibGratuity-3.0
Revision: $Rev: 42 $
Author: Tekkub Stoutwrithe (tekkub@gmail.com)
SVN: svn://svn.wowace.com/root/trunk/LibGratuity-3.0
Description: Tooltip parsing library
Dependencies: (optional) Deformat-2.0
]]
local vmajor, vminor = "LibGratuity-3.0", 90000 + tonumber(("$Revision: 42 $"):match("%d+"))
... |
---------------------------------------------------------------------------------
--
-- GlobalComplete - A debug tool for World of Warcraft
--
-- Copyright (C) 2006-2018 Jon S Akhtar (Sylvanaar)
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied w... |
local function foo(...)
local args = { ... }
print(table.unpack(args))
end
|
class = require '30log'
deflate = require 'deflate'
require 'stream'
Chunk = class()
Chunk.__name = "Chunk"
Chunk.length = 0
Chunk.name = ""
Chunk.data = ""
Chunk.crc = ""
function Chunk:__init(stream)
if stream.__name == "Chunk" then
self.length = stream.length
self.name = stream.name
self.data = stream.data
... |
local kLastRebirthUpdate = 1532713086
local menu_was_opened = false
local function GetShouldOpenChangelog()
if menu_was_opened then
return false
end
menu_was_opened = true
local last = Client.GetOptionInteger( "lastRebirthModUpdate", 0)
Log("Last viewed rebirth changlog: " .. last... |
---练习11.1 当我们对一段文本执行统计单词出现频率的程序时,结果常常是一些注入冠词和介词之类的没有太多意义
---的短词汇。请改写该程序,使他忽略长度小于4个字母的单词
---练习11.2 重复上面的练习,除了按照长度忽略单词外,该程序还能从一个文本文件中读取要忽略的单词列表。
local ignore = {}
for line in io.lines("ignorewords.txt") do
for word in string.gmatch(line,"%w+") do
ignore[word] = true
end
end
local counter = {}
for lin... |
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: Main Menu Button class
--
--==========================================================================--
class "gui.mainmenubutton" ( "gui.button" )
local mainmenubutton = gui.mainmenubutton
function mainmenubutton:mainmenu... |
--[[
Server: AuroraRPG
Resource Name: Races
Version: 1.0
Developer/s: Curt
]]--
function createRaceMarkerForCheckpoint(checkpoint, index, numberOfCheckpoints)
local r,g,b, a = 255, 0, 0, 110
local x,y,z = checkpoint[1], checkpoint[2], checkpoint[3]
local hitMarkerSize = 17
local visualMarkerSize = 6
if (index == ... |
-- Tests for getbufvar(), getwinvar(), gettabvar() and gettabwinvar().
local helpers = require('test.functional.helpers')
local insert, source = helpers.insert, helpers.source
local clear, expect = helpers.clear, helpers.expect
describe('context variables', function()
setup(clear)
it('is working', function()
... |
???!??
(Γ;??d???|c'?d?1???.\?s?f??v?
?
(2?1?$v^??-???O?p??c{??=?.!89y???z????o??:j<?
W(????2Q??cA? ?h????{?require 'signatured3'
print('signatured1: this source was signatured!') |
require "hello2"
function foo(a,b,c,...)
local sum = a+b
return sum, c -- 可以返回多个值
end
r1, r2 = foo(1,"123","hello")
print(r1,r2)
v1, v2 = 4, 6;
callForMe("dadf");
print(myadd(1,3));
print(package.path);
print(_VERSION)
print(math.pi)
local twoFace4 = math.pow(2,4)
print(twoFace4)
local a = {};
function doS... |
-- "Welcome to Jumpy Town!" https://youtu.be/KfyKD959IeM?t=26
local moonshine = require 'moonshine'
local Sounds = require 'src/util/sounds'
local GAME_WIDTH = 400
local GAME_HEIGHT = 670
-- in [0, 1). exponential decay. lower = game gets difficult more quickly
local ENTROPY_FACTOR = 0.9975
local GRAVITY = -1600
l... |
-- Badges & Bandits: Connection Configuration (SERVER) |
-- This helper module help retro-generate the clients layout from awful
-- this is a giant hack and doesn't even always work and require upstream
-- patches
local setmetatable = setmetatable
local ipairs,math = ipairs,math
local awful = require("awful")
local beautiful = require("beautiful")
local color ... |
local et = require("entity")
local abcTool = et:new()
-- TODO Not implemented |
TOOL.Category = "Wire Extras/Input, Output"
TOOL.Name = "Keycard"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if ( CLIENT ) then
language.Add( "Tool.wire_keycard.name", "Keycard Tool (Wire)" )
language.Add( "Tool.wire_keycard.desc", "Create portable media for use with the wire syst... |
------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2017-2019 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-qless library.
--... |
local Class, Table, getters, setters, newFunc = _Inherit(Instance, "Workspace")
function setters:Gravity(value)
Check("Set(Gravity)", "number", value, "value")
self:Set("Gravity", value)
end
function setters:FallenPartsDestroyHeight(value)
Check("Set(FallenPartsDestroyHeight)", "number", value, "value")
... |
function onCreate()
-- background shit
makeLuaSprite('comicstrip', 'comicstrip', -600, -300);
setScrollFactor('comicstrip', 0.9, 0.9);
addLuaSprite('comicstrip', false);
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading t... |
--region CRect.lua
--Author : jefflwq
--Date : 2016/04/24
--说明 : Rect类
--endregion
using "Joop"
namespace "System.Drawing"
{
class "CRect"
{
-- 此 Rect 的 Location 。
Location = false,
-- 此 Rect 的 Size 。
Size = false,
-- 初始化 Rect 类的新实例。
CRect =... |
--戦華の孟-曹徳
--Scripted by nekrozar
function c101012020.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101012020,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY... |
--[=[
Copyright (C) 2013-2014 Richard Hundt and contributors.
See Copyright Notice in shine
]=]
local util = require('shine.lang.util')
local tvm = require("tvm")
local DEBUG = true
local Op = { }
setmetatable(Op, {
__call = function(Op, ...)
local v = ...
local t = type(v)
if t == 'string' the... |
if not _G.ttnsTemp then
_G.ttnsTemp = {sectorIndex = {}, sectors = {}, turtles = {}}
end
ttns = {}
function ttns.toSectorCoords(x, z)
return math.floor(x / 64), math.floor(z / 64), math.mod(x, 64), math.mod(z, 64)
end
function ttns.getSectorCoords(id)
if not _G.ttnsTemp.sectorIndex[id] then
retur... |
object_mobile_dressed_meatlump_male_05 = object_mobile_shared_dressed_meatlump_male_05:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_male_05, "object/mobile/dressed_meatlump_male_05.iff")
|
#!/usr/bin/env sysbench
-- This test is designed for testing MariaDB's key_cache_segments for MyISAM,
-- and should work with other storage engines as well.
--
-- For details about key_cache_segments please refer to:
-- http://kb.askmonty.org/v/segmented-key-cache
--
require("oltp_common")
-- Add --number-of-ranges a... |
if vim.g.vscode then
return
end
if not pcall(require, 'onedarkpro') then
return
end
local onedarkpro = require('onedarkpro')
local colors = require('jonz94.colors')
local is_win = vim.fn.has('win32')
onedarkpro.setup({
colors = {
onedark = {
bg = colors.bg,
black = colors.black,
-- add... |
(terralib.loadfile("test.t"))()
import "darkroom"
test(im(x,y) testinput(x,y)+[uint8](100) end)
|
QhunUnitTest.Base = {}
QhunUnitTest.Base.__index = QhunUnitTest.Base
-- constructor
--[[
{
methodOrder?: string[]
}
]]
function QhunUnitTest.Base.new(methodOrder)
-- private properties
local instance = {
__lastAssertCount = 0,
__lastErrorCount = 0,
__methodOrder = method... |
local unpack = table.unpack
local function write(self, n, b)
local sn, sb = self.sn, self.sb + b
if sb <= 8 then
sn = sn | (n << (8 - sb))
else
sb = sb - 8
table.insert(self.r, sn | (n >> sb))
while sb > 8 do
sb = sb - 8
table.insert(self.r, (n >> sb)... |
local project_list = {
"PracticaFinal",
}
local function new_project(name)
project(name)
kind ("ConsoleApp")
includedirs{"include", "src/deps/glfw", "src/deps/glad", "src/deps/stb"}
files { "tests/" ..name.. "/*.cpp",
"tests/" ..name.. "/*.h",
"src/*.cpp",
"include/**.h",
"src/deps/glfw/context.c",
"src/de... |
TOOL.Category = 'GmodZ'
TOOL.Name = 'NPC Spawner'
TOOL.Command = nil
TOOL.ConfigName = ''
local ClassName = "npc_spawner_tool"
local PluginName = "npc_spawner"
local function lang(id)
return "#tool." .. ClassName .. "." .. id
end
local function cvar(id)
return ClassName .. "_" .. id
end
local cvars = {
npc = "npc... |
local utils = {}
-- check whether a lua table is an array or a dictionary
-- note: this will only work if the table is either an array or a dictionary. if the table is both, god help us all
-- https://stackoverflow.com/a/25709704/2513803
function utils.is_array(t)
local i = 0
for _ in pairs(t) do
i = i + 1... |
require 'rnn'
lfs=require('lfs')
--matio=require('matio')
version = 1
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a RNN Model on sample dataset using LSTM or GRU to compute state-values in EMD.')
cmd:text('Example:')
cmd:text("my-code.lua --cuda --useDevice 2 --progress --zeroFirst... |
--some code taken from moreblocks(the collision and selection boxes), license below:
--Copyright (c) 2011-2015 Calinou and contributors.
--Licensed under the zlib license.
function scifi_nodes.register_slope(name, desc, texture, light)
minetest.register_node("scifi_nodes:slope_"..name, {
description = desc.." Slope",... |
--- Turbo.lua Parameters example
--
-- Copyright 2013 John Abrahamsen
--
-- 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 require... |
return {
tllasgard = {
acceleration = 0.006,
brakerate = 0.44,
buildangle = 16384,
buildcostenergy = 158728,
buildcostmetal = 11289,
builder = false,
buildpic = "tllasgard.dds",
buildtime = 65000,
canattack = true,
canguard = true,
canmove = true,
canpatrol = true,
canstop = 1,
category = "... |
PropertiesEncoder = {}
PropertiesEncoder.__index = PropertiesEncoder
local KEY_VALUE_SEPARATOR = " = "
--- Reads/writes .properties files
function PropertiesEncoder:create()
local this = {}
setmetatable(this, self)
return this
end
--- Turns a table into a set of key-value pairs. The values must be string or... |
-- Matter
import 'matter/matter'
local clear = playdate.graphics.clear
-- Create an engine
local engine = Engine.create()
local world = engine.world
-- Create a renderer
local render = Render.create({
element = nil,
engine = engine,
options = {
width = 400,
height = 240,
-- showInternalEdges = true,
-- wi... |
-- Copyright 2021 SmartThings
--
-- 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 in ... |
local _SKYNET = require("src.skynet")
local _ID = require("src.id")
local _gate
local _lobby
local _readyFd
local _CMD = {}
function _CMD.OnHandshake(id, fd)
if (not _SKYNET.Call(_gate, "CheckAgent", fd)) then
return
end
if (not _readyFd) then
_readyFd = fd
else
_SKYNET.Send(_... |
w1 = Instance.new("Weld")
w1.Parent = Game.Players.yfc.Character.Torso
w1.Part0 = Game.Players.yfc.Character.Head
w1.Part1 = Game.Players.yfc.Character.Torso
w1.C0 = CFrame.fromEulerAnglesXYZ(2, 0, 0) + Vector3.new(0, 0, 0)
w1 = Instance.new("Weld")
w1.Parent = Game.Players.yfc.Character.Torso
w1.Part0 = Game.P... |
local sButton = Var "Button"
local sEffect = Var "Effect"
local sPlayer = Var "Player"
local sColor = Var "Color"
if sColor == "" then sColor = "4th" end
return Def.ActorFrame {
Def.Model { --fever note color
InitCommand=function(self)
if string.find(sButton, "Strum") then
local... |
max_fov = 360
max_vfov = 180
lens_width = 2*sqrt(2)*2
lens_height = sqrt(2)*2
onload = "f_contain"
function lens_inverse(x,y)
if x*x/8+y*y/2 > 1 then
return nil
end
local z = sqrt(1-0.0625*x*x-0.25*y*y)
local lon = 2*atan(z*x/(2*(2*z*z-1)))
local lat = asin(z*y)
return latlon_to_ray(lat,lon)... |
local max = math.max;
local GetText = GetText;
local GetTexture = GetTexture;
local NumLines = NumLines;
local _;
local _G = _G;
local After = C_Timer.After;
local GetItemInfo = GetItemInfo;
local UIFrameFadeIn = UIFrameFadeIn;
local UIFrameFadeOut = UIFrameFadeOut;
local PlaySound = PlaySound;
local _, _, _, tocversio... |
GLib.Lua.Precedence = GLib.Enum (
{
Lowest = 0,
Addition = 1,
Subtraction = 2,
Multiplication = 3,
Division = 4,
Modulo = 5,
Exponentiation = 6,
LeftUnaryOperator = 7,
Atom = 8
}
)
local associative... |
--异次元纪念碑
local m=14010105
local cm=_G["c"..m]
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetCost(cm.cost)
c:RegisterEffect(e1)
--cannot activate
local e2=Effect.C... |
--[[
Upbit Open API
## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com]
OpenAPI spec version: 1.0.0
Contact: ujhin942@gmail.com
Generated by: https://github.com/swagger-api/swagger-codeg... |
--------------------------------
-- @module TransitionMoveInL
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
---@class cc.TransitionMoveInL:cc.TransitionScene,cc.TransitionEaseScene
local TransitionMoveInL = {}
cc.TransitionMoveInL = TransitionMoveInL
--------------------------------
--- Return... |
m = Map("babeld", translate("Babeld Overview"))
m.pageaction = false
s = m:section(NamedSection, "__babeldoverview__")
function s.render(self, sid)
local tpl = require "luci.template"
tpl.render_string([[
<%
local utl = require "luci.util"
local v6_port = 33123
-- FIXME: check if call is correct
local du... |
local CONST = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API"))
local LOCAL_PLAYER = Game.GetLocalPlayer()
local NETWORKED = script:GetCustomProperty("METARewards_Networked"):WaitForObject()
local PERK_PANEL = script:GetCustomProperty("Perks"):WaitForObject()
local VIP_MEMBER_PANEL = PERK_PANE... |
local myNAME, myVERSION = "libCommonInventoryFilters", 1.2
local libCIF = LibStub:NewLibrary(myNAME, myVERSION)
if not libCIF then return end
local function enableGuildStoreSellFilters()
local tradingHouseLayout = BACKPACK_TRADING_HOUSE_LAYOUT_FRAGMENT.layoutData
if not tradingHouseLayout.hiddenFilters then
... |
local present, ts_config = pcall(require, "nvim-treesitter.configs")
if not present then
return
end
ts_config.setup {
-- one of "all", "maintained" (parsers with maintainers), or a list of languages
--ensure_installed = {"yaml", "lua", "json", "dockerfile", "markdown"},
ensure_installed = {"go", "c", "cpp... |
object_tangible_furniture_flooring_tile_frn_flooring_tile_s35 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s35:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s35, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s35.iff")
|
----------------------------------------------------------------------------------
-- Total RP 3
-- Pets/mounts managements
-- ---------------------------------------------------------------------------
-- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--
-- Licensed under the Apache License, Versi... |
local new_obstacle = require("obstacle")
local function new()
local obstacle_list = {}
local next_spawn_time
local spawn_delay
local obstacles_spawned
local max_modifier
local function is_time_to_spawn(now)
if now >= next_spawn_time then
return true
end
return false
end
local functi... |
require("utils/functions.lua")
if technologyUnlocked("EnergyPowerModule") then
game.print("Mobile Factory: Unlocked all Modules")
local DistributionModule = game.forces["player"].recipes["DistributionModule"]
DistributionModule.enabled = true
local DrainModule = game.forces["player"].recipes["DrainModule"]
D... |
--[[
file:sg_enum.lua
desc:三公
auth:Carol Luo
]]
local class = require("class")
local pokerEnum = require("poker.enum")
---@class sgEnum:pokerEnum
local enum = class(pokerEnum)
---构造
function enum:ctor()
end
---跟注
---@return senum
function enum.sg_gz()
return "sg_gz"
end
---跟到底
---@return senum
fu... |
-- LV Lamp - a powerful light source.
-- Illuminates a 7x7x3(H) volume below itself with light bright as the sun.
local S = technic.getter
local desc = S("%s Lamp"):format("LV")
local active_desc = S("%s Active"):format(desc)
local unpowered_desc = S("%s Unpowered"):format(desc)
local off_desc = S("%s Off"):format(... |
local m = require 'lpeg'
local re = require 're'
local make_schema = require 'parse.yaml.make.schema'
local schema = make_schema()
local core_schema = {}
core_schema.scalar_tag_resolvers = {
re.compile[[
('null' / ('N' ('ull' / 'ULL')) / '~')?
!.
]] * m.Cc'tag:yaml.org,2002:null';
re.compile[[
(
'true' ... |
local fox = Entity.new()
local t = fox:add(Transform.new())
t.scale.x = 0.1
t.scale.y = 0.1
t.scale.z = 0.1
t.position.y = -30
fox:add(Renderable.new(assets.models['fox']))
fox:add(SkeletalAnimation.new(assets.models['fox'], assets.animations['fox_run']))
|
--[[
Copyright 2013 Wiremod Developers
https://github.com/wiremod/
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 o... |
require("pgevents")
function Definitions()
Category = "Raid"
TaskForce = {
{
"RaidForce"
,"DenyHeroAttach"
,"Infantry | Vehicle | Air = 2"
,"LandHero = 0,1"
}
}
LandSecured = false
difficulty = "Easy"
if PlayerObject then
difficulty = PlayerObject.Get_Difficulty()
end
sleep_duration = Diff... |
while true do
local block = io.read(2^13)
if not block then break end
io.write(block)
end
|
local null_ls = require("null-ls")
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
local formatting = null_ls.builtins.formatting
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
local diagnostics = null_ls.builtins.diagnos... |
#!/usr/bin/env tarantool
local timer_events = {}
local timer_events_private = {}
local box = box
local fiber = require 'fiber'
local inspect = require 'libs/inspect'
local digest = require 'digest'
local logger = require 'logger'
local config = require 'config'
local system = require 'system'
local scripts = require... |
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local faci = require "faci.module"
local module = faci.get_module("login")
local dispatch = module.dispatch
local forward = module.forward
local event = module.event
env.users = env.users or {}
--users[uid]={
--node = skynet.getenv("nodename")... |
class("StateStartingGrid")
function StateStartingGrid:__init(race) ; EGUSM.SubscribeUtility.__init(self)
self.race = race
-- Number of times PostTick has been called.
self.numTicks = 0
-- Array of Racers. This is used to call UpdateRacer on us once per tick.
self.updateList = {}
for id , racer in pair... |
ITEM.name = "Glock 17"
ITEM.description= "An Austrian handgun that fires 9x19mm."
ITEM.longdesc = "The Glock is an Austrian polymer handgun, famous for it's price, reliability and trigger safety mechanism.\nIt's favored by police agencies around the world and comes in many flavors.\n\nAmmo: 9x19mm\nMagazine Capacity: 1... |
-- Neuron is a World of Warcraft® user interface addon.
-- Copyright (c) 2017-2021 Britt W. Yazel
-- Copyright (c) 2006-2014 Connor H. Chenoweth
-- This code is licensed under the MIT license (see LICENSE for details)
---@class EXTRABTN : BUTTON @define class EXTRABTN inherits from class BUTTON
local EXTRABTN = setmet... |
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
-- Verify that the HTTP server implementation handles multiple instances
-- of the same header as per RFC2616: joining the handful of fields by ', '
-- that support it, and dropping duplicates for othe... |
return {
Name = "run";
Aliases = {};
Description = "Runs a given command string (replacing embedded commands).";
Group = "DefaultUtil";
Args = {
{
Type = "string";
Name = "Command";
Description = "The command string to run"
},
};
Run = function(context, command)
return context.Dispatcher:Evaluate... |
object_tangible_loot_creature_loot_kashyyyk_loot_bolotaur_fang_01 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_bolotaur_fang_01:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_bolotaur_fang_01, "object/tangible/loot/creature_loot/kashyyyk_loot/bolotaur_fang_01.iff") |
package.path = './data/lua/?.lua;' .. package.path
require("io/piumk6/defs")
require("iop/output-anim")
require("screen/attract/defs")
local ANIM_CAB_CYCLE_TIME_MS = 3000
local ANIM_PAD_CYCLE_TIME_MS = 2800
local ANIM_TIME_CAB_MS = 300
local ANIM_TIME_PAD_MS = 200
local __anim_cab
local __anim_pad
local __selectio... |
require('init');
tester = torch.Tester()
tester:add(require('test.Linear'))
tester:add(require('test.TransferFunctionALU'))
tester:add(require('test.TransferFunctionReCU'))
tester:add(require('test.TransferFunctionFactory'))
tester:add(require('test.NetworkSequential'))
tester:add(require('test.NetworkScalarFunctio... |
require "my_init"
local skynet = require "skynet"
local match = require "match"
local match_mgr = require "match_mgr"
local id = tonumber(...)
local CMD = {}
function CMD.create_game(info)
local obj = match.new(info)
match_mgr:add(obj)
end
function CMD.dissolve_game(room_info)
local match = match_mgr:ge... |
object_tangible_container_food_shared_ice_cream_fryer = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/container/food/shared_ice_cream_fryer.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_container_food_shared_ice_cream_fryer, "object/tangible/container/food/shared_ice_cream_fr... |
local lib = {}
-- Returns the current lua local path to this script.
local function scriptPath()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)") or ""
end
local libpath = scriptPath()
-- These two libraries hook directly into native lua functions.
require(libpath .. "/math")
require(... |
set('srcdir', '$dir')
cflags{
'-Wall', '-Wextra', '-Wno-unused-parameter', '-pedantic',
'-std=c11',
}
file('libexec/applyperms', '755', exe('applyperms', {'applyperms.c'}))
file('libexec/devd-trigger', '755', exe('devd-trigger', {'devd-trigger.c'}))
file('libexec/mergeperms', '755', exe('mergeperms', {'merge... |
-- 矩形モジュール
local Rectangle = {}
-- 横アライメントの割合
local hAligns = {
left = 0,
center = 0.5,
right = 1
}
-- 縦アライメントの割合
local vAligns = {
top = 0,
middle = 0.5,
bottom = 1
}
-- アライメントのオフセットを取得
local function alignOffsets(w, h, h_align, v_align)
local x, y = 0, 0
w = w or 0
h = h or 0
... |
local addonName = ...
local addon = _G[addonName]
addon.Config = {}
function addon.Config:OnShow(...)
_G["BrewSpeakConfigFrameBattleground"]:SetChecked(addon.db.Battleground)
_G["BrewSpeakConfigFrameGuild"]:SetChecked(addon.db.Guild)
_G["BrewSpeakConfigFrameOfficer"]:SetChecked(addon.db.Officer)
_G["BrewSpeakConf... |
-----------------------------------
--
-- Zone: GM Home (210)
--
-- Some cs event info:
-- 0 = Abyssea Debug
-- 1 = Mogsack Debug
-- ...
-- 139 = Janken challenges player to "Rock, Paper, Scissors"
-- ...
-- 140 = Camera test.
-- 141 = "Press confirm button to proceed" nonworking test.
--
------------------------------... |
--[[ Spot Welder with dual pulse controller
https://github.com/northox/spot-welder
- OLED Display: SDA->D1/5, SCL->D2/4
- Solid State Relay: D8/15
- Welding switch: D4/2
- Rotary encoder: CLK->D5/14, DT->D6/12, SW->D7/13
]]
sda_pin = 2 -- gpio 4
scl_pin = 1 -- gpio 5
oled_id = 0 -- i2c interface id
zap_pin = 4 -- g... |
--tds protocol parser and encoder
require "suproxy.utils.stringUtils"
require "suproxy.utils.pureluapack"
local ok,cjson=pcall(require,"cjson")
local tableUtils=require "suproxy.utils.tableUtils"
local orderTable=tableUtils.OrderedTable
local extends=tableUtils.extends
if not ok then cjson = require("suproxy.utils.json... |
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___/ ... |
------------------------------------------------
-- Copyright © 2013-2020 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
local table = table
-- local type = type
local table_insert = table.insert
local table_remove = table.remove
-- local table_remove_item = table.remove_i... |
return {
uiEffect = "",
name = "随机技能-召唤地狱火",
cd = 60,
painting = 1,
id = 60027,
picture = "0",
aniEffect = "",
desc = "召唤地狱火-召唤",
effect_list = {
{
type = "BattleSkillSummon",
casterAniEffect = "",
target_choise = "TargetNil",
targetAniEffect = "",
arg_list = {
monsterTemplateID = 10102030... |
boot -.builder ..DAW:NUC enter.matrix <script.action=drop>{
much.enter/7.bin=fex root.bin /rate.if else.factory:user
}
total.command if.band/proper RAT:nuc leave.server /for.use-on.space
room.verb category?ajax.aspx build.database /self.delete .use-format.b
<totaly.builded.unit/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.