content stringlengths 5 1.05M |
|---|
local walk = {}
walk._NAME = ...
local Body = require'Body'
local vector = require'vector'
local util = require'util'
local moveleg = require'moveleg'
local libReactiveZMP = require'libReactiveZMPAdaptive'
local libStep = require'libStep'
local zmp_solver
local step_planner
require'mcm'
require'wcm'
-- Keep tr... |
local function reql_error_formatter(err)
if type(err) ~= 'table' then return end
if err.ReQLError then
return err.message()
end
end
describe('current handshake', function()
local r, socket, current_handshake
setup(function()
assert:add_formatter(reql_error_formatter)
r = require('rethinkdb')
... |
neb_service_check_proto = Proto("neb_service_check", "NEB SVC CHECK")
local f_active_checks = ProtoField.bool("neb_service_check.active_checks_enabled", "active checks", 8, nil, 0x1)
local f_check_type = ProtoField.uint16("neb_service_check.check_type", "check type", base.HEX, nil, nil, "")
local f_host_id = ProtoFiel... |
--[[
This file is part of 'Masque', an add-on for World of Warcraft. For license information,
please see the included License.txt file or visit https://github.com/StormFX/Masque.
* File...: Core\Regions\Texture.lua
* Author.: StormFX
Texture Regions
* See Skins\Default.lua for region defaults.
]]
local _, C... |
-- switch.lua - Main switch component
local cqueues = require('cqueues')
local socket = require('cqueues.socket')
local console = require('console')
local conf = require('configurator')
local vpath = require('vpath')
local vchan = require('vchan')
local _SW = {}
function _SW.new()
local self = {}
local co... |
#!/usr/bin/lua
local states = {
"alabama", "alaska", "arizona", "arkansas",
"california", "colorado", "connecticut", "delaware",
"florida", "georgia", "hawaii", "idaho",
"illinois", "indiana", "iowa", "kansas",
... |
return {
image = "images/moveindicator.png",
width = 16,
height = 16,
frametime = 0.04,
animations = {
click = {
from = 1,
to = 8
}
}
}
|
function Crone_Summon_Cyclone(Unit, event, miscUnit, misc)
Unit:FullCastSpellOnTarget(38337, Unit:GetRandomPlayer())
end
function Crone_Chain_Lightning(Unit, event, miscUnit, misc)
Unit:FullCastSpellOnTarget(32337, Unit:GetClosestPlayer())
end
function Crone(Unit, event, miscUnit, misc)
Unit:RegisterEvent("Crone_S... |
local filesystem = require("Filesystem")
local image = require("Image")
local screen = require("Screen")
local GUI = require("GUI")
local paths = require("Paths")
local system = require("System")
if not component.isAvailable("stargate") then
GUI.alert("This program requires stargate from mod \"SGCraft\"")
return
en... |
-- clear.lua
-- Implements the /clear command.
function HandleClearCommand(Split, Player)
if (Split[2] == nil) then
Player:GetInventory():Clear()
LOGINFO(Player:GetName() .. " cleared their inventory.")
SendMessageSuccess(Player, cChatColor.LightGray .. "Cleared your own inventory.")
... |
--[[
8:3 Extensions
by
Callum John (@ItsSeaJay)
]]
path = "extensions.txt"
file = io.open(path, "w")
letters = {
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",
"n", "o", "p", "q", "q", "r", "s", "t", "u", "v", "w", "x", "y",
"z"
}
extensions = 1
io.output(file)
f... |
local utils = require('vgit.core.utils')
local Object = require('vgit.core.Object')
local Blame = Object:extend()
local function split_by_whitespace(str)
return vim.split(str, ' ')
end
function Blame:new(info)
if not info then
return setmetatable({}, Blame)
end
-- TODO this is badly done crashes randomly... |
{ data={name="Icechocola", author="Icechocola"},blocks={
{0x132e28, {2.118, 0}, command={faction=1257}},
{0x132e76, {-9.429, 50}, -1.047, bindingId=5, features=TURRET|LASER|AUTOFIRE|PALETTE},
{0x132e2b, {2.118, 50}},
{0x132e2b, {5.004, 55}, 1.047},
{0x132e5d, {-20.254, 28.75}, 2.094},
{0x132e2b... |
local Com = include("com", ...)
----------------------------------------------
--ComFinish
----------------------------------------------
local ComFinish = class("ComFinish", Com)
function ComFinish:ctor()
end
function ComFinish:match(req, res)
end
return ComFinish
|
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("fly","UsefulFunCommands","Gives a set of players the ability to... |
-- Copyright 2022 Erick Israel Vazquez Neri
--
-- 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... |
class "TimerManager"
function TimerManager:TimerManager(...)
local arg = {...}
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycode.TimerManager(unpack(arg))
end
end
fu... |
Citizen.CreateThread(function()
Config.CurrentLab = math.random(1, #Config.Locations["laboratories"])
--print('Lab entry has been set to location: '..Config.CurrentLab)
end)
QBCore.Functions.CreateCallback('qb-methlab:server:GetData', function(source, cb)
local LabData = {
CurrentLab = Config.Curre... |
--This is an example that uses the MLX90614 Infrared Temperature Sensor.
--The sensor should be connected with SCL on EIO7 and SDA on EIO6.
print("-------")
print("/*Connect a MLX90614 with SCL on EIO7 and SDA on EIO6*/")
print("")
fwver = MB.R(60004, 3)
devType = MB.R(60000, 3)
if (fwver < 1.0224 and devType == 7)... |
local Iterable = require('iterables/Iterable')
local SecondaryCache = require('class')('SecondaryCache', Iterable)
function SecondaryCache:__init(array, primary)
local objects = {}
for _, data in ipairs(array) do
local obj = primary:_insert(data)
objects[obj:__hash()] = obj
end
self._count = #array
self._obj... |
local function abluka_izle()
local izle = vgui.Create( "DFrame" )
izle:SetSize( ScrW() * 1,ScrH() * 1 )
izle:SetTitle( " " )
izle:SetDraggable( false )
izle:MakePopup()
izle:ShowCloseButton(false)
izle:Center(true)
function izle:Paint( w, h )
local x, y = self:GetPos()
if ( !IsValid( LocalPlayer(... |
require("prototypes/scripts/util.lua")
require("prototypes.categories.groups")
require("prototypes.heat.data")
require("prototypes.colonists.data")
require("prototypes.engineering.data")
require("prototypes.housing.data")
require("prototypes.ambulance.data")
require("prototypes.food.data")
require("prototypes.manne... |
local Hooks = require(script.Components.Hooks)
return {
Menu = require(script.Components.Menu),
MenuAction = require(script.Components.MenuAction),
Plugin = require(script.Components.Plugin),
PluginAction = require(script.Components.PluginAction),
Toolbar = require(script.Components.Toolbar),
ToolbarButton... |
local z = ...
return function(c,p,u)
package.loaded[z] = nil
z = nil
if u > 1 then
require("rs")(c, 401)
return
end
require("rs")(c, 200, "")
tmr.create():alarm(1000, 0, function() node.restart() end)
end
|
hs.hotkey.alertDuration = 0
hs.hints.showTitleThresh = 0
hs.window.animationDuration = 0
-- Use the standardized config location, if present
custom_config = hs.fs.pathToAbsolute(os.getenv("HOME") .. '/.config/hammerspoon/private/config.lua')
if custom_config then
print("Loading custom config")
dofile( os.geten... |
local Game = require "game"
local Player = require "player"
local Enemy = require "enemy"
local Background = require "background"
local game
function addKeypressHandler(handler)
local previous = love.keyreleased
love.keyreleased = function (key)
handler(key)
if previous then previous(key) end
end
end
l... |
local TOCNAME,GBB=...
local L = setmetatable({}, {__index = function (t, k)
if GBB.L and GBB.L[k] then
return GBB.L[k]
elseif GBB.locales.enGB and GBB.locales.enGB[k] then
return GBB.locales.enGB[k]
else
return "["..k.."]"
end
end})
function GBB.CreateChatFrame(name, ...)
local Frame = name and FCF_Open... |
-- buildrect <length> <width>
--
-- Builds a rectangle of the given length and width
--
----------------------------
-- USAGE
----------------------------
-- Fuel goes in the first slot (very top left in the Turtle's inventory)
-- First position the turtle directly ABOVE where the first block will go, facing OUTWARD
-... |
-- usage example: DATA_ROOT=/path/to/data/ which_direction=BtoA name=expt1 th train.lua
--
-- code derived from https://github.com/soumith/dcgan.torch
--
require 'torch'
require 'nn'
require 'optim'
util = paths.dofile('util/util.lua')
--require 'lib-new/MaxCoord'
require 'image'
require 'models'
require 'math'
requi... |
local TOCNAME, _ = ...
local BOM = BuffomatAddon ---@type BuffomatAddon
---@class BomOptionsPopupModule
---@field behaviourSettings table<number, table> A list of {Key name, Default} for 'Profile' settings
local optionsPopupModule = BuffomatModule.DeclareModule("OptionsPopup") ---@type BomOptionsPopupModule
local con... |
-- removing the directory banner
vim.g.netrw_banner = 0
-- set width of the directory explorer to 25% of the page
vim.g.netrw_winsize = 25
-- set tree view type
vim.g.netrw_liststyle = 3
-- hide gitignore
-- g.netrw_list_hide=netrw_gitignore#Hide()
-- g.netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
|
D3View=Core.class(Sprite)
function D3View:init(sw,sh,fov,near,far)
self.view=Viewport.new()
self.projection=Matrix.new()
self.fov=fov or 45
self.near=near or 0.1
self.far=far or 1000
self:setSize(sw or 1,sh or 1)
self.scene=Sprite.new()
self.view:setContent(self.scene)
self:addChild(self.view)
end... |
local nk = require("nakama")
local function echo(context, payload)
nk.logger_info(string.format("Payload: %q", payload))
local content = {
data = payload,
}
nk.notification_send(context.user_id, "Echo", content, 1, context.user_id, true)
end
nk.register_rpc(echo, "echo")
|
--[[
Description: Scythe library v3 (developer tools)
Version: 3.0.0
Author: Lokasenna
Links:
Forum Thread https://forum.cockos.com/showthread.php?t=177772
Scythe Website http://jalovatt.github.io/scythe
Donation: https://paypal.me/Lokasenna
About:
Examples and utilities for developing scripts with Scythe v3.
... |
utf8 = require"utf8"
reflowprint = require"init"
scalex,scaley = 1,1
alignment = "center"
function badprint(progress,text,x,y,w,a,sx,sy)
local t = text:sub(1, #text*progress)
love.graphics.printf(t,x,y,w,a,0,sx,sy)
end
local letters_per_second = 25
function love.load()
defaultFont = love.graphics.newFont()
new... |
#include "assets/scripts/util.lua"
local data
local options
local draws = 0
local fallbackOptions
local window
function InitWindow(dataReference, optionsReference)
data = dataReference
fallbackOptions = optionsReference[1]
options = optionsReference[2]
window = {
enabled = false,
interact = false,
navbar ... |
vim.g.mapleader = " "
local utils = require('utils')
local nnoremap = utils.nnoremap
local vnoremap = utils.vnoremap
nnoremap('<TAB>', ':bnext<CR>')
nnoremap('<S-TAB>', ':bprevious<CR>')
nnoremap('<C-h>', '<C-w>h')
nnoremap('<C-j>', '<C-w>j')
nnoremap('<C-k>', '<C-w>k')
nnoremap('<C-l>', '<C-w>l')
vnoremap('<', '<... |
local Event = require "xgame.event.Event"
local TouchEvent = require "xgame.event.TouchEvent"
local FLMovieClip = require "xgame.swf.FLMovieClip"
local swf = require "xgame.swf.swf"
local FLRadioButton = swf.class("FLRadioButton", FLMovieClip)
function FLRadioButton:ctor()
self.touchable = ... |
format_version = "1.0"
texts = {
["propertyname_LearningRate"] = "Learning Rate",
["propertyname_Threshold"] = "Threshold",
["ui_type template Threshold"] = "^0 V",
["propertyname_HalfWave"] = "Half Wave",
["propertyname_FullWave"] = "Full Wave",
["propertyname_Squared"] = "Squared",
["propertyname_Rectifica... |
local utils = require("flutter-tools.utils")
local M = {}
local fmt = string.format
--- @param prefs table user preferences
local function validate_prefs(prefs)
vim.validate {
outline = {prefs.outline, "table", true},
dev_log = {prefs.dev_log, "table", true},
closing_tags = {prefs.closing_tags, "table"... |
--[[
DO NOT EDIT THIS FILE!
This file is a critical module for this application and editing it could result in
undesirable behavior, including but not limited to unintended changes to your file system.
]]
function split(str, delim)
local t = {}
for substr in string.gmatch(str, "[^" .. delim .. "]... |
--[[
ยฉ 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Cadburry Milk Chocolate";
ITEM.model = "models/cadbury1/cadbury1.mdl";
ITEM.width = 1;
ITEM.height = 1;
ITEM.description = "Classic Australian chocolate eaten by only the most god-like people.";
ITEM.permi... |
local Visualizer = {}
Visualizer.__index = Visualizer
function Visualizer.new()
local self = setmetatable({}, Visualizer)
self.overlayEntities = {}
return self
end
function Visualizer:DrawOverlay(entity, inputOutput)
inputOutput = inputOutput or ""
local overlayEntity = Entity.new(game.surfaces[1].cr... |
require 'nvim_utils'
vim.o.completeopt = 'menu,menuone,noselect'
vim.g.delimitMate_expand_cr = 2
vim.g.delimitMate_expand_space = 1
vim.g.delimitMate_jump_expansion = 1
vim.g.delimitMate_balance_matchpairs = 1
local completion_maps = {
['i<C-space>'] = {
[[compe#complete()]],
noremap = true, expr ... |
local variableClass = {}
local defaultClass = "misc"
-- Save all
function saveAll()
for class, data in pairs(variableClass) do
local path = "settings_"..class
if fileExists(path) then
fileDelete(path)
end
local file = fileCreate(path)
if file then
fileWrite(file, toJSON(data))
fileClose(file)
end... |
require("config")
require("framework.init")
-- define global module
game = {}
function game.startup()
cc.FileUtils:getInstance():addSearchPath("res/")
display.addSpriteFrames(GAME_TEXTURE_DATA_FILENAME, GAME_TEXTURE_IMAGE_FILENAME)
game.mainScene()
end
function game.exit()
os.exit()
end
function g... |
local original_rocket_silo = data.raw["rocket-silo"]["rocket-silo"]
local beaconed_data = {
machine_energy_usage = original_rocket_silo.active_energy_usage,
machine_emissions = original_rocket_silo.energy_source.emissions_per_minute,
machine_crafting_speed = original_rocket... |
--[[
Pixel Vision 8 - New Template Script
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com)
Created by Jesse Freeman (@jessefreeman)
This project was designed to display some basic instructions when you create
a new tool. Simply delete the following code and implement your own Init(),
Update() and Dra... |
local base = require('imgui.Widget')
---@class im.Selectable:im.Widget
local M = class('im.Selectable', base)
function M:ctor(...)
base.ctor(self, ...)
end
function M:setLabel(label)
self:setParam(1, label)
return self
end
function M:getLabel()
return self:getParam(1)
end
function M:setSelected(lab... |
--[[
Globals
]]--
local args = {...}
local computer = args[1]
local env = setmetatable( {}, {__index = computer.env} )
-- FILE / INPUT READING
function env.load( fn, name, mode, e )
return load( fn, name, mode or "bt", e or computer.env )
end
function env.loadfile(path)
return setfenv( l... |
--- View is a clipped rectangular area where the scene is rendered.
-- Views can be transformed, drawn and easily shaded.
-- @module view
-- @alias view
-- @inherit layer
local view = {}
local viewMT = { __index = view }
local reg = debug.getregistry()
reg.View = view
setmetatable(view, { __index = reg.Layer })
loca... |
Mining = {}
Mining.Core = {}
Mining.Database = {}
Mining.Users = {}
Mining.Config = {}
print("Loading XYZ Mining System")
local path = "xyz_mining/"
if SERVER then
local files, folders = file.Find(path .. "*", "LUA")
for _, folder in SortedPairs(folders, true) do
print("Loading folder:", folder)
for b, Fil... |
local model = remodel.readModelFile("test-models/folder-and-value.rbxmx")[1]
assert(model.Name == "Root")
model.Name = "Foo"
assert(model.Name == "Foo") |
--- GENERATED CODE - DO NOT MODIFY
-- Amazon Kinesis Video Streams Media (kinesis-video-media-2017-09-30)
local M = {}
M.metadata = {
api_version = "2017-09-30",
json_version = "",
protocol = "rest-json",
checksum_format = "",
endpoint_prefix = "kinesisvideo",
service_abbreviation = "Kinesis Video Media",
serv... |
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- 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 u... |
local talk_count = 1
local shout_count = 1
local done = false
local shout_again = false
local stop_walk = false
mother_gone = false
father_animation_count = 1
father_x = 12
father_speed = 15
mother_animation_count = 1
mother_x = 20
mother_speed = 15
function animation_set()
--splash
local splas... |
return {'avondland','avondster','avocado','avocadopeer','avond','avondappel','avondbede','avondbezoek','avondbijeenkomst','avondblad','avondbulletin','avondcollege','avondcourant','avondcursus','avonddienst','avondduister','avondeditie','avondenlang','avondeten','avondfeest','avondgebed','avondgymnasium','avondhandel',... |
local eval = require "eval"
local util = require "util"
local function multiplyString (str, n)
local s = ""
for i=1,n do s = s .. str end
return s
end
local function transform (text, data, delimiter, nestedCycles, nestedConditions)
local substrings = {} -- array with substrings
local iteratorIndex... |
local T, C, L = Tukui:unpack()
local UnitFrames = T.UnitFrames
local Class = select(2, UnitClass("player"))
local STAGGER_RED_TRANSITION = STAGGER_RED_TRANSITION
local STAGGER_RED_INDEX = STAGGER_RED_INDEX or 3
local STAGGER_YELLOW_TRANSITION = STAGGER_YELLOW_TRANSITION
local STAGGER_YELLOW_INDEX = STAGGER_YELLOW_INDE... |
local _={}
_[16]={1}
_[15]={}
_[14]={1}
_[13]={}
_[12]={text=" to move.",tags=_[15]}
_[11]={text="joystick",tags=_[15]}
_[10]={text="left ",tags=_[16]}
_[9]={text="Use ",tags=_[15]}
_[8]={text="to jump.",tags=_[13]}
_[7]={text="A ",tags=_[14]}
_[6]={text="Press ",tags=_[13]}
_[5]={_[9],_[10],_[11],_[12]}
_[4]={_[6],_[7... |
config = {
inputs = {
controls = {
left = {'key:left', 'axis:leftx-', 'button:dpleft'},
right = {'key:right', 'axis:leftx+', 'button:dpright'},
up = {'key:up', 'axis:lefty-', 'button:dpup'},
down = {'key:down', 'axis:lefty+', 'button:dpdown'},
acti... |
require "app.ui.base.init"
require "app.ui.EditBoxUI"
_ENV=namespace "ui"
using_namespace "luaClass"
using_namespace "container"
using_namespace "game"
class "SettingUI" {
super(cc.Layer);
super(LUIObject);
public{
FUNCTION.SettingUI(function(self)
self=self:__super()
self:... |
return {
client = require( "ruled.client" ),
notification = require( "ruled.notification" ),
}
|
local Explosion = class "Explosion"
function Explosion:init(x, y)
self.pos = {x = x, y = y}
self.bg = true
self.lifetime = 9 * 0.05
end
return Explosion
|
package("glew")
set_homepage("http://glew.sourceforge.net/")
set_description("A cross-platform open-source C/C++ extension loading library.")
set_urls("https://github.com/nigels-com/glew/releases/download/glew-$(version)/glew-$(version).zip")
add_versions("2.1.0", "2700383d4de2455f06114fbaf872684f1552... |
--- Render component base class.
-- This is base class for all types of render components.
-- @classmod RenderComponent
--- Should this render component render graphics.
-- @tfield bool visible
|
--
-- Created by IntelliJ IDEA.
-- User: Kunkka
-- Date: 17/3/1
-- Time: ไธๅ9:26
-- To change this template use File | Settings | File Templates.
--
local NodeTest = class("NodeTest", gk.Layer)
function NodeTest:ctor()
NodeTest.super.ctor(self)
gk.util:drawNodeBounds(self.layer1, nil, -3)
gk.util:drawNodeB... |
--Global variables
PortalTimer = {}
Warps = {}
Jails = {}
BackCoords = {}
BackWorld = {}
TpRequestTimeLimit = 0
TeleportRequests = {}
Jailed = {}
Muted = {}
SocialSpyList = {}
GodModeList = {}
--Initialize the plugin
function Initialize(Plugin)
Plugin:SetName(g_PluginInfo.Name)
Plugin:SetVersion(g_PluginInfo.Version... |
local class = require('../classes/new')
local base = require('./base')
local Invite = class(base)
function Invite:__onUpdate ()
self.channel = self.parent
self.server = self.parent.parent
end
function Invite:accept ()
self.parent.parent.rest:request(
{
method = 'POST',
path = 'invites/'..self.code,
}
)... |
--Image to Lua converter by MrLenyn
--It works by drawing lines instead of pixels, outputs a script ready to use in Stormworks monitors, with good performance.
--Version: 0.10
transparency = false
zoom_var = false
pos_var = false
size_limit = 300
function click(rx,ry,w,h, x, y)
if x >= rx and y >= ry... |
do
local _ = {
market = {
icon = '__base__/graphics/icons/market.png',
picture = {
filename = '__base__/graphics/entity/market/market.png',
width = 156,
shift = {0.95, 0.2},
height = 127
},
close_... |
--
-- Formspecs
--
function extinct_bees.get_bee_hive_active_formspec(life_percent)
return "size[8,8.5]" ..
"no_prepend[]" ..
-- bg appearance
"image[2,1;1,2.2;extinct_bees_bee_hive_progress_bg.png^" ..
"[lowpart:" ..
life_percent ..
":extinct_bees_bee_hive_progress_fg.png]" ..
"bgcolor[#... |
package("git")
set_kind("binary")
set_homepage("https://git-scm.com/")
set_description("A free and open source distributed version control system")
if os.host() == "windows" then
if os.arch() == "x64" then
add_urls("https://github.com/tboox/xmake-win64env/archive/$(version).zip", {... |
--[[
TheNexusAvenger
Displays information about the current round
the player is selecting in the lobby.
--]]
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local ReplicatedStorageProject = require(ReplicatedSt... |
function Delrissas_Minions(pUnit, Misc)
random=math.random(1, 25)
if random==1 then
pUnit:SpawnCreature(24557, 123.870529, 12.468772, -20.004911, 4.856926, 14, 12000000);
pUnit:SpawnCreature(24558, 130.000900, 11.941279, -20.004900, 4.399158, 14, 12000000);
pUnit:SpawnCreature(24656, 128.804245, 11.850257, ... |
local alert = require("hs.alert")
local timer = require("hs.timer")
local eventtap = require("hs.eventtap")
local events = eventtap.event.types
local module = {}
-- You either override these here or after including this file from another, e.g.
--
-- altHold = require("altHold")
-- altHold.timeFrame = 2
-- ... |
local utils = {};
utils.load_module = function(module)
local success, err = pcall(require, module);
if not success then
error(string.format('Error loading module `%s`.\n\n%s.', module, err));
end;
end;
return utils;
|
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- Plugin: lsp-status.nvim
-- Github: github.com/nvim-lua/lsp-status.nvim
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- โโโโโโโโโโโโโ... |
--[[
GameOverState Class
]]
GameOverState = Class{__includes = BaseState}
function GameOverState:update(dt)
if love.keyboard.wasPressed('enter') or love.keyboard.wasPressed('return') then
gStateMachine:change('play')
end
end
function GameOverState:enter(params)
self.gameGrid = params.gameGrid
end
funct... |
local pcall = pcall
local require = require
local getmetatable = getmetatable
--- Internal configuration of
--- Aspect Template Engine. Be careful.
--- @class aspect.config
local config = {}
--- JSON configuration
config.json = {
encode = nil,
decode = nil,
error = "JSON encode/decode no available. Please... |
-- Copyright (c) 2011-2014, Syhunt Informatica
-- License: 3-clause BSD license
-- See https://github.com/felipedaragon/sandcat/ for details.
PageMenu = {}
PageMenu.doc_url = 'http://www.syhunt.com/sandcat/?n='
PageMenu.livefilter = 'Sandcat Live Headers files (*.sclive)|*.sclive'
PageMenu.htmlfilter = 'HTML files ... |
local checkpoints = require("Checkpoints/checkpoints")
local nocrap = require("Modules.Dregu.no_crap")
local sunkencity1 = {
identifier = "sunkencity 1",
title = "Sunken City 1: Sticky Situation",
theme = THEME.SUNKEN_CITY,
width = 4,
height = 6,
file_name = "sunk-1.lvl",
world = 7,
leve... |
ITEM.name = "Flattened plastic bag"
ITEM.description= "A bag that has been stepped on multiple times. There is something inside."
ITEM.model = "models/props_junk/garbage_bag001a.mdl"
ITEM.width = 2
ITEM.height = 2
ITEM.flag = "A"
ITEM.items[1] = {
dropAmount = 2,
dropRareChance = 15,
dropVeryRareChance = 5,
itemsC... |
-- Cjdns admin module for Lua
-- Written by Philip Horger
-- hacked up dumpTable, switchpinger, peerstats
-- and other oddities by William Fleurant
common = require 'cjdns/common'
RouterFunctions = {}
RouterFunctions.__index = RouterFunctions
common.RouterFunctions = RouterFunctions
function RouterFunctions.new(ai, c... |
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local lain = require("lain")
local clickable_container = require("widgets.clickable-container")
local markup = lain.util.markup
return function(widget, buttons, data, response)
widget:r... |
---ๅผๅฏผ็ณป็ป-ๅฎขๆท็ซฏ่กจ็ฐ
---@script Guide effect
---@copyright Lilith Games, Avatar Team
---@author Sid Zhang
local root = script.Parent
local tweenerHand = Tween:TweenProperty(root.ImgDot.ImgHand, {Pivot = Vector2(0.35, 1)}, 0.5, Enum.EaseCurve.Linear)
local tweenerCircle =
Tween:TweenProperty(root.ImgDot.ImgCircle, {Size =... |
-- luacheck: max line length 180
-- local sys = require'sys'
-- local nvim = require'nvim'
local load_module = require'tools'.helpers.load_module
-- local set_command = nvim.commands.set_command
-- local set_autocmd = nvim.autocmds.set_autocmd
-- local set_mapping = nvim.mappings.set_mapping
local neogit = load_mod... |
local timer = require 'timer'
local _pubics, _subics, qn = {}, {}
local RSP = { ok = 200, cre = 201, del = 202, chg = 204, ctn = 205, breq = 400, unauth = 401, nfnd = 404, nalw = 405, cnft = 409 }
local CMD = { r = 0, w = 1, dcv = 2, wa = 3, e = 4, ob = 5, noti = 6 }
local ERR = { sces = 0, nfnd = 1, unrd = 2, unwt = ... |
data:extend(
{
{
type = "item-subgroup",
name = "fconsumer-food",
group = "fconsumer",
order = "a",
},
-- Algae Patty
{
type = "item",
name = "food-algae-patty",
icon = "__fconsumer__/icons/algae-patty.png",
icon_size = 32,
subgroup = "fconsumer-food",
order = "a[food-algae... |
---
-- This file contains all shared networking functions, to sync and manage the information between server and clients
-- @author saibotk
-- @module ttt2net
ttt2net = {}
-- Network message name constants
ttt2net.NETMSG_META_UPDATE = "TTT2_NET_META_UPDATE"
ttt2net.NETMSG_DATA_UPDATE = "TTT2_NET_DATA_UPDATE"
ttt2net.... |
local PLUGIN = PLUGIN
PLUGIN.name = "Simple Nicknames"
PLUGIN.author = "alexgrist"
PLUGIN.description = "Allows players to nickname themselves."
PLUGIN.license = [[
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this ... |
-- Combine tests
require './lib'
require './data'
setup()
local old_setup = setup
local old_teardown = teardown
local empty_function = function() end
setup = empty_function
teardown = empty_function
local function shuffle(tbl)
local size = #tbl
for i = size, 1, -1 do
local rand = math.random(size)
tbl[... |
require 'luarocks.loader'
local https = require 'ssl.https'
local json = require 'lunajson'
local options = require 'mp.options'
local osd_ass_cc = mp.get_property_osd('osd-ass-cc/0')
local chat
local opt = {
toggle_key = 'c',
enable_position_binds = true,
osd_position = 1, -- osd_position uses 'numpad values'
me... |
local Packages = script.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local ClientContext = require(script.Parent.ClientContext)
local Connector = Roact.Component:extend("Connector")
function Connector:init()
self:setState({
tripStatus = self.props.clientSession.tripStatus,
})
end
function Connect... |
ar.dog = 'The dog goes woof!';
ar.cat = 'The cat says meow!';
ar['bird'] = "The bird is in the cat's stomache!";
|
--
-- ButtonFrameFactory
--
-- ## External -------------------------------------------------
local _G = _G
local type, ipairs, tinsert = type, ipairs, table.insert
--[[-----------------------------------------------------------------------------
Blizzard Vars
-----------------------------------------------------------... |
local mgn = mgn
local start_time = 0
local end_time = 0
local alpha = 0
local sounds = {
explosion = {Path = {"ambient/intro/explosion02.wav", "ambient/medieval_thunder4.wav", "ambient/explosions/explode_6.wav"}, Played = false},
citadelpan = {Path = {"ambient/intro/citadelpan.wav", "ambient/explosions/exp2.wav"}, P... |
-----------------------------------------------------------------------------------------------------------------------
-- cron.lua - v1.0 (2011-04)
-- Enrique Garcรญa Cota - enrique.garcia.cota [AT] gmail [DOT] com
-- time-related functions for Lua.
-- inspired by Javascript's setTimeout and setInterval
---------------... |
local ADDON_NAME, ns = ...
local L = ns.L
ns.defaults = {
macro = true,
scale = 1,
windowPosition = "CENTER",
windowX = 0,
windowY = 0,
windowWidth = 420,
windowHeight = 360,
}
ns.data = {
achievements = {
{
-- Secret Fish of Mechagon
id = 13489,
... |
--[[
Copyright (c) 2018, Vsevolod Stakhov <vsevolod@highsecure.ru>
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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.