content stringlengths 5 1.05M |
|---|
function onEvent(n,v1,v2) --
if n == "TweenSpin" then
runTimer('tweenstop',0.35);
-- bf notespin
noteTweenAngle('A',4 , -360 , 0.2, quintOut)
noteTweenAngle('B',5 , -360 , 0.2, quintOut)
noteTweenAngle('C',6 , -360 , 0.2, quintOut)
noteTweenAngle('D',7 , -360 , 0.2, quintOut)
-- oppt notespin
noteTwee... |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
theme_park_reward_imperial_vader = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "enhanced_carbine_schematic", weight = 10000000}
},
craftingValues = {
},
customizationStringNames = {},
customizationVal... |
-- EVENTS: COMBAT_LOG_EVENT_UNFILTERED, PLAYER_TOTEM_UPDATE, WA_TW_EVENT
function(event, ...)
local VERSION = "0.3.5" -- increment this everytime you add some changes
if aura_env.tw == nil or aura_env.tw.version ~= VERSION then
local SCHOOL = 1 -- set this to appropriate school for your totems.
... |
#!/usr/local/bin/lua
require("tsvloader")
local tsv = tsvloader.load_from_file("tests.tsv")
local tsv2 = tsvloader.load_from_file("tests2.tsv")
--[[
print(tsv:index(1).name)
print(tsv:index(2).name)
print(tsv2:first().name)
print(tsv2:last().name)
]]--
while tsv2:has_next() do
print("name: "..tsv2:value().name)
... |
Branch.PlayerOptions= function()
if SCREENMAN:GetTopScreen():GetGoToOptions() then
return "ScreenNestyPlayerOptions"
else
return "ScreenStageInformation"
end
end
|
local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
describe("Admin API endpoints added via plugins #" .. strategy, function()
local client
setup(function()
local bp = helpers.get_db_utils(strategy, {
"plugins",
}, {
"admin-api-method"
})
bp.plugins:... |
s = "Opera: "
for k, v in pairs(Opera) do
s = s..k.." "
end
print(s)
--print(package.path)
require "1"
require "2"
require "3"
|
-- osu! folder beatmap loader
-- Part of Live Simulator: 2
-- See copyright notice in main.lua
local log = require("logging")
local Util = require("util")
local osuLoader = require("game.beatmap.loader.osu")
return function(path)
-- List all files containing *.osu extension
local files = {}
for _, file ... |
-- Just holder for arena virtual world ID
ClaimedVirtualWorld = {}
-- Will return + create Arena lobby
--- @param identifier string
function CreateArena(identifier)
ArenaCreatorHelper(identifier)
local arena = ArenaList[identifier]
--------------------------------------------
local self = {}
------... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
assign_hero_to_quest = require "game.rules.assign_hero_to_quest",
end_turn = require "game.rules.end_turn",
start_turn = require "game.rules.start_turn",
} |
class = require 'lib/30logclean'
require 'lib/postshader'
require 'lib/light'
require 'lib/misc'
require 'model/layer'
require 'model/structure'
require 'model/ressource' -- to be loaded after structure
require 'model/tile'
require 'model/task'
require 'model/world'
require 'model/villager'
require 'handler/audioHan... |
local Standard = require 'tetris.rulesets.standard'
local SRS = Standard:extend()
SRS.name = "Ti-SRS"
SRS.hash = "StandardTI"
function SRS:onPieceMove(piece, grid)
piece.lock_delay = 0 -- move reset
if piece:isDropBlocked(grid) then
piece.move_counter = piece.move_counter + 1
if piece.move_counter >= 10 then
... |
sptbl["fold"] = {
files = {
module = "fold.c",
header = "fold.h",
example = "ex_fold.c",
},
func = {
create = "ut_fold_create",
destroy = "ut_fold_destroy",
init = "ut_fold_init",
compute = "ut_fold_compute",
},
params = {
optional =... |
local mod = DBM:NewMod("Kruul", "DBM-Challenges", 2)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 93 $"):sub(12, -3))
mod:SetCreatureID(117933, 117198)--Variss, Kruul
mod:SetZone()
mod:SetBossHPInfoToHighest()
mod.soloChallenge = true
mod.onlyNormal = true
mod:RegisterCombat("combat")
... |
--- Convert avro-schema fields to GraphQL arguments (scalars and InputObjects).
local json = require('json')
local core_types = require('graphql.core.types')
local avro_helpers = require('graphql.avro_helpers')
local scalar_types = require('graphql.convert_schema.scalar_types')
local helpers = require('graphql.convert... |
class 'Tuner'
function Tuner:__init()
self:InitGUI()
local vehicle = LocalPlayer:GetVehicle()
if IsValid(vehicle) and vehicle:GetDriver() == LocalPlayer and vehicle:GetClass() == VehicleClass.Land then
self:InitVehicle(vehicle)
end
Events:Subscribe("KeyUp", self, self.KeyUp)
Events:Subscribe("LocalPlayerEnt... |
---@class shape
local shape = {
}
---@type shape
_G.shape = _G.shape or shape
---@class shape_asset
local shape_asset = {
---@type shape
content = nil
}
---@type shape_asset
_G.shape_asset = _G.shape_asset or shape_asset
|
local RaidHandlers = {}
_G["RaidHandlers"] = RaidHandlers
LibStub("AceComm-3.0"):Embed(RaidHandlers)
LibStub("AceTimer-3.0"):Embed(RaidHandlers)
local function ConcatAddonNames()
local addons = ""
addons = addons.."Incite Raid Helper"..","..Incite.version.."|"
addons = addons.."DBM"..","..DbmInterop:GetVe... |
local MapManager = {}
-- Local Variables
local MapSave = Instance.new('Folder', game.ServerStorage)
MapSave.Name = 'MapSave'
-- Initialization
local MapPurgeProof = game.Workspace:FindFirstChild('MapPurgeProof')
if not MapPurgeProof then
MapPurgeProof = Instance.new('Folder', game.Workspace)
MapPurgeProof.Name = '... |
local spin =
Concord.component(
function(e, speed)
e.speed = speed or 0
end
)
return spin
|
local b4={}; for k,_ in pairs(_ENV) do b4[k]=k end
----------------------------------------------
local function map(t,f, u,y,z)
u={}
for k,x in pairs(t) do
y,z = f(k,x)
if y ~= nil then
if z==nil then u[#u+1]=y else u[y]=x end end end
return u end
----------------------------------------------
... |
-- To use this profiled version of main.lua, you'll also need luaprofiler...
--
-- $ luarocks install luaprofiler
--
-- Then you can run...
--
-- $ lua -l luarocks.require test/main_profile.lua
--
-- That will emit an lprof_tmp.*.out output file,
-- which you can analyze like...
--
-- $ lua test/main_profile_analyze... |
native "0x42B65DEEF2EDF2A1"
hash "0x42B65DEEF2EDF2A1"
arguments {
Any "p0",
}
ns "SYSTEM"
returns "void"
native "0x3D120012440E6683"
hash "0x3D120012440E6683"
ns "AUDIO"
returns "Any"
native "0xB81CF134AEB56FFB"
hash "0xB81CF134AEB56FFB"
ns "AUDIO"
returns "void"
native "0x5E203DA2BA15D436"
hash "0x5E2... |
--
-- calendar
--
-- @idea: thefarm
-- @author: MCB
-- @version: v1.0
-- @date: 2016-17-10
--
--
calendar = {};
calendar.modDir = g_currentModDirectory;
calendar.hudOverlay = createImageOverlay(Utils.getFilename("overlay.dds", g_currentModDirectory));
calendar.hudPosSize = {x=0.319, y=0.549... |
local msg = "Hello World"
return msg |
--
-- Copyright 2013 J.C. Moyer
--
-- 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 or agreed to in ... |
-- $Id: testes/gengc.lua $
-- See Copyright Notice in file all.lua
print('testing generational garbage collection')
local debug = require"debug"
assert(collectgarbage("isrunning"))
collectgarbage()
local oldmode = collectgarbage("generational")
-- ensure that table barrier evolves correctly
do
local U = {}
-... |
-- Defining alias for vim.opt.
local opt = vim.opt
-- Number settings.
opt.number = true
opt.numberwidth = 2
opt.relativenumber = true
-- True collor support.
opt.termguicolors = true
-- Enable clipboard.
opt.clipboard = 'unnamedplus'
-- Enable mouse in all modes.
opt.mouse = 'a'
-- Enable cursor line.
opt.cursorl... |
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if param == '' then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return false
end
local tile = param:split(",")
local pos
if tile[2] and tile[3] then
pos = Position(tile[1], ... |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras of Aerie ... |
local M = {}
function M.collect(self)
local items = {}
local home = self.pathlib.home()
local paths = vim.api.nvim_list_runtime_paths()
for _, path in ipairs(paths) do
local value = path:gsub(home, "~")
table.insert(items, {value = value, path = path})
end
return items
end
M.kind_name = "file/dire... |
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\GUICommanderOrders.lua
--
-- Created by: Andreas Urwalek (andi@unknownworlds.com)
--
-- Manages the orders that are drawn for selected units for the Commander.
--
-- ========= For more information, visit us at ... |
local platform = require "nvim-lsp-installer.platform"
local Data = require "nvim-lsp-installer.data"
local M = {}
function M.join(installers)
if #installers == 0 then
error "No installers to join."
end
return function(server, callback, context)
local function execute(idx)
ins... |
AddCSLuaFile()
ezdmg = {}
if SERVER then
local damaged_ents = {}
local indestructible_entities = {}
local function make_indestructible()
timer.Simple(0,function()
indestructible_entities = ents.FindByClass( "prop_physics" )
end)
end
hook.Add("InitPostEntity", "ezdmg_init1", make_indestruct... |
local PlayersService = game:GetService('Players')
local VRService = game:GetService("VRService")
local RootCameraCreator = require(script.Parent)
local UP_VECTOR = Vector3.new(0, 1, 0)
local XZ_VECTOR = Vector3.new(1, 0, 1)
local ZERO_VECTOR2 = Vector2.new(0, 0)
local VR_PITCH_FRACTION = 0.25
local Vector3_new = V... |
-- Class of endLevel
require "game.objects.entity"
local anim8 = require 'lib.anim8'
EndLevel = Entity:extend()
function EndLevel:new(x, y, width, height, image, world, ent_name)
EndLevel.super.new(self, x, y, width, height, image, world, "ent_endLevel")
self.x = x
self.y = y
self.image = image
... |
local log = require("log")
local Api = require("coreApi")
local json = require("json")
local http = require("http")
--########菜单路径#########
local menupath = "/root/opqbot/Plugins/whattoeat.json"
function ReceiveFriendMsg(CurrentQQ, data)
if data.FromUin ==2986807981 then--防止自我复读
return 1 end
if string.find(data.... |
local lunatest = require "lunatest"
local assert_equal = lunatest.assert_equal
local assert_table = lunatest.assert_table
local utilities = require "luchia.utilities"
local tests = {}
local util
function tests.setup()
util = utilities:new()
assert_table(util, "Unable to create utilities server")
end
function te... |
local Time = class('Time')
Time.RefreshRate = 60
return Time |
local game = {}
-- constants
local radtodeg = 180 / math.pi
-- Game Objects
local player = require("player")
local tiled = require("tiled/sti")
local map = nil
local tiles = nil
local clock = nil
local playbutton = nil
local sliderl = nil
local sliderr = nil
local sliderboth = nil
local thrusterl = 0
local thrusterr ... |
local screenX, screenY = guiGetScreenSize()
local mouseClickSound = "res/sounds/DynamicMenu/mouseClick.mp3"
local mouseEnterSound = "res/sounds/DynamicMenu/mouseEnter.mp3"
C_MenuPanel = {}
C_MenuPanel.new = function(_gap)
assert(type(_gap) == "number", "'Gap' is not a valid number!")
local this = {
gap = _gap... |
--[[-----------------------------------------------------------------------------
ItemElem Widget
Displays an item icon and name.
-------------------------------------------------------------------------------]]
local Type, Version = "ItemElem", 1
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or ... |
--[[
© 2013 GmodLive private project do not share
without permission of its author (Andrew Mensky vk.com/men232).
--]]
local greenCode = greenCode;
local PLUGIN = PLUGIN or greenCode.plugin:Loader();
local TER_PLUGIN = greenCode.plugin:Get("territory");
function PLUGIN:TerritorySystemInitialized()
... |
-- Copyright 2021 SmartThings
--
-- 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 or agreed to in ... |
return {
{
id = "weapon_knife",
idDesc = "weapon_knife_desc",
itemType = "Weapon",
weight = 1.2,
volume = 1.3,
equippable = true,
permanent = false,
tags = {
'humanoid'
},
subType = "Melee",
... |
-- mpirun -n 2 luajit testreduceall.lua
local ssize = 3*4096*4096
local usecuda = false
require 'mpiT'
dofile('init.lua')
mpiT.Init()
local world = mpiT.COMM_WORLD
local rank = mpiT.get_rank(world)
local size = mpiT.get_size(world)
assert((size>0) and (size%2==0))
local conf = {}
conf.rank = rank
conf.world = world... |
vim.wo[0].wrap = true |
--
-- robot.lua
--
module(...,package.seeall)
require('client.lua')
require('io.lua')
--require('SUBSYSTEM_HERE')
local hook = require('hook')
local solenoid = require('Solenoid')
local AIO = require('AIO')
local DIO = require('DIO')
hook.register("RobotInit")
hook.register("TeleOpInit")
hook.reg... |
-----------------------------------------------------------------
-----------------------------------------------------------------
-- MASS EFFECT: UNIFICATION Master Script by Aaron Gilbert
-- Build 40404/06
-- Screen Names: Marth8880, GT-Marth8880, [GT] Marth8880, [GT] Bran
-- E-Mail: Marth8880@gmail.com
-- Apr... |
local h = require 'controller_helpers'
local Brain = require 'brain'
return {
search = function(params)
local results = Brain.search_middleware(
params.endpoint,
params.query,
params.per_page,
params.page
)
h.send_json(results)
end,
show = function(params)
local... |
local api = vim.api
local opt = vim.o
local Edit = {}
local Component = require("noline.utility.component")
Edit.default_mode_map = {
["abbr"] = {
["n"] = "N" ,
["no"] = "OP" ,
["nov"] = "OP" ,
["noV"] = "OPL" ,
["no"] = "OPB" ,
["niI"] = "NI" ,
["niR"] ... |
require 'paths'
require 'torch-ffmpeg'
require 'image'
local M = {}
-- given top directory of original UCF101
--> return all video file names
function M.getFileNames(dir_og)
local tblDirs = {}
local tblFiles = {}
for dir in paths.iterdirs(dir_og) do
table.insert(tblDirs, dir)
end
table.sort(tblDirs)
f... |
local function scale(x, base)
base = base or 1080
return math.ceil(ScrH() * (x / base))
end
surface.CreateFont("TTT Wheel Names", {
font = "Helvetica",
size = scale(24),
weight = 800,
extended = true,
antialias = true
} )
surface.CreateFont("TTT Wheel Descriptions", {
f... |
function onCreate()
-- background shit
makeLuaSprite('Sonk background', 'Sonk background', -320, -30);
setLuaSpriteScrollFactor('Sonk background', 1, 1);
addLuaSprite('Sonk background', false);
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script w... |
examples[2] = function()
function love.load()
love.graphics.setNewFont(42)
music = audio
:newSource("music.wav", "stream")
:setPitch(0.1)
:setVolume(0)
:setTargetPitch(1)
:setTargetVolume(.5)
:setLooping(true)
:play() --call this when... |
local insert, remove
do
local _obj_0 = table
insert, remove = _obj_0.insert, _obj_0.remove
end
local newLines, allowedOrign, NotifyBase
do
local _obj_0 = Notify
newLines, allowedOrign, NotifyBase = _obj_0.newLines, _obj_0.allowedOrign, _obj_0.NotifyBase
end
local NotifyAnimated
do
local _class_0
... |
--[[
desc: a type of Attri and a part of Renderer.
author: Musoucrow
since: 2018-3-7
alter: 2019-9-17
]]--
---@type Graphics.Renderer.Part
local _Base = require("graphics.renderer.part.base")
---@class Graphics.Renderer.Part.Shader:Graphics.Renderer.Part
local _Shader = require("core.class")(_Base)
---@param upp... |
local function SearchItem(text)
if text == nil or AuctionatorShoppingListFrame == nil or not AuctionatorShoppingListFrame:IsVisible() then
return false
end
local name = Auctionator.Utilities.GetNameFromLink(text)
if name == nil then
name = text
end
AuctionatorShoppingListFrame.OneItemSearchBox:Se... |
ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\master.lvl")
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- load the gametype script
ScriptCB_DoFile("ME5_Master")
ScriptCB_DoFile("ME5_setup_teams")
ScriptCB_DoFile("ME5_ObjectiveCTF")
-- Create a new MapManager object
manager = ... |
local L, this = ...
this.code = "lcore.platform.reference.graphics"
local lcore = L.lcore
local oop = lcore.utility.oop
local metadata = lcore.meta.metadata
return oop:static(lcore.meta.header) {
members = {
immediate = {
rectangle = metadata:smethod("void rectangle(string mode, float x, float y, float width, f... |
require('../logic/sop');
require('../logic/algorithms');
F = sop({
cubeFromStrings("-1111"),
cubeFromStrings("-1110"),
cubeFromStrings("-101-"),
cubeFromStrings("-10-1")
});
Fb = sopComplement(F, nil);
-- Manual factoring/expansion of the terms and complementation gives:
-- F = x2*x3*x4*x5 + x2*x3*x4... |
local function teleportHumanoidToPosition(humanoid: Humanoid, position: Vector3)
local rootPart = humanoid.RootPart
if rootPart then
rootPart.Position = position + Vector3.new(0, rootPart.Size.Y / 2 + humanoid.HipHeight, 0)
end
end
return teleportHumanoidToPosition
|
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_SUBID, 5)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, 135)
condition:setParameter(CONDITION_PARAM_BUFF_DAMAGERECEIVED, 115)
condition:setParameter(CONDITION_PARAM_... |
--[[
Copyright 2018 H8UL
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, distribut... |
do
local etk = etk
local Input = etk.Widgets.Input
local Label = etk.Widgets.Label
local Button = etk.Widgets.Button
local myView = etk.View()
local sanjot = Label {
position = Position { bottom="10px", right="5px" },
text = "Made by Sanjit (Who else has the time?)"
... |
print('init.lua ver 1.2')
wifi.setmode(wifi.STATION)
print('set mode=STATION (mode='..wifi.getmode()..')')
print('MAC: ',wifi.sta.getmac())
print('chip: ',node.chipid())
print('heap: ',node.heap())
-- wifi config start
wifi.sta.config("dd-wrt","wifipass")
-- wifi config end
-- include main file
dofile("main.lua") |
local t = ...
for judgment_filename in ivalues( GetJudgmentGraphics(SL.Global.GameMode) ) do
if judgment_filename ~= "None" then
t[#t+1] = LoadActor( THEME:GetPathG("", "_judgments/" .. SL.Global.GameMode .. "/" .. judgment_filename) )..{
Name="JudgmentGraphic_"..StripSpriteHints(judgment_filename),
InitComma... |
blasters = require("Libraries/gaster_blasters")
local blaster1 = blasters.New(320, 480, 320, 300, 0, 0)
blaster1.color32 = {255,0,0}
function blaster1.OnBeam(bullet)
bullet["color"] = "red"
bullet.sprite.color32 = {255,0,0}
end
function OnHit(bullet)
if bullet["color"] == "red" then
Player.... |
-- ## External -------------------------------------------------
local format = string.format
---@class LibStub Ace3 LibStub
local LibStub = LibStub
-- ## Local ----------------------------------------------------
local _G = _G
local pkg = 'ActionbarPlus'
local shortName = 'ABP'
local globalVarPrefix = shortName .. '... |
dm.nmap("ga", "<Plug>(EasyAlign)")
dm.xmap("ga", "<Plug>(EasyAlign)")
|
require('shared')
local next_time = 0
local min_dt = 1 / shared.fpsCap
function love.load()
shared.discord.initialize('589871612392636416', true)
shared.discord.presence({
details = 'In Main Menu',
largeImageKey = 'tetromino_logo',
largeImageText = 'Tetromino'
})
love.graphics.... |
local M = {}
function M.get(cp)
return {
GitGutterAdd = { fg = cp.catppuccin9 },
GitGutterChange = { fg = cp.catppuccin8 },
GitGutterDelete = { fg = cp.catppuccin5 },
}
end
return M
|
--打地鼠游戏
--小陆 QQ 2604904
--https://github.com/lulersoft/ME
local game={}
local uiCanvas
local uiLevel
local uibg1
local uibg2
local uibg3
local uibgArr={}
local moleArr={}
local bar --生命条 显示
local score --游戏得分显示
local maxscore --游戏最高得分显示
local point=0 --得分
local startBnt --开始按钮
local panel --遮罩层
local hp=10 --生命值
... |
json = require("json")
docker = require("luaclibdocker")
test_js = docker.json_create('{ "x": 1, "y": 2 }');
test_js_str = test_js:to_string()
print(test_js_str)
test_create_params = {
Image = "alpine",
Cmd = { "echo", "hello", "world" }
}
test_create_params_js = docker.json_create(json.encode(test_create_pa... |
local PANEL = {};
function PANEL:Init ( )
self.InventoryBlocks = {};
local fakeX, fakeY = 1, 0;
for x = 1, 3 do
for y = 1, 5 do
fakeY = fakeY + 1;
if (fakeY > 5) then
fakeY = 1;
fakeX = fakeX + 1;
end
local newBlock = vgui.Create("perp2_trade_offer_block", self);
newBlock.itemID ... |
--@import see.io.Peripheral
--@import see.util.ArgumentUtils
--@import see.io.peripheral.AbstractPeripheral
--@extends see.io.peripheral.AbstractPeripheral
--[[
Wrapper for monitor peripherals
@param see.base.String:what side the monitor is on (can be on network as well)
]]
function Monitor:init(location)
self:sup... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author (zacharyenriquee@gmail.com).
--]]
ix.command.Add("CharRemoveCert", {
description = "Removes a certification from a character.",
permission = "Remove cert",
arguments = {
ix.type.character,
ix.type.string
},
... |
-- Most of the scoretracking function calls and message broadcasting are done here.
resetJudgeST() -- Reset scoretracking data.
resetGhostData() -- Reset ghostscore data.
local bareBone = isBareBone()
local startFlag = false
local fcFlag = false
local fcFlagDelay = 0.5 -- Minimum delay after lastSecond before broadca... |
require("moonsc").import_tags()
-- Test that the state machine halts when it enters a top-level final state.
-- Since the initial state is a final state, this machine should halt immediately
-- without processing "event1" which is raised in the final state's on-entry handler.
-- THIS IS A MANUAL TEST since there is no... |
return {'juli','juliaans','julidag','julienne','juliennesoep','julimaand','julinummer','jullie','jules','julia','juliana','julien','juliet','juliette','julirevolutie','jul','jula','juli','julian','julianne','julienne','julio','julius','july','julsing','julicher','juliaanse','julidagen','juls','julas','jules','julis','j... |
object_tangible_item_entertainer_console_stage_pyro_machine = object_tangible_item_entertainer_console_shared_stage_pyro_machine:new {
}
ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_pyro_machine, "object/tangible/item/entertainer_console/stage_pyro_machine.iff")
|
include("shared.lua")
language.Add("other_lamp", "Life Support Lamp") |
require 'winapi'
fceuxWindowDY = 0;
fceuxWindowDX = 0;
MIN_JUMP_POWER = -20;
function jumpingWindow()
desktopWidth, desktopHeight = winapi.get_desktop_window():get_bounds();
fceuxWindow = winapi.find_window("FCEUXWindowClass", nil);
fceuxWindowX, fceuxWindowY = fceuxWindow:get_position();
fceuxWindowWidth, fceux... |
package.path = "../?.lua;../?/init.lua;" .. package.path
local gl = require 'matrix'
local math = require 'math'
local iter = 2000000 -- 2M
print(string.format('testing mat4 %d interations:', iter)); io.stdout:flush()
-- matrix * constant
local a = gl.identity
local start = os.clock()
for i = 1, iter do
a = a * 1... |
if not CodexText then
CodexText = {}
end
CodexText["zhCN"] = {
-- quest.lua
["Text_Quest_Show"] = "显示",
["Text_Quest_Hide"] = "隐藏",
["Text_Quest_Reset"] = "重置",
-- config.lua
["Text_Quest_Start"] = "任务起始于: ",
["Text_Quest_End"] = "任务结束于: ",
["Text_Quest_Level"] = "任务等级: ",
["Te... |
-- ITS - In The Shadows
-- Copyright (C) 2015, 2016, 2017 James Niemira
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ve... |
-- Copyright 2021 SmartThings
--
-- 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 or agreed to in ... |
PlayerContrals = Class {}
local gameCopied = 0
local gamePasted = 0
function PlayerContrals:Render()
love.graphics.clear(0.35, 0.35, 0.35, 1)
love.graphics.setFont(Fonts['Secondary'])
love.graphics.setColor(Game.turn == 'w' and 1 or 0, Game.turn == 'w' and 1 or 0, Game.turn == 'w' and 1 or 0, 1)
love.... |
--
-- clientport update notify for super
-- *) TODO: the 'cluster.report_clients' is false always, so the module invalid
--
local t = {
version = '2.0.0',
scope = 'workers' -- root/clients/workers/root:workers
}
local sender = require('lib.Sender')
local function tick(premature, timeout)
if premature then
-- P... |
package("hwloc")
set_homepage("https://www.open-mpi.org/software/hwloc/")
set_description("Portable Hardware Locality (hwloc)")
set_license("BSD-3-Clause")
if is_plat("windows") then
if is_arch("x86") then
add_urls("https://download.open-mpi.org/release/hwloc/v$(version).zip", {ver... |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetNil",
targetAniEffect = "",
arg_list = {
weapon_id = 64641
}
}
}
},
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetNi... |
Races = {}
AvailableRaces = {}
LastRaces = {}
NotFinished = {}
Citizen.CreateThread(function()
local races = exports.ghmattimysql:executeSync('SELECT * FROM lapraces')
if races[1] ~= nil then
for k, v in pairs(races) do
local Records = {}
if v.records ~= nil then
... |
local ffi = require( "ffi" )
local libs = ffi_bz2_libs or {
Windows = { x86 = "bin/Windows/x86/bz2.dll", x64 = "bin/Windows/x64/bz2.dll" },
}
local bz2 = ffi.load( ffi_zlib_lib or libs[ ffi.os ][ ffi.arch ] or "bz2" )
ffi.cdef[[
enum {
BZ_MAX_UNUSED = 5000,
BZ_RUN = 0,
BZ_FLUSH ... |
return {
summary = 'Start the Thread.',
description = 'Starts the Thread.',
arguments = {
{
name = '...arguments',
type = '*',
description = 'Up to 4 arguments to pass to the Thread\'s function.'
}
},
returns = {}
}
|
return _G.bit or require'bit' |
----
---- This source code is licensed under the Apache 2 license found in the
---- LICENSE file in the root directory of this source tree.
----
local MaskedClassNLLCriterion, parent = torch.class('nn.MaskedClassNLLCriterion', 'nn.ClassNLLCriterion')
function MaskedClassNLLCriterion:__init()
self._gradInput = torc... |
-- From http://en.literateprograms.org/Fibonacci_numbers_(Lua)
function fastfib(n)
fibs={1,1}
for i=3,n do
fibs[i]=fibs[i-1]+fibs[i-2]
end
return fibs[n]
end
for i=10,30 do
print('->', i, fastfib(i))
end |
require("__5dim_core__.lib.battlefield.laser-turret.generation-laser-turret")
local rango = 62
local shootingSpeed = 120
local damageModif = 50
local color = {r = 0, g = 1, b = 1, a = 1}
local hp = 1400
local techCount = 200
-- Sniper laser turret 01
genLaserTurrets {
number = "sniper-01",
subgroup = "defense... |
data:extend(
{
{
type = "item-subgroup",
name = "fconsumer-housing",
group = "fconsumer",
order = "a",
},
{
type = "recipe-category",
name = "home-living-shack",
},
{
type = "recipe-category",
name = "home-living-middle-class",
},
-- Shack
{
type = "item",
name = "h... |
--- GENERATED CODE - DO NOT MODIFY
-- Amazon Mobile Analytics ()
local M = {}
M.metadata = {
api_version = "2014-06-05",
json_version = "",
protocol = "rest-json",
checksum_format = "",
endpoint_prefix = "mobileanalytics",
service_abbreviation = "",
service_full_name = "Amazon Mobile Analytics",
signature_ver... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.