content stringlengths 5 1.05M |
|---|
-- This file is auto-generated by shipwright.nvim
local common_fg = "#9FA1BB"
local inactive_bg = "#1F2031"
local inactive_fg = "#D2D9F8"
return {
normal = {
a = { bg = "#4A4E6F", fg = common_fg, gui = "bold" },
b = { bg = "#353751", fg = common_fg },
c = { bg = "#232437", fg = "#C0CAF5" },
},
insert = {
a... |
return {'omhaal','omhakken','omhalen','omhaling','omhanden','omhangen','omhangsel','omheen','omheinen','omheining','omhelsd','omhelzen','omhelzing','omhoog','omhoogdrijven','omhoogduwen','omhooggaan','omhooggevallen','omhooghalen','omhooghouden','omhoogkomen','omhooglopen','omhoogschieten','omhoogsteken','omhoogtillen'... |
local Rock = GameObject:extend()
function Rock:new(zone, x, y, opts)
Rock.super.new(self, area, x, y, opts)
--local direction = table.random({-1, 1})
self.w = opts.w or 8
self.h = opts.h or 8
self.size = opts.size or 8
self.hp = opts.hp or 10 * self.size
self.points = opts.points or 8
self.collider... |
local CCScene = require("CCScene")
local oPlatformWorld = require("oPlatformWorld")
local oVec2 = require("oVec2")
local oBody = require("oBodyEx")
local CCDirector = require("CCDirector")
local CCRect = require("CCRect")
local scene = CCScene()
local world = oPlatformWorld()
world.camera.boudary = CCRect(-2500,-2500... |
local dap_install = require("dap-install")
dap_install.config(
"go_delve",
{}
)
|
--autowalk
--author: amfero
function main()
local autowalk = Module.new("AutoWalk", "xd", "MOVEMENT", this)
autowalk:body(function(mod)
autowalk:registerCallback("tick", function(tick)
mc.options.keyForward:setPressed(true)
end)
autowalk:onDisable(function()
mc.options.keyForward:s... |
--* Tip (this is a modified tooltip mod based on FatalEntity work)
local E, C, L, _ = select(2, shCore()):unpack()
if C['tooltip'].enable ~= true then return end;
local _G = _G
local unpack = unpack
local select = select
local type = type
local format = string.format
local hooksecurefunc = hooksecurefunc
... |
AddCSLuaFile("shared.lua")
include("shared.lua")
sfad_sentient_idle_lines_male = {
"vo/npc/male01/pain01.wav",
"vo/npc/male01/pain02.wav",
"vo/npc/male01/pain03.wav",
"vo/npc/male01/pain04.wav",
"vo/npc/male01/pain05.wav",
"vo/npc/male01/pain06.wav",
"vo/npc/male01/pain07.wav",
"vo/npc/male01/pain08.wav",
"... |
-- Waterdragon (Hydra)
mobs:register_mob("dmobs:waterdragon", {
type = "monster",
passive = false,
attack_type = "dogshoot",
dogshoot_switch = 2,
dogshoot_count = 0,
dogshoot_count_max =5,
shoot_interval = 2.5,
arrow = "dmobs:ice",
shoot_offset = 0,
pathfinding = false,
reach = 5,
damage = 2,
hp_min = 100... |
-- clear default mapgen biomes, decorations and ores
minetest.clear_registered_biomes()
minetest.clear_registered_decorations()
--minetest.clear_registered_ores()
local path = minetest.get_modpath("ethereal")
dofile(path .. "/ores.lua")
path = path .. "/schematics/"
local dpath = minetest.get_modpath("... |
-- recursive print a table
function pprint(tbl, level)
local newlevel = level or 0
newlevel = newlevel + 1
if type(tbl) ~= "table" then
print(tbl)
else
for k, v in pairs(tbl) do
if type(v) == "table" then
print(k)
pprint(v, newlevel)
else
print(string.rep(' ', newlevel), k, v)
end
end
... |
#!/usr/bin/env lua
-------------------------------------
-- Builds the adapter.
-- @param options The parameters.
-------------------------------------
local function build_adapter(client, options)
local type = tostring(options.type)
local Adapter = require('adapters/' .. type)
local adapter = Adapter:new(clie... |
-- Copyright 2014 by Ida Bruhns
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
--- This is the parent class for forces. It provides a constructor and m... |
--[[
Derived from roethlin.lua.
Original Copyright follows.
Copyright (c) 2010 Gerhard Roethlin
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 limitat... |
object_mobile_asn_121 = object_mobile_shared_asn_121:new {
}
ObjectTemplates:addTemplate(object_mobile_asn_121, "object/mobile/asn_121.iff")
|
local function Move(Camera, Mouse, dt, mx, my)
if love.mouse.isDown(2) then
local s, c = math.sin(Camera.angle), math.cos(Camera.angle)
local dx = (-mx + Mouse.screen.x) / Camera.zoom
local dy = (-my + Mouse.screen.y) / Camera.zoom
Camera.x = Camera.x + dx * c - dy * s
Camera... |
--- inspire by https://github.com/sony/sonyflake/blob/master/sonyflake.go
--- lua number has 52 bit
local BIT_LEN_SEQUENCE = 8
local BIT_LEN_TICK = 52 - BIT_LEN_SEQUENCE
local Snowflake = {
tick = 0,
sequence = 0,
}
local MASK_SEQUENCE = bit32.lshift(1, BIT_LEN_SEQUENCE - 1)
local TICK_BIT_OFFSET = bit32.ls... |
#!/usr/bin/lua
-- Copyright (C) 2021 Lienol <lawlienol@gmail.com>
local jsonc = require "luci.jsonc"
local gen_path = "/etc/ddns"
local gen4_path = gen_path .. "/services"
local gen6_path = gen_path .. "/services_ipv6"
local ddns_path = "/usr/share/ddns/default"
local file, err = io.open(ddns_path, "rb")
if... |
JUNKNOTSELLABLE = 0
JUNKGENERIC = 1
JUNKFINERY = 2
JUNKARMS = 4
JUNKGEO = 8
JUNKTUSKEN = 16
JUNKJEDI = 32
JUNKJAWA = 64
JUNKGUNGAN = 128
JUNKCORSEC = 256
includeFile("items/attachment_armor.lua")
includeFile("items/attachment_clothing.lua")
includeFile("items/balanced_feed_mechanism.lua")
includeFile("items/blacksun_... |
local Chara = require("api.Chara")
local Calc = require("mod.elona.api.Calc")
local Rand = require("api.Rand")
local Filters = require("mod.elona.api.Filters")
local I18N = require("api.I18N")
local function mkgenerate(categories)
return function(self, quest)
local quality = 2
if Rand.one_in(2) then
... |
ControlManager = setmetatable({}, {__index = PhysicalEntity})
function ControlManager.new(cell)
local self = setmetatable(
PhysicalEntity.new(cell)
, {__index = ControlManager})
self:createBody_(MOAIBox2DBody.STATIC)
local touchedBy = {}
local ownedBy = {}
local groupsOwnedBy = {}
local fixtureToAr... |
local PetBattleConstants =
{
Tables =
{
{
Name = "PetbattleAuraStateFlags",
Type = "Enumeration",
NumValues = 7,
MinValue = 0,
MaxValue = 32,
Fields =
{
{ Name = "None", Type = "PetbattleAuraStateFlags", EnumValue = 0 },
{ Name = "Infinite", Type = "PetbattleAuraStateFlags", EnumValue =... |
-- clear cache so this reloads changes.
-- useful for development
package.loaded["github-theme"] = nil
package.loaded["github-theme.util"] = nil
package.loaded["github-theme.colors"] = nil
package.loaded["github-theme.theme"] = nil
package.loaded["github-theme.config"] = nil
|
require("plugins")
local cmd = vim.cmd
local opt = vim.opt
local g = vim.g
opt.backspace = {"indent", "eol", "start"}
opt.cursorcolumn = true
opt.cursorline = true
opt.expandtab = true -- Use spaces instead of tabs
opt.hidden = true -- Enable background buffers
opt.hlsearch = true -- Highlight found searches
opt.igno... |
-- sample rate is 11025
local Kaes = {}
Kaes.ohh = {}
Kaes.ohh.B = 1.2172689310896
Kaes.ohh.gainV = 1
Kaes.ohh.areas = {}
Kaes.ohh.areas[1] = 1
Kaes.ohh.areas[2] = 0.060878348187811
Kaes.ohh.areas[3] = 0.44413692621599
Kaes.ohh.areas[4] = 0.2421205145311
Kaes.ohh.areas[5] = 2.6249065351972
Kaes.ohh.areas[6] = 0.6085261... |
IUPVAL = {parent = WIDGET}
function IUPVAL:CreateIUPelement (obj)
return iupCreateVal (obj[1])
end
function iupval (o)
return IUPVAL:Constructor (o)
end
iup.val = iupval
-- must set here because it is also used elsewhere with a different signature
iup_callbacks.mousemove = {"MOUSEMOVE_CB", nil}
iup_callbacks.mo... |
workspace "ArcticFox"
architecture "x64"
configurations {
"Debug",
"Release"
}
flags
{
"MultiProcessorCompile"
}
startproject "ArcticFoxEditor"
--Gets from windows propertie enviroments path to installed vulkan/spirv sdk(located in c:\VulkanSDK\1.2.170.0) from there we get include folder.
VULKAN_SDK = ... |
--unit/wound-change.lua v2.0
local utils = require 'utils'
validArgs = validArgs or utils.invert({
'help',
'unit',
'corpse',
'animate',
'remove',
'recent',
'regrow',
'resurrect',
'fitForResurrect',
'fitForAnimate',
'syndrome',
'dur',
})
local args = utils.processArgs({...}, validArgs)
... |
--[[
Code library for Crystalis lua scripts
--]]
--Global value to track whether we are on dolphin or not.
dolphinMode = false
--Returns true if hitting diagonal this frame will result in 2 pixel movement.
function fastDiagonalThisFrame()
local counter = memory.readbyte(0x0480)
if counter % 2 == 1 then return tru... |
ITEM.name = "IMI Desert Eagle"
ITEM.description = "The IMI Desert Eagle is a semi-automatic handgun notable for chambering the largest centerfire cartridge of any magazine fed, self-loading pistol. It has a unique design with a triangular barrel and large muzzle.\n\nAmmo: .50AE\nMagazine Capacity: 7"
ITEM.model = "mode... |
include("shared.lua")
function ENT:Initialize()
self.bfarm = {}
self.a = 0
print("Init?")
PrintTable( self:GetSequenceList() )
self:SetBodygroup(0,1)
self:SetBodygroup(0,0)
self:UseClientSideAnimation()
self:SetSequence(1)
self:ResetSequence(1)
self.smoothSoilAmount = 0
self.cam2d3dSin = 0
self.smoothLight... |
require "lang.Signal"
local AdRegisterNetworkResponse = require("ad.response.AdRegisterNetworkResponse")
describe("AdRegisterNetworkResponse", function()
local subject
local strAppIds
local appIds
before_each(function()
strAppIds = "1,2"
appIds = {1, 2}
end)
it("should be suc... |
return Def.Quad {
InitCommand=function(self)
self:FullScreen():diffuse(Color.Black):diffusealpha(0)
end,
StartTransitioningCommand=function(self)
self:linear(0.2):diffusealpha(1)
end
} |
--[[
#!#!#!#Cake mod created by Jordan4ibanez#!#!#
#!#!#!#Released under CC Attribution-ShareAlike 3.0 Unported #!#!#
]]--
cake_texture = {"cake_top.png","cake_bottom.png","cake_inner.png","cake_side.png","cake_side.png","cake_side.png"}
slice_1 = { -7/16, -8/16, -7/16, -5/16, 0/16, 7/16}
slice_2 = { -7/16, -8/... |
-- _ __ __ ___ _____ _ __
-- | '__/ _` \ \ / / _ \ '_ \ Antonin Fischer (raven2cz)
-- | | | (_| |\ V / __/ | | | https://fishlive.org/
-- |_| \__,_| \_/ \___|_| |_| https://github.com/raven2cz
--
-- A customized theme.lua for awesomewm-git (Master) / OneDark Eighties Theme (https://github.com/raven2cz)
-------... |
--- === cp.rx.go.First ===
---
--- _Extends:_ [Statement](cp.rx.go.Statement.md)
---
--- A [Statement](cp.rx.go.Statement.md) that will complete after the first result resolves.
local Statement = require "cp.rx.go.Statement"
local toObservable = Statement.toObservable
--- cp.rx.go.First(resolvabl... |
---@class CS.FairyEditor.PublishHandler
---@field public CODE_FILE_MARK string
---@field public genCodeHandler (fun(obj:CS.FairyEditor.PublishHandler):void)
---@field public pkg CS.FairyEditor.FPackage
---@field public project CS.FairyEditor.FProject
---@field public isSuccess boolean
---@field public publishDescOnly b... |
--[[
Lexical Tools - lua/entities/base_moneypot.lua
Copyright 2010-2016 Lex Robinson
This is the main code for Moneypot style entities
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:/... |
local api = require "luci.model.cbi.passwall.api.api"
local appname = api.appname
local sys = api.sys
local has_chnlist = api.fs.access("/usr/share/passwall/rules/chnlist")
m = Map(appname)
local global_proxy_mode = (m:get("@global[0]", "tcp_proxy_mode") or "") .. (m:get("@global[0]", "udp_proxy_mode") or "")
-- [[ ... |
-- Copy ext/rf/premake5.lua script as rf.lua to be able to include it
os.copyfile("ext/rf/premake5.lua", "ext/rf/rf.lua")
require "ext/rf"
workspace "Radar"
language "C++"
cppdialect "C++11"
architecture "x86_64"
platforms { "Windows", "Unix" }
configurations { "Debug", "Release", "ReleaseDbg" }
... |
local Object = require "object"
local Work = require "work"
local WorkQueue = require "work_queue"
local Deque = require "deque"
local test = Work:extend()
function test:setId(id)
self.id = id
end
function test:getId()
return self.id
end
function test:workBegin()
print("work begin: ", self.id)
end
func... |
local rules = require "scripts.rules"
local animations = require "character.animations"
local Character = require "character.character"
local ComeInnWaitress = Character:new()
function ComeInnWaitress:new(o, control)
o = o or Character:new(o, control)
setmetatable(o, self)
self.__index = self
return o
end
f... |
-- kind of trivial right now, but when there are agents/entities,
-- this will also handle triggering encounters, etc.
startTile = gtr("TunnelStart")
endTile = gtr("TunnelEnd")
path = FindSimplePath(startTile, endTile)
for _, tile in pairs(path) do
tile:SetAttributeInt("open", 1)
end
|
local S = mobs.intllib
mobs:register_mob("drwho_mobs:cyberman", {
type = "monster",
passive = false,
damage = 3,
attack_type = "dogfight",
attacks_monsters = true,
attack_npcs = false,
owner_loyal = true,
pathfinding = true,
hp_min = 10,
hp_max = 20,
armor = 100,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8... |
Cable.receive('fl_hook_run_cl', function(hook_name, ...)
hook.run(hook_name, ...)
end)
Cable.receive('fl_player_initial_spawn', function(ply_index)
hook.run('PlayerInitialSpawn', Entity(ply_index))
end)
Cable.receive('fl_player_disconnected', function(ply_index)
hook.run('PlayerDisconnected', Entity(ply_index))... |
local to = ".build/"..(_ACTION or "nullaction")
--------------------------------------------------------------------------------
local function setup_cfg(cfg)
configuration(cfg)
targetdir(to.."/bin/"..cfg)
objdir(to.."/obj/")
configuration({cfg, "x32"})
targetsuffix("_x86")
config... |
slot0 = class("WorldGoods", import("...BaseEntity"))
slot0.Fields = {
config = "table",
item = "table",
count = "number",
id = "number",
moneyItem = "table"
}
slot0.EventUpdateCount = "WorldGoods.EventUpdateCount"
slot0.CreateItem = function (slot0, slot1, slot2)
return (slot0 == DROP_TYPE_WORLD_ITEM and WorldIt... |
local GTools = class("GTools")
function GTools:ctor()
end
function GTools:delayOneFrame(callback)
return self:delayCall(0.01, callback, true)
end
--默认游戏时间,受timeScale影响
function GTools:delayCall(t, callback, isUseRealTime)
return CS.Game.GScheduler.DelayCall(t, callback, isUseRealTime)
end
function GTools:lo... |
return {'oreade','oregano','oremus','orenmaffia','oreren','ore','oreel','oreaden','oreer','oreerde','oreerden','oreert','oren','oremussen','ores'} |
local avatar_sizes = {184, 128, 84, 64, 32, 16}
local glint_fraction
local glint_fraction_offset = -0.03
local glint_offset = 3
local glint_offset_half = glint_offset * 0.5
local glint_percent
local glint_period = 2
--local glint_power = 1 --used for a more advanced form of the glint_fraction equation
local glint_speed... |
function ReduceArmor(keys)
local caster = keys.caster
local unit = keys.target
local ability = keys.ability
local stacks = ability:GetAbilitySpecial("armor_per_hit")
if unit:IsBoss() then
stacks = math.min(stacks, ability:GetAbilitySpecial("boss_max_armor") - unit:GetModifierStackCount("modifier_stegius_desolati... |
D3Anim={}
D3Anim._animated={}
D3Anim._animatedModel={}
function D3Anim.updateBones()
for k,a in pairs(D3Anim._animated) do
if D3Anim._animatedModel[k.bonesTop].dirty then
local bt={}
local bn=1
for n,bd in ipairs(k.animBones) do
local b=bd.bone
local name=b.name
local m=Matrix.new... |
require 'lib.class'
require 'factories.base'
require 'helpers.base'
local eal = require 'lib.eal.manager'
-- CameraFactory allows creating different kinds of cameras
local CameraFactory = class(EntityFactory, function(self)
EntityFactory.init(self, "camera")
end)
-- createAndAttach shorthand method to create camera... |
require("array")
local a = array.new(10)
local mt = getmetatable(a)
for k = 1, array.size(a) do
array.set(a, k, k * 2)
end
for k = 1, array.size(a) do
print(array.get(a, k))
end
mt.__index = mt
mt.set = array.set
mt.get = array.get
mt.size = array.size
for k = 1, a:size() do
a:set(k, k / 10)
print(a:get(k))
en... |
-- by Qige <qigezhao@gmail.com>
-- 2017.10.20 ARN iOMC v3.0-alpha-201017Q
--local DBG = print
local DBG = function(msg) end
local CCFF = require 'arn.utils.ccff'
local ARNMngr = require 'arn.device.mngr'
local TOKEN = require 'arn.service.wsync.v2.util_token'
local exec = CCFF.execute
local ssplit = CCFF... |
A2ADispatcherOptions = {
ClassName = "A2ADispatcherOptions",
__index = A2ADispatcherOptions,
EngageRadius = nil,
InterceptDelay = nil,
TacticalDisplay = true,
DetectionGroups = {},
CAPZones = {},
AssignedCAPS = {}
}
function A2ADispatcherOptions:New()
local self = BASE:Inherit( self, BASE:New() )
r... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttrBloodrage",
trigger = {
"onAttach",
"onHPRatioUpdate"
},
arg_list = {
threshold = 1,
value = 0.01667,
attr = "loadSpeed"
}
}
}
},
{
effect_list = {
{
type = "BattleBuffAddAttrBloodrage",
trigger ... |
--
-- Copyright (c) 2020 Tim Winchester
--
-- 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, publ... |
-- ZPU Emulator V3
-- Based on ZPU Emulator V2.1 by gamemanj.
-- Thank you.
-- To get a zpu instance, call zpu.new(f:memget32, f:memset32) -> t
-- You need to provide memget32, memset32 and a bit32 compatible bit library.
-- To set the bit32 compatible library: zpu.set_bit32(<your bit32)
-- memget32(t:zpu_inst, i:addr... |
local class = require "middleclass"
local array = require "array"
local margin = 50
local ww, wh = love.graphics.getWidth(), love.graphics.getHeight()
local InstanceManager = class("InstanceManager")
local instances = {}
local queue = {}
InstanceManager.static.instances = instances
function InstanceManager.static.... |
-- A basic Hero Entity you can copy and modify for your own creations.
sprite = "Idle/0"
name = "Ralsei"
hooded = false -- Set to true
hp = 70
attack = 8
defense = 2
immortal = false
dialogbubble = "automatic" -- Chapter 2's automatic dialogue bubble, very similar to ... |
local objects =
{
-- Fox
createObject(6400,2.3949372768402,7.6736159324646,1000.7486572266,0,0,0,2),
createObject(6400,-0.78046905994415,6.6728477478027,1000.7486572266,0,0,0,2),
createObject(2725,0.92446130514145,-1.4625927209854,998.86157226563,0,0,0,2),
createObject(9254,0.72266608476639,0.34503030776978,1001.... |
tutorials = {
firstTurn=[[It's the first turn!.]],
lowHealth=[[You're low on health!]],
stairs=[[You found the stairs!]],
death=[[Oh no, you died! Condolences.]]
} |
--level2.lua
local composer = require("composer")
local buff = require("buff")
local ai = require("AI").newAI
local timers = require("timer").timer
local scene = composer.newScene()
local function backToStart()
composer.gotoScene( "restart2" )
end
local function nextLevel()
composer.gotoScene( "Story3" ,"fade" )... |
--Client settings module for ULX GUI -- by Stickly Man!
--A settings module for modifing XGUI-based settings, and allows for modules to add clientside setting here.
local client = xlib.makepanel{ parent=xgui.null }
client.panel = xlib.makepanel{ x=160, y=5, w=425, h=322, parent=client }
client.catList = xlib.makelis... |
--// Syn Admin Commands; Information \\--
--[[
ToDo:
-- Setup Instructions
-- GitHub
-- Plugins
--]] |
return PlaceObj('ModDef', {
'title', "AutoShuttleConstruction",
'description', "Automatically construct Shuttles at Shuttle Hubs if there are plenty of resources available (threshold configurable) and the hub is not maxed out already.\n\nBy default, new shuttles will be built if there are more than 5 times the base c... |
local Utils = require "plugin.wattageTileEngine.utils"
local TileEngine = require "plugin.wattageTileEngine.tileEngine"
local requireParams = Utils.requireParams
local TileEngineViewControl = {}
TileEngineViewControl.new = function(params)
requireParams({"parentGroup","centerX","centerY","pixelWidth","pixelHeight... |
-- Attack methods base config script
-- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS
-- YOU KNOW WHAT YOU'RE DOING, but reading this file over
-- is a good way to get to know how DSB works.
-- These functions are not called by the engine directly,
-- but they are used by objects and so you should be care... |
--constants
addGlobalValue("gravitySpeed", "double")
setGlobalValue("gravitySpeed", 500)
addGlobalValue("sizeMultiplier", "double")
setGlobalValue("sizeMultiplier", 3)
sizeMultiplier = getGlobalValue("sizeMultiplier")
--player
addGlobalValue("player", "entity")
playerEntity = createEntity("player", 224 * sizeMultiplie... |
local tyColSphere = createColSphere( 2532.8212890625, -2029.841796875, 13.546875, 1)
exports.pool:allocateElement(tyColSphere)
tyrese = createPed (174, 219.3525390625, 1242.6259765625, 1082.140625)
exports.pool:allocateElement(tyrese)
setPedRotation(tyrese, 220)
setPedFrozen(tyrese, true)
setElementInterior( ... |
local Playback = require("Playback")
local Event = require("Event")
local KShootParser = require("KShootParser")
local parser, chart, playback
local lastevent
local source
function love.load()
print("")
parser, chart = KShootParser()
--love.filesystem.newFile("songs/tests/test1/test1.ksh")
local file = love.... |
local io = io
local os = os
local table = table
local pairs = pairs
local ipairs = ipairs
local math = math
local type = type
local tonumber = tonumber
local tostring = tostring
local setmetatable = setmetatable
local cosocket = cosocket
local ngx = ngx
local tcp
local base64_encode = base64_encode
local ... |
local awful = require("awful")
do
local cmds = {
"/usr/lib/mate-polkit/polkit-mate-authentication-agent-1",
"xautolock -time 15 -detectsleep -locker 'gpg-connect-agent reloadagent /bye;slimlock'",
"clipmenud",
"xfce4-power-manager",
"light -S 30",
"udiskie",
}
... |
return {[1]={stats={[1]="base_actor_scale_+%"}},[2]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Sacrifices %1%%% of Skeleton's Life to deal that much Chaos Damage"}}},name="skeletal_chains_aoe_health_percent",stats={[1]="skeletal_chains_aoe_%_health_dealt_as_chaos_damage"}},[3]={lang={English={[1]={limit={... |
cc = cc or {}
---LayerGradient object
---@class LayerGradient : LayerColor
local LayerGradient = {}
cc.LayerGradient = LayerGradient
--------------------------------
--- Returns the start color of the gradient.<br>
---return The start color.
---@return color3b_table
function LayerGradient:getStartColor() end
--------... |
--[[
A simplistic window manager for glasses.
TODO: support moving windows via mouse drag.
]]
local Config = require('opus.config')
local Glasses = require('neural.glasses')
local UI = require('opus.ui')
local Util = require('opus.util')
local kernel = _G.kernel
local multishell = _ENV.multishell
local... |
#!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all co... |
x = {1, 2, 3}
print(x == {1, 2, 3})
function inspect(count)
print("inspect number: " .. count)
print(x[0])
print(x[1])
print(x[2])
print(x[3])
print(x[4])
print(x[5])
print(x[100])
print(x['test'])
print(x['test2'])
print(#x)
print("---")
end
inspect(1)
x[1] = 'hello'
i... |
-------------------------------
-- "Zenburn" awesome theme --
-- By Adrian C. (anrxc) --
-- License: GNU GPL v2 --
-------------------------------
-- {{{ Main
theme = {}
theme.confdir = awful.util.getdir("config")
theme.wallpaper_cmd = { "/usr/bin/nitrogen --restore" }
--theme.wallpaper_cmd = { "aw... |
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
ARCPhone.Settings = {}
ARCPhone.EmergencyNumbers = {}
ARCPhone.PhoneSys = ARCPho... |
object_tangible_quest_quest_start_profession_smuggler_20 = object_tangible_quest_quest_start_shared_profession_smuggler_20:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_quest_start_profession_smuggler_20, "object/tangible/quest/quest_start/profession_smuggler_20.iff")
|
-- Invector, License MIT, Author Jordach
local track_def = {
grid_pos_offset = vector.new(4,8,4),
track_data = {},
music = "the_rush_of_eternity",
crescendo_music = "the_ravers_of_eternity",
track_icon_model = "default_kart.b3d",
track_icon_materials = "blue_kart_neo.png,blue_skin.png,transparent.png,trans... |
workspace "Odd"
startproject "Sandbox"
architecture "x64"
configurations
{
"Debug",
"Release",
"Distribution"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-x64"
include "Odd/vendor/GLFW"
include "Odd/vendor/Glad"
include "Odd/vendor/ImGui"
project "Odd"
location "Odd"
... |
function myIter()
local n=10
return function()
if n > 0 then
local nn=n;
n=n-1;
return nn;
else
return nil;
end
end
end
for i in myIter() do
print(i)
end
io.write('ces','fdf','eee','\r\n') |
-- This file is auto-generated by shipwright.nvim
local common_fg = "#A3A3A3"
local inactive_bg = "#242424"
local inactive_fg = "#CFCFCF"
return {
normal = {
a = { bg = "#525252", fg = common_fg, gui = "bold" },
b = { bg = "#3E3E3E", fg = common_fg },
c = { bg = "#2A2A2A", fg = "#BBBBBB" },
},
insert = {
a... |
local module = {}
local alerts = {}
function module.alert()
end
function module.init(Modules)
if game.ReplicatedStorage:FindFirstChild("alertsOffset") then
script.Parent.Position = UDim2.new(0.5, 0, 0, script.Parent.Position.Y.Offset + game.ReplicatedStorage.alertsOffset.Value)
end
local tween = Modules.twe... |
local function a(b,c,d)
if type(b)~="table"then
error("Error at 'Check'. Bad argument description for argument #"..tostring(c)..". Expected table, got "..type(b),3)
end;
if#b==0 then
error("Error at 'Check'. Empty argument description for argument #"..tostring(c),3)
end;
if type(b[2]) ~= "string" then
err... |
ruins = {}
dofile(minetest.get_modpath('ruins')..'/structures.lua')
dofile(minetest.get_modpath('ruins')..'/nodes.lua') |
local WIDGET, VERSION = 'TitleButton', 2
local GUI = LibStub('NetEaseGUI-2.0')
local TitleButton = GUI:NewClass(WIDGET, 'Button', VERSION)
if not TitleButton then
return
end
function TitleButton:Constructor()
self:SetSize(16, 16)
self:SetHighlightTexture([[INTERFACE\Challenges\challenges-metal... |
local awful = require('awful')
local screen = screen
local screens = {}
local function get_first_output(screen)
local next, t = pairs(screen.outputs)
return screen.outputs[next(t)]
end
function screens.primary_index()
return screen.primary.index
end
function screens.primary()
return screen.primary
end
function... |
--[[
A paper lamp.
]]
local Cuboid = assert(foundation.com.Cuboid)
local ng = Cuboid.new_fast_node_box
local shoji_lamp_node_box = {
type = "fixed",
fixed = {
ng( 2, 3, 2,12,12,12), -- main box
-- legs
ng( 2, 0, 2, 2, 3, 2),
ng( 2, 0,12, 2, 3, 2),
ng(12, 0,12, 2, 3, 2),
ng(12, 0, 2, 2, ... |
serverAddress = "http://172.16.4.195:3000"
state = http.get(serverAddress.."/lightState")
print(state)
http.get(serverAddress.."/modes/set?mode=colorBubbles") |
vim.g.vscode_style = "dark"
vim.g.vscode_italic_comment = 1
vim.cmd[[colorscheme vscode]]
require('lualine').setup {
options = {
theme = 'vscode',
}
}
-- Buffer line setup
require'bufferline'.setup{
options = {
indicator_icon = ' ',
buffer_close_icon = '',
modified_icon = '●',
close... |
function love.conf(t)
t.window.title = "Tic Tac Love"
t.window.width = 4*32*5
t.window.height = 4*32*5
end
|
--[[
sharesFanatic.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
This is a dialogue that revolves around shares.
]]--
return {
type = "decision",
dialogues = {
--- 1) Welcome dialogue - I LOVE SHARING - HERE'S THE NUMBER -------
{
... |
// Wildfire Black Mesa Roleplay
// File description: BMRP client-side repair box script
// Copyright (c) 2022 KiwifruitDev
// Licensed under the MIT License.
//*********************************************************************************************
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,... |
for ind, sofa_type in pairs({"small", "middle", "long", "corner_1", "corner_2"}) do
for color, rgb_code in pairs(sofas_rgb_colors) do
for _, pillow_color in ipairs({"red", "green" , "blue", "yellow", "violet"}) do
minetest.register_node("luxury_decor:simple_".. color .. "_" .. sofa_type .. "_sof... |
-- load all plugins
require "pluginList"
require "misc-utils"
require "top-bufferline"
require "statusline"
--require("colorizer").setup()
require("neoscroll").setup() -- smooth scroll
-- lsp stuff
require "nvim-lspconfig"
require "compe-completion"
local cmd = vim.cmd
local g = vim.g
g.mapleader = " "
g.auto_save... |
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
-- This file is automaticly generated. Don't edit manualy!
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
---@class C_MythicPlus
C_MythicPlus = {}
---[Wowpedia documentation](https://wow.gamepedia.com/API_C_MythicPlus.GetCurrentAffixes)
---@return... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.