content stringlengths 5 1.05M |
|---|
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
---------------------------------------------------
-- {{{ Grab environment
local setmetatable = setmetatable
local ... |
-----------------------------------
-- Area: Pso'Xja
-- NM: Golden-Tongued Culberry
-----------------------------------
mixins = {require("scripts/mixins/families/tonberry")}
local ID = require("scripts/zones/PsoXja/IDs")
require("scripts/globals/status")
-----------------------------------
function onMobInitialize(... |
return {
-- Pins you want to controll. Adjust to your needs
-- pins = { 1, 2, 3, 4, 5 },
-- pins = { 14, 15, 18, 23, 24, 25, 8, 7, 2, 3, 4, 17, 27, 22, 10, 9},
pins = {
{pin = 3, name="Gehäusebeleuchtung", invert=true},
{pin = 14},
{pin = 15},
{pin = 18},
{p... |
ELONA.i18n:add {
skill = {
gained = "あなたは「{$1}」の能力を得た。",
default = {
increase = "{name($1)}は{$2}の技術の向上を感じた。",
decrease = "{name($1)}は{$2}の技術の衰えを感じた。",
},
-- HP
_2 = {
increase = "{name($1)}は生命力の上昇を感じた。",
decrease = "{name($1)}は生命力の衰えを感じた。",
},... |
-- key value of pair of all options.
local global_options = {
-- Enable relative line number and show linenumber instead of just 0
relativenumber = true,
number = true,
-- increase the height of the cmdline for better message dispay
cmdheight=2,
-- set file encoding
encoding = 'UTF-8',
-- setting font
guifont ... |
-- The Computer Language Benchmarks Game
-- http://benchmarksgame.alioth.debian.org/
-- contributed by Mike Pall
-- requires LGMP "A GMP package for Lua 5.1"
-- with matrix optimization, courtesy of Wim Couwenberg
local g, aux = {}, {}
require"c-gmp"(g, aux)
local add, mul, div = g.mpz_add, g.mpz_mul_si, g.mpz_tdiv_q
... |
require('CAD2D')
-- draw a house with these basic dimensions
w = 0.7
h = 0.6
OutputHeader()
OutputRect{0.5*w,0.5*h, center=point(0,0.5*h)}; Stroke()
A = O - 0.5*w*x + h*y
B = O + 0.5*w*x + h*y
roofdir1 = dir(math.rad(30))
roofdir2 = dir(-roofdir1.x, roofdir1.y)
C = xsect(ray(A, roofdir1), ray(B, roofdir2))
OutputP... |
local ffi = require("ffi")
math.randomseed(os.time())
local function GetWeaponTypes()
local weaponTypes = {}
for i=0,(engine.Objects.Count-1) do
local obj = engine.Objects:Get(i)
if IsNull(obj) then goto continue end
if obj.UObject.Class ~= engine.Classes.UWeaponTypeDefinition.static then goto continue end
... |
--- Working 100%
local RunService = game:GetService("RunService")
local Player = game:GetService("Players").LocalPlayer
local Bars = {}
local BarSSizes = {}
repeat wait() until Player.Character and Player.Character:FindFirstChild("Torso") -- Error prevention?
local Character = Player.Character
local Torso = Character... |
-- Project: OiL - ORB in Lua: An Object Request Broker in Lua
-- Release: 0.6
-- Title : IDL Definition Registry
-- Authors: Renato Maia <maia@inf.puc-rio.br>
local _G = require "_G" --[[VERBOSE]] local verbose = require "oil.verbose"
local error = _G.error
loca... |
return {{["text"]="Photo: http://tumblr.com/xbx3dlsz0b"},{["text"]="Photo: http://tumblr.com/xtl3dlsypp"},{["text"]="RT @texascollection: Did you know Waco used to have a trolley system? Enjoy this photo of a trolley running through the Waco square app ..."},{["text"]="@Lisadawn87 Man,finally to get in shape felt go... |
require "gui"
require "config"
require "scripts"
--Migration involving global data
script.on_configuration_changed(function(data)
if data.mod_changes.Avatars then
local oldVersion = data.mod_changes.Avatars.old_version
if oldVersion and oldVersion < "0.4.0" then
migrateTo_0_4_0()
end
end
end)
--Check on en... |
local dev = {}
local conf = require('modules.dev.config')
dev['nvim-treesitter/nvim-treesitter'] = {
event = 'BufRead',
after = 'telescope.nvim',
config = conf.nvim_treesitter,
}
dev['nvim-treesitter/nvim-treesitter-textobjects'] = {
after = 'nvim-treesitter'
}
dev['p00f/nvim-ts-rainbow'] = {
after = 'nvim... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:Initialize()
self:SetNoDraw(true)
end |
function split(pString, pPattern)
local Table = {} -- NOTE: use {n = 0} in Lua-5.0
local fpat = "(.-)" .. pPattern
local last_end = 1
local s, e, cap = pString:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(Table,cap)
end
last_end = e+... |
#!/usr/bin/env tjost
--[[
* Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be use... |
----- iternaly used funtions -----
--check if a number is an integer between 0 and 15
local validNum = function(num)
return math.tointeger(num) and tonumber(num) >= 0 and tonumber(num) <= 15
end
--check if a string is decribing a register
local isreg = function(reg)
if reg == "WR" or reg == "SR" or reg == "PC... |
local PLUGIN = PLUGIN;
util.AddNetworkString("waypointmarker")
util.AddNetworkString("deathmarker")
util.AddNetworkString("requestmarker")
function PLUGIN:Tick()
for k, v in ipairs( _player.GetAll() ) do
if (v:HasInitialized() and (v:GetFaction() == "Metropolice Force" or v:GetFaction() == "Overwatch Transhuman Ar... |
minetest.register_on_joinplayer(function(player)
player:set_properties({
mesh = "player_default.b3d",
textures = {"player_default.png"},
visual = "mesh",
visual_size = {x = 0.625, y = 0.625}
})
player:set_local_animation({x = 0, y = 0}, {x = 5, y = 28}, {x = 30, y = 41}, {x = 43, y = 66}, 30)
end)
|
require "sprite"
require "theme"
require "timer"
local w, h
local font
local font_height
local text = {
{ "ПРОВОДНИК", style = 1},
{ },
{ "Сюжет и код игры:", style = 2},
{ "Петр Косых" },
{ },
{ "Иллюстрации:", style = 2 },
{ "Петр Косых" },
{ },
{ "Музыка:", style = 2 },
{ "Петр Советов" },
{ "http://ben... |
local class = require 'middleclass'
-- クラス
local Enemy = require 'Enemy'
-- ウォーカー
local Spikey = class('Spikey', Enemy)
-- 初期化
function Spikey:initialize(args)
-- デフォルト値
args.state = args.state or 'walk'
args.speed = args.speed or 10
args.stateArgs = args.stateArgs or { args.object.properties.direct... |
--[[
market
market
date_offset
offset of day
observe_count
count of observe
cross_count
count of cross
c_change_rate
current change rate
v_swing_rate_lower
v_swing_rate_higher
vertical swing rate : (high0 - low0) / close0
h_swing_rat... |
--[[
Event Functor
A drop-in replacement for functions with multiple bodies
]]
local functor, meta
functor = {
handlers = {},
call = function(self, ...)
if (self.pre) then
self:pre(...)
end
for key, value in next, self.handlers do
value(...)
end
if (self.post) then
self:post(...)
end
end,
... |
local oop = require("oop")
local frame_base = require("libGUI/frame")
local horizontal_layout = {
mPadding = 0
}
oop.inherit(horizontal_layout, frame_base)
function horizontal_layout:construct(padding)
frame_base.construct(self)
self.mPadding = padding or 0
end
function horizontal_layout:addChild(chi... |
--[[
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 version.
This program is distributed in the... |
return {
MAX_ROOM_TRIES = 300;
MAX_ROOMS = 3;
MIN_ROOM_SIZE = {x = 3, y = 3};
MAX_ROOM_SIZE = {x = 8, y = 8};
ROOM_BORDER_LENIANCY = 3;
ROOM_BORDER_RETRIES = 10;
};
|
-- options
vim.opt.relativenumber = true
vim.opt.number = true
vim.opt.wrap = false
vim.opt.backspace = 'indent,eol,start'
vim.opt.swapfile = false
vim.opt.expandtab = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.autoindent = true
vim.opt.textwidth = 120
vim.opt.foldmethod = 'inde... |
--Weapons is not a valid member of ReplicatedStorage--
--Requires Fix.--
script.Parent = nil
Character = game.Players.localPlayer.Character
Humanoid = Character.Humanoid
if Humanoid:findFirstChild("Animate") then
Humanoid:findFirstChild("Animate"):Destroy()
end
wait(0.0069444444444444)
local masd = game:GetService(... |
---@class L
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'zhCN')
if not L then
return
end
-- @import@
L.TITLE_BAG = '%s的背包'
L.TITLE_BANK = '%s的银行'
L.TITLE_MAIL = '%s的邮箱'
L.TITLE_EQUIP = '%s的装备'
L.TITLE_COD = '%s的付款取信'
L['Total'] = '总共'
L['|cffff2020(Offline)|r'] = '|cffff2020(离线)|r'
L['Bag Toggle'] = '背包按钮'... |
--[=[
General humanoid utility code.
@class HumanoidUtils
]=]
local HumanoidUtils = {}
--[=[
Retrieves a humanoid from a descendant.
@param descendant Instance -- Child of a humanoid model, like a limb
@return Humanoid?
]=]
function HumanoidUtils.getHumanoid(descendant)
local character = descendant
while chara... |
function Game.Start()
Engine.Scene:loadFromFile("Data/Maps/Menu.map.vili");
end |
cc = cc or {}
---ParticleSystemQuad object
---@class ParticleSystemQuad : ParticleSystem
local ParticleSystemQuad = {}
cc.ParticleSystemQuad = ParticleSystemQuad
--------------------------------
--- Sets a new SpriteFrame as particle.<br>
---WARNING: this method is experimental. Use setTextureWithRect instead.<br>
---... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
AddEventHandler('chatMessage', function(playerId, playerName, message)
if string.sub(message, 1, string.len('/')) ~= '/' then
CancelEvent()
playerName = GetRealPlayerName(playerId)
TriggerClientEvent('chat:addMessage', -1, {ar... |
--------- [ Element Data returns ] ---------
local function getData( theElement, key )
local key = tostring(key)
if isElement(theElement) and (key) then
return exports['anticheat-system']:c_callData( theElement, tostring(key) )
else
return false
end
end
local function setData( theElement, key, value )
loc... |
lawVehicles = { [416]=true, [433]=true, [427]=true, [490]=true, [528]=true, [407]=true, [544]=true, [523]=true, [470]=true, [598]=true, [596]=true, [597]=true, [599]=true, [432]=true, [601]=true }
function syncRadio(station)
local vehicle = getPedOccupiedVehicle(source)
local seat = getPedOccupiedVehicleSeat(sou... |
--[[
The MIT License (MIT)
Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization)
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 ... |
-- AWARDS
-- by Rubenwardy
-------------------------------------------------------
-- this is the init file for the award mod
-------------------------------------------------------
local S
if (intllib) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())... |
local menuOn = false
local keybindControls = {
["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166
}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local keybindControl = keybindControls["F1"]
if IsControlPressed(0, keybindControl) then
menuOn = true
... |
ValleyFarmGhostNpc = {
click = async(function(player, npc)
local t = {
graphic = convertGraphic(npc.look, "monster"),
color = npc.lookColor
}
player.npcGraphic = t.graphic
player.npcColor = t.color
player.dialogType = 0
player.lastClick = npc.ID
if player.quest["valley_farm_ghost_can_hear"] == 1 t... |
local function algorithm(x)
local s = 0
repeat
if x % 2 == 1 then
s = s + x
end
io.write("Enter x: ")
x = io.read("n")
until x == 0
return s
end
print(algorithm(5)) |
-- The one that generates notification in right-panel
--
--
local awful = require('awful')
local naughty = require('naughty')
local watch = require('awful.widget.watch')
local wibox = require('wibox')
local gears = require('gears')
local dpi = require('beautiful').xresources.apply_dpi
local beautiful = require('beaut... |
--
-- fs51 - Compatibility layer for Minetest formspecs
--
-- Copyright © 2019-2021 by luk3yx.
--
fs51 = {}
local fs51 = fs51
local padding, spacing_x, spacing_y = 3/8, 5/4, 15/13
-- Random offsets
local random_offsets = {
-- box = {{0, 0}, {0.2, 0.125}},
label = {{0, 0.3}},
field = {{-padding, -0.33}, {... |
-----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Gotoh Zha the Redolent(ZNM T3))
-- !pos -337 -31 676 51
-----------------------------------
local ID = require("scripts/zones/Wajaom_Woodlands/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade... |
---
--- ColaFramework
--- Copyright ? 2018-2049 ColaFramework 马三小伙儿
--- 登录界面
---
local UIBase = require("Core.ui.UIBase")
local UIStartPanel = Class("UIStartPanel", UIBase)
local i18n = require("3rd.i18n.init")
local _instance = nil
function UIStartPanel.Instance()
if nil == _... |
--[[-- # Pre-render - Pandoc Lua filter for pre-rendering
selected math elements as svg images.
Pre-renders specified maths elements as images. When the target
format isn't LaTeX, any math contained in with a Div or Span
with class "pre-render" will be pre-rendered as svg images.
@author Julien Dutant <julien.dutan... |
---
-- @class PANEL
-- @desc Altered version of gmod's SpawnIcon
-- This panel does not deal with models and such
-- @section SimpleClickIcon
local matHover = Material("vgui/spawnmenu/hover")
local PANEL = {}
local math = math
local ipairs = ipairs
local IsValid = IsValid
local surface = surface
local draw = draw
lo... |
local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module')
function Euclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- state
self.gradInput:resize(inputSize)
self.output:resize(o... |
-----------------------------------
-- Area: Apollyon NW
-- Mob: Pluto
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local mobX = mob:getXPos();
local mobY = mob:getYPos();
local mobZ = mob:getZPos();
GetNPCByID(16932864+107):setPos(m... |
local iresty_test = require "resty.iresty_test"
local tb = iresty_test.new({unit_name="myauth.secrets-test"})
local cjson = require "cjson"
local test_secrets;
function tb:init( )
test_secrets = require "myauth.secrets".load("stuff/test-secrets.lua")
end
function tb:test_should_load_jwt_secret()
if(test_secr... |
local PointerCancel = {}
local Interaction = require("web-driver/interactions/interaction")
local methods = {}
local metatable = {}
function metatable.__index(typing_interaction, key)
return methods[key]
end
function methods:type()
return "pointerCancel"
end
function methods:encode()
return { type = self:type... |
local bosses = {
[3144] = {position = Position(33099, 31950, 10), name = 'deathstrike'},
[3145] = {position = Position(33103, 31951, 11), name = 'gnomevil'},
[3146] = {position = Position(33081, 31902, 12), name = 'abyssador', checkItemId = 18463},
}
function onStepIn(creature, item, position, fromPosition)
local ... |
areas = {
head = {
"title",
"javascript",
"css"
},
header = {
"banner"
},
footer = {
"copyright"
},
body_home = {
"show_latest"
},
sidebar = {
"about",
"links",
"poll",
"recent_links",
"powered_by",
},
body_post = {
"post"
},
body_poll = {
"p... |
--! SPDX-License-Identifier: MIT
--! Copyright (c) 2019 oO (https://github.com/oocytanb)
-- `cytanb.lua` をモジュールとして利用する場合は、以下の通り。
-- 1. この手順の説明の下にある `local __CYTANB_EXPORT_MODULE = true` の行を有効にする。
-- 2. `VCI Object` コンポーンネントの `Scripts` に、`cytanb.lua` をモジュール名 `cytanb` として追加設定する。
-- 3. VCI の `require` 関数を `main.lua... |
local lwtk = require"lwtk"
local Super = lwtk.TextLabel
local TitleText = lwtk.newClass("lwtk.TitleText", Super)
return TitleText
|
-- Storage.lua
-- Implements the DB backend for the plugin
--- The DB object
g_DB = {}
--- Creates the table of the specified name and columns[]
-- If the table exists, any columns missing are added; existing data is kept
-- a_Columns is an array of {ColumnName, ColumnType}, it will receive a map of LowerCa... |
-- Copyright 2015 Alex Browne. All rights reserved.
-- Use of this source code is governed by the MIT
-- license, which can be found in the LICENSE file.
-- add_job_to_set represents a lua script that takes the following arguments:
-- 1) The id of the job
-- 2) The name of a sorted set
-- 3) The score the inse... |
local export = {}
local tt = {
["𐭠"] = "ʾ", -- aleph
["𐭡"] = "b", -- beth
["𐭢"] = "g", -- gimil
["𐭣"] = "d", -- daleth
["𐭤"] = "h", -- he
["𐭥"] = "ʿ", -- waw-ayin-resh
["𐭦"] = "z", -- zayin
["𐭧"] = "ḥ", -- heth
["𐭨"] = "ṭ", -- teth
["𐭩"] = "y", -- yodh
["𐭪"] = "k", -- kaph
["𐭫"] = "l", -- lamed... |
-- Auto generated by WoWBench 3.0.3.a2 from "C:/Users/user/SkyDrive/Programming/WoW_Addons/DHUD/DHUD/legacy/deprecated_DHUD.xml" on 2013-06-13 17:02:46
local WOWB_XMLFILE="C:/Users/user/SkyDrive/Programming/WoW_Addons/DHUD/DHUD/legacy/deprecated_DHUD.xml";
local WOWB_XMLFILENOPATH="C:/Users/user/SkyDrive/Programming/... |
local socket = require("hs.socket")
local module = {}
module.sockFile = string.format("/tmp/yabai_%s.socket", os.getenv("USER"))
module.sockTimeout = 5
module.send = function(fn, ...)
assert(
type(fn) == "function" or (getmetatable(fn) or {}).__call,
"callback must be a function or object with... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
local function flip_data(data, size, indexFn, axis)
local pos = {x=0, y=0, z=0}
local max = { x=size.x, y=size.y, z=size.z }
local start = max[axis]
max[axis] = math.floor(max[axis] / 2)
while pos.x <= max.x do
pos.y = 0
while pos.y <= max.y do
pos.z = 0
while pos.z <= max.z do
local data_1 = data[i... |
-- file: sntpd.lua
local module = {}
local server = nil
local period = nil
local timeout = nil
function module.start(sntp_cfg)
server = sntp_cfg.server
period = sntp_cfg.period
timeout = sntp_cfg.timeout
module.sync()
end
function module.sync()
sntp.sync(server,
function(sec, usec, server, info)
print("... |
require "nvim-luasnip.snippets"
require("luasnip.loaders.from_vscode").lazy_load()
|
--!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... |
---@class EventManager
EsoAddonFramework_Framework_Eso_EventManager = EVENT_MANAGER
|
local Log = require "log.logger"
local Util = require "util.util"
local cmysql = require "cerberus_mysql"
local DBMgr =
{
_mysql_map = {}, -- {[db_name] = mysqlmgr}
}
function DBMgr.connect_to_mysql(ip, port, username, password, db_name)
local mysqlmgr = cmysql()
local ret = mysqlmgr:connect(ip, port, username, ... |
local a = require 'plenary.async_lib'
local async, await, await_all = a.async, a.await, a.await_all
local cli = require('neogit.lib.git.cli')
local util = require('neogit.lib.util')
local Collection = require('neogit.lib.collection')
local md5 = require 'neogit.lib.md5'
local function parse_diff(output)
local header... |
local ClassBase = class()
function ClassBase:init()
end
function ClassBase:base()
local base = getmetatable(self)
local b
self.base = function()
if base ~= nil then
b = b and b._base or base._base
return b
end
b = nil
return b
end
retu... |
{{~ for cur_field in fields ~}}
{{~ if cur_field.type == "number" ~}}
this:add_number_value("{{ cur_field.name }}", {{ cur_field.value }})
{{~ else ~}}
this:add_localized_string_value("{{ cur_field.name }}", "{{ langkey cur_field.value }}")
{{~ end ~}}
{{~ end ~}} |
local PAUSE = 1
--local instant_construct = true
--local instant_deconstruct = true
local instant_construct = false
local instant_deconstruct = false
--[[
local BUILD_HAND = 20
local BUILD_IRON = 15
local BUILD_STEEL = 10
local BUILD_DURATION_DECREASE = 20
]]
local MAX_BUILD_DISTANCE = 32
local selection_distance... |
#!/usr/bin/env lua
package.path = package.path..";../?.lua"
local gl = require("moongl")
local glfw = require("moonglfw")
local glmath = require("moonglmath")
local new_camera = require("common.camera")
local new_sphere = require("common.sphere")
-- A few shortcuts:
local vec3, mat4 = glmath.vec3, glmath.mat4
local ro... |
local Equipper = require('turtle.equipper')
local Point = require('opus.point')
local Util = require('opus.util')
local fs = _G.fs
local os = _G.os
local peripheral = _G.peripheral
local turtle = _G.turtle
local CONFIG_FILE = 'usr/config/farmer'
local STARTUP_FILE = 'usr/autor... |
return {
{
configure=function(runtime)
runtime.assign('amount', 999)
end,
[[
amount
]]
,
999
},
{
configure=function(runtime)
runtime.assign('amount', 10)
end,
[[
fromOutside: amount
fromOutside
]]
,
10
},
{
configure=function(runtime)
runtime.assign('getTheBestNumber', function() return 25 end)
end,
[[
... |
minetest.register_tool("oresplus:pick_emerald", {
description = "Emerald Pickaxe",
inventory_image = "oresplus_tool_emeraldpick.png",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=5,
groupcaps={
cracky = {times={[1]=2.5, [2]=1.5, [3]=1.0}, uses=50, maxlevel=5},
},
damage_groups = {fles... |
/*
* @package : rlib
* @module : sha1
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (C) 2018 - 2020
* @since : 1.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
*
* MIT License
*
* THE SO... |
-- Copyright (c) 2019 Phil Leblanc -- see LICENSE file
------------------------------------------------------------------------
-- lualinux tty mode functions
local lualinux = require "lualinux"
local util = require "lualinux.util"
local spack, sunpack, strf = string.pack, string.unpack, string.format
local errm, ... |
--- Like a rotated camera, except we end up pushing back to a default rotation.
-- This same behavior is seen in Roblox vehicle seats
-- @classmod PushCamera
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CameraState = require("CameraState")
local SummedCamera = require(... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local function MailFrameSkin()
for i = 1, _G.ATTACHMENTS_MAX_SEND do
... |
slot0 = class("ChallengePreCombatLayer", import("..base.BaseUI"))
slot1 = import("..ship.FormationUI")
slot2 = {
[99.0] = true
}
slot0.getUIName = function (slot0)
return "ChapterPreCombatUI"
end
slot0.init = function (slot0)
slot0.eventTriggers = {}
slot0._startBtn = slot0:findTF("right/start")
slot0._popup = s... |
// Put the allowed items for the quick menus here.
PLUGIN.hotkeyitems = {
["medic_medkit_1"] = "use",
["medic_medkit_2"] = "use",
["medic_medkit_3"] = "use",
["medic_medkit_4"] = "use",
["medic_medkit_5"] = "use",
["medic_medkit_6"] = "use",
["medic_bandage_1"] = "use",
["medic_bandage_... |
local skynet = require "skynet"
local log = require "log"
local protopack = require "protopack"
local socket = require "socket"
local utils = require "utils"
require "skynet.manager"
local gate
local SOCKET = {}
local pbc
local sock_handler
local redissrv
--------------------------------------------------------------... |
-- Zytharian (roblox: Legend26)
-- A stripped down local version of the server utilities module.
-- Note: For now, keep server and local util modules in sync.
-- Exported object
local UTIL = {}
UTIL.playerAlive = (function (player)
local character = player.Character
if not character
or not character:FindFirstChi... |
-- https://www.youtube.com/watch?v=AayjEF3dqa8
Camera = {}
Camera.x = 0
Camera.y = 0
Camera.scaleX = 1
Camera.scaleY = 1
Camera.rotation = 0
function Camera:set()
love.graphics.push()
love.graphics.rotate(-self.rotation)
love.graphics.scale(1 / self.scaleX, 1 / self.scaleY)
love.graphics.translate(-self.x, -se... |
-----------------------------------
-- Zone: Abyssea - Konschtat
-- NPC: Conflux Surveyor
-- !pos 133.000 -72.738 -824.000 15
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/abyssea")
require("scripts/globals/status")
-----------------------------------
function onTrad... |
local class = require("snabbp4.syntax.utils.middleclass")
local utils = require("snabbp4.syntax.utils.debug")
-- base symbol
local base = require("snabbp4.syntax.symbols.base")
local BaseSymbol = base.BaseSymbol
-- precedence values
local precedence = require("snabbp4.syntax.precedence")
local Metadat... |
HedgewarsScriptLoad("/Scripts/Locale.lua")
HedgewarsScriptLoad("/Scripts/Animate.lua")
-----------------------------Variables---------------------------------
startDialogue = {}
damageAnim = {}
onShroomAnim = {}
onFlowerAnim = {}
tookParaAnim = {}
tookPunchAnim = {}
onMoleHeadAnim = {}
tookRope2Anim = {}
challengeAnim... |
local CAT = "100map" -- prkd, hundo, rbo, kpdr25, gtclassic, kpdr21, 14ice, 14speed, allbosskpdr, allbosspkdr, allbossprkd, 100early, pkrd, nintendopower, gtmax, 100map
local last_state = {} -- holds all state that has been changed up untill last save
local preset_output = ""
local last_step = nil
local MEMTRACK = {... |
local ngx = require "ngx"
local table_nkeys = require "table.nkeys"
local orientdb_query = require "models.orientdb".query
local response = require "response"
local table_insert = table.insert
local _M = {}
_M.name = "example_ip_domain"
_M._VERSION = "0.1"
-- 获取ip类型
_M.get_iptype = function(ip)
local sql = "m... |
local policeDesc = "Here you can join the police service.\n\nPolice officer job is all about arresting wanted players. You can pick one of 8 various skins and 4 different types of police vehicles. When you get enough arrests you will be able to get promoted and become one of the special ranks in police job. Also good p... |
--Hunger & Thirst, doesn't raise hunger specific events because
--I can't think of a time when you want a hunger/thirst specific event.
local Hunger = {}
local triggers = {}
local function setup(args)
local tempTriggers = {}
tempTriggers.HungerAndThirst=
tempRegexTrigger("^(?:> )?You are (not hungry|slightly... |
function compressor_pipepictures()
return {
north = {
filename = "__RExtended__/graphics/entity/machinery/compressor-pipe-n.png",
priority = "extra-high",
width = 256,
height = 256,
shift = {0.28125, 1.875},
scale = 0.5
},
south = {
filename = "__RExtended__/graphics/entity/machinery/compressor-... |
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2022
-------------------------------------------------------------------------------
]]
--[[--
Singleton object.
The main class for managing scenes and the viewport.
]]
--- @classmod Application
local modul... |
--[[
desc:四川血战
auth:Carol Luo
]]
--[[玩法
[推倒胡]
]]
--[[流程
[开局]
[定庄]-[首轮随机]-[慌庄连庄]-[上局胡家当庄]
[发牌]
[打牌]
[结束]
[亮牌]
[结算]
]]
--[[牌库
[万1~9]*4
[条1~9]*4
[筒1~9]*4
]]
--[[牌型
[平胡]*1
[七对]*2
]]
--[[加倍
[杠上花]*2
]]
--[[动作
[下跑]-[不跑]-[跑一]-[跑二]-[跑三]
[开局]-[动画]
... |
object_building_general_coru_skyscraper_26 = object_building_general_shared_coru_skyscraper_26:new {
}
ObjectTemplates:addTemplate(object_building_general_coru_skyscraper_26, "object/building/general/coru_skyscraper_26.iff")
|
DEFINE_BASECLASS("player_default")
local PLAYER = {
DisplayName = "Server Defender",
JumpPower = 240,
RunSpeed = 350,
TeammateNoCollide = true,
WalkSpeed = 200
}
function PLAYER:Loadout()
local ply = self.Player
ply:RemoveAllItems()
ply:Give("gmod_tool")
ply:Give("md_wrench")
ply:Give("md_pda")
ply:Giv... |
--------------------------------------------------- αυтнσя : αя∂αναη81 -----------------------------------------------
-- Permission To Use This Script Will Grant To Steam Hexs & IPs Which Are Listed Below
local allowed = {
"steam:0000000",
"127.0.0.1"
}
-- Check Steam Hex For Granted Permission
f... |
local replay_browser = {}
replay_browser.selection = nil
replay_browser.base_path = "replays"
replay_browser.current_path = "/"
replay_browser.path_contents = {}
replay_browser.filename = nil
replay_browser.state = "browser"
replay_browser.menu_x = 400
replay_browser.menu_y = 280
r... |
dofilepath("data:ui/newui/Styles/HWRM_Style/HWRMDefines.lua")
dofilepath("data:ui/newui/Styles/HWRM_Style/ControlConstructors.lua")
dofilepath("player:PLAYERCFG.lua")
MusicPlayerVersion = "HOMEWORLD REMASTERED MUSICPLAYER V1.02"
UI_Color = PlayerSetup.teamcolour
UI_Color[4]=255
TitleColor = {255,255,255,255,}... |
local CHARGE_ABILITY = script:GetCustomProperty("Ability"):WaitForObject()
local WEAPON = script:GetCustomProperty("Weapon"):WaitForObject()
local startChargingTime = 0
local CHARGE_DELAY = 0.3
local CHARGE_DURATION = 1
function OnCastAbility(ability)
startChargingTime = time()
end
function OnExecuteAbility(abi... |
background = {}
background.elements = {}
function background.newElement(image, posX, posY)
local el = {
sprite = image,
x = posX,
y = posY,
r = 0,
vx = 0,
vy = 0,
looping = true,
}
table.insert(background.elements, el)
return el
end
function back... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.