content stringlengths 5 1.05M |
|---|
-- serenade
local M = {}
function M.setup()
vim.g.serenade_sign_column_background = "none"
vim.g.serenade_better_performance = 1
vim.cmd [[colorscheme serenade]]
end
M.colors = {
fg = "#bfddb2",
bg = "#2A2F33",
accent = "#ACB765",
lightbg = "#343b3f",
linebg = "#343b3f",
fgfaded = "#474F54",
grey... |
function love.conf(t)
t.version = "11.2"
t.author="Taller_Lua"
t.window.width = 900
t.window.height = 600
t.title="Un juego de piratas"
t.identity="juego_pirata"
end |
require("reactivity/src/operations/TrackOpTypes")
require("reactivity/src/operations/TriggerOpTypes")
|
print('Check we will accept a message')
require './lib'
require './data'
setup()
send_message(innocuous_msg, innocuous_hdrs, 'test-id', 'nerf@example.org', {'nerf@example.org'})
check_accept()
teardown()
|
--------------------------------------------------------------------------------
--
-- This file is part of the Jancy toolkit.
--
-- Jancy is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/archive/... |
if nil ~= require then
require "fritomod/Assert";
require "fritomod/Tests";
end;
Mixins=Mixins or {};
function Mixins.TableTests(Suite, library)
assert(not rawget(Suite, "Array"), "TableTests is not compatible with ArrayTests");
function Suite:TestSuiteHasTable()
Assert.Type("function", Suite.Table, "Suite has... |
local defaultCloth = "Casual Cloth"
local sheetItems = {
[1] = { -- for CITIZENSHEETS[1]
{"Firefighter Uniform", "A LAFD Firefighter Uniform.", 1},
{defaultCloth, "A Blue Chekcered Shirt with Jeans.", 2},
{"Well Uniform", "A Well kept Blue Uniform", 3},
{"Nurse Uniform", "A Cyan Nurse Uniform", 4},
{"Nurse U... |
local Class = require("luna.class")
local Scene = Class:extend("Scene")
function Scene:constructor()
self.objects = {}
self.objects_to_add = {}
self.objects_to_remove = {}
end
function Scene:update(dt)
end
function Scene:draw()
end
return Scene |
--- Matching for pcap files
local mod = {}
local memory = require "memory"
local ts = require "timestamping"
local hist = require "histogram"
local log = require "log"
local ms = require "moonsniff-io"
local dpdk = require "dpdk"
local pcap = require "pcap"
local hmap = require "hmap"
local ffi ... |
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___... |
-- mandate that the bots will pick these heroes - for testing purposes
requiredHeroes = {
--'npc_dota_hero_rattletrap';
'npc_dota_hero_puck';
'npc_dota_hero_meepo';
--'npc_dota_hero_bane';
--'npc_dota_hero_lina';
--'npc_dota_hero_nevermore';
};
-- change quickMode to true for testing
-- quickMo... |
local awful = require("awful")
local clickableContainer = require("widgets.general.clickable-container")
-- Return function to create a layout-switcher button
return function(screen)
-- Create a click-container containing the AwesomeWM internal layoutbox widget
local layoutBtn = clickableContainer(awful.widget.lay... |
plr=game:service'Players'.LocalPlayer
ch=plr.Character
torso=ch.Torso
m=plr:GetMouse()
cfn=CFrame.new
mr=math.rad
ang=CFrame.Angles
int=Instance.new
loaded=6
ammo=36
if ch:findFirstChild('Scattergun') then
ch.Scattergun:Destroy()
end
local shoot=int("Sound",ch.Head)
shoot.SoundId='http://www.roblox.com/asset?id=... |
local snips, autosnips = {}, {}
local tex = require 'utils.latex'
local rec_ls
rec_ls = function()
return sn(nil, {
c(1, {
t { '' },
sn(nil, { t { '', '\t\\item ' }, i(1), d(2, rec_ls, {}) }),
}),
})
end
local pipe = function(fns)
return function(...)
for _, fn in ipairs(fns) do
if not fn(...) then... |
--- PlayerModel
---
--- PlayerModels are the most commonly used subtype of Model frame. They expand on the Model type by adding functions to quickly set the model to represent a particular player or creature, by unitID or creature ID.
--- These models are used by the stock UI for "paper doll" frames, to display a play... |
require("Ext.Object")
|
holoemitter = {}
-- sanity checks
assert(minetest.features.add_entity_with_staticdata, "add_entity_with_staticdata not supported")
local MP = minetest.get_modpath("holoemitter")
dofile(MP.."/digiline.lua")
dofile(MP.."/node.lua")
dofile(MP.."/entity.lua")
dofile(MP.."/session.lua")
|
object_tangible_quest_imperial_itp_thrawn_datapad = object_tangible_quest_imperial_shared_itp_thrawn_datapad:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_imperial_itp_thrawn_datapad, "object/tangible/quest/imperial/itp_thrawn_datapad.iff")
|
print("Kontrollzentrum Info scripts running...")
print(" CTRL + T Terminate script")
mon = peripheral.wrap("left")
mon.clear()
mon.setCursorPos(1,1)
shell.run("downloads/CCGrabbelkiste/HochHaus/LichtAnz")
os.loadAPI("downloads/CCGrabbelkiste/HochHaus/LichtAnz")
while true do
LichtAnz.ShowLichtInfos(1, 1)
os.sle... |
local _kpi_status = {}
local function build(kpi_id)
local now = os.time()
local retval = {
kpi_id = kpi_id,
_type = 393218,
in_downtime = 1,
level_acknowledgement_hard = 1,
level_acknowledgement_soft = 1,
level_downtime_hard = 1,
level_downtime_soft = 1,
level_nominal_hard = 1,
... |
widget = {
weight = 5.0,
['part number'] = 'C8122-X',
'green', -- key is 1
'round', -- key is 2
[4] = 'magnetic',
imported = false,
'metal', -- key is 3
}
print('pairs iterates through ALL pairs in arbitrary order')
for key, value in pairs... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
if Config.MaxInService ~= -1 then
TriggerEvent('esx_service:activateService', 'gang', Config.MaxInService)
end
-- TriggerEvent('esx_phone:registerNumber', 'mafia', _U('alert_mafia'), true, true)
TriggerEvent('esx_society:registerSociety', '... |
local ui = {}
ui.images = {}
ui.nogame = love.graphics.newImage("assets/nogame.png")
ui.overlay = love.graphics.newImage("assets/overlay.png")
ui.headerindex = selectindex or 0
ui.snap = 0.01
ui.changespeed = 10
ui.buttonwidth = 210
ui.gameselect_w = (settings.gameshow)*settings.padding
ui.gameselect_h = (settings... |
require( "logapi" )
term = require( "term" )
newlog = logContainer( )
newlog:loadFrom("testser.log")
for k, v in ipairs ( newlog.entries ) do
term.write( v.timedatestamp .. "#" .. v.info .. "#" .. v.priority .. "\n")
end
for k, v in ipairs ( newlog:findEntriesByPriority( "5" ) ) do
term.write( v:serialize() )
end |
-- keys.lua
-- Contains Global Keys
local gears = require("gears")
local awful = require("awful")
local hotkeys_popup = require("awful.hotkeys_popup")
local helpers = require("helpers")
local beautiful = require("beautiful")
local dpi = beautiful.xresources.apply_dpi
-- Custom modules
local bling = require("module.blin... |
local server_conf = require "global.server_conf"
local Log = require "log.logger"
local Util = require "util.util"
local msg_def = require "global.net_msg_def"
local MID = msg_def.MID
local RPC_SEND_SESSION_ID = -1
local RPC_FIN_SESSION_ID = -2
local global_define = require "global.global_define"
local MAILBOX_ID_NIL ... |
local prefix = "lua tangerine.api."
local function odd_3f(int)
_G.assert((nil ~= int), "Missing argument int on fnl/tangerine/vim/cmds.fnl:11")
return (0 ~= (int % 2))
end
local function parse_opts(opts)
_G.assert((nil ~= opts), "Missing argument opts on fnl/tangerine/vim/cmds.fnl:15")
local out = ""
for idx,... |
include("terms")
ind = math.random(2);
term1 = math.random(750) + 100;
term2 = math.random(900 - term1) + 100;
temp = term1 + term2;
namefirst = array_operfirst[2];
if (temp > 899) then
ind = 1;
end
if (ind == 1) then
if (term1 < term2) then
tt = term1
term1 = term2
term2 = tt
... |
-- Ext.AddPathOverride("Public/Game/GUI/characterSheet.swf", "Public/lx_enhanced_divine_combat_3ff156e2-289e-4dac-81f5-a44e3e304163/Game/GUI/characterSheet.swf")
------ UI Values
---@param ui UIObject
---@param call string
---@param state any
local function changeDamageValue(ui, call, state)
if ui:GetValue("secSta... |
local PLAYER = debug.getregistry().Player
local ENTITY = debug.getregistry().Entity
if CPPI then
return
elseif SERVER then
ErrorNoHalt("You need a CPPI compliant prop protection addon installed! Do not complain about issues or errors!\nHere's the one we use: http://steamcommunity.com/sharedfiles/filedetails/?id=1592... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 25,
height = 25,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "Wall",
firstgid = 1,
tilewidth = 16,
tileheight = 16,
spacing = 0,
margin = 0,
image... |
--[[
Variables
]]
Housing.ClosestObject = {}
Housing.plyCoords = nil
local runDebugLocations = false
local cleaning = false
local addition = {}
local targetProperty = 0
local _i, _f, _v, _r, _ri, _rf, _rl, _s, _rv, _ro, _in, _ii, _fi =
Citizen.PointerValueInt(), Citizen.PointerValueFloat(), Citizen.PointerValu... |
local WIDGET, VERSION = 'SearchBox', 1
local GUI = LibStub('NetEaseGUI-2.0')
local InputBox = GUI:GetClass('InputBox')
local SearchBox = GUI:NewClass(WIDGET, InputBox, VERSION)
if not SearchBox then
return
end
function SearchBox:Constructor(parent)
local SearchIcon = self:CreateTexture(nil, 'ARTWO... |
-- SIE CONFIDENTIAL
-- PhyreEngine(TM) Package 3.18.0.0
-- Copyright (C) 2016 Sony Interactive Entertainment Inc.
-- All Rights Reserved.
require "Trace"
Helpers = {}
Helpers.PI = 3.14159265
function Helpers.GetMaterials(entity)
local materials = {}
local instancesComponent = entity:getComponent(Phyre.PInstan... |
data:extend(
{
{
type = "item",
name = "copper-gear-wheel",
icon = "__burn-the-world__/graphics/icons/copper-gear-wheel.png",
flags = {"goes-to-main-inventory"},
subgroup = "burner-intermediate-product",
order = "a",
stack_size = 100
},
{
type = "recipe",
name = "copper-gear-wh... |
local json = require "cjson"
local file = require "pl.file"
local pretty = require "pl.pretty"
local content = file.read(arg[1])
local data, err = json.decode(content)
function showname(funcionarios)
local ret = ""
for _, f in ipairs(funcionarios) do
ret = ret .. " " .. f.nome .. " " .. f.... |
----------------------------------------------------------------------------------
--- Total RP 3
--- Character page : About
--- ---------------------------------------------------------------------------
--- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--- Copyright 2018 Renaud "Ellypse" Parize <... |
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... |
--
require "/lib/stardust/prefabs.lua"
require "/lib/stardust/power.lua"
require "/lib/stardust/network.lua"
iou = { } -- table of promises for sent power
commit = 0 -- how much of the battery has been committed
baseDelta = 15 -- ticks between updates while active
idleDelta = 60 -- ticks between updates while idle (n... |
local Explosive = Class(function(self,inst)
self.inst = inst
self.explosiverange = 3
self.explosivedamage = 200
self.buildingdamage = 10
self.lightonexplode = true
self.onexplodefn = nil
self.onignitefn = nil
end)
function Explosive:SetOnExplodeFn(fn)
self.onexplodefn = fn
end
function Explosive:SetOnIgniteFn... |
local TabbedFile = require "TabbedFile"
local util = {}
function util.GetSpecFilePath()
return FixupPath("glspecs/");
end
function util.GetDataFilePath()
return FixupPath("data/");
end
function util.InvertTable(tbl)
local ret = {}
for i, val in ipairs(tbl) do
ret[val] = true
end
return re... |
ENT.Base = "base_brush";
ENT.Type = "brush";
function ENT:Initialize()
self:SetTrigger( true );
end
function ENT:PassesTriggerFilters( ent )
return ent:IsPlayer() and ent:Alive();
end
function ENT:StartTouch( ply )
local dmg = DamageInfo();
dmg:SetAttacker( game.GetWorld() );
dmg:SetInflictor( self );
dmg... |
--魔导巧壳-剑战装艾露
function c26260102.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,c26260102.syfilter,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--REMOVE_TYPE_EFFECT
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_REMOVE_TYPE)
... |
-- For some reason I'm not allowed to arbitrarily create ModuleScripts and require them from CoreScripts.
-- As long as this ModuleScript is here I can change it's source and require it.
return 0 |
local table = require("__flib__.table")
local util = {}
function util.append(tbl, name)
local new_tbl = table.shallow_copy(tbl)
new_tbl[#new_tbl+1] = name
return new_tbl
end
return util
|
local api = vim.api
local fn = vim.fn
local user_options = require('sqls')._user_options
local M = {}
local function make_show_results_handler(mods)
return function(err, result, _, _)
if err then
vim.notify('sqls: ' .. err.message, vim.log.levels.ERROR)
return
end
... |
--[[
@Author: Ermano Arruda (exa371 at bham dot ac dot uk), June 2016
DQNAgent implements the DQN algorithm proposed by Mnih et al
https://www.cs.toronto.edu/%7Evmnih/docs/dqn.pdf
This code is also based on the following resources:
Deep Learning lectures by Nando de Freitas (I have to say these are truly good lectur... |
-- KEYS: zset@id-do set@id-redo
-- ARGS: id
redis.call('ZREM', KEYS[1], ARGV[1])
redis.call('SADD', KEYS[2], ARGV[1])
return 0 |
--ZFUNC-longextname-v1
local function longextname( path ) --> ext
local i = #path
local doti = nil
local c = string.sub( path, i, i )
while i > 0 and c ~= "/" do
i = i - 1
c = string.sub( path, i, i )
if c == "." then doti = i end
end
if doti then return string.sub( path, doti ) end... |
require("NPC/npcBase.lua")
require("Game/particleEffect.lua")
--this = SceneNode()
local npcBase
function destroy()
npcBase.destroy()
end
function create()
npcBase = NpcBase.new()
npcBase.init("stoneSpirit","npc_stonespirit.mym",0.2,0.6,1.3,2.0)
--physic animated death
npcBase.addDeathRigidBody()
--particle e... |
local t = Def.ActorFrame{};
t[#t+1] = Def.ActorFrame{
LoadActor("2nd doors")..{
InitCommand=cmd(setsize,1280,720;CenterY;cropright,0.5;CenterX);
OnCommand=cmd(addx,-SCREEN_WIDTH;linear,0.4;addx,SCREEN_WIDTH);
};
LoadActor("2nd doors")..{
InitCommand=cmd(setsize,1280,720;CenterY;cropleft,0.5;C... |
--
-- LEW-19710-1, CCSDS SOIS Electronic Data Sheet Implementation
--
-- Copyright (c) 2020 United States Government as represented by
-- the Administrator of the National Aeronautics and Space Administration.
-- All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
local cjson = require "cjson"
local util = require("util")
local RedisManager = require("RedisManager")
local urlCache = require("url_cache")
local rurl = ngx.var.url
local _url = nil
local args = nil
local request_method = ngx.var.request_method
if request_method == "GET" then
local rurl_s = util.string_... |
module 'mock_edit'
local function collectRenderComponent( e, collection )
if isEditorEntity( e ) then return end
if not isInstance( e, mock.Entity ) then return end
for child in pairs( e.children ) do
collectRenderComponent( child, collection )
end
local result = {}
for com in pairs( e.components ) do
if isI... |
male_squall = Creature:new {
objectName = "@mob/creature_names:squall_male",
socialGroup = "squall",
faction = "",
level = 11,
chanceHit = 0.29,
damageMin = 120,
damageMax = 130,
baseXp = 356,
baseHAM = 1000,
baseHAMmax = 1200,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_herbivore",
meatA... |
local IFeatDescendable = require("mod.elona.api.aspect.feat.IFeatDescendable")
local IFeatActivatable = require("mod.elona.api.aspect.feat.IFeatActivatable")
local Event = require("api.Event")
local Aspect = require("api.Aspect")
local Gui = require("api.Gui")
local function permit_feat_actions(feat)
if feat:iter_a... |
local function get_mod_setting_value(player_spec, setting_name)
return settings.get_player_settings(player_spec)[setting_name].value
end
local function set_mod_setting_value(player_spec, setting_name, value)
settings.get_player_settings(player_spec)[setting_name] = {value = value}
end
local function try_get_posi... |
local http = require 'http'
local tessel = require 'tessel'
local PORT = 3000
local led = tessel.led[2]:output(0)
local on = false
local server = http:createServer(function (req, res)
led:toggle()
on = not on
res:writeHead(200, { ['Content-Type'] = 'text/plain' })
-- Note .end() is an invalid syntax in Lua,... |
object_static_worldbuilding_structures_mun_nboo_guild_combat_destroyed = object_static_worldbuilding_structures_shared_mun_nboo_guild_combat_destroyed:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_guild_combat_destroyed, "object/static/worldbuilding/structures/mun_nboo_guild_combat... |
require '../ffi/sfml-system';
print("SFML " .. sf.Version.Major .. "." .. sf.Version.Minor .. " - System");
local clk = sf.Clock();
print("Sleeping for 1 second...");
sf.sleep(sf.seconds(1));
print("Time + 1 second =", (clk:getElapsedTime() + sf.seconds(1)):asSeconds()) |
pg = pg or {}
pg.enemy_data_statistics_156 = {
[10106104] = {
cannon = 39,
prefab = "srBB2",
reload = 150,
cannon_growth = 2000,
speed_growth = 0,
air = 0,
rarity = 2,
dodge = 0,
torpedo = 0,
durability_growth = 41600,
antiaircraft = 40,
reload_growth = 0,
dodge_growth = 0,
luck = 0,
star... |
local super = Class("Teste", Panel, function()
static.getInstance = function()
return LuaObject.getSingleton(static)
end
end).getSuperclass()
function Teste:init()
super.init(self)
self:setBounds(0, 300, 300, 200)
self:setBackground(tocolor(0, 0, 0, 150))
return self
end
|
main_quest = true
targets =
{
{"Elysia", 1}
}
collectibles =
{
{"qe_jackpan", 1}
}
markers = {
{
map = "res/map/gandria/gandria.tmx",
position = {3475, 2225},
step = 0
},
{
map = "res/map/gandria/gandria.tmx",
position = {2725, 2525},
step = -1
}
}
|
require("toggleterm").setup{
function(term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
open_mapping = [[<c-\>]],
hide_numbers = true, -- hide the number column in toggleterm buffers
shade_filetypes = {}... |
local M = require('xe.node_def._checker')
local CalcParamNum = M.CalcParamNum
local CheckName = M.CheckName
local CheckVName = M.CheckVName
local CheckExpr = M.CheckExpr
local CheckPos = M.CheckPos
local CheckExprOmit = M.CheckExprOmit
local CheckCode = M.CheckCode
local CheckParam = M.CheckParam
local CheckNonBlank = ... |
local TableUtil = require("sebaestschjin-tts.TableUtil")
local XmlUiFactory = require("sebaestschjin-tts.xmlui.XmlUiFactory")
local XmlUiElement = require("sebaestschjin-tts.xmlui.XmlUiElement")
---@class seb_XmlUi_ToggleGroup : seb_XmlUi_Element
---@class seb_XmlUi_ToggleGroup_Static
---@overload fun(element: tts__U... |
--[=[
Path manipulation for Windows and UNIX paths.
Written by Cosmin Apreutesei. Public Domain.
Parses all Windows path formats including long paths (`\\?\`),
device paths (`\\.\`) and UNC paths.
The only paths that are portable between Windows and UNIX (Linux, OSX)
without translation are relative paths usin... |
local _G = getfenv();
local hooks = _G.ChatSuey.HookTable:new();
local hideButton = function (button)
button:Hide();
-- Scroll buttons are shown every time the active chat
-- tab changes, among other scenarios.
hooks:RegisterScript(button, "OnShow", function ()
hooks[this].OnShow();
th... |
LoadActor(THEME:GetPathB("", "_modules/Characters.lua"))
local wheel = setmetatable({disable_wrapping = true}, sick_wheel_mt)
local row, col = 4,4
local row_height, col_height = 100, 100
local grid_offsetX = 0
local grid_offsetY = 50
local characters = GetAllCharacters()
-- the count of actual characters. total cou... |
local random = require 'lqc.random'
local property = require 'lqc.property'
local lqc = require 'lqc.quickcheck'
local r = require 'lqc.report'
local double = require 'lqc.generators.float'
local float = double
ffi.cdef [[
float flt_add(float a, float b);
double dbl_add(double a, double b);
]]
local clib = ffi.loa... |
AmrDb = {
["Talents"] = {
"0000000", -- [1]
"0000000", -- [2]
},
["LastCharacterImportDate"] = "",
["SendSettings"] = {
["SendTo"] = "",
["SendGems"] = true,
["SendEnchants"] = true,
["SendEnchantMaterials"] = true,
["SendToType"] = "a friend",
},
["CharacterName"] = "Vocah",
["Race... |
local crypto = require("crypto")
local ltn12 = require("ltn12")
local mime = require("mime")
MultipartFormData = {}
local MultipartFormData_mt = { __index = MultipartFormData }
function MultipartFormData.new() -- The constructor
local newBoundary = "MPFD-"..crypto.digest( crypto.sha1, "MultipartFormData"..... |
function OnResourceChanged(player, resName, resValue)
local data = Storage.GetPlayerData(player)
data[resName] = resValue
Storage.SetPlayerData(player, data)
local resultCode,errorMessage = Storage.SetPlayerData(player, data)
end
function OnPlayerJoined(player)
local data = Storage.GetPlayer... |
local vim = vim
local M = {}
function M.setup(o)
vim.cmd [=[command! -nargs=? -range=% -bang Trim lua require"trim.trimmer".trim(<q-args>, <line1>, <line2>)]=]
setAutocmd(o)
end
function setAutocmd(o)
local config = require("trim.config")
local disable = o.disable
if #disable == 0 then disable = config.def... |
local discordApp = require(script.DiscordWebhooks)
local webhook = discordApp.RegisterHook("", "")
webhook:PostAsync(
"Test message",
"Brad_Sharp"
)
|
ActiveParticles = {}
AddEvent("OnObjectStreamIn", function(object)
if GetObjectPropertyValue(object, "isParticle") ~= nil then
local x,y,z = GetObjectLocation(object)
local rx,ry,rz = GetObjectRotation(object)
local ObjectActor = GetObjectActor(object)
ObjectActor:SetAc... |
local skynet = require("skynet")
local GameTable = require("logic/common/gameTable")
skynet.start(function()
Log.d(TAG, "GameTableService start")
skynet.dispatch("lua", function(session, source, cmd, subcmd, ...)
if GameTable[cmd] then
skynet.ret(skynet.pack(GameTable[cmd](GameTable, subcmd, ...)))
else
Lo... |
--[[
Swamplord Musel'ek yells: Acalah pek ecta!
Swamplord Musel'ek yells: Beast! Obey me! Kill them at once!
Swamplord Musel'ek yells: I will end this quickly....
Swamplord Musel'ek yells: It is finished.
Swamplord Musel'ek yells: Krypta!
Swamplord Musel'ek yells: We fight to the death!
Swamplord Musel'ek yells: Well..... |
--[[
****************************************************************************************
LibStrataFix
Author: oscarucb
****************************************************************************************
]]--
local _G = _G
local UIParent, pairs, string, select, type =
UIParent, pairs, string, selec... |
local class = require("lib/middleclass")
local module = {}
module.Occluder = class('components/occluder')
return module
|
--------------------------------------------------------------------------------
-- @File: theme.lua
-- @Author: Marcel Arpogaus
-- @Date: 2019-06-30 20:36:28
--
-- @Last Modified by: Daniel
-- @Last Modified at: 2020-10-20 12:49:02
-- [ description ] -------------------------------------------------------------
... |
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {}
local ____settings = require("constants.settings")
local Settings = ____settings.default
data:extend({
{
type = "int-setting",
name = Settings.TickBetweenChecks,
setting_type = "runtime-global",
... |
--[[
Custom coroutine wait scheduler @ 60Hz.
Necessary for preventing performance problems
with hundreds of Async.Wait calls.
]]
local TestService = game:GetService("TestService")
local RunService = game:GetService("RunService")
local EXTRA_TASK_SIZE = 3
local FRAME_WAIT_TIME = 1/60
local TIME_TOLERANCE = ... |
-- German localization file for deDE by Ragnar_F and Google translator, announce corrections by Salty
local _
-- global functions and variebles to locals to keep LINT happy
local assert = _G.assert
local LibStub = _G.LibStub; assert(LibStub ~= nil,'LibStub')
-- local AddOn
local ADDON = ...
local AceLocale = LibStub:Ge... |
Config = {}
print("^0======================================================================^7")
print("^0[^4Author^0] ^7:^0 ^0cheglalw83^7")
print("^0[^3Version^0] ^7:^0 ^01.0^7")
print("^0======================================================================^7")
Config.Locale = 'fr'
Config.KeyToOpenCarGarage = 38... |
local pumps_new_base_level = 3 -- entities containing 'pump'
local other_entites_new_base_level = 2 -- entities with base_level == 1 (assemplers, mining drills, etc)
function generate_high_pipe(type_name, entity_name)
if high_pipe.fluid_box and (not high_pipe.fluid_box.base_level or high_pipe.fluid_box.base_level... |
local class = require("class")
local common = require("common")
local M = {}
local Result = class(function (r, value, pos)
-- Value of the AST
r.value = value
-- Index of the next token in the stream.
r.pos = pos
end)
function Result:__tostring()
return string.format("Result(%s, %d)", self.value, self.pos)
... |
-----------------------------------------------------------------------------------------
--
-- cInfos.lua
--
-- Classe agissant d'intermédiaire entre le personnage, le monde et le téléphone,
-- Gère l'affichage des données dans la barre d'information et s'occupe du traitement de toutes l'information requise au déroule... |
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local bitfield = require("core.lib").bitfield
local nd_header = require("lib.protocol.icmp.nd.header")
local na = subClass(nd_header)
local na_t = ffi.typeof[[
struct {
uint32_t flags;
uint8_t target[16];
} __attribu... |
local base = {}
--default updates
base._Updates = {
Size = {
Width = function(p)
if (p:CheckChange("Width") and p:CanResizeWidth() ) then
p:SetWide(p:GetSettingWidth())
p:SetHasResized()
end
end,
Height = function(p)
if (p:CheckChange("Height") and p:CanResizeHeight() ) then
p:SetTall(p:Get... |
data:extend({
{
type = "recipe",
name = "orbital-ion-cannon",
energy_required = 60,
normal =
{
enabled = false,
ingredients =
{
{"low-density-structure", 100},
{"solar-panel", 100},
{"accumulator", 200},
{"radar", 10},
{"processing-unit", 200},
{"electric-engin... |
local Gamestate = require "hump.gamestate"
Timer = require "hump.timer"
local tick = require "tick"
local Wave = require "wave"
-- Gamestates ------------------------------------------------------------------
local menu = {}
local splitScreen = {}
local boss = {}
local rest = {}
local postgame = {}
-------------------... |
local onvif = require('onvif')
local xml = require('app/xml')
local json = require('json')
local fs = require('fs')
local options = {
address = '192.168.1.64',
username = 'admin',
password = 'admin123456'
}
options = {
address = '192.168.1.104',
username = 'admin',
password = 'abcdefg123456'
... |
local h = {}
-- def_hi {{{
-- borrowed from norcallis lua pile
function h.def_hi(group, o)
local parts = {group}
if o.default then table.insert(parts, "default") end
if o.link then
if not o.default then
vim.cmd('highlight clear '..table.concat(parts, ' '))
end
table.insert(parts, 1, "link")
... |
vim.keymap.set('n', '<Leader>=', ':vert resize +10<CR>')
vim.keymap.set('n', '<Leader>-', ':vert resize -10<CR>')
vim.keymap.set('n', 'n', 'nzzzv')
vim.keymap.set('n', 'N', 'Nzzzv')
vim.keymap.set('n', '<c-h>', '<c-w>h')
vim.keymap.set('n', '<c-j>', '<c-w>j')
vim.keymap.set('n', '<c-k>', '<c-w>k')
vim.keymap.set('n',... |
getglobal workspace
pushnumber 100
setfield -2 Gravity
emptystack |
function tuple(...)
local self = {}
local _tuple = {
__index = {...},
__class = 'tuple',
__newindex = function(t, k, v)
error("'tuple' does not support item assignment", 2)
end
}
setmetatable(self, _tuple)
return self
end
---------------------------------------------------------------------------------... |
--Inventory - Api
local succes = false
local oldSlot = turtle.getSelectedSlot()
--Checks for a specific item in current slot and returns succes
local function checkItem(name)
if turtle.getItemDetail() ~= nil then
local data = turtle.getItemDetail()
if data.name == name then
... |
local ITEM = Clockwork.item:New("ammo_base");
ITEM.name = "Winchester Rounds";
ITEM.cost = 40;
ITEM.classes = {CLASS_EOW};
ITEM.model = "models/Items/sniper_round_box.mdl";
ITEM.weight = 1;
ITEM.access = "V";
ITEM.uniqueID = "m9k_winchester";
ITEM.business = true;
ITEM.ammoClass = "AirboatGun";
ITEM.ammoAmoun... |
require "common"
local skynet = require "skynet"
local snax = require "skynet.snax"
local crypt = require "skynet.crypt"
local encode_base64 = crypt.base64encode
local etcd_hosts = skynet.getenv "etcd_hosts"
local etcd_user = skynet.getenv "etcd_user"
local etcd_pass = skynet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.