content stringlengths 5 1.05M |
|---|
--[[ Copyright 2020 DeepMind Technologies Limited.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Conf = require "moonpie.configuration"
return function(moonpie)
moonpie.graphics.colors.light_shade = moonpie.graphics.colors.pampas
moonpie.graphics.... |
local function zip(...)
local new = {}
local argc = select('#', ...)
local minLen = #select(1, ...)
for i = 2, argc do
local len = #select(i, ...)
if len < minLen then
minLen = len
end
end
for i = 1, minLen do
new[i] = {}
for j = 1, argc do
new[i][j] = select(j, ...)[i]
end
end
return ... |
local create_timer_node = function(para)
-- para = {time, func}
-- count from 0, to para.time, with increment of api.time_period
-- each step do para.func()
-- need to do api.process_time everytime
local current, time, func
return {
type = "sequence*",
children = {
function()
... |
-- Gets a root JSON
local js = redis.call('GET', KEYS[1])
return js |
local http = require "http"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
local target = require "target"
description = [[
Retrieves information from an Apache HBase (Hadoop database) master HTTP status pa... |
#!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
require"regress".export".*"
local fileresult = auxlib.fileresult
check(cqueues.new():wrap(function ()
local so, ok, why, error
so, why, error = fileresult(socket.connect("nothing.nothing", 80))
info("socket.connect -> %s error:%d (%s)", tostring(so... |
FishingJoyController.resetTimeService = function (slot0)
slot0.maxDiffTimer = 2000
slot0.syncTimer = 3
slot0.startTimer = socket.gettime()
slot3 = slot0
slot0.serverTick = slot0.getClientTick(slot2)
slot0.diffTick = 0
slot0.trade = 0
slot0.ready = false
slot0.syncTime = 0
end
FishingJoyController.getMaxDiffre... |
return {
domains = {
{
domainType = "timer",
class = "heart.TimerDomain",
fixedDt = 1 / 60,
},
{
domainType = "physics",
class = "heart.physics.PhysicsDomain",
gravityY = 10,
},
{
domainType = "input",
class = "carnelia.InputDomain",
},
},
... |
local fab = {}
local load = function (a)
local lg,ps = love.graphics, love.window.getPixelScale()
fab.assets = {}
local flag = select(2, love.getVersion()) > 9 and {linear = true} or "normal"
for i=1,5 do
fab.assets[i] = lg.newImage( a.."/fab-"..i..".png", flag)
end
fab.draw = function (x,y,r,depth)
r =... |
local lspconfig = require('lspconfig')
local nvim_lsp_ts_utils = require('nvim-lsp-ts-utils')
lspconfig.tsserver.setup({
init_options = nvim_lsp_ts_utils.init_options,
on_attach = function(client, bufnr)
-- disable typescript formatting as we are using null-ls config
client.resolved_capabilities.document_f... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md
--
-- Description: Check that SDL ignores subscribe/unsubscribe flag in case App sends `GetSystemCapability`
-- w... |
local box_controller = require("box_controller")
local character_controller = require("character_controller")
local global = require("global")
love.window.setMode(calcResolution(getBox().size.width),calcResolution(getBox().size.height))
function love.load()
end
function love.draw()
drawBox()
drawCharacter()
end... |
local inspect = require 'inspect'
local CPed = require 'cped'
local cjson = require "cjson"
local pb = require "pb"
local protoc = require "protoc"
print("mod hello world")
local json = cjson.encode({
foo = "bar",
some_object = {},
some_array = cjson.empty_array
})
print("json" .. json)
-- load schema ... |
-- Author: Yonatan Belinkov
-- Last updated: July 1 2015
--
-- remove last element from a table
-- based on nn.SelectTable
local RemoveTableLast, parent = torch.class('nn.RemoveTableLast', 'nn.Module')
function RemoveTableLast:__init()
parent.__init(self)
self.gradInput = {}
end
function RemoveTableLast:updat... |
local gifcat = require("gifcat")
local curgif = nil
function love.load()
love.window.setMode( 100, 100 )
-- Init gifcat, this is important as it launches the threads and sets
-- everything up.
gifcat.init()
end
function love.update(dt)
-- This isn't necessary, however it is recommended.
gifcat.update(d... |
local log = ngx.log
local ERR = ngx.ERR
local INFO = ngx.INFO
local WARN = ngx.WARN
local DEBUG = ngx.DEBUG
local str_find = string.find
local sub = string.sub
local str_len = string.len
local gsub = string.gsub
local table_sort = table.sort
local new_timer = ngx.timer.at
local shared = ngx.shared
local debug_mode = ng... |
-- Exit if can't load module(s)
local status_ok, lualine = pcall(require, "lualine")
if not status_ok then
return
end
local function current_buffer_number()
return " " .. vim.api.nvim_get_current_buf()
end
local function current_date()
-- return string.sub(os.date "%x", 1, 5)
-- return os.date "%x"
return os.da... |
local _M = {}
local _Mmt = {__index = _G}
setmetatable(_M, _Mmt)
local _G = _M
--------------------------------------------------------------------------------------------------------------
function createTextFileWithContent(path, content)
-------------------------------------------------------------------------------... |
time = time or {}
local function add_time(time, letter, times)
local secs = 0
local res = string.match(time, "%d+"..letter)
if res then
secs = secs + tonumber(res:sub(1,#res - 1)) * times
end
return secs
end
function time.parse_duration(time)
return add_time(time, "s", 1)
+ ... |
--[=[
Utility library for detecting multiple clicks or taps. Not good UX, but good for opening up a debug
menus.
@class MultipleClickUtils
]=]
local require = require(script.Parent.loader).load(script)
local Signal = require("Signal")
local Maid = require("Maid")
local MultipleClickUtils = {}
local TIME_TO_CLIC... |
local V = {
Name = "Mercedes-Benz SLR Stirling Moss",
Class = "prop_vehicle_jeep",
Category = "DJM CARS",
Author = "CPT DJJDYLAN",
Information = "Vroooom",
Model = "models/djmcars/mercedes/slr/slrstirlingmoss.mdl",
KeyValues = {
vehiclescript = "scripts/vehicles/djmcars/djm_mercedes_sl... |
---
-- @module RandomUtils
-- @author Quenty
local RandomUtils = {}
function RandomUtils.choice(list, random)
if #list == 0 then
return nil
elseif #list == 1 then
return list[1]
else
if random then
return list[random:NextInteger(1, #list)]
else
return list[math.random(1, #list)]
end
end
end
--- C... |
local A = AceLibrary("AceAddon-2.0"):new("AceDebug-2.0", "AceConsole-2.0",
"AceDB-2.0", "AceEvent-2.0", "AceHook-2.1", "FuBarPlugin-2.0")
FonzSummon = A
A.ver = "1.0.0"
A.addon_path = [[Interface\AddOns\FonzSummon]] |
local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
return
end
local startify = require('alpha.themes.startify')
local header = {
type = "text",
val = {
" _ _ ___ ____ _____ _____ ",
" | | | | / | / ___| _ | ___|",
" _... |
ZO_CreateStringId('SI_PLAYEDALL_AND', ' and ') |
object_mobile_cb_cora = object_mobile_shared_cb_cora:new {
}
ObjectTemplates:addTemplate(object_mobile_cb_cora, "object/mobile/cb_cora.iff")
|
RP.Stats = class("Stats", RP.Base)
local stats = RP.Stats
local health = 100
local healthRegen = 0.5
local manaRegen = 0.5
local staminaRegen = 0.5
local level = 1
local mana = 0
local stamina = 0
local fortitude = 1
local intelligence = 1
local dexterity = 1
local constitution = 1
local perception = 1
lo... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
table.insert(Clockwork.voices.chatClasses, "request");
table.insert(Clockwork.voices.chatClasses, "radio");
table.insert(Clockwork.voices.chatClasses, "dispatch");
Clockwork.voices:RegisterGroup... |
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 2,["6"] = 2,["7"] = 2,["8"] = 2,["9"] = 2,["10"] = 2,["11"] = 2,["12"] = 8,["13"] = 8,["14"] = 8,["15"] = 8,["16"] = 8,["17"] = 8,["18"] = 8,["19"] = 14,["20"... |
local Object = require 'core.object'
local frameRate = 1/60
local events = {}
events.triggers = {
"mouse_pressed",
"mouse_released",
"mouse_moved",
"text_input",
"mouse_wheel",
"global_mouse_pressed",
"global_mouse_released",
"global_mouse_moved",
"global_text_input",
"global_mouse_wheel"
}
... |
function fwdKinematicsDevice(device, mframe, state)
-- get device base frame
base = sdevice:getBase();
-- get device end effector
endFrame = sdevice:getEnd();
-- calculate base to end transform
bTe = sdevice:baseTend(state);
-- or just base to any frame
bTmf = sdevice:baseTframe(mframe, ... |
local U = require "togo.utility"
local T = require "Quanta.Time"
local O = require "Quanta.Object"
local Vessel = require "Quanta.Vessel"
local Tracker = require "Quanta.Tracker"
local Director = require "Quanta.Director"
Director.debug = true
function do_tracker_file(path)
local obj = O.create()
if not O.read_tex... |
-- wireshark APS2 protocol dissectors
-- declare our protocol
aps_proto = Proto("aps2","APS2 Control Protocol")
local a = aps_proto.fields
local aps_commands = { [0] = "RESET",
[ 0x01] = "USER I/O ACK",
[ 0x09] = "USER I/O NACK",
[ 0x02] = "EPROM I/O",
[ 0x03] = "CHIP CONFIG I/O",
... |
print('Begin test')
-- ============================================================================
-- Mini test framework
-- ============================================================================
local failures = 0
local function assertEquals(expected,actual,message)
message = message or string.format('Expe... |
-- File: nodon.lua
local remoteControl = "remote_hall"
local device1 = "telldus_home"
local device2 = "telldus_lights"
local device3 = "telldus_away"
local device4 = "telldus_sleep"
COMMAND_CLASS_CENTRAL_SCENE = 0x5B
CENTRAL_SCENE_NOTIFICATION = 0x03
local deviceManager = require "telldus.DeviceManager"
function ha... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
version '1.0.0'
author 'github.com/AvaN0x'
description 'Garage'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'config.lua',
'server.lua'
}
client_script {
'config.lua',
'client.lua'
}
|
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local nw = require "luci.model.network"
local ut = require "luci.util"
local nt = require "luci.sys".net
local fs = require "nixio.fs"
local DISP = require "luci.dispatch... |
-- Load and set namespace
local _, core = ...
-- Handler for console slash commands
function core:Console(args)
arg, subarg = strsplit(" ", args, 2)
-- Print help if no arg
if arg == "" then
s = [[
/pui coords - Print current zone and coordinates (Key Bindings > Other > PrdUI)
/pui notepad - Open notepad (Key B... |
local toint = math.tointeger
local concat = table.concat
local os_time = os.time
local os_date = os.date
local fmt = string.format
local role = {}
-- 角色列表
function role.role_list (db, opt)
local limit = toint(opt.limit) or 10
local page = toint(opt.page) or 1
local roles, err = db:query(fmt([[SELECT id, name, c... |
----------------------------------------------------------------------------------------------------
-- search Macros module
--get the engine and create the module
local Engine = _G.Cecile_QuickLaunch;
--create the modules as submodule of search
local search = Engine.AddOn:GetModule("search");
local mod = search:NewM... |
local L = LibStub("AceLocale-3.0"):NewLocale("MBB","zhTW")
if not L then return end
L["Minimap ButtonBag"] = "小地圖按鍵包";
L["Enable Tooltip"] = "開啟鼠標提示"
L["BigFoot Mini map"] = "大腳設置"
L["Left click to open mini panel"] = "左鍵單擊按鈕打開設置"
L["Right click to show dropdown menu"] = "右鍵單擊按鈕打開額外功能"
L["Attach to Minimap"] =... |
-- server mode
-- to run local server, grab cd into vegastrike-trunk (the dir containing data and vegastrike) and run vegaserver
gNetCmdFromClient = {} -- packet handler for packets received FROM client (e.g sent by server to client)
gNetCmdFromServer = {} -- packet handler for packets received FROM server (e.g sent ... |
----------------------------------------------------------------------------------
-- Total RP 3
-- UI tools
-- ---------------------------------------------------------------------------
-- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--
-- Licensed under the Apache License, Version 2.0 (the "Li... |
-- Input/output:
-- "gold", "science", "resource:gold", "resource:uranium", "extract:gold"
local t = {
economy = {
{
id = "mine",
lvl = {
[1] = {
input = {
["extract:gold"] = 10,
},
output = {
["resource:gold"] = 10,
},
cost = 2500,
},
[2] = {
input = {
... |
local Map = require "maps.map"
local CastleKitchen = Map:new()
function CastleKitchen:new(o, control)
o = o or Map:new(o, control)
setmetatable(o, self)
self.__index = self
return o
end
function CastleKitchen:create()
Map.create(self)
end
function CastleKitchen:enter()
Map.enter(self)
if self.control... |
function SafeWifiConnect(ssid,psw)
if (wifi.getmode()==1) then
if (wifi.sta.getip() == nil) then
wifi.sta.config(ssid,psw)
return 0
end
else
return nil
end
end
function SafeGetIP()
if wifi.sta.getip()== nil then
... |
require( "components/cavern/cavern_encounter" )
--------------------------------------------------------------------
if encounter_combat_enigma == nil then
encounter_combat_enigma = class( {}, {}, CCavernEncounter )
end
--------------------------------------------------------------------
function encounter_combat... |
local config = require('kommentary.config')
-- do not create default mappings (gc)
vim.g.kommentary_create_default_mappings = false
config.configure_language('default', {
use_consistent_indentation = true,
})
config.configure_language('lua', {
prefer_single_line_comments = true,
use_consistent_indentation = tr... |
--hp_check.lua
local FAIL = luabt.FAIL
local SUCCESS = luabt.SUCCESS
local HpCheck = class()
function HpCheck:__init(hp)
self.name = "hp_check"
self.hp = hp
end
function HpCheck:run(tree)
if tree.robot.hp <= self.hp then
return SUCCESS
else
return FAIL
end
end
return HpChe... |
local typePrefixes={
"gm_",
"ba_",
"jail_",
"jb_",
"ttt_",
"cs_",
"de_"
}
local parseCache={};
function EXCL_MAPVOTE.ParseMapName(str)
if parseCache[str] then return parseCache[str] end
for i,v in ipairs(typePrefixes)do
str=string.gsub(str,v,"");
end
str=string.Trim(str);
str=string.Explode("_",str,fa... |
-- New Trait and Policies
-------------------------------------------------------------------------New Trait Effects-----------------------------------------------------------------------
function SpecialUnitType(iPlayerID, iUnitID, iX, iY)
local iPlayer = Players[iPlayerID]
local pUnit = iPlayer:GetUnitByID(iU... |
package("assimp")
set_homepage("https://assimp.org")
set_description("Portable Open-Source library to import various well-known 3D model formats in a uniform manner")
set_license("BSD-3-Clause")
set_urls("https://github.com/assimp/assimp/archive/$(version).zip",
"https://github.com/assimp... |
--[[
MIT License
Copyright (c) 2020 DekuJuice
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, d... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
ADD = "MAP_ADD",
ADD_CORRIDOR = "MAP_ADD_CORRIDOR",
ADD_ROOM = "MAP_ADD_ROOM",
CREATE = "MAP_CREATE",
SET_DIMENSIONS = "MAP_SET_DIMENSIONS",
SET_TERRAIN = "... |
--------------------------------------------------------------------------------
--<[ Модуль CharacterCreator ]>-------------------------------------------------
--------------------------------------------------------------------------------
CharacterCreator = {
isVisible = false;
init = function()
addEventHandl... |
require 'spec.run'
local sample = it
describe("Code sample:", function()
sample("fizzbuzz", function()
run [[
(define (fizzbuzz n)
(cond
((= (mod n 15) 0) "Fizzbuzz")
((= (mod n 5) 0) "Fizz")
((= (mod n 3) 0) "Buzz")
(:else (tostring n))))
(doall (map string.concat (intersperse "\n" (map fizzbuz... |
-----------------------------------------------------------------------------------------------
-- Craft Queue implementation
-- Copyright (c) 2014 DoctorVanGogh on Wildstar forums - all rights reserved
-----------------------------------------------------------------------------------------------
local MAJOR,MINOR = ... |
--[[
Load test video conference.
]]
require('support_functions')
-- debug_print("LUA VERSION: " .. _VERSION);
function usage()
debug_print(string.format("Usage: %s <gateway> <server> <extension> <mock_video_file> <mock_state_variable_name> <conference_id> <user_id>", argv[0]));
end
function main()
local gate... |
local tiny = require "tiny"
local talking = tiny.processingSystem()
talking.filter = tiny.requireAll("name", "mass", "phrase")
function talking:process(e, dt)
e.mass = e.mass + dt * 10
print(("%s who weighs %d pounds, says %q."):format(e.name, e.mass, e.phrase))
if e.mass >= 300 then
print(e.name... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:Initialize()
self.Entity:SetMoveType(MOVETYPE_NONE)
self.Entity:SetSolid(SOLID_NONE)
end
function ENT:Think ( )
local owner = self:GetNetworkedEntity("o", nil);
if (!owner || !IsValid(owner) || !owner:Alive()) then
... |
cPrison = {
show = false,
text = function()
if (localPlayer:getData('hapis_sure') or 0) > 0 then
sX,sY = guiGetScreenSize()
u1,u2 = sx,25
x,y,w,h = sX/2-u1/2,sY/2-u2/2,u1,u2
w, h = w+2, h-4
x, y = x-4, y
dxDrawText("HAPİS : #FF0606"..(getElementData(localPlayer, "hapis_sure") or 0).."#ffffff Daki... |
-- Copyright (C) idevz (idevz.org)
local brz_w = require "resty.breeze.writer"
local brz_r = require "resty.breeze.reader"
local brz_tools = require "resty.breeze.tools"
local _M = {
_VERSION = "0.0.1",
brz_generic_msg_name = name,
alias = "",
fields = {},
name_to_index = {},
schema = {},
... |
#!/usr/local/bin/lua-5.3
--[[
Copyright (c) 2022 Jason Morley, Tom Sutcliffe
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, ... |
local S = 1.0
local mu0 = 1.0
local nu = 0.25
Wedge = {}
function Wedge:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function Wedge:mu(x, y)
return mu0
end
function Wedge:lam(x, y)
return 2.0 * mu0 * nu / (1-2*nu)
end
function Wedge:solution(x, y)
local r = ... |
local parentTerm = term.current and term.current() or nil
if not parentTerm then
printError("The VLWARE OS window system requires ComputerCraft 1.6 or higher.")
return
end
-- Setup process switching
local w,h = parentTerm.getSize()
local tProcesses = {}
local nCurrentProcess = nil
local nRunningProcess = nil
local ... |
local CleanUpSystem = class("CleanUpSystem", System)
function CleanUpSystem:update(dt)
for _, target in pairs(garbageList) do
Utils.getEngine():removeEntity(target, true)
end
garbageList = {}
end
function CleanUpSystem:requires()
return {}
end
return CleanUpSystem
|
AnimationController = Class {
init = function(self)
self.spriteBank = {}
end;
loadSpriteSheet = function(self, spriteName)
local err, sprite_file
sprite_file, err = love.filesystem.load('src/animation/'.. string.lower(spriteName) ..'.lua')
if not sprite_file then
pr... |
local autocmd = vim.api.nvim_create_autocmd
-- Turn on cursorline only in the active window
local group = "CursorLine"
vim.api.nvim_create_augroup(group, { clear = true })
autocmd("WinEnter", {
group = group,
callback = function()
vim.wo.cursorline = true
end,
})
-- Disable cursorline in inactive windows
au... |
local PANEL = {}
AccessorFunc(PANEL, "ItemIconSize", "IconSize")
PANEL.ItemIconSize = 39
function PANEL:Init()
self.Slots = {}
for _, slotTable in pairs(GAMEMODE.DataBase.Slots) do
local Item = vgui.Create("FIconItem", self)
Item:SetSize(self.ItemIconSize, self.ItemIconSize)
Item:SetSlot(slotTable)
Item.Fr... |
require "my/snippets"
local ls = require "luasnip"
local types = require "luasnip.util.types"
ls.config.set_config {
updateevents = "TextChanged,TextChangedI",
store_selection_keys = "<c-j>",
ext_opts = {
[types.insertNode] = {
passive = {
hl_group = "Substitute",
},
},
[types.cho... |
music = "mountains.ogg"
function start()
portal_out = Portal:new{x=3, y=6}
portal_down = Portal:new{x=5, y=4}
end
function stop()
end
function update(step)
portal_out:update()
portal_down:update()
if (portal_out.go_time) then
change_areas("mountains", 111, 15, DIRECTION_SOUTH)
elseif (portal_down.go_time) t... |
object_tangible_collection_flower_12 = object_tangible_collection_shared_flower_12:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_flower_12, "object/tangible/collection/flower_12.iff") |
if GetLocale() ~= "zhTW" then return end
local _, sm = ...
local L = sm.L
L["1. Background"] = "1、背景"
L["2. Border"] = "2、邊框"
L["3. Artwork"] = "3、藝術裝飾"
L["4. Overlay"] = "4、覆蓋"
L["5. Highlight"] = "5、高亮"
L["Add Blend (additive)"] = "添加混合(附加式)"
L["Addon Buttons"] = "插件按鈕"
L["A global profile already exists.... |
require('prototypes/decoratives')
require('prototypes/entities')
require('prototypes/fluids')
require('prototypes/items')
require('prototypes/recipes')
require('prototypes/technologies') |
local class = require("pl.class")
local sfmt = string.format
local Area = require("core.Area")
local EntityFactory = require("core.EntityFactory")
---@class AreaFactory : EntityFactory
local M = class(EntityFactory)
---@param entityRef string areaName
---@return Area
function M:... |
Config = {}
Config.UIShop = {
{name = 'level-up', label = 'Level up', price = 500, level = 1, item_type = 'normal', tooltip="Requirements <br>XP: <span style='color: green'>500</span><br> Level: <span style='color: red'>1</span>"},
{name = 'binoculars', label = 'Binoculars', price = 25,... |
local PLUGIN = PLUGIN;
local Clockwork = Clockwork;
Clockwork.kernel:IncludePrefixed("sv_plugin.lua"); |
local assert = assert
local coroutine = coroutine
-- local debug = debug
local error = error
-- local ipairs = ipairs
-- local load = load
local require = require
-- local pairs = pairs
local pcall = pcall
-- local setfenv = setfenv
local setmetatable = setme... |
require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity.borehole")
require("prototypes.entity.borehole-energy")
require("prototypes.categories.recipe-category")
table.insert(data.raw.technology["fluid-handling"].effects,
{
type = "unlock-recipe",
recipe = "borehole-energy"
... |
#!/usr/bin/env lua
if ncine == nil then
ncine = require "libncine"
end
nc = ncine
tolerance = 0.00001
function print_vec2(v)
return "<" .. v.x .. ", " .. v.y .. ">"
end
function assert_float(a, b, tolerance)
assert((b - a > -tolerance) and (b - a < tolerance))
end
function assert_vec2(v, x, y, tolerance)
asse... |
------------------------------------------
-- TTDetour
-- Injected file / Entry point for all lua things (TTHook.dll loads this file)
-- Created by: MatteO-Matic
------------------------------------------
-- ttprofiler = loadfile("_tprofiler.lua")
-- ttprofiler()
-- pro = newProfiler()
-- pro:start()
f... |
return {'hoogduits','hooglander','hooglied','hoofd','hoofdaandeelhouder','hoofdaanklaagster','hoofdaanklager','hoofdaannemer','hoofdaccent','hoofdact','hoofdacteur','hoofdactiviteit','hoofdader','hoofdadministrateur','hoofdafdeling','hoofdafmeting','hoofdagent','hoofdagentschap','hoofdakte','hoofdaltaar','hoofdambt','h... |
ITEM.name = "Duffle Bag"
ITEM.desc = "A Duffle bag."
ITEM.model = "models/vj_props/duffle_bag.mdl"
ITEM.width = 3
ITEM.height = 4
ITEM.invWidth = 8
ITEM.invHeight = 8
ITEM.price = 1200
|
--------------------------------
-- @module MWJsonArray
-- @extend MWObject
-- @parent_module mw
--------------------------------
-- Get json elements count of array.<br>
-- return Return the count of array.
-- @function [parent=#MWJsonArray] count
-- @param self
-- @return unsigned int#unsigned int ret (return valu... |
--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local place = {}
local mattata = require('mattata')
local https = require('ssl.https')
local url = require('socket.url')
local json = require('dkjson')
local redis = require('libs.r... |
local __exports = LibStub:NewLibrary("ovale/AzeriteEssence", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true)
local pairs = pairs
local tostring = tostring
local ipairs = ipairs
local sort = table.sort
local insert = t... |
if not cplayer then
cplayer = {}
end
function cplayer:hall()
return {msg = "this is hall"}
end
function cplayer:handshake()
return {msg = "handshake success"}
end
return cplayer |
data:extend({
{
type = "double-setting",
name = "ZoomingReinvented_zoom-sensitivity",
setting_type = "runtime-per-user",
default_value = 1.5,
maximum_value = 5.0,
minimum_value = 1.01,
order = "01"
},
{
type = "double-setting",
name = "... |
local uis = game:GetService("UserInputService")
local replicated = game.ReplicatedStorage.CameraSystem
local mouseDown = false
local function slide(input)
local position = input.Position.X
local sliderPos = position - script.Parent.Slider.AbsolutePosition.X
script.Parent.Slider.Size = UDim2.new(0,sliderPos,1,0)
l... |
local M = {}
-----------------------------------
-- UTILITIES --
-----------------------------------
function M.get_cell_bounds(start_row, marker)
local buf_len = vim.api.nvim_buf_line_count(0)
local top_row = nil
local row_num = start_row
while(top_row == nil)
do
local temp_row = vim.api.nvim_buf_get_l... |
local PLUGIN = PLUGIN;
local COMMAND = Clockwork.command:New("PlyUnBlacklist");
COMMAND.tip = "Un-blacklists a player from a faction.";
COMMAND.text = "<string Name> <string Faction>";
COMMAND.flags = CMD_DEFAULT;
COMMAND.access = "o";
COMMAND.arguments = 2;
function COMMAND:OnRun(player, arguments)
local faction = ... |
event_listener = require("__event-listener__/branch-3/stable-version")
local modders_stuff = require("modders-stuff/control")
event_listener.add_lib(modders_stuff)
|
local f = string.format
My.Translator:register("de", {
side_mission_capture = function(criminalPerson)
return "Kopfgeld " .. criminalPerson:getFormalName()
end,
side_mission_capture_description = function(criminalPerson, companionsNr, sectorName, payment)
local HeShe, heShe
if Perso... |
local mod = DBM:NewMod(1654, "DBM-Party-Legion", 2, 762)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17077 $"):sub(12, -3))
mod:SetCreatureID(96512)
mod:SetEncounterID(1836)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 198379",
"SPELL_CAST_SUCCESS 1... |
-- ----------------------------------------------------------------------------
-- Upvalued Lua API.
-- ----------------------------------------------------------------------------
-- Functions
local pairs = _G.pairs
local tonumber = _G.tonumber
-- ---------------------------------------------------------------... |
package("raylib")
set_homepage("http://www.raylib.com")
set_description("A simple and easy-to-use library to enjoy videogames programming.")
if is_plat("macosx") and is_arch("x86_64") then
add_urls("https://github.com/raysan5/raylib/releases/download/$(version).tar.gz", {version = function (versio... |
------------------------------------------------------------------------------------------------------------------------
-- Simple script used to test step tracking, shouldn't be used in live environment
-------------------------------------------------------------------------------------------------------------------... |
--Sayuri & 3L
local m=37564914
local cm=_G["c"..m]
if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end
cm.named_with_sayuri=true
function cm.initial_effect(c)
senya.leff(c,m)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_RITUAL_... |
ardour {
["type"] = "EditorAction",
name = "Rename Ranges For Sample Library",
license = "MIT",
author = "David Healey",
description = [[Rename range markers associated with selected regions to aid exporting samples]]
}
function factory ()
local region_range_marker_input_values --Persistent ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.