content stringlengths 5 1.05M |
|---|
#!/bin/env lua
local lt = ('<'):byte()
local gt = ('>'):byte()
local quot = ('"'):byte()
local apos = ("'"):byte()
local slash = ('/'):byte()
local preconverted = {
['template/plugins$'] = ""
.. "local path_to_plugins = GAMESTATE:GetCurrentSong():GetSongDir()..'plugins/'\n"
.. "local af = Def.ActorFrame {}\n"
.... |
return LoadActor( THEME:GetPathB("ScreenWithMenuElements","decorations") ); |
local TrickMyBlink = {}
TrickMyBlink.IsToggled = Menu.AddOption( {"Utility", "TrickMyBlink"}, "Enabled", "")
TrickMyBlink.IsBlinkToCursor = Menu.AddOption( {"Utility", "TrickMyBlink"}, "Blink to Cursor", "")
TrickMyBlink.IsCheckForModifiers = Menu.AddOption( {"Utility", "TrickMyBlink"}, "Check for modifiers", "Abuse b... |
Player = game:GetService("Players").LocalPlayer
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["Right Arm"]
RightLeg = Character["Right Leg"]
... |
local sensor = peripheral.wrap("right")
local range = 2.5
--check if there are any items nearby
local function areNearby()
local items = sensor.getEntityIds("ITEM")
local item_data
for i=1, #items do
item_data = sensor.getEntityData(items[i], "ITEM").all()
if math.abs(item_data.position.x)... |
print('init')
return 3, "50" |
--魂縛門
--Scripted by mallu11
function c100278022.initial_effect(c)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
e0:SetCondition(c100278022.condition)
c:RegisterEffect(e0)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(1002780... |
--
-- _xcode8.lua
-- Define the Apple XCode 8.0 action and support functions.
--
local premake = premake
premake.xcode8 = { }
local xcode = premake.xcode
local xcode8 = premake.xcode8
function xcode8.XCBuildConfiguration_Target(tr, target, cfg)
local cfgname = xcode.getconfigname(cfg)
local installpaths = ... |
-- test spec for `cp.fn.table`
local require = require
local spec = require "cp.spec"
local expect = require "cp.spec.expect"
local describe, context, it = spec.describe, spec.context, spec.it
-- local log = require "hs.logger" .new "table_spec"
local f... |
local g_White = tocolor(255, 255, 255)
local g_Font = "bankgothic"
local g_FontScale = 0.8
local g_FontHeight = dxGetFontHeight(g_FontScale, g_Font)
local g_SpecPrevImg, g_SpecNextImg
local g_SpecPrevActiveImg, g_SpecNextActiveImg
local g_SpecPrevActive, g_SpecNextActive
local g_SpecModeLabel, g_SpecModeTargetLa... |
object_tangible_component_armor_power_bit = object_tangible_component_armor_shared_power_bit:new {
}
ObjectTemplates:addTemplate(object_tangible_component_armor_power_bit, "object/tangible/component/armor/power_bit.iff")
|
--[[
Copyright (C) 2018 HarpyWar (harpywar@gmail.com)
This file is a part of the plugin https://github.com/HarpyWar/ts3plugin_mybadges
]]--
--
-- Callback functions
--
-- Will store factor to add to menuID to calculate the real menuID used in the TeamSpeak client (to support menus from multiple Lua modules)
-- Ad... |
util.AddNetworkString("net_enable_celshading_yourself")
util.AddNetworkString("net_init_player")
net.Receive("net_enable_celshading_yourself", function(_, ply)
RunConsoleCommand("cel_apply_yourself", net.ReadBool())
end)
function CST:InitPlayer(ply)
ply.cel = {}
net.Start("net_init_player")
net.Send(... |
local cmn = require("common")
local fNam = "common-samples/data.txt"
local f = io.open(fNam, "wb")
--[[
* http://www.lua.org/pil/21.1.html
* Here the user can give the function a bunch of read methods
* [*all] > Reads the whole file
* [*line] > Reads the next line (default)
* [*number] > Reads a number... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for MiniMap
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
require "DialogSys"
require "Que... |
local M = {}
function M._find_dir(name, paths)
for _, p in ipairs(paths) do
local path = p:gsub("?", name)
local dir = vim.fn.fnamemodify(path, ":h")
if vim.fn.filereadable(path) ~= 0 or (vim.endswith(dir, name) and vim.fn.isdirectory(dir) ~= 0) then
return dir
end
end
-- HACK
if vim.sta... |
--[[
Fast Hash layer: Trigram word hashing layer to create word embeddings but in sparse representation
to save memory: represent words as indices in the word hashing layer and use a lookup table
plus sum layer
--]]
local FastHashLayer, parent = torch.class('dmn.FastHashLayer', 'dmn.InputLayer')
function Fast... |
local function evaluateNumberSequence(sequence, value)
assert(typeof(sequence) == "NumberSequence", "Must pass a valid NumberSequence.")
assert(typeof(value) == "number", "Must pass a valid number.")
value = math.clamp(value, 0, 1)
if value == 0 then
return sequence.Keypoints[1].Value
end
if value == 1 then
... |
function jsonToValue(str)
JSON = (loadfile "./../lua/rpg/lib/JSON.lua")() -- 相对 go 的目录
return JSON:decode(str)
end
--[[
t = jsonToValue('{"a":123,"b":"C","d":{"a":1,"b":[1,2,3,4,"a","b"]}}')
print (t)
print (t['a'])
for k, v in pairs(t) do
print (k, v)
end
]]
|
return Def.BPMDisplay {
Name="BPMDisplay";
InitCommand=function(self)
self:horizalign(left):zoom(0.50)
end;
SetCommand=function(self)
self:SetFromGameState()
if getTabIndex() == 0 then
self:diffusealpha(1);
else
self:diffusealpha(0);
end;
end;
CurrentSongChangedMessageCommand=fu... |
class 'mvcp'
-- analyzes destination path to decide if needed to go
-- one level up on fs structure
function mvcp:get_destination_platform()
local player_graph = graphs:get_player_graph(self.player_name)
-- check if source only one
local source_entry
if #self.sources == 1 and not self.globbed and not s... |
local translate = require("scripts/translation")
local script_data = {
has_checked = false,
networks = {},
switches = {}
}
local map = {}
local function new_entity_entry(entity)
local base = {
entity_number = entity.unit_number
}
script_data.networks[entity.electric_network_id] = base
map[entity.un... |
--- @type StdUi
local StdUi = LibStub and LibStub('StdUi', true);
if not StdUi then
return
end
local module, version = 'EditBox', 7;
if not StdUi:UpgradeNeeded(module, version) then return end;
local pairs = pairs;
local strlen = strlen;
----------------------------------------------------
--- SimpleEditBox
-------... |
local Projectile = Class("Projectile")
local common = require("Common.Common")
function Projectile:initialize(isenemy, baseid, ownerID)
-- 根据baseid得到基础的数据
self.baseid = baseid
-- 根据id可以得到各种数据
self.id = common.GenerateID()
self.isEnemy = isenemy
self.ownerID = ownerID
if isenemy then
self... |
-- Game state system
-- Part of Live Simulator: 2
-- See copyright notice in main.lua
local love = require("love")
local Luaoop = require("libs.Luaoop")
local lily = require("lily")
local Async = require("async")
local Cache = require("cache")
local log = require("logging")
local Setting = require("setting")... |
function EGUSM.StateMachine:__init(stateName) ; EGUSM.SubscribeUtility.__init(self)
-- Expose functions.
self.SetState = EGUSM.StateMachine.SetState
self.Destroy = EGUSM.StateMachine.Destroy
self.stateName = ""
self.state = nil
if stateName then
self:SetState(stateName)
end
end
function EGU... |
do
--[[
UTILITIES
]]
local concat = table.concat
local typeof = type
local function map(tbl, fn)
local t = {}
for k,v in pairs(tbl) do
k,v = fn(k,v)
if v then
t[k] = v
else
table.insert(t, k)
e... |
local HSVShader = love.graphics.newShader[[
extern float red;
extern float green;
extern float blue;
extern float alpha;
#ifdef PIXEL
vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords )
{
vec4 c = Texel(texture, texture_coords);
float total = red + green + blue;
float rweight = red/to... |
-- Scripts de seconde chance pour réparer une boucle dans le restart
print("\n repair.lua zf181120.1012 \n")
--if file.exists("wifi_ap_start.lua") then dofile("wifi_ap_start.lua") end
if file.exists("wifi_ap_stop.lua") then dofile("wifi_ap_stop.lua") end
if file.exists("wifi_cli_conf.lua") then dofile("wifi_cli_conf.... |
print("This is the 'UI - Religion Spread' replacment for religionOverview.lua")
local isUsingFlagsPlus = false
local FlagsPlusModId = "e1ccf71a-f248-498c-8f30-5ca6d851079d"
for _, mod in pairs(Modding.GetActivatedMods()) do
if (mod.ID == FlagsPlusModId) then
isUsingFlagsPlus = true
break
end
end
-----------... |
local EventSystem = require "Common.EventSystem"
GlobalEventSystem = EventSystem.New()
|
--[[
*******************************************************
* LASP - LUA AREA SCRIPTING PROJECT *
* License *
*******************************************************
This software is provided as free and open source by the
staff of The Lua Area Scripting Pr... |
fx_version 'adamant'
game 'gta5'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
loadscreen "index.html"
files {
'index.html',
'assets/css/*',
'assets/js/*',
'assets/img/*',
'assets/fonts/*',
'assets/... |
Sonus.Soundcloud = {}
local function encode(str)
str = string.gsub(str,"([^%w %-%_%.%~])",function(c)
return string.format ("%%%02X", string.byte(c))
end)
str = string.gsub (str," ","+")
return str
end
local function request(url,params,callback)
if url:sub(-1,-1) ~= "?" then url = url.."?... |
local kcp = require("moon.kcp")
local moon = require("moon")
local params = ...
if params and params.client then
for i=1,1000 do
moon.async(function ()
moon.sleep(i*10)
local fd, err = kcp.connect("127.0.0.1", 12347, 1000)
if fd then
-- kcp.send(fd, "hell... |
/*
##########################################################################
# NGINX Cookbook #
# -------------------------------------------------------------------- #
# Author: Tim Butler #
# Publisher: Pac... |
--[[
Copyright (c) 2011-2014 chukong-inc.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, copy, modify, merge, publish, di... |
local t_concat = table.concat;
local path_sep = package.config:sub(1,1);
local path_util = {}
-- Helper function to resolve relative paths (needed by config)
function path_util.resolve_relative_path(parent_path, path)
if path then
-- Some normalization
parent_path = parent_path:gsub("%"..path_sep.."+$", "");
... |
local dependencies = require("PremakeDependancyGenerator")
local exeliusDefaultSettings = require("PremakeSettings")
local spdlog = {}
function spdlog.GenerateDependencyProject(dependencyRootFolder)
project("spdlog")
kind("StaticLib")
exeliusDefaultSettings.SetGlobalProjectDefaultSettings()
... |
/*---------------------------------------------------------
Talking
---------------------------------------------------------*/
local function PM(ply, args)
local namepos = string.find(args, " ")
if not namepos then
FrenchRP.notify(ply, 1, 4, FrenchRP.getPhrase("invalid_x", "argument", ""))
ret... |
require("reactivity/src")
require("@vue/shared")
describe('reactivity/readonly', function()
mockWarn()
describe('Object', function()
it('should make nested values readonly', function()
local original = {foo=1, bar={baz=2}}
local wrapped = readonly(original)
expect(wrapped).tsvar_not:toBe(orig... |
vim.cmd[[" dein.vim
" Repo: https://github.com/Shougo/dein.vim
let s:dein_data_dir = g:xdg_data_home . '/nvim/plugin/dein'
let s:dein_repo_dir = s:dein_data_dir . '/repos/github.com/Shougo/dein.vim'
let s:dein_config_dir = g:xdg_config_home . '/nvim/plugin/dein'
let g:dein#cache_directory = g:xdg... |
env = require('test_run')
test_run = env.new()
engine = test_run:get_cfg('engine')
test_run:cmd("push filter '"..engine.."' to 'engine'")
space = box.schema.space.create('tweedledum', { id = 0, engine = engine })
index = space:create_index('primary')
t = {} for k,v in pairs(box.space.tweedledum) do if type(v) ~= 'tab... |
merchant_hunt = {
requirements = function(player)
local level = 99
local items = {"blood", "scribes_book", "merchant_token", 0}
local itemAmounts = {1, 1, 1, 100000}
local description = "Sets people to find the treasure."
return level, items, itemAmounts, description
end
}
|
function findValue(name,dir)
local cmdline = string.format('findstr "\\<%s\\>" %s\\*.h',name,dir)
local fd = io.popen(cmdline,"r")
local value=nil
for line in fd:lines() do
for token in string.gmatch(line,"%S+") do
value=token
end
if value then
re... |
--
-- Autogenerated by Thrift
--
-- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-- @generated
--
local Thrift = require 'Thrift'
local TType = Thrift.TType
local TMessageType = Thrift.TMessageType
local __TObject = Thrift.__TObject
local TApplicationException = Thrift.TApplicationException
local ... |
local lsp_installer = require("nvim-lsp-installer")
lsp_installer.on_server_ready(function(server)
local opts = {
-- Подхватим Neovim-cmp
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
--[[ on_attach = function(client, bufnr)
-- Отключим форматирован... |
--- new_magic.lua ---
-- This is an example how to modify the spell table in order to
-- create new spells and modify existing ones. Though this file
-- contains a few well-documented simple examples, the best way
-- to figure out how everything really works is to look around
-- inside DSB's spell system directly.... |
local meta = FindMetaTable("Player")
if not meta then return end
local TEAM_RUNNER = TEAM_RUNNER
function meta:IsActive()
return self:Team() == TEAM_RUNNER and self:Alive()
end
function meta:IsIdle()
return self:CallStateFunction("IsIdle")
end
function meta:SetState(state, duration, ent, nocallended, force)
local... |
-------------------------------------------------------------------------------------------
--
-- raylib [core] example - Windows drop files
--
-- This example only works on platforms that support drag & drop (Windows, Linux, OSX)
--
-- This example has been created using raylib 1.6 (www.raylib.com)
-- raylib is li... |
AddCSLuaFile()
local ttt = engine.ActiveGamemode() == "terrortown"
if ttt then
if SERVER then
resource.AddFile("materials/vgui/ttt/icon_csniper.vmt")
end
SWEP.Base = "weapon_tttbase"
end
SWEP.PrintName = "Combine Sniper"
SWEP.Author = "TankNut"
SWEP.RenderGroup = RENDERGROUP_BOTH
SWEP.Spawnable ... |
local new = require "LuaObservable.src.new"
local isObservable = require "LuaObservable.src.is"
local subscribe = require "LuaObservable.src.subscribe"
return function (observable, amount)
assert(type(amount) == "number", "TypeError: amount is not a number. (amount: "..type(amount)..")")
assert(amount > 0, "Ty... |
local function set_opts()
local local_opts = {
number = true, -- Show line number
linebreak = true, -- Avoid breaking a word apart during wrap
wrap = true, -- Wrap if too long text
cursorline = true, -- Highlight current line
errorbells = false, -- Disable bells and whistles on error
wildmenu = true, -- Di... |
--!
--! \addtogroup button button widget
--! \brief button widget界面组件,实现按钮控件。
--! @{
--!
local vg = require "vg"
local ui = require "ui"
return {
onInit=function(self,themes)
self._color = vg.rgba(255,0,0,0)
self._onDraw = themes.skin.button
self:enableEvent(ui.EVENT_TOUCHDOWN+ui.EVENT_TOUCHUP+ui.EVENT_TO... |
local AccountCreationScreen;
function ShowRegisterForm ( )
local W, H = 250, 185;
AccountCreationScreen = vgui.Create("DFrame")
AccountCreationScreen:SetPos(ScrW() * .5 - W * .5, ScrH() * .5 - H * .5)
AccountCreationScreen:SetSize(W, H)
AccountCreationScreen:SetTitle("User Rename")
AccountCreationScreen:SetV... |
local JWT = require 'resty.jwt'
local jwt_validators = require 'resty.jwt-validators'
local lrucache = require 'resty.lrucache'
local util = require 'apicast.util'
local TemplateString = require 'apicast.template_string'
local setmetatable = setmetatable
local ngx_now = ngx.now
local format = string.format
local type... |
gba = {
game_code = (function()
local result = ""
for i = 0, 3 do
result = result .. string.char(memory.readbyte(0x080000AC + i))
end
return result
end)(),
read_cstring = function(pointer)
local result = ""
if pointer == 0 then
return result
end
while true do
local chr = memor... |
--------------------------------------------------------------------------------
-- Pneumatic rheostat controller (PKG-758B) for 81-702,
-- used on underground subway lines
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.... |
--------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_core/issues/1031
-- Pre-conditions:
-- 1. Core, HMI started.
-- 2. App is registered and deactivated on HMI (has LIMITED level)
-- 3. OnKeyboardInput notification is allowed to the App... |
local function close_redis(red)
if not red then
return
end
local ok,err = red:close()
if not ok then
ngx.say("close redis error:",err)
end
end
local redis = require("resty.redis")
local red = redis:new()
red:set_timeout(1000)
local ip = "127.0.0.1"
local port = 6660
local ok,err = red:connect(ip,port)
if ... |
local misc = require 'forth.extra.misc'
local reason = require 'forth.extra.reason'
local prompt = require 'forth.extra.prompt'
local whitelist = require 'forth.extra.whitelist'
local function functor (interpreter)
local export = { }
local self = { }
local forth = { }
local isolated = ... |
hidden_dagger_common = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "spinner_blade", weight = 3500000},
{itemTemplate = "skill_buff_carbine_accuracy", weight = 1500000},
{itemTemplate = "skill_buff_carbine_speed", weight = 1500000},
{groupTemplate = "wearables_common... |
local List = script.Parent
local copy = require(List.copy)
local Llama = List.Parent
local t = require(Llama.t)
local validate = t.tuple(t.table, t.optional(t.callback))
local function sort(list, comparator)
assert(validate(list, comparator))
local new = copy(list)
table.sort(new, comparator)
... |
--
-- todo list
-- ===
-- * only load files that have been modified since the last time we loaded them (we may need to store config stuff
-- differently with meta stuff then we don't have to patch)
--
config = {}
--
-- base determines all config vars and their default values, to produce the actual config
-- we pat... |
function table.print(tbl, prefix)
if prefix == nil then
prefix = ""
end
for idx, val in ipairs(tbl) do
if type(val) == "table" then
print(prefix..idx..": >>")
table.print(val, prefix.." >>")
elseif type(val) == "boolean" then
if val then
print(prefix..idx.." : true")
else
print(prefix..id... |
AddCSLuaFile()
local VehicleName = "SLCS Jeep Wrangler"
local EMV = {}
EMV.Siren = "STLAWRENCE"
EMV.Skin = "skins/pringle/slcs_sheriff_wrangler"
EMV.Color = Color(255,255,255)
---CUSTOM COLORS---
local B = "BLUE"
local R = "RED"
local A = "AMBER"
local W = "WHITE"
local G = "GREEN"
local DR = "D_RED"
local CW = ... |
--
-- Set verbose to 0 for quiet output (either the first assertion failure or
-- "All tests OK"), to 1 to see the events ("SEND", "SENT", "CHECK") without
-- the actual bytes, or to 2 to see the events with the bytes.
--
local verbose = 0
local vprint = (verbose > 0) and print or function() end
--
-- Mock up enough ... |
local InfiniteScroller = script:FindFirstAncestor("infinite-scroller")
local Root = InfiniteScroller.Parent
local Roact = require(Root.Roact)
local Cryo = require(Root.Cryo)
local Scroller = require(InfiniteScroller).Scroller
local Bar = Roact.PureComponent:extend("Bar")
function Bar:init()
self.state = {
clicked ... |
--[[
#part of the 3DreamEngine by Luke100000
shader.lua - loads the shaders
--]]
local lib = _3DreamEngine
local testForOpenES = true
--enables auto shader validator
if _DEBUGMODE then
love.graphics.newShader_old = love.graphics.newShader
function love.graphics.newShader(pixel, vertex)
local status, err = love.g... |
--
-- (C) 2016 Kriss@XIXs.com
--
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,unpack,_VERSION,xpcall,module,require=coroutine,package,str... |
--------------------------------------------------------------------------------
-- A library for the manipulation of dates and periods according to the
-- Gregorian calendar.
--
-- Credit: the Gregorian calendar routines contained in this library are
-- ported from Claus Tøndering calendar algorithms:
-- http:... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
function factorial(n)
if n == 1 then
return 1
else
return n * factorial(n-1)
end
end
print(factorial(5))
factorial1 = factorial
print(factorial1(5))
function testFun(tab, func)
for k, v in pairs(tab) do
print(func(k, v))
end
end
tab = {key1 = "val1", key2 = "val2"}
testFun... |
FACTION.name = "Civil Administration Board"
FACTION.description = "A human Administrator advised by the Universal Union."
FACTION.color = Color(255, 200, 100, 255)
FACTION.pay = 75
FACTION.models = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetwor... |
return {'prinsjesdag','priapisme','prieel','priegelen','priegelig','priegelschrift','priegelwerk','priel','priem','priemen','priemgetal','priempje','priester','priesterambt','priesterdom','priesteres','priesterfeest','priestergewaad','priesterheerschappij','priesterjubileum','priesterkaste','priesterkoor','priesterlijk... |
--[[
FILE THEME SONG:
https://www.youtube.com/watch?v=jNtwb4sP0IA
STICK STICK STICK STICK
--I was thinking maybe use driftwood for the stick, OR a pallet gib :^)
or models/props_canal/mattpipe.mdl
Todo:
stick1 becomes stick2...
add view/world model for magic item.
money wizard, height wizard, ba... |
-- foo, high contrast awesome3 theme, by rob
--{{{ Main
require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
shared = "/usr/share/local/awesome"... |
object_tangible_component_armor_armor_core_base = object_tangible_component_armor_shared_armor_core_base:new {
}
ObjectTemplates:addTemplate(object_tangible_component_armor_armor_core_base, "object/tangible/component/armor/armor_core_base.iff")
|
local PrefabPool = {}
function PrefabPool:Init( hide_container )
self.pools = {}
self.prefab_map = {}
self.hide_container = GameObject.Find(hide_container)
assert(self.hide_container, "PrefabPool:Init failed, cannot find hide container name :".. hide_container)
self.hide_container = self.hide_container.tra... |
--- Converts phone call audio into web page data.
--
-- Records a sound file, converts the speech to text, and stores it on a
-- public web server.
--
-- The @{speech_to_text} module must be properly configured, and the default
-- FreeSWITCH voicemail phrase macros must be available for this to work.
--
-- The recordin... |
--[=[
@About: A public class will be a table/proxy that is added to the Infinity Module, so any script can access the class and call methods and so on
@About: This class will recieve all Infinity Events. This isn't a good class for Components.
]=]--
-- // Variables
local PublicClass = { Name = "PublicClass", T... |
local state = {}
state.view = 0 --当前view
state.target = 0 --当前target
return state |
object_tangible_item_entertainer_console_stage_generated_backdrop_wide_10 = object_tangible_item_entertainer_console_shared_stage_generated_backdrop_wide_10:new {
}
ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_generated_backdrop_wide_10, "object/tangible/item/entertainer_console/stage_ge... |
os.loadAPI("gorton/procedure.lua")
procedure = _G["gorton/procedure.lua"]
_G["gorton/procedure.lua"] = nil
EXAMPLE_MAIN_PORT = 5
mainUpdates = 0
mainProc = procedure.new(EXAMPLE_MAIN_PORT)
mainProc:registerCallback("main_update", function()
print("main_update")
mainUpdates = mainUpdates + 1
if mainUp... |
return function(w,h,bpp)
local hw,hh = w/2,h/2
local minhd = math.min(hw,hh)
local _sin,_cos,_min,_max,_floor,_pi = math.sin,math.cos,math.min,math.max,math.floor,math.pi
local function map(d)
local v = d/100
if d==100 then
return 255,255,255
end
local r = _sin(v*2*_pi)*0.5+0.5
local g = _sin(v*3*_pi... |
pcall(require, "luacov")
local Input = require("nui.input")
local Text = require("nui.text")
local helper = require("tests.nui")
local eq, tbl_pick = helper.eq, helper.tbl_pick
-- Input's functionalities are not testable using headless nvim.
-- Not sure what to do about it.
pending("nui.input", function()
local p... |
if zen.settings.recolor_ore then
for i, particle in ipairs(data.raw.particle["copper-ore-particle"].pictures) do
particle.filename = "__zenith-world__/graphics/entity/cupric-ore-particle/cupric-ore-particle-" .. i .. ".png"
particle.hr_version.filename = "__zenith-world__/graphics/entity/cupric-ore-particle/h... |
-- For documentation of Lua tag transformations, see:
-- https://github.com/openstreetmap/osm2pgsql/blob/master/docs/lua.md
-- Objects with any of the following keys will be treated as polygon
local polygon_keys = {
'abandoned:aeroway',
'abandoned:amenity',
'abandoned:building',
'abandoned:landuse',
... |
class "job.qm" ("job")
local qm = job.qm
qm.title = "Quartermaster"
qm.access = {
"maint_tunnels", "mailsorting", "cargo", "cargo_bot", "qm", "mining", "mining_station", "mineral_storeroom", "vault"
}
qm.total_positions = 1
qm.spawn_positions = 1 -- how many players can spawn in as this ... |
object_building_kashyyyk_thm_all_humanoid_bone_calf = object_building_kashyyyk_shared_thm_all_humanoid_bone_calf:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_thm_all_humanoid_bone_calf, "object/building/kashyyyk/thm_all_humanoid_bone_calf.iff")
|
-- Boilerplate to support localized strings if intllib mod is installed.
local S;
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua");
S = intllib.Getter(minetest.get_current_modname());
else
S = function ( s ) return s; end
end
minetest.register_node("surviva... |
function onCreate()
if not lowQuality then
makeLuaSprite('suicide-bg', 'suicide-bg', -600, -400);
setLuaSpriteScrollFactor('suicide-bg', 0.9, 0.9);
scaleObject('suicide-bg', 1, 1);
end
addLuaSprite('suicide-bg', false);
close(true);
end |
-- This file is generated by proto-gen-lua. DO NOT EDIT.
-- The protoc version is 'v3.19.2'
-- The proto-gen-lua version is 'Develop'
local protobuf = require "protobuf.protobuf"
local registry = require "protobuf.registry"
local google_protobuf_source_context_pb_desc = require "google.protobuf.source_context_pb_des... |
solution "caps"
configurations {"Debug", "Release"}
defines {"_CRT_SECURE_NO_WARNINGS"}
defines {"_SCL_SECURE_NO_WARNINGS"}
project "caps"
kind "ConsoleApp"
language "c++"
defines {"WIN32"}
links {"opengl32"}
includedirs {"../glload/include"}
libdirs {"../glload/lib"}
files "plat_windows.cpp... |
object_ship_tieinterceptor_tier6 = object_ship_shared_tieinterceptor_tier6:new {
}
ObjectTemplates:addTemplate(object_ship_tieinterceptor_tier6, "object/ship/tieinterceptor_tier6.iff")
|
function changeScreen(screen)
local topScreen = SCREENMAN:GetTopScreen()
if topScreen then
topScreen:SetNextScreenName(screen):StartTransitioningScreen("SM_GoToNextScreen")
end
end
function resetCurrentScreen()
if SCREENMAN then
local topScreen = SCREENMAN:GetTopScreen()
if topScreen then
topScreen:SetNex... |
local Builder = Class(function(self, inst)
self.inst = inst
self.recipes = {}
self.recipe_count = 0
self.accessible_tech_trees = TECH.NONE
self.inst:StartUpdatingComponent(self)
self.current_prototyper = nil
self.buffered_builds = {}
self.bonus_tech_level = 0
self.science_bonus = 0
... |
includeFile("custom_content/draft_schematic/structure/component/structure_heavy_harvesting_mechanism_advanced.lua")
includeFile("custom_content/draft_schematic/structure/component/structure_ore_mining_unit_advanced.lua")
includeFile("custom_content/draft_schematic/structure/component/structure_turbo_fluidic_drilling_pu... |
ys = ys or {}
ys.Event = class("Event")
ys.Event.__name = "Event"
ys.Event.Ctor = function (slot0, slot1, slot2, slot3)
slot0.ID = slot1
slot0.Data = slot2
slot0.Dispatcher = slot3
end
return ys.Event
|
local K = unpack(select(2,...))
local _G = _G
local string_gmatch = _G.string.gmatch
local CreateFrame = _G.CreateFrame
local UI_QUESTIONS = {
"• Q' How do I use Raid as Party?",
"• A' Disable the Party frames in config.",
" ",
"• Q' How do I add/remove Actionbars?",
"• A' ESC > Interface > Actio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.