content stringlengths 5 1.05M |
|---|
object_building_kashyyyk_mun_kash_sign_post_attachment_primitive = object_building_kashyyyk_shared_mun_kash_sign_post_attachment_primitive:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_mun_kash_sign_post_attachment_primitive, "object/building/kashyyyk/mun_kash_sign_post_attachment_primitive.iff")
|
local run = function()
local Opco = "local A = Inst[1];\nlocal B = Inst[2];\nlocal Stk = Stack;\nlocal Args, Results;\nlocal Limit;\nlocal Rets = 0;\nArgs = {};\nif (B ~= 1) then\nif (B ~= 0) then\nLimit = A + B - 1;\nelse\nLimit = Top;\nend;\nfor Idx = A + 1, Limit do\nArgs[#Args + 1] = Stk[Idx];\nend;\nResul... |
--[[
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
]]--
local tnt ... |
---
--- Created by Xerxes.
--- DateTime: 10/28/2020 5:48 AM
---
function deepcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in next, orig, nil do
copy[deepcopy(orig_key)] = deepcopy(orig_value)
end
setmetatable(copy, deepcop... |
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "jira-issues"
obj.version = "1.2"
obj.author = "Pavel Makhov"
obj.homepage = "https://github.com/fork-my-spoons/jira-issues.spoon"
obj.license = "MIT - https://opensource.org/licenses/MIT"
obj.indicator = nil
obj.timer = nil
obj.jira_host = nil
obj.jql = 'assign... |
-- Lua stuff
function onCreate()
-- triggered when the lua file is started
-- create a lua sprite called "Majinbop" which is the tag used in the script to refer the image and it anim to
makeAnimatedLuaSprite('Majinbop', 'majin FG2', -850, 550); --majing FG2 is the filename in mod/images so change it to your image (... |
local Magic = require("mod.elona_sys.api.Magic")
local Gui = require("api.Gui")
local Rand = require("api.Rand")
local Effect = require("mod.elona.api.Effect")
data:add {
_type = "base.damage_reaction",
_id = "cut",
on_damage = function(chara, power, params)
-- >>>>>>>> elona122/shade2/action.hsp:1328 ... |
local currentPath = (...):gsub('%.init$', '') .. "."
local Label = require "util.Label"
local ChatGado = {}; ChatGado.__index = ChatGado
function ChatGado:new()
local this = setmetatable({
shipPPA = love.graphics.newImage("assets/sprites/ShipPPA.png"),
elapsedTime = 0, background = love.grap... |
local rx = require("reactivex")
local scheduler = rx.CooperativeScheduler.create()
-- Cheer someone on using functional reactive programming
local observable = rx.Observable.fromCoroutine(function()
for i = 2, 8, 2 do
coroutine.yield(i)
end
return 'who do we appreciate'
end, scheduler)
observable
:map(f... |
--[[
A Pandoc 2 lua filter converting Pandoc native divs to amsthm style numbered environments.
Author: Bryan Clair, expanding latex-div.lua by Romain Lesur, Christophe Dervieux, and Yihui Xie
License: Public domain
For LaTeX output, things are fairly simple since the amsthm package handles
... |
ClassTrainerPlusPaladinSpellIds = {
-- Defense
3127,
-- Holy
19977,19978,19979,19742,19850,19852,19853,19854,4987,20116,20922,20923,20924,879,5614,5615,10312,10313,10314,19750,19939,19940,19941,19942,19943,25890,25894,25918,24275,24274,24239,639,647,1026,1042,3472,10328,10329,20929,20930,2812,10318,633,2800,103... |
local thd = require "remotedebug.thread"
thd.channel_produce = thd.channel
thd.channel_consume = thd.channel
return thd
|
luaObject:setLeftRight(true); |
for e,l in pairs({(function(l,...)_534999891e951239="This file was obfuscated using PSU Obfuscator 4.5.A | https://www.psu.dev/ & discord.gg/psu";local S=_534999891e951239 local g=l['ddD9Q08Z'];local d=l.q0TnsXw10z;local k=l[((400217565-#("857")))];local i=l["wXgWFJGq6I"];local c=l[(790596004)];local D=l[((101598979-#(... |
local utils = require "limgui.utils"
local VertexBuffer = require("engine.vertex_buffer").VertexBuffer
local M = {}
---@class EngineSubMesh
---@field index_draw_offset integer
---@field index_draw_count integer
---@field material SceneMaterial
---@class EngineDrawable
---@field vbo VertexBuffer
---@field submeshes E... |
-- Prosody IM
-- Copyright (C) 2014-2015 Sipwise GmbH <development@sipwise.com>
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local set = require "util.set";
local ut = require "ngcp.utils";
local jid = require "util.jid";
loca... |
local PANEL = {}
function PANEL:Init()
self:SetTextInset( 5, 0 )
end
function PANEL:UpdateColours( skin )
if self:GetParent():IsLineSelected() then
return self:SetTextStyleColor( Metro.Colors.TextHighlight )
end
return self:SetTextStyleColor( Metro.Colors.TextDefault )
end
Metro.Register( "MetroListViewLa... |
-- ID of the player
playerId = 1
-- Start position of the view
startPosition = BlackFox.Math.Vector2f:new(0,0)
-- Move speed of the view
moveSpeed = 5
-- Rotate speed
rotateSpeed = 30
-- Zoom speed
zoomSpeed = 1 |
-- Copyright (c) 2018, xiedacon.
test(
Object.set({}, { "a", "a", "a", "a" }, "a"),
{
a = {
a = {
a = {
a = "a"
}
}
}
}
)
|
--[[
by Dmitriy Coleman AKA ZloyNomernoy (vk.com/c.zombie)
License: MIT
]]
menubutton = CreateClientConVar("madmin_key", KEY_F3, true, false, "Sets a minsk admin panel open key") or KEY_F3
local function T(phrase, ...)
return string.format(Metrostroi.GetPhrase(phrase), ...)
end
local function Has... |
local utils = require("substitute.utils")
local config = require("substitute.config")
local range = {}
range.state = {
subject = nil,
match = nil,
augroup = nil,
overrides = {},
}
function range.operator(options)
range.state.overrides = config.get_range(options or {})
vim.o.operatorfunc = "v:lua.require'... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Effects = {
PlaceObj('CreatePlanetaryAnomaly', {
'id', "XMarksTheSpot",
'display_name', T(11394, --[[StoryBit TreasureHunt_2 display_name]] "X Marks the Spot"),
'description', T(11395, --[[Stor... |
local n = 3
while n > 0 do
print("while n", n)
n = n - 1
end
print()
n = 3
local a = 1
repeat
local a = 2
print("repeat n", n, a)
n = n - 1
until n == 0
print(a)
for i=3,1,-1 do
print("for i", i)
end
print()
for i=1,3 do
print("for i", i)
end
|
--
-- Broker peering simulation (part 2)
-- Prototypes the request-reply flow
--
-- While this example runs in a single process, that is just to make
-- it easier to start and stop the example. Each thread has its own
-- context and conceptually acts as a separate process.
--
-- Author: Robert G. Jakabosky <bobby... |
hs.hotkey.bind({"cmd"}, "space", function()
local alacritty = hs.application.find('alacritty')
if alacritty:isFrontmost() then
alacritty:hide()
else
hs.application.launchOrFocus("/Applications/Alacritty.app")
end
end)
hs.hotkey.bind({"cmd"}, "t", function()
local teams = hs.application.find('teams')
... |
-------------------------------------------------------------------------------
-- Table helpers
-------------------------------------------------------------------------------
local function transpose(x)
local r = {}
for i = 1, #x[1] do
r[i] = {}
for j = 1, #x do
r[i][j] = x[j][i]
... |
require "lib.globals"
require "lib.action"
require "lib.fetch"
require "lib.task"
require "lib.service" |
local utils = {}
function utils.add_keymap(mode, opts, keymaps)
for _, keymap in ipairs(keymaps) do
vim.api.nvim_set_keymap(mode, keymap[1], keymap[2], opts)
end
end
function utils.add_keymap_normal_mode(opts, keymaps)
utils.add_keymap("n", opts, keymaps)
end
function utils.add_keymap_visual_mode(opts, ke... |
local stack = require("stack")
local graph = require("graph")
local AdjacencyList = graph.AdjacencyListGraph
-- T - O(V + E)
-- S - O(|V|)
function TopologicalSort(graph)
local vertices = graph:count()
local path = stack.new()
local visited = {}
for vertex = 1, vertices do
visited[vertex] = false
end
... |
--- @ignore
CLGAMEMODEMENU.base = "base_gamemodemenu"
CLGAMEMODEMENU.icon = Material("vgui/ttt/vskin/helpscreen/gameplay")
CLGAMEMODEMENU.title = "menu_gameplay_title"
CLGAMEMODEMENU.description = "menu_gameplay_description"
CLGAMEMODEMENU.priority = 95
|
local user_key = KEYS[1]
local status_counter = KEYS[2]
local login = redis.call('hget', user_key, 'login')
if not login then
return 0
end
local id = redis.call('incr', status_counter)
local status_key = string.format('status:%s', id)
redis.call('hset', status_key, 'login', login, 'id', id, unpack(ARGV))
redis.call... |
#!/usr/bin/env lua
--
-- Copyright 2016, Grinn
--
-- SPDX-License-Identifier: MIT
--
local posix = require 'posix'
local dbus = require 'easydbus'
local bus = dbus.session()
local unpack = unpack or table.unpack
local SERVICE = 'test.easydbus'
local PATH = '/test/path'
local INTERFACE = 'test.interface'
local f... |
max_fov = 360
max_vfov = 180
lens_width = 2*pi
lens_height = pi
onload = "f_contain"
function lens_forward(x,y,z)
local lat,lon = ray_to_latlon(x,y,z)
local x = lon*cos(lat)
local y = lat
return x,y
end
|
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:OnTakeDamage(damage)
self:SetHealth(self:Health() - damage:GetDamage())
if self:Health() <= 0 then
self:Remove()
end
end |
--[[
Version : 1.4.0
自定義類型 類別,使用javascript的方式--對象關聯或稱委託。
新的類別能夠很好區分類別和實例的差別,不會像以往子類實際上也只是父類的一個實例。
功能有new、__index、remove。鑒於Lua的特性,若有需要可直接重寫方法。
保留setInstance、getInstance關鍵字,用來處理實例與類別的綁定。
私有函數_new、_remove提供使用者自定義在建構和解構時想要執行的功能。
table、string、number、boolean:當前類別搜索不到會去搜尋原型鏈,找到的話就返回值,沒有就返回nil。不會複製一... |
local getVector = require("core/vector")
local function getSeagull(x, y, player)
local seagull = {}
seagull.name = 'seagull'
seagull.drawType = 'image'
seagull.destroyed = false
seagull.text = text
seagull.player = player
seagull.seagullVel = math.random(100, 200)
seagull.dimension = ... |
-- IupSubmenu Example in IupLua
-- Creates a dialog with a menu with three submenus. One of the submenus has a submenu, which has another submenu.
require( "iuplua" )
-- Creates a text, sets its value and turns on text readonly mode
text = iup.text {value = "This text is here only to compose", expand = "YES"... |
lshift, rshift, tohex, arshift, band, bxor, bor, bnot, bror, brol = bit.lshift, bit.rshift, bit.tohex, bit.arshift, bit.band, bit.bxor, bit.bor, bit.bnot, bit.ror, bit.rol
function bnor(a,b)
return bnot(bor(a,b))
end
function bnand(a,b)
return bnot(band(a,b))
end
function toInt32(byte4, byte3, byte2, byte1)
... |
-----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- !pos 573.245 24.999 199.560 109
-----------------------------------
local ID = require("scripts/zones/Pashhow_Marshlands/IDs")
-----------------------------------
function onTrade(player, npc, tr... |
if foo then
bar()
end
for k, v in pairs(t) do
bar()
end
while true do
bar()
end
while foo() do
bar()
end
if foo then
bar()
elseif true then
fizz()
end
if foo then
bar()
elseif true then
fizz()
elseif true then
buzz()
end
do
stuff()
end
repeat
download()
until disk_full()
-- vim: et sw=4 sts=4 ts=4
|
-- @Author: Ritesh Pradhan
-- @Date: 2016-04-10 17:06:15
-- @Last Modified by: Ritesh Pradhan
-- @Last Modified time: 2016-04-21 14:31:40
-- Bullet visual effect
-- Bullet can be either can be of Player or Enemy, or it can act as an explosion visualisation.
local physics = require("physics")
local sounds = requir... |
include('shared.lua')
print("money_briefcase/cl_init.lua")
function ENT:drawMoneyInfo()
surface.SetDrawColor(Colours.filla)
-- 384x235 -- center
--local height = 160
--local width = 240
--surface.DrawRect(0,0,width,height)
surface.DrawRect(0, 0, 240, 46)
draw.SimpleTextOutlined( "Stolen Mon... |
-- negative number
require "math.Pi"-1
local x= - 1
local a=- a
local b= -b
local c=math.min(a, b)-1
local d=-(1+2)
local e=1-(1+2)
local tab ={- 1,-2,- 3}
local last=tab[#tab] -1
|
--[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
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 ... |
return {
lintCommand = './vendor/bin/phpstan analyze --error-format raw --no-progress'
}
|
local function override_protector_node(node_name)
local node_def = minetest.registered_nodes[node_name]
assert(node_def)
local old_after_place_node = node_def.after_place_node
assert(old_after_place_node)
local old_after_destruct = node_def.after_destruct
assert(old_after_destruct)
minetest.override_it... |
/*
Creating a wrapper, without the need of third party modules such as Bromsocket.
We already know that Websockets work on clientside using Javascript, however
serversided, we can't really execute any Javascript code. Therefore, we will
use http.fetch and post to do serversided authentication and send it back... |
local util = require("resty.acme.util")
local helpers = require "spec.helpers"
local cjson = require "cjson"
local pkey = require("resty.openssl.pkey")
local x509 = require("resty.openssl.x509")
local client
local function new_cert_key_pair(expire)
local key = pkey.new(nil, 'EC', 'prime256v1')
local crt = x509.... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local BaseNormalizer = require "src.CodeNormalizer.Normalizer.Base"
---
-- Normalizer that removes leading and trailing whitespace from given sets of lines.
--
-- @type SurroundingWhitespaceRemover
--
local SurroundingW... |
TOOL.Base = "base_brush"
TOOL.Description = "Removes any entities that touches this brush. Except for players, in which they would just silently die."
--------------------------------------------------------------------------------
TOOL.TextureColor = Color(255,0,0,200)
TOOL.TextureText = "Remove"
----------------... |
yatm.codex.register_entry("yatm_data_network:data_cable", {
pages = {
{
heading_item = {
context = true,
default = "yatm_data_network:data_cable_white",
},
heading = "Data Cable",
lines = {
"Data Cables carry data in a data network.",
"They only connect to t... |
ELONA.i18n:add {
quest = {
journal_updated = "ジャーナルが更新された。",
minutes_left = "クエスト[残り{$1}分]",
completed = "クエストを達成した!",
completed_taken_from = "{$1}から受けた依頼を完了した。",
failed_taken_from = "{$1}から受けた依頼は失敗に終わった。",
gain_fame = "{$1}の名声値を手に入れた。",
lose_fame = "名声値を{$1}失った。",
hu... |
local silentAndNoremap = { silent = true, noremap = true }
vim.api.nvim_set_keymap('i','jk','<esc>', silentAndNoremap)
vim.api.nvim_set_keymap('n','<enter>','O<esc>j', silentAndNoremap)
vim.api.nvim_set_keymap('n','<leader>w',':write<cr>', silentAndNoremap)
vim.api.nvim_set_keymap('n','<leader>q',':quit!<cr>', silen... |
mStaffLogs = {}
function mStaffLogs.init()
mStaffLogs.logs = {}
mStaffLogs.filter = nil
mStaffLogs.full = false
cSync.addHandler("StaffLogs.next", mStaffLogs.sync.next)
mStaffLogs.gui.init()
return true
end
function mStaffLogs.term()
cSync.removeHandler("StaffLogs.next", mStaffLogs.sync.next)
mStaffLo... |
local sarif = require "sarif"
local function formatTime(t)
local d = os.date("!%Y-%m-%dT%H:%M:%S%z", t or os.time())
return d:sub(1, -3) .. ":" .. d:sub(-2)
end
local Tracker = {}
function Tracker:start(msg)
local category = msg.p and msg.p.category or "unspecified"
local text = msg.p and msg.p.text or msg.text
... |
function SWEP:NZMaxAmmo()
local at = self:GetPrimaryAmmoType()
if IsValid(self.Owner) then
if self.Primary.ClipSize <= 0 then
local count = math.Clamp(10, 300 / ( self.Primary.Damage / 30 ), 10, 300)
self.Owner:SetAmmo( count, at)
else
local count = math.Clamp( math.abs(self.Primary.... |
-----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Velda-Galda
-- Type: Mission NPC
-- !pos 138.631 -3.112 61.658 94
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
player:startEvent(177)
end
function onEventUpdate(player,csid,optio... |
-- Ampton becomes a Yeti
local M = {}
local M_mt = { __index = M }
function M:new(start)
if self ~= M then
return nil, "First argument must be self"
end
local o = setmetatable({}, M_mt)
o._count = start
return o
end
setmetatable(M, { __call = M.new })
function M_mt:__tostring()
return s... |
function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
if
type( sEventName ) == 'string' and
isElement( pElementAttachedTo ) and
type( func ) == 'function'
then
local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo )
if type( aAttachedFunctions ) == 'table' and... |
--- 框架默认事件动作
--- default event actions
hevent_default_actions = {
player = {
esc = cj.Condition(function()
hevent.triggerEvent(
cj.GetTriggerPlayer(),
CONST_EVENT.esc,
{
triggerPlayer = cj.GetTriggerPlayer()
}
... |
Grid = {}
function Grid:create(o)
return self
end
function Grid:get(x,y)
return self[y][x]
end
function Grid:set(x,y,val)
self[y][x] = val
end
function Grid:has(x,y)
if self[y] and self[y][x] then return true else return false end
end
function Grid:neighbors(x,y,condition)
local n = 0
for i... |
workspace "Kernstuck"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Kernstuck/vendor/GLFW/include"
include "Kernstuck/vendor/GLFW"
project "Kernstuc... |
function love.conf(t)
t.console = true;
t.window.width = 600;
t.window.height = 400;
t.window.minwidth = 400;
t.window.minheight = 200;
t.window.resizable = true;
t.modules.audio = false;
end; |
return function(s, common)
local kernel_settings = TableDeepCopy(s.common_settings)
kernel_settings.cc.includes:Add("src/common/include/kogata",
"src/kernel/include")
kernel_settings.link.flags:Add("-T src/kernel/linker.ld")
kernel_source = {
Collect('src/kernel/core/*.s'),
Collect('src/kernel/dev/*... |
-- Event notes hooks
function onCreate()
setPropertyFromClass('ClientPrefs', 'middleScroll', true);
end |
giant_gackle_bat = Creature:new {
objectName = "@mob/creature_names:giant_gackle_bat",
socialGroup = "gacklebat",
faction = "",
level = 24,
chanceHit = 0.350000,
damageMin = 230,
damageMax = 240,
baseXp = 2443,
baseHAM = 7550,
baseHAMmax = 7550,
armor = 0,
resists = {115,120,-1,125,-1,-1,-1,-1,-1},
meatTyp... |
--[[
MailSlurp API
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - ... |
-- Check if a player is a law player
local lawTeams = {
"Military Forces",
"SWAT",
}
function isLaw( thePlayer )
if ( isElement( thePlayer ) ) and ( getElementType ( thePlayer ) == "player" ) and ( getPlayerTeam ( thePlayer ) ) then
for i=1,#lawTeams do
if ( getTeamName( getPlayerTeam( thePlayer ) ) == lawTe... |
local Dta = select(2, ...)
Dta.flying = {}
--------------------------------------
-- TRIBAL MAGIC BUTTON HANDLERS
--------------------------------------
function Dta.flying.PitchWheelBack(slider, hEvent)
local min, max = slider:GetRange()
local pos = slider:GetPosition()
if pos > min then
slider:SetPosition(pos... |
require(GetScriptDirectory() .. "/logic")
require(GetScriptDirectory() .. "/ability_item_usage_generic")
local npcBot = GetBot()
local ComboMana = 0
local debugmode=false
local Talents ={}
local Abilities ={}
for i=0,23,1 do
local ability=npcBot:GetAbilityInSlot(i)
if(ability~=nil)
then
if(ability:IsTalent()==t... |
------------------------------------------------------------------------
--[[ SeqBRNN ]] --
-- Bi-directional RNN using two SeqLSTM modules.
-- Input is a tensor e.g time x batch x inputdim.
-- Output is a tensor of the same length e.g time x batch x outputdim.
-- Applies a forward rnn to input tensor in forward order
... |
--oo/resources/imagelist: image lists
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
require'winapi.itemlist'
require'winapi.handlelist'
require'winapi.imagelist'
ImageLists = HandleList'himl'
ImageList = subclass({
__defaults = {
w=32, h=32,
initial_size = 0, --if > 0 you'll have t... |
--[[
ui-engine-v2
version 1.3a
by Singularity (V3rm @ King Singularity) (Discord @ Singularity#5490)
--]]
local ui_options = {
main_color = Color3.fromRGB(41, 74, 122),
min_size = Vector2.new(400, 300),
toggle_key = Enum.KeyCode.RightShift,
can_resize = true,
}
do
local imgui = game:GetService("CoreGui"):Find... |
Tree={branchname="ESG-Artikel-Links",
"https://www.pwc.de/de/managementberatung/forensic-services/esg-fraud/esg-risk-assessments.html",
"https://www.boersen-zeitung.de/banken-finanzen/auf-der-suche-nach-den-esg-daten-eb3921aa-ba3e-11ec-8e62-5f7cf1d225cc",
"https://www.msn.com/de-de/finanzen/top-stories/esg-risikoma... |
R"luastring"--(
-- DO NOT REMOVE THE ABOVE LINE. It is used to load this file as a C++ string.
-- There is a matching delimiter at the bottom of the file.
--[[
Copyright (c) 2006-2015 LOVE Development Team
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be hel... |
-- import
local SignalModule = require 'candy.signal'
local RenderManagerModule = require 'candy.RenderManager'
local sortModeValue = {
iso = MOAIPartitionViewLayer.SORT_ISO;
priority_ascending = MOAIPartitionViewLayer.SORT_PRIORITY_ASCENDING;
priority_descending = MOAIPartitionViewLayer.... |
hyper = { "ctrl", "cmd", "alt" }
ctrl_cmd = { "ctrl", "cmd" }
hs.hotkey.bindSpec({ hyper, "r" }, function()
hs.reload()
-- hs.notify.new({ title = "Hammerspoon", informativeText = "Config reloaded" }):send()
end)
hs.hotkey.bindSpec({ hyper, "k" }, function()
hs.execute("get-kerberos-pass", true)
end)
hs.hotkey.bi... |
local BODY_DEBUG = script:GetCustomProperty("BodyDebug"):WaitForObject() ---@type IKAnchor
local l1 = BODY_DEBUG.activatedEvent:Connect(
function(ik, player)
player.clientUserData.bodyIKEnabled = true
player.clinetUerData.bodyIK = BODY_DEBUG
end
)
local l2 = BODY_DEBUG.deactivatedEvent:Connect... |
local M = {}
M.__index = M
function M.new(graphics)
lg.setDefaultFilter('linear', 'linear')
return setmetatable({
graphics = graphics,
places = {
overworld = {
bg = lg.newImage("assets/images/world/overworld.png"),
},
antiques = {
bg = lg.newImage("assets/images/world/antiques/interior.pn... |
adminCommands = {}
hook.Add("PlayerSay", "RegisterCommands", function(ply, text, teamc, alive)
local chat_string = string.Explode(" ", text)
for k, v in pairs( adminCommands ) do
if( chat_string[1] == k ) then
table.remove(chat_string, 1)
v(ply, chat_string)
return ""
end
if( string.find(k, c... |
EditorInstigatorRule = EditorInstigatorRule or class(MissionScriptEditor)
EditorInstigatorRule.SAVE_UNIT_POSITION = false
EditorInstigatorRule.SAVE_UNIT_ROTATION = false
function EditorInstigatorRule:create_element(...)
EditorInstigatorRule.super.create_element(self, ...)
self._element.class = "ElementInstigatorRule"... |
local gui = require 'yue.gui'
local ca = require 'gui.new.common_attribute'
local timer = require 'gui.timer'
return function (t, data)
local view = gui.Container.create()
if t.style then
view:setstyle(t.style)
end
view:setbackgroundcolor '#444'
local frontlabel = gui.Label.create... |
local c = 0
function f()
return 1
end
for j=1,10 do
for i=1,1000000 do
c = c + f()
end
end
print(c) |
local BasePlugin = require "kong.plugins.base_plugin"
local jwt_decoder = require "kong.plugins.jwt.jwt_parser"
local JWT_PLUGIN_PRIORITY = (require "kong.plugins.jwt.handler").PRIORITY
local MAPPED_HEADER_PREFIX = "X-Consumer-"
local ngx_set_header = ngx.req.set_header
local ngx_re_gmatch = ngx.re.gmatch
local JwtC... |
--30 watt Light bulb
--------------------------------------------------------------------------------
minetest.register_craftitem("mylights:lightbulb30", {
description = "30 watt Light Bulb",
inventory_image = "mylights_lightbulb30.png",
groups = {not_in_creative_inventory = 1}
})
--60 watt Light bulb
------------... |
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
-- This file is automaticly generated. Don't edit manualy!
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
---@class C_Calendar
C_Calendar = {}
---[Wowpedia documentation](https://wow.gamepedia.com/API_C_Calendar.AddEvent)
function C_Calendar.AddEv... |
local class = require "class"
local timer = require "internal.Timer"
local pgsql = require "protocol.pgsql"
local log = require "logging"
local Log = log:new({ dump = true, path = 'DB'})
local crypt = require "crypt"
local hashkey = crypt.hashkey
local co = require "internal.Co"
local co_self = co.self
... |
-- Hearts view used in game screen and in the savegames selection screen.
local hearts_builder = {}
function hearts_builder:new(game, config)
local hearts = {}
if config ~= nil then
hearts.dst_x, hearts.dst_y = config.x, config.y
end
hearts.surface = sol.surface.create(81, 18)
hearts.empty_heart_spri... |
--------------------------------------------------------------------------------
-- MCMC module.
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
--------------------------------------------------------------------------------
return {
nuts = require "sci.mcmc._nuts".mcmc,
} |
Enemy = Thing:extend("Enemy")
function Enemy:new(...)
Enemy.super.new(self, ...)
self.SFX.hurt = SFX("sfx/enemy_hurt")
self.SFX.kill = SFX("sfx/destroy")
self.z = ZMAP.Enemy
self.floating = false
self.bounceOffWalls = true
self.walkOffPlatform = false
self.nearingEndOfPlatform = false
self.canGetSquashed... |
local NilInventory = require('model/inventory/nil')
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local PlayerInventory = NilInventory:NilInventory()
PlayerInventory.__index = PlayerInventory
----------... |
object_tangible_quest_as_inf02_helm = object_tangible_quest_shared_as_inf02_helm:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_as_inf02_helm, "object/tangible/quest/as_inf02_helm.iff")
|
require "Client.Scripts.Modulus.Event.EventMgr" |
--[[--
Copyright 2022 brunoais
Licensed under the Apache License with acknowledgement, Version 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://github.com/brunoais/lua-module-reload/blob/master/License
Unless required by appl... |
local _, C = unpack(select(2, ...))
C.MPDHerbs = {
-- http://www.wowhead.com/spell=51005/milling#milled-from:0+1+17-20
[765] = true, -- Silverleaf
[785] = true, -- Mageroyal
[2447] = true, -- Peacebloom
[2449] = true, -- Earthroot
[2450] = true, -- Briarthorn
[2452] = true, -- Swiftthistle
[2453] = true, -- Br... |
slot2 = "DzpkLoadingCcsView"
DzpkLoadingCcsView = class(slot1)
DzpkLoadingCcsView.onCreationComplete = function (slot0)
slot4 = BaseGameLoadingCcsView
ClassUtil.extends(slot2, slot0)
slot3 = slot0
BaseGameLoadingCcsView.onCreationComplete(slot2)
end
DzpkLoadingCcsView.createSpineLogo = function (slot0)
if not... |
return function(array, target)
local function aux(start_index, end_index)
if start_index >= end_index then
return array[start_index] == target and start_index or -1
end
local search_index = math.floor((end_index + start_index) / 2)
if array[search_index] == target then
return search_inde... |
--[[ RealMobHealth Overrides Data
by SDPhantom
https://www.wowinterface.com/forums/member.php?u=34145 ]]
------------------------------------------------------------------
local AddHealthOverride=select(2,...).AddHealthOverride;
-- Usage: AddHealthOverride(CreatureKey,MaxHealth)
-- [string] CreatureKey Unique iden... |
local _, C, L = unpack(KkthnxUI)
C.DeprecatedAuras = {
["Enchant Aura"] = { -- 附魔及饰品组
-- 8.0
{ AuraID = 229206, UnitID = "player" }, -- 延时之力
{ AuraID = 251231, UnitID = "player" }, -- 钢肤药水
{ AuraID = 279151, UnitID = "player" }, -- 智力药水
{ AuraID = 279152, UnitID = "player" }, -- 敏捷药水
{ AuraID = 279153, Un... |
----------------------------------------------------------------------------------------------------
--
-- Copyright (c) Contributors to the Open 3D Engine Project.
-- For complete copyright and license terms please see the LICENSE at the root of this distribution.
--
-- SPDX-License-Identifier: Apache-2.0 OR MIT
--
--... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.