content stringlengths 5 1.05M |
|---|
-- ipairs -> arrays
-- pairs -> tablas
-- ** foreach
-- for index, value in ipairs(array)
-- for key, value in pairs(table)
alumnos = {"Camila", "Dani", "Migue", "Carlos", "Shaiel"}
-- Forma normal
print("FOR")
for i=1, #alumnos,1 do
print("index: " .. i .. " - value: " .. alumnos[i])
end
-- FOR EACH
-- for in... |
test_run = require('test_run')
inspector = test_run.new()
engine = inspector:get_cfg('engine')
-- space create/drop
space = box.schema.space.create('test', { engine = engine })
space:drop()
-- space index create/drop
space = box.schema.space.create('test', { engine = engine })
index = space:create_index('primary')
s... |
local gamestate = {}
local mapMurs = {}
mapMurs[1] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
mapMurs[2] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
mapMurs[3] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
mapMurs[4] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
mapMurs[5] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... |
--[[
################################################################################
#
# Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm)
#
# 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 ... |
return {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
init_effect = "",
name = "",
time = 0,
color = "red",
picture = "",
desc = "",
stack = 1,
id = 14250,
icon = 14250,
last_effect = "",
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onTeammateHpRatioUpdate"
},
arg_list ... |
local att = {}
att.name = "bg_short38"
att.displayName = "Short Barrel"
att.displayNameShort = "Short"
att.isBG = true
att.statModifiers = {RecoilMult = 0.05,
AimSpreadMult = -0.15,
DamageMult = 0.05,
OverallMouseSensMult = -0.05}
if CLIENT then
att.displayIcon = surface.GetTextureID("atts/bg_short38")
end
function... |
object_static_worldbuilding_terminal_wall_monitorscreen_text_04 = object_static_worldbuilding_terminal_shared_wall_monitorscreen_text_04:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_wall_monitorscreen_text_04, "object/static/worldbuilding/terminal/wall_monitorscreen_text_04.iff") |
#!/usr/bin/env lua
--------------------------------------------------------------------------------
-- --
-- MiniLight Lua : minimal global illumination renderer --
-- Harrison Ainsworth / HXA7241 : 2007-2008, 2013. ... |
-- Standard awesome libraries
local gears = require("gears")
-- Notification library
local naughty = require("naughty")
require("naughty.dbus")
-- External libraries.
local lfs = assert(require("lfs"), "Please install Lua File System!")
-- Globals.
old_print = print
---------------------------------------------------... |
function ActionBarConfigFunc()
if GetLocale() =='zhCN' then
BIGFOOTBAR_TITLE = {"动作条增强", "dongzuotiaozengq",2};
BF_DISTANCE_ALERT = "启用距离提示";
BF_DISTANCE_ALERT_TOOLTIP="当对目标释放单体技能超出施法范围时,技能图标变为红色。";
elseif GetLocale() == 'zhTW' then
BIGFOOTBAR_TITLE = {"動作條增強", "kuaijieliezengq",2};
BF_DISTANCE_A... |
slot0 = class("WorldDetailLayer", import("..base.BaseUI"))
slot1 = import("..ship.FormationUI")
slot0.getUIName = function (slot0)
return "WorldDetailUI"
end
slot0.TOGGLE_DETAIL = "detailToggle"
slot0.TOGGLE_FORMATION = "formationToggle"
slot0.init = function (slot0)
slot0.eventTriggers = {}
slot0.rtMain = slot0:... |
require "TaskQueue"
WIFILib = {}
WIFILib.save = false
WIFILib.mode = wifi.STATION
WIFILib.country = 'US'
-- initialize WIFILib
-- params:
-- country (string) - country code, default: "US"
-- save (boolean) - save configuration in flash memory
-- station (boolean) - station mode
-- ap (boolean) - access po... |
-------------------------------------------------------------------------------
-- LISTENER by Tammya-MoonGuard (2017)
--
-- Here's a simple module for resolving raid group numbers from player names.
-------------------------------------------------------------------------------
local Main = ListenerAddon
--
-- raid_... |
if not _G.THREATLIB_LOAD_MODULES then return end -- only load if LibThreatClassic2.lua allows it
if not LibStub then return end
local ThreatLib, MINOR = LibStub("LibThreatClassic2", true)
if not ThreatLib then return end
ThreatLib:Debug("Loading class module core revision %s", MINOR)
----------------------------... |
--
-- YATM Cables
--
local mod = foundation.new_module("yatm_cables", "1.0.0")
mod:require("api.lua")
mod:require("nodes.lua")
|
local path = "hall/hall_pin.png"
local hall_pin_map = {
["gameIcon_bg.png"] = {
file=path,
x=2,y=2,
width=370,height=296,
rotated=true
},
["icon_messageLight.png"] = {
file=path,
x=374,y=2,
width=126,height=197,
rotated=true
},
["gamName_bg.png"] = {
file=path,
x=2,y=300,
width=245,height... |
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: item_apple
--
--==========================================================================--
require( "game.shared.entities.item" )
require( "game" )
class "item_apple" ( "item" )
item_apple.data = {
name = "Apple",
imag... |
object_tangible_component_weapon_new_weapon_comp_reinforcement_core = object_tangible_component_weapon_shared_new_weapon_comp_reinforcement_core:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_comp_reinforcement_core, "object/tangible/component/weapon/new_weapon_comp_reinforcement_core... |
local KUI, E, L, V, P, G = unpack(select(2, ...))
local KS = KUI:GetModule("KuiSkins")
local S = E:GetModule("Skins")
-- Credits: Mertahilis, give that man a cookie!
-- Cache global variables
-- Lua functions
local select, unpack = select, unpack
local tremove = table.remove
-- WoW API / Variables
local CreateFrame =... |
--[[
Pandoc filter to make nicer manpages that look well in github too
]]
local text = require('text')
function Link(elem)
if elem.target:match(".md$") then
elem.target = elem.target:gsub(".md$", ".html"):gsub("README", "index")
return elem
end
end
|
Database_Mage = {date="2020-09-05 13:01:41",lookup={["Arcane"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [2335] = {}, [2343] = {}, [2336] = {}, [2331] = {}, [2345] = {}, [2337] = {}, [2344] = {}},["Fire"] = {[2329] = {}, [2327] = {}, [2334] = {}, [2328] = {}, [2333] = {}, [2335] = {}, [2343] =... |
fx_version 'adamant'
game {'gta5'}
description 'NPC-Spawn-Vehicle'
version '1.0.0'
client_scripts {
'config.lua',
'client/client.lua',
"@npc-scripts/client/errorlog.lua"
}
|
object_tangible_wearables_base_base_cybernetic_forearm_l = object_tangible_wearables_base_shared_base_cybernetic_forearm_l:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_base_base_cybernetic_forearm_l, "object/tangible/wearables/base/base_cybernetic_forearm_l.iff")
|
-- id int id(星级+部位)
-- star int 星级
-- show_attr tableString[k:#seq|v:#1(int)] 展示属性
-- health tableString[k:#seq|v:#1(int)] 生命/基础属性;等级成长
-- health_sta... |
bom = {}
function inc_bom(...)
local args = {...}
local dim = args[1] .. " x " .. args[2] .. " x ".. args[3]
local v = bom[dim]
if v == nil then
v = 0
end
v = v + 1
bom[dim] = v
end
function display_bom()
print("=== BOM ===")
for dim, count in pairs(bom) do
print(count .. "x " .. dim)
end
... |
dofile('/home/raj/workspace/p4-traffictool/samples/basic_postcards/output/wireshark/basic_postcards_1_ipv4.lua')
dofile('/home/raj/workspace/p4-traffictool/samples/basic_postcards/output/wireshark/basic_postcards_2_udp.lua')
dofile('/home/raj/workspace/p4-traffictool/samples/basic_postcards/output/wireshark/basic_postc... |
local ntype, mtype
do
local _obj_0 = require("moonscript.types")
ntype, mtype = _obj_0.ntype, _obj_0.mtype
end
local Run
do
local _base_0 = {
call = function(self, state)
return self.fn(state)
end
}
_base_0.__index = _base_0
local _class_0 = setmetatable({
__init = function(self, fn)
... |
local utf8 = utf8 or require('compat53.module').utf8; local tabular = {}
local AnsiColors = {}
local ansicolors = require("ansicolors")
local draw = {
["NW"] = "/",
["NE"] = "\\",
["SW"] = "\\",
["SE"] = "/",
["N"] = "+",
["S"] = "+",
["E"] = "+",
["W"] = "+",
["V"] = "|",
["H"] = "-"... |
--- Module which build ATF configuration from configuration pieces
--
-- *Dependencies:* `config_builder`
--
-- *Globals:* none
-- @copyright [Ford Motor Company](https://smartdevicelink.com/partners/ford/) and [SmartDeviceLink Consortium](https://smartdevicelink.com/consortium/)
-- @license <https://github.com/smartde... |
return {
init_effect = "",
name = "挑战后排永久无敌",
time = 0,
picture = "",
desc = "挑战后排永久无敌",
stack = 1,
id = 50,
icon = 50,
last_effect = "",
limit = {
SYSTEM_SCENARIO,
SYSTEM_ROUTINE,
SYSTEM_DUEL,
SYSTEM_SHAM
},
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach",
"onRe... |
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! *
---@meta
---
---[3.2]OF_ResType
---
---@class OF_ResType
---
---[3.2]Image
---
---@field OF_ResType_Image
---
---[3.2]3DMesh
---
---@field OF_ResType_3DMesh
---
---[3.2]Particle
---
---@field OF_ResType_Particle
---
---[3.2]SVGA
---
---@field OF_Re... |
--I DID THIS FOR YOU
function InitAllAttributes()
for k,v in pairs(player.GetAll()) do InitNilAttributes(v) end
end
function InitNilAttributes(ply)
--print(ply)
if ply.attr == nil then
ply.attr = {}
end
if ply.attr["prop_limmit"] == nil then
ply.attr["prop_limmit"] = 200
end
if ply.attr["gun_limmi... |
NewShipType = StartShipConfig()
NewShipType.displayedName="$1660"
NewShipType.sobDescription="$1661"
NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 25900)
NewShipType.regentime=1200
NewShipType.minRegenTime=450
NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.0)
NewShipType.rear... |
controls = {
forward = {},
backwards = {},
left = {},
right = {},
escape = {},
action = {},
context = {},
isMouse = {}
}
for k, v in pairs(controls) do
controls[k] = {
key = nil,
isPressed = false,
isReleased = false
}
end
function controls.setDefault()
print("Loading default con... |
--------------------------------------------------------------------------------
-- cli.lua v0.1.2: Functions for sailor's command line utility
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
-----------------------------------... |
:ls ply = game.Players.luxulux
char = ply.Character
torso = char.Torso
rs = torso["Right Shoulder"]
rarm = char["Right Arm"]
rw = Instance.new("Weld")
attacking = false
function lock(a)
if a == 1 then
rw.Parent = torso
rw.C0,rw.C1 = rs.C0,rs.C1
rw.Part0,rw.Part1 = rs.Part0,rs.Part1
rs.Parent... |
--
-- show the network status
--
print (wifi.sta.getip ());
print (wifi.sta.gethostname ());
--
-- set GPIO pin 3 for output and turn off its LED
--
led1 = 3;
gpio.mode (led1, gpio.OUTPUT);
gpio.write (led1, gpio.HIGH);
--
-- set GPIO pin 4 for output and turn off its LED
--
led2 = 4
gpio.mode (led2, gpio.OUTPUT);
gp... |
local _, class = UnitClass("player")
if class ~= "PRIEST" then return end
local CS = LibStub("AceAddon-3.0"):NewAddon("Conspicuous Spirits", "AceEvent-3.0", "AceTimer-3.0", "AceConsole-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("ConspicuousSpirits")
local ACR = LibStub("AceConfigRegistry-3.0")
--------------... |
function init()
storage = console.configParameter("scriptStorage")
local tests = {
"textTest",
"windowTest",
"listTest",
"labelTest"
}
local y = 190
local pad = 10
local x = 10
for _,test in ipairs(tests) do
local button = TextRadioButton(x, y, 70, 12, test)
x = x + button.width + ... |
function Main()
-- Directory({
-- Path = "/private/tmp/haiconf/testdirectory",
-- Mode = "0755",
-- Owner = "jerome",
-- Group = "wheel",
-- -- XXX : lua boolean or string ?
-- Recurse = true,
-- Ensure = "present",
-- -- Ensure = "absent",
-- })
--
--
-- File({
-- Path = "/tmp/testtpl... |
require("moonsc").import_tags()
-- test that a targetless transition does not exit and reenter its source state
return _scxml{ initial="s1",
_datamodel{
_data{ id="var1", expr="0" }, -- how often we have exited s2
_data{ id="var2", expr="0" }, -- how often the targetless transition in s2 has been exe... |
-- this is a class for the pair of the pipe that is upwards
PipePair = Class{}
math.randomseed(os.time())
gapHeight = math.random(80, 120)
function PipePair:init(y)
self.x = VIRTUAL_WIDTH + 32
self.y = y
self.pipes = {
['upper'] = Pipe('top', self.y),
['lower'] = Pipe('bottom', self.y +... |
local TestNetwork = class("TestNetwork");
return TestNetwork; |
local Event = require(".Event");
local dispatcher = require(".EventDispatcher");
local Eevent = {}
Eevent.Event = Event;
Eevent.EventDispatcher = dispatcher:create();
return Eevent; |
local cluster_devices = assert(yatm.cluster.devices)
local cluster_energy = assert(yatm.cluster.energy)
local cluster_thermal = assert(yatm.cluster.thermal)
local Energy = assert(yatm.energy)
local heater_yatm_network = {
kind = "machine",
groups = {
machine_worker = 1,
energy_consumer = 1,
heat_produc... |
local o = vim.o
local wo = vim.wo
-- Global
o.mouse = 'a'
o.inccommand = "nosplit"
o.cursorline = true
o.lazyredraw = true
o.updatetime = 100
wo.cursorcolumn = false
wo.cursorline = false
o.synmaxcol = 300
o.splitbelow = true
o.splitright = true
|
-- blockchain init.lua
history_add("testnet(localhost, blockchain_node, 5, 1, \"logs/blockchain/\")")
history_add("start_mining(get_nodes_from_testnet(\"logs/blockchain/\"))")
function blockchain_node(id)
local n = node(id, "automaton/examples/smartproto/blockchain/")
-- print(id)
_G[id] = {
node_type = "bl... |
// Generated by github.com/davyxu/tabtoy
// Version: 2.8.10
module table {
export var TBallGift : table.ITBallGiftDefine[] = [
{ Id : 1, Name : "200金币", Num : 200, ItemId : 60003, Path : "item_json.6003", Pro : 1334, PushBag : 1, Cost : 1 },
{ Id : 2, Name : "50元京东卡", Num : 1, ItemId : 20006, Path : "item_json.20... |
require 'torch' -- torch
require 'image' -- for color transforms
require 'nn' -- provides a normalization operator
----------------------------------------------------------------------
-- parse command line arguments
if not opt then
print '==> processing options'
cmd = torch.CmdLine()
cmd:text()
... |
local Plugin = Plugin or require '_plugin'
local U = require'util'
local C = require'constants'
local git_install = 'git clone --depth=1 --recurse-submodules --shallow-submodules '
local git_update = 'git pull --recurse-submodules --update-shallow '
local Git = Plugin:subClass()
function Git:New(opts)
assert(ty... |
local objects = {
{x = 266.09, y = -349.35, z = 44.74, model = "prop_sec_barier_02b"},
{x = 285.28, y = -355.78, z = 45.13, model = "prop_sec_barier_02a"},
}
Citizen.CreateThread(function()
while true do
for k, v in pairs(objects) do
local ent = GetClosestObjectOfType(objects[k].x, ob... |
object_mobile_dressed_dark_jedi_master_male_twk_01 = object_mobile_shared_dressed_dark_jedi_master_male_twk_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_master_male_twk_01, "object/mobile/dressed_dark_jedi_master_male_twk_01.iff")
|
----------------------------------------------------------------
-- File : Assets\BIZ_Scr\Core\net_http.lua
-- Author : www.loywong.com
-- COPYRIGHT : (C)
-- Date : 2019/08/19
-- Description : 短链接通信
-- Version : 1.0
-- Maintain : //[date] desc
----------------------------------------------------------------
net... |
Queue2D = {}
Queue2D.__index = Queue2D
-- Очередь из координат
function Queue2D:create( arguments )
local prototype = {}
setmetatable(prototype, Queue2D)
prototype.length = arguments.length or 10
prototype.startX = arguments.startX or 0
prototype.startY = arguments.startY or 0
prototyp... |
--[[
Mojang Authentication API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
OpenAPI spec version: 2020-06-05
Generated by: https://openapi-generator.tech
]]
-- agent class
local agent = {}
local agent_mt = {
__name = "agent";
__index = agen... |
object_building_kashyyyk_thm_all_cave_column_damprock_a6 = object_building_kashyyyk_shared_thm_all_cave_column_damprock_a6:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_thm_all_cave_column_damprock_a6, "object/building/kashyyyk/thm_all_cave_column_damprock_a6.iff")
|
local Multipart = require "multipart"
local function table_size(t)
local res = 0
if t then
for _,_ in pairs(t) do
res = res + 1
end
end
return res
end
describe("Multipart Tests", function()
it("should not fail with request that don't have a body", function()
local content_type = "multipar... |
-- Module/class for platfomer hero
-- Use this as a template to build an in-game hero
local fx = require( "com.ponywolf.ponyfx" )
local composer = require( "composer" )
-- Define module
local M = {}
function M.new( object )
-- Get the current scene
local scene = composer.getScene( composer.getSceneName( "curren... |
local rootElement = getRootElement()
local voteWindow
local boundVoteKeys = {}
local nameFromVoteID = {}
local voteIDFromName = {}
local optionLabels = {}
local isVoteActive
local hasAlreadyVoted = false
local isChangeAllowed = false
local timeLabel
local finishTime
local cacheVoteNumber
local cacheTimer
local lay... |
local SarfCommonLibVersion = 1.0
if not _G["SarfCommonLib"] or _G["SarfCommonLib"].version >= SarfCommonLibVersion then -- LibVersionChecker
local old = _G["SarfCommonLib"]
SarfCommonLib = {}
SarfCommonLib.keep = {"internalEventListeners"}
SarfCommonLib.version = SarfCommonLibVersion
SarfCommonLib.mixins = {}
SarfCommo... |
local itchy = require "lib.itchy" -- or wherever you saved it
local game = {
target = "guard13007/asteroid-dodge", -- target or url must be defined
version = "1.0.0" -- optional, config options listed below
}
itchy:check_version(game)
-- somewhere where this will be called periodically
lo... |
local M = {}
local function _get_target(bufdata, action, item, bubble)
if not bubble then
return item
end
while
item
and (not bufdata:is_collapsable(item) or (action == "close" and bufdata:is_collapsed(item)))
do
item = item.parent
end
return item
end
M.close_all = function(bufdata)
bufd... |
VolumeToVector = {}
setmetatable(VolumeToVector, {__index = HiveBaseModule})
VolumeToVector.new = function (varname)
local this = HiveBaseModule.new(varname)
local vm = LoadModule("VolumeToVector")
this.vm = vm
setmetatable(this, {__index=VolumeToVector})
return this
end
function VolumeToVector:Do()... |
peripheral.wrap("playerDetector_0")
peripheral.call("playerDetector_0", "isPlayerInRange") |
---
-- @classmod Observable
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Subscription = require("Subscription")
local ENABLE_STACK_TRACING = false
local Observable = {}
Observable.ClassName = "Observable"
Observable.__index = Observable
function Ob... |
local _M = {}
local _meta = { __index=_M }
local logging = require( "acid.logging" )
local log_enabled_phases = {
set=true,
rewrite=true,
access=true,
content=true,
header_filter=true,
body_filter=true,
log=true,
}
function _M.new(opt)
local e = {
tracking_varname = opt.tracki... |
VERSION = "1.1.4"
local config = import("micro/config")
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-16.micro")
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-tc.micro")
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-16-light.... |
-- WindowHalfsAndThirds Spoon
hs.loadSpoon("WindowHalfsAndThirds")
-- spoon.WindowHalfsAndThirds:bindHotkeys(spoon.WindowHalfsAndThirds.defaultHotkeys)
spoon.WindowHalfsAndThirds:bindHotkeys({
left_half = { {"ctrl", "alt", "cmd"}, "m" },
right_half = { {"ctrl", "alt", "cmd"}, "i" },
top_half = { {"ctrl", "a... |
local Parser = require "argparse"
getmetatable(Parser()).error = function(_, msg) error(msg) end
describe("tests related to default values", function()
describe("default values for arguments", function()
it("handles default argument correctly", function()
local parser = Parser()
parser:argum... |
local sets = require("sets")
local texts = require("texts")
local burden = require("burden")
local pet_actions =
{
[136] = "activate",
[139] = "deactivate",
[141] = "fire",
[142] = "ice",
[143] = "wind",
[144] = "earth",
[145] = "thunder",
[146] = "water",
[147] = "light",
[148... |
local PLUGIN = PLUGIN
ITEM.name = "Splint"
ITEM.model = Model("models/props_c17/furnituredrawer001a_shard01.mdl")
ITEM.description = "itemSplintDesc"
ITEM.category = "Medical"
ITEM.price = 25
ITEM.healthPoint = 0 -- Health point that the player will get
ITEM.medAttr = 3 -- How much medical attribute the character need... |
function check_msi(msi, msilen, af)
if (msi == nil or msilen == nil or af == nil) then
return false
end
local change_len = math.abs(ref.len() - alt.len())
local msi_fail = false
if (change_len == 1 and msi > 1) then
if (msi <= 2 and af < 0.005) then
msi_fail = true
... |
local Path = class.class("Path")
function Path:init(vertices, commands)
vertices = vertices or {}
commands = commands or {}
assert(#vertices == #commands)
self.vertices = vertices
self.commands = commands
end
function Path.new_polygon(...)
local vertices = {}
for i = 1, select("#", ...), 2 do
... |
PetRepairCommand = {
name = "petrepair",
defaultTime = 0.25,
}
AddCommand(PetRepairCommand)
|
local json_params = require("lapis.application").json_params
local respond_to = require("lapis.application").respond_to
--
local create_conversation = require "controllers.conversation_ctrl.create_conversation"
local send_message = require "controllers.conversation_ctrl.send_message"
local get_conversation = require "c... |
local value = 1
function testfn(arg)
local local_value=value*2
local local_value2=3
end
local value3 = 1
function testfn2(arg)
local local_value3=4
testfn(4)
end
testfn2(2)
|
local t = Def.ActorFrame {}
-- Text
t[#t + 1] =
Def.ActorFrame {
Def.Quad {
InitCommand = function(self)
self:zoomtowidth(SCREEN_WIDTH):zoomtoheight(30):horizalign(left):vertalign(top):y(SCREEN_TOP):diffuse(
color("0,0,0,0")
)
end,
OnCommand = function(self)
self:finishtweening():diffusealpha(0.85)... |
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2);
GetItem(11, 3);
GetItem(186, 2);
AddEthics(-1);
do return end;
|
guiLanguage.russian = {
--
-- GENERAL STRINGS
--
windowHeader = "Редактор Handling v"..HVER.." r"..HREV,
restrictedPassenger = "Вы не можете использоват редактор в качестве пассажира.",
needVehicle = "Вы должны сесть в транспорт чтобы использовать редактор!",
needLogin = "Авторизуйтесь... |
cal http = require "resty.http"
local json = require "cjson"
local resty_string = require "resty.string"
local base64_decode = ngx.decode_base64
local base64_encode = ngx.encode_base64
local ngx_http_time = ngx.http_time
local ngx_md5 = ngx.md5
local ngx_md5_bin = ngx.md5_bin
local ngx_t... |
Locales['en'] = {
['intro_help_text'] = "Step into the ~b~elevator~s~.",
['press_interact_to_hack'] = "Press ~INPUT_CONTEXT~ to start ~b~hacking~s~.",
['press_interact_to_exit'] = "Press ~INPUT_CONTEXT~ to exit.",
['press_interact_to_quit'] = "Press ~INPUT_CONTEXT~ to exit and stop ~b~hacking~s~.",
... |
local utils = require "ngx_spider.lua_script.moudle.utils"
local init_lua_data = ngx.shared.init_lua_data;
local hostname = utils.hostname()
init_lua_data:set("hostname", hostname)
ngx.log(ngx.STDERR,'The hostname is :' ,init_lua_data:get("hostname"))
|
invoker_mobility = class({})
LinkLuaModifier("modifier_invoker_mobility_banish", "abilities/heroes/invoker/invoker_mobility/modifier_invoker_mobility_banish", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_invoker_mobility_thinker", "abilities/heroes/invoker/invoker_mobility/modifier_invoker_mobility_thinker", LUA... |
local M = { }
local parent = ...
local case = require(parent .. "._" .. "case")["case"]
M.main = function()
local solution = "A.B"
return case("A", "B", solution, "case 1")
end
return M
|
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars')
--Lua functions
local next, ipairs, pairs = next, ipairs, pairs
local floor, tinsert = floor, tinsert
--WoW API / Variables
local GetTime = GetTime
local CreateFrame = CreateFram... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ColorsetClass = require(ReplicatedStorage.ProceduralMapGenerator.ColorsetObject)
local colors = {
water = Color3.fromRGB(37, 149, 247)
,sand = Color3.fromRGB(219, 218, 143)
,grass = Color3.fromRGB(92, 156, 78)
,grass_dark = Color3.fromRGB(7... |
-- Anthony Fournier, adavidfour@yahoo.com, github.com/Anthony-Fournier
-- Harvardx CS50x 11/2020 Final Project - Games Track game titled, Bocks
--
-- push library required to draw in virtual resolution https://github.com/Ulydev/push
-- for a more retro-game aesthetic
push = require 'push'
-- Class library allows repres... |
-- staffer.lua
-- GUI element for managing staff
local WAGES = {}
WAGES["bellhop"] = BELLHOP_WAGE
WAGES["cleaner"] = CLEANER_WAGE
WAGES["maintenance"] = MAINTENANCE_WAGE
WAGES["cook"] = COOK_WAGE
WAGES["stocker"] = STOCKER_WAGE
local entity = require("entity")
local resource = require("resource")
local event = requir... |
-- Copyright 2006-2020 Mitchell. See LICENSE.
-- Verilog LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('verilog')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:... |
research =
{
-- #1.0, ability_upgrades.lua
{
Cost = 1500,
Description = "$7518",
DisplayPriority = 30,
DisplayedName = "$7517",
Icon = Icon_Ability,
Name = "Hgn_AttackBomberImprovedBombs_hyp0",
RequiredResearch = "",
RequiredSubSystems = "Research | AdvancedResearch & FighterProduction",
ShortDispla... |
--[[
Based on dice.lua, Copyright 2016 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3.
]]--
local dice = {}
local mattata = require('mattata')
function dice:init(configuration)
dice.arguments = 'dice <number of dice> <range of numbers>'
dice.commands = mattata.commands(self.info.username, ... |
function create_all(stackable_items, stage_prefix, create_function, filterForFinalFixes)
for mod, items in pairs(stackable_items) do
if mods[mod] then
for _, item in pairs(items) do
if not filterForFinalFixes or item.inFinalFixes then
local icon = item.icon
... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New();
ITEM.name = "ItemBreensWater";
ITEM.uniqueID = "breen_s_water";
ITEM.cost = 10;
ITEM.model = "models/props_junk/popcan01a.mdl";
ITEM.weight = 0.5;
ITEM.access ... |
--[[
角色解锁面板
@Liukeming 2020-6-5
]]
local M = DClass('HeroUnlockPanel', HeroBasePanel)
_G.HeroUnlockPanel = M
function M:onInit()
self.imgType = self:getImage('imgType')
self.imgStar = self:getImage('imgStar')
self.txtName = self:getText('txtName')
self.txtCVName = self:getText('txtCVName')
... |
print [[a multi-line
message]] |
--[[--------------------------------------------------------------------------
LGI testsuite, GLib.Variant test suite.
Copyright (c) 2010, 2011 Pavel Holejsovsky
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
--]]------------------------------------------------------------... |
function Physic_Special_Water_Source(Map_ID, X, Y, Z)
local Radius = 1
local Material = 8
local Player_Number = Map_Block_Get_Player_Last(Map_ID, X, Y, Z)
local Type = Map_Block_Get_Type(Map_ID, X, Y, Z)
if math.random(100) == 1 then
Map_Block_Change(Player_Number, Map_ID, X, Y, Z, 0, 0, 1, 0, 0)
Map_Block_C... |
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
-- Simple test of Node's HTTP Client choking on a response with a "Content-Length: 0 " response header.
-- I.E. a space character after the "Content-Length" throws an `error` event.
function test()
lo... |
--- Contains model information for the current button
-- @classmod ButtonHighlightModel
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local AccelTween = require("AccelTween")
local BaseObject = require("BaseObject")
local StepUtils = require("StepUtils")
local Maid = require("Maid")
loc... |
----------------------------------------------------------------------------------------------------
--
-- Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
--
-- SPDX-License-Identifier: Apache-2.0 OR MIT
--
--
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.