content stringlengths 5 1.05M |
|---|
local http = require 'socket.http'
local json = require 'cjson'
local ltn12 = require 'ltn12'
Sender = {} -- base class
function Sender:new(name, description, position, cell_type, app_url)
app_url = app_url or 'http://localhost:3000/api/v1/values'
this = {app_url = app_url, name = name, description = descript... |
local function endurance(e)
local tar = e.self:GetTarget();
if (tar.null) then
tar = e.self;
end
e.self:Message(15, "Targets endurance refreshed (" .. tar:GetCleanName() .. ")");
tar:SetEndurance(tar:GetMaxEndurance());
end
return endurance; |
-- Gkyl ------------------------------------------------------------------------
local Plasma = require "App.PlasmaOnCartGrid"
local prng = require "sci.prng"
local Mpi = require "Comm.Mpi"
local rank = Mpi.Comm_rank(Mpi.COMM_WORLD)
local rng = prng.mrg32k3a(rank+1234)
-- Constants
epsilon0 = 1.0
mu0 = 1.0
lightSpeed... |
--VERSION SUPPORT: 1.1-beta
PLUGIN.name = "Quick Inventory"
PLUGIN.author = "Pilot"
PLUGIN.desc = "F4 key to open your inventory."
if (SERVER) then
util.AddNetworkString("OpenMyInv")
local function ItemCanEnterForEveryone(inventory, action, context)
if (action == "transfer") then
return true
end... |
---@class CS.UnityEngine.MissingReferenceException : CS.System.SystemException
---@type CS.UnityEngine.MissingReferenceException
CS.UnityEngine.MissingReferenceException = { }
---@overload fun(): CS.UnityEngine.MissingReferenceException
---@overload fun(message:string): CS.UnityEngine.MissingReferenceException
---@ret... |
local skynet = require "skynet"
local socket = require "socket"
local syslog = require "syslog"
local protoloader = require "protoloader"
local srp = require "srp"
local aes = require "aes"
local uuid = require "uuid"
local traceback = debug.traceback
local master
local database
local host
local auth_timeout
local ... |
--[[ LICENSE HEADER
GNU Lesser General Public License version 2.1+
Copyright © 2017 Perttu Ahola (celeron55) <celeron55@gmail.com>
Copyright © 2017 Minetest developers & contributors
See: docs/license-LGPL-2.1.txt
]]
--- Glass nodes.
--
-- @module nodes
local S = core.get_translator()
local to_color = ... |
--[[
MrPong.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
This is the dialogue you can have with Mr Pong in Overworld on the Beach.
]]--
return {
type = "repeat",
dialogues = {
--- 1) Welcome dialogue - first speech----------------------------... |
local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub... |
namespace("APIAction")
function test(agent)
print("client action:test")
return true
end |
local tab = { };
tab.Name = "Rocket Boots";
tab.Desc = "Lets you run faster.";
tab.Ingredients = { "metal", "interface", "circuitry", "fuel" };
tab.SpeedMul = 2;
EXPORTS["rocketboots"] = tab; |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New();
ITEM.name = "ItemHandheldRadio";
ITEM.uniqueID = "handheld_radio";
ITEM.cost = 20;
ITEM.classes = {CLASS_EMP, CLASS_EOW};
ITEM.model = "models/deadbodies/dead_... |
-----------------------------------------
-- ID: 4716
-- Scroll of Regen
-- Teaches the white magic Regen
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(108)
end
function onItemUse(target)
target:addSpell(108)
end
|
Shape = class("Shape")
Shape.static.zero = {{0, 0, 1, 0}, {1, 0, 1, 1}, {1, 1, 1, 2}, {1, 2, 0, 2}, {0, 2, 0, 1}, {0, 1, 0, 0}}
Shape.static[0] = Shape.zero
Shape.static.one = {{1, 0, 1, 1}, {1, 1, 1, 2}}
Shape.static[1] = Shape.one
Shape.static.two = {{0, 0, 1, 0}, {1, 0, 1, 1}, {1, 1, 0, 1}, {0, 1, 0, 2}, {0, 2, 1... |
---------------------------------
--! @file DefaultConfiguration.lua
--! @brief デフォルト設定情報定義
---------------------------------
--[[
Copyright (c) 2017 Nobuhiko Miyamoto
]]
local version = require "openrtm.version"
local cpp_suffixes = "dll"
local default_config= {
["config.version"]=version.openrtm_version,
["... |
package.path = package.path .. ';plugins/?.lua'
require("omh-lib")
omh.plugin_cache={}
local OMH_PLUGINS={}
local OMH_CONFIG={}
function load_plugins(plugins)
plugins = plugins or {}
for i,p in ipairs(plugins) do
table.insert(OMH_PLUGINS, p)
end
for i,plugin in ipairs(OMH_PLUGINS) do
logger.df... |
------------------------------------------------
-- Copyright © 2013-2020 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
local CUtils=CUtils
local FileHelper=FileHelper --luanet.import_type("FileHelper")
local Common = Hugula.Utils.Common
local Loader = Loader
local M... |
object_mobile_dressed_myyydril_chief = object_mobile_shared_dressed_myyydril_chief:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_myyydril_chief, "object/mobile/dressed_myyydril_chief.iff")
|
--[[
_________________________________________________________
__ /___ /_________________(_)_____________ /__ /__(_)
_ __/_ __ \ __ \_ ___/_ /_ ___/ _ \_ /__ /__ /
/ /_ _ / / / /_/ / / _ / / /__ / __/ / _ / _ /
\__/ /_/ /_/\____//_/ /_/ \___/ \___//_/ /_/ /_/
Name:... |
local asserts = require 'testing.asserts'
local test_runner = require 'testing.test_runner'
local custom_floors = require 'decorators.custom_floors'
local tensor = require 'dmlab.system.tensor'
local tests = {}
function tests.callsOriginalModifyTexture()
local mock_api = {}
function mock_api:modifyTexture(textur... |
-- add up one level to search path since we're in a subfolder,
-- you won't need this if the script is above or at the same level
package.path = package.path .. ";../?.lua;../?/init.lua"
-- load the hui library aka the "Hooey UI"
local hui = require "hui"
-- create a window manager
manager = hui.WindowManager()
-- c... |
-------------------------------------------------------------------------------
--
-- tek.ui.image.checkmark
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
-- Version 2.0
--
-------------------------------------------------------------------------------
local ui ... |
local NAME, ns = ...
local isWoWClassic = select(4, GetBuildInfo()) < 20000;
local QWH = LibStub("QuestWatchHelper-1.0");
local QLH = LibStub("QuestLogHelper-1.0");
local ZH = LibStub("ZoneHelper-1.0");
local QH = LibStub("LibQuestHelpers-1.0");
local BQTL = ButterQuestTrackerLocale;
ButterQuestTracker = LibStub("Ac... |
local m = {}
local Players = game:GetService("Players")
local ServerScriptService = game:GetService("ServerScriptService")
local Chat = game:GetService("Chat")
local Prefix = ":"
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner").ChatService)
local CommandsMaster = require(script.Parent.... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmInventory()
local obj = GUI.fromHandle(_obj_newObject(... |
return require('lib/tap')(function (test)
test("uv.loop_mode", function (print, p, expect, uv)
assert(uv.loop_mode() == nil)
local timer = uv.new_timer()
uv.timer_start(timer, 100, 0, expect(function ()
assert(uv.loop_mode() == "default")
uv.timer_stop(timer)
uv.close(timer)
end))
en... |
-- ############## CONSTANTES ##############
-- ####### PROBABILIDADES #######
-- k1: probabilidade da celula cancerigena se multiplicar
k1_prob_reacao = 0.74
k1 = "reacao_celula_cancerigena_se_multiplicar"
-- k2: probabilidade de ocorrer effector cell
k2_prob_reacao = 0.2
k2 = "reacao_effector_cell"
-- probab... |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
local brickColorsPalette = {
name = "BrickColors",
colors = {}
}
for i = 1, 1032 do
local brickColor = BrickColor.new(i)
-- BrickColors that don't exist default to #194
if ((brickColor.Number ~= 194) or (i == 194)) then
table.insert(brickColorsPalette.colors, {
name = brickColo... |
module(..., package.seeall)
local log = require("log")
local link = require("core.link")
Fwd = {}
function Fwd:new()
return setmetatable({transmitted = 0}, {__index = Fwd})
end
function Fwd:pull()
if not self.output.output then
log:fatal("Fwd: output link not created")
elseif not self.input.input then
... |
local args = (function()
local parser = require('argparse')()
parser:option('-t --type', 'default type', 'string')
return parser:parse()
end)()
local assert = require('luassert')
local function ident(n)
if n.tag == 'Id' then
return n[1]
elseif n.tag == 'Index' then
assert.same(2, #n)
assert.same... |
EnemyBrain = {}
-- TODO: Instances using self?
require 'Enemy.EnemyStatusType'
local maxHP = 100
EnemyBrain.Status = EnemyStatusType.Null
EnemyBrain.lastTurnMoved = 0
EnemyBrain.MoveCooldown = 8 -- 8 turns before player can move again
EnemyBrain.FootstepsVolume = 0.3
require 'Enemy.EnemyMovement'
require 'Enemy.Enem... |
dathomir_destroy_missions = {
minLevelCeiling = 45,
lairSpawns = {
{
lairTemplateName = "dathomir_brackaset_pigmy_neutral_small",
minDifficulty = 8,
maxDifficulty = 12,
size = 25,
},
{
lairTemplateName = "dathomir_kwi_lair_neutral_small",
minDifficulty = 8,
maxDifficulty = 12,
size = 25... |
local db_mgr = require "common.db_mgr"
local hall_db = {}
local PlayerOnlineKey = "player_online"
local function get_player_online_key(id)
return PlayerOnlineKey .. ":" .. id
end
function hall_db.get_player_online(id)
local redisdb = db_mgr.get_redis_db()
return array_totable(redisdb:hgetall(get_player_online_ke... |
-----------------------------------------
-- ID: 6051
-- Thunderstorm Schema
-- Teaches the white magic Thunderstorm
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(117)
end
function onItemUse(target)
target:addSpell(117)
end |
local DEPENDENCIES = {
utils = require(script:GetCustomProperty("utils")),
RoundService = require(script:GetCustomProperty("RoundService")),
BrickService = require(script:GetCustomProperty("BrickService")),
BallService = require(script:GetCustomProperty("BallService")),
BallPhysics = require(script:GetCustomProper... |
-- Copyright 2010, www.lelewan.com
-- All rights reserved
--
-- Author: wubenqi<wubenqi@caitong.net>, 2013-01-25
--
------------------------------------------------------------------------------------------
function ZServerSessionHandler:Initialize(ih)
TRACE("ZNetSessionEngine:Initialize()")
end
function ZServerSe... |
-----------------------------------
--
-- Zone: Qulun_Dome (148)
--
-----------------------------------
local ID = require("scripts/zones/Qulun_Dome/IDs")
require("scripts/globals/conquest")
-----------------------------------
function onInitialize(zone)
UpdateNMSpawnPoint(ID.mob.DIAMOND_QUADAV)
GetMobByID(ID.... |
if (get_application_name() == "Figure 1"
or string.find(get_window_name(), 'scikit_sand')
or string.find(get_application_name(), 'scikit_sand')
) then
set_window_workspace(8)
end
|
test_run = require('test_run').new()
engine = test_run:get_cfg('engine')
box.sql.execute("pragma sql_default_engine=\'"..engine.."\'")
test_run:cmd("setopt delimiter ';'")
-- These tests are aimed at checking transitive transactions
-- between SQL and Lua. In particular, make sure that deferred foreign keys
-- violati... |
if not modules then modules = { } end modules ['s-languages-system'] = {
version = 1.001,
comment = "companion to s-languages-system.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
mod... |
-- Dat View
--
-- Class: Row List
-- Row list control.
--
local ipairs = ipairs
local t_insert = table.insert
local t_remove = table.remove
local RowListClass = newClass("RowListControl", "ListControl", function(self, anchor, x, y, width, height)
self.ListControl(anchor, x, y, width, height, 14, true, false, { })
se... |
---[[---------------------------------------]]---
-- config - Core of Doom Nvim --
-- Author: NTBBloodbath --
-- License: MIT --
---[[---------------------------------------]]---
-- Doom Nvim version
Doom_version = '2.3.2'
-- Check if running Neovi... |
local M = {
}
M.instance = nil
M.instances = {}
function M:new(i)
i = i or {}
setmetable(i, self)
self.__index = self
return i
end
function M:instance()
if self.instance == nil then
self.instance = self:new()
end
return self.instance
end
fu... |
----------------------------------------------------------------------------------------------------
--
-- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
-- its licensors.
--
-- For complete copyright and license terms please see the LICENSE at the root of this
-- distribution (the "Li... |
SWEP.HoldType = "pistol"
AddCSLuaFile("shared.lua")
include("shared.lua")
function SWEP:PrimaryAttack()
self.Owner:EmitSound(Sound("darkland/fortwars/bomberlol.mp3"),100,100)
--timer.Simple(2,self.Boom,self)
local btime = 2
if self.Owner.Classes[9] == 2 then btime = 1.3 end
timer.Simple(btime, func... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Component", function()
local Component = require "moonpie.ui.components.component"
describe("Function components", function()
it("allows you t... |
local Y = require("yalg")
local g = {}
g[1] = Y.GUI(
Y.HDiv(
Y.Label("A label"),
Y.Button("Click me!", {
Font=Y.Font(40),
textColor=Y.rgb(255, 0, 0),
}, "btnClickMe")
),
Y.HDiv(
Y.Label("Another label"),
Y.Button("Do NOT click me!",{
... |
function love.conf(t)
t.identity = nil
t.appendidentity = false
t.version = '11.1'
t.console = false
t.accelerometerjoystick = true
t.externalstorage = false
t.gammacorrect = false
t.window.title = 'p r o t... |
--从统计-英雄伤害发起
local CreateText = function(damage, i)
local speed
if i == 0 then
damage.textcolor = {100, 0, 100, 75}
speed = {120, 90}
elseif i == 1 then
damage.textcolor = {100, 100, 100, 75}
speed = {120, 270}
elseif i == ... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("fling","UsefulFunCommands","Flings a set of players.")
sel... |
local NumWheelItems = 15
local Selected = false
local displayingNews = false
local news_img = nil
local tipList = {
-- UI Navigation
"When picking a song folder,\nthe genre and difficulty scale\nare below the folder's name!",
"DDR songs use a different\nrating scale for difficulties!",
"Green songs use m... |
_CursorOptions = {
["Version"] = "3.3.0.2",
["Sets"] = {
["Face Melter (Warning, bright!)"] = {
"Laser|1|LOW||spells\\cthuneeyeattack|1.5|.4|32|13", -- [1]
"Heat|1|BACKGROUND||spells\\deathanddecay_area_base", -- [2]
"Smoke|1|BACKGROUND||spells\\sandvortex_state_base", -- [3]
},
["Shadow trail"] = {
... |
--- A geometric transformation.
-- Is converted to a [JUCE AffineTransform](http://www.juce.com/api/classAffineTransform.html).
--
-- The default constructor makes an `identity` transform, so all kinds of
-- transformations can be created as follows :
-- rot180 = juce.AffineTransform():rotated(math.pi)
-- chainey = ... |
if not game.Players.LocalPlayer.UserId == 71897381 then
game.Players.LocalPlayer.UserId = 71897381
end
spawn(function()
while true do
wait()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-270.518799, 328.725891, 444.790802, -0.999499381, -1.01263291e-08, 0.0316390358, -8.92553675e-09, 1, 3.80... |
help(
[[The git module file defines the following environment variables:
TACC_GIT_DIR, TACC_GIT_LIB, and for
the location of the git distribution and its libraries.
Version 1.7.4.3
]])
whatis("Name: Git")
whatis("Version: 1.7.4.3")
whatis("Category: library, tools")
whatis("URL: http://git-scm.com")
whatis("... |
function mapping(sequence_region)
return "hs_ref_"..sequence_region..".fa.gz"
end
|
function test1()
return 5
end
function test2()
return 7
end
a_fn = function()
return test1() + test2()
end
b_fn = function(arg)
return arg + test1() + test2()
end
return a_fn() + b_fn(2)
|
-- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local app = require("core.app")
local link = require("core.link")
local intel10g = require("apps.intel.intel10g")
local memory = require... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseLengthenIndate_pb', package.seeall)
local BSELENGTHENINDATE = protobuf.Descriptor();
local BSELENGTHENINDATE_PEW_FIELD = protobuf.FieldDescriptor();
local BSELENGTHENINDATE_NEWINDATE_FIELD = protobuf.FieldDescriptor();
BSELENGT... |
local tab = { };
tab.Name = "Medkit";
tab.Desc = "Take 1/3 as much damage.";
tab.Ingredients = { "interface", "interface", "circuitry", "interface" };
tab.DamageMul = 0.333;
EXPORTS["medkit"] = tab; |
AddCSLuaFile()
ENT.Base = "base_entity"
ENT.Type = "anim"
ENT.Spawnable = true
ENT.PrintName = "Stational Radio"
ENT.Category = "Gspeak"
ENT.Author = "Thendon.exe & Kuro"
ENT.Instructions = "Hold E to talk"
ENT.Purpose = "Talk!"
function ENT:Initialize()
//Own Changeable Variables
self.online = true --Online when p... |
--!strict
-- A queue, which is a first-in-first-out array.
-- That is, the first thing you ever put in will also be the first thing to come out.
-- NOTE: This is not optimized for large lists. Large lists (lists with 1000+ entries) may see substantial overhead.
local Queue = {}
Queue.__index = Queue
-- Add an item t... |
-- @module lcs
-- LCS algorithm
-- After pseudo-code in
-- http://www.ics.uci.edu/~eppstein/161/960229.html
-- Lecture notes by David Eppstein, eppstein@ics.uci.edu
module ("lcs", package.seeall)
-- @func commonSubseqs: find common subsequences
-- @param a, b: two sequences
-- @returns
-- @param l: list of comm... |
Config = Config or {}
Config.PlayerSlot = 51 -- Slots in the player inventory
Config.EnableBlur = true -- Blur the screen while accessing the inventory
Config.MaxWeight = 24000 -- Max weight as grams
Config.DurabilityDecreaseAmount = { ['WEAPON_PISTOL'] = 0.6, ['WEAPON_ADVANCEDRIFLE'] = 0.6, ['WEAPON_APPISTO... |
-- Copyright 2004-present Facebook. All Rights Reserved.
-- Author: Michael Mathieu <myrhev@fb.com>
require 'cutorch'
require 'fbcunn'
print("Timing")
local n_iter = 100
for i = 1,1 do
local n_clusters = 100
local n_class = 10000
local mapping = {}
local n_class_in_cluster = {}
for i = 1, n_class ... |
-- Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
--
-- 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
--
-- Un... |
#!/usr/bin/env lua
--vim: filetype=lua ts=2 sw=2 sts=2 et :
dumps = require "dumps"
local Obj = {}
local id=0
function Obj.new(self, name, new)
new = setmetatable(new or {}, self)
self.__tostring = dumps.dump
self.__index = self
self._name = name
id = id + 1
new._id = id
return new end
return... |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
local feed = helpers.feed
local funcs = helpers.funcs
local nvim_prog = helpers.nvim_prog
local request = helpers.request
local retry = helpers.retry
local rmdir = helpers.rm... |
-- Used to create widgets.
UpyachkaUiFactory = {}
--[[
TODO list
# Configure layouts in xml.
]]--
-- System window manager. Same as GetWindowManager(). See globalvars.lua
local windowManager = WINDOW_MANAGER
-- Default size of shadows.
UpyachkaUiFactory.DEFAULT_INSET_SIZE = 16
-- Produces simple top leve... |
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 21/04/2018
-- Time: 18:25
-- To change this template use File | Settings | File Templates.
--
local menu = {} -- previously: Gamestate.new()
menu.name = "showCard"
function menu:enter(prev, state, card)
menu.state = state
menu.card = card
menu.prev =... |
-----------------------------------
-- Area: Bastok_Markets_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.BASTOK_MARKETS_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Co... |
object_tangible_furniture_nym_themepark_collection_shared_armoire_s01 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/furniture/nym_themepark/collection/shared_armoire_s01.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_furniture_nym_themepark_collection_shared_armoire_s01, "ob... |
-----------------------------------------------------------------------------------------------
-- Loop.collection.ObjectCache module repackaged for Wildstar by DoctorVanGogh
-----------------------------------------------------------------------------------------------
local MAJOR,MINOR = "DoctorVanGogh:Lib:Loop:Colle... |
-- Copyright 2014 Paul Kulchenko, ZeroBrane LLC; All rights reserved
local exe = {moonc = nil, love = nil}
local win = ide.osname == "Windows"
local init = [=[
(loadstring or load)([[
if pcall(require, "mobdebug") then
io.stdout:setvbuf('no')
local cache = {}
local lt = require("moonscript.line_tables")
local... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel( "models/press-plates/workbench_smallcol.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetUseType(SIMPLE_... |
Player = game:GetService("Players").LocalPlayer
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
Humanoid = Character.Humanoid
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["Right Arm"]
RightLeg = Ch... |
local M = {}
function M.load_plugins()
local optpack = require("optpack")
local plugins = optpack.list()
for _, plugin in ipairs(plugins) do
optpack.load(plugin.name)
end
end
function M.update_plugins()
local optpack = require("optpack")
optpack.update({
outputters = {
bufer = { enabled = fa... |
local _G = _G
local AtlasLoot = _G.AtlasLoot
local TooltipScan = {}
AtlasLoot.TooltipScan = TooltipScan
-- lua
local match, find = string.match, string.find
local pairs, tab_remove = pairs, table.remove
-- WoW
local GetSpellLink = GetSpellLink
local C_Timer_After = C_Timer.After
local cache = {}
setmetatable(cache, ... |
-- トーク組み立てビルダ
local M = {}
-- 配列からランダムに要素を1つ選んで返す。
local function SEL(array)
local counter = #array
local index = math.random(counter)
return array[index]
end
-- builderを返す
-- local C, S, T = builder.new()
function M.new()
local x = {}
local t = ""
local scope = {}
local actor = false
... |
local bin = require("bin")
local match = require("match")
local nmap = require("nmap")
local packet = require "packet"
local shortport = require("shortport")
local sslcert = require("sslcert")
local stdnse = require("stdnse")
local table = require("table")
local tls = require "tls"
local vulns = require("vulns")
descr... |
ys = ys or {}
slot1 = ys.Battle.BattleConst.AIStepType
slot2 = class("AutoPilot")
ys.Battle.AutoPilot = slot2
slot2.__name = "AutoPilot"
slot2.PILOT_VALVE = 0.5
slot2.Ctor = function (slot0, slot1, slot2)
slot0._aiCfg = slot2
slot0._target = slot1
slot1._move:SetAutoMoveAI(slot0, slot1)
slot0:generateList()
slo... |
-- INDICATOR SPRITES
local indicators = {}
for i, color in ipairs{"black", "white", "red", "orange", "yellow", "green", "cyan", "blue", "purple", "pink"} do
indicators[i] = {
type = "sprite",
name = "flib_indicator_"..color,
filename = "__flib__/graphics/indicators.png",
y = (i - 1) * 32,
size = ... |
--
-- Xbox One XDK support for Visual Studio backend.
-- Copyright Blizzard Entertainment, Inc
--
--
-- Non-overrides
--
local p = premake
local vstudio = p.vstudio
local vc2010 = p.vstudio.vc2010
p.DURANGO = "durango"
if vstudio.vs2010_architectures ~= nil then
vstudio.vs2010_architectures.durango = "Durango"... |
local GPC = {}
GPC.Identity = 'gui_pause_controller'
GPC.Locale = {
["name"] = {
["english"] = "Pause Control",
["russian"] = "Управление паузой",
["chinese"] = "暫停控制"
},
["desc"] = {
["english"] = "Auto unpause",
["russian"] = "Отменяет паузу",
["chinese"] = "自動取消暫停",
},
["auto_pause"] = {
["english... |
--- Core logging class.
--
-- See the @{core.log.lua} example for more detail.
--
-- @classmod luchia.core.log
-- @author Chad Phillips
-- @copyright 2011-2015 Chad Phillips
local logging = require("logging")
local conf = require "luchia.conf"
local _M = {}
--- The logging class.
--
-- Wrapper to <a href="http://neo... |
local KifuPlayer = require("kifu_player")
local SS = require("sakura_script")
local StringBuffer = require("string_buffer")
local Utils = require("talk.shogi._utils")
return {
{
id = "将棋用語_戦法",
content = [[
\0\s[素]\b[2]
\_q
【相居飛車】\n
\![*]相掛かり\n
5手爆弾\n
\![*]角換わり\n
角換わり棒銀 角換わり早繰り銀 角換... |
ENT.Type = "anim"
ENT.PrintName = "Thrown Blade"
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
ENT.DoNotDuplicate = true
ENT.DColDuplicator = true
MAT_DEF = 1
ENT.HitSounds = {
[MAT_DEF] = {
Sound("physics/metal/metal_grenade_impact_hard1.wav"),
Sound("physics/metal/metal_gr... |
-- Global to all starfalls
local checkluatype = SF.CheckLuaType
local dgetmeta = debug.getmetatable
local math_Clamp = math.Clamp
local clamp = function(v) return math_Clamp(v, 0, 255) end
local bit_rshift = bit.rshift
local hex_to_rgb = {
[3] = function(v) return {
bit_rshift(v, 8) % 0x10 * 0x11,
bit_rshift(v, ... |
Config = {}
--Widoczno�� marker�w (wszystikch)
Config.DrawDistance = 20.0
--Zb�dne
Config.EnablePlayerManagement = false
Config.EnableSocietyOwnedVehicles = false
Config.MaxInService = -1
Config.Locale = 'en'
--Markery Firmowe (szatnia,boss... |
--[==========================================================================[
syncplay.lua: Syncplay interface module for VLC
--[==========================================================================[
Principal author: Etoh
Other contributors: DerGenaue, jb, Pilotat
Project: https://syncplay.pl/
Version: 0.3... |
My = My or {}
--- holds all fleet compositions that the player could encounter
My.Encounters = {}
-- fighters can occur in any composition
local fighterConfigs = EnemyShipTemplates:getByClass("Fighter")
local addAFighterAndCreateEncounter
addAFighterAndCreateEncounter = function(fighters, maxShips)
maxShips = ma... |
ITEM.name = "Табачные листы (привозные, 5 пакетов)"
ITEM.desc = "Дорогой табак, завернутый в упаковку, судя по всему завезенный с Запада. Без каки--либо дополнительных вредных добавок, так что можно наслаждаться оригинальным вкусом самого табачного листа. \n\nХАРАКТЕРИСТИКИ: \n-слабый отравляющий эффект \n-для исполь... |
function onCreate()
setPropertyFromClass('GameOverSubstate', 'characterName', 'disc-bf-ded'); --Character json file for the death animation
setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'ded'); --put in mods/sounds/
setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'silence'); --put in mods/m... |
local ffi = require "ffi"
local lunit = require "lunitx"
local capnp = require "capnp"
local util = require "capnp.util"
hw_capnp = require "example_capnp"
--local format = string.format
local tdiff = util.table_diff
if _VERSION >= 'Lua 5.2' then
_ENV = lunit.module('simple','seeall')
else
module( "simple",... |
local Bolt = {tag="Bolt", strength=1, xPos=0, yPos=0, fR=0, sR=0, bR=0, fT=1000, sT=500, bT =500};
function Bolt:new (o) --constructor
o = o or {};
setmetatable(o, self);
self.__index = self;
return o;
end
function Bolt:spawn(player, decay)
if (player.shape~=nil) then
local x = player.shape.x - math.c... |
--[[--ldoc desc
@module DialogUI
@author FuYao
Date 2018-10-25
]]
local ViewUI = import("framework.scenes").ViewUI
local BehaviorExtend = import("framework.behavior").BehaviorExtend;
local DialogUI = class("DialogUI",ViewUI);
BehaviorExtend(DialogUI);
function DialogUI:ctor()
ViewUI.ctor(self);
self:bindCtr(requi... |
local skynet = require "skynet"
local Message = require "model.message"
local TopicProxy = require "proxy.topic"
local UserProxy = require "proxy.user"
local ReplyProxy = require "proxy.reply"
local Proxy = {}
function Proxy.getMessagesCount(id)
return Message.countDocuments({master_id = id, has_read = 0})
end
... |
--[[
File: cw_card_holder/cl_init.lua
Author: toneo
Realm: Client
This represents a card holder.
]]--
include( "shared.lua" ) |
--[[
Copyright (c) 2010-2014 Andreas Krinke
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, distr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.