content stringlengths 5 1.05M |
|---|
-- sparklegreen
return {
["sparklegreen"] = {
sparklespawn = {
air = true,
class = [[CExpGenSpawner]],
count = 30,
ground = true,
water = false,
properties = {
delay = [[0 i0.13 ... |
--[[
Copyright 2012 The lev Authors. All Rights Reserved.
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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... |
NarrativeModule = NarrativeModule or class(ItemModuleBase)
NarrativeModule.type_name = "narrative"
NarrativeModule._loose = true
function NarrativeModule:init(...)
self.clean_table = table.add(clone(self.clean_table), {
{param = "chain", action = {"number_indexes", "remove_metas"}},
{
... |
local options = {
fileencoding = "utf-8",
expandtab = false,
shiftwidth = 4,
tabstop = 4,
cinoptions = {
"(1s",
"m1",
},
hlsearch = true,
ignorecase = true,
smartcase = true,
mouse = "a",
splitbelow = true,
splitright = true,
cursorline = true,
sidescrolloff = 8,
wrap = false,
termguicolors = tru... |
local PROGRAM = { }
PROGRAM.Name = "Department Memos"
PROGRAM.Icon = "icon16/note.png"
PROGRAM.IconPosition = { 40, 200 }
function PROGRAM:CreateTitle( )
self.TitleLabel = vgui.Create( "DLabel", self.ProgramFrame )
self.TitleLabel:SetFont( "CloseCaption_Normal" )
self.TitleLabel:SetText( "Department Memos" )
self.... |
local optionshdr = arg[1]
local type = arg[2]
local var = arg[3]
local options = {}
for line in io.lines(optionshdr) do
local cfg, val = line:match('^#define CONFIG_(%g+) (%g+)$')
if cfg then
options[cfg] = val == '1'
end
end
print('static const '..type..' *const '..var..'[] = {')
for line in io.lines() do
loca... |
require("notomo.mapping.util").set_prefix({ "n", "x" }, "browser", "[exec]b")
vim.keymap.set("n", "[browser]s", [[<Cmd>execute 'OpenBrowserSearch' expand('<cword>')<CR>]])
vim.keymap.set("n", "[browser]o", [[<Cmd>execute 'OpenBrowser' expand('<cWORD>')<CR>]])
vim.keymap.set("n", "[browser]i", [[:<C-u>OpenBrowserSearch... |
-- user config for rand-sig.lua:
minargs = 0
maxargs = 64
ncases = 400
types = "csijlpfd"
|
--[==[
Copyright ©2022 Samuel Thomas Pain
The contents of this addon, excluding third-party resources, are
copyrighted to their authors with all rights reserved.
This addon is free to use and the authors hereby grants you the following rights:
1. You may make modifications to this addon for private use only, you
... |
--[[
Copyright (C) 2006-2007 Nymbia
Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com >
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, ... |
local M = {}
M.on_attach = function(client, buffer, arg)
arg = arg or {}
local function buf_set_keymap(lhs, rhs)
local opts = { noremap = true, silent = true }
vim.api.nvim_buf_set_keymap(buffer, "n", lhs, rhs, opts)
end
local base = function()
buf_set_keymap("<leader>ca", "<c... |
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
--[ CONNECTION ]----------------------------------------------------------------------------------------------------------------
prof = Tunnel.getInterface("prof_pizzaboy")
brzNPC = Proxy.getInterface("br... |
--!A cross-platform build utility based on Lua
--
-- 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://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... |
--
-- composite tests transitions
--
package.path = package.path .. ';../?.lua'
require("rfsm")
require("rfsm2tree")
require("rfsm_testing")
require("rfsmpp")
require("utils")
local function puts(...)
return function () print(unpack(arg)) end
end
local function safe_doo()
for i = 1,3 do
print("waiting i... |
-- COPIED FROM: https://github.com/af/dotfiles/blob/63370411e709e006b26f07781376da1e6d7ae2c8/hammerspoon/utils.lua#L51
-- Close all open notifications
local function dismissAllNotifications()
local success, result = hs.applescript([[
tell application "System Events"
tell process "Notification Center"
... |
kDECAY_PAUSE = 0b1
kDECAY_ANGCH = 0b10
kDECAY_SHOOT = 0b100
function decay_reset()
decaypi = make_moveable(vec(porigin.x, porigin.y))
decaypi.nsteps = 0
particles = make_particle_list()
particles:set_cull(150)
circ_choice = -1
rngr:init()
DECAY_STATE = kDECAY_ANGCH
kick = 20
end
function decay_init(... |
-- Some portions Copyright © 2017, Ivaar.
_addon.name = 'autowsmb'
_addon.author = 'Dabidobido'
_addon.version = '0.0.8'
_addon.commands = {'autowsmb', 'awsmb'}
require('logger')
require('actions')
config = require('config')
skills = require('skills')
res = require('resources')
local default_setting = {
["sc... |
local vector = require('lib.HardonCollider.vector-light')
local SIZE = 17
local sin, cos, pow = math.sin, math.cos, math.pow
local tau = math.pi * 2
local pi = math.pi
local arms = 7
local trisPerArm = 10
local num = arms * trisPerArm
local mesh = g.newMesh({
{0, -SIZE / 2},
{SIZE / 2, SIZE / 2},
{-SIZE / 2, S... |
local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")
local http = game:GetService("HttpService")
local playerCollisionGroupName = "Players"
PhysicsService:CreateCollisionGroup(playerCollisionGroupName)
Phy... |
class 'Abilities'
function Abilities:__init()
SQL:Execute( "CREATE TABLE IF NOT EXISTS players_abilities (steamid VARCHAR UNIQUE, wings INTEGER, boost INTEGER, moneybonus INTEGER, morec4 INTEGER, supernuclearbomb INTEGER, longergrapple INTEGER, jesusmode INTEGER)" )
self.boostValue_1 = 1
self.boostV... |
---
-- Binary sample format conversion structures and tables.
--
-- @module radio.utilities.format_utils
local ffi = require('ffi')
ffi.cdef[[
typedef struct {
union { uint8_t bytes[1]; uint8_t value; };
} format_u8_t;
typedef struct {
union { uint8_t bytes[1]; int8_t value; };
} form... |
local lure = require(select('1', ...):match(".-lure%.")..'init')
--
-- Define class
--
local class = lure.lib.upperclass:define("Text", lure.dom.CDATA)
--
-- Returns true if the text node contains content whitespace, otherwise it returns false
--
class.public : isElementContentWhitespace {
default=false;
... |
return function()
local cmp = require('cmp')
local compare = require('cmp.config.compare')
local types = require('cmp.types')
local get_bufnrs = function()
local buf = vim.api.nvim_get_current_buf()
local byte_size = vim.api.nvim_buf_get_offset(buf, vim.api.nvim_buf_line_count(buf))
if byte_size > ... |
object_tangible_loot_generic_usable_stim_a_generic_lt_4 = object_tangible_loot_generic_usable_shared_stim_a_generic_lt_4:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_stim_a_generic_lt_4, "object/tangible/loot/generic/usable/stim_a_generic_lt_4.iff")
|
return {
MissionName = "Arena: Colosseum",
MapName = "Colosseum",
MissionImage = "rbxassetid://4888451673",
Type = "PVP",
Available = true,
Replayable = true,
MaxPlayers = 6,
GameModes = {
"1v1", "2v2", "3v3"
}
} |
MissionDoorTweakData = MissionDoorTweakData or class()
function MissionDoorTweakData:init()
self.default = {
devices = {}
}
self.default.devices.drill = {
{
align = "a_drill_1",
timer = 0,
can_jam = false,
unit = Idstring("units/payday2/equipment/item_door_drill_small/item_door_drill_small")
},
... |
local snips, autosnips = {}, {}
local tex = require 'utils.latex'
local pipe = function(fns)
return function(...)
for _, fn in ipairs(fns) do
if not fn(...) then
return false
end
end
return true
end
end
local appended_space_after_insert = function()
vim.api.nvim_create_autocmd('InsertCharPre', {
... |
local lspmeta = {}
local npcall = vim.F.npcall
-- get user lsp config from neovim/nvim-lspconfig
-- if not found lspconfig,try to load it
function lspmeta.get_user_config_server()
local lspconfig = npcall(require,'lspconfig')
if not lspconfig then
-- check the packer exist
if next(packer_plugins) ~= nil th... |
--@name vr_example
--@author Neatro
--@client
ply = owner()
hook.add( "VRInput", "test", function( action, bool )
print( action, bool )
--returns the controller button you pressed!
end )
M = Matrix()
hook.add( "postdrawopaquerenderables", "runtime", function()
render.enableDepth( true )
--dra... |
-- Shims are a way to backport features from newer EE versions to older versions to allow for some
-- grace when you need to update EE to play a mission.
-- They will not stay forever, so try to upgrade soon.
if not isFunction(_G.getLongRangeRadarRange) then
_G.getLongRangeRadarRange = function()
local shi... |
_, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk'
,nil,nil;(function() _msec=(function(l,b,o)local R=b[((-57+0x120)-0x98)];local S=o[l[(0x185e6/143)]][l[(720+-#{'nil',52,",";(function()return{','}end)();(function()return#{('BoKPOp'):find("\75")}>0 and 1 or 0 end);{}})]];local I=(-#"azulx eats squids RUNNNN"+... |
--Child Folders
includeFile("custom_content/tangible/food/bar/serverobjects.lua")
includeFile("custom_content/tangible/food/bottle/serverobjects.lua")
includeFile("custom_content/tangible/food/crafted/serverobjects.lua")
includeFile("custom_content/tangible/food/foraged/serverobjects.lua")
includeFile("custom_content/t... |
--[[
Original textures from DocFarming mod
https://forum.minetest.net/viewtopic.php?id=3948
]]
local S = farming.intllib
-- potato
minetest.register_craftitem("farming:potato", {
description = S("Potato"),
inventory_image = "farming_potato.png",
groups = {food_potato = 1, flammable = 2},
on_place = function(it... |
object_tangible_quest_talus_brood_egg_single_05 = object_tangible_quest_shared_talus_brood_egg_single_05:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_talus_brood_egg_single_05, "object/tangible/quest/talus_brood_egg_single_05.iff")
|
local export = {}
local m_table = require('table')
local m_utils = require('grc-utilities')
local m_data = require('grc-utilities/data')
local tag = m_utils.tag
local link = m_utils.link
local tokenize = m_utils.tokenize
local diacritic = m_data.diacritic
local U = mw.ustring.char
local toNFD = mw.ustring.toNFD
local... |
--- Menu/phone tree navigation.
--
-- This module provides actions that help with navigating menus and phone trees.
--
-- The actions in this module are most often used directly when responding to
-- user input, see @{03-Sequences.md.Capturing_user_key_input} for more
-- information.
--
-- @module navigation
-- @author... |
local awful = require('awful')
local wibox = require('wibox')
local gears = require('gears')
local dpi = require('beautiful').xresources.apply_dpi
local clickable_container = require('widget.blue-light.clickable-container')
local icons = require('theme.icons')
local blue_light_state = nil
local action_name = wibox.wid... |
return {
name = 'Beach Star',
desc = 'Contains the essence of a beach',
sprite = 'beach_star',
usage = 'biome',
biome = {
title = 'Beach',
radius = 256,
spawn_timer_min = 30,
spawn_timer_max = 60,
spawn_max_enemies = 5,
spawns = {
{weight =... |
bounds = {
{x = 0, y = 0},
{x = 0, y = 1},
{x = 1, y = 1},
{x = 1, y = 0}
}
hatch = cadzinho.new_hatch(bounds, "solid")
hatch:write() |
-- 유틸
local Util = {}
--LuaGuiElement label개체 추가하기
Util.add_label_w_style = function(parent, caption, style, styles)
local l = parent.add{type = 'label', caption = caption, style = style}
for k, v in pairs(styles) do
l.style[k] = v
end
return l
end
--얕은 테이블 복사
Util.copytbl = function(ori)
local ret = {... |
--[[------------------------------------------------------
# lub test
--]]------------------------------------------------------
package.path = './?/init.lua;'..package.path
local lub = require 'lub'
local lut = require 'lut'
local should = lut.Test 'lub'
function should.readAll()
local p = lub.path '|fixt... |
wifi.setmode(wifi.STATION)
wifi.sta.config("your-ssid", "your-wifi-key")
|
--This defines the central frame of the evaluation screen.
--It is drawn as a thinner quad that is entirely black and covers the whole width
--then a thicker quad only in the center which fades from quadColor to black,
--through midColor. As the thicker quad needs its corners cut out, an ActorMultiVertex
--draws four t... |
-- Quarry Mechanics [quarry]
-- by David_G [kestral246@gmail.com]
-- 2020-09-12
-- Other overrides.
dofile(minetest.get_modpath("quarry").."/falling_nodes.lua")
-- Utility functions.
-- Override stone_with_* nodes to leave cobble in ground.
local override_with = function(node_name)
minetest.override_item(node_name,... |
--- Turbo.lua Chat app using WebSockets.
--
-- Copyright 2013 John Abrahamsen
--
-- 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://www.apache.org/licenses/LICENSE-2.0
--
-- Unless... |
--[[
File: Scene.lua
Author: Sam Triest
Handles the creation and usage of scenes.
]]
Scene = {}
--[[
Creates a Scene object that will be used to inherit functions from.
]]
function Scene:New()
scene = {}
setmetatable(scene, self)
self.__index = self
return scene
end
--[[
Used to... |
local exports = {}
local X_OFFSET = 0x10006A
local COLOUR_SHIP_FILL = 0xAAFF00FF
local COLOUR_SHIP_LINE = 0xAAFF0000
local COLOUR_ENEMY_FILL = 0xAA0000FF
local COLOUR_ENEMY_LINE = 0xAAFFFF00
local COLOUR_BULLET_FILL = 0xAAFF0000
local COLOUR_BULLET_LINE = 0xAA00FFFF
local COLOUR_OWNSHOT_FILL = 0xAA00FFFF
local COL... |
-----------------------------------
-- Ability: Innin
-- Reduces enmity and impairs evasion. Grants a bonus to accuracy, critical hit rate, and ninjutsu damage when striking target from behind.
-- Obtained: Ninja Level 40
-- Recast Time: 3:00
-- Duration: 5:00
-----------------------------------
require("scripts/global... |
--[[
Pudge AI
]]
require("ai/ai_core_new")
behaviorSystem = {} -- create the global so we can assign to it
function Spawn(entityKeyValues)
thisEntity:SetContextThink("AIThink", AIThink, 1)
behaviorSystem = AICore:CreateBehaviorSystem({BehaviorNone, BehaviorBlast, BehaviorStorm})
end
function AIThink() -- For... |
local myip = wifi.sta.getip()
local mac = wifi.sta.getmac()
print(myip)
print(mac)
print(node.heap())
majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info();
print("NodeMCU "..majorVer.."."..minorVer.."."..devVer)
print("chipid:"..chipid)
print("flashsize:"..flashsize)
--print(... |
-- The chat and UI colors
Election.Config.Color = Color(170, 120, 22)
Election.Config.ElectionStart = 60*5 -- 5 minutes
Election.Config.VoteTime = 60 -- 10 minutes
Election.Config.ElectionCooldown = 60*10 -- 10 minutes
|
--[[
@desc:日志相关操作
author:{thinkingingame}
time:2021-01-20 14:24:44
]]
-- 日志等级
LOG_INFO = 0
LOG_DEBUG = 1
LOG_WARNING = 2
LOG_ERROR = 3
-- 所有的日志都要使用log方法,禁止print
_print = print
print = nil
_release_print = release_print
release_print = nil
local function log(tag, fmt, ...)
_print(tag ... |
-- If you're not sure your plugin is executing, uncomment the line below and restart Kong
-- then it will throw an error which indicates the plugin is being loaded at least.
--assert(ngx.get_phase() == "timer", "The world is coming to an end!")
-------------------------------------------------------------------------... |
#!/usr/bin/lua
local M_M = {
__call = function(class, ...)
return class.new(...)
end
}
local O_M = {}
local O_I = {}
local M = {}
M.new = function(item)
local self = setmetatable({}, O_M)
self.item = item
self.left = nil
self.right = nil
return self
end
O_I.insert = function(self, item)
if item < sel... |
me = game.Players.xSoulStealerx
if script.Parent.className ~= "HopperBin" then
h = Instance.new("HopperBin")
h.Parent = me.Backpack
h.Name = "Color"
script.Parent = h
end
sp = script.Parent
hold = false
colors = {}
for i = 1, 1032 do
if BrickColor.new(i) ~= BrickColor.new("Medium stone grey") then
table.insert(co... |
-- rEmote: core
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- Functions
-----------------------------
local function OnEmote(self,event,arg1,arg2)
--format the string (in case %s is used inside arg1 it will be replaced wit... |
local mqttModule = {}
local configModule = require "configModule"
mqttModule.connectionStatus = 0 --No connection:0, Connected:1
mqttModule.isConnectFunctionCalled = false
local callbackMessageRecieved = nil
function messageRecievedMQTT(client, topic, data)
print("Message Recieved:"..data)
end
function mqttModule.... |
local auth_needed = not (
request.get_module() == 'index'
and (
request.get_view() == 'login'
or request.get_action() == 'login'
)
)
-- if not app.session.user_id then
-- trace.debug("DEBUG: AUTHENTICATION BYPASS ENABLED")
-- app.session.user_id = 1
-- end
if app.session.user == nil and auth_needed ... |
-- See LICENSE for terms
local mod_LimitStorage
-- fired when settings are changed/init
local function ModOptions()
mod_LimitStorage = CurrentModOptions:GetProperty("LimitStorage")
end
-- load default/saved settings
OnMsg.ModsReloaded = ModOptions
-- fired when option is changed
function OnMsg.ApplyModOptions(id)
... |
local _M = {}
_M.lsp = function ()
return {}
end
_M.dap = function ()
return {
{
name = "Launch",
type = "node2",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
... |
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(9, '[XB] Warlock - Basic', InCombat, OutCombat) |
local Interactable = require("scenes.world.Interactable")
local Dialog = require("scenes.world.Dialog")
local Text = class("Text", Interactable)
function Text:initialize(x, y, lines)
Interactable.initialize(self, x, y, 1)
self.lines = lines
end
function Text:interact()
self.scene:add(Dialog(self.lines))
end
ret... |
local composer = require( "composer" )
local scene = composer.newScene()
-- create()
function scene:create( event )
local sceneGroup = self.view
-- Code here runs when the scene is first created but has not yet appeared on screen
print( "scene:create" )
end
-- show()
function scene:show( event )
... |
local bit = require "bit" -- LuaJIT bit operations library
local arg_check = true
local num1, num2 = 0, 0
if arg[1] == nil or arg[2] == nil then
arg_check = false
else
num1 = tonumber(arg[1])
num2 = tonumber(arg[2])
if num1 < 0 or num2 < 0 then arg_check = false end
if num1%1 ~= 0 or num2%1 ~= 0 then arg_c... |
answ = {"=", "<", ">"}
lnumber1 = math.random(79) + 20;
lnumber2 = math.random(lnumber1 - 15 ) + 10;
leftdiff = lnumber1 - lnumber2
rnumber1 = math.random(79) + 20;
rnumber2 = math.random(rnumber1 - 15) + 10;
rightdiff = rnumber1 - rnumber2
sign = "="
if (leftdiff > rightdiff) then sign = ">"
end
if (leftdiff <... |
local mod = DBM:NewMod("LadyFleshsear", "DBM-GarrisonInvasions")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 13864 $"):sub(12, -3))
mod:SetCreatureID(91012)
mod:SetZone()
mod:RegisterCombat("combat")
mod:SetMinCombatTime(15)
mod:RegisterEventsInCombat(
"SPELL_CAST_START 180779",
"... |
-- testing Map functionality
local test = require 'pl.test'
local Map = require 'pl.Map'
local tablex = require 'pl.tablex'
local asserteq = test.asserteq
local cmp = tablex.compare_no_order
local m = Map{alpha=1,beta=2,gamma=3}
assert (cmp(m:values(),{1,2,3}))
assert (cmp(m:keys(),{'alpha','beta','gamma'}))
ass... |
local Timing, IsCircle, Position, Physic = Component.load({"Timing", "IsCircle", "Position", "Physic"})
local MainKeySystem = class("MainKeySystem", System)
function MainKeySystem:fireEvent(event)
if event.key == "s" then
for i = 1, 20, 1 do
entity = Entity()
local x, y = love.math... |
-----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Elnonde
-- !pos 86 2 -0 80
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(CRYSTAL_WAR,tpz.quest.id.crystalWar.GIFTS_OF... |
local skynet = require 'skynet'
local pdu = require 'modbus.pdu'
local code = require "modbus.code"
local class = require 'middleclass'
local client = class("Modbus_Skynet_Client")
local function packet_check(apdu, req)
local req = req
return function(msg)
return apdu.check(msg, req)
end
end
local function comp... |
aqua_potion = {
use = function(player)
if player:checkIfCast(sanctuaries) then
player:sendMinitext("Another spell of that type is already in effect.")
return
end
player:setDuration("sanctuary", 185000)
player:sendAction(8, 25)
player:calcStat()
player:removeItem("aqua_potion", 1, 6)
end
}
|
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
vim.g.maplocalleader = " "
vim.g.mapleader = " "
keymap("", "<Space>", "<Nop>", opts)
keymap("n", "<C-h>", "<C-w>h", opts)
keymap("n", "<C-j>", "<C-w>j", opts)
keymap("n", "<C-k>", "<C-w>k", opts)
keymap("n", "<C-l>", "<C-w>l", opts... |
local PAIR_ID = KEYS[1]
local PID = KEYS[2]
local MY_SEQUENCE = KEYS[3]
local PAIR_INGAME_TTL = tonumber(KEYS[4])
local PAUSED_PAIR_TTS = tonumber(KEYS[5])
local ABSOLUTE_GAMEPLAY_TTL = tonumber(KEYS[5])
local NOW = tonumber(KEYS[6])
local pair_key = 'pair:' .. PAIR_ID
local the_pair = redis.call('hmget', pair_key, 's... |
--
-- Created by IntelliJ IDEA.
-- User: seletz
-- Date: 20.02.18
-- Time: 21:58
-- To change this template use File | Settings | File Templates.
--
local GameObject = Object:extend()
function GameObject:new(area, x, y, opts)
local opts = opts or {}
if opts then
for k, v in pairs(opts) do
... |
-- Definition of the Item class.
-- Aurelien Coet, 2017.
-- An item is an object that can be interacted with in the game (it can always
-- be 'observed' or 'looked at' when the player left clicks on it, and sometimes
-- picked up if the player right clicks on it).
local Object = require "lib/classic"
local Vector2D =... |
-- Routine for NPC "Douglas"
loadRoutine = function(R, W)
R:setTilePosition(26.5,41)
R:setTalkingActive(not W:isConditionFulfilled("npc_douglas","talked"))
R:setLooped(false)
end |
cprogram {
name = "mkkeytab",
srcs = { "./mkkeytab.c" }
}
|
function start(song) -- do nothing
setActorAccelerationY(-250, 'girlfriend')
end
function update(elapsed)
if curStep > 736 then
local currentBeat = (songPos / 1000)*(bpm/60)
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 128 * math.sin((currentBeat + i*0.5) * math.pi), i)
setActorY(_G['def... |
-- Load all common packages.
require 'nn'
require 'cunn'
require 'cudnn'
require 'fbnn'
require 'fbcunn'
local nnutils = require 'fbcode.deeplearning.experimental.yuandong.utils.nnutils'
local pl = require 'pl.import_into'()
local opt = pl.lapp[[
-i,--input (default "") Input model
-o,--output (... |
local addonName, addonTable = ...
local Addon = _G[addonName]
local S = LibStub:GetLibrary("ShockahUtils")
local Class = {
prototype = {},
}
Addon.AlwaysActiveTracker = Class
local Instance = Class.prototype
local Private = {}
Class["__Private"] = Private
function Class:New(actionType, tracker)
local obj = Addon.... |
ENT.Type = "anim"
ENT.PrintName = "Vendor"
ENT.Category = "Helix"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.isVendor = true
ENT.bNoPersist = true
function ENT:Initialize()
if (SERVER) then
self:SetModel("models/mossman.mdl")
self:SetUseType(SIMPLE_USE)
self:SetMoveType(MOVETYPE_NONE)
self:DrawShadow(true... |
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local titlebar = require("util.titlebar")
beautiful.titlebar_bg_focus = M.x.background
beautiful.titlebar_bg = M.x.background
beautiful.titlebar_bg_normal = M.x.background
client.connect_signal("request::titlebars", f... |
hbarmor = {}
-- HUD statbar values
hbarmor.armor = {}
-- Stores if player's HUD bar has been initialized so far.
hbarmor.player_active = {}
-- HUD item ids
local armor_hud = {}
hbarmor.tick = 0.1
-- If true, the armor bar is hidden when the player does not wear any armor
hbarmor.autohide = true
--load custom sett... |
-- Load extensions that are only useful when running on
-- a UNIX-y platform
require('features/treesitter').setup()
|
return {
level = 65,
need_exp = 150000,
clothes_attrs = {
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
},
} |
TYPE_BLUE = 1
TYPE_ORANGE = 2
PORTAL_HEIGHT = 110
PORTAL_WIDTH = 68
local limitPickups = CreateConVar("portal_limitcarry", 0, {FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE,FCVAR_REPLICATED}, "Whether to limit the Portalgun to pickup certain props from the Portal game.")
local cleanportals = CreateClientConVar("portal_cle... |
local parent, ns = ...
local oUF = ns.oUF
local Update = function(self, event, unit)
if(event == 'VehicleSwitch') then return end
-- Calculate units to work with
local realUnit, modUnit = SecureButton_GetUnit(self), SecureButton_GetModifiedUnit(self)
-- _GetUnit() doesn't rewrite playerpet -> pet like _GetModifi... |
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Grand Vizier Ertan", 657, 114)
if not mod then return end
mod:RegisterEnableMob(43878)
mod.engageId = 1043
mod.respawnTime = 30
--------------------------------------------------... |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
local alpha = self:DistanceToAlpha(0.5)
local Money = FormatMoney(self:GetDTAmount())
if alpha > 0 then
local ang = Angle(0, RealTime() * 80, 0)
local pos = self:GetPos() + ang:Up()
ang:RotateAroundAxis( ang:Forward()... |
-- sopcast hook for mpv
--
-- How to use this script:
-- 1. Move this script to ~/.config/mpv/scripts
-- 2. Make sure sp-sc-auth/sp-sc is in your $PATH or in ~/.config/mpv
-- 3. Install luasocket
local utils = require 'mp.utils'
local msg = require 'mp.msg'
local socket = require 'socket'
local vars = {
sopcast =... |
-- Translated version of ais_defend10
-- From http://codu.org/eso/bfjoust/in_egobot.hg/index.cgi/raw-file/1a319ed095d1/ais523_defend10.bfjoust
advance(2)
plus()
retreat()
plus()
while test() do while test() do end end
retreat()
wait(127)
for i = 10, 30 do
for _ = 1, 3 do
plus(256)
advance(i-1)
for _ = 1... |
local T, C, L = Tukui:unpack()
local UnitFrames = T.UnitFrames
local Class = select(2, UnitClass("player"))
----------------------------------------------------------------
-- Mage Class Resources
----------------------------------------------------------------
if (Class ~= "MAGE") then return end
local basePlayer = ... |
local present, statusline = pcall(require, "mini.statusline")
if not present then
return
end
local lsp_progress = function()
local lsp = vim.lsp.util.get_progress_messages()[1]
if lsp then
local msg = lsp.message or ""
local percentage = lsp.percentage or 0
local title = lsp.title or ""
local sp... |
function luagetArgs(msg)
if not msg then return {} end
local args = {}
local index=1
while index<=#msg do
local s2,e2,word2 = msg:find("\"([^\"]-)\"",index)
local s,e,word = msg:find("([^%s]+)",index)
if s2 and s2<=s then
word=word2
e=e2
end
table.insert(args,word)
index = e+1 or #msg+1
end
retu... |
--[[
3D2D VGUI Wrapper
Copyright (c) 2015-2017 Alexander Overvoorde, Matt Stevens
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
... |
PROJECT = "pm"
VERSION = "1.0.0"
-- 一定要添加sys.lua !!!!
local sys = require "sys"
-- gpio唤醒
sys.taskInit(
function()
while 1 do
log.info("lightsleep", "I want to sleep, press gpio9 to wake me up")
esp32.enterLightSleep(esp32.GPIO, 9, 0)
log.info("wakeup", "gpio9")
... |
local args = {
app = self,
dim = 3,
integrator = 'forward Euler',
cfl = assert(tonumber(cmdline.cfl)),
fluxLimiter = 'superbee',
initCond = 'self-gravitation - Earth', -- validating units along with self-gravitation.
}
if cmdline.coord == 'cartesian' then
args = table(args, {
coord = 'cartesian',
mins ... |
local _context = getContext()
local _painter = _context:getPainter()
local _style = _painter:getStyle()
exports('button', function(text)
_painter:setText(text)
_painter:setTextOpts()
local w = _context:getWidgetWidth() or _painter:calculateTextWidth() + _style.button.spacing * 2
local h = _style.widget.height
_... |
-- This file is automatically generated, do not edit!
-- Path of Building
--
-- Dexterity support gems
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
skills["SupportAddedColdDamage"] = {
name = "Added Cold Damage",
description = "Supports any skill that hits enemies.",
color = 2,
sup... |
-----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Notes: Entrance to Misareaux Coast
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.