content stringlengths 5 1.05M |
|---|
local table = require("hs/lang/table")
local Class = require("hs/lang/Class")
--------------------------------------------------------------------------------
-- 表示オブジェクトの位置やサイズのレイアウトを更新する為のクラスです.
-- このクラスでは、Box形式のオブジェクトを水平、垂直方向に配置する事が可能です.
-- @class table
-- @name BoxLayout
-------------------------------------------... |
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local widget = require("util.widgets")
local helpers = require("helpers")
local icons = require("icons.default")
local button = require("utils.button")
local font = require("util.font")
local ufont = require("utils.font... |
--[[
-- added by passion @2021/5/31 8:37:52
-- +ExamRoleTitle控制层
--]]
local ExamRoleTitleCtrl = BaseClass("ExamRoleTitleCtrl", UIBaseCtrl)
local MsgIDDefine = require("Net/Config/MsgIDDefine")
local MsgIDMap = require("Net/Config/MsgIDMap")
local index=1
local function AddListener()
DataManager:GetInstance():Add... |
----------------------------------------------------------------------------------------------------
-- Widget Themes.
--
-- @author Makoto
-- @release V2.1.2
----------------------------------------------------------------------------------------------------
-- module
local M = {}
-- import
local flower = require "... |
-- function reference
local exiting = ngx.worker.exiting
-- include
local Redis = require("resty.redis")
local defaultConf = require("storage.conf").KEYSPACENOTIFICATION
local errTimeout = require("storage.conf").PUBLIC.ERROR.Timeout
local mergeConf = require("toolkit.utils").mergeConf
local log = require("log.index")
... |
require "export-compile-commands"
require "install"
|
--[[
Author: Dand
URL: https://github.com/dandmine/Luana/blob/main/DataSaver.lua
1. Add this into a file for any modular use
2. Create an empty Data.lua file in the same directory (this is where the information will be stored)
]]
local DataSaver = {}
function DataSaver:GetValue(k)
k = tostring(k)
for l... |
object_static_item_item_hoth_cable_hanging_02 = object_static_item_shared_item_hoth_cable_hanging_02:new {
}
ObjectTemplates:addTemplate(object_static_item_item_hoth_cable_hanging_02, "object/static/item/item_hoth_cable_hanging_02.iff")
|
-----------------------------------------
-- ID: 4270
-- Item: sweet_rice_cake
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 17
-- Vitality 2
-- Intelligence 3
-- Mind 1
-- HP Recovered While Healing 2
-- MP Recovered While Healing 2
-- Evasion 5
-- Resist Silence 4
------------------... |
--------------------------------
-- @module ControlColourPicker
-- @extend Control
--------------------------------
-- @function [parent=#ControlColourPicker] setEnabled
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlColourPicker] getHuePicker
-- @param se... |
require('constants')
require('level')
-- Sages require intelligence and willpower to command all spheres of
-- magic.
local function sage_stat_gain_fn(creature_id, level)
local is_pl = is_player(creature_id)
if level % 5 == 0 then
incr_int(creature_id, is_pl)
incr_wil(creature_id, is_pl)
end
end
-- Sag... |
local class = require('middleclass')
local Hex = class('Hex')
function Hex:initialize(q, r, s)
self.q, self.r, self.s = q, r, s or (-q-r)
end
function Hex:__tostring()
return ('Hex[%f, %f, %f]'):format(self.q, self.r, self.s)
end
function Hex:__add(rhs)
return Hex:new(self.q + rhs.q, self.r + rhs.r... |
--------------------------------------------------------------------------------
-- 0160-string.lua: tests for string-related tools
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
--------------------------------------------------------------------... |
---------
-- The logging module.
--
-- **Fields**:
--
-- * `output:` (**_file_**) Where to write log messages (default: @{io.stderr}).
-- * `prefix:` (@{string}) The prefix to add before every message (default: `"luapak: "`).
-- * `threshold:` (**_int_**) The minimal log level that should be logged (default: 20).
-- * ... |
--[[
NetworkContract v1.2 [2020-12-05 12:40]
Facilitates Client Server communication through Events. Has Encode, Decode, Diff, Patch and Message Knowledge
https://github.com/nidorx/roblox-network-contract
Discussions about this script are at https://devforum.roblox.com/t/900276
----------------------... |
df_mapitems.sounds = {}
df_mapitems.sounds.stone = default.node_sound_stone_defaults()
df_mapitems.sounds.floor_fungus = default.node_sound_stone_defaults({footstep = {name = "dfcaverns_squish", gain = 0.25},})
df_mapitems.sounds.sandscum = default.node_sound_sand_defaults({footstep = {name = "dfcaverns_squish", gain ... |
------------------------------------------------------------------------------------------------------------
-- Procedurally generated terrain
--
------------------------------------------------------------------------------------------------------------
local bit = require("bit")
--///
--/// Basic implementation of... |
local addonName, namespace = ...
local util = namespace.util
local RaidRoster = {}
function RaidRoster:getSingletonInstance()
if not self.instance then
local newInstance = {}
-- Class syntax
self.__index = self
newInstance = setmetatable(newInstance, self)
self.instance = newInstance
end
... |
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
-- This test assumes that JIT is on, starts recording on 2-th iteration and
-- there must be no errors.
jit.on()
assert(jit... |
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
-- Lua uses '--' as comment to end of line read the
-- manual for more comment options.
require "Pktgen"
local eth_dst_addr = "0c:42:a1:a4:89:8c"
local eth_src_addr = "0c:42:a1:a4:8a:58"
local pkt_size = 4096
pktgen.set("all", "seq_cnt", 8);
local seq_tabl... |
--[[
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
--]]
require("nn")
local ... |
Locales['sv'] = {
['no_hands_up'] = 'Personen har inte sina händer uppe!',
['cash'] = 'Pengar',
['black_money'] = 'Svarta Pengar',
['inventory'] = 'Innehåll',
['target_inventory'] = 'Personens Innehåll',
['steal'] = 'Stjäl',
['return'] ... |
local cjson = require("cjson")
local constants = require("kong.plugins.oidc.util.constants")
local M = {}
local function parseFilters(csvFilters)
local filters = {}
if (not (csvFilters == nil)) then
for pattern in string.gmatch(csvFilters, "[^,]+") do
table.insert(filters, pattern)
end
end
retur... |
return {
init_effect = "",
name = "",
time = 10,
picture = "",
desc = "",
stack = 1,
id = 13762,
icon = 13762,
last_effect = "",
effect_list = {
{
type = "BattleBuffHP",
trigger = {
"onBulletHit"
},
arg_list = {
weaponType = 1,
target = "TargetSelf",
damageConvertRatio = 800,
... |
--[==[description
Phone numbers may be in any of the following formats:
* 333-333-3333
* (333) 333-3333
* 1-333-333-3333
* 333.333.3333
* 333-333-3333
* 333-333-3333 x3333
* (333) 333-3333 x3333
* 1-333-333-3333 x3333
* 333.333.3333 x3333
(Don't let the example output below fool you - any format can... |
--!A cross-platform build utility based on Lua
--
-- 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... |
-- System environment (only Windows supported)
local system = require "environ.system"
-- Current user system environment (only Windows supported)
local user = require "environ.user"
-- Current process environment
local process = require "environ.process"
print(system.getenv('TEMP')) -- %SystemRoot%\TEMP
print(us... |
CaveBot.Extensions.SupplyCheck = {}
storage.supplyRetries = 0
CaveBot.Extensions.SupplyCheck.setup = function()
CaveBot.registerAction("supplyCheck", "#00FFFF", function(value)
local softCount = itemAmount(6529) + itemAmount(3549)
local totalItem1 = itemAmount(storage[suppliesPanelName].item1)
local totalItem2 ... |
local tasty = require 'tasty'
local test = tasty.test_case
local group = tasty.test_group
local assert = tasty.assert
function os_is_windows ()
return package.config:sub(1,1) == '\\'
end
return {
group 'Attr' {
group 'Constructor' {
test('returns null-Attr if no arguments are given', function ()
... |
-- Advanced NPC System (Created by Jiddo),
-- Modified by Talaturen.
if(NpcHandler == nil) then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet ... |
--- hammerspoon config file
function sendNotification(title, text)
hs.notify.new({title=title,informativeText=text}):send()
end
-- Resizing windows
function setupWindowsManager()
hs.grid.MARGINX = 0
hs.grid.MARGINY = 0
hs.grid.GRIDWIDTH = 12
hs.grid.GRIDHEIGHT = 12
local layout = {
title='',... |
local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
local timer = require('util.timer')
local sh = require('util.sh')
local lyrics = require('util.lyrics')
local tools = {}
-- ===============
-- watch
-- ===============
--
-- sensors | grep temp1 | awk 'NR==1{prin... |
----------------------------------------
-- ItemLinkLib
--
-- Provides functions for manipulating item links
--
-- Requires: MC2AddonLib
----------------------------------------
local _, Addon = ...
----------------------------------------
Addon.ItemLinkLib = {
----------------------------------------
v... |
print 'Hello, world.\ninline duplication\ninline duplication'
for i = 1,5 do
print ('Around', 'the', 'world')
end
while true do
print 'Harder'
print 'Better'
print 'Faster'
print 'Stronger'
end
|
--[[
(C) Copyright 2014 William Dyce
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Lesser General Public License
(LGPL) version 2.1 which accompanies this distribution, and is available at
http://www.gnu.org/licenses/lgpl-2.1.html
This library is distri... |
created_entity = function(event)
local entity = event.entity
if entity and entity.valid and entity.name == 'nm-alien-probe-proxy' then
local surface = entity.surface
local position = entity.position
local radius = 5
local alien = surface.find_entities_filtered({type = 'unit', po... |
local guai = {
Attack1 = {
operation = {
[35] = {
fire_bullet = {}
}
},
},
Attack3 = {
operation = {
[60] = {
fire_bullet = {
weaponid=2011,
skills={2000015}
},
},
},
},
}
return guai
|
do
if (SERVER) then
netstream.Hook("feedbackScreen", function(client)
client:ConCommand("say 공지를 읽었습니다!")
end)
else
local scrSize = 10
SCREEN_1 = SCREEN_1 or LuaScreen()
SCREEN_1.pos = Vector(-2082.439331, -4103.122070, -190.380630)
SCREEN_1.ang = Angle(0, 180, 0)
SCREEN_1.noClipping = false
SCREEN... |
local prefabs = {}
table.insert(prefabs, CreatePrefabSkin("goldenaxe_victorian", {
base_prefab = "goldenaxe",
type = "item",
rarity = "Glassic",
assets = {
Asset( "DYNAMIC_ANIM", "anim/dynamic/goldenaxe_victorian.zip" ),
Asset( "PKGREF", "anim/dynamic/goldenaxe_victorian.dyn" ),
},
init... |
--- Module implementing the LuaRocks "build" command.
-- Builds a rock, compiling its C parts if any.
local cmd_build = {}
local pack = require("luarocks.pack")
local path = require("luarocks.path")
local util = require("luarocks.util")
local fetch = require("luarocks.fetch")
local fs = require("luarocks.fs")
local d... |
local cjson = require "cjson"
cjson.encode_empty_table_as_object(false)
cjson.encode_sparse_array(true)
local util = {}
function util.response_json(status,response)
ngx.status = status
ngx.header["content-type"] = "application/json;charset=utf-8"
if response ~= nil then
ngx.say(cjson.encode(response))
end
end
... |
object_mobile_dressed_bh_female_zab_02 = object_mobile_shared_dressed_bh_female_zab_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bh_female_zab_02, "object/mobile/dressed_bh_female_zab_02.iff")
|
NUM_NODES = 16
HOST_NODE = "node_1"
function receive(message)
code = [[function receive(message)
if(message.type == "init") then
publish({node_id=node_id, actor_type="core.io.gpio", command="gpio_output_set_level", gpio_pin=27, gpio_level=0})
publish({node_id="]]..HOST_NODE..[[", actor_type="spawn_te... |
LinkLuaModifier("modifier_item_angel_heart_passive", "items/neutral/angel_heart.lua", LUA_MODIFIER_MOTION_NONE)
item_angel_heart = class(ItemBaseClass)
function item_angel_heart:GetIntrinsicModifierName()
return "modifier_item_angel_heart_passive"
end
---------------------------------------------------------------... |
default_opts = { noremap = true, silent = true }
-- unmap SPACE from Leader
vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', default_opts)
vim.api.nvim_set_keymap('n', '<Leader>h', ':noh<CR>', default_opts)
-- better visual indenting
vim.api.nvim_set_keymap('v', '<', '<gv', default_opts)
vim.api.nvim_set_keymap('v',... |
function download_progress(total, current)
local ratio = current / total;
ratio = math.min(math.max(ratio, 0), 1);
local percent = math.floor(ratio * 100);
print("Download progress (" .. percent .. "%/100%)")
end
function include_doctest()
if not os.isfile("external/include/doctest/doctest.h") th... |
local config = require("lapis.config")
config({"test","development"}, {
secret = "xxx",
hmac_digest = "sha256",
session_name = "test",
})
config("production", {
secret = "yyy",
hmac_digest = "sha256",
session_name = "prod",
})
|
return {
meta = {
_next = "assets/levels/level-4.lua",
pause = false,
info = "LEVEL 3\nTIMING IS CRITICAL."
},
blocks = {
{x = 590, y = 200},
{x = 400, y = 200},
},
broken = {
{x = 300, y = 100},
{x = 920, y = 120}
},
platforms = {
}
}
|
--宇宙獣ガンギル
function c51192573.initial_effect(c)
--summon with 1 tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(51192573,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c51192573.otcon)
e1:S... |
--[[Book Maintenance Plugin
Responsibilities:
-Assign Ids to any books that don't have them
-Update cover label gui (via BookChildren.UpdateGuis)
-Remove unnecessary children (via BookChildren.RemoveFrom)
-Keep author names up-to-date over time
-Automatically transform genres when possible
-Warn if a book's genres are ... |
SetProjectNamePathCommand = Command:extends{}
SetProjectNamePathCommand.className = "SetProjectNamePathCommand"
function SetProjectNamePathCommand:init(name, path)
self.name = name
self.path = path
end
function SetProjectNamePathCommand:execute()
-- Also modify the dependency mutator as necessary
if S... |
return {
link = {},
clone = function(self)
local n = { }
for d,s in pairs(self) do
n[d] = s
end
--clone subobjects too such that their parent reference works again
if n.objects then
local o = n.objects
n.objects = { }
for d,s in pairs(o) do
n.objects[d] = s:clone()
n.objects[d].obj ... |
-- INCLUDE ZONE
-- custom error handler
require("crash")
local json = require("com/json")
local strmethods = require("src/strmethods")
local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Debug = require("src/Kernel/Debug")
local BootScreen = require("src/Kernel/BootSc... |
--! target-ai
--@ commons control firstrun periodic
--@ sixdof ytdefaults target-ai
TargetAI = Periodic.new(UpdateRate, TargetAI_Update)
SelectHeadingImpl(SixDoF)
SelectThrottleImpl(SixDoF)
function Update(I) -- luacheck: ignore 131
C = Commons.new(I)
FirstRun(I)
if not C:IsDocked() then
if ActivateWhe... |
-- See LICENSE for terms
local traits_age = {}
--build age trait list
function OnMsg.ModsReloaded()
table.iclear(traits_age)
local c = 0
local TraitPresets = TraitPresets
for name, trait in pairs(TraitPresets) do
if trait.category == "Age Group" then
c = c + 1
traits_age[c] = name
end
end
end
local f... |
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 21/04/2018
-- Time: 18:03
-- To change this template use File | Settings | File Templates.
--
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 21/04/2018
-- Time: 18:25
-- To change this template use File | Settings | File Templates.
--
local menu = {} ... |
pg = pg or {}
pg.achievement_data_template = {
{
action = 1,
limit = "[]",
award = "[]",
type = 1,
id = 1,
target_num = 30,
condition = "杀怪数量达到30只",
target_id = "0"
},
{
action = 2,
limit = "[]",
award = "[]",
type = 2,
id = 2,
target_num = 10,
condition = "收集10艘不同的驱逐舰",
target_id = "... |
local Class = require "thirdparty.hump.class"
local anim8 = require "thirdparty.anim8"
local csv = require "lib.csv"
local enums = require "lib.tilemap.enums" -- important enums
local g = require "global"
-- This file is kind of a disaster. `enums.lua` is more disastrous, tho, even if it's just enums
local quads = a... |
object_mobile_hologram_sullustan_female = object_mobile_hologram_shared_sullustan_female:new {
}
ObjectTemplates:addTemplate(object_mobile_hologram_sullustan_female, "object/mobile/hologram/sullustan_female.iff")
|
--oolua premake4 file
dofile("helper4.lua")
if _ACTION == "clean" then
os.rmdir("obj")
os.rmdir("bin")
os.rmdir("ipch")
end
solution("oolua")
configurations { "Debug", "Release" }
if os.is64bit() and _ACTION and _ACTION:match("^vs") then
platforms{"x32", "x64"}
else
platforms{"x32"}
end
do... |
digtron = {}
digtron.auto_controller_colorize = "#88000030"
digtron.pusher_controller_colorize = "#00880030"
digtron.soft_digger_colorize = "#88880030"
-- A global dictionary is used here so that other substitutions can be added easily by other mods, if necessary
digtron.builder_read_item_substitutions = {
["default... |
start=7
local techn
for i = start,10 do
techn = util.table.deepcopy(data.raw["technology"]["character-logistic-slots-6"])
techn.name = "character-logistic-slots-"..i
techn.prerequisites = {"character-logistic-slots-"..(i-1)}
techn.unit.count = techn.unit.count + ((i - start + 1) * 500)
data:extend{te... |
local _comments = {}
local function build(internal_id, comment_id, host_id, instance_id)
local now = os.time() - comment_id
local retval = {
element = 2,
category = 1,
_type = 65538,
author = "admin",
comment_type = 1,
data = "Message from admin " .. comment_id .. ":" .. host_id .. ":" .. i... |
local Cuboid = assert(foundation.com.Cuboid)
local ng = Cuboid.new_fast_node_box
minetest.register_node("yatm_mining:quarry_wall", {
description = "Quarry Wall",
groups = {
snappy = 1,
},
tiles = {
"yatm_quarry_wall_top.png",
"yatm_quarry_wall_bottom.png",
"yatm_quarry_wall_side.png",
"ya... |
local function bKGD(file, chunk)
local data = chunk.Data
local bitDepth = file.BitDepth
local colorType = file.ColorType
bitDepth = (2 ^ bitDepth) - 1
if colorType == 3 then
local index = data:ReadByte()
file.BackgroundColor = file.Palette[index]
elseif colorType == 0 or colorType == 4 then
local gray... |
object_ship_lambda = object_ship_shared_lambda:new {
}
ObjectTemplates:addTemplate(object_ship_lambda, "object/ship/lambda.iff")
|
-- This is a general AIN_EF config example that shows the basic process for
-- configuring any AIN_EF feature on a T-Series device, saving them as defaults
-- and then powercycling the device. This example configures AIN0 and AIN2 to
-- enable the Average/Min/Max extended feature.
-- For a list of all AIN_EF options,... |
ENT.Base = "dronesrewrite_base"
ENT.Type = "anim"
ENT.PrintName = "Doll Drone"
ENT.Spawnable = false
ENT.AdminSpawnable = true
ENT.Category = "Drones Rewrite"
ENT.RenderInCam = false
ENT.UNIT = "DOLL"
ENT.HUD_hudName = "No HUD"
ENT.OverlayName = "No Overlay"
ENT.Weight = 30
ENT.Model = "models/props_c17/doll01.mdl"
... |
variable_proto = {
[1] = { data1 = { 10, }, },
[2] = { data1 = { 5, }, data2 = { 5, }, },
[3] = { data1 = { 10, }, },
[4] = { data1 = { 1800, }, data2 = { 3600, }, data3 = { 7200, }, data4 = { 14400, }, data5 = { 28800, }, },
[5] = { data1 = { 2, }, },
[6] = { data1 = { 1, 0, }, data2 = { 1, 50, }, data3 = { 1, 50, }, ... |
Main.players = {}
Main.cached = {}
--[[ Functions: Main ]]--
function Main:Init()
-- Load cache.
local cache = exports.cache:Get("jobs")
if cache then
self.temp = cache
end
-- Create tables.
WaitForTable("characters")
RunQuery("sql/jobs_sessions.sql")
-- Load sessions.
exports.GHMattiMySQL:QueryAsync("UPD... |
return {
type = "TEX";
file = "bricks2.jpg";
}
|
--
-- Abstract: Nakama Library Plugin Test Project
--
-- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
-- Copyright (C) 2015 Corona Labs Inc. All Rights Reserved.
--
------------------------------------------------------------
----------------------------------------------------------... |
return {'pyknisch','pyke','pyknische','pykes'} |
local createStore = require('createStore')
describe("createStore spec", function()
it("should create store success", function()
function reducer(state, action)
return {action = action.type}
end
local store = createStore(reducer)
assert.are.equal(store.getState().action, ... |
---
-- TNS Library supporting a very limited subset of Oracle operations
--
-- Summary
-- -------
-- The library currently provides functionality to connect and authenticate
-- to the Oracle database server. Some preliminary query support has been
-- added, which only works against a few specific versions. The library ... |
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local t_insert = table.insert;
local function select_top_resources(user)
local priority = 0;
local reci... |
#!/usr/bin/env lua
local fl = require( "fltk4lua" )
local window1 = fl.Window{ 220, 220, "Fl_Clock", xclass = "Fl_Clock" }
local c1 = fl.Clock{ 0, 0, 220, 220 }
--window1.resizable = c1 -- looks bad on a tiling window manager
window1:end_group()
local window2 = fl.Window{ 220, 220, "Fl_Round_Clock", xclass = "Fl_Clock... |
--该文件位于所有lua触发器之前,用于重载YDWE的lua插件
local old = import
--local load
local luanames = {}
local luascripts = {}
local logtable = {}
local startclock = os.clock()
table.insert(logtable, ("[%s]开始向地图中保存lua脚本..."):format(os.date("%X")))
import = function(filename)
if string.s... |
local gears = require "gears"
local awful = require "awful"
local Mode = require "utils.Mode"
local ModeCollection = require "utils.ModeCollection"
local setupModes = {}
function setupModes.run()
local normalMode = Mode:new(nil, "Normal", 10, "1")
normalMode:defineTag("Terminal", {
layout = awfu... |
-- lua-piper
-- A Lua pipeline processing library.
-- Enables easy, efficient, modular and reusable processing pipelines to be used.
--
-- Also contains a pipeline builder, which should make map and reduce fans squee.
--
-- Terminology:
-- * Filter:
-- A processing element. Can be a function or table.
-- Func... |
return {
name = "HurricaneElectric",
label = _("Hurricane Electric"),
resolver_url = "https://ordns.he.net/dns-query",
bootstrap_dns = "74.82.42.42,2001:470:20::2",
help_link = "https://forums.he.net/index.php?topic=3996.0",
help_link_text = "he.net"
}
|
local tankEquipment = script:GetCustomProperty("TankEquipment"):WaitForObject()
local tankMovementControllerServer = script:GetCustomProperty("TankMovementControllerServer"):WaitForObject()
local adjustmentPoint = script:GetCustomProperty("AdjustmentPoint"):WaitForObject()
local leftSuspensionSet = script:GetCustomPr... |
local env = require ("internal.env")
local config_holder = require("internal.config_holder")
local Log = require("api.Log")
local SaveFs = require("api.SaveFs")
if env.is_hotloading() then
return "no_hotload"
end
local config_data = {}
local config_store = {}
function config_store.for_mod(mod_id)
if not conf... |
--[[
Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
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
... |
Gamestate = require("lib/gamestate")
assets = require("lib/cargo").init("assets")
screen = require("lib/shack")
gameWidth, gameHeight = 1080, 720 --fixed game resolution
local lume = require("lib/lume")
local inspect = require("lib/inspect")
local timer = require("lib/timer")
local push = require("lib/push")
p = funct... |
return foo, bat
|
--[==[examples
-- Optional argument name=nil
Faker.Internet:email()
Faker.Internet:email('Nancy')
-- Optional argument name=nil
Faker.Internet:free_email()
Faker.Internet:free_email('Nancy')
-- Optional argument name=nil
Faker.Internet:safe_email()
Faker.Internet:safe_email('Nancy')
-- Optional arguments specifier=n... |
Player = game:GetService("Players").LocalPlayer
--FIXED WITH TRIGECTORY's CheatSheet
cheatsheetplr = game.Players.LocalPlayer
i = Instance.new("NumberValue", cheatsheetplr )
i.Name = "FPSCH"
Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
script.Parent = Bin
local cf = CFrame.new
local RbxUtility = LoadLibrary... |
NewShipType = StartShipConfig()
NewShipType.displayedName="$10018"
NewShipType.sobDescription="$10019"
NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 1800)
NewShipType.regentime=0
NewShipType.minRegenTime=0
NewShipType.sideArmourDamage=1.0
NewShipType.rearArmourDamage=1.0
setTacticsMults(NewShipType, "MAXSP... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgscore ... |
local makeEnum = function(name, enumItems)
local enum = {}
for i = 1, #enumItems do
local enumItem = enumItems[i]
enum[enumItem] = enumItem
end
return setmetatable(enum, {
__index = function(_, key)
error(tostring(key) .. " is not a valid member of enum " .. name)
end,
__newindex = function()... |
local h = Instance.new("Message")
h.Parent = game.Workspace
h.Text = ""
wait(3)
game.Workspace.Message:Remove()
belt1 = Instance.new("Part")
belt1.formFactor = 1
belt1.Size = Vector3.new(1, 5, 1)
belt1.BrickColor = BrickColor:Black()
belt1.Reflectance = 0
belt1.Transparency = 0
belt1.TopSurface = 0
belt1.Ca... |
local ctest = require("ctest")
local function ret0() end
local function ret1() return 1 end
local function ret2() return 1,2 end
local function ret3() return 1,2,3 end
local function retva(...) return ... end
local function ret1va(...) return 1,... end
local function pack(...)
return { n = select('#', ...), ... }
e... |
--[[
MIT License
Copyright (c) 2019 nasso <nassomails ~ at ~ gmail {dot} com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... |
--[[
Fetch-luarocks - Download and run the Luarocks installer.
--]]
local lfs = require("lfs")
local outfile = true
local sf = string.format
local cmdhdr = "Executing: "
local debug_flag = false
local shell = {
name = "powershell",
cmds={
webrequest = "Invoke-WebRequest -Uri %s -OutFile %s",
... |
object_tangible_furniture_flooring_tile_frn_flooring_tile_s64 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s64:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s64, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s64.iff")
|
local trackFinder = {}
-- find a track by it's name, show error and return false when not found
function trackFinder.find(trackName)
for trackId = 0, reaper.CountTracks(0) - 1 do
track = reaper.GetTrack(0, trackId)
_, localTrackName = reaper.GetTrackName(track, "")
if localTrackName == trac... |
local a={}local b={["!"]=0,['"']=0,["#"]=0,["$"]=0,["%"]=0,["&"]=0,["'"]=0,["("]=0,[")"]=0,["*"]=0,["+"]=0,[","]=0,["-"]=0,["."]=0,["/"]=0,[":"]=0,[";"]=0,["<"]=0,["="]=0,[">"]=0,["?"]=0,["@"]=0,["["]=0,["]"]=0,["^"]=0,["_"]=0,["`"]=0,["{"]=0,["|"]=0,["}"]=0,["~"]=0,["\\"]=0}local c={["\f"]=0,["\r"]=0,[" "]=0,["\t"]=0,... |
GarbageQueue = class(function(s)
s.chain_garbage = Queue()
s.combo_garbage = {0,0,0,0,0,0} --index here represents width, and value represents how many of that width queued
s.metal = 0
end)
function GarbageQueue:push(garbage)
local width, height, metal, from_chain = unpack(garbage)
if metal then
self.metal = s... |
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local Vengeance = IceCore_CreateClass(IceUnitBar)
local VENGEANCE_SPELL_ID = 93098
Vengeance.prototype.current = nil
Vengeance.prototype.max = nil
-- constructor
function Vengeance.prototype:init()
Vengeance.super.prototype.init(self, "Vengeance", "playe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.