content stringlengths 5 1.05M |
|---|
if SERVER then
AddCSLuaFile()
end
require "ra"
TOOL.Category = "Faction Wars"
TOOL.Name = "#faction wars object creator"
TOOL.ClientConVar[ "entity" ] = ""
TOOL.ClientConVar[ "entity_option" ] = ""
TOOL.ClientConVar[ "p" ] = "0"
TOOL.ClientConVar[ "y" ] = "0"
TOOL.ClientConVar[ "r" ] = "0"
local data = {}
FW_Map_Ob... |
local hook
local _E
local getID = function(loc)
local player, bank, bags, voidStorage, slot, bag = EquipmentManager_UnpackLocation(loc)
if not player and not bank and not bags and not voidStorage then return end
if not bags then
return GetInventoryItemLink("player", slot)
else
return GetContainerItemLink(bag,... |
SILE.registerCommand("verbatim:font", function(options, content)
SILE.settings.set("font.family", "Monaco")
SILE.settings.set("font.size", SILE.settings.get("font.size") - 3)
end, "The font chosen for the verbatim environment")
SILE.registerCommand("verbatim", function(options, content)
SILE.typesetter:pushV... |
--[[
Copyright 2018 Edits by Plasmodium
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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, ... |
----------------------------------------------------------------------------------
--- Total RP 3
--- MyRolePlay API for profile importing
--- ---------------------------------------------------------------------------
--- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe
---
--- Licens... |
local ros = require 'ros.env'
local GoalStatus = require 'ros.actionlib.GoalStatus'
local std = ros.std
local actionlib = ros.actionlib
local ServerGoalHandle = torch.class('ros.actionlib.ServerGoalHandle', actionlib)
local function ServerGoalHandle_setGoalStatus(self, status, text)
self.goal_status.status = stat... |
--------------------------------
-- @module ResRenderTarget
-- @extend Resource
-- @parent_module lstg
---@class lstg.ResRenderTarget:lstg.Resource
local ResRenderTarget = {}
lstg.ResRenderTarget = ResRenderTarget
--------------------------------
---
---@return cc.Texture2D
function ResRenderTarget:copyTexture()
end... |
--[[
Credits Menu Skin
]]
local SGUI = Shine.GUI
local WindowBackground = Colour( 0.5, 0.5, 0.5, 1 )
local HorizontalTabBackground = Colour( 0.4, 0.4, 0.4, 1 )
local DarkButton = Colour( 0.2, 0.2, 0.2, 1 )
local ButtonHighlight = Colour( 0.8, 0.5, 0.1, 1 )
local BrightText = Colour( 1, 1, 1, 1 )
local Cle... |
data:extend{
{
type = "item",
name = "pitch",
icon = "__base__/graphics/icons/coal-1.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "intermediate-product",
order = "b[pitch]",
stack_size = 50
},
{
type = "item",
name = "latex-ball",... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
---GetResolution
---@return table
function GetResolution()
local W, H = GetActiveScreenResolution()
if (W / H) > 3.5 then
W, H = GetScreenResolution()
end
if W < 1920 then W = 1920 end
if H < 1080 then H = 1080 end
return W, H
end
---FormatXWYH
---@param Value number
---@param Value2 nu... |
--[[ [=======================================================================================]
NAME: table decode_ani(string bytes)
PURPOSE: Convert .ani files into drawable MTA:SA textures
RETURNED TABLE STRUCTURE:
{
-- OPTIONAL: only if ani contains any info and ignoreInf... |
local Color, colors, Group, groups, styles = require('colorbuddy').setup()
local g = require('colorbuddy.group').groups
local c = require('colorbuddy.color').colors
local s = require('colorbuddy.style').styles
local bold = s.bold
local italic = s.italic
local uc = s.undercurl
local ul = s.underline
local reverse = s.re... |
function love.draw()
love.graphics.print( 'state: state-1' , 5 , 5 );
love.graphics.print( 'time: ' .. time , 5 , 20 );
end
function love.update( dt )
time = time + 1 * dt;
end
function love.keypressed( key, unicode )
if key == 'up' then states.set( 'state-2' ); end
if key == 'down' then states.set( '... |
local CharacterSpecific = Class(function(self, inst)
self.inst = inst
self.character = nil
self.storable = false
self.comment = "I can't..."
end)
function CharacterSpecific:CanPickUp(doer)
if doer and doer.prefab ~= self.character then
return false
end
return true
end
function CharacterSpecific... |
-- type.lua: tests for Lua type manipulation
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
dofile('lua-nucleo/strict.lua')
dofile('lua-nucleo/import.lua')
local make_suite = select(1, ...)
assert(type(make_suite) == "function")
local ensure,
... |
-------------------------------------------------------------------------------
-- LuaFAR for Editor: main script
-------------------------------------------------------------------------------
-- CONFIGURATION : keep it at the file top !!
local DefaultConfig = {
-- Default script will be recompiled and run every ti... |
-- taken from https://github.com/a1dutch/clink-completions
local function tilde_match (text, f, l)
if text == '~' then
clink.add_match(clink.get_env('userprofile')..'\\')
return true
end
end
clink.register_match_generator(tilde_match, 1)
|
require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'cudnn'
local Convolution
local Pooling
local Activation
if opt.cuda then
Convolution = cudnn.SpatialConvolution
Pooling = cudnn.SpatialMaxPooling
Activation = cudnn.ReLU
else
Convolution = nn.SpatialConvolution
Pooling = nn.SpatialMaxPooling
Acti... |
local struct = require 'lulz.types.struct'
local indentation_cache = setmetatable({}, {
__index = function(cache, i)
cache[i] = setmetatable({ [0] = '' }, {
__index = function(self, j)
self[j] = self[j - 1] .. i
return self[j]
end
})
return cache[i]
end
})
local Serializa... |
--
-- Created by IntelliJ IDEA.
-- User: chen0
-- Date: 28/7/2017
-- Time: 11:32 AM
-- To change this template use File | Settings | File Templates.
--
describe("TopoSortShortestPath", function()
it('should be able to find all the shortest paths from the source node', function()
local g = require('luagraph... |
local path = njli.ASSET_PATH("scripts/util.lua")
local util = (loadfile(path))()
local function writeAll(file, data)
local f = io.open(file, "w")
if f then
f:write(data)
f:close()
print("wrote")
else
print("couldn't write")
end
end
local function readAll(file)
local f = io.open(file, "r")
if f then... |
data:extend(
{
{
type = "corpse",
name = "transport-belt-8-remnants",
icon = "__spicy-teeth-mbt_assets__/graphics/icons/transport-belt-8.png",
icon_size = 32,
flags = {"placeable-neutral", "not-on-map"},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
tile_width = 1,
tile_height = 1,
selectable_in_game ... |
local fs = require "nixio.fs"
local conffile = "/etc/openvpn/openvpn-password.log"
f = SimpleForm("logview")
t = f:field(TextValue, "conf")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
return fs.readfile(conffile) or ""
end
t.readonly="readonly"
return f |
-- NoIndex: true
--[[ Lokasenna_GUI - Template class
---- User parameters ----
(name, z, x, y, w, h[, caption, pad])
Required:
z Element depth, used for hiding and disabling layers. 1 is the highest.
x, y Coordinates of top-left corner
w, h Width and height of the template
Optional:
... |
-- https://github.com/ishan9299/nvim-solarized-lua
--
-- italics Enable italics for comments (default: enabled)
vim.g.solarized_italics = 1
-- visibility SpecialChars (like trailing whitespace and tabs) visibility
-- low
-- normal (default)
-- high
vim.g.solarized_visibility = 'high'
-- diffmode
-- low
-- normal (de... |
local st = {}
local canvas
function st:init()
canvas = love.graphics.newCanvas()
self.name = {text = ""}
end
local names = {
'barmpot',
'berk',
'slowpoke',
'muppet',
'dimwit',
'halfwit',
'blockhead',
'dunce',
'cretin',
'dullard',
'dum-dum',
'noodle'
}
local switching = false
function st:enter(pre)
can... |
package("libressl")
set_homepage("https://www.libressl.org/")
set_description("LibreSSL is a version of the TLS/crypto stack forked from OpenSSL in 2014, with goals of modernizing the codebase, improving security, and applying best practice development processes.")
add_urls("https://ftp.openbsd.org/pub/Op... |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
local cfg = {}
cfg.list = {
[1] = { hash = 1557126584, x = 449.6, y = -986.4, z = 30.6, locked = true },
[2] = { hash = 749848321, x = 452.6, y = -982.7, z = 30.6, locked = true },
[3] = { hash = -132... |
-- ===========================================================================
function GetFormattedOperationDetailText(operation:table, spy:table, city:table)
local outputString:string = "";
local eOperation:number = GameInfo.UnitOperations[operation.Hash].Index;
local sOperationDetails:string = UnitManager.GetO... |
local Signal = {}
Signal.__index = Signal
function Signal.new()
return setmetatable({
BindableEvent = Instance.new("BindableEvent");
}, Signal)
end
function Signal:Connect(Function)
return self.BindableEvent.Event:Connect(function(Arguments)
Function(Arguments())
end)
end
function Signal:Fire(...)
local Arg... |
function Party:onJoin(player)
return true
end
function Party:onLeave(player)
return true
end
function Party:onDisband()
return true
end
function Party:onShareExperience(exp)
local sharedExperienceMultiplier = 1.20 --20%
local vocationsIds = {}
local vocationId = self:getLeader():getVocation():getBase():getId(... |
function DefineGlobalVariables()
-- Called from main()...
g_bDebugMode = false
if _G ~= nil then
g_bDebugMode = true
--SetupLocalDebugFuntions()
end
---------------------------------------------------------
-- *** Start of Table Declarations...***
----------------------------------------------------... |
magis_bane = {
cast = function(player)
magis_bane_poet.cast(player)
end
}
|
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "NCP",
Version = "0.1",
Description = [[Nikolauska Command Pack]],
Commands =
{
["/delhome"] =
{
Permission = "es.home",
HelpString = "Delete a home.",
Handler = HandleDeleteHomeCommand,
ParameterCombin... |
juvenile_canyon_krayt_dragon = Creature:new {
objectName = "@mob/creature_names:juvenile_canyon_krayt",
socialGroup = "krayt",
faction = "",
level = 122,
chanceHit = 4.0,
damageMin = 745,
damageMax = 1200,
baseXp = 11577,
baseHAM = 54000,
baseHAMmax = 64000,
armor = 2,
resists = {170,170,15,15,110,15,15,15,... |
local Draw = require("api.Draw")
local Gui = require("api.Gui")
local I18N = require("api.I18N")
local Log = require("api.Log")
local Ui = require("api.Ui")
local Title = require("mod.titles.api.Title")
local IInput = require("api.gui.IInput")
local IPaged = require("api.gui.IPaged")
local IUiLayer = require("api.gui.... |
if not minetest.get_modpath("advtrains") then
print("[monitoring] advtrains extension not loaded")
return
else
print("[monitoring] advtrains extension loaded")
end
local metric_ndb_count = monitoring.gauge("advtrains_ndb_count", "count of advtrains ndb items")
local metric_train_count = monitoring.gauge("advtrain... |
-- Keys are [user:troupe, mention keys]...
local result = {}
local key_count = #KEYS/2
for i = 1,key_count do
local index = (i - 1) * 2 + 1;
local unread_items_key = KEYS[index]
local mentions_key = KEYS[index + 1]
local key_type = redis.call("TYPE", unread_items_key)["ok"]
local unread_card... |
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals select next
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Skin = Aurora.Skin
local Util = Aurora.Util
function private.FrameXML.DressUpFrames()
-----------------
-- SideDressUp --
-----------------
--[[ Used ... |
Camera = {}
Camera.__index = Camera
function Camera.new(eye, front, up, fov)
local self = {}
self.eye = eye
self.front = front
self.up = up
self.fov = fov
self.right = self.front:cross(self.up)
self.fov_scale = math.tan(self.fov * 0.5 * math.pi / 180) * 2
setmetatable(self, Camera)
return self
end
function ... |
-- https://github.com/kyazdani42/nvim-tree.lua
-- local nvim_tree = require'nvim-tree'
local status, nvim_tree = pcall(require, "nvim-tree")
if not status then
vim.notify("not found nvim-tree")
return
end
-- 列表操作快捷键
local list_keys = require("keybindings").nvimTreeList
nvim_tree.setup({
-- 不显示 git 状态图标
git = ... |
-- Lua module file for Python compiled for GPUs
help([[
Python 2.7.13
for cuda-env/10 and mkl/18.0.2 + openmpi/3.1.3
w/ libxc/2.1.3, ase/3.11.0, numpy/1.10.4, scipy/0.17.1
]])
load('cuda-env/10', 'mkl/18.0.2')
-- load('cuda-env/10', 'mkl-dev/18.0.2')
local base = '/homeappl/home/louhivuo/... |
project "soloud"
kind "StaticLib"
language "c++"
targetdir "../libs"
objdir "../tmp/soloud"
flags { "NoExceptions", "NoRTTI", "NoPCH" }
libdirs {
"libs"
}
files {
"soloud/src/audiosource/**.c*",
"soloud/src/filter/**.c*",
"soloud/src/core/**.c*",
"soloud/src/backend/portaudio/**.c*",
... |
minetest.register_node("better_caves_jungle:jungle_tree", {
description = "Mushroom Cap",
tiles = {"bc_jungle_wood_02.png", "bc_jungle_wood_02.png", "bc_jungle_wood_01.png"},
paramtype2 = "facedir",
--light_source = 0,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammab... |
local M = {}
-- p3.3 - We can represent a polynomial a_n*x^n + a_n-1*x^n-1 + ... + a_1*x + a_0
-- in Lua as a list of its coefficients, such as {a_0, a_1, ..., a_n}.
--
-- Write a function that receives a polynomial (represented as a table)
-- and a value for x and returns the polynomial value.
-... |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
server_script "server.lua" |
local language = {};
local table_helpers;
language.language_folder = "MHR Overlay\\languages\\";
language.default_language = {
font_name = "NotoSansKR-Bold.otf",
parts = {
head = "Head",
neck = "Neck",
body = "Body",
torso = "Torso",
abdomen = "Abdomen",
back = "Back",
tail = "Tail",
upper_body = "... |
require './waf_config'
local match = string.match
local ngxmatch=ngx.re.match
local unescape=ngx.unescape_uri
local get_headers = ngx.req.get_headers
local optionIsOn = function (options) return options == "on" and true or false end
logpath = logdir
rulepath = RulePath
UrlDeny = optionIsOn(UrlDeny)
PostCheck = optionI... |
--!strict
local Util = require(script.Parent.Parent.Shared.Util)
local inlinedError = require(script.Parent.Parent.Shared.inlinedError)
local EntityManager = {}
EntityManager.__index = EntityManager
function EntityManager.new()
local self = setmetatable({
entityToComponent = {},
componentToEntity = {},
}, Entit... |
--name, id
exists = redis.call('LREM', 'feed.ids:'..ARGV[1], 1, ARGV[2])
if(not exists) then return false end
redis.call('HDEL', 'feed.items:'..ARGV[1], ARGV[2])
redis.call('PUBLISH', 'feed.retract:'..ARGV[1], ARGV[2])
return ARGV[2]
|
-- @Date : 2016-02-17 10:57:12
-- @Author : Miao Lian (miaolian19890421@163.com)
-- @Version : 1.0
-- @Description :
local cjson_lib = require ("application.lib.sim_json_lib")
local cjson = cjson_lib:new()
local tb_act = {
host = "hd.inthd.xyz",
method_proxy = "/proxy_get"
}
local function dea... |
require 'turtle'
function love.load()
end
function love.update()
end
function love.draw()
init()
pencolor("red")
pendown()
forward(100)
penup()
forward(100)
left(90)
pendown()
forward(100)
right(90)
forward(100)
backward(50)
right(90)
forward(100)
end
|
function onEvent(name,value1,value2)
playSound(value1)
end |
--[[
--=====================================================================================================--
Script Name: Disable Grenades, for SAPP (PC & CE)
Description: This script will prevent players from spawning with grenades (on per game mode basis).
Note: This does not prevent players from picki... |
return function()
local liter = require(game:GetService('ReplicatedStorage').liter)
it('should switch between the value in the array and 10', function()
local iter = liter.array({ 1, 3 }):intersperseWith(function()
return 10
end)
expect(iter:after()).to.equal(1)
expect(iter:after()).to.equal(10)... |
rule("swig")
set_extensions(".i")
on_buildcmd_file(function (target, batchcmds, src, opt)
import("lib.detect.find_tool")
local swig = assert(find_tool("swig"), "SWIG is not found!")
-- Configs
local conf = target:fileconfig(src) or {}
conf.targetLang = conf.targetLang o... |
local dungeonID, creatureID
if UnitFactionGroup("player") == "Alliance" then
dungeonID, creatureID = 2344, 144683--Ra'wani Kanae
else--Horde
dungeonID, creatureID = 2333, 144680--Frida Ironbellows
end
local mod = DBM:NewMod(dungeonID, "DBM-ZuldazarRaid", 1, 1176)
local L = mod:GetLocalizedStrings()
mod:SetRevision(... |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright 2016 Raritan Inc. All rights reserved.
-- This examples shows how to use the exit handler.
--
-- The script will exit normally after 10 seconds without calling the
-- exit handler. The function 'ExitHandler' is called in case the
-- script is forcibly stopped.
... |
-- vim : ft=lua ts=2 sw=2 et:
--- Mutatble objects, pairs of `{x,y}`
-- Ensures that `y` is up to date with the `x` variables.
---
require "lib"
local risk0= require "risk"
local coc0 = require "coc"
return function(i,coc,risk,
y,effort,risk,ready,lo,hi)
i = i or {x={}, y={}}
coc = coc ... |
-- 'Skin' tab
local settings = {id = 10, title = "Skins"}
local content = nil
local items = {
["button_apply"] = {type = "button", text = "Save", x = selector.width * 0.35, y = selector.height - 40, width = selector.width * 0.3, height = 35, backgroundColor = tocolor(25, 155, 255, 55), hoverColor = {25, 155, 255, 255}... |
--[[
Copyright (c) 2013, Ricky Gall
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 and the follo... |
g_items = {
-- name, description, category, model, rx, ry, rz, zoffset
-- categories:
-- 1 = Food & Drink
-- 2 = Keys
-- 3 = Drugs
-- 4 = Other
-- 5 = Books
-- 6 = Clothing & Accessories
-- 7 = Electronics
{ "Haggis", "A plump haggis animal, straight from the hills of Scotland.", 1, 2215, 205, 20... |
mapQuests = require "lib/mapQuests"
mapEffects = require "lib/mapEffects"
quest = target.get_quest(mapQuests.getID("AranTut"))
if quest.record_ex_key("mo1") == "" then
quest.update_ex("mo1", "o")
target.avatar_oriented_effect(mapEffects.getAvatarOrientedEffect("legendBalloon1"))
end |
local keybindings = {}
local dt = 1/60
--Global Variables
keybindings.speed = 512
keybindings.x = 0
keybindings.y = 0
keybindings.events = {
w = function() keybindings.y = keybindings.y - keybindings.speed*dt end,
s = function() keybindings.y = keybindings.y + keybindings.speed*dt end,
a = fun... |
math = require("math")
uncompressed_formats = {
"R1_UNORM",
"R2_UNORM",
"R4_UNORM",
"R4G4_UNORM",
"G4R4_UNORM",
"A8_UNORM",
"R8_UNORM",
"R8_SNORM",
"R8_UINT",
"R8_SINT",
"R8_SRGB",
"B2G3R3_UNORM",
"R4G4B4A4_UNORM",
"R4G4B4X4_UNORM",
"B4G4R4A4_UNORM",
"B4G4R4X4_UNORM",
"A4R4G4B4_UNORM"... |
local M = {}
M.keys = 'asdghklqwertyuiopzxcvbnmfj'
M.perm_method = require'hop.perm'.TrieBacktrackFilling
M.reverse_distribution = false
M.term_seq_bias = 3 / 4
M.winblend = 50
M.teasing = true
M.jump_on_sole_occurrence = true
M.case_insensitive = true
return M
|
require 'utils.enum'
if codes == nil then
codes = {}
end
-- Enum for type IDs according to internal files
codes.TYPE, codes.TYPE_NAMES = enum.register({
'None',
'Normal',
'Fire',
'Water',
'Grass',
'Electric',
'Ice',
'Fighting',
'Poison',
'Ground',
'Flying',
'Psychic... |
-- premake5.lua
-- version: premake-5.0.0-alpha14
-- %TM_SDK_DIR% should be set to the directory of The Machinery SDK
newoption {
trigger = "clang",
description = "Force use of CLANG for Windows builds"
}
workspace "ray_tracing_sample_hello_triangle"
configurations {"Debug", "Release"}
language "... |
AddEventHandler("weaponDamageEvent", function(damageType)
print('damageType', damageType)
end) |
--[[ Copyright (c) 2019 robot256 (MIT License)
* Project: Multiple Unit Train Control
* File: control.lua
* Description: Runtime operation script for replacing locomotives and balancing fuel.
* Functions:
* => On Train Created (any built, destroyed, coupled, or uncoupled rolling stock)
* ===> Check if forwards_... |
object_mobile_nightsister_greeter = object_mobile_shared_nightsister_greeter:new {
}
ObjectTemplates:addTemplate(object_mobile_nightsister_greeter, "object/mobile/nightsister_greeter.iff")
|
--------------------------------------------------------------------------------
-- Box with relays (YaR-27)
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for additiona... |
#!/usr/bin/env lua
local fl = require( "fltk4lua" )
local win = fl.Window( 400, 300, "Example Wizard" )
local wiz = fl.Wizard( 0, 0, 400, 300 )
local function back_cb()
wiz:prev()
end
local function next_cb()
wiz:next()
end
local function done_cb()
win:hide()
end
do
local g = fl.Group( 0, 0, 400, 300 )
loc... |
local Coeus = (...)
local ffi = require("ffi")
local OOP = Coeus.Graphite.OOP
local GLFW = Coeus.Bindings.GLFW
local OpenGL = Coeus.Bindings.OpenGL
local KeyboardContext = Coeus.Input.KeyboardContext
local MouseContext = Coeus.Input.MouseContext
local GraphicsContext = Coeus.Graphics.GraphicsContext
local Viewport = ... |
local ADDON_NAME, ADDON = ...
local bank = {}
bank.__index = bank
function DJBagsRegisterBankBagContainer(self, bags)
DJBagsRegisterBaseBagContainer(self, bags)
for k, v in pairs(bank) do
self[k] = v
end
ADDON.eventManager:Add('BANKFRAME_OPENED', self)
ADDON.eventManager:Add('BANKFRAME_CLO... |
-- vim: nospell:sta:et:sw=2:ts=2:sts=2
require "num"
require "sym"
n=Num.new()
s=Sym.new()
-- for k,v in pairs{10,20,30,40,50} do n.add(v) end
|
--
-- Please see the license.txt file included with this distribution for
-- attribution and copyright information.
--
local addExportNodeOriginal;
local performExportOriginal;
local bPlayerVisible;
local recordTypePlayerDefault = {};
local nodeChaptersBackup = nil;
local removedPages = {};
function onInit()
addE... |
-- Selector for jumpcut thingy
local settings = require("hs.settings")
local utils = require("utils")
local mod = {}
-- jumpcutselect
function mod.jumpcutselect()
function formatChoices(choices)
choices = utils.reverse(choices)
formattedChoices =
hs.fnutils.imap(
choices,
... |
MasterPlanPC = {
["legendStep"] = 1,
["moE"] = 53.42,
["moN"] = 68,
["moV"] = 9.4368,
["goldRewardThreshold"] = 0,
["complete"] = {
[127] = 1448763238,
[190] = 1473194977,
[254] = 1472565516,
[380] = 1473194977,
[444] = 1434997244,
[633] = 1447627759,
[381] = 1473789949,
[445] = 14... |
local class = require("heart.class")
local heartTable = require("heart.table")
local M = class.newClass()
function M:init(engine, config)
self.engine = assert(engine)
self.meshInstanceComponents = assert(self.engine.componentManagers.meshInstance)
end
function M:handleEvent(viewportId)
love.graphics.setDepthMo... |
nuclear.debug.log("--recipe")
local Utils = require(no_path_lib .. "utils")
-- Uranium ore processing 1 in chem plants (Yellowcake)
data.raw["recipe"]["uranium-processing"] =
{
type = "recipe",
name = "uranium-processing",
energy_required = 5, -- 12
enabled = false,
category = "chemistry",
ingredients =
... |
local ok, lfs = pcall(require, "syscall.lfs")
if not ok then
ok, lfs = pcall(require, "lfs")
end
local mod
if ok then
local att = lfs.attributes
mod = function(file)
return att(file, "modification")
end
else
local open = io.open
local sha1 = ngx.sha1_bin
mod = function(file)
... |
mpackage = "cpc" |
-----------------------------------
-- Area: Silver_Sea_route_to_Nashmau
-- NPC: Qudamahf
-- Notes: Tells ship ETA time
-- !pos 0.340 -12.232 -4.120 58
-----------------------------------
local ID = require("scripts/zones/Silver_Sea_route_to_Nashmau/IDs");
-----------------------------------
function onTrade(player,n... |
-- See LICENSE for terms
return {
PlaceObj("ModItemMissionSponsorPreset", {
id = "ChoGGi_CanadianSpaceAgency",
name = "ChoGGi_CanadianSpaceAgency",
group = "Default",
comment = "We're go'in to Mars eh?",
RCRover = 1,
RCTransport = 1,
DroneHub = 2,
FuelFactory = 1,
OrbitalProbe = 3,
Electronics = ... |
-----------------------------------
-- Area: FeiYin
-- NPC: Dry Fountain
-- Involved In Quest: Peace for the Spirit
-- !pos -17 -16 71 204
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/quests")
local ID = require("scripts/zones/FeiYin/IDs")
---------------------------... |
local Base = require('base.lua')
return local_class("ValueBase", function(klass, instance)
function klass:new(givenValue, expectedValue)
self.givenValue = givenValue
self.expectedValue = expectedValue
self.invert = false
end
end) |
--[[ Copyright (C) 2018 Google Inc.
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 hope th... |
-- Do not source the default filetype.vim
vim.g.did_load_filetypes = 1
|
EXPORTS["taser"] = { };
EXPORTS["taser"].Name = "Taser";
EXPORTS["taser"].Desc = "Incapacitates people for a few seconds.";
EXPORTS["taser"].Secondary = true;
EXPORTS["taser"].Price = 7000;
EXPORTS["taser"].Model = "models/weapons/w_pistol.mdl";
EXPORTS["taser"].W = 2;
EXPORTS["taser"].H = 2;
EXPORTS["taser"].SWEP = "... |
EventContext = FairyGUI.EventContext
EventListener = FairyGUI.EventListener
EventDispatcher = FairyGUI.EventDispatcher
InputEvent = FairyGUI.InputEvent
NTexture = FairyGUI.NTexture
Container = FairyGUI.Container
Image = FairyGUI.Image
Stage = FairyGUI.Stage
Controller = FairyGUI.Controller
GObject = FairyGUI.GObject
G... |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass / Spacetech / LuaPineapple
----------------------------------------
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/Roller.... |
local get_report = require 'share.report'
local command = require 'backend.command'
local messager = require 'share.messager'
local lang = require 'share.lang'
local builder = require 'map-builder'
local core = require 'backend.sandbox_core'
local w2l = core()
local root = require 'backend.w2l_path'
local base ... |
--[[
Copyright (c) 2012 Matthias Richter
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, distribu... |
local skynet = require "skynet"
local harbor = require "skynet.harbor"
skynet.start(function()
print("wait for harbor 2")
print("run skynet examples/config_log please")
harbor.connect(2)
print("harbor 2 connected")
print("LOG =", skynet.address(harbor.queryname "LOG"))
harbor.link(2)
print("disconnected")
end)
|
local bump = require 'bump';
local Ball = require 'ball';
local Paddle = require 'paddle';
local Player = require 'player';
local Enemy = require 'enemy';
local play = {}
function play.load()
play.paused = false
play.difficulty = 1
play.elapsed = 0
play.score = 0
play.world = bump.newWorld()
l... |
weapons_objects = {
["2"] = 4,
["3"] = 5,
["4"] = 6,
["5"] = 7,
["6"] = 8,
["7"] = 9,
["8"] = 10,
["9"] = 11,
["10"] = 12,
["11"] = 13,
["12"] = 14,
["13"] = 15,
["14"] = 16,
["15"] = 17,
["16"] = 18,
["17"] = 19,
["18"] = 20,
["19"] = 21,
[... |
local crypto = require "crypto"
local json = require "json"
local request = require "wsapi.request"
local response = require "wsapi.response"
local util = require "wsapi.util"
local auth = {}
local methods = {}
methods.__index = methods
function auth.new(params)
return setmetatable({ login_function = params.login... |
modifier_artoria_ultimate_excalibur = class({})
function modifier_artoria_ultimate_excalibur:CheckState()
local state = {
[MODIFIER_STATE_STUNNED] = true,
[MODIFIER_STATE_INVISIBLE] = false,
}
return state
end
function modifier_artoria_ultimate_excalibur:RemoveOnDeath()
return true
end
function modifier_art... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.