content stringlengths 5 1.05M |
|---|
--
-- 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 Apache License, Version 2.0
-- (the "License"); you may ... |
local ops = require("redisOps") --加载redis操作模块
local row = ops.rawRow() --数据库当前变更的一行数据,table类型,key为列名称
local action = ops.rawAction() --当前数据库事件,包括:insert、updare、delete
local userName = row["USER_NAME"] --获取USER_NAME列的值
local createTime = row["CREATE_TIME"] --获取CREATE_TIME列的值,13位时间戳
local key = "users"
if... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('DomeSkins', {
construction_entity = "DomeBasicFacetConstruction",
cupola_entity = "DomeBasicFacet_Glass",
cupola_entity_opt = "DomeBasicFacet_Top",
entity = "DomeBasicFacet",
entrance_entity = "DomeFacet_Entrance",
id = "DomeBasicFacet",... |
AddCSLuaFile("shared.lua")
include("shared.lua")
SWEP.ManaCost = NEO_MANA_COST
function SWEP:SecondaryAttack()
if self.Owner:GetMana() > self.ManaCost then
self.Owner:SetVelocity(self.Owner:GetForward() * 1000)
self.Owner:TakeMana(self.ManaCost)
end
end
|
local function SendMissingExtenderMessage(uuid)
local character = Ext.GetCharacter(uuid)
if character and character.UserID ~= character.ReservedUserID and character.IsPlayer and CharacterIsControlled(uuid) == 1 then
return Ext.PlayerHasExtender(uuid)
end
return false
end
Ext.RegisterOsirisListener("UserConnected... |
require "Wherigo"
ZonePoint = Wherigo.ZonePoint
Distance = Wherigo.Distance
Player = Wherigo.Player
-- String decode --
function _dEX(str)
local res = ""
local dtable = "\055\042\063\077\064\039\067\105\024\019\025\115\032\124\125\040\059\114\101\010\006\023\104\046\119\018\074\034\102\089\099\056\075\122\017\083... |
--[[
Name: cl_menu_crafting_table.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
surface.CreateFont( "Crafting_Trebuchet20", {siz... |
function love.conf(t)
t.window.width = 1280
t.window.height = 720
end |
-- Copyright 2018 the wonderful GUI project authors
--
-- 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 applicabl... |
-- This is a fix for the global resource not starting up
function resStart()
setTimer(loadGlobal, 1000, 1)
end
addEventHandler("onResourceStart", getResourceRootElement(), resStart)
function loadGlobal()
restartResource(getResourceFromName("global"))
setTimer(displayCredits, 1000, 1)
end
function di... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
files {
'PoliceFunctions-API.dll',
'NativeUI.dll'
}
client_scripts {
'client.net.dll'
}
|
Quest.Config.Storylines["the_great_heist"] ={
name = "The Great Heist",
id = "the_great_heist",
desc = "Take on the biggest robbery and hit the bank vault",
quests = {
[1] = {
name = "Purchase a Mask",
desc = "Purchase a mask from the F4 menu",
func = function(ply, data, partyCount)
return true
en... |
-- fireflies/documentation.lua
-----Load documentation via doc_helper------------------------
local MP = minetest.get_modpath(minetest.get_current_modname())
local docpath = MP .. DIR_DELIM .. "doc"
doc.add_category("fireflies",
{
name = "_fireflies_",
description = "Fireflies Documentation",
build_formspec = doc.e... |
--
--SHEEP
--
ccmobs2 = {}
minetest.register_node("ccmobs2:sheep_block", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.3125, -0.375, -0.4375, 0.3125, 0.1875, 0.1875},
{-0.1875, -0.25, 0.125, 0.1875, 0.0625, 0.375},
{-0.25, -0.0625, 0.1875, 0.25, 0.06, 0.3125},
{-0.125, -0.3125, ... |
return {
init_effect = "",
name = "灭火器T3",
time = 0,
color = "blue",
picture = "",
desc = "起火概率降低30%,持续时间缩短6秒,伤害降低20%",
stack = 1,
id = 6031,
icon = 6031,
last_effect = "",
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach"
},
arg_list = {
attr = "igniteResist",
nu... |
repeat wait() until game.Players.LocalPlayer.Character
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
-- services
local ECS = require(game.ReplicatedStorage:WaitForChild("ECS"))
local ECSUtil = require(game.ReplicatedStorage:WaitForCh... |
return function()
local Toast = script.Parent
local Dialog = Toast.Parent
local App = Dialog.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local TestStyle = require(UIBlox.App.Style.Validator.TestStyle)
local mockStyleComponent = require(UIBlox.Utility.m... |
-- local Class = require "libs.class"
local Concord = require "libs.concord"
local Position = require "components.position"
local Velocity = require "components.velocity"
local Sprite = require "components.sprite"
local Input = require "components.input"
local Player = require "components.player"
local Hitbox = require... |
local const = require("scrollbar.const")
local utils = require("scrollbar.utils")
local M = {}
local NAMESPACE = vim.api.nvim_create_namespace(const.NAME_PREFIX)
M.render = function()
vim.api.nvim_buf_clear_namespace(0, NAMESPACE, 0, -1)
local config = require("scrollbar.config").get()
if not config.sh... |
--[[
Number.lua
--]]
local Number, dbg = Object:newClass{ className = 'Number', register = false }
--- Constructor for extending class.
--
function Number:newClass( t )
return Object.newClass( self, t )
end
--- Constructor for new instance.
--
function Number:new( t )
return Object.new( self, t ... |
local noop = function() end
local vararg_callback = function(...) end
local call_noargs = function(fn) fn() end
local call_vararg = function(fn, ...) fn(...) end
local call_3 = function(fn, a, b, c) fn(a, b, c) end
NUM_ITER = 1000
bench = { }
bench.noop = noop
bench.vararg_callback = vararg_callback
bench.call_no... |
pg = pg or {}
pg.ship_skin_template_13 = {
[307120] = {
ship_group = 30712,
name = "{namecode:208}",
bullet_skin_secondary = "",
hand_id = 14,
bgm = "",
illustrator2 = -1,
bg = "",
id = 307120,
group_index = 0,
shop_id = 0,
painting = "gecheng",
air_bomb_skin = "",
air_bullet_skin = "",
sho... |
--Reading "user agent" string from internetoptions.h
function userAgent()
local f = io.open("../idp/internetoptions.h")
for l in f:lines() do
local s = l:match("InnoDownloadPlugin/%d%.%d")
if s then
f:close()
return s
end
end
io.write("Er... |
--[[
Copyright 2016 Whizzbang Inc
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 writin... |
Bullet = Class{}
function Bullet:init(x, y)
self.x = x + 10
self.y = y + 10
self.dy = 1
self.dx = 1
self.width = 5
self.height = 5
self.mouseX = love.mouse.getX() - 12
self.mouseY = love.mouse.getY() - 12
self.Vy = self.mouseY - y
self.Vx = self.mouseX - x
self.M = math.sqrt(... |
local o = vim.bo
o.shiftwidth = 8
o.expandtab = false
|
local Color3 = require("datatypes.Color3")
return {
[1] = { "White", Color3.fromRGB(242, 243, 243) },
[2] = { "Grey", Color3.fromRGB(161, 165, 162) },
[3] = { "Light yellow", Color3.fromRGB(249, 233, 153) },
[5] = { "Brick yellow", Color3.fromRGB(215, 197, 154) },
[6] = { "Light green (Mint)", Colo... |
--[[
File system utilities.
A thin wrapper around `lua-file-system` and `io`, tailored to Lettersmith's
particular needs.
]]--
local lfs = require("lfs")
local attributes = lfs.attributes
local mkdir = lfs.mkdir
local rmdir = lfs.rmdir
local transducers = require("lettersmith.transducers")
local reductions = transdu... |
supportedplatforms
{
"Android",
"POSIX",
"GLES",
}
defines {
"PLATFORM_ANDROID",
"PLATFORM_POSIX",
"PLATFORM_GLES",
}
|
--[[
* Natural Selection 2 - Combat++ Mod
* Authors:
* WhiteWizard
*
* Allows PowerPoints to be used in an 'Unsocketed' state. Marines can use the 'Use' key
* to socket PowerPoints now.
*
* Overriden Functions:
* 'PowerPoint:GetCanBeUsed' - Removed the 'not socketed' check.
*
* Wrapped ... |
LANGUAGE = {
TeamName = "PT-%s",
TeamStatus = "PT-%s %s",
TeamMemberStatus = "MEMBER",
TeamOwnerStatus = "LEADER",
tabProtectionTeam = "Protection Team",
tabCreateTeam = "CREATE PT",
tabJoinTeam = "JOIN PT",
tabLeaveTeam = "LEAVE PT",
TeamTransferOwner = "Transfer Lead",
TeamKickMember = "Kick Member",
T... |
FindMetaTable("Player").GeoIP = function(pl)
if not GeoIP then require 'geoip' end
if not GeoIP then error "GeoIP not found" end
return GeoIP.Get(pl:IP())
end |
local calc_util = require("scripts.calc.util")
--- @param rates table
--- @param entity LuaEntity
--- @param emissions_per_second number
--- @param prototypes table<string, table<string, LuaEntityPrototype>>
return function(rates, entity, emissions_per_second, prototypes)
local entity_prototype = entity.prototype
... |
assert(#hv.Globals == 0)
assert(hv.Test == nil)
|
-----------------------------------------
-- ID: 5002
-- Scroll of Valor Minuet
-- Teaches the song Valor Minuet
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(394)
end
function onItemUse(target)
target:addSpell(394)
end
|
C_AreaPoiInfo = {}
---@param uiMapID number
---@return number[] areaPoiIDs
---[Documentation](https://wow.gamepedia.com/API_C_AreaPoiInfo.GetAreaPOIForMap)
function C_AreaPoiInfo.GetAreaPOIForMap(uiMapID) end
---@param uiMapID number
---@param areaPoiID number
---@return AreaPOIInfo poiInfo
---[Documentation](https:/... |
local busted_path = "c:/lua/share/lua/5.4/?.lua;c:/lua/share/lua/5.4/?/init.lua;"..
"c:/lua/luarocks/lua/?.lua;c:/lua/luarocks/lua/?/init.lua;"..
"c:/lua/share/lua/5.4/busted/modules/files/?.lua;"
package.path=busted_path..package.path;
package.cpath="c:/lua/lib/lua/5.4/?.dll;"..package.cpath;
local k,l,_=pcal... |
--[[ ============================================================================================================
Author: Rook
Date: February 18, 2015
Called when Frost Nova is cast. Damages the target as well as nearby enemies, and slows them.
Additional parameters: keys.AreaRadius
===============================... |
local addonName, addon = ...
function addon.createOptionsPanel(title, subtext)
local optionsPanel = CreateFrame("Frame")
optionsPanel:Hide()
optionsPanel.name = addonName
local fontTitle = optionsPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
fontTitle:SetJustifyH("LEFT")
fontTitle:SetJustifyV("T... |
local sawing_registry = assert(yatm.sawing.sawing_registry)
local wood_types = {}
local has_stairs = rawget(_G, "stairs") ~= nil
if rawget(_G, "nokore_world_tree_acacia") then
wood_types.acacia = true
end
if rawget(_G, "nokore_world_tree_big_oak") then
wood_types.big_oak = true
end
if rawget(_G, "nokore_world_... |
-- ======================================================================
-- Jurassic Jigsaw
-- Advent of Code 2020 Day 20 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ======================... |
function Skada:FormatNumber(number)
if number then
if self.db.profile.numberformat == 1 then
if number > 10e8 then
return ("%02.1f億"):format(number / 1e8)
elseif number > 1e8 then
return ("%02.2f億"):format(number / 1e8)
elseif number > 10e4 then
return ("%02.0f萬"):format(number / 1e4)
elseif ... |
----------------------------------------------------------------------------------
--- Total RP 3
--- Dashboard
--- ---------------------------------------------------------------------------
--- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--- Copyright 2018 Renaud "Ellypse" Parize <ellypse@total... |
-- 游戏服数据库
-- auth:diandian
-- date:2017/6/15
local skynet = require 'skynet'
local mysql = require "skynet.db.mysql"
local cjson = require "cjson"
local ex_log = require "ex_log"
local NO_ERR = nil
local _db
local _dbname
local CMD = {}
local TS = tostring
local function QS(v)
return mysql.quote_sql_str(TS(v)... |
-- TODO: Consider contributing this to Roact itself
local Packages = script.Parent.Parent
local Roact = require(Packages.Roact)
--[[
Passed a provided ref to given render callback. Can be used to treat class
components as host components and assign the passed-in ref to the underlying
host component
]]
local functio... |
local bmp = require( "bitmap" )
local test = require( "test" )
local reference = bmp.open( test.get_resource_file( "reference.bmp" ) )
local tests = {}
function tests.blit()
local dst = bmp.create( 10, 10, 0xFFFF0000 )
local src1 = bmp.create( 4, 4, 0xFF00FF00 )
local src2 = bmp.create( 4, 4, 0xFF0... |
-- http://127.0.0.1/test/cgilua/lfi3.lua?file=c:\boot.ini%00
local file = cgilua.QUERY.file
if file ~= nil then
cgilua.handlelp(file..".lp")
end |
WireToolSetup.setCategory( "Physics/Force" )
WireToolSetup.open( "hoverball", "Hoverball", "gmod_wire_hoverball", nil, "Hoverballs" )
if CLIENT then
language.Add( "tool.wire_hoverball.name", "Wired Hoverball Tool" )
language.Add( "tool.wire_hoverball.desc", "Spawns a hoverball for use with the wire system." )
langu... |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... |
-- This file uses models and textures taken from TomTom. The 3d arrow model was created by Guillotine (curse.guillotine@gmail.com) and 2d minimap textures by Cladhaire.
----------------------------
-- Initialize variables --
----------------------------
-- globals
DBM.Arrow = {}
-- locals
local arrowFrame ... |
mp = Map("ipsec", translate("IPSec VPN Server"))
mp.description = translate("IPSec VPN connectivity using the native built-in VPN Client on iOS or Andriod (IKEv1 with PSK and Xauth)")
mp:section(SimpleSection).template = "ipsec/ipsec_status"
s = mp:section(NamedSection, "ipsec", "service")
s.anonymouse = true
enab... |
require "util"
require "shared"
local entity_mapping = {
-- t1
["replicating-ultra-fast-belt"] = {
copy = "ultra-fast-belt",
icon = "__replicating-belts__/graphics/icons/ultimate/replicating-ultra-fast-belt.png",
tint = {r=0,g=211,b=37},
},
-- t2
["replicating-extreme-fast-belt"] = {
... |
require 'customizations'
cppdialect 'C++17'
debugdir '../assets'
exceptionhandling 'Off'
flags { 'MultiProcessorCompile' }
--gradleversion( '3.1.4' )
includedirs { '../include/' }
--maxsdkversion '28'
--minsdkversion '23'
objdir '../obj/%{cfg.platform}/%{cfg.buildcfg}'
rtti 'Off'
targetdir '../%{iif(prj.kind == "Stati... |
package.path = package.path .. ";../../?.lua"
iffy=require 'iffy'
iffy.newImage("dice.png")
--same as iffy.newImage("dice","dice.png")
iffy.newSprite("dice","dice3",68,0,68,68)
iffy.newSprite("dice","dice4",68,136,68,68)
iffy.exportXML("dice")
--same as iffy.exportCSV("dice","","dice.csv")
--if you want to export ... |
dofile(ModPath .. "infcore.lua")
-- If sydch's skill overhaul is enabled then touch the trees differently
if IreNFist.mod_compatibility.sso then
-- I checked the BLT source and registering the same hook twice isn't a big deal, the second call is ignored.
-- What *is* a big deal is trying to add a hook before it's r... |
User = game.Players.LocalPlayer
Char = User.Character
cen = Instance.new("Part", User.Character)
cen.BottomSurface = "Smooth"
cen.TopSurface = "Smooth"
cen.CanCollide = false
cen.formFactor = "Symmetric"
cen.Size = Vector3.new(1,1,1)
cen.BrickColor = BrickColor.new("Really black")
cen.Transparency = 1
cen2 = Instan... |
slot0 = class("MiniHubMediator", import("..BaseMiniGameMediator"))
slot0.register = function (slot0)
slot0.super.register(slot0)
slot0.viewComponent:SetExtraData({})
end
slot0.OnMiniGameOPeration = function (slot0, slot1, slot2)
slot0:sendNotification(GAME.SEND_MINI_GAME_OP, {
hubid = slot0.miniGameProxy:GetHubB... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Approved Noodles";
ITEM.model = "models/props_junk/garbage_takeoutcarton001a.mdl";
ITEM.width = 1;
ITEM.height = 1;
ITEM.description = "A takeout shaped box with cooked hokkien 'egg' noodles and some light... |
function mult(value)
for t=1,value*3 do
Note("I AM LUA!")
end
return value*3
end
function auto(cmd,start,stop,target)
for t=start,stop do
Note(cmd.." "..t.."."..target)
end
end
function updateRoomInfo(room)
--room = gmcpTable("room.info")
--now we are called directly from java, with an argument in room.
--chec... |
local TESTING_LOCALLY = false -- If true, there must be a module named `api` that returns the api dump json
local util = require(script.Parent.Util)
local pluginWarn, pluginError = util.pluginWarn, util.pluginError
local HttpService = game:GetService("HttpService")
local API_URL = "https://raw.githubusercontent.com/... |
local fs = require('fs')
local uv = require('luv')
local rpc = require('app/rpc')
local core = require('core')
local config = require('app/conf')
local path = require('path')
local json = require('json')
local util = require('util')
local devices = require('devices')
local exports = {}
local conte... |
-- Roblox character sound script
-- brandonisabillionare 2021
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local FootstepsSoundGroup = game:GetService("SoundService"):WaitForChild("Footsteps")
local SOUND_DATA = {
Climbing = {
SoundId = "rbxasset://sounds/action_footst... |
--[[
Click Gui
author: Cattyn
the code is bad.. sorry.
]]--
function main()
local module = Module.new("SimpleGui", "Funny", "VISUAL", this)
module:body(function(mod)
local gui = GuiBuilder.new("simple gui")
local current = 0
local help = {
"§eControls: ",
... |
data:extend{
{
type = "item-with-entity-data",
name = "diesel-locomotive",
icon = "__base__/graphics/icons/locomotive.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "train-transport",
order = "a[train-system]-g[diesel-locomotive]",
place_result = "diesel-l... |
a = {}
a[2 ^ 31] = 10; a[2 ^ 31 + 1] = 11; a[-2 ^ 31] = 12;
|
--[[ Config Here ]]
local Radio = false -- Radio On/ Off after the engine starts
local Time = 15 * 1000 -- Time for each stage (ms)
--[[ Hotwire Anim --]]
local animDict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@"
local anim = "machinic_loop_mechandplayer"
local flags = 49
--[[ Load Anim Dict Function --]]
... |
local baseroom, moveroom
local dirs = {"n", "s", "w", "e", "nw", "ne", "sw", "se", "u", "d"}
if not matches[3] then
cecho("\n<white:red>Invalid Usage.<reset>\n")
cecho("<blue>/------------------------------------------------------\\<reset>\n")
cecho("<blue>| <white>repos [me] <direction> [roomID#]<blue> ... |
local Min, parent = torch.class('nn.Min', 'nn.Module')
function Min:__init(dimension)
parent.__init(self)
dimension = dimension or 1
self.dimension = dimension
self.indices = torch.Tensor()
end
function Min:updateOutput(input)
return input.nn.Min_updateOutput(self, input)
end
function Min:updateGradIn... |
local myData = {}
local messagesDB = require("classes.messagesDB")
myData.platform = "iOS"
if "simulator" == system.getInfo("environment") and "iP" ~= string.sub( system.getInfo("model"), 1, 2 ) then
myData.platform = "Android"
elseif "device" == system.getInfo("environment") and "Android" == system.getInfo("platf... |
local t = Def.ActorFrame {}
if NSMAN:IsETTP() then
t[#t + 1] = LoadActor("../ScreenSelectMusic decorations/default")
return t
end
t[#t + 1] = LoadActor("../_chatbox")
t[#t + 1] = LoadActor("../ScreenSelectMusic decorations/profile")
t[#t + 1] = LoadActor("../ScreenSelectMusic decorations/msd")
t[#t + 1] = LoadActor("... |
bastion_power_flux = class({})
LinkLuaModifier("modifier_bastion_power_flux_lua", "heroes/bastion/bastion_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
function bastion_power_flux:OnSpellStart(keys)
local level = self:GetLevel()
local caster = self:GetCaster()
local countNeed = self:GetSpecialValueFor("count_need")
l... |
local _
local LIST_WITHDRAW = 1
local LIST_DEPOSIT = 2
local lastUsedBank = 0
local currentUsedBank = 0
local lastActionName
local esoSubscriber
local function GetCategoryTypeFromWeaponType(bagId, slotIndex)
local weaponType = GetItemWeaponType(bagId, slotIndex)
if weaponType == WEAPONTYPE_AXE or weaponType ... |
local b4,_ = {},{}
-- Find and report local variables that accidently became globals.
b4={}; for k,_ in pairs(_ENV) do b4[k]=k end
function _.rogues()
for k,v in pairs(_ENV) do
if not b4[k] then _.yellow("-- rogue? %s %s",k,type(v)) end end end
-- Print colored text to standard error.
function _.hue(n,s) ret... |
class 'ItemEquipable' extends 'ItemBase'
ItemEquipable.name = 'Equipment Base'
ItemEquipable.description = 'An item that can be equipped.'
ItemEquipable.category = 'item.category.equipment'
ItemEquipable.stackable = false
ItemEquipable.equip_slot = 'item.slot.accessory'
ItemEquipable.equip_inv = 'hotbar'
ItemEquipable... |
-------------------------------------------------------------------------------
-- message.lua
-------------------------------------------------------------------------------
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local INFO_MSG = tengine.INFO_MSG
local DEBUG_MSG = tengine.DEBUG_MSG
local ERROR_MSG = ... |
--[[
Normalize Audio
Author: Native Instruments
Written by: Yaron Eshkar
Modified: June 4, 2021
--]]
-- Imports
local root_path = filesystem.parentPath(scriptPath)
package.path = root_path .. "/?.lua;" .. package.path
local ctAudio = require("Modules.CtAudio")
local ctUtil = require("Modules.CtUtil")
-------------... |
local P = require("levelhead.data.properties")
local LHS = {}
function LHS:serializeHeaders(level)
local s = level.settings
local h = self.rawHeaders
h.prefix = s.prefix
h.zone = s.zone
h.campaignMarker = s.campaignMarker
h.width = level:getWidth()
h.height = level:getHeight()
--title
for... |
object_draft_schematic_droid_component_chassis_droid_mining = object_draft_schematic_droid_component_shared_chassis_droid_mining:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_component_chassis_droid_mining, "object/draft_schematic/droid/component/chassis_droid_mining.iff")
|
ui_page 'html/index.html'
files {
'html/index.html',
'html/static/css/app.css',
'html/static/js/app.js',
'html/static/js/manifest.js',
'html/static/js/vendor.js',
'html/static/config/config.json',
-- Coque
'html/static/img/coque/s8.png',
'html/static/img/coque/iphonex.png',
'html/static/img/coque/base.pn... |
require('cosmic-ui').setup({
border_style = "rounded",
})
|
if RaidSystem then return end
RaidSystem = {}
local function AddFile(File, dir)
local fileSide = string.lower(string.Left(File, 3))
if SERVER and fileSide == "sv_" then
include(dir .. File)
print("[RaidSystem] SV INCLUDE: " .. File)
elseif fileSide == "sh_" then
if SERVER then
... |
-------------------------------------------------------------------------------
--- AUTHOR: Nostrademous
--- GITHUB REPO: https://github.com/Nostrademous/Dota2-WebAI
-------------------------------------------------------------------------------
BotsInit = require( "game/botsinit" )
local X = BotsInit.CreateGene... |
--[[
© 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
--]]
Clockwork.kernel:IncludePrefixed("shared.lua");
AddCSLuaFile("cl_init.lua");
AddC... |
--
-- Created by IntelliJ IDEA.
-- User: ${USER}
-- Date: ${YEAR}-${MONTH}-${DAY}
-- Time: ${HOUR}:${MINUTE}
-- To change this template use File | Settings | File Templates.
--
|
-- Script to find the install path for a C module. Public domain.
if not arg or not arg[1] then
io.write("Usage: lua installpath.lua modulename\n")
os.exit(1)
end
for p in string.gfind(package.cpath, "[^;]+") do
if string.sub(p, 1, 1) ~= "." then
local p2 = string.gsub(arg[1], "%.", string.sub(package.config... |
require( "components/cavern/cavern_encounter" )
--------------------------------------------------------------------
if encounter_combat_spirit_breaker == nil then
encounter_combat_spirit_breaker = class( {}, {}, CCavernEncounter )
end
--------------------------------------------------------------------
function ... |
module 'mock'
CLASS: AnimatorTrackVecComponent ( AnimatorValueTrack )
:MODEL {
Field 'comId' :int() :no_edit();
}
--------------------------------------------------------------------
function AnimatorTrackVecComponent:__init( comId, name )
self.comId = comId
self.name = name
end
function AnimatorTrackVecCompone... |
return {'kepen','keper','keperband','keperen','keperflanel','kepie','keppel','keppeltje','keppel','kepel','kepser','keperbanden','keperlijnen','kepers','kepert','kepertje','kepertjes','kepies','keppeltjes','kepietje','keperbandje'} |
local utils = {}
function utils.set(t)
local s = {}
for _, v in ipairs(t) do
s[v] = true
end
return s
end
function utils.copy(t)
local n = {}
for k, v in pairs(t) do
n[k] = v
end
return n
end
-- Returns an IO stream suitable for use with io.write() which writes
-- its output to a ... |
Config = {}
Config.Display = {
allowGPS = true -- Display callouts on the GPS
} |
local robbing = false
local bank = ""
local secondsRemaining = 0
function bank_DisplayHelpText(str)
SetTextComponentFormat("STRING")
AddTextComponentString(str)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
function bank_drawTxt(x,y ,width,height,scale, text, r,g,b,a, outline)
SetTextFont(0)
SetTextPropo... |
return {
_fold = true,
_id = "solarSystem1",
_type = "SolarSystem",
height = "$fill",
width = "$fill",
_children = { {
_id = "drawNodeCircle1",
_type = "DrawNodeCircle",
radius = 10,
scaleX = "$minScale",
scaleY = "$minScale",
x = 640,
y = 384,
c4f = {
... |
require("packer").use {
-- Package info {{{
"rcarriga/vim-ultest";
requires = "vim-test/vim-test";
run = ":UpdateRemotePlugins";
-- vim:set fdm=marker fdl=0: }}}
config = function()
vim.cmd [[let test#javascript#jest#options = "--color=always"]]
vim.g.ultest_pass_sign = ""
vim.g.ultest_fail_si... |
-- Automatically subbed strings:
-- that/those
-- %S
-- a/an
-- this/these
local strings = {
ground = {
"Look here!",
"Look at this spot!",
"Look over here!",
"Look!",
"See here.",
"Here!",
},
item = {
"Look at that/those %S there!",
"Look... |
function getRequiredComponents()
return {accelerationEntities = {"acceleration", "accelerationController"}}
end
function update()
for i, entity in ipairs(accelerationEntities) do
entity.acceleration.movingUp = game.input:isKeyDown(game.input:keyFromString(entity.accelerationController.keyUp))
entity.acceleration... |
RMenu.Add('Job', 'Interim', RageUI.CreateMenu("", "Missions disponnible", nil, nil, "root_cause", "Banner"), true)
RMenu:Get('Job', 'Interim'):DisplayGlare(false);
RMenu:Get('Job', 'Interim').Closable = false;
RMenu.Add('Job', 'Ouvrier', RageUI.CreateMenu("", "Prise de service", nil, nil, "root_cause", "Banner"), true... |
if table.getn(arg) > 2 then
print("Too many arguments passed in.")
print("Usage: wget <url> <file_name>")
elseif table.getn(arg) < 2 then
print("Not enough arguments passed in.")
print("Usage: wget <url> <file_name>")
else
local url = arg[1]
local file_name = arg[2]
local url_content = http.get(url)
local outp... |
local chronos = require"chronos"
--local profiler = require"profiler"
local total = chronos.chronos()
local quiet = false
local function stderr(...)
if not quiet then
io.stderr:write(string.format(...))
end
end
-- print help and exit
local function help()
io.stderr:write([=[
Usage:
lua proces... |
--- Tools for working with entities.
-- @module Entity
-- @usage local Entity = require('stdlib/entity/entity')
local Entity = {_module_name = 'Entity'}
setmetatable(Entity, {__index = require('stdlib/core')})
local Is = require('stdlib/utils/is')
--- Tests whether an entity has access to a given field.
-- @tparam L... |
---@class BaseState
BaseState = class()
function BaseState:ctor()
self.stateMachine = nil
end
function BaseState:OnEnter(data, subState)
end
function BaseState:OnExit()
end
function BaseState:OnUpdate()
end
StateMachine = class()
function StateMachine:ctor(name, invalidId)
self.name = name or "UnnamedStateMachi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.