content stringlengths 5 1.05M |
|---|
a = -1;
function onCreate()
makeLuaSprite('Background','Background',0,0)
setScrollFactor('Background',0.75,0.75)
addLuaSprite('Background')
makeLuaSprite('Main Ground','Main Ground',0,0)
addLuaSprite('Main Ground')
makeAnimatedLuaSprite('Portal','Portal',0,0)
addAnimationByPrefix('Portal','P... |
dofile("config.lua")
p = require("populate")
local function read_players()
-- return {{ email = "noreply@mailinator.com", race = "dwarf", lang = "de" }}
local players = {}
local input = io.open("newfactions", "r")
while input do
local str = input:read("*line")
if str==nil then break en... |
require 'paths'
threads = require 'threads'
require 'util'
local image = require 'image'
local mat = require('matio')
threads.Threads.serialization('threads.sharedserialize')
data = {}
data.__index = data
function data.new(opt)
local self = {}
setmetatable(self, data)
self.opt = opt
-- initialize variables
... |
-- Paper Mario - The Thousand-Year Door (JP v1.0)
local core = require("games.core")
local game = {
memorymap = {}
}
core.loadGenericControllerMap(0x803C6818, game)
return game |
#!/usr/local/bin/lua
--数组操作
local fields = {"power","lv","timev","hh"}
function sortByField(v1,v2)
local flag =false
local index = 1
--默认升序排列
if v1[fields[index]] < v2[fields[index]] then
flag = true
else
while v1[fields[index]] == v2[fields[index]] do
index = index + 1
if index > #fields then
br... |
--[[
Presentation: LEARNING TO PROGRAM USING MINECRAFT IN-GAME COMPUTERS AND TURTLES USING THE LUA PROGRAMMING LANGUAGE
Author: Rebecca Von Ruden
Link: https://www.thatconference.com/sessions/session/11175
You will need: Mining Turtle, Lava Bucket, and Oak Wood Planks
Requirements:
1. Complete the the r... |
return {
version = "1.2",
luaversion = "5.1",
tiledversion = "2018.11.14",
orientation = "orthogonal",
renderorder = "right-down",
width = 29,
height = 13,
tilewidth = 64,
tileheight = 64,
nextlayerid = 70,
nextobjectid = 33,
properties = {},
tilesets = {
{
name = "autumn 16x32",
... |
minetest.register_node("ham_radio:beacon", {
description = "Radio Beacon",
tiles = {
"ham_radio_transmitter_top.png",
"ham_radio_transmitter_top.png",
"ham_radio_transmitter_side.png",
"ham_radio_transmitter_side.png",
"ham_radio_transmitter_side.png",
"ham_radio_beacon_front.png"
},
gro... |
local composer = require( "composer" )
local mui = require( "materialui.mui" )
local scene = composer.newScene()
local loadsave = require( "loadsave" )
local json = require( "json" )
-- -----------------------------------------------------------------------------------
-- Code outside of the scene event functions below... |
-- Track accuracy
opt.lastAcc = opt.lastAcc or 0
opt.bestAcc = opt.bestAcc or 0
-- We save snapshots of the best model only when evaluating on the full validation set
trackBest = (opt.validIters * opt.validBatch == ref.valid.nsamples)
-- The dimensions of 'final predictions' are defined by the opt.task file
-- This al... |
-----------------------------------------------------------------------------------------
-- debug.lua
-- (c) 2018, Velocity by Jericho Crosby <jericho.crosby227@gmail.com>
-----------------------------------------------------------------------------------------
local show_fps = false
showFPS = function()
local pre... |
--this = SceneNode()
function destroy()
if form then
form:setVisible(false)
form:destroy()
form = nil
end
end
function create()
local camera = ConvertToCamera( this.getRootNode(this):findNodeByName("MainCamera") )
--This node must have a private work to not create deadlock
--local loca... |
ITEM.name = "Jellyfish"
ITEM.model = "models/nasca/etherealsrp_artifacts/jellyfish.mdl"
ITEM.description = "Cone artifact. Brown in appearance."
ITEM.longdesc = "Draws out radiation through an anomalous field. Side Effect: Causes yellowing of the sclera (Whiter outside of eyes). Prolonged use causes temporary blindness... |
local path = pandoc.path
local List = pandoc.List
local stringify = pandoc.utils.stringify
local scriptdir = path.directory(PANDOC_SCRIPT_FILE)
local normalize_authors = dofile(
path.join{scriptdir, 'normalize', 'authors.lua'}
)
local List = require 'pandoc.List'
local stringify = pandoc.utils.stringify
local def... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
local stringstream = require("string_stream")
local utils = require("utils")
local str_decod... |
-- import
local EntityModule = require 'candy.Entity'
local Entity = EntityModule.Entity
-- module
local GlobalEntityModule = {}
---@class GlobalEntity : Entity
local GlobalEntity = CLASS:GlobalEntity ( Entity )
local _globalInstances = {}
local _globalInstancesTraceback = {}
function GlobalEntity:__init ()
local ... |
if not pocket then
printError("Requires a Pocket Computer")
return
end
local ok, err = pocket.unequipBack()
if not ok then
printError(err)
else
print("Item unequipped")
end
|
-------------------------------------------------------------------------------
-- Spine Runtimes License Agreement
-- Last updated May 1, 2019. Replaces all prior versions.
--
-- Copyright (c) 2013-2019, Esoteric Software LLC
--
-- Integration of the Spine Runtimes into software or otherwise creating
-- derivative wor... |
vim.g.cursorline_timeout = 0
|
function in_table(table, item)
for k,v in pairs(table) do
if v == item or k == item then
return true
end
end
return false
end |
local ds18b20 = require("ds18b20")
local LED_PIN = 4
local DS18B20_PIN = 5
gpio.mode(LED_PIN, gpio.OUTPUT)
gpio.write(LED_PIN, gpio.HIGH)
ds18b20.init(DS18B20_PIN)
local ads_channels = {
vcc = ads1115.SINGLE_1,
ch1 = ads1115.SINGLE_2,
ch2 = ads1115.SINGLE_3,
}
local id, sda, scl = 0, 1, 2
i2c.setup(id, sda, scl, i... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Initialize Moonpie", function()
require "moonpie.test_helpers.mock_love"
local moonpie = require "moonpie"
it("has an components base", function... |
--Start of Global Scope---------------------------------------------------------
print('AppEngine Version: ' .. Engine.getVersion())
local DELAY = 1000 -- ms between visualization steps for demonstration purpose
-- Create a viewer
local viewer = View.create()
--End of Global Scope-----------------------------------... |
local diagnostic_function = function(count, level, diagnostics_dict, context)
local s = ' '
for e, n in pairs(diagnostics_dict) do
local sym = e == 'error' and ' ' or (e == 'warning' and ' ' or '')
s = s .. n .. sym
end
return s
end
require('bufferline').setup {
options = {
... |
--[[
These are all off by default.
Why?
Because no one will join your server if they have to download 2500 files!
It's better that all cars show up as errors and they have to dowload it manually.
You still have the option to tell the client to download everything.
--]]
local DownloadSounds = false --Dowload all soun... |
function split(str, ts)
if ts == nil then return {} end
local t = {} ;
i=1
for s in string.gmatch(str, "([^"..ts.."]+)") do
t[i] = s
i = i + 1
end
return t
end
--
test=true
slack_url = 'https://hooks.slack.com/services/xxxx/yyyy/zzzz'
if test then
print('test mode')
ignore_file = './test/ig... |
--[[------------------------------------------------------------------
Register elements to display
]]--------------------------------------------------------------------
GSRCHUD.element = {} -- namespace
local SHOULDDRAW_HOOK = 'ShouldDraw'
local elements = {} -- registered elements
local hide = {} -- hidden defa... |
--[[
Localization.lua
Translations for Dominos XP
--]]
-- French version (by Kubik) 2008-10-19
-- � = \195\160
-- � = \195\162
-- � = \195\167
-- � = \195\168
-- � = \195\169
-- � = \195\170
-- � = \195\174
-- � = \195\175
-- � = \195\180
-- � = \195\187
local L = LibStub('AceLocale-3.0'):NewLocale('Dominos-Progre... |
---@class CS.FairyGUI.Utils.HtmlInput
---@field public defaultBorderSize number
---@field public defaultBorderColor CS.UnityEngine.Color
---@field public defaultBackgroundColor CS.UnityEngine.Color
---@field public textInput CS.FairyGUI.GTextInput
---@field public displayObject CS.FairyGUI.DisplayObject
---@field publi... |
ENT.Type = "anim"
ENT.PrintName = "Space Suit"
ENT.Author = "The HellBox"
ENT.Spawnable = false
|
modifier_imba_pudge_flesh_heap_handle = modifier_imba_pudge_flesh_heap_handle or class({})
function modifier_imba_pudge_flesh_heap_handle:IsDebuff() return false end
function modifier_imba_pudge_flesh_heap_handle:IsHidden() return true end
function modifier_imba_pudge_flesh_heap_handle:IsPurgable() return false end
fu... |
require(GetScriptDirectory() .. "/logic")
require(GetScriptDirectory() .. "/ability_item_usage_generic")
local debugmode=false
local npcBot = GetBot()
local Talents ={}
local Abilities ={}
local AbilitiesReal ={}
ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents)
local AbilityToLevelUp=
{
Abili... |
-- Auras management
local Grid2 = Grid2
local Grid2Frame = Grid2Frame
local type = type
local next = next
local rawget = rawget
local GetTime = GetTime
local UnitAura = UnitAura
local isClassic = Grid2.isClassic
-- Local variables
local Statuses = {}
local Buffs = {}
local Debuffs = {}
local DebuffTypes = {}
local Deb... |
DEFINE_BASECLASS("player_yawd")
local PLAYER = {}
PLAYER.DisplayName = "Juggernaut"
PLAYER.Model = Model("models/player/combine_soldier.mdl")
PLAYER.Hands = {
model = Model("models/weapons/c_arms_combine.mdl"),
skin = 0,
body = "0000000",
}
PLAYER.WalkSpeed = 230
PLAYER.RunSpeed = 230
PLAYER.JumpPower = 150
PLA... |
local Command = {
--command elements
NONE = { "none" },
--terminate/restart game
RESTART = { "restart", "r" },
QUIT = { "quit", "q" },
--i/o from module files
LOAD = { "load", "l" },
SAVE = { "save", "s" },
INIT = { "init", "i" },
WIPE = { "wipeout" },
--i/o from comm... |
require('packer').use {
'hrsh7th/nvim-compe',
requires = 'norcalli/snippets.nvim',
config = function()
vim.o.completeopt = 'menuone,noselect'
require('compe').setup {
enabled = true,
autocomplete = true,
debug = false,
min_length = 1,
... |
local ammoToGive_Pistol = 36;
local ammoToGive_SMG = 150;
GM.JobPaydayInfo[TEAM_SWAT] = {"as a paycheck for being a member of the SWAT team.", 100};
GM.JobEquips[TEAM_SWAT] = function ( Player )
Player:Give("weapon_perp_copgun_usp");
Player:Give("weapon_perp_copgun_mp5");
Player:Give("weapon_perp_battering_ram_... |
local search = {}
local utils = require('partials/utils')
local is_toggle = false
local mode = 'term'
local last_search = ''
vim.cmd([[augroup init_vim_search]])
vim.cmd([[autocmd!]])
vim.cmd([[autocmd FileType qf nnoremap <silent><buffer><Leader>r :cgetexpr v:lua.kris.search.do_search()<CR>]])
vim.cmd([[autocmd FileT... |
-- NeoVim Settings.
require("settings.defaults")
require("settings.keymapping")
|
include("terms") |
local KUI, E, L, V, P, G = unpack(select(2, ...))
local LSM = LibStub('LibSharedMedia-3.0')
local CreateFrame = CreateFrame
local assert, pairs, print, select = assert, pairs, print, select
local getmetatable = getmetatable
local find, format, match, split = string.find, string.format, string.match, string.split
local... |
local C = ccn2.C
local SpatialContrastNormalization, parent = torch.class('ccn2.SpatialContrastNormalization', 'nn.Module')
function SpatialContrastNormalization:__init(sizeX, scale, pow)
parent.__init(self)
self.sizeX = sizeX;
self.scale = scale;
self.pow = pow;
self.output = torch.Tensor()
self.gradIn... |
StatusManager.name = "StatusManager"
StatusManager.title = "StatusManager"
StatusManager.author = "Algwyn"
StatusManager.version = "0.1.0"
StatusManager.savedVariables = {"StatusManagerVars"}
StatusManager.description = "Easy status control with icon on chat box, slash commands, and automated changes based on your acti... |
-- LISp-Miner Control Language demo script
-- Simple example of manipulation with categories
-- Part of the LISp-Miner system, for details see http://lispminer.vse.cz
-- Import predefined constants
local lm= require( "Exec/Lib/LMGlobal");
local config= require( "Exec/MyDemo/00-Config");
-- Log start
-- lm.log( "LMExe... |
-- Enable sloppy focus, so that focus follows mouse.
local beautiful = require("beautiful")
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", { raise = false })
end)
client.connect_signal("focus", function(c)
c.border_color = beautiful.border_focus
end)
client.co... |
a = {["m"]="mmm", 1111, [2]=2222, [22]=222, 3333}
k = "x"
a[k] = 10
a[20] = "great"
for k, v in pairs(a) do
print(k, v)
end
print("=======================================")
print(a["x"])
k = 20
print(a[k])
a["x"] = a["x"] + 1
print(a["x"])
print(a.x)
print(a["y"])
print("=======================================")
... |
IncludeDirectories = {}
IncludeDirectories["Base"] = "%{wks.location}/Base/src/"
IncludeDirectories["Box2D"] = "%{wks.location}/Base/vendor/Box2D/include"
IncludeDirectories["debugbreak"] = "%{wks.location}/Base/vendor/debugbreak"
IncludeDirectories["entt"] = "%{wks.location}/Base/vendor/entt/single_include"
IncludeDir... |
local function scale_energy(energy, factor)
local value = tonumber(energy:match("[%d\\.]+"))
local suffix = energy:match("[%l%u]+")
if value and type(value) == "number" then
if suffix == "kJ" then
suffix = "J"
factor = factor * 1000
end
if suffix == "kW" then
suffix = "W"
... |
SCRIPT_TITLE = "RV Notes from TextGrid"
function getClientInfo()
return {
name = SV:T(SCRIPT_TITLE),
author = "Hataori@protonmail.com",
category = "Real Voice",
versionNumber = 1,
minEditorVersion = 65537
}
end
local NOTES = {'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'Bb',... |
function Test()
local originalFiles =
{
'app/Jamfile.jam',
'app/main.c',
'Jamfile.jam',
'lib-a/add.c',
'lib-a/add.h',
'lib-a/Jamfile.jam',
'nested-lib-b/Jamfile.jam',
'nested-lib-b/sub.c',
'nested-lib-b/sub.h',
'nested-lib-c/Jamfile.jam',... |
local allowCountdown = false
function onStartCountdown()
if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown
startVideo('second');
allowCountdown = true;
return Function_Stop;
end
return Function_Continue;
end
--healthdrain code
function opponentNoteHit()
... |
-- json = require "dkjson"
gps = require "gps"
deque = require "deque"
deviceId = "123"
resolveUrl = "https://localhost:3000/"
functionQueue = deque.new()
function main()
local host = lookupHost()
-- print(host)
-- print(json.encode({x=5, y="foo"}))
setupI2C(gpsDeviceAddress, 100) -- https://github.com/See... |
local Data = {}
---@generic T : string
---@param values T[]
---@return table<T, T>
function Data.enum(values)
local result = {}
for i = 1, #values do
local v = values[i]
result[v] = v
end
return result
end
---@generic T
---@param list T[]
---@return table<T, boolean>
function Data.set_... |
local fennel = require("fennel")
table.insert(package.loaders or package.searchers, fennel.searcher)
local generate = require("generate")
local view = require("fennelview")
-- Allow deterministic re-runs of generated things.
local seed = os.getenv("SEED") or os.time()
print("SEED=" .. seed)
math.randomseed(seed)
-- t... |
local LibZone = Wheel:Set("LibZone", 3)
if (not LibZone) then
return
end
-- Lua API
local _G = _G
local assert = assert
local date = date
local debugstack = debugstack
local error = error
local pairs = pairs
local select = select
local string_format = string.format
local string_join = string.join
local string_match =... |
--[[
LuCI - Lua Configuration Interface
Copyright 2016 Weijie Gao <hackpascal@gmail.com>
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
$Id$
]]--
loc... |
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
--[[
ARitz Cracker: ??? = 100,000 * bet
ARitz Cracker: 777 = 10,000 * bet
ARitz... |
#!/usr/bin/env lua
describe('fimbul.eh.skill',
function()
local skill = require('fimbul.eh.skill')
local rules = require('fimbul.eh.rules')
describe('constructor',
function()
local s = skill:new()
assert.is_truthy(s)
assert.is_nil(s:name())
-- Check default values for empty skill... |
line = "First second third fourth fifth sixth seventh"
function allwords(line)
pos = 1
local function iter()
word = string.find(line,"%w+",pos)
if word ~= nil then -- if word exists
local b, e = string.find(line,"%w+",pos) -- the begin and the end of the word
pos = e + 1
return string.... |
Ambi.NW = Ambi.NW or {}
local Gen = Ambi.General
function Ambi.NW.Get( eEntity, sStats, sType )
if not IsValid( eEntity ) then Gen.Error( 'NW', 'Cannot use NW.Get on not valid Entity' ) return false end
if not sStats or not isstring( sStats ) then Gen.Error( 'NW', 'Non correct sStats for NW.Get' ) return fals... |
-- -*- mode: lua; coding: utf-8 -*-
function localizedError(message, ...)
-- TODO translate the message
if select('#', ...) > 0 then
message = string.format(message, ...)
end
error(message, 1)
end
|
data:extend{
{
type = "int-setting",
name = "miner-compression-ratio",
setting_type = "startup",
minimum_value = 25,
maximum_value = 250,
default_value = 25,
order = "b",
},
}
|
object_tangible_collection_reward_dwarti_statue_01 = object_tangible_collection_reward_shared_dwarti_statue_01:new {
}
ObjectTemplates:addTemplate(object_tangible_collection_reward_dwarti_statue_01, "object/tangible/collection/reward/dwarti_statue_01.iff")
|
local gooey = require "gooey.gooey"
local M = {}
function M.acquire_input()
gooey.acquire_input()
end
function M.button(node_id, action_id, action, fn)
local button = gooey.button(node_id .. "/bg", action_id, action, fn)
if button.pressed then
gui.play_flipbook(button.node, "button_pressed")
else
gui.play_... |
local L = LibStub("AceLocale-3.0"):NewLocale("Skada", "esES", false)
if not L then return end
L["Absorb"] = "Absorción"
L["Absorb details"] = "Detalles de absorción"
L["Absorbed"] = "Absorbido"
L["Absorbs"] = "Absorciones"
L["Absorbs and healing"] = "Absorciones y sanación"
L["Absorb spells"] = "Absorción de h... |
-- Anglais
M = {}
-----------------------------------------------------------------
M.title = "Some tests !"
--
M.mainMenu = {}
M.mainMenu.title = M.title
M.mainMenu.contGame = "[C]ontinue"
M.mainMenu.newGame = "[N]ew Game"
M.mainMenu.loadGame = "[L]oad Game"
M.mainMenu.options = "[O]ptions"
M.mainMenu.qui... |
local cfg = {}
cfg.inventory_weight_per_strength = 10 -- weight for an user inventory per strength level (no unit, but thinking in "kg" is a good norm)
-- default chest weight for vehicle trunks
cfg.default_vehicle_chest_weight = 120
-- define vehicle chest weight by model in lower case
cfg.vehicle_chest_weights = ... |
return {
name = "Deutsch [Built-in]",
description = "Deutsche Übersetzung.",
api_version = 4,
-- incomplete
--skip = true,
-- please use ISO 639-1 plus country code if required
language_code = "de"
}
|
local M = {}
local mt = { __index = M }
local mAbs = math.abs
local createImage
, moveTo
, updateStack
, isUpdateStackPause
, removeOutborderImage
, createOutborderImage
, updateBeginPoints
, resetVariables
, fitImage
function M.new(options)
local self = {
parent = options.parent,
group = displa... |
local vim = vim
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
_G.enhance_jk_move = function(key)
if packer_plugins['accelerated-jk'] and
not packer_plugins['accelerated-jk'].loaded then
vim.cmd [[packadd accelerated-jk]]
end
local map = key ==... |
----
-- @file PhysicsShapeCylinder
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function PhysicsShapeCylinder:calculateSerializeBufferSize()
end
---- Brief description.
-- <#Description#>
-- @param btSerializer <#btSerializer description#>
-- @return <#return value description#... |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... |
return PlaceObj("ModDef", {
"title", "A Tubular Glass House 2",
"version", 1,
"version_major", 0,
"version_minor", 1,
"image", "Preview.jpg",
"id", "ChoGGi_ATubularGlassHouse",
"author", "Stealth4Health & ChoGGi",
"lua_revision", 1001569,
"steam_id", "1984158799",
"pops_all_uuid", "5b0b29ab-ca72-4d92-aa24-541... |
fx_version 'cerulean'
game 'gta5'
client_scripts {
'@vrp/lib/utils.lua',
'config/config.lua',
"cliente/cliente.lua"
}
server_scripts {
'@vrp/lib/utils.lua',
'config/config.lua',
"servidor.lua",
}
|
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class PlayerSlotState
local PlayerSlotState = {
Empty = 0, --PLAYER_SLOT_STATE_EMPTY
Playing = 1, --PLAYER_SLOT_STATE_PLAYING
Left = 2, --PLAYER_SLOT_STATE_LEFT
}
PlayerSlotState = converter(Native.Conve... |
-- Highly stripped down version of torch-totem for gradient checking
-- and speed testing
require 'nn'
grader = {}
local function computeNumGradParams(str)
print(str)
end
function grader.checkModuleGradInput(mod, input)
mod:zeroGradParameters()
local out = mod:forward(input)
local gradOut = out.new():resi... |
object_tangible_loot_creature_loot_collections_fish_dathomir_burra = object_tangible_loot_creature_loot_collections_shared_fish_dathomir_burra:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fish_dathomir_burra, "object/tangible/loot/creature/loot/collections/fish_dathomir_burra.iff... |
--[[
pb数据的序列化与反序列化
Created by qingfengliu on 2017/11/16.
]]
local utils = require "utils"
local skynet = require "skynet"
local retcode = require "retcode"
local app_id = 2
local game_id = 1
local send_id = 0
local ver_1 = 1
local ver_2 = 0
local ver_3 = 0
local _M = {}
function _M.getSize(buff)
local s... |
local ddlt = require 'ddlt'
local parse = function(file)
local inp = assert(io.open(file, 'rb'))
local source = inp:read('*a')
inp:close()
local lexer = ddlt.newLexer{
source = source,
file = file,
language = 'cpp',
symbols = {},
freeform = {{'[{', '}]'}}
}
... |
require "Cocos2d.lua"
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCDirector will be deprecated,begin
local CCDirectorDeprecated = { }
function CCDirectorDeprecated.sharedDirector()... |
return {
id = 38,
furnitures_1 = {
{
id = 38117,
parent = 0,
y = 18,
dir = 1,
x = 12,
child = {}
},
{
id = 38001,
parent = 0,
y = 0,
dir = 1,
x = 0,
child = {}
},
{
id = 38114,
parent = 0,
y = 16,
dir = 1,
x = 14,
child = {}
},
{
id = 38002,
pa... |
birch.run("rom/programs/clear")
local arg = {...}
--os.loadAPI("system/api/edge")
if birch.release == true then
os.pullEvent = os.pullEventRaw
end
birch.oldUI = false
l = 0
local installupdate = false
local osstate = ""
local edge_boot_dir = "sys16/edge/"
local OS_SYSTEM_VERSION = birch.osversion
local OS_SYSTEM_CREAT... |
return {
include = {
"../luasocket"
}
}
|
workspace "inut"
configurations { "debug", "release" }
if os.host() == "windows" then
defines { "WINDOWS=1", "_CRT_SECURE_NO_WARNINGS", "_CRT_NONSTDC_NO_WARNINGS" }
else
defines { "UNIX=1", "_POSIX_C_SOURCE=200809L" }
end
require "inut.lua"
|
--
-- Created by Tooster on 22.02.2018 01:34
--
function count(tab, x)
cntr = 0
for k,v in pairs(tab) do
if v == x then cntr=cntr+1 end
end
if cntr == 0 then return nil end
return cntr
end |
package.path = package.path .. ";/libs/?.lua"
local FuelDictionary = require "fuel-dictionary"
local Turtle = require "turtle"
local Inventory = {}
function Inventory.size()
return 16
end
function Inventory.availableSize()
local numEmpty = 0
for slot = 1, Inventory.size() do
if T... |
-- File : sd_entries.lua
-- Who : x-Felix-x
-- Based on: https://github.com/jamores/eth-ws-someip/blob/master/sd_entries.lua
-- What : SD subdissector in charge of parsing Entries within at EntriesArray
--
local p_sd_ents = Proto("sd_entries", "sd_entry")
local f_e_type = ProtoField.uint8("sd.e.type", "Type", ba... |
local alchemist = require("Dofus_Bot.Gather.alc");
local farmer = require("Dofus_Bot.Gather.far");
local fisherman = require("Dofus_Bot.Gather.fis");
local lumberjack = require("Dofus_Bot.Gather.lum");
local miner = require("Dofus_Bot.Gather.min");
function move()
return{
}
end
function phenix(... |
local shell = require("shell")
local args = shell.parse(...)
if #args == 0 then
args = {"/lib/core/lua_shell.lua"}
end
local filename = args[1]
local buffer, script, reason
buffer = io.lines(filename, "*a")()
if buffer then
buffer = buffer:gsub("^#![^\n]+", "") -- remove shebang if any
script, reason = load(buf... |
-- Copyright 2011-12 Paul Kulchenko, ZeroBrane LLC
local gslshell
local win = ide.osname == "Windows"
return {
name = "GSL-shell",
description = "GSL-shell interpreter",
api = {"baselib"},
frun = function(self,wfilename,rundebug)
gslshell = gslshell or ide.config.path.gslshell -- check if the path is conf... |
local lp=game.Players.LocalPlayer
local lpc=lp.Character
local shield=Instance.new('Part',lpc)
shield.Size=Vector3.new(50,50,50)
shield.CanCollide=false
shield.Locked=true
shield.Shape='Block'
shield.Name='Fades shield'
shield.BottomSurface='Smooth'
shield.TopSurface='Smooth'
z = Instance.new("SpecialMesh", shield)
z.M... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
---@class ISPacketCounts : ISPanel
ISPacketCounts = ISPanel:derive("ISPacketCounts")
ISPacketCountsList = ISPanel:derive("ISPacketCou... |
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local net = require("luanode.net")
function test()
-- Hopefully nothing is running on common.PORT
local c = net.createConnection(common.PORT)
c:on('connect', function ()
console.error("connected?!");
error("should not have happened")
e... |
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un... |
local Indicator = script.Parent
local App = Indicator.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local t = require(Packages.t)
local Images = require(UIBlox.App.ImageSet.Images)
local EmptyState = require(UIBlox.App.Indicator.EmptyState)
local SecondaryButton... |
-----------------------------------------
-- ID: 4802
-- Scroll of Thundaga
-- Teaches the black magic Thundaga
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(194)
end
function onItemUse(target)
target:addSpell(194)
end
|
local mod = RegisterMod("StageAPI", 1)
--[[ FUNCTIONALITY
Basic Features:
Commands:
cstage or customstage <StageName> -- Warps to new stage.
nstage or nextstage -- Warps to next stage.
extraroom <ExtraRoomName> -- Warps to extra room
extraroomexit -- Cleanly exits extra room to previous room.
creseed -- Akin to rese... |
env = require('test_run')
test_run = env.new()
fiber = require('fiber')
-- Create table with enough tuples to make index build/alter in background.
s = box.schema.space.create('test', {engine = 'memtx'})
i = s:create_index('pk', {type='tree', parts={{1, 'uint'}}})
for i = 1, 6000 do s:replace{i, i, "valid"} end
star... |
--[[
MIT License
Copyright (c) 2020 Droyti
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, distri... |
local path = "hall/userInfo_pin.png"
local userInfo_pin_map = {
["head_bg.png"] = {
file=path,
x=2,y=2,
width=326,height=318,
rotated=false
},
["head_newBg.png"] = {
file=path,
x=330,y=2,
width=308,height=278,
rotated=true
},
["head_mask.png"] = {
file=path,
x=640,y=2,
width=306,height=27... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.