content stringlengths 5 1.05M |
|---|
-- align-to
local io = require "vstruct.io"
local a = {}
function a.hasvalue()
return false
end
function a.size(w)
assert(tonumber(w), "format requires a size")
return nil
end
function a.read(fd, _, align)
local cur = fd:seek()
if cur % align ~= 0 then
fd:seek("cur", align - (cur % align))
end
end
... |
-- NoIndex: true
--[[
Lokasenna_GUI example
- Demonstration of the Listbox, Menubar, and TextEditor classes
]]--
-- The Core library must be loaded prior to anything else
local lib_path = reaper.GetExtState("Lokasenna_GUI", "lib_path_v2")
if not lib_path or lib_path == "" then
reaper.MB("Couldn't load the Lo... |
print "\ncoofirstonly.lua calling init()"
io.flush()
init("spmv.cpp", "spmv", 0)
print "coofirstonly.lua calling init() DONE\n"
io.flush()
print "\ncoofirstonly.lua calling dofile(cudaize.lua)"
io.flush()
dofile("cudaize.lua")
print "coofirstonly.lua calling dofile(cudaize.lua) DONE\n"
io.flush()
NNZ=16... |
Locales['pl'] = {
-- Cloakroom
['cloakroom'] = 'szatnia',
['citizen_wear'] = 'ubranie Cywilne',
['police_wear'] = 'mundur',
['gilet_wear'] = 'kamizelka odblaskowa',
['bullet_wear'] = 'kamizelka kuloodporna',
['no_outfit'] = 'brak ubrania',
['open_cloackroom'] = 'naciśnij ~INPUT_CONTEXT~ aby zmienić ~y~u... |
--[[
Netatmo Wind Sensor
@author ikubicki
]]
function QuickApp:onInit()
self.config = Config:new(self)
self.auth = Auth:new(self.config)
self.http = HTTPClient:new({
baseUrl = 'https://api.netatmo.com/api'
})
self.i18n = i18n:new(api.get("/settings/info").defaultLanguage)
self:trace('')... |
local ffi = require("ffi")
ffi.cdef[[
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);
]]
local crypto = ffi.load("crypto")
function c_pb(buffer)
-- print a c buffer
-- really it makes a lua string
-- from a fixed 16 byte c-buffer from ffi
local ts = ""
for i=0,15 do
ts = ts .. strin... |
local RefreshButton = {}
function RefreshButton:new(lobbyManager)
local group = display.newGroup();
local width = 5
local height = 3
local background = display.newRect(20, 21, width, height);
group:insert(background)
background:setFillColor(0.2);
background:translate(width / 2, height / 2)... |
function VBJOB.Setup()
local citizen = {}
citizen.PrettyName = "job_citizen_pname"
citizen.BaseSalary = 60
citizen.Armor = 0
citizen.Loadout = { "weapon_physcannon" }
citizen.ApplyModel = function(self, ply)
ply:SetModelWithIdentifier(ply:GetPlayerModel())
end
citizen.PublicServices = false
VBJOB... |
--[[
Custodian 1.1.3
This is a heavily modified Maid class.
Modified to be more lightweight.
Custodian:Clean() will clean the values outside of tables.
Custodian:Clean(true) will clean the values of all the tables inside the object but the tables
will still exist inside the object.
Custodian:Destroy() will clean up al... |
ITEM.name = "Field Cap"
ITEM.description = "hatDesc"
ITEM.model = "models/props_junk/cardboard_box004a.mdl"
ITEM.height = 1
ITEM.width = 1
ITEM.armorAmount = 0
ITEM.price = 20
ITEM.gasmask = false -- It will protect you from bad air
ITEM.resistance = false -- This will activate the protection bellow
ITEM.damage = { -- ... |
--[[
--
-- created by xinpeng.zhao
--
--]]
require "Common/List";
local TEMP = {};
function TEMP.GenMessageSub(name)
local Sub = {};
Sub.pool = {};
Sub.name = name;
function Sub.UnRegister(first, second, index)
if type(first) ~= "number" or type(second) ~= "number" then
GameLog.LogError("message sub '" ..... |
local find_git_ancestor = require("lspconfig.util").find_git_ancestor
local find_package_json_ancestor = require("lspconfig.util").find_package_json_ancestor
local path_join = require("lspconfig.util").path.join
local options = require("eslint.options")
local function get_messages(output)
if output and output[1] and... |
-- paru -S rust-analyzer / brew install rust-analyzer
local common = require('plugin/lsp/common')
require'lspconfig'.rust_analyzer.setup {
on_attach = common.on_attach,
capabilities = common.capabilities
}
|
-- Unit Selection Menu
-- Part of Live Simulator: 2
-- See copyright notice in main.lua
local love = require("love")
local utf8 = require("utf8")
local Luaoop = require("libs.Luaoop")
local Gamestate = require("gamestate")
local Async = require("async")
local color = require("color")
local MainFont = requi... |
describe('Observable', function()
describe('create', function()
it('returns an Observable', function()
local observable = Rx.Observable.create()
expect(observable).to.be.an(Rx.Observable)
end)
it('sets _subscribe to the first argument it was passed', function()
local subscribe = functio... |
if not modules then modules = { } end modules ['s-languages-frequencies'] = {
version = 1.001,
comment = "companion to s-languages-frequencies.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme fil... |
NAME = "Español" ---//Edited by Barata\\----
LANGUAGE = {
loading = "Cargando",
dbError = "Fallo de conexión con la Base de Datos",
unknown = "Desconocido",
noDesc = "Descripción no disponible",
create = "Crear",
createTip = "Crea un nuevo personaje con el que jugar.",
load = "Cargar",
loadTip = "Escoge un per... |
-- VARIABLES ===================================================================
-- gameobjects / components
local CAMERAGO = nil
local CAMERA = nil
local CAMERATRANSFORM = nil
local PLAYERGO = nil
local PLAYERTRANSFORM = nil
-- FUNCTIONS =======================================... |
local StatusCodeOverwrite = require('apicast.policy.statuscode_overwrite')
describe('Status Codes overwrite policy', function()
it('mapped correctly valid status code', function()
local policy = StatusCodeOverwrite.new({
http_statuses = {
{ upstream=200, apicast=201 }
}
})
... |
AddCSLuaFile()
DEFINE_BASECLASS( "gmod_wire_egp" )
ENT.PrintName = "Wire E2 Graphics Processor Emitter"
ENT.WireDebugName = "E2 Graphics Processor Emitter"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.gmod_wire_egp_emitter = true
local DrawOffsetPos = Vector(0, 0, 71)
local DrawOffsetAng = Angle(0, 0, 90)
local Dr... |
Dntgtest_Visual_0130 = {
{
{
Shadow = false,
Image = "xiaolvyu",
OffestY = 0,
dieFi = 12,
dieScale = 1.5,
dieframeFormat = "xiaolvyu-end_%d.png",
liveName = "idle",
AniType = 4,
Direction = 0,
liveframeFormat = "xiaolvyu-idle_%d.png",
OffestX = 0,
liveScale = 1.2,
liveFi = 80,
... |
-- See LICENSE for terms
return {
PlaceObj("ModItemOptionToggle", {
"name", "EnableMod",
"DisplayName", T(302535920011303, "<color ChoGGi_yellow>Enable Mod</color>"),
"Help", T(302535920011793, "Disable mod without having to see missing mod msg."),
"DefaultValue", true,
}),
PlaceObj("ModItemOptionNumber", {... |
local plr = game.Players.'VICTIM'
lpChar = game.Players.LocalPlayer.Character.Torso
for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
if v.ClassName == 'Part' then
if v.Name ~= 'Head' then
v.Anchored = true
end
end
end
local w = Instance.new("Weld", lpChar)
w.Part0 = lpChar
w.Part1 = plr.... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "Infopanel Sections",
id = "sectionUpgrades",
PlaceObj('XTemplateForEach', {
'array', function (parent, context) return nil, 1, 3 end,
'map', function (parent, context, array, i) return i end,
'condition', functi... |
workspace "sharptrails"
configurations { "Release", "DebugIII", "DebugVC" }
location "build"
files { "src/*.*" }
includedirs { "src" }
includedirs { os.getenv("RWSDK34") }
includedirs { "../rwd3d9/source" }
libdirs { "../rwd3d9/libs" }
links { "rwd3d9.lib" }
prebuildcommands {
"for /R \"../shaders/\" %%f... |
local ev = require( "ev" )
local SIGINT = 2
local function onSigInt( loop, signal )
loop:unloop()
end
ev.Signal.new( onSigInt, SIGINT ):start( chat.loop )
|
Me = game.Players.LocalPlayer
Char = Me.Character
Cam = workspace.CurrentCamera
Gui = Me:findFirstChild("PlayerGui")
Screen = Instance.new("ScreenGui",Gui)
Screen.Name = "Gui weld"
local C3 = Color3.new
local UD = UDim2.new
local V2 = Vector2.new
Resolution = V2(0, 0)
local Classes = {"Frame", "ImageLabel", "ImageB... |
local pl = PLUGIN
pl.name = "Lockpick Item"
pl.description = "Adds a lock-picking item."
pl.author = "Nforce" |
--[[
Variables
]]
Housing.housingBeingRobbed = {}
Housing.housingRobTargets = {}
Housing.alarm = {}
Housing.destroyedObjects = {}
Housing.robPosLocations = {}
--[[
Events
]]
RegisterNetEvent("caue-base:sessionStarted", function()
local src = source
TriggerClientEvent("caue-housing:beingRobbed", s... |
local TitleScreenState = Class 'TitleScreenState'
function TitleScreenState:update(dt)
if love.keyboard.isDown('return') then
Gamestate.switch(MenuState)
end
end
function TitleScreenState:draw()
love.graphics.setFont(Assets.font_xl)
love.graphics.printf('Save the Cows', 0, 64, VIRTUAL_WIDTH, '... |
local api = require('vfiler/actions/api')
local buffer = require('vfiler/actions/buffer')
local cmdline = require('vfiler/libs/cmdline')
local core = require('vfiler/libs/core')
local fs = require('vfiler/libs/filesystem')
local Clipboard = require('vfiler/clipboard')
local Rename = require('vfiler/extensions/rename')... |
local statusEffectData = {
--> identifying information <--
id = 19;
--> generic information <--
name = "Refreshed";
activeEffectName = "Refreshed";
styleText = "Hydrated and refreshed.";
description = "";
image = "rbxassetid://3298789929";
notSavedToPlayerData = true,
}
function statusEffectDa... |
local extends = SkillBar.extends
local iterate = SkillBar.iterate
-- extend prototypes if overriding or adding methods
-- create new instance if just want to use existing methods
-- using convention that extending classes call these super
-- functions, and instances of data just override
----------------------- dat... |
local _ = [[---------- Usage ----------
1. Create a DownloadManager:
manager = DownloadManager!
You can supply a single library search path or a table of search paths for the DownloadManager library.
On Aegisub, this will default to the system and user DownloadManager module directories.
Otherwise the default li... |
local m,s,o
local ov="overwall"
local uci=luci.model.uci.cursor()
m=Map(ov,translate("Overwall Settings"),translate("<h3>Support SS/SSR/VMESS/VLESS/TROJAN/NAIVEPROXY/SOCKS5/TUN</h3>"))
m:section(SimpleSection).template="overwall/status"
local server_table={}
uci:foreach(ov,"servers",function(s)
if s.alias then
ser... |
ModifyEvent(-2, 4, -2, -2, -2, -1, -1, -2, -2, -2, -2, 19, 16);--by fanyu|雕的坐标变成19,16。场景05-编号04
ModifyEvent(-2, 5, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2);--by fanyu|移出蛇的尸体。场景07-编号05
ModifyEvent(-2, 7, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2);
ModifyEvent(-2, 8, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2);
ModifyEvent... |
--- Common C family languages compiler interface
--
-- Arguments given to the constructor `new` are used as _defaults_ in other
-- methods. For example, if the `standard` given is `c11`, it will be used
-- unless specified otherwise. However, for arguments of type list (like
-- `include_directories`), the default value... |
local M = {}
function M.get_req_jwt()
local iyo_jwt = ngx.var.cookie_iyo_jwt;
if not iyo_jwt then
local auth_header = ngx.req.get_headers().Authorization
if auth_header then
auth_header = string.lower(auth_header)
if string.find(auth_header, 'bearer') then
... |
print("begin")
local x, y, z
print("begin")
local a, b, c
c = 4
print(c)
local d, e, f
d = 8
print(d) |
local metals = require("metals")
local lsputils = require("cfg.lsputils")
_G.metals = {}
_G.metals.initialize_or_attach = function()
-- Remove 'F' from shortmess for metals to work correctly
vim.opt.shortmess = vim.opt.shortmess - "F"
local metals_config = metals.bare_config()
metals_config.init_options.statusBar... |
local running_jobs_key = ARGV[1]
local max_concurrency_key = ARGV[2]
local current_concurrency_key = ARGV[3]
local job_json = ARGV[4]
local job = cjson.decode(job_json)
-- Remove the job from the list of running jobs.
redis.call('hdel', running_jobs_key, job['id'])
-- Decrement current concurrency if max concurrency... |
object_tangible_item_skillmod_skillmod_efol_hanging_sign = object_tangible_item_skillmod_shared_skillmod_efol_hanging_sign:new {
}
ObjectTemplates:addTemplate(object_tangible_item_skillmod_skillmod_efol_hanging_sign, "object/tangible/item/skillmod/skillmod_efol_hanging_sign.iff")
|
slot2 = "DdzView"
DdzView = class(slot1)
slot2 = "ddz.view.ccs.DdzGameCcsView"
requireLuaFromModule(slot1)
slot2 = "ddz.view.ccs.DdzRoomCcsView"
requireLuaFromModule(slot1)
slot2 = "ddz.view.ccs.DdzBattleCcsView"
requireLuaFromModule(slot1)
slot2 = "ddz.view.ccs.DdzKindCcsView"
requireLuaFromModule(slot1)
slot2... |
package.preload["a"] = (function (...)
c = require('c')
c()
end)
package.preload["b"] = (function (...)
c = require('c')
c()
end)
package.preload["c"] = (function (...)
return {}
end)
a = require('a')
b = require('b')
a()
b()
|
local function difference(a,b)
local ret = {}
for _,a_ in ipairs(a) do
if not find(a_,b) then table.insert(ret, a_) end
end
return ret
end |
local MR = require 'src'
local Helper = require 'helper'
local lg = love.graphics
local scene = MR.scene.new()
local raw_scene
local renderer = MR.renderer.new()
local camera = MR.camera.new()
camera:move_to(0, 1000, 700, math.rad(30), 0, 0)
local ground = MR.model.new_plane(10000, 10000)
local model = MR.model.new... |
slot0 = class("GuildGoodsCard")
slot0.Ctor = function (slot0, slot1)
slot0._go = slot1
slot0._tr = tf(slot1)
slot0.itemTF = slot0._tr:Find("item")
slot0.itemIconBgTF = slot0.itemTF:Find("icon_bg")
slot0.itemIconFrameTF = slot0.itemTF:Find("icon_bg/frame")
slot0.itemIconTF = slot0.itemTF:Find("icon_bg/icon")
slo... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.ui.version", function()
require "game.ui"
it("grabs the version file and displays the text", function()
local v = moonpie.ui.components.version()
loca... |
--[[
Name: "sv_enum.lua".
Product: "kuroScript".
--]]
-- Set some information.
TYPING_WHISPER = 7;
TYPING_PERFORM = 6;
TYPING_LOGGING = 5;
TYPING_NORMAL = 4;
TYPING_RADIO = 3;
TYPING_YELL = 2;
TYPING_OOC = 1; |
local MenuGradient = Material( "../html/img/gradient.png", "nocull smooth" )
local Images = {}
local Active = nil
local Outgoing = nil
local function Think( tbl )
tbl.Angle = tbl.Angle + ( tbl.AngleVel * FrameTime() )
tbl.Size = tbl.Size + ( ( tbl.SizeVel / tbl.Size) * FrameTime() )
if ( tbl.AlphaVel ) then
... |
-- ... css.lua
|
--Copyright (c) 2013, Thomas Rogers
--All rights reserved.
--Redistribution and use in source and binary forms, with or without
--modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions... |
--[[
Torch implementation of MobileNet
--]]
require 'nn'
function conv_bn(inp, outp, stride)
local net= nn.Sequential();
net:add((nn.SpatialConvolution(inp, outp,3,3,stride, stride, 1,1)):noBias() )
net:add(nn.SpatialBatchNormalization(outp))
return net;
end
function conv_dw(inp, outp, stride)
local net = nn.... |
-- Japanese language strings
local L = LANG.CreateLanguage("ja")
-- Compatibility language name that might be removed soon.
-- the alias name is based on the original TTT language name:
-- https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/lang/japanese.lua
L.__alias = "日本語"
L... |
-----------------------------------
-- Area: Valley of Sorrows
-- NPC: qm2 (???)
-- Note: Used to rank 9.1 San d'oria
-- !pos 91 -3 -16 128
-----------------------------------
local ID = require("scripts/zones/Valley_of_Sorrows/IDs")
require("scripts/globals/status")
require("scripts/globals/keyitems")
require("script... |
x = game:GetService("InsertService"):LoadAsset(88885506)x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.peyquinn.Character.Head.Position) |
--=======================================
-- filename: map/grid.lua
-- author: Shane Krolikowski
-- created: Apr, 2018
-- description: Grid cell.
--=======================================
local Object = require 'tools.class'
local Grid = Object:extend()
function Grid:new(rows, cols)
self.cells = {}
... |
if nil ~= require then
require "fritomod/Media-Color";
require "fritomod/Frames";
require "fritomod/Anchors";
end;
local Suite=CreateTestSuite("fritomod.UI-Layered");
function Suite:TestRemovals()
local lay = UI.Layered:New(UIParent);
lay:AddColor("background", "black");
lay:AddColor("middle",... |
local addonName, ns = ...
local L = ns.L
local defaults = {
modifier = 'ALT',
}
local Options = LibStub('Wasabi'):New(addonName, 'MolinariDB', defaults)
Options:AddSlash('/molinari')
Options:Initialize(function(self)
local Title = self:CreateTitle()
Title:SetPoint('TOPLEFT', 16, -16)
Title:SetFormattedText('%s |c... |
local gc = Var("GameCommand");
--------------------------------------
return loadfile(THEME:GetPathG("ScreenSelectDifficulty","icon/max_/"..gc:GetName()))()
|
local logger = {
path = vim.fn.stdpath("cache") .. "/dep.log",
silent = false,
}
local colors = {
skip = "Comment",
clean = "Boolean",
install = "MoreMsg",
update = "WarningMsg",
delete = "Directory",
error = "ErrorMsg",
}
function logger:open(path)
self:close()
self.path = path or self.path
se... |
function DFelboar_OnEnterCombat(Unit,Event)
Unit:CastSpell(36462)
Unit:FullCastSpellOnTarget(22120,Unit:GetClosestPlayer())
end
function DFelboar_OnDied(Unit,Event)
Unit:RemoveEvents()
end
function DFelboar_LeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(21195, 1, "DFelboar_OnEnterCombat")
Regi... |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" )
local utils = require(GetScriptDirectory() .. "/util")
local mutil = r... |
require("config")
require("framework.init")
-- define global module
game = {}
function game.startup()
cc.FileUtils:getInstance():addSearchPath("res/")
game.armatureSceneIdx = 1
game.test()
end
function game.exit()
os.exit()
end
function game.test()
local newScene = require("scenes.ArmatureTest... |
local osm = require 'gluon.web.model.osm'
local site = require 'gluon.site'
local M = {}
M.MapValue = osm.MapValue
function M.help(i18n)
local pkg_i18n = i18n 'gluon-config-mode-geo-location-osm'
return pkg_i18n.translate(
'You may also select the position on the map displayed below '
.. 'if your computer is ... |
local text = access_system("ui.init").text
local win = access_system("ui.init").win
TestCtn = text("Resize to see its effect").padding({1, 2}).build()
PP = win.CreatePopup(TestCtn, {})
NewObj = text({"Resize to see effect"}).build()
PP2 =
win.CreatePopup(
NewObj,
{
position = {
col = "... |
local Unsqueeze, parent = torch.class('nn.Unsqueeze', 'nn.Module')
local function _assertTensor(t)
assert(torch.isTensor(t), "This module only works on tensor")
end
function Unsqueeze:__init(pos, numInputDims)
parent.__init(self)
self.pos = pos or error('the position to insert singleton dim not specified')
... |
local localization =
{
ATT_STR_STATISTICS = "Statistik",
ATT_STR_NAME = "Name",
ATT_STR_GUILD = "Gilde",
ATT_STR_TOTAL = "Gesamt",
ATT_STR_TAXES = "Steuern",
ATT_STR_INTERNAL = "Intern",
... |
-- This first example, maintaining tradition, prints a "Hello World" message.
-- Furthermore it shows:
-- - Using the Sample utility functions as a base for the application
-- - Adding a Text element to the graphical user interface
-- - Subscribing to and handling of update events
require "LuaScripts/Utili... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('force_drugsCheckWeedAmount', function(source, cb, weedCount)
local src = source
local player = ESX.GetPlayerFromId(src)
local weedAmount = player.getInventoryItem(Config.WeedItem, count)
if w... |
-- collision table
collTable = {}
collTable["tank"] = {}
collTable["tank"]["wall"] = true
collTable["tank"]["tank"] = true
collTable["bullet"] = {}
collTable["bullet"]["wall"] = true
collTable["bullet"]["tank"] = true
collTable["bullet"]["bullet"] = false
function addColl( collider )
colliders[#colliders + 1] =... |
Menu.Checkbox("Enable money hud", "cMoneyDisabler", false)
local oldEnabled = false
Hack.RegisterCallback("PaintTraverse", function ()
--Money disabled changed
if Menu.GetBool("cMoneyDisabler") ~= oldEnabled then
--Inject money remover
IPanorama.RunScript_Hud([[
var it... |
teleport = {}
dofile(minetest.get_modpath("teleport") .. "/data.lua")
dofile(minetest.get_modpath("teleport") .. "/utilities.lua")
teleport.data = teleport.loadData()
teleport.path = minetest.get_modpath("teleport")
dofile(teleport.path .. "/utilities.lua")
dofile(teleport.path .. "/teleport.lua") |
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
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, dis... |
-- harpoon
local harpoon = require('harpoon')
local mark = require('harpoon.mark')
local term = require('harpoon.term')
local ui = require('harpoon.ui')
local utils = require('thijssesc.utils')
local nnoremap = utils.keymap.nnoremap
local projects = {}
for _, v in pairs({ 1, 2, 3, 4, 5 }) do
projects['$PROJECT'.... |
hooksecurefunc(_G, "ContainerFrameItemButton_OnModifiedClick", function(self, button)
if (Auctionator.Config.Get(Auctionator.Config.Options.SELLING_ALT_CLICK) and
AuctionHouseFrame and AuctionHouseFrame:IsShown() and IsAltKeyDown() and button == "LeftButton") then
local itemLocation = ItemLocation:CreateF... |
RegisterClientScript()
WEAPON.Cooldown = 5
WEAPON.Scale = 0.25
WEAPON.Sprite = "placeholder/patator.png"
WEAPON.SpriteOrigin = Vec2(100, 160) * WEAPON.Scale
WEAPON.WeaponOffset = Vec2(20, -60) -- This should not be here
WEAPON.Animations = {}
local ammoSprite = "placeholder/potato.png"
RegisterClientAssets(WEAPON.Sp... |
return function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Packages = ReplicatedStorage.Packages
local Llama = require(Packages.Llama)
local Dictionary = Llama.Dictionary
local map = Dictionary.map
it("should validate types", function()
local args = {
{ 0 },
{ {}, 0 },
{ ... |
messages = { -- These dialogue IDs match "You were unable to enter a combination" for the associated zone IDs
[100] = 8078,
[101] = 7509,
[102] = 7929,
[103] = 8104,
[104] = 8669,
[105] = 7720,
[106] = 8094,
[107] = 7555,
[108] = 7624,
[109] = 8487,
[110] = 7611,
[111] = ... |
--[[ Copyright (c) 2013 Alan Woolley
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, distribute, ... |
-- LICH plugin for fimbul
--
local plugin = require('lich.plugin')
local item_plugin = plugin:new()
local repository = require('fimbul.repository')
local log = require('lich.log')
local base = _G
function item_plugin:new(config)
local neu = plugin:new(config)
setmetatable(neu, self)
self.__index = self
... |
local function foo(msg, ...)
local arg = {...}
print(msg)
for k = 1, #arg do
print(arg[k])
end
end
foo("Hey!", "hello", "boy")
|
local actor={}
-- override event from blueprint
function actor:ReceiveBeginPlay()
self.bCanEverTick = true
-- set bCanBeDamaged property in parent
self.bCanBeDamaged = false
print("actor:ReceiveBeginPlay")
local world = self:GetWorld()
local bpClass = slua.loadClass("/Game/TestActor.TestActor... |
-- ToDo: Beim neuzeichnen der Elemente fragen ob ein element sich hinter dem Pixel befindet, um im anschluss das Entsprechende Element neu zu Zeichnen
windowHandler = {windows = {}, continueListener = false, drawChanges = false, windowIDMax = 0}
local dependencies = {
"guiDrawSelf",
"EventHandler"
}
local ins... |
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
-- Initialize Cardinal
repeat wait() until shared.Deus
local Deus = shared.Deus
Deus:Register(script, "Cardinal")
shared.Cardinal = Deus:Load("Ca... |
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 3,["6"] = 3,["7"] = 3,["8"] = 4,["9"] = 4,["10"] = 4,["11"] = 5,["12"] = 5,["13"] = 5,["14"] = 6,["15"] = 6,["16"] = 22,["17"] = 22,["18"] = 22,["19"] = 22,["... |
local cf = require 'glua.mac.CoreFoundation'
local ffi = require 'ffi'
ffi.cdef [[
typedef void *CGDataProviderRef;
typedef void *CGImageRef;
typedef void *CGColorSpaceRef;
typedef void *CGContextRef;
typedef double CGFloat;
typedef struct {
CGFloat x;
CGFloat y;
CGFloat width;
CGFloat height;
} CGRect;
// C... |
------------------------------------------------------------------------------
-- v_layouts.lua:
--
-- Main layouts include for Vaults.
--
-- Code by mumra
-- Based on work by infiniplex, based on original designs and code by mumra.
--
-- Contains the functions that actually build the layouts.
--
-- Notes:
-- The origi... |
template = {}
template[0] = {
{1,1},
{1,1}
}
template[1] = {
{2,1},
{2,1},
}
template[2] = {
{1,2},
{1,2},
}
template[3] = {
{2,1},
{1,1},
}
template[4] = {
{1,2},
{1,1},
}
template[5] = {
{1,1},
{2,1},
}
template[6] = {
{1,1},
{1,2},
}
template[7] = {
{2,2},
{1,1},
}
template[8] = {
{1,1},
{2,2},
}
template.... |
--[[
初始化脚本,在nginx启动的时候调用的脚本,对应init_by_lua_file。
功能:
读取配置文件,把配置存储到共享内存中。
User: 01112143
Date: 2016/8/30
--]]
local config = require("comm.config");
local cjson = require("cjson.safe");
local constants = require("comm.constants");
--配置文件路径
local configPath = constants.configPath;
ngx.lo... |
return require "lovesnow.memory" |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
local Distance = 75
local MaxFires = 25;
local NumberOfFires = 0;
function ENT:Initialize()
self.Entity:SetMoveType(MOVETYPE_NONE)
self.Entity:SetSolid(SOLID_NONE)
end
function ENT:Think ( )
end
|
dofile("./lua/oltp_common.lua")
function prepare_statements()
end
function insert_data_prepare(start, end_bound, table_num)
local table_num_str = ""
table_num_str = tostring(table_num)
-- if table_num > 1 then
-- table_num_str = tostring(table_num)
-- end
insert_data(start, end_bound, table_num_str)
end
func... |
local cfg = cfg or {}
--[[
Admin Popups by MrBrumble
Support given at GmodStore or steam (www.steamcommunity.com/id/mac_87)
Please use the config below or request support from me. I will not provide support if you modify the code
Some clientside configuration can be done with cvars (cl_adminpopups_*)
]]
... |
stAbout = {}
local bg = require "utils.background"
local fonts = require "assets.fonts"
local utils = require "utils.utils"
function stAbout:init()
self.textspeed = 15
self.texty = love.graphics.getHeight()
end
function stAbout:enter(game)
self.dogeism = utils.getDogeism()
end
function stAbout:update(dt)
bg:up... |
function __TS__ArrayForEach(arr, callbackFn)
do
local i = 0
while i < #arr do
callbackFn(_G, arr[i + 1], i, arr)
i = i + 1
end
end
end
|
local Symbol = require("lunar.compiler.semantic.symbol")
local SymbolTable = require('lunar.compiler.semantic.symbol_table')
local SyntaxKind = require('lunar.ast.syntax_kind')
local SourceFileSymbol = setmetatable({}, {
__index = Symbol,
})
SourceFileSymbol.__index = setmetatable({}, Symbol)
function SourceFileSymbo... |
--------------------------------------------------------------------------------
-- Handler.......... : onAchievementStored
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
---------------------------------------------------------------... |
Config = {}
Config.Locale = 'en'
Config.DoorList = {
--
-- Mission Row First Floor
--
-- Entrance Doors
{
textCoords = vector3(434.7, -982.0, 31.5),
authorizedJobs = {'police'},
locked = false,
maxDistance = 2.5,
doors = {
{objHash = GetHashKey('v_ilev_ph_door01'), objHeading = 270.0, objCoords = v... |
local Players = game:GetService'Players'
local UserInputService = game:GetService'UserInputService'
local RunService = game:GetService'RunService'
local LocalPlayer = Players.LocalPlayer or Players.PlayerAdded:Wait()
local DefaultSize = Vector3.new(1, 0.8, 4)
local Enabled = false
if shared.HBCon then
shared.HBCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.