content stringlengths 5 1.05M |
|---|
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras... |
--[[
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) - ... |
---
-- Bit data type, a C structure defined as:
--
-- ``` c
-- typedef struct bit {
-- uint8_t value;
-- } bit_t;
-- ```
--
-- @datatype Bit
-- @tparam[opt=0] int value Initial value
local ffi = require('ffi')
local bit = require('bit')
local CStructType = require('radio.types.cstruct')
ffi.cdef[[
typedef struct... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["FlaskIncreasedRecoverySpeed1"] = { type = "Prefix", affix = "Catalysed", "50% increased Recovery rate", statOrderKey = "345", statOrder = { 345 }, level = 1, group = "FlaskRecoverySpeed", weightKey = { "utility_flask... |
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
local licenseBlip
local licenseTarget
local licenseMarker
local licenseVehicle
local licenseCategory
local categoryPositions={
["A"]={
{-2490.59, -126.64, 25.62},
{-25... |
return {
time = 5,
name = "鬼神演舞",
init_effect = "jinengchufablue",
color = "red",
picture = "",
desc = "提高机动属性",
stack = 1,
id = 10942,
icon = 10942,
last_effect = "",
blink = {
1,
0,
0,
0.3,
0.3
},
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onRemo... |
-- "Polyfill" for compatibility with Lua 5.1
local concat = table.concat
local open = io.open
-- Lua 5.1
if not package.searchpath then
-- Copied from https://github.com/keplerproject/lua-compat-5.3/blob/master/compat53/module.lua.
function package.searchpath(name, path, sep, rep) --luacheck: ignore
sep = (s... |
return Def.ActorFrame {
Def.Sprite {
Texture=NOTESKIN:GetPath( '_down', 'tap note' );
Frames = Sprite.LinearFrames( 4, 1 );
};
}; |
-----------------------------------------
-- Spell: Drain
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/msg")
-----------------------------------------
fu... |
--孤诞荒神仪
local m=14000256
local cm=_G["c"..m]
cm.named_with_war=1
function cm.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTa... |
----------------------------------------
-- Developer Note:
-- THIS RESOURCE CANNOT BE RESTARTED
-- WHILE THE SERVER IS RUNNIVDBG, IT CAN
-- MAKE MINUTES OF NETWORK TROUBLE
-- WHILE QUERYIVDBG ALL GROUPS DATA
-----------------------------------------
local groups = { }
addEventHandler ( "onResourceStart", resou... |
project "GBZ80"
kind "StaticLib"
language "C"
cdialect "C11"
staticruntime "off"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
--pchheader "hzpch.h"
--pchsource "src/hzpch.cpp"
files
{
"include/**.h",
"src/**.c"
}
... |
local app = app
local Class = require "Base.Class"
local Unit = require "Unit"
local GainBias = require "Unit.ViewControl.GainBias"
local Encoder = require "Encoder"
local StressUnit = Class {}
StressUnit:include(Unit)
function StressUnit:init(args)
args.title = "Stress"
args.mnemonic = "St"
Unit.in... |
--To understand this script, you should know that "#someList" means "The number of items in the table referred to by the someList variable"
SCREEN_WIDTH = 1026
SCREEN_HEIGHT = 768
MAX_RECTS = 512
rects = {}
function addRect()
local rect = {}
rect.x = math.random(0, SCREEN_WIDTH) - 128
rect.y = math.rando... |
MICRO_SHIP_INFO = MICRO_SHIP_INFO or {}
local ENTITY = FindMetaTable("Entity")
function ENTITY:GetShipInfo()
local pos = self:GetPos()
for i,info in pairs(MICRO_SHIP_INFO) do
if pos.z>info.maxs.z or pos.z<info.mins.z then continue end
if pos.x>info.maxs.x or pos.x<info.mins.x then continue end
if pos.y>info.m... |
object_building_kashyyyk_poi_kash_rryatt_lvl2_walk_tree_a3 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl2_walk_tree_a3:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl2_walk_tree_a3, "object/building/kashyyyk/poi_kash_rryatt_lvl2_walk_tree_a3.iff")
|
workspace "VisceralCombatEngine"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include 3rd party libraries into the project
IncludeDir = {}
IncludeDir["GLFW"] = "%{prj.name}/vendor/GLFW/include"
IncludeDir["GLad"] = "%{pr... |
-- == Wc ==
-- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com>
-- License: MIT License (see LICENSE file)
-- Description: word count
--
-- History:
-- 2018/01/12: 0.0.1: first version
return function(...)
table.remove(arg,1)
for i,f in ipairs(arg) do
if file.open(f,"r") then
local cc... |
--[[
################################################################################
#
# Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm)
#
# 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 th... |
local MapPlayerModule = require "module.ModuleProxy.MapPlayerProxy"
local class = require "utils.class"
local ModuleMgr = class()
function ModuleMgr:_init_()
self.data = {}
self.data.MapPlayerModule = MapPlayerModule()
end
function ModuleMgr:get()
if self.data then
return self.data
end
return nil
end
local _ins... |
local f = {}
-- path example: games/Luxor/
function f.main(path)
-- Load Config
local config = loadJson(path .. "config.json")
-- Bump version
config.engineVersion = "v0.30.0"
-- Add new necessary variables to sphere entries
for sphereN, sphereData in pairs(config.spheres) do
-- new interchangeable... |
--[[
1v1 AI Competition framework
Code: Yaofeng, based on Perry
Date: 2018
-------------
1. 1v1 GameRule: Player slot
2. Control UI according to config
3. Listener UI mode select: create fake client, init gamemode
3. GameStateListener
DOTA_GAMERULES_STATE_HERO_SELECTION: create hero for AI
DOTA_GAMERULES_ST... |
--[[
Demojify.lua
A function to strip emoji-like codepoints from strings.
This module is licensed under MIT, review the LICENSE file or:
https://github.com/buildthomas/Demojify/blob/master/LICENSE
--]]
local function lookupify(t)
local r = {}
for _, v in pairs(t) do
r[v] = true
end
return r
end
-- All em... |
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 9,
"version_minor", 6,
}),
},
"title", "Place-a-lake",
"id", "ChoGGi_Placealake",
"steam_id", "1743037328",
"pops_any_uuid", "9f01952e-daec-4fc8-a10b-f875... |
a = factorial(41)
b = factorial(42)
print('a = fac(41) = ' .. tostring(a))
print('b = fac(42) = ' .. tostring(b))
print('b / a = ' .. tostring(b / a))
c = a * 42
d = sqrt(cl_R(10))
print('d = sqrt(10) = ' .. tostring(d))
if c == b then print('equality operator test: ok') else print('equality operator test: failed... |
require "cutorch"
require "nn"
require "cunn"
require "nngraph"
require 'logroll'
cutorch.manualSeed(123)
local tds = require('tds')
local Dataset = require("Atten/Dataset")
local AttenModel = torch.class('AttenModel')
local logger = logroll.print_logger()
local N_SAMPLE_BATCHES = 50
local function readObject(file... |
local BugBase = import(".BugBase")
local BugAnt = class("BugAnt", BugBase)
function BugAnt:ctor()
BugAnt.super.ctor(self)
self.type_ = BugBase.BUG_TYPE_ANT
self.speed_ = 1.0
self.touchRange_ = 70
end
return BugAnt
|
local checkTimer = 0
function OnPackageStart()
Delay(5000, function()
checkTimer = CreateTimer(Check, 5000)
Check()
end)
end
AddEvent("OnPackageStart", OnPackageStart)
function Check()
local x, y, z = GetPlayerLocation()
local terrain = GetTerrainHeight(x, y, 99999.9)
if z < 0 and terrain -400 > z and no... |
FaceBookConfig = { }
FaceBookConfig[1]={areaId=1,mapId=1009,areaName='决明谷外',nameColor='00FF7F',isShow=true,audioId={11,32,44}}
FaceBookConfig[2]={areaId=2,mapId=1009,areaName='恒岳派后山',nameColor='00FF7F',isShow=true,audioId={553,332}}
FaceBookConfig[3]={areaId=3,mapId=1009,areaName='蛮荒丛林',nameColor='00FF7F',isShow=true,a... |
impulse.Ops = impulse.Ops or {}
impulse.Ops.Reports = impulse.Ops.Reports or {}
impulse.Ops.Log = impulse.Ops.Log or {}
function impulse.Ops.NewLog(msg, isMe)
table.insert(impulse.Ops.Log, {
message = msg,
isMe = isMe or false,
time = CurTime()
})
if not isMe then
OPS_LASTMSG_CLOSE = false
end
end
local ... |
---
redis.log(redis.LOG_NOTICE, 'Redlics')
local func = cmsgpack.unpack(ARGV[1])
local keys = cmsgpack.unpack(ARGV[2])
local options = cmsgpack.unpack(ARGV[3])
local function operate(operator, keys)
redis.call('BITOP', operator, options['dest'], unpack(keys))
return options['dest']
end
local function AND(keys)... |
-- Picture Puzzle menu
local AquaShine = ...
local love = love
local stars = require("expanding_stars")
local ButtonText = AquaShine.LoadModule("uielement.button_text")
local SelectImage = AquaShine.LoadModule("uielement.selection")
local Main = {}
Main.SegmentString = {
[162] = "3 x 3",
[81] = "6 x 6",
... |
require("games/common2/room/commonGameController2");
require("games/common2/room/commonGameScene2");
local gameCommonLayout2 = require("view/kScreen_1280_800/games/common2/gameCommonLayout2");
CommonGameState2 = class(CommonState);
CommonGameState2.ctor = function(self)
end
CommonGameState2.load = functio... |
local st = require"util.stanza";
local datetime = require"util.datetime";
local presence = st.presence({ from = module.host })
:tag("delay", { xmlns = "urn:xmpp:delay",
stamp = datetime.datetime(prosody.start_time) });
module:hook("presence/host", function(event)
local stanza = event.stanza;
if stanza.attr.type ... |
local function squeeze(value, min, max)
if min and value<min then
return min
elseif max and value>max then
return max
else
return value
end
end
local TableView = {}
TableView.__index = TableView
function TableView:addItem(node, setting)
local params = setting or {}
... |
RavenDB = {
["profileKeys"] = {
["Jyggsex - Draenor"] = "RealUI",
["Keestra - Argent Dawn"] = "RealUI",
["Jyggnio - Draenor"] = "RealUI",
["Jyggfem - Draenor"] = "RealUI",
["Faildude - Auchindoun"] = "RealUI",
["Jyggtre - Draenor"] = "RealUI",
["Jyggis - Draenor"] = "RealUI",
["Jyggen - Drae... |
local ds = require "skynet.datasheet"
local log = require "chestnut.skynet.log"
local CLS_NAME = "func_open"
local cls = {}
function cls:on_data_init(dbData)
-- body
assert(dbData ~= nil)
assert(dbData.db_user_funcopens ~= nil and #dbData.db_user_funcopens > 0)
local funcs = {}
for _,db_item in pairs(dbData.db... |
local config = {};
local table_helpers;
local language;
config.current_config = nil;
config.config_file_name = "MHR Overlay/config.json";
config.default_config = {};
function config.init()
config.default_config = {
global_settings = {
language = "default",
menu_font = {
size = 17
},
UI_font = {... |
EDIT_MODE = false
RECORD_MODE = false
SONG_TOTAL_LEN = 105.93
SONG_SECT_LEN = SONG_TOTAL_LEN/8.0
SONG_PAT_LEN = SONG_SECT_LEN/4.0
SONG_ROW_LEN = SONG_PAT_LEN/32.0
SONG_PAT_SEL = {
"spham", "spham", "spham", "spham",
"spham", "spham", "spham", "spham",
"test", "spham", "test_skip", "spham",
"test_isect", "spham", ... |
-----------------------------------
-- Area: The Boyahda Tree
-- Mob: Demonic Rose
-- Note: Placeholder V. Vivian
-----------------------------------
local ID = require("scripts/zones/The_Boyahda_Tree/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, isKiller)
... |
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------------------------- Radio button creator ------------------------
----------------------------------------------------------------------------
function goo... |
local b, c
while true do
print("guard")
if a then
-- no guard
if b then
print("b")
if c then
print("c")
break
end
-- loopback
else
break
end
if d then
print("d")
end
-- loopback
else
break
end
end
|
local InstanceProperties = require(script.Parent.Utility.InstanceProperties)
local Symbol = require(script.Parent.Utility.Symbol)
--[=[
@within Helium
@prop Children ChildrenSymbol
@tag Symbol
This is a Symbol used to indicate the children for an Instance created using `Helium.Make`.
]=]
local MakeChildren = Symbo... |
require("moonsc").import_tags()
-- Substatechart for test216.
-- When invoked, terminate returning done.invoke.
-- This proves that the invocation succeeded.
return _scxml{ initial="final", _final{ id="final" }}
|
function onCreate()
setPropertyFromClass('GameOverSubstate', 'characterName', 'pico-p1')
setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'picoGameover');
setPropertyFromClass('GameOverSubstate', 'endSoundName', 'picoGameoverEnd');
makeLuaSprite('bg', 'alleyway', -600, -200);
addLuaSprit... |
--get the addon namespace
local addon, ns = ...
--get oUF namespace (just in case needed)
local oUF = ns.oUF or oUF
--get the config
local cfg = ns.cfg
--get the functions
local func = ns.func
--get the unit container
local unit = ns.unit
-------------------------------------... |
local core = require("core")
script.on_event("btm_selection_click", function(event)
local player = game.get_player(event.player_index)
local player_data = global.players[event.player_index]
if event.selected_prototype ~= nil and event.selected_prototype.derived_type == "unit" then
local unit = play... |
class "EventHandler"
function EventHandler:EventHandler(...)
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycore.EventHandler(self)
Polycore.__ptr_lookup[self.__pt... |
local E, C, L = select(2, ...):unpack()
----------------------------------------------------------------------------------------
-- Variable of DarkUI
----------------------------------------------------------------------------------------
local SetCVar = SetCVar
local SetCVarBitfield = SetCVarBitfield
local StaticP... |
--[[----------------------------------------------------------------------------
Application Name:
MinimumVerticalDistance
... |
local a1 = function(a, b)
return {
a = 1,
b = 2
}
end
local bbbb = setmetatable({}, {__call = a1})
local aaaa = bbbb()
local cccc = setmetatable({}, {__call = function(a, b)
return {
a = 1,
b = 2
}
end})
local dddd = cccc() |
local util = require("mooncrafts.util")
local path_sanitize
path_sanitize = util.path_sanitize
local engage
engage = function(__sitename)
if __sitename == nil then
__sitename = ngx.var.__sitename
end
__sitename = path_sanitize(__sitename)
ngx.var.__sitename = __sitename
local router = router_cache.resolve... |
ros = require 'ros'
tf = ros.tf
--[[
Compute points along an arc on a plane around a center point and normal.
You can use rviz to display the moving 'eye' transform with the TF display.
Please make sure 'Fixed Frame' is set to 'world'.
]]
function normalize(v)
return v / torch.norm(v)
end
function totensor(t)
... |
description=[[
Checks if an open socks proxy is running on the target.
The script attempts to connect to a proxy server and send socks4 and
socks5 payloads. It is considered an open proxy if the script receives
a Request Granted response from the target port.
The payloads try to open a connection to www.google.com po... |
--[[
spoonacular API
The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such ... |
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)... |
Class=require("./luagy/grammar/class")
stringx=require("pl.stringx")
if(string.startswith==nil) then
stringx.import()
end
local MDFile=Class(function(self,path)
self.path=path
self.isexist=true
self:init()
end)
function MDFile:init()
infile=io.open(self.path,"rb")
if(infile==nil) then
s... |
--
function VUHDO_makeFullColor(...)
return {
["R"] = select(1, ...), ["G"] = select(2, ...), ["B"] = select(3, ...), ["O"] = select(4, ...),
["TR"] = select(5, ...), ["TG"] = select(6, ...), ["TB"] = select(7, ...), ["TO"] = select(8, ...),
["useBackground"] = true, ["useText"] = true, ["useOpacity"] = true
};... |
return {
tag = 'callbacks',
summary = 'Called when an error occurs in a thread.',
description = [[
The `lovr.threaderror` callback is called whenever an error occurs in a Thread. It receives the
Thread object where the error occurred and an error message.
The default implementation of this callback ... |
local sqlite3 = require "lsqlite3"
local rpc = require "vuci.rpc"
local M = {}
function M.groups(params)
local db = sqlite3.open("/etc/vuci-httpd/oh.db")
local groups = {}
for a in db:rows("SELECT name FROM sqlite_master WHERE type = 'table' AND name LIKE 'acl_%'") do
local group = a[1]:sub(5)
... |
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
cAPI = Proxy.getInterface("API")
API = Tunnel.getInterface("API")
local isRobberyActive = false
local robberyTime = 0
local robberyBlip = nil
local robberyMoney = 0
local robberyAmmount = 0
local h
local atmCoords
-- Detect Robbe... |
WireToolSetup.setCategory("Chips, Gates", "Advanced")
WireToolSetup.open("fpga", "FPGA", "gmod_wire_fpga", nil, "FPGAs")
if CLIENT then
language.Add("Tool.wire_fpga.name", "FPGA Tool (Wire)")
language.Add("Tool.wire_fpga.desc", "Spawns a field programmable gate array for use with the wire system.")
language.Add("T... |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
de10_pistol_barrel = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/loot/dungeon/death_watch_bunker/pistol_de10_barrel.iff",
craftingValues = {
{"mindamage", 10,25,0},
{"maxdamage", 10,35,0... |
--[[
A Button class with text and/or image
This code is MIT licensed, see http://www.opensource.org/licenses/mit-license.php
github: mokalux
v 0.1.1: 2020-03-07 added optional mouse hover effect params (mouse hover effect default is true)
v 0.1.0: 2020-03-02 init (based on the initial gideros generic button class)
]]
-... |
-----------------------------------
-- Area: Wajaom Woodlands
-- Mob: Percipient Zoraal Ja
-----------------------------------
local ID = require("scripts/zones/Wajaom_Woodlands/IDs");
function onMobDeath(mob, player, isKiller)
-- make pkuucha killable
local pet = GetMobByID(ID.mob.ZORAAL_JA_S_PKUUCHA);
i... |
-- package.path = package.path .. ";./external/?.lua"
-- package.path = package.path .. ";../external/?.lua"
-- inspect = require("inspect")
local rex = require "rex_pcre"
--[[
Penn Treebank Tokenizer (word tokenizer)
This module is a Lua port of Penn Treebank Tokenizer as seen in NLTK
To the best of my k... |
local IAspect = require("api.IAspect")
local IItemReadable = require("mod.elona.api.aspect.IItemReadable")
local IItemLocalizableExtra = require("mod.elona.api.aspect.IItemLocalizableExtra")
local Gui = require("api.Gui")
local Enum = require("api.Enum")
local I18N = require("api.I18N")
local IItemBookOfRachel = class... |
--- Simple, non-blocking, TCP socket client
-- @usage
-- local tcp_client = require "defnet.tcp_client"
-- local IP = "localhost" -- perhaps get IP from P2P discovery?
-- local PORT = 9189
--
-- function init(self)
-- self.client = tcp_client.create(IP, PORT, function(data)
-- print("TCP client received data " .. data... |
return require('lib.stdlib.oop._generated._multiboard')
|
--[[
32x18 tiles
1 is a tile
0 is a blank
map = 6 tiles by 12
24x40
]]
tileSide = 4
white = {1,1,1}
black = {0,0,0}
yellow = {.824,.824,.251}
grey = {.666,.666,.666}
blue = {.259,.282,.784}
green = {.361,.729,.361}
light_green = {.529,.718,.329}
brown = {.776,.4235,.227}
light_brown = {.765,.565,.239}
purple = {14... |
local phos = require('phos')
local client = phos:new_client()
client:req('localhost', '1996', 'gemini://localhost/\r\n')
client:handshake_sync()
if client:response_sync() == -1 then
error(client:err())
end
local code, meta = client:res();
print(string.format('code=%d meta=%s', code, meta))
while true do
local... |
if data.raw.recipe["basic-circuit-board"] then
data.raw.recipe["burner-to-electric-inserter"].ingredients = {
{ "basic-circuit-board", 1 },
{ "burner-inserter", 1 }
}
data.raw.recipe["burner-to-electric-drill"].normal.ingredients = {
{ "burner-mining-drill", 1 },
{ "iron-gear... |
return function(opt)
opt.nEpochs = 0
opt.paramsFile = 'saved_params/conv-nearest-neighbor/conv-nearest-neighbor-model.th'
return opt
end
|
function getPlayerPosition(id)
mod = (math.pi * 2 / playerCount)*id
return ((playerPos + mod + math.pi) % (math.pi*2)) - math.pi
end
function updatePlayer()
--keyboard input (left arrow, right arrow)
if love.keyboard.isDown("right") then
playerPos = playerPos + love.timer.getDelta() * 3
resetMouse()
elseif lo... |
---------------------------------------------------------------------------
-- Snort++ prototype configuration
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- setup environment
-----------------------------------... |
require 'lib.strict'
VERSION = '0.8C'
Class = require 'lib.classic'
_ = require 'lib.moses'
lf = love.filesystem
lg = love.graphics
ld = love.data
U = require 'util'
require 'log'
local random = require 'randomizer'
local settings = require 'settings'
Randomizer = random()
Screen = require 'ui.draw'
Setti... |
return "0.0.1-8-g404b55c"
|
--[[
Synapse Xen v1.1.2 by Synapse GP
VM Hash: 54ca759d27065f7dd50aca1f0f4863950fb33ee419755bbdb94992b8082f2fbd
]]
local SynapseXen_IilililliIIIIIi=select;local SynapseXen_IlIiIlliiiilIllIiilI=string.byte;local SynapseXen_iiiIliIll=string.sub;local SynapseXen_iililliIIIlIiillliII=string.char;local SynapseXen_l... |
return { -- 14x24
0x42,0x4d,0x38,0x8c,0x01,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x0e,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x01,0x00,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00... |
local teleport = require(script.Parent.Parent:WaitForChild("Admin"):WaitForChild("teleportServer"))
return function (context, toPlayer)
return teleport(context, { context.Executor }, toPlayer)
end
|
loadstring(game:HttpGet("https://gist.githubusercontent.com/DinosaurXxX/b757fe011e7e600c0873f967fe427dc2/raw/ee5324771f017073fc30e640323ac2a9b3bfc550/dark%2520dex%2520v4", true))() |
-- 原作者:ElvUI_Enhanced (Legion), Marcel Menzel
-- 修改:houshuu
-------------------
-- 主要修改条目:
-- 修复部分 boss 成就 ID
-- 聚合功能
-- 添加副本自定义功能
-- 汉化
local E, L, V, P, G = unpack(ElvUI);
local TT = E:GetModule('Tooltip')
local WT = E:GetModule("WindTools")
local ETT = E:NewModule('Wind_EnhancedTootip')
ETT.RP = {
tiers = { "Ul... |
--[[
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
OpenAPI spec version: 1.0.1
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for openapi-client.model.pipeline_run_node_steps
Automatically generated by openapi-generator (htt... |
-- button
-- see also lib.gui.widget.lua
-- TODO : api for adding content (images/text inside)
-- TODO : autosize from contents
RegisterWidgetClass("Button")
--~ params: gfxparam_init =?,
--~ gfxparam_in_down =?, --in:mouse_inside_widget, down=mousebutton_was_pressed_on_this_widget_and_is_still_down
--~ gfxpara... |
object_building_general_coru_corner_02 = object_building_general_shared_coru_corner_02:new {
}
ObjectTemplates:addTemplate(object_building_general_coru_corner_02, "object/building/general/coru_corner_02.iff")
|
--
-- Author: Alexey Melnichuk <mimir@newmail.ru>
--
-- Copyright (C) 2013-2014 Alexey Melnichuk <mimir@newmail.ru>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-lzqm library.
--
local LZMQ_VERSION = "0.4.3-dev"
local lua_version_t
local function lua_version()
if not... |
return {
name="adblock.doh.mullvad.net",
label=_("Mullvad (AdBlock)"),
resolver_url="https://adblock.doh.mullvad.net/dns-query",
bootstrap_dns="1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001,8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844",
help_link="https://mullvad.net/en/help/dns-over-https... |
-----------------------------------
-- Area: Bastok Mines
-- NPC: Gorvik
-- Type: Past Event Watcher
-- !pos 21.033 -1 -98.486 234
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(185);
end;
function onEventUpdate(player,csid,option)
en... |
local resolver = require("resty.dns.resolver")
local lrucache = require("resty.lrucache")
local CACHE_SIZE = 10000
local MAXIMUM_TTL_VALUE = 2147483647
local cache, err = lrucache.new(CACHE_SIZE)
if (not cache) then
return nil, error("failed to create the cache: " .. (err or "unknown"))
end
local a_records_and_max_tt... |
function drawWhipToGrap()
offset=player.pos-grapplePos
whipStart=8*player.pos-(2/#offset)*offset
line(whipStart.x,whipStart.y,8*grapplePos.x,8*grapplePos.y,11)
pixelCenter=(8*player.pos):floored()
fromWhip=vec2FromAngle(grappleAngle)
sleevePixelSpot=pixelCenter-1*fromWhip
pset(sleeveP... |
local function centerText(text, y, offset)
if not offset then offset = 0 end
local w, h = term.getSize()
term.setCursorPos(math.ceil(w / 2 - string.len(text) / 2) + offset, y)
term.write(text)
end
local function draw()
term.setBackgroundColor(colors.black)
term.clear()
local w, h = term.get... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'CTaskTimer'
shared.req... |
local Font = Object:extend()
function Font:new(scene)
self.scene = scene
self:resize()
end
function Font:resize()
local tx, ty, scale = self.scene:calcTransform()
self.scale = scale
self.font = love.graphics.newFont("assets/font/bold.ttf", scale / 2)
end
function Font:print(text, x, y, width)
love.graphics.pus... |
return PlaceObj("ModDef", {
"title", "Game Rules Threats Resources",
"version", 3,
"version_major", 0,
"version_minor", 3,
"image", "Preview.png",
"id", "ChoGGi_GameRulesThreatsResources",
"steam_id", "1801868910",
"pops_any_uuid", "37ca563c-dfce-4f56-8d5b-9298a092eb8b",
"author", "ChoGGi",
"lua_revision", 1... |
-- bindings.lua
-- Bindings for the Telegram bot API.
-- https://core.telegram.org/bots/api
local bindings = {}
local HTTPS = require('ssl.https')
local JSON = require('dkjson')
local URL = require('socket.url')
function bindings.sendRequest(url)
local dat, res = HTTPS.request(url)
if not dat then return false, ... |
local ModeSelectScene = Scene:extend()
ModeSelectScene.title = "Game Start"
current_mode = 1
current_ruleset = 1
function ModeSelectScene:new()
-- reload custom modules
initModules()
if table.getn(game_modes) == 0 or table.getn(rulesets) == 0 then
self.display_warning = true
current_mode = 1
current_ruleset... |
Description="Adds special character to wrappedd line endings"
Categories = {"format", "usability" }
function syntaxUpdate(desc)
if (HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
lineWrappedChar = ' ↩'
elseif (HL_OUTPUT == HL_FORMAT_LATEX) then
lineWrappedChar = '' -- nothi... |
ITEM.name = "Firelake Cassette Tape"
ITEM.description = "An old cassette tape."
ITEM.longdesc = "This cassette tape only features three songs, all by the band Firelake."
ITEM.price = 5149
ITEM.model = "models/kek1ch/cassette_white.mdl"
ITEM.cassette_options = {}
ITEM.cassette_options['radio/firelake_1.ogg'] = {dur = ... |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... |
-----------------------------------
-- Area: Monarch Linn
-- Mob: Mammet-19 Epsilon
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:SetMagicCastingEnabled(false);
end;
function onMobFight(mob,target)
local form = mob:Anim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.