content stringlengths 5 1.05M |
|---|
local lastBpmChangeTime = 0;
local lastBpmChangeBeat = 0;
local prevBpm = 0;
local prevCrochet = 0;
function onCreate()
-- background shit
makeLuaSprite('sambg', 'nightstage/sambg', -600, -300);
setScrollFactor('sambg', 0.3, 0.3);
makeLuaSprite('eagle', 'nightstage/EAGLE', 970, 550);
makeAnimatedLuaSprite('wingF... |
----------------------
-- Global variables --
----------------------
local g_LotteryFund = 0
local g_LotteryPlayers = {}
local g_FinishLotteryTimer = false
local g_BetsTimer = false -- GbAreBetsPlaced uses it
local SPIN_MAX_VAL = 36 -- also in cmd_s.lua
local SPIN_CASH_MULT = 40
local SPIN_CASH_LIMIT = 100... |
cc = cc or {}
---EventListenerAssetsManagerEx object
---@class EventListenerAssetsManagerEx : EventListenerCustom
local EventListenerAssetsManagerEx = {}
cc.EventListenerAssetsManagerEx = EventListenerAssetsManagerEx
--------------------------------
--- Initializes event with type and callback function
---@param Asset... |
-- The MIT License (MIT)
-- Copyright (c) 2015 Eugene Aksenov (e.aksenov@gmail.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... |
imageFont = { fontTable = {} }
-- /// Misc Func /// --
function imageFont.fileExists(file)
local f = io.open(file, "rb")
if f then
f:close()
end
return(f ~= nil)
end
function imageFont.linesFromFile(file)
if not imageFont.fileExists(file) then
return({})
end
local lines = {}
for line in io.lines(file) do ... |
-- Every variable must start with this addon's unique ID, as each is a global.
local localization_strings = {
SI_ECHOEXP_MESSAGE = " c'est actif!",
------------------------------
}
------------------------------
--
--TODO use GetChatFontSize() to get size
--https://wiki.esoui.com/Text_Formatting
for stringId, s... |
local playsession = {
{"Krono", {77770}},
{"littleminion007", {2030}},
{"wellczech", {1083}},
{"Discotek", {216846}},
{"supra90", {222008}},
{"Gerkiz", {110687}},
{"LeeFactor", {96158}},
{"TJ-orben", {1720}}
}
return playsession |
local S = unified_inventory.gettext
function unified_inventory.canonical_item_spec_matcher(spec)
local specname = ItemStack(spec):get_name()
if specname:sub(1, 6) == "group:" then
local group_names = specname:sub(7):split(",")
return function (itemname)
local itemdef = minetest.registered_items[itemname]
f... |
---------------------------------------------------------------------------------------------------
-- User story: Smoke
-- Use case: OnDriverDistraction
-- Item: Happy path
--
-- Requirement summary:
-- [OnDriverDistraction] SUCCESS: getting SUCCESS:UI.OnDriverDistraction()
--
-- Description:
-- HMI sends OnDriverDist... |
local base_ui = require"module/gui/component/base_ui"
local label = class("label",base_ui){
label = "Label",
style = {
font = nil,
font_color = nil,
bg = nil,
}
}
function label:__init(label,x,y,style)
base_ui.__init(self,x,y,0,0)
self:_load_style(style)
local font = se... |
--------------------------------
-- @module SpriteBatchNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#SpriteBatchNode] appendChild
-- @param self
-- @param #cc.Sprite sprite
--------------------------------
--
-- @function ... |
--luacheck: ignore describe it
describe('rapidjson.decode()', function()
local rapidjson = require('rapidjson')
describe('should return value', function()
it('when decode values without array or object', function()
assert.are.equal('very funny', rapidjson.decode('"very funny"'))
assert.are.equal(123... |
local GlobalVariablesScript = {}
function GlobalVariablesScript:PlaySuccessSound(player, hitresult, callingEntity)
callingEntity:PlaySound(GetWorld():Find("quizSuccessSound").sound)
end
return GlobalVariablesScript |
-----------------------------------
-- Area: Labyrinth of Onzozo
-- Mob: Flying Manta
-- Note: PH for Lord of Onzozo and Peg Powler
-----------------------------------
local ID = require("scripts/zones/Labyrinth_of_Onzozo/IDs")
require("scripts/globals/regimes")
require("scripts/globals/mobs")
------------------------... |
require("nvim-tmux-navigation").setup({
disable_when_zoomed = true, -- defaults to false
keybindings = {
left = "<C-h>",
down = "<C-j>",
up = "<C-k>",
right = "<C-l>",
last_active = "<C-\\>",
next = "<C-Space>",
},
})
|
--[[
PUC-Rio
INF1405 - Construção de Sistemas 2015.2
Professor Edmundo Torreão
Gabriel de Quadros Ligneul 1212560
Exploradores de Andrômeda
Pirate.lua
--]]
local Class = require "Class"
local LaserBeam = require "LaserBeam"
local Ship = require "Ship"
local Vector = require "Vector"
local Wind... |
-- renumber test comments in ltcltest.lua
testno = false
for s in io.lines() do
m = string.match(s, '^-- (%d+)$')
if m then
if not testno then
testno = m * 1
else
testno = testno + 1
end
print("-- "..tostring(testno))
else
print(s)
end
end
|
-- by CapsAdmin
local flags = {
ad = {16, 11,0,0},
ae = {16, 11,16,0},
af = {16, 11,32, 0},
ag = {16, 11,48,0},
ai = {16, 11,64,0},
al = {16, 11,80,0},
am = {16, 11,96,0},
an = {16, 11,112,0},
ao = {16, 11,128,0},
ar = {16, 11,144,0},
as = {16, 11,160,0},
at = {16, 11,176,0},
au = {16, 11,192,0},
aw = {16, 11,0,11},
a... |
local AU = require( "adoc_cmd_ext.adoc_util" )
local U = require( "adoc_cmd_ext.util" )
describe( "adoc_util", function()
test( "tokenize_table", function()
local f = io.open( "test/xmpl01/pre.adoc" )
local str = f:read( "*a" )
local t = AU.tokenize_table( str )
assert.is.same( #t, 21 )
... |
local ok, data = fa.pio( 0x06, 0x00 );
print [[
HTTP/1.1 200 OK
Content-Type: application/json
]]
print( '{"error":"","data":' .. data .. '}' ); |
local settings = {
-- Decomposer options
decomposer_power_requirement = 100000 / 2,
decomposer_item_requirement = 10,
enable_decomposer = true,
-- Colors, dyeing unit, paints
enable_colors_for_aluminium = true,
-- Saw
enable_saw_for_aluminium = true,
}
local modname = minetest.get_current_modname()
local pre... |
--Здесь должны быть квестовые итемы(не точно), итемы, которые не должны выпадать и еще какая-то поебота
PLUGIN.ignored = {
"psihelem",
"rpg7",
"gauska",
"buldog",
"fnp",
"scar",
"otboinik",
"aps",
"camelback",
"camelbackpack",
"ppsh",
"ammobox",
"tshirt_bez_bab",
"silence",
... |
-- This implements a lua parser of http://maxmind.github.io/MaxMind-DB/
local has_bit32, bit = pcall ( require , "bit32" )
bit = has_bit32 and bit or require ( "bit" )
local sunpack = string.unpack or require ( "struct" ).unpack
local mmdb_separator = "\171\205\239MaxMind.com"
local geodb_methods = { }
local geodb_m... |
--[[ Copyright (c) 2010 Edvin "Lego3" Linge
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, distr... |
local lu = require('luaunit')
local File = require('jls.io.File')
local TEST_PATH = 'tests/full'
local TMP_PATH = TEST_PATH..'/tmp'
function Test_exists()
local f
f = File:new('does_not_exist')
lu.assertEquals(f:exists(), false)
f = File:new('.')
lu.assertEquals(f:exists(), true)
end... |
local K, C, L, _ = select(2, ...):unpack()
if C["ActionBar"].Enable ~= true then return end
local _G = _G
local CreateFrame = CreateFrame
-- Setup MultiBarBottomRight as bar #5 by Tukz
local bar = CreateFrame("Frame", "Bar5Holder", UIParent)
if C["ActionBar"].RightBars < 3 then
if C["ActionBar"].SplitBars == true th... |
local ros = require 'ros'
local function printf(...) return print(string.format(...)) end
ros.init('multi_array_demo')
local spinner = ros.AsyncSpinner()
spinner:start()
local nodehandle = ros.NodeHandle()
local publisher = nodehandle:advertise("float_tensor_source", 'std_msgs/Float64MultiArray', 10)
local subscr... |
--- Telegram inline keyboard markup object.
-- This object represents an [inline keyboard](https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating) that appears right next to the message it belongs to.
-- @classmod InlineKeyboardMarkup
local class = require("middleclass")
local InlineKeyboardMarkup = ... |
local skynet = require "skynet"
local logger = require "logger"
local json = require "cjson"
local futil = require "futil"
local function boot()
skynet.newservice("logservice")
skynet.newservice("clustermgr")
local w = skynet.newservice("xwatchdog")
local ok = skynet.call(w, "lua", "start", {
po... |
data.raw["logistic-robot"]["logistic-robot"].idle = {
filename = "__Robees__/graphics/bee.png",
priority = "high",
line_length = 16,
width = 41,
height = 42,
frame_count = 1,
shift = {0.015625, -0.09375},
direction_count = 16,
}
data.raw["logistic-robot"]["logistic-robot"].idle_with_cargo = {
filename = "__Rob... |
RUN_TESTS = false
if RUN_TESTS then
print('Running tests')
end
local utility = nil
local json = nil
LOCALIZATION = nil
STATE = {
PATHS = {
RESOURCES = nil
},
SCROLLBAR = {
START = nil,
MAX_HEIGHT = nil,
HEIGHT = nil,
STEP = nil
},
NUM_SLOTS = 5,
LOGGING = false,
STACK = false,
SCRO... |
local ShowFlashyCombo = ThemePrefs.Get("FlashyCombo")
return Def.ActorFrame {
LoadActor("explosion") .. {
InitCommand=cmd(diffusealpha,0;blend,'BlendMode_Add';hide_if,not ShowFlashyCombo);
MilestoneCommand=cmd(rotationz,0;zoom,0.5;diffusealpha,0.6;linear,0.3;zoom,0.75;diffusealpha,0);
};
}; |
---LuaSocket API documentation
---LuaSocket <https://github.com/diegonehab/luasocket> is a Lua extension library that provides
---support for the TCP and UDP transport layers. Defold provides the "socket" namespace in
---runtime, which contain the core C functionality. Additional LuaSocket support modules for
---SMTP, ... |
--[[
╔═════════════════════════════════════╗
║ Settings for doums/lsp_spinner.nvim ║
╚═════════════════════════════════════╝
--]]
-- register an handler for `$/progress` method
-- options are optional
require("lsp_spinner").setup {
spinner = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'},
interval = 80, -- s... |
local Val = require("valerie")
local a = { value = 0 }
function love.keypressed(k)
a = Val.Transition({}, 0.5, Val.ease_in_out(a.value, a.value + 200))
end
function love.update(dt)
if a.update then
local out = a:update(dt)
if out then
a = { value = out }
end
end
end
... |
Keyboard = class(Observer)
function Keyboard:init()
function love.keypressed(key, scancode, isrepeat)
self:notify(Message(MessageTypes.eventListener.keypressed, key))
if key == 'escape' then love.event.quit() end
end
function love.keyreleased(key)
self:notify(Message(MessageTypes... |
--------------------------------
-- @module EaseExponentialOut
-- @extend ActionEase
-- @parent_module cc
---@class cc.EaseExponentialOut:cc.ActionEase
local EaseExponentialOut = {}
cc.EaseExponentialOut = EaseExponentialOut
--------------------------------
---
---@param action cc.ActionInterval
---@return cc.EaseE... |
-- Dependencies
-- global debug flag
require 'resources/Debug'
-- Other Flags
require 'resources/Flags'
-- Utilities
require 'resources/Utilities'
-- DataTables
require 'resources/DataTables'
-- local debug flag
local thisDebug = false;
local isDebug = Debug.IsDebug() and thisDebug;
GameState = nil
-- Other l... |
local Player = ...;
local style = GAMESTATE:GetCurrentStyle();
local styleType = style:GetStyleType();
local bDoubles = (styleType == 'StyleType_OnePlayerTwoSides' or styleType == 'StyleType_TwoPlayersSharedSides');
local center1P = PREFSMAN:GetPreference("Center1Player")
-- initialize each stage at a HealthState of "... |
Loot {
resref = "pl_yotori",
[1] = {
Item("fab_barb_armor"),
Item("pl_yotori_hide")
},
}
|
local wibox = require('wibox')
local awful = require('awful')
local gears = require('gears')
local naughty = require('naughty')
local beautiful = require('beautiful')
local dpi = beautiful.xresources.apply_dpi
local config_dir = gears.filesystem.get_configuration_dir()
local widget_icon_dir = config_dir .. 'widget/weat... |
local awful = require('awful')
local gears = require('gears')
-- local icons = require('theme.icons')
local apps = require('configuration.apps')
-- Configure Tag Properties
awful.screen.connect_for_each_screen(function(s)
-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8",... |
local PARSERS = require('esearch/shared/adapter/parse').PARSERS
local M = {}
function M.parse(data, parser)
local entries, lines_delta, errors = PARSERS[parser](data, vim.dict)
return vim.list(entries), lines_delta, errors
end
return M
|
-----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: ???
-- Notes: Teleports you to the 10th floor.
-- !pos 261 19 20 158
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(17)
end
function onEventUpdate(player, c... |
#!/usr/bin/env lua
--- Tests for antigravity unit.start.
package.path = package.path .. ";../du-mocks/?.lua" -- add du-mocks project
package.path = "../game-data-lua/?.lua;" .. package.path -- add link to Dual Universe/Game/data/lua/ directory
local lu = require("luaunit")
require("common.Utilities")
require("common... |
local map = require'utils'.map
map(
"v",
"<Leader>re",
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>]],
{silent = true, expr = false}
)
map(
"v",
"<Leader>rf",
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]],
{silent = true, expr = false}
)
map(
"v... |
local addonName = "KibsItemLevelContinued"
local addonNamespace = LibStub and LibStub(addonName .. "-1.0", true)
if not addonNamespace or addonNamespace.loaded.Tooltip then return end
addonNamespace.loaded.Tooltip = true
local Tooltip = {}
Tooltip.__index = Tooltip
addonNamespace.Tooltip = Tooltip
local TY... |
-- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.transformer then return end
local lang = vRP.lang
-- this module define a generic system to transform (generate, process, convert) items/money/etc to items/money/etc in a specific area
-- each transformer can ... |
-- Event notes hooks
function onEvent(name, value1, value2)
if name == 'ded' then
removeLuaSprite('ded'); -- i dont if this work or shit i havent tested it
end
end |
require('torch')
require('nn')
require('libfbnn')
pcall(function() include('Dropout.lua') end) -- because uses async_rng
include('CachingLookupTable.lua')
include('Optim.lua')
include('Probe.lua')
include('TrueNLLCriterion.lua')
include('SparseLinear.lua')
include('ProjectiveGradientNormalization.lua')
include('ClassN... |
require 'torch'
require 'cutorch'
require 'densecap.modules.ApplyBoxTransform'
require 'densecap.modules.InvertBoxTransform'
local gradcheck = require 'gradcheck'
local tests = {}
local tester = torch.Tester()
-- Make sure that ApplyBoxTransform -> InvertBoxTransform computes the identity
local function applyInve... |
--------------------------------
-- @module ActionTintFrame
-- @extend ActionFrame
-- @parent_module ccs
--------------------------------
-- @function [parent=#ActionTintFrame] getColor
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
-... |
--[[
skill_id:技能id
target_type:1敌方,2自己,3我方
shape:攻击范围形状--1圆形,2直线,3扇形
duration:施放时间(毫秒)
detail:每级的具体属性
detail.condition:学习条件--{lv,1}角色等级,{money,100}货币
detail.cd:冷却时间(毫秒)
detail.attack_max_num:攻击最大数量
detail.damage_rate:伤害比率
detail.area:攻击范围--shape为圆形时即半径,直线时即为距离
detail.arge:具体的技能参数,针对不同技能有不同参数,见SkillActions.lua说明
暂不用deta... |
require("moonsc").import_tags()
-- test that sendid is present in error events triggered by send errors
return _scxml{ initial="s0", name="machineName",
_datamodel{
_data{ id="var1" },
_data{ id="var2" },
},
_state{ id="s0",
_onentry{
-- this will raise an error and also st... |
------------------------------------------------------------------------
-- Academy class - a processor to train students into officers.
-- 'k2cp-academy' is the associated entity.
------------------------------------------------------------------------
Academy = {}
function Academy:new(o)
o = o or {}
setmet... |
include( "shared.lua" )
GM.UseMawChat = true
GM.UseMawBlockCHud = true
--hook.Remove( "PostDrawEffects", "RenderHalos" )
function GM:Initialize()
end
function GM:CallScreenClickHook()
end
|
-- invoke as Pandoc writer
-- write lua metadata file for later processing
package.path = package.path .. ';' ..
string.gsub(PANDOC_SCRIPT_FILE, '/[^/]+$', '') .. '/agsman.lua'
local agsman = require('agsman')
local serialize = agsman.serialize
local stringify = (require 'pandoc.utils').stringify
local skipwords = ... |
if not modules then modules = { } end modules ['task-ini'] = {
version = 1.001,
comment = "companion to task-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- this is a temporary ... |
--//////////////////////////////////////////////////////////////////////
--************************
--OpenMainMenuEvent
--************************
OpenMainMenuEvent = {}
OpenMainMenuEvent.__index = OpenMainMenuEvent
setmetatable(OpenMainMenuEvent, {__index = Event})
function OpenMainMenuEvent.new()
local self = set... |
if not GarbageCollector then
print("init GarbageCollector...")
GarbageCollector = class({})
GarbageCollector.ACTIVE_PARTICLES = {}
GarbageCollector.IGNORED_PARTICLES = {}
GarbageCollector.IGNORED_PARTICLES["particles/dev/empty_particle.vpcf"] = true
end
-- Call custom functions whenever CreateParticle is being ca... |
wifi.setmode(wifi.STATION);
wifi.sta.config("FrontierHSI","")
wifi.sta.sethostname("sen01")
print('\n *** startup.lua ver 2.0')
print(' set mode=STATION (mode='..wifi.getmode()..')')
print(' MAC: ',wifi.sta.getmac())
print(' chip: ',node.chipid())
print(' heap: ',node.heap())
tmr.alarm(1,1000,1,function()
i... |
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... |
function love.event.quit(re)
if love.quit then
love.quit()
end
if re == "restart" then
os.restart()
else
lv1lua.running = false
os.exit()
end
end
|
print("radar type support loaded")
ACFM.RadarBehaviour = ACFM.RadarBehaviour or {}
ACFM.DefaultRadarSound = ACFM.DefaultRadarSound or "buttons/button16.wav"
ACFM.RadarBehaviour["DIR-AM"] =
{
GetDetectedEnts = function(self)
return ACFM_GetMissilesInCone(self:GetPos(), self:GetForward(), self.ConeDegs)
end
}
A... |
local type = require"Toolbox.Utilities.Type".GetType
local Import = require"Toolbox.Import"
local Object = Import.Module.Relative"Object"
local Nested = Import.Module.Relative"Objects.Nested"
local Basic = {
Grammar = Import.Module.Relative"Grammar";
Namespace = Import.Module.Relative"Namespace";
}
return Object(
... |
local helpers = require "spec.helpers"
local conf_loader = require "kong.conf_loader"
local prefix_handler = require "kong.cmd.utils.prefix_handler"
local exists = helpers.path.exists
local join = helpers.path.join
describe("NGINX conf compiler", function()
describe("gen_default_ssl_cert()", function()
local co... |
--[[
Copyright (c) 2015 gameboxcloud.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, distr... |
print("hello")
--> =hello
print(hello)
--> =world
print(double(2))
--> =4
print(polly.Age)
--> =10
print(polly.Name)
--> =Polly
print(polly.Descr())
--> =age: 10, name: Polly
print(ben.Descr())
--> =age: 5, name: Ben
print(ben.Age)
--> =5
benben = ben.Mix(ben)
print(benben.Descr())
--> =age: 10, name: Ben-Ben
... |
solution "hellococoa"
target "hellococoa"
target_type "app"
depends("hellolib", "../hellolib/metabuilder.lua")
includedirs
{
"../hellolib",
}
files
{
"AppDelegate.h",
"AppDelegate.m",
"cocoaapp-Info.plist",
"cocoaapp-Prefix.pch",
"main.m",
"metabuilder.lua",
}
resources
... |
if minetest.get_modpath("moreblocks") then
function darkage.register_stairs(nodeName)
local ndef = assert(minetest.registered_nodes[nodeName], "Error: "..nodeName.." is not registered")
local mod = "darkage"
local node = nodeName:split(":")[2]
local def = table.copy(ndef)
de... |
factorial = function (n)
local f = function (n, a) -- WRONG !!!!
return n==0 and a or f(n-1, a*n) -- refers to GLOBAL f, crashes
end -- because nil is not callable
return f(n, 1) -- calls local f
end
ok, reason = pcall(factorial, 10) -- hopi... |
local ingredients = {
"accumulator",
"arithmetic-combinator",
"assembling-machine-1",
"battery",
"big-electric-pole",
"boiler",
"cannon-shell",
"car",
"cargo-wagon",
"chemical-plant",
"coal",
"concrete",
"constant-combinator",
"construction-robot",
"copper-pla... |
local shallowEqual = require(script.Parent.Parent.shallowEqual)
local toString = require(script.Parent.Parent.toString)
local function expectTable(tab)
return {
toEqual = function(value)
assert(
shallowEqual(tab, value),
string.format("expected: %s\ninstead got: %s", toString(value), toString(tab))
)
... |
GlobalVar("MapLowestZ", max_int)
function CalcMapLowestZ()
local tavg, tmin, tmax = terrain.GetAreaHeight()
return tmin
end
function OnMsg.NewMapLoaded()
if MapLowestZ == max_int and not mapdata.IsPrefabMap then
MapLowestZ = CalcMapLowestZ()
end
end
----- MinimumElevationMarker is used to determine lowest poin... |
package("tesseract")
set_homepage("https://tesseract-ocr.github.io/")
set_description("Tesseract Open Source OCR Engine")
set_license("Apache-2.0")
add_urls("https://github.com/tesseract-ocr/tesseract/archive/$(version).tar.gz",
"https://github.com/tesseract-ocr/tesseract.git")
add_ve... |
return {'nawee','naweeen','nawegen','nawerken','nawerking','nawijzen','nawinter','nawoord','nawuiven','nawijsbaar','naw','nawijn','nawal','nawees','nawerk','nawerkingen','nawerkt','nawerkte','nawerkten','nawezen','nawijs','nawijst','nawinters','nawoog','nawoorden','nawuifde','nawijsbare','nawals'} |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/hunter/blocks/cube025x025x025.mdl")
local view = table.Random(self.ViewTypes)
self:SetModel(view.model)
if view.action then
view.action(self)
end
self:PhysicsInit(SOLID_VPHYSICS)
self... |
require("logic.computer")
table.insert(computer.apis,{
name = "lan",
description = "The LAN API provides functions to communicate using circuit network",
entities = function(entity)
return entity.name == "computer-interface-entity"
end,
prototype = {
-- Private methods
_read... |
slot0 = class("TowerClimbingMap")
slot0.Ctor = function (slot0, slot1, slot2)
slot0._tf = slot1.gameView
slot0.view = slot1
slot0.map = slot2
end
slot0.Init = function (slot0, slot1)
slot0.blocks = {}
slot0.groundContainer = slot0._tf:Find("game")
slot0.blockPlayCon = slot0.groundContainer:Find("block_play_con"... |
function opponentNoteHit(id, direction, noteType, isSustainNote)
if difficulty == 2 then
if curBeat < 592 then
if curBeat > 528 then
cameraShake('cam', '0.015', '0.1')
end
end
if curBeat < 703 then
if curBeat > 688 then
cameraShake('cam', '0.015', '0.1')
end
end
end
end
fun... |
---@class ActionBar
C_ActionBar = {}
---@param flyoutID number
---@return number slots
function C_ActionBar.FindFlyoutActionButtons(flyoutID) end
---@param petActionID number
---@return number slots
function C_ActionBar.FindPetActionButtons(petActionID) end
---@param spellID number
---@return number slots
functio... |
local lfs = {
_VERSION = "LuaFileSystem 1.6.3 - FFI",
_DESCRIPTION = "LuaFileSystem-FFI is an implementation of LuaFileSystem functionality using LuaJIT FFI",
_COPYRIGHT = "LFS: Copyright (C) 2003-2015 Kepler Project LFSFFI: Copyright 2015 Pablo A. Mayobre",
_URL = "https://github.com/Positive07/lfs-ffi.lua"
}
... |
translate.AddLanguage("en", "English")
LANGUAGE.class_boss_tank = "The Tank"
LANGUAGE.description_boss_tank = "A mutated variant of the common infected that can single-handedly wipe an entire survivor team.\nIts abnormal muscle growth allows it to fling props, dismantle survivors, and resist damage at a di... |
local rechargeModeLayer = require(ViewPath .. "hall/shortCutRecharge/rechargeModeLayer");
local payChannelIcons_pin_map = require("qnFiles/qnPlist/hall/payChannelIcons_pin");
local shortCutRecharge_pin_map = require("qnFiles/qnPlist/hall/shortCutRecharge_pin");
local rechargeModeItem = require(ViewPath .. "hall/... |
ESX = nil
local data = {}
local inventoryBusy = {}
local ammo
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('esx_armories:isInventoryBusy', function(source, cb, code)
if (inventoryBusy[code] == true) then
cb(true)
else
cb(false)
end
end)
RegisterServerEvent('esx_... |
-- BLUA Scripting Project
-- Part of OutlandZoning Division
-- Scripted by Hellgawd
-- Give full credits if posting
function UmbOrcale_OnKill(pUnit,Event)
pUnit:RemoveEvents();
end
function UmbOrcale_EnterCombat(pUnit,Event)
pUnit:RegisterEvent("hittest_1",1000, 0)
pUnit:CastSpell(12550)
end
function hittest_1(pUn... |
local AddonName, AddonTable = ...
AddonTable.nighthold = {
144403,
-- Skorpyron
140902,
140901,
140884,
140849,
140888,
140790,
140827,
140898,
140815,
140875,
140876,
140789,
140840,
140862,
-- Chronomatic Anomaly
140791,
140843,
140860,
... |
local util = require("spec.util")
describe("tl.loader", function()
setup(util.chdir_setup)
teardown(util.chdir_teardown)
describe("on .tl files", function()
it("reports filename correctly in debug info (#508)", function()
local dir_name = util.write_tmp_dir(finally, {
["file1.tl"] =... |
-- The Computer Language Benchmarks Game
-- http://benchmarksgame.alioth.debian.org/
-- contributed by Mike Pall
local function domandel(pfunc)
local width = 4000
local height, wscale = width, 2.0/width
local m, limit2 = 50, 4.0
--local write, char = io.write, string.char
for y=0,height-1 do
local Ci =... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local RoactServices = require(Modules.Common.RoactServices)
local service = RoactServices.createService(script.Name)
return service |
!# /usr/bin/luajit
dvin=require('dvin')
|
-- lua/rs/Shade.lua
if Server then
-- SHADE
local originalShadeOnInitialized = Shade.OnInitialized
function Shade:OnInitialized()
originalShadeOnInitialized(self)
InitMixin(self, SleeperMixin)
end
function Shade:GetCanSleep()
return not self.moving and self:GetIsBuilt() an... |
electrician_energy_absorption = class({})
LinkLuaModifier("modifier_electrician_energy_absorption", "heroes/electrician/electrician_energy_absorption.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_electrician_energy_absorption_debuff", "heroes/electrician/electrician_energy_absorption.lua", LUA_MODIFIER_MOT... |
-- (done) window
-- TODO: make the window topmost
-- (done) receiving drag&drop - should display drag&drop info details
-- (done) the window should accept drag & drop of selected fragment of webpage
-- from firefox ("HTML Format" 0x18b -- see also ClipSpy.exe)
-- See: http://delphidabbler.com/articles?article=24
-- TOD... |
object_tangible_furniture_lifeday_lifeday_proton_chair = object_tangible_furniture_lifeday_shared_lifeday_proton_chair:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_lifeday_lifeday_proton_chair, "object/tangible/furniture/lifeday/lifeday_proton_chair.iff")
|
require("deepcore/std/class")
require("deepcore/std/callable")
StoryUtil = require("eawx-util/StoryUtil")
---@class SpawnHeroBuilder
SpawnHeroBuilder = class()
---@param hero string
function SpawnHeroBuilder:new(hero)
self.hero = {hero}
self.Active_Planets = {}
---@type PlayerObject
self.faction = ni... |
brightnodes.brightness = tonumber(minetest.setting_get("brightnodes.brightness")) or 14
brightnodes.items = {
"default:dirt",
"default:dirt_with_grass",
"default:dirt_with_dry_grass",
"default:dirt_with_snow",
"default:cobble",
"default:stone",
"default:sand",
"default:desert.*",
"default:.*tree",
"default:.... |
local config = require('idris2.config')
local M = {}
function M.request(bufnr)
local bufnr = bufnr or 0
local text_params = vim.lsp.util.make_text_document_params()
vim.lsp.for_each_buffer_client(bufnr, function(client, client_id, bufnr)
if vim.tbl_get(client.handlers, 'textDocument/semanticTokens/full') ~=... |
local checkpoint = {}
local function deepCopy(tbl)
-- creates a copy of a network with new modules and the same tensors
local copy = {}
for k, v in pairs(tbl) do
if type(v) == 'table' then
copy[k] = deepCopy(v)
else
copy[k] = v
end
end
if torch.typename(tbl) then
... |
require 'image'
local trans = torch.class('zoo.TransitionTable')
function trans:__init(args)
self.stateDim = args.stateDim
self.numActions = args.numActions
self.histLen = args.histLen
self.maxSize = args.maxSize or 1024^2
self.histType = args.histType or "linear"
self.histSpacing = args.histSpacing or 1
sel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.