content stringlengths 5 1.05M |
|---|
require("core/object");
require("core/dict");
require("gameData/gameData");
local SettingInfo = class(GameData);
SettingKeys = {
kSetting = "setting";
kMute = "mute"; --静音
kMusicVolume = "musicVolume"; --音乐音量
kEffectVolume = "effectVolume"; --音效音量
kReadPoker = "readPoker"; --语音读牌
kShake = "shak... |
return {
id = "moai",
name = "Moai",
description = "Mysterious head.",
type = "hat",
rarity = 2,
hidden = false,
}
|
return {
corvipe = {
acceleration = 0,
brakerate = 0,
buildangle = 8192,
buildcostenergy = 24415,
buildcostmetal = 1345,
builder = false,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 5,
buildinggrounddecalsizey = 5,
buildinggrounddecaltype = "corvipe_aoplane.dds",
buildpic = "co... |
-----------------------------------------
-- ID: 19001
-- Item: Gastraphetes
-----------------------------------------
require("scripts/globals/msg")
require("scripts/globals/npc_util")
-----------------------------------
function onItemCheck(target)
if target:getFreeSlotsCount() == 0 then
return tpz.msg.b... |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
client_script "help-c.lua"
|
local Node = require('gui.node')
local PackSlot = require('gui.pack_slot')
local floor = math.floor
--- Contains all the hotbar slots.
local PlayerPack = {}
PlayerPack.__index = PlayerPack
setmetatable(PlayerPack, {__index = Node})
function PlayerPack.new(player)
local self = setmetatable(Node.new(), PlayerPack)
... |
-- package.loaded['plenary.path'] = nil
-- package.loaded['plenary.neorocks'] = nil
local luvjob = require('luvjob')
local Path = require('plenary.path')
local run = require('plenary.run')
local win_float = require('plenary.window.float')
local headless = require('plenary.nvim_meta').is_headless
local job_printer... |
local ConVar_RestrictFingers = CreateClientConVar( "finger_restrict", "1", false, false )
local PANEL = {}
local MAX_ANGLE_X = 100
local MAX_ANGLE_Y = 100
function PANEL:Init()
self.Value = { 0, 0 }
self.UpdateTimer = 0
self.LastShiftState = false
-- Don't update convars straight away.
self.NextUpdate = CurT... |
local function LoadFile(path)
local WORK_DIR = string.match(debug.getinfo(1, "S").source, "@(.+\\src\\)")
local string = string
local match = string.match
-- 檢查副檔名並將路徑的 . 替換成 /
path = table.concat{string.gsub(string.sub(path, 1, string.find(path, "[^.]+$")-2), "%.", "/"),
".... |
local ffi = require 'ffi'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local cmem = require 'libcmem'
local Scalar = require 'libsclr'
local function mem_initialize(subs)
local hdr = [[
typedef struct _reduce_sum_<<qtype>>_args {
<<reduce_ctype>> sum_val;
uint64_t num; // number of non-null elem... |
local component=require("component")
local sides=require("sides")
local thread=require("thread")
require("libevent")
require("libnetbox")
require("util")
--- Auto Configure
local digital_controller = proxy("digital_controller_box")
local digital_receiver = proxy("digital_receiver_box")
local out_ticket = proxy("routin... |
Locales['sv'] = {
planting_too_steep = 'Lite för brant där, va?',
planting_too_far = 'Gå lite närmre.',
planting_not_suitable_soil = 'Där växer det nog dåligt.',
} |
GPHYSGUN = GPHYSGUN or {}
-- Enable/Disable print debbuging messages (clients can also see some messages)
GPHYSGUN.Debug = true
-- Groups that have the permission to use Physgun Freeze
GPHYSGUN.PhysgunPermission = {
["superadmin"] = true,
["admin"] = true,
["moderator"] = true,
}
-- Enable/Di... |
database = {
host = "127.0.0.1",
name = "gta5_gamemode_essential",
username = "root",
password = "Police911"
}
|
function getServerTime( )
local hour = getRealTime().hour
local minute = getRealTime().minute
triggerClientEvent(source, "setClientTime", source, hour - 4, minute)
end
addEvent("getServerTime", true)
addEventHandler("getServerTime", root, getServerTime)
function setServerTime( )
local hour = getRealTime().... |
function love.conf(love)
love.window.width = 1280
love.window.height = 800
love.window.vsync = true
end
|
-- SilentsReplacement
-- SafeWaitForChild
-- July 01, 2021
--[[
SafeWaitForChild(instance : Instance, childName : string, timeOut : number | nil)
--> Instance | nil [Child]
]]
local Signal = require(script.Signal)
local Maid = require(script.Maid)
local LocalConstants = {
DefaultTimeout = 15,
ErrorMessages =... |
--[[ Copyright (C) 2018 Google Inc.
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
EditorPlayEffect = EditorPlayEffect or class(MissionScriptEditor)
EditorPlayEffect.USES_POINT_ORIENTATION = true
function EditorPlayEffect:create_element()
EditorPlayEffect.super.create_element(self)
self._element.class = "ElementPlayEffect"
self._element.values.effect = "none"
self._element.values.screen_space = f... |
---------------------------------------------
--COTCH V.Alpha - By: ANI-KIBA, cam-maker Team Delta Bit
--------------------------------------------
--[[
* Cotch - The Game
* Copyright 2016 Carlos Monge and ANI-KIBA
* Licensed under MIT (https://github.com/carcmonge/cotch/blob/master/LICENSE)
]]--
-----------... |
--============================================================================--
-- generation.lua
--============================================================================--
-- for handling terrain generation in underground layer(s)
--============================================================================--
... |
function EarthSpirit_OnEnterCombat(Unit,Event)
Unit:CastSpell(38365)
Unit:RegisterEvent("EarthSpirit_Boulder", 8500, 0)
end
function EarthSpirit_Boulder(Unit,Event)
Unit:FullCastSpellOnTarget(38498,Unit:GetClosestPlayer())
end
function EarthSpirit_OnLeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
function EarthS... |
ITEM.Name = 'Drink Me'
ITEM.Price = 1000
ITEM.Model = 'models/props_phx/misc/potato_launcher_explosive.mdl'
ITEM.Follower = 'liquidcan'
function ITEM:OnEquip(ply, modifications)
ply:Fo_CreateFollower( self.Follower )
end
function ITEM:OnHolster(ply)
ply:Fo_RemoveFollower( self.Follower )
end |
local isActive = true
local AWSBehaviorHTTPTest = {
}
function AWSBehaviorHTTPTest:OnActivate()
local runTestEventId = GameplayNotificationId(self.entityId, "Run Tests")
self.gamePlayHandler = GameplayNotificationBus.Connect(self, runTestEventId)
self.httpHandler = AWSBehaviorHTTPNotificationsBus.Co... |
Config = {}
Config.InfiniteRepairs = false -- Should one repairkit last forever?
Config.RepairTime = 15 -- In seconds, how long should a repair take?
Config.IgnoreAbort = true -- Remove repairkit from inventory even if user aborts repairs?
Config.AllowMecano = true -- Allow mechanics to use this repairkit?
... |
object_static_worldbuilding_structures_mun_nboo_block_building_32x16_destroyed_s03 = object_static_worldbuilding_structures_shared_mun_nboo_block_building_32x16_destroyed_s03:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_block_building_32x16_destroyed_s03, "object/static/worldbuild... |
project "Mongoose"
SetupNativeDependencyProject()
local version = "3.0"
local repo = "hg:https://code.google.com/p/mongoose"
local license = "MIT"
kind "StaticLib"
files { "*.cpp" }
includedirs { "include" } |
local SiamesePlusGlobalCriterion, parent = torch.class('nn.SiamesePlusGlobalCriterion', 'nn.Criterion')
local epsilon = 1e-35
function SiamesePlusGlobalCriterion:__init()
parent.__init(self)
self.alpha = 1
self.Li = torch.Tensor()
self.gradInput = {}
self.t = 0.4
self.teta = 1
self.lambda = ... |
function Client:getServerPlayers()
local players = {LocalPlayer};
for p in Client:GetPlayers() do
table.insert(players, p);
end
return players;
end |
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
sip = cbimap:section(TypedSection, "sip", "SIP Connection", "")
sip.addremove = true
alwaysinternational = sip:optio... |
--2021.1.11 Created by kk --
REQUIRE_HELP_CHECK_INTERVAL = 10
LAST_HELP_CHECK_TIME = 0
function ShouldCheck()
local NowTime = GetTime()
if LAST_HELP_CHECK_TIME == 0 or NowTime - LAST_HELP_CHECK_TIME > REQUIRE_HELP_CHECK_INTERVAL then
LAST_HELP_CHECK_TIME = NowTime
return true
end
r... |
local states = {}
function states.gameStart()
love.graphics.printf("My Game!!!", 0, 200, love.graphics.getWidth(), "center")
end
function states.gamePaused()
love.graphics.printf("PAUSED", 0, love.graphics.getHeight() / 3, love.graphics.getWidth(), "center")
end
function states.gameOver()
love.graphics.p... |
#!/usr/bin/env lua
--[[
Dependencies
------------
- Lua - http://www.lua.org
- lpeg - http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
- cosmo - http://cosmo.luaforge.net
--]]
-- usage: lua skilldoc-ng.lua skillppfile.ils
-- output: skillppfile.html
-- Work arround for a bug in the Lua package of Scientific Lin... |
-- Copyright (C) 2021 Igara Studio S.A.
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
dofile('./test_utils.lua')
do
local s = Sprite(8, 4, ColorMode.INDEXED)
assert(#s.cels == 1)
local i = s.cels[1].image
array_to_pixels({ 0, 1, 2, 3, 3, 2, 1, 0,
... |
object_tangible_furniture_all_frn_all_lamp_desk_s02_lit = object_tangible_furniture_all_shared_frn_all_lamp_desk_s02_lit:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_desk_s02_lit, "object/tangible/furniture/all/frn_all_lamp_desk_s02_lit.iff")
|
function ReadFile()
local fp = io.open( "input.txt" )
assert( fp ~= nil )
for line in fp:lines() do
coroutine.yield( line )
end
fp:close()
end
co = coroutine.create( ReadFile )
while true do
local status, val = coroutine.resume( co )
if coroutine.status( co ) == "dead" then break end
... |
local lure = require(select('1', ...):match(".-lure%.")..'init')
--
-- Define Class
--
local CSSRule = lure.lib.upperclass:define('CSSRule')
--
-- const STYLE_RULE
--
property : STYLE_RULE {
1;
get='public';
set='nobody';
type='number';
}
--
-- const CHARSET_RULE
--
property : CHARSET_RULE {
2;
... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Administrator.
--- DateTime: 2021/2/26 13:53
---
local unitSpawner = "unit-spawner"
local damageType_Laser = "laser"
local damageType_Explosion = "explosion"
local damageType_Fire = "explosion"
local damageType_Electric = "electric"
local dam... |
return require "snownet.socket" |
-- A single player maze with a few walls. Ship starts in bottom left corner and
-- needs to get to top left corner.
--
-- Sample ships that can solve this maze: Maze1bot, RandomBot, WallHugger,
-- and Snail.
require "samplestage"
function configure(stageBuilder)
stageBuilder:setSize(1000, 700)
stageBuilder:addSta... |
-- scaffolding entry point for imgui
return dofile("imgui.lua")
|
local vstruct = require "vstruct"
-- offset from the base chunk ID of the level tile map
local OFFSET = 5
-- format of a level tile struct on disk
local MAP_TILES = [[
%d * %d * {
shape:u1
ceiling:{} floor:{}
[1|biohazard:b1 floor.dir:u2 floor.height:u5]
[1|radiation:b1 ceiling.dir:u2 ceiling.height... |
local util = require('util')
local isFunction = util.isFunction
local isSubscriber = util.isSubscriber
local create
create = function(subscribeFn)
subscribeFn = subscribeFn or util.noop
local subscriber = nil
local observable = nil
local closed = false
local subscription = nil
local createSaf... |
-- Set the theme to dark.
ui.set_theme(not CURSES and 'dark' or 'term', {font = 'Monospace', back='0x000000', fontsize = 8})
-- Allow multiple carets.
buffer.multiple_selection = true
-- Use autocomplete on all of multiple selections, not just the first.
buffer.auto_c_multi = buffer.MULTIAUTOC_EACH
-- Allow pasting ... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local PANEL = {};
function PANEL:Init()
self:SetSize(Clockwork.menu:GetWidth(), ... |
local systemTime = hs and hs.timer.secondsSinceEpoch or os.time
local t = systemTime()
local triangle = function(n) return (n + 1) * n / 2 end
local factorCount = function(n)
if n == 1 then return 1 end
local ans = 0
local max = math.sqrt(n)
for i = 1, max, 1 do
if n % i == 0 then ans = ans +... |
local extension = {}
-- locally stores the panel for easier access
local panel = nil
-- unique name for this extension
extension.name = "Example Votescreen"
-- default state
extension.is_enabled = false
-- called after the client has received all important information
function extension.OnVoteStarted()
panel = vgui.... |
local tl = require("tl")
local util = require("spec.util")
describe("Uncaught compiler errors", function()
local old_parse_program
setup(function()
old_parse_program = tl.parse_program
tl.parse_program = function(tokens, _, chunkname)
return old_parse_program(tokens, {}, chunkname)
end... |
local mock = require("luassert.mock")
local stub = require("luassert.stub")
local options = require("nvim-lsp-ts-utils.options")
local u = require("nvim-lsp-ts-utils.utils")
local o = mock(options, true)
describe("client", function()
local APPLY_EDIT = "workspace/applyEdit"
local PUBLISH_DIAGNOSTICS = "textD... |
local mod = get_mod("ItemSpawner") -- luacheck: ignore get_mod
-- luacheck: globals AllPickups Localize NetworkLookup Managers Unit
local pl = require'pl.import_into'()
mod.SETTING_NAMES = {
NEXT_PICKUP_HOTKEY = "next_pickup_hotkey",
PREV_PICKUP_HOTKEY = "prev_pickup_hotkey",
SPAWN_PICKUP_HOTKEY = "spawn_pickup_h... |
local _, ns = ...
local Config = ns.Config
----------------------------------------------------------------
-- Medias
----------------------------------------------------------------
Config["Medias"] = {
-- Fonts
["Font"] = [[Interface\AddOns\Filger\medias\fonts\normal_font.ttf]],
["PixelFont"] = ... |
local M = {}
require "ng.struct"
local binding = require "ng.binding"
------------------------------------------------------------------------------
-- Game
------------------------------------------------------------------------------
binding.DefineMethods(M, [[
void NG_Game_EnableGUI(bool b);
Window *NG_Game_Ad... |
----------------------------------------------------------------------
-- This file is part of LURE.
--
-- LURE 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... |
return {
tag = 'graphicsPrimitives',
summary = 'Draw a cylinder.',
description = 'Draws a cylinder.',
arguments = {
material = {
type = 'Material',
description = 'The Material to apply to the cylinder.'
},
x = {
type = 'number',
default = '0',
description = 'The x coord... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ServerCommands - Made by SheriffJoe. - NYPR Owner.'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.lua',
'110.lua',
'168.lua',
'885.lua',
'911.lua',
'ooc.lua'
}
dependency 'es_extended' |
for x=-5,5 do
for y=-5,5 do
if y ~= 0 then
assert(x%y == x-math.floor(x/y)*y)
end
end
end
for x=-5,5,0.25 do
for y=-5,5,0.25 do
if y ~= 0 then
assert(x%y == x-math.floor(x/y)*y)
end
end
end
do
local y = 0
for x=-100,123 do
y = y + x%17
end
assert(y == 1777)
end
do
l... |
function nvim_create_augroups(definitions)
for group_name, definition in pairs(definitions) do
vim.api.nvim_command('augroup ' .. group_name)
vim.api.nvim_command('autocmd!')
for _, def in ipairs(definition) do
local command = table.concat(vim.tbl_flatten {'autocmd', def}, ' ')
vim.api.nvim_co... |
return function()
local Merge1D = require(script.Parent.Merge1D)
describe("Array/Merge1D", function()
it("should merge two blank arrays into a blank array", function()
local Result = Merge1D({}, {})
expect(next(Result)).to.never.be.ok()
end)
it("should merge mor... |
local it_radar_passive = util.table.deepcopy(data.raw.item["radar"])
it_radar_passive.name = "radar-passive"
it_radar_passive.place_result = "radar-passive"
it_radar_passive.order = "d[radar]-b[radar-passive]"
data:extend({it_radar_passive})
|
local RESTfully = {
GET = {},
POST = {}
}
function RESTfully.json( content )
--local content = content or ''
if type( content ) ~= 'string' then
content = cjson.encode( content )
end
if ngx.var.arg_callback then
if ngx.header.content_type ~= 'text/javascript' then
ngx.header.content_type =... |
-- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
-- Namespace for functions
flowers = {}
-- Map Generation
dofile(minetest.get_modpath("flowers") .. "/mapgen.lua")
--
-- Flowers
--
-- Aliases for original flowers mod
minetest.register_alias("flowers:flower_rose", "flowers:ro... |
MENU={}selected_idx=1;DEFAULT_STYLE={ENTRY={TEXT={small=false,scale=1,fixed=false,color=12,backgroundColor=15},BORDER={COLOR=3,SELECTED_COLOR=11,ON=true},SELECTION={TRIANGLE_COLOR=12}}}function MENU:addEntry(a,b,c)if c==nil then c=DEFAULT_STYLE end;table.insert(MENU,{text=a,width=print(a,-8000000,-8000000,0,c.ENTRY.TEX... |
-----------------------------------
-- Area: Ifrits_Cauldron
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.IFRITS_CAULDRON] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Com... |
--- Get directory name including path
-- @name dirname
-- @param path full path, including or not the filename
-- @return string or false
return function (p)
return p:gsub('[^\\/]+[\\/]?$', '')
end
|
local SelectionService = game:GetService("Selection")
local Plugin = script.Parent.Parent
local Roact = require(Plugin.Vendor.Roact)
local StudioComponents = require(Plugin.Vendor.StudioComponents)
local Button = StudioComponents.Button
local AddToGroup = Roact.Component:extend("AddToGroup")
function AddToGroup:in... |
local args = { ... }
local ui = args[1]
assert(ui, 'Imevul UI library not found')
local gfx = ui.lib.cobalt.graphics
---@class ToggleButton : Checkbox Button that can be toggled on or off. Very similar to a Checkbox
local ToggleButton = ui.lib.class(ui.modules.Checkbox, function(this, data)
data = data or {}
this.pr... |
print("Output triangle wave centered on 2V. Analog output is DAC0. Update at 100Hz")
local OutputVoltage = 0
local Step = 0.02
local increasing = 1
local checkInterval=LJ.CheckInterval
LJ.IntervalConfig(0, 10) --set interval to 10 for 10ms
local mbWrite=MB.W
while true do
if checkInterval(0) then ... |
-- Copyright 2004-present Facebook. All Rights Reserved.
require 'cutorch'
require 'nn'
local FeatureLPPooling, parent =
torch.class('nn.FeatureLPPooling', 'nn.Module')
--[[
Possible inputs that we handle:
#### `batch_mode = false`
The dimensionality of the input chooses between the following modes:
```
[featu... |
mash = {
app = { "alt" },
movement = { "alt", "ctrl" },
resize = { "alt", "shift" }
}
require("setup")
require("layout")
require("modules/apps")
require("modules/windows")
require("modules/screens")
require("modules/layout")
require("modules/mouse")
require("keybind")
require("urlbind")
hs.alert.show('H... |
--负责连接验证以及网络协议解析和网络数据的转发
local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local crypt = require "skynet.crypt"
local socketdriver = require "skynet.socketdriver"
local netpack = require "skynet.netpack"
local cluster = require "skynet.cluster"
local protobuf = require "protobuf"
local conne... |
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
-- These tests are focused around verifying usage patterns
-- of tiny-ecs outside of the other tests that will eventually
-- need them. It's a bed to understand ... |
--
-- Created by IntelliJ IDEA.
-- User: kl
-- Date: 2021/3/18
-- Time: 11:17 上午
-- To change this template use File | Settings | File Templates.
local rateLimitKey = KEYS[1];
local rate = tonumber(KEYS[2]);
local rateInterval = tonumber(KEYS[3]);
local limitResult = 0;
local ttlResult = 0;
local currValue = redis.call... |
-- Weather functions
StormFox2.Menu = StormFox2.Menu or {}
local SF_SETWEATHER = 0
local SF_SETTEMP = 1
local SF_SETWIND_A = 2
local SF_SETWIND_F = 3
local SF_SETTIME = 4
local SF_SETTIME_S = 5
local SF_THUNDER = 6
local SF_YEARDAY = 7
if SERVER then
-- Gets called from sh_permission.lua
function StormFox2.Menu.Set... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmTSC2_svg()
local obj = GUI.fromHandle(_obj_newObject("... |
LoveUI.Event=LoveUI.Object:new()
local buttonNumber=0;
function LoveUI.Event:init(context, mouseLocation, keysDown, timestamp, eventType)
self.context=context;
--do conversions?
self.mouseLocation=mouseLocation;
self.modifierFlags=modifierFlags;
self.timestamp=timestamp
self.eventType=eventType;
self.keysDown... |
-----------------------------------
-- Area: Bastok Mines
-- NPC: Conrad
-- Outpost Teleporter NPC
-- !pos 94.457 -0.375 -66.161 234
-----------------------------------
require("scripts/globals/conquest")
-----------------------------------
local teleporterNation = tpz.nation.BASTOK
local teleporterEvent = 581
func... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... |
return
{
HOOK_PRE_CRAFTING =
{
CalledWhen = "Before the built-in recipes are checked.",
DefaultFnName = "OnPreCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
{{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for... |
{{/* Slot Machine Game
Suggested trigger type: Command
Trigger text: bet
*/}}
{{/* USER VARIABLES */}}
{{$dbName := "CREDITS"}} {{/* Name of the Key of your DB that stores users currency ammount */}}
{{$gameName := "Slot Machine"}} {{/* Whatever you want the game to be named */}}
{{$user := "User"}} {{/* ... |
--- === plugins.finalcutpro.touchbar.manager ===
---
--- Final Cut Pro Touch Bar Manager.
local require = require
local config = require("cp.config")
local fcp = require("cp.apple.finalcutpro")
local mod = {}
-- updateStatus(enabled) -> none
... |
-- 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 ... |
local super = Class("WebView", Container).getSuperclass()
function WebView:init(width, height, startPage, transparent, mobile)
super.init(self)
self:addMouseListener(self)
self:addMouseMotionListener(self)
self:addMouseWheelListener(self)
self.blocal = true
self.currentURL = startPage
self.transparent =... |
--[[
Name: "sv_animation.lua".
Product: "nexus".
--]]
nexus.animation = {};
nexus.animation.models = {};
nexus.animation.stored = {};
nexus.animation.convert = {
[ACT_HL2MP_IDLE_CROSSBOW] = "smg",
[ACT_HL2MP_IDLE_GRENADE] = "grenade",
[ACT_HL2MP_IDLE_SHOTGUN] = "smg",
[ACT_HL2MP_IDLE_PHYSGUN] = "heavy",
[ACT_HL2M... |
--[[
Handle for accessing the inventory.
Copyright (C) Udorn (Blackhand)
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 2
of the License, or (at your option) any later versio... |
---
-- @class TBHUD
-- @desc Display of and interaction with ttt_traitor_button
local surface = surface
local pairs = pairs
local math = math
local abs = math.abs
local table = table
local net = net
local IsValid = IsValid
TBHUD = {}
TBHUD.buttons = {}
TBHUD.buttons_count = 0
TBHUD.focus_but = nil
TBHUD.focus_stick ... |
-- Streamable
-- Stephen Leitnick
-- March 03, 2021
--[[
streamable = Streamable.new(parent: Instance, childName: string)
streamable:Observe(handler: (child: Instance, janitor: Janitor) -> void): Connection
streamable:Destroy()
--]]
local Janitor = require(script.Parent.Janitor)
local Signal = require(script.Pa... |
--[=[
Utility functions to configure a proximity prompt based upon the
input key map given.
@class ProximityPromptInputUtils
]=]
local require = require(script.Parent.loader).load(script)
local InputKeyMapUtils = require("InputKeyMapUtils")
local INPUT_MODES = require("INPUT_MODES")
local ProximityPromptInputUtil... |
-- setup environment for the codegen'd file to execute in
local codeEnvironment = {
}
local types = {}
local natives = {}
local curType
local curNative
local cfx = require('cfx')
function codeEnvironment.type(typeName)
-- create a new type entry
types[typeName] = {
name = typeName
}
-- set a local
local ty... |
sniper_assassinate_dm2017 = class({})
--------------------------------------------------------------------------------
function sniper_assassinate_dm2017:GetAOERadius()
return self:GetSpecialValueFor( "scepter_radius" )
end
--------------------------------------------------------------------------------
function s... |
--- Riak bucket. Can only be used with @{resty.riak} created client
-- @see resty.riak
-- @module resty.riak.bucket
-- @alias _M
local require = require
local setmetatable = setmetatable
local error = error
local _M = require("resty.riak.helpers").module()
local riak_object = require "resty.riak.object"
local riak_c... |
--[[
Name: cl_menu_radio_item.lua
For: TalosLife
By: TalosLife
]]--
local RADIO_TAKE = 5
local Panel = {}
function Panel:Init()
self.m_colSold = Color( 255, 50, 50, 255 )
self.m_colSell = Color( 50, 255, 50, 255 )
self.m_colPrice = Color( 120, 230, 110, 255 )
self.m_pnlNameLabel = vgui.Create( "DLabel", self ... |
local telescope = require("telescope")
local actions = require("telescope.actions")
local u = require("utils")
telescope.setup({
extensions = {
fzf = { fuzzy = true, override_generic_sorter = true, override_file_sorter = true },
},
defaults = {
vimgrep_arguments = {
"rg",
"--color=never",
... |
--[[ ============================================================================================================
Author: Rook
Date: March 5, 2015
Called when Deafening Blast is cast. Mutes the unit.
================================================================================================================= ]]... |
local K, C, L, _ = unpack(select(2, ...))
if C["minimap"].enable ~= true then return end
local select = select
local hooksecurefunc = hooksecurefunc
local function RearrangeDropDownMenu()
DropDownList1:ClearAllPoints()
DropDownList1:SetPoint("TOPRIGHT", MiniMapLFGFrame, "BOTTOMLEFT", 0, 0)
end
hooksecurefunc("Toggl... |
return {
init_effect = "",
name = "意大利V2 测试者分身合体",
time = 0,
color = "yellow",
picture = "",
desc = "",
stack = 1,
id = 8871,
icon = 8871,
last_effect = "",
effect_list = {
{
type = "BattleBuffDeath",
trigger = {
"onUpdate"
},
arg_list = {
time = 3.6
}
},
{
type = "BattleBuffA... |
--[[
BaseCtrl. Base controller.
@author: muliang
@date: 2018-1-3
@description:
usually put logic and net message handling here
]]
local MsgDispatcher = require "base.MsgDispatcher"
require "base.CtrlManager"
local BaseCtrl = class("BaseCtrl")
function BaseCtrl:ctor()
if self.netHand... |
local ItemPanel = {}
ItemPanel.Identity = "item_panel"
ItemPanel.Locale = {
["name"] = {
["english"] = "Item Panel",
["russian"] = "Панель предметов"
},
["desc"] = {
["english"] = "Shows what items enemy hero had in last time he was seen.",
["russian"] = "Показывает какие предметы имел вражеский герой в посл... |
local CustomFileParser = require("mod.cdata_tools.api.custom_file.CustomFileParser")
local Fs = require("api.Fs")
-- This module consumes the raw output from CustomFileParser and returns a
-- structured Lua table.
local CustomFileDecoder = {}
function CustomFileDecoder.decode(obj)
local result = {
options = ... |
MPPath=
{
Editor={
--Model="Editor/Objects/ForbiddenArea.cgf",
Icon="forbiddenarea.bmp",
},
type = "MPPath",
Properties =
{
fileNodeDataFile = "",
},
}
----------------------------------------------------------------------------------------------------
function MPPath:IsShapeOnly()
return 1;
end
... |
-- example "loop" daemon, using os.sleep and sending values to the other loop thread
local i = 0
daemon.register(daemon.loop, {
loop = function ()
chan.write("loop_example", i)
print("sending ".. i .. " to loop_example")
i = i + 1
sleep(2)
end
})
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.