content stringlengths 5 1.05M |
|---|
require "lua/tools"
local filename = tmpdir .. "/test.numa"
header("Numa/Numaa")
local PI = 3.14159265358979323846
local E = 2.7182818284590452354
-- Create a new Numa
local na = Numa()
print(pad("na = Numa()"), na)
-- Add some numbers
na:AddNumber(PI)
na:AddNumber(E)
na:InsertNumber(2, 10.99999)
na:AddNumber(PI*PI... |
local state = {}
function state.enter()
player = {}
player.x = 100
player.y = 100
player.area = 25^2
player.speed = 3
player.score = 0
colours = {
{r = 255, g = 245, b = 157}, -- yellow 200
{r = 255, g = 138, b = 101}, -- deep orange 300
{r = 255, g = 213, b = 79}, ... |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- !pos -183.320 9.999 269.651 231
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/crafting")
local ID = require("scripts/zones/Northern_San... |
local promiseList = {}
local promiseID = 1
function TextInput(description, maxLength)
local currentMax = promiseID
promiseID = promiseID + 1
local id = promiseID
promiseList[id] = {promise:new(), 'Input', description, maxLength, id}
if not promiseList[id -1] then
OpenUI('Input', descriptio... |
-- LOCAL
local main = require(game.Nanoblox)
local module = {}
local Roact = main.modules.Roact
-- Create a function that creates the elements for our UI.
-- Later, we'll use components, which are the best way to organize UI in Roact.
local function clock(currentTime)
return Roact.createElement("ScreenGui", {},... |
require 'mock'
function addObject()
local lib = mock.game:getGlobalObjectLibrary()
local node = lib.root:addObject( 'object', Entity() )
return node
end
function addGroup()
local lib = mock.game:getGlobalObjectLibrary()
local node = lib.root:addGroup( 'group' )
return node
end
function renameObject( node, name... |
-- An activable machine can receive activation/deactivation signals. Example: Valves
local activable = create_interface()
activable.activated = false
function activable:activate()
if not self.activated then
self.activated = true
if self.on_activate then
self:on_activate()
end
end
end
function activable:d... |
--毒蛇の怨念
--
--Script by REIKAI
function c100286008.initial_effect(c)
--activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--cannot attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_AT... |
describe('upstream metrics', function()
describe('report', function()
local upstream_metrics
local test_counter = { inc = function() end }
local test_histogram = { observe = function() end }
before_each(function()
-- Make Prometheus return stubbed counters and histograms
stub(test_counter... |
-- Do not rename or move this file! If you do the main program won't find this file!
Port = 4
Doorname = "Name of the door"
|
project "r8brain"
uuid "BC116B29-9958-4389-B294-7529BB7C7D37"
language "C++"
location ( "../../build/" .. mpt_projectpathname .. "/ext" )
mpt_projectname = "r8brain"
dofile "../../build/premake/premake-defaults-LIB.lua"
dofile "../../build/premake/premake-defaults.lua"
targetname "openmpt-r8brain"
i... |
local class = require 'middleclass'
local base = class('hj212.calc.db')
local DB_VER = 7 --version
function base:initialize()
end
function base:sample_meta()
return {
{ name = 'timestamp', type = 'DOUBLE', not_null = true },
-- Values
{ name = 'value', type = 'DOUBLE', not_null = true },
{ name = 'flag', t... |
--[[
File: Collision.lua
Author: Sam Triest
Handles collisions between asteroids, projectiles and the player.
]]
local red = { 1, 0, 0, 1 }
local green = { 0, 1, 0, 1 }
local orange = { 1, 0.5, 0, 1 }
--[[
Iterates over the current asteroids and projectiles in the game, and checks
whether... |
-- We don't write to our inputs so we also clone a table if it's the only input
local function shallowTableMerge(...)
-- TODO: arg validaton
local args = table.pack(...)
local merged = {}
for _, arg in ipairs(args) do
for k, v in pairs(arg) do
merged[k] = v
end
end
retu... |
function CoreParticleEditorVisualizers:create_billboard()
local visualizer = CoreEffectStackMember:new("billboard", "visualizer", "Billboard")
visualizer:set_description("Visualizes particles using quads with different alignment and blending schemes and a set texture")
local help = "Texture used assigned to the bi... |
minor_sludge_panther = Creature:new {
objectName = "@mob/creature_names:minor_sludge_panther",
socialGroup = "panther",
faction = "",
level = 10,
chanceHit = 0.28,
damageMin = 90,
damageMax = 110,
baseXp = 356,
baseHAM = 810,
baseHAMmax = 990,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_ca... |
--[[
Modify the implementation of the __tostring metamethod so that it shows the full contents of the array in an appropriate way. Use the buffer facility (Section 28.2) to create the resulting string.
]]
array = require 'array'
a = array.new(10)
a:set(1, true)
a:set(5, true)
a:set(8, true)
a:set(10, true)
print(a... |
--[[
------------------------------------
Description: HPC Vehicle Spawn #2, Phasor V2+
Copyright (c) 2016-2018
* Author: Jericho Crosby
* IGN: Chalwk
* Written and Created by Jericho Crosby
-----------------------------------
]]--
function GetRequiredVersion()
return 200
end
function OnScriptLoad(processid, game,... |
pg = pg or {}
pg.furniture_specail_action = {
[60118] = {
id = 60118,
actions = {
{
"sit",
3.33
},
{
"yun",
5.17
}
}
},
[61125] = {
id = 61125,
actions = {
{
"stand2",
4
},
{
"yun",
3
},
{
"motou",
3
}
}
},
[100013] = {
id = 100013... |
local sti = require "lib/sti/sti"
--[[
tiled_map({
map_file = "assets/maps/map.lua",
drawing_layers = {
"background",
"foreground"
},
collision_layer = "collision"
}),
]]--
local function tiled_map(options)
local options = options or {}
local tile_width = options.tile_width or 32
... |
return function() --Create new terminal API
local function getHighestBit( group )
local b = 0
while group > 0 do
group = bit.rshift(group,1)
b = b + 1
end
return b
end
local function parseColor(color)
if type(color) ~= "number" then error("Color must be a number, provided: "..ty... |
require "helper1"
function tochi()
while getPressCount("tochi")%2 == 1 do
if isActiveWin(1) then
--mouseLClick(3,297,417)
mouseLClick(1,342,417)
delay(200)
mouseLClick(1,341,412)
--mouseLClick(3,297,412)
delay(500)
mouseLClick(1,... |
Point = Object:extend()
function Point:new(x, y)
self.x = x or 0
self.y = y and y or self.x
end
function Point:set(x, y)
self.x = x or self.x
self.y = y or self.y
end
function Point:add(p)
self.x = self.x + p.x
self.y = self.y + p.y
end
function Point:rotate(phi)
phi = math.rad(phi)
local c = math.co... |
local moon = require "moon"
local mongo = require "moon.db.mongo"
local bson = require "bson"
local host = "127.0.0.1"
local port = 27017
local db_name = "admin"
local username = "mongodb"
local password = "654123"
if port then
port = math.tointeger(port)
end
-- print(host, port, db_name, username, password)
local ... |
cache = {}
function onResourceStart(res)
if getThisResource() ~= res then return end
local resToStart =
{
onDatabaseStart,
onLoginStart
}
for k,v in ipairs(resToStart) do
if v then
v()
end
end
end
function getPlayerID(player)
return tonumber(getElementData(player,"playerID"))
en... |
-- Function to test: Send
-- Test against: Network card speed.
local luaunit = require "luaunit"
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local timer = require "timer"
local log = require "testlog"
local testlib = require "testlib"
local tconfig = require "tconfig"
... |
local root = script.Parent.Parent.Parent
local t = require(root.lib.t)
local constants = require(root.constants)
local check = t.tuple(t.string, t.string)
local function addToast(id, body)
assert(check(id, body))
return {
type = "ADD_TOAST",
id = id,
body = body,
meta = {
... |
-- ###################################
-- ## ##
-- ## Main Ultimate Mail Mod Menu ##
-- ## ##
-- ###################################
local hideMailFrame = true;
local function SetupTabs(this)
local i, tab, tabBody, title;
for i = 1, 3 do
tab = ... |
local entity = {}
entity["arcana"] = [[Strength]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Getsu-ei]]
entity["spellDeck"][2] = [[Counter]]
entity["spellDeck"][3] = [[Recarm]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[]]
entity["spellDeck"][6] = [[]]
entity["desc"] = [[Sir Percieval proved hims... |
local coroutine = require "coroutine"
local ipOps = require "ipOps"
local nmap = require "nmap"
local packet = require "packet"
local stdnse = require "stdnse"
local string = require "string"
local tab = require "tab"
local table = require "table"
local target = require "target"
description = [[
Sends an ICMPv6 packet... |
-- See LICENSE for terms
-- wtf? fix for this error:
-- Error loading file PackedMods/*****/Code/Script.lua: PackedMods/*****/Code/Script.lua:1: syntax error near '<\1>'
--~ const.DomeCap = max_int
AreDomesCapped = empty_func
|
ESX = nil
--.__ __. ___ __ ___ .______ _______ _______. -
--| \ | | / \ | |/ / | _ \ | ____| / | -
--| \| | / ^ \ | ' / | |_) | | |__ | (----` -
--| . ` | / /_\ \ | < | / | __| \ \ -
--| |\ | / _____ ... |
local M = {}
local bit_bor = bit.bor
local ffi_string = ffi.string
local ffi_cast = ffi.cast
local function vmt_entry(instance, index, type)
return ffi.cast(type, (ffi.cast("void***", instance)[0])[index])
end
function mem.CreateInterface(module_name, interface_name)
return ffi.cast("tCreateInterface", ffi.C.G... |
local update_formspec = function(meta)
meta:set_string("infotext", "Set clouds block")
meta:set_string("formspec", "size[8,6;]" ..
"field[0.2,0.5;8,1;thickness;Thickness;${thickness}]" ..
"field[0.2,1.5;8,1;density;Density;${density}]" ..
"field[0.2,2.5;8,1;height;Height;${height}]" ..
"field[0.2,3.5;2,1;r... |
-- Sets the ped drunk sounds. This only sets the drunk sound to ped/player. To give the Ped a drunk effect with drunk walking animation try using SetPedMovementClipset
-- @module fivem
-- @submodule ped
-- @link https://wiki.fivem.net/wiki/SetPedIsDrunk
-- @param ped Ped
-- @param toggle bool
-- @return void
function S... |
local L = BigWigs:NewBossLocale("The Shattered Halls Trash", "deDE")
if L then
L.legionnaire = "Legionär der Zerschmetterten Hand"
L.brawler = "Raufbold der Zerschmetterten Hand"
L.acolyte = "Akolyth des Schattenmondklans"
L.darkcaster = "Dunkelzauberer des Schattenmondklans"
L.assassin = "Auftragsmörder der Zersc... |
help([==[
Description
===========
Intel Fortran compiler
More information
================
- Homepage: http://software.intel.com/en-us/intel-compilers/
]==])
local root = "/cvmfs/restricted.computecanada.ca/easybuild/software/2017/Core/ifort/2018.3.222"
depends_on("gcccore/.7.3.0")
prepend_path("PATH", pathJoin... |
local Settings = nil
local function initSettings()
-----------------------
-- USER CUSTOM SETTINGS
-----------------------
-- It's possible to have setting defined for every of your bots.
-- Simply replace Default by your bot name.
-- Omitted settings in custom profiles will be replaced by those in Default profile.
... |
require('bufferline').setup {
options = {
numbers =
-- "none",
-- "ordinal",
-- "buffer_id",
-- "both",
-- function({ ordinal, id, lower, raise }): string,
function(opts)
return string.format('%s|%s', opts.id, opts.raise... |
local ffi = require "ffi"
local MemoryStream = require "MemoryStream"
local function CreatePreambleChunk(preamble)
local mstream = MemoryStream();
local success = preamble:WritePreamble(mstream)
len = mstream:GetPosition()
mstream:Seek(0)
local chunk = mstream:readString(len)
return chunk
end
local function W... |
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics,
{virtual_text = false, signs = true, update_in_insert = true})
|
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_magnus_sh... |
local function prepare(options, context) CONTEXT_git_branch(context) end
local function content(options, context)
local branch = context.git_branch
if branch then return options.symbol .. " " .. branch end
return ""
end
local section = {
name = "git-branch",
prepare = prepare,
conte... |
local log = hs.logger.new('wifi.lua', 'debug')
local SSID = "SJ"
local wifi = {}
wifi.connect = function()
log.d('Attempting to connect to ' .. SSID)
local currentNetwork = hs.wifi.currentNetwork()
-- local networkList = hs.wifi.availableNetworks()
-- log.d(hs.inspect(networkList))
if (currentNetwork ~= nil... |
return {'azen','azertyklavier','azerbeidzjaan','azerbeidzjaans','azerbeidzjan','azeri','azende','azerbeidzjaanse','azertyklavieren'} |
local mg = require "moongen"
local stats = require "stats"
local thread = { devices = {} }
function thread.prepare(flows)
for _,flow in ipairs(flows) do
for _,v in ipairs{ "Tx", "Rx" } do
for _,id in ipairs(flow:property(v:lower())) do
table.insert(thread.devices, { v, id, flow })
end
end
end
e... |
local mType = Game.createMonsterType("Guard Captain Quaid")
local monster = {}
monster.description = "a guard captain quaid"
monster.experience = 28000
monster.outfit = {
lookType = 1217,
lookHead = 38,
lookBody = 57,
lookLegs = 21,
lookFeet = 2,
lookAddons = 2,
lookMount = 0
}
monster.health = 55000
monster.m... |
data:extend(
{
{
type = "blueprint",
name = "blueprint",
icon = "__base__/graphics/icons/blueprint.png",
flags = {"goes-to-quickbar"},
subgroup = "logics",
order = "c[automated-construction]-a[blueprint]",
stack_size = 1,
stackable = false,
draw_label_for_cursor_render = true,
it... |
ffi = require "ffi"
require "LDYOM.Scripts.baseNode"
class = require "LDYOM.Scripts.middleclass"
Node = bitser.registerClass(class("NodeDisapperPickup", BaseNode));
Node.static.mission = true;
Node.static.name = imgui.imnodes.getNodeIcon("event")..' '..ldyom.langt("CoreNodeDisapperPickup");
function Node:initialize(... |
print("Hello world, says Lua")
print("success from c++", cppvar)
luavar = cppvar * 3
function myluafunction(times)
return string.rep("(-)", times)
end
function myfunction(arg)
return cppfunction(arg)
end
|
--[[ command aliases ]]
-- shorthand! this is tedious to type and makes things ugly so let's make it shorter.
-- _screen.w, _screen.h, etc.
_screen = {
w = SCREEN_WIDTH,
h = SCREEN_HEIGHT,
cx = SCREEN_CENTER_X,
cy = SCREEN_CENTER_Y
}
-- Title & Action area safe calculation, probably messy.
-- Uses Microsoft's s... |
----
-- Handles dump functionality.
--
-- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk)
--
-- @module SDK.Dump
-- @see SDK
--
-- @author [Depressed DST Modders](https://github.com/dstmodders)
-- @copyright 2020
-- @license MIT
-- @release 0.1
----
local Dump = {... |
local util = require "util"
local traceback = debug.traceback
local M = {}
local logger = log.getLogger("hap.plugins")
---@class PluginConf:table Plugin configuration.
---@class Plugin:table Plugin.
---
---@field init fun(conf: PluginConf) Initialize plugin and generate accessories in initialization.
local priv = ... |
test_run = require('test_run').new()
fiber = require('fiber')
fio = require('fio')
errinj = box.error.injection
-- Temporary space for bumping lsn.
temp = box.schema.space.create('temp')
_ = temp:create_index('pk')
s = box.schema.space.create('test', {engine='vinyl'})
_ = s:create_index('pk', {run_count_per_level=1}... |
-- Dashboard template v.1.6
local timeframes_list = {"m1", "m5", "m15", "m30", "H1", "H2", "H3", "H4", "H6", "H8", "D1", "W1", "M1"};
local timeframes_modes = {"disabled", "disabled", "disabled", "disabled", "display", "disabled", "disabled", "disabled", "disabled", "disabled", "display", "display", "display"};
local ... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require "classic"
---
-- Provides methods to read a file.
--
-- @type File
--
local File = Object:extend()
---
-- The file path of the file
--
-- @tfield string path
--
File.path = nil
---
-- File con... |
dofile("test_setup.lua")
LuaReload.SetHandleGlobalModules(true)
local fileBaseModule = [===[
Module = {}
function Module:CreateModule(modulePath)
local parent = Module
-- split by dot
for module in string.gmatch(modulePath, [=[[^\.]+]=]) do
parent[module] = parent[module] o... |
local utils = require('utils')
require('lspsaga').init_lsp_saga()
utils.nmap('gr', "<cmd>lua require('lspsaga.rename').rename()<CR>")
utils.nmap('gx', "<cmd>lua require('lspsaga.codeaction').code_action()<CR>")
utils.xmap('gx', "<cmd>lua require('lspsaga.codeaction').range_code_action()<CR>")
utils.nmap('K', "<cmd>lu... |
local TOCNAME,GBB=...
GroupBulletinBoard_Addon=GBB
GBB.Version=GetAddOnMetadata(TOCNAME, "Version")
GBB.Title=GetAddOnMetadata(TOCNAME, "Title")
GBB.Icon= "Interface\\Icons\\spell_holy_prayerofshadowprotection"
--"Interface\\FriendsFrame\\Battlenet-Portrait"
GBB.MiniIcon= "Interface\\Icons\\spell_holy_prayerofshado... |
function onCreate()
makeLuaSprite('theSky','sky',-600,-300)
addLuaSprite('theSky',false)
setLuaSpriteScrollFactor('theSky', 0.2, 0.2);
makeLuaSprite('theGround','ground',-370,590)
addLuaSprite('theGround',false)
setLuaSpriteScrollFactor('theGround', 0.8, 0.8);
makeLuaSprite('leArmadillo','... |
-----------------------------------------------------
-- @author Ewout Merckx - <ewoutmerckx.pro@gmail.com>
-----------------------------------------------------
-- global variables
FLOAT_NUMBER = 1234.567
-- initialization
function init()
-- set the speed of the robot to zero
robot.wheels.set_velocity(0,0)
... |
function drawRay(rayX, rayY)
love.graphics.line(player.x * miniMapScale,
player.y * miniMapScale,
rayX * miniMapScale,
rayY * miniMapScale)
end
function castRays()
local vds = viewDist * viewDist
local index =0
local distArray = {}
for i = 0, numRays - 1, 1 do
--un... |
-- Word Buster BadWords file (v1.0)
-- Copyright (c) 2022, Jericho Crosby <jericho.crosby227@gmail.com>
local BadWords = {}
local time = os.clock
local lines = io.lines
function BadWords:Load()
local words = {}
cprint('Loading languages...')
local count, start = 0, time()
local dir = self.settings.... |
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
DisableControlAction(1, 140, true)
if not IsPlayerTargettingAnything(PlayerId()) then
DisableControlAction(1, 141, true)
DisableControlAction(1, 142, true)
end
end
end
|
require("kdb")
local key = kdb.Key("user:/foo/bar",
kdb.KEY_VALUE, "value",
kdb.KEY_META, "by", "manuel",
kdb.KEY_META, "owner", "myowner"
)
local bkey = kdb.Key("system:/bkey",
kdb.KEY_FLAGS, kdb.KEY_BINARY,
kdb.KEY_VALUE, "bvalue\0\0",
kdb.KEY_END,
kdb.KEY_META, "lost", "lost"
)
-- ctor
assert(swig_... |
--[[
Skyway Tram (Cablecar) by GlitchDetector, Nov. 2018
Thanks to:
IllusiveTea for moral support and introduing me to the topic of cable cars
These trams try to sync between players, but is no guaranteed, they only sync whenever the hosts car reaches the bottom
You can enter the cars when they... |
function add (a, b)
return a + b;
end
print(add(1,2)); |
local gs = {}
gs.colors = {
["running"] = GS.clr.green,
["loaded"] = GS.clr.grey,
["failed to load"] = GS.clr.red
}
mResources.gui = {}
function mResources.gui.init()
local group = cGUI.getTabGroup("dev", "Dev")
local tab = guiCreateTab("Resources", group)
mResources.gui.tab = tab
local mainHlo = guiCreateH... |
function onCreate()
--Iterate over all notes
for i = 0, getProperty('unspawnNotes.length')-1 do
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'wellwellwell' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'sNotes');
if getPropertyFromGroup('unspawnNotes', i, 'mustPress') then --Doesn't l... |
local playsession = {
{"tickterd", {971908}},
{"Chesmu", {787776}},
{"pwoland", {9533}},
{"Timfee", {276092}},
{"TheFish", {182903}},
{"AurelienG", {276087}},
{"Arnietom", {379870}},
{"Malorie_sXy", {636374}},
{"yulingqixiao", {19124}},
{"Anzhion", {4519}},
{"Daveyboy80", {518097}},
{"cufek", {239354}},
{"... |
lang =
{
} |
--- upvalues to prevent warnings
local LibStub = LibStub
local UnitHealth, UnitHealthMax = UnitHealth, UnitHealthMax
local UnitExists = UnitExists
-- #region
--- include files
local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon("ZxSimpleUI")
local Locale = LibStub("AceLocale-3.0"):GetLocale(ZxSimpleUI.ADDON_NAME)
loca... |
--[[
Fixer the Demon Mercenary character created by (NAME REDACTED), also known as ArkDeimos.
Scripted by Fenrier.
"You intrigue me, you seek power and strength, the most valuable resource of all... As do I..
heed my indstructions swordsman, and I promise you we will find him again,
and you can repay all debts in blood... |
--[[ Netherstorm -- Wrathbringer Laz-tarash.lua
This script was written and is protected
by the GPL v2. This script was released
by BlackHer0 of the BLUA Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- ... |
---------------------------------------------------------------------------------------------------
-- -= TileLayer =-
---------------------------------------------------------------------------------------------------
-- Setup
TILED_LOADER_PATH = TILED_LOADER_PATH or ({...})[1]:gsub("[%.\\/][Tt]ile[Ll]ayer$", "") .. ... |
#!/usr/bin/env lua
--
-- Prints the home timeline.
--
local cfg = require "_config"()
local twitter = require "luatwit"
local util = require "luatwit.util"
-- initialize the twitter client
local oauth_params = util.load_keys(cfg.app_keys, cfg.user_keys)
local client = twitter.api.new(oauth_params)
-- retrieve the tim... |
local material = require "material"
local indeterminate = false
local inactive = false
local checkbox_status = {
ripple = { radius = 0, dt = 0 },
checked = false,
hover = false,
clicked = false,
focused = false
}
local radio_status = {
ripple = { radius = 0, dt = 0 },
selec... |
--- Used to display notifications on the screen (mid-right).
_G.notification = {}
--- Adds a standard notification to your screen.
--- @param text string @The text to display.
--- @param type number @Determines the notification method (e.g
--- @param length number @The number of seconds to display the notification ... |
local __Scripts = LibStub:GetLibrary("ovale/Scripts")
local OvaleScripts = __Scripts.OvaleScripts
do
local name = "sc_pr_monk_brewmaster"
local desc = "[8.0] Simulationcraft: PR_Monk_Brewmaster"
local code = [[
# Based on SimulationCraft profile "PR_Monk_Brewmaster".
# class=monk
# spec=brewmaster
# talents... |
object_tangible_collection_shock_trooper_boots = object_tangible_collection_shared_shock_trooper_boots:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_shock_trooper_boots, "object/tangible/collection/shock_trooper_boots.iff") |
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
return function(loveframes)
---------- module start ----------
-- collapsiblecategory object
local newobject = loveframes.n... |
ESX = nil
local connectedPlayers = {}
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('OnlineJobs:getConnectedPlayers', function(source, cb)
cb(connectedPlayers)
end)
AddEventHandler('esx:setJob', function(playerId, job, lastJob)
connectedPlayers[playerId].job = job.name... |
display.setStatusBar( display.HiddenStatusBar )
local composer = require( "composer" )
local sfx = require( "scripts.sfx" )
composer.gotoScene( "scripts.menu" ) -- for playing the actual game
-- composer.gotoScene( "scripts.editor" ) -- for creating new levels
|
--[[
获取送礼纪录列表
@param id_pk
@param gift_name
由于送礼纪录需要根据接收人code来分组,然后根据时间来排行,所以需要定制
]]--
local cjson = require "cjson"
local userDb = require "db.base_db"
local reqArgs = require "common.request_args"
local responeData = require "common.api_data_help"
-- 获取参数
local currentRequestArgs = reqArgs.new()
local args = c... |
insulate('Configuration object', function()
insulate('.mock', function()
local configuration = require 'configuration_loader'
local mock_loader = require 'configuration_loader.mock'
it('saves mock configuration', function()
local config = { 'foo' }
configuration.mock(config)
assert.eq... |
local Regex = require "LuaRegexParser"
local c = Regex("(?|a)")
print(c) |
local ffi = require "ffi"
require "resty.openssl.include.ossl_typ"
ffi.cdef [[
typedef struct ossl_provider_st OSSL_PROVIDER;
typedef struct ossl_lib_ctx_st OSSL_LIB_CTX;
typedef struct ossl_param_st {
const char *key; /* the name of the parameter */
unsigned int data_type; /* declare... |
local F, C = unpack(select(2, ...))
local Bar = F:GetModule('Actionbar')
local next, pairs, unpack = next, pairs, unpack
local HasAction, IsUsableAction, IsActionInRange = HasAction, IsUsableAction, IsActionInRange
local UPDATE_DELAY = .2
local buttonColors, buttonsToUpdate = {}, {}
local updater = CreateFrame('Fram... |
local eonz = require 'eonz'
local table = eonz.pf.table
local string = eonz.pf.string
local SyntaxNode = require 'eonz.lexer.syntax_node'
return function(LuaParser, define_rule)
define_rule { name = 'identifier',
function (self, roles)
roles = roles or { "id" }
roles.primary = roles.primary or "id"
... |
return {
id = 289,
name = "Hog Tusk Dagger",
rarity = "Rare",
image = "rbxassetid://4899155150",
description = "Not in a hog's face, but still used for stabbing.",
--> equipment information <--
isEquippable = true;
equipmentSlot = 1;
equipmentType = "dagger";
gripCFrame = CFrame.Angles(math.pi / 2, 0, 0) ... |
entity = {}
-- All entities that currently exist in the map
entities = {}
local spawnMusic = love.audio.newSource("entities/music/knocking.wav")
local globalAgitationTimer = 10
local damageTimer = 0
local moveTimer = 0
local spawn = require("entities/code/tools/spawn")
local movement = require("entities... |
require "lsp.tsserver-ls"
vim.cmd "setl ts=2 sw=2"
|
local capi = { screen = screen,
client = client }
local awful = {
layout = require "awful.layout",
--tag = require "awful.tag"
}
local util = require "awful.util"
local beautiful = require "beautiful"
local client = require "awful.client"
local Rosetree = require "awesome-leaved.rosetree"
local... |
b = BinooAPI
b:SwitchMode("EMPTY")
-- check if this file exists in 'sdcard/binoo/' folder
localFile = "video.mp4"
if b:VideoExistsSDCard(localFile) then
b:PlayLocalVideo2D(localFile)
else -- play youtube if no local video
b:PlayVideoYoutube2D("OsgcuZkCQv0")
end
|
local Grindon = LibStub("AceAddon-3.0"):GetAddon("Grindon")
local Config = Grindon:NewModule("Config", "AceConsole-3.0")
local options = {
type = "group",
args = {},
plugins = {}
}
function Config:OnInitialize()
options.plugins.profiles = {profiles = Grindon:GetOptionsTable()}
options.plugins.prof... |
-- Automatically generated by build.lua, do not edit
return [[
16F58;MIAO VOWEL SIGN ANG;Mc;0;L;;;;;N;;;;;
16F59;MIAO VOWEL SIGN O;Mc;0;L;;;;;N;;;;;
16F5A;MIAO VOWEL SIGN OO;Mc;0;L;;;;;N;;;;;
16F5B;MIAO VOWEL SIGN WO;Mc;0;L;;;;;N;;;;;
16F5C;MIAO VOWEL SIGN W;Mc;0;L;;;;;N;;;;;
16F5D;MIAO VOWEL SIGN E;Mc;0;L;;;;;N;;;;;
1... |
-- $Id: mathenv.lua 3345 2008-12-02 00:03:50Z jk $
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--
-- file: mathenv.lua
-- brief: parses and processes custom lups ef... |
-----------------------------------
-- Area: Southern San d'Oria
-- NPC: Endracion
-- !pos -110 1 -34 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
----------... |
--天翔ける騎士
--
--Script by Trishula9
function c100283001.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,100283001)... |
ITEM.name = "Броня ополченца"
ITEM.desc = "Легкий доспех, сделанный из самых дешевых материалов, дабы продлить жизнь бойца на дополнительные 10 секунд, если не меньше."
ITEM.category = "Armor"
ITEM.model = "models/container7.mdl"
ITEM.width = 2
ITEM.height = 2
ITEM.SetModel = "models/witcher2soldiers/tw2_etterick_regu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.