content stringlengths 5 1.05M |
|---|
local MAX_AGE = 400
local SPAWN_MARGIN = 50
local DAMPING_FACTOR = 0.95
local CENTER_X = love.graphics.getWidth() * 0.5
local CENTER_Y = love.graphics.getHeight() * 0.5
local SPAWN_RATE = 0.15
local spawnTimer = 0
local bubbles = {}
local mouse = {}
mouse.radius = 400
mouse.x, mouse.y = love.mouse.getPosition()
l... |
--[[
-- Telescope configuration setup.
--
-- Author: Nicholas O'Kelley
-- Updated: Jan 9, 2022
--]]
local ok, telescope = pcall(require, "telescope")
if not ok then
return
end
--------- Telescope Keymappings ---------
local utils = require "utils"
local opts = { silent = true }
utils.map(
"n",
"<leader... |
--[[
################################################################################
#
# Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm)
#
# 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 th... |
local log = require("netman.utils").log
local notify = require("netman.utils").notify
local shell = require("netman.utils").run_shell_command
local shell_escape = require("netman.utils").escape_shell_command
local command_flags = require("netman.options").utils.command
local api_flags = require("netman.options").api
lo... |
local Chassi = table.deepcopy(data.raw["item"]["flying-robot-frame"])
Chassi.name = "early-flying-robot-frame"
Chassi.icon = "__ZEarlyBots__/Graphics/Icons/robots/early-flying-robot-frame.png"
local Recipe = table.deepcopy(data.raw["recipe"]["flying-robot-frame"])
Recipe.enabled = true
Recipe.name = "early-fly... |
local component=require("component")
local serialization = require("serialization")
local filesystem=require("filesystem")
function getWorldTimestamp()
local name=os.tmpname()
local f=io.open(name,"w")
f:close()
local ts=filesystem.lastModified(name)
filesystem.remove(name)
return ts
end
funct... |
object_tangible_collection_col_tatooine_vistas_marker_08 = object_tangible_collection_shared_col_tatooine_vistas_marker_08:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_tatooine_vistas_marker_08, "object/tangible/collection/col_tatooine_vistas_marker_08.iff") |
--------------------------------------------------------------------------------
-- simple-test-2.lua: suite used for simple suite tests
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
---------------------------------------------------------------... |
function plugindef()
finaleplugin.Author = "CJ Garcia"
finaleplugin.Copyright = "ยฉ 2020 CJ Garcia Music"
finaleplugin.Version = "1.0"
finaleplugin.Date = "June 22, 2020"
finaleplugin.CategoryTags = "Articulation"
return "Remove Duplicate Articulations", "Remove Duplicate Articulations", "Remove ... |
---@class TMap
local TMap = {}
return TMap
|
local group = "user"
local states = {}
states.frozen = false
states.frozenPos = nil
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if (IsControlJustPressed(1, 212) and IsControlJustPressed(1, 213)) then
if true then
SetNuiFocus(true, true)
SendNUIMessage({type = 'open', players = getP... |
local drawBorder = require('ext.drawing').drawBorder
local cache = {}
local module = { cache = cache }
module.start = function()
cache.filter = hs.window.filter.new()
:setCurrentSpace(true)
:setDefaultFilter()
:setOverrideFilter({
fullscreen = false,
allowRoles = { 'AXStandardWindow' }
... |
๏ปฟDB_TEMPLATE_PLAYER =
{
Leonard = {name = "Leonard", className = "classHuman", job = "swordMan", jobName = "", str = 16, dex = 12, mind = 8, con = 14, hitPoint = 0, manaPoint = 0, attack = 8, defense = 2, mAttack = 0, speed = 0, movePoint = 5, resist = {3,3,3,3,3}, accuracy = 5, avoid = 1, critical = 10, counter = 4, ... |
local List = script.Parent
local Llama = List.Parent
local t = require(Llama.t)
local function alwaysTrue()
return true
end
local validate = t.tuple(t.table, t.optional(t.callback))
local function count(list, predicate)
assert(validate(list, predicate))
predicate = predicate or alwaysTrue
loca... |
function(data, out, bakeLight)
local vtxFormat = MOAIVertexFormat.new()
vtxFormat:declareCoord ( 1, MOAIVertexFormat.GL_FLOAT, 3 )
vtxFormat:declareUV ( 2, MOAIVertexFormat.GL_FLOAT, 2 )
-- bone weight[4]
vtxFormat:declareAttribute ( 3, MOAIVertexFormat.GL_FLOAT, 4, false, MOAIVertexFo... |
local mod = foundation.new_module("foundation_dep", "1.0.0")
|
Queue = {
new = function ()
q = {}
setmetatable(q, Queue)
return q
end,
add = function (self, value)
self[#self + 1] = value
end,
remove = function (self)
local value = self[#self]
self[#self] = nil
return value
end,
}
Queue.__index = Queue
local q = Queue.new()
q:add("item")
... |
local args = {...}
local mainContainer, window, localization = args[1], args[2], args[3]
require("advancedLua")
local component = require("component")
local computer = require("computer")
local GUI = require("GUI")
local buffer = require("doubleBuffering")
local image = require("image")
local MineOSPaths = require("M... |
local common = require("db.api.common")
local json = require "json"
local uuid = require "uuid"
local exception = require "exception"
local property = require "property"
local util = require "util"
--
-- forward declaration of functions and private properties
--
local connection
local connectToDatabase
l... |
local util = require("gruvbox.utils")
local M = {}
function M.get(cp)
return {
DapUIFloatBorder = { fg = cp.blue },
debugPC = { bg = util.darken(cp.yellow, 0.25, cp.bg1) },
DebugBreakpoint = { fg = cp.red },
DebugBreakpointConditional = { fg = cp.cyan },
DebugBreakpointRejected = { fg = ... |
waypointlists = {};
waypointlists.settings = {};
-- turn the test mode on for waypointlist
waypointlists.settings["test"] = true;
--rewrite XML waypoint files yes or no?
waypointlists.settings["rewrite_waypoint"] = true;
--remove later
waypointlists.settings["WPT_FORWARD"] = 1;
waypointlists.settings["WPT_BACKWARD"] = ... |
-- I do not know what luarocks guys have in mind
-- If they depend on external commands, it seems
-- completely irrelevant to install packages to
-- replace those commands (as you need these freaking
-- commands anyways to install the first modules!!)
-- On top of that it breaks features. BOUH.
fs_use_modules = false
... |
vim.g.nvim_tree_ignore = { ".git", "node_modules", ".cache", "*.meta" }
vim.g.nvim_tree_gitignore = 2
vim.g.nvim_tree_auto_close = 0
vim.g.nvim_tree_indent_markers = 1
vim.g.nvim_tree_hide_dotfiles = 1
vim.g.nvim_tree_git_hl = 1
vim.g.nvim_tree_allow_resize = 1
vim.g.nvim_tree_show_icons = {
git = 1,
folders = 1,
f... |
cc = cc or {}
---Terrain object
---@class Terrain : Node
local Terrain = {}
cc.Terrain = Terrain
--------------------------------
---initialize heightMap data
---@param heightMap string
---@return bool
function Terrain:initHeightMap(heightMap) end
--------------------------------
---set the MaxDetailAmount.
---@param... |
return {
id = 10,
} |
data:extend({
{
type = "int-setting",
name = "exploding-trees-probability",
setting_type = "runtime-global",
order = "a",
default_value = 20,
minimum_value = 0,
maximum_value = 100
}
})
|
--[[
#part of the 3DreamEngine by Luke100000
resources.lua - resource loader
--]]
local lib = _3DreamEngine
--master resource loader
lib.resourceJobs = { }
lib.lastResourceJob = 0
lib.threads = { }
function lib:addResourceJob(typ, obj, priority, ...)
self.lastResourceJob = self.lastResourceJob + 1
self.resourceJob... |
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid ~= 5554 then
return false
end
if math.random(100) ~= 1 then
player:say("The golden fish escaped.", TALKTYPE_MONSTER_SAY)
return true
end
player:say("You catch a golden fish in the bowl.", TALKTYPE_MONSTER_SAY)
item:t... |
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 27.01.2015
-- Time: 19:34
-- To change this template use File | Settings | File Templates.
--
cRadarfalle = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function c... |
local argparse = require("argparse")
local Editor = require("gutter.editor.Editor")
local Slab = require("Slab")
function love.load(arg)
local parser = argparse("love <directory>", "Mesh and draw a CSG model")
parser:flag("--fullscreen", "Enable fullscreen mode")
parser:flag("--high-dpi", "Enable high DPI mode"... |
local Header = {
width = 1082,
height = 86,
y = 32
}
local Glow = {
width = 1020,
}
local offset = { -1, 0, 1 }
local align = { 1, 0.5, 0 }
local t = Def.ActorFrame{}
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:align(0.5, 0)
self:zoomto(Header.width + 32, Header.height - ... |
VERSION = "1.0.0"
local config = import("micro/config")
config.AddRuntimeFile("duzcol", config.RTColorscheme, "colorschemes/duzcol.micro")
config.AddRuntimeFile("duzcol", config.RTHelp, "help/duzcol.md")
|
function love.conf(t)
t.window.width = 960
t.window.height = 640
end |
ITEM.name = "Cookable Consumable"
ITEM.description = "Consumable that can be cooked."
ITEM.category = "Cookable Meat"
ITEM.model = "models/lostsignalproject/items/consumable/meat_dog.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.price = 0
ITEM.meattier = 1
ITEM.WeightPerThirst = -0.25
ITEM.WeightPerHunger = 0.5
ITEM.cooka... |
require("lang.ruby").format()
require("lang.ruby").lint()
require("lang.ruby").lsp()
require("lang.ruby").dap()
|
return {'oduber'} |
Locales['en'] = {
['mechanic'] = 'Mecรขnico',
['drive_to_indicated'] = '~y~Dirija~s~ para a localizaรงรฃo indicada.',
['mission_canceled'] = 'Missรฃo ~r~cancelada~s~',
['vehicle_list'] = 'Lista de veรญculos',
['work_wear'] = 'Vestuรกrio de trabalho',
[... |
---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ General configuration parameters ]]
config.defaultProtocolVersion = 2
--[[ Required Shared libra... |
print("\n")
print("\nS y s i n f o . l u a\n")
print("(c) xshotD/S Stewart <hi@youneeda.pw>")
print("MIT License.")
print("Your uptime")
os.execute(uptime)
|
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local t = require(CorePackages.Packages.t)
local UIBlox = require(CorePackages.UIBlox)
local AvatarExperienceDeps = require(CorePackages.AvatarExperienceDeps)
local Text = require(CorePackages.AppTempCommon.Common.Text)
loc... |
local string = require"luv.string"
local table = require"luv.table"
local io, tostring, tonumber, pairs, ipairs, type, getmetatable, unpack, next = io, tostring, tonumber, pairs, ipairs, type, getmetatable, unpack, next
local SqlDriver, LuaSql = require"luv.db".SqlDriver, require"luasql.mysql"
module(...)
local Excep... |
--------------------------------
-- @module EventDispatcher
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Pauses all listeners which are associated the specified target.<br>
-- param target A given target node.<br>
-- param recursive True if pause recursively, the default value is false.
--... |
package.path = package.path .. ';../src/?.lua;src/?.lua;'
local Interpreter = require 'interpreter'
EXPORT_ASSERT_TO_GLOBALS = true
require('resources.luaunit')
TestInterpreter = {}
local compiled = {
['op'] = 'seq',
['seq'] = {
{
['op'] = 'set',
['var'] = 'group_size',
['valu... |
#!/usr/bin/env luajit
package.path = "../?.lua"
--[[
This little utility sets a /proc/sys/kernel/* value
You can use it simply by doing:
$ ./set_kernelinfo.lua key value
where 'key' is one of the files in the /proc/sys/kernel directory
and 'value' is a string value appropriate for that particular entry
--]]
lo... |
_G.requireInjector()
local InventoryAdapter = require('inventoryAdapter')
local Event = require('event')
local UI = require('ui')
local Util = require('util')
local colors = _G.colors
local multishell = _ENV.multishell
local storage = InventoryAdapter.wrap()
if not storage th... |
MINIGAME.Time = 120
---------------------------------------------------------
--
---------------------------------------------------------
function MINIGAME:Start()
print(self.Name .. " has started.")
self.BaseClass.Start(self)
self:SpawnIce()
end
---------------------------------------------------------
--
-... |
-- ProbablyEngine Rotations
-- Released under modified BSD, see attached LICENSE.
NeP.Listener = {}
local listener = NeP.Listener
local listeners = {}
local function onEvent(self, event, ...)
if not listeners[event] then return end
for i = 1, #listeners[event] do
--debug.print('Event Called: ' .. event .. ', ' .... |
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- Plugin: nvim-bufferline.lua
-- Github: github.com/akinsho/nvim-bufferline.lua
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโ... |
require("__5dim_core__.lib.battlefield.tesla-turret.generation-tesla-turret")
local rango = 50
local shootingSpeed = 60
local damageModif = 25
local color = {r = 0.9, g = 0.1, b = 0.9, a = 1}
local hp = 1500
local techCount = 300
-- Tesla turret 01
genTeslaTurrets {
number = "01",
subgroup = "defense-tesla",
... |
-- { name = "Muldraugh, KY - Spawn at Home", file = "media/maps/Muldraugh, KY - Home/spawnregions.lua" },
function SpawnPoints()
return {
-- Poor
unemployed = {
-- 34x35 34x36 Trailerpark
{worldX=35, worldY=34, posX=250, posY=242}, -- Trailer
{worldX=35, worldY=34, ... |
local outputs = { "A1", "A2", "A3", "A4", "A5", "A6", "B1", "B2", "B3", "B4", "B5", "B6" }
local input = {}
for k, output in pairs(outputs) do
input[#input + 1] = string.format("SwitchGesture%s = gestureFunction{ on_tap = \"SwitchTap%s\" }", output, output)
input[#input + 1] = string.format("SwitchTap%s = switchT... |
local tag = arg[2] or 'wow_classic'
local api = require('wowless.runner').run({
loglevel = arg[1] and tonumber(arg[1]) or 0,
dir = 'extracts/' .. tag,
version = arg[3] or 'TBC',
otherAddonDirs = { arg[4] },
})
if api.GetErrorCount() ~= 0 then
io.stderr:write('failure on ' .. tag .. '\n')
os.exit(1)
end
|
return {'ounce'} |
local imap = require("tombell.keymap").imap
local nmap = require("tombell.keymap").nmap
local lspconfig = require "lspconfig"
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
update_in_insert = false,
})
local on_attach = function(client, bufnr)
vim.... |
project "SharpLang.Compiler.Tests"
kind "SharedLib"
language "C#"
flags { "Unsafe" }
SetupManagedProject()
files { "*.cs" }
excludes { "obj/**" }
links
{
"System",
"System.Core",
"System.Data",
"System.Data.DataSetExtensions",
"System.Xml",
"System.Xml.Linq",
"SharpLang.C... |
------------------------------------------------------------------------
--- @file esp.lua
--- @brief ESP utility.
--- Utility functions for the esp_header structs
--- defined in \ref headers.lua . \n
--- Includes:
--- - ESP constants
--- - IPsec IV
--- - ESP header utility
--- - Definition of esp packets
------------... |
local config = require 'config'
local strings = {} -- internal array with translated strings
-- Evaluates the Lua's expression
local function eval(str)
return load('return ' .. str)()
end
-- Parses the file with translation and returns a table with English strings as
-- keys and translated strings as values. The ke... |
local AddonName, Addon = ...
local L = Addon:GetLocale()
Addon.RuleFunctions = {}
Addon.RuleFunctions.CURRENT_EXPANSION = LE_EXPANSION_SHADOWLANDS;
Addon.RuleFunctions.BATTLE_FOR_AZEROTH = LE_EXPANSION_BATTLE_FOR_AZEROTH; --7
Addon.RuleFunctions.SHADOWLANDS = LE_EXPANSION_SHADOWLANDS; -- 8
Addon.RuleFunctions.POOR = 0... |
-- provide unit classification to frame state
-- provide RareIcon and BossIcon elements
local addon = KuiNameplates
local ele = addon:NewElement('Classification',1)
-- prototype additions #########################################################
function addon.Nameplate.UpdateClassification(f,on_show)
f = f.parent
... |
QhunCore.TextboxUiElement = {}
QhunCore.TextboxUiElement.__index = QhunCore.TextboxUiElement
-- constructor
--[[
{
label: string,
storageIdentifyer: string,
settings?: {
boxWidth?: number = 20
padding?: number = 0
}
}
]]
function QhunCore.TextboxUiElement... |
local playerInjury = {}
function GetCharsInjuries(source)
return playerInjury[source]
end
RegisterServerEvent('npc-hospital:server:SyncInjuries')
AddEventHandler('npc-hospital:server:SyncInjuries', function(data)
playerInjury[source] = data
end) |
---------------------------------------------------------------
-- Copyright 2021 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/deviap-main/blob/master/LICENSE --
... |
function onCreate()
makeLuaSprite('pibby-corrupted-stage', 'pibby-corrupted-stage', -600, -300);
addLuaSprite('pibby-corrupted-stage', false);
makeAnimatedLuaSprite('pibby-corrupted-glitchattack','pibby-corrupted-glitchattack',700,30)
addAnimationByPrefix('pibby-corrupted-glitchattack','blank','nonglitch',... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CRadio = {}
function CRadio:updateRadioChannels()
channels = ... |
vim.g.copilot_no_tab_map = false
|
ELEMENTAL.Name = "shield"
ELEMENTAL.Combo = "UP RIGHT DOWN RIGHT"
ELEMENTAL.Instructions = {
{"SetPos", -10, 0},
{"Move", 0, 1, 30},
{"Move", 1, 0, 10},
{"Move", 0, -1, 30},
{"Move", 1, 0, 10},
} |
local id = 1
local connURL = "localhost:8080/?type=input&id=" .. id
print("Input a username:")
local username = read()
local monitorShell = multishell.launch({}, "path/to/monitor.lua")
multishell.setTitle(monitorShell, "Chat")
multishell.setTitle(multishell.getCurrent(), "Input")
term.clear()
print("Connected as: ... |
local Pattern = require'compe.pattern'
local Character = require'compe.utils.character'
local Private = {}
Private.DEFAULT_INVALID_BYTES = {}
Private.DEFAULT_INVALID_BYTES[string.byte('=', 1)] = true
Private.DEFAULT_INVALID_BYTES[string.byte('(', 1)] = true
Private.DEFAULT_INVALID_BYTES[string.byte('$', 1)] = true
Pr... |
local ffi = require 'ffiex.init'
local st = ffi.cdef [[
#define DEREF(p) (*(int *)p)
]]
local ffi_ptr = ffi.new('int[1]')
ffi_ptr[0] = 111
assert(ffi.defs.DEREF(tostring(ffi.cast('intptr_t', ffi_ptr))) == 111)
return true
|
-- Dialogue for NPC "npc_royalguard_t"
loadDialogue = function(DL)
if (not DL:isConditionFulfilled("npc_royalguard_t", "talked")) then
DL:setRoot(1)
else
DL:setRoot(3)
end
if (not DL:isConditionFulfilled("npc_royalguard_t", "talked")) then
DL:createNPCNode(1, 2, "DL_Royalguard_Hey") -- Hey you! How ... |
--[[
When writing text, people sometimes rely on braces to inject
additional details to certain statements. Due to human defectiveness,
braces (especially closing ones are prone to be missing. A different
race - the compilers - heavily relies on braces to be balanced and
well nested. To prevent misapprehensions and ... |
local cooler0Socket = scene:getObjects("cooler0_socket")[1];
local cooler1Socket = scene:getObjects("cooler1_socket")[1];
local cooler0Plug = scene:getObjects("cooler0_plug")[1];
local cooler1Plug = scene:getObjects("cooler1_plug")[1];
local press1Joint = scene:getJoints("press1_joint")[1];
-- main
makeDoor("door8", ... |
local Node = require('gui.node')
local ceil = math.ceil
--- For displaying what biome the player is in.
local Hearts = {}
Hearts.__index = Hearts
setmetatable(Hearts, {__index = Node})
function Hearts.new(player)
local self = setmetatable(Node.new(), Hearts)
self.w = 16
self.h = 16
self.player = playe... |
object_draft_schematic_weapon_lightsaber_lightsaber_one_hand_gen4_must = object_draft_schematic_weapon_lightsaber_shared_lightsaber_one_hand_gen4_must:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_lightsaber_one_hand_gen4_must, "object/draft_schematic/weapon/lightsaber/lightsaber_one_ha... |
return function(entity)
entity.items = {}
entity.equipment = {}
entity.addItem = function(self, item)
add(self.items, item)
end
end |
local storeBundle = require('yode-nvim.redux.index')
local store = storeBundle.store
local tutil = require('yode-nvim.tests.util')
local eq = assert.are.same
local seditorText = [[
async function createSeditor(nvim, text, row, height) {
const buffer = await nvim.createBuffer(false, false)
const foo = 'bar'
... |
local ns2_Player_CopyPlayerDataFrom = Player.CopyPlayerDataFrom
function Player:CopyPlayerDataFrom(player)
ns2_Player_CopyPlayerDataFrom(self, player)
self.currentCreateStructureTechId = player.currentCreateStructureTechId
end
-- A table of tech Ids is passed in.
function Player:ProcessBuyAction(t... |
animatedtiletrigger = class("animatedtiletrigger")
function animatedtiletrigger:init(x, y, r)
self.x = x
self.y = y
self.r = {unpack(r)}
table.remove(self.r, 1)
table.remove(self.r, 1)
self.visible = true
--VISIBLE
if #self.r > 0 and self.r[1] ~= "link" then
self.visible = (self.r[1] == "true")
table.r... |
local oop = medialib.load("oop")
local VimeoService = oop.class("VimeoService", "HTMLService")
VimeoService.identifier = "vimeo"
local all_patterns = {
"https?://www.vimeo.com/([0-9]+)",
"https?://vimeo.com/([0-9]+)",
"https?://www.vimeo.com/channels/staffpicks/([0-9]+)",
"https?://vimeo.com/channels/staffpicks/(... |
object_mobile_dressed_dark_jedi_male_human_06 = object_mobile_shared_dressed_dark_jedi_male_human_06:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_male_human_06, "object/mobile/dressed_dark_jedi_male_human_06.iff")
|
---- shape gfx
local tau = math.pi * 2
local sin, cos = math.sin, math.cos
local floor, ceil = math.floor, math.ceil
-- clear screen with color
function clear(color)
love.graphics.clear( getColor(color or 1) )
end
-- draw rectangle
function rectangle(x1,y1,w,h, color, drawMode)
love.graphics.setShader()
se... |
local reduce = require('cherry.libs.ludash').reduce
local function centroid (points)
local l = #points
return reduce(points, function (center, p, i)
center.x = center.x + p.x
center.y = center.y + p.y
if (i == l) then
center.x = center.x / l
center.y = center.y / l
end
return... |
-- Base16 Equilibrium Dark color
-- Author: Carlo Abelli
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#0c1118" -- ----
M.base01 = "#181c22" -- ---
M.base02 = "#22262d" -- --
M.base03 = "#7b776e" -- -
M.base04 = "#949088" -- +
M.base05 = ... |
-- LuaTools้่ฆPROJECTๅVERSION่ฟไธคไธชไฟกๆฏ
PROJECT = "adcdemo"
VERSION = "1.0.0"
log.info("main", PROJECT, VERSION)
-- ไธๅฎ่ฆๆทปๅ sys.lua !!!!
local sys = require "sys"
--ๆทปๅ ็กฌ็้ฒๆญข็จๅบๅกๆญป
wdt.init(15000)--ๅๅงๅwatchdog่ฎพ็ฝฎไธบ15s
sys.timerLoopStart(wdt.feed, 10000)--10sๅไธๆฌก็
sys.taskInit(function()
while 1 do
adc.open(0) -- ๆจกๅไธ็AD... |
------------------------------------------------------------------
-- WidgetManager Extension --
------------------------------------------------------------------
WidgetManager = {}
function WidgetManager:ext()
self.widgets = {}
self.focus = 0
end
function WidgetManager:resiz... |
local _0_0 = nil
do
local name_0_ = "kkslider.aniseed.fennel"
local loaded_0_ = package.loaded[name_0_]
local module_0_ = nil
if ("table" == type(loaded_0_)) then
module_0_ = loaded_0_
else
module_0_ = require("kkslider.aniseed.deps.fennel")
end
module_0_["aniseed/module"] = name_0_
module_0_["a... |
--------------------------------
-- @module PhysicsShapeEdgeChain
-- @extend PhysicsShape
-- @parent_module cc
--------------------------------
--
-- @function [parent=#PhysicsShapeEdgeChain] getPointsCount
-- @param self
-- @return int#int ret (return value: int)
------------------------------... |
--[[
ยฉ CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local SKIN = {
DermaVersion = 1,
PrintName = "Clockwork",
Author = "kurozael"
}... |
local number = 600851475143
local factor = 0
while number > factor do
factor = (function(n)
for i = 2, math.sqrt(n) do
if n % i == 0 then
return i
end
end
return n
end)(number)
number = number / factor
end
print(factor) |
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/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
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... |
function testAppFromName()
local app = hs.appfinder.appFromName("Finder")
assertIsUserdata(app)
assertIsEqual("Finder", app:name())
assertIsNil(hs.appfinder.appFromName("Non-never-not-existingApp"))
return success()
end
function testAppFromWindowTitle()
hs.openConsole()
local app = hs.appfinder.appFrom... |
--------------------------------------------------------------------------------
-- This class implements the Func Mux task.
-- See README.md for details.
--------------------------------------------------------------------------------
require("tasks.task")
local FuncMux, Parent = torch.class("FuncMux", "Task")
func... |
require "_Utils"
local XmlWriter = require_local_path("LuaTools/", "XmlWriter")
local slaxmldom = require_local_path("SLAXML/", "slaxdom")
local trans = require "_TranslateXML"
local hFile = io.open("vk_new.xml")
assert(hFile, "???")
local str = hFile:read("*a")
hFile:close()
local vk_new = slaxmldom:dom(st... |
ENT.Base = "base_entity"
ENT.Type = "brush"
--[[---------------------------------------------------------
Name: Initialize
-----------------------------------------------------------]]
function ENT:Initialize()
end
--[[---------------------------------------------------------
Name: StartTouch
---------... |
require(settings.get("ghu.base").."core/apis/ghu")local a=require("am.tree")local b=require("am.core")local function c(d)if d==nil then d="true"end;d=b.strBool(d)a.harvestTrees(not d)end;c(arg[1])
|
local S = core.get_translator(skeleton.modname)
local bones_sound, death_sound
if core.global_exists("sounds") then
if sounds.skeleton then
bones_sound = sounds.skeleton:get(1)
end
if sounds.zombie_death then
death_sound = sounds.zombie_death:get(1)
end
end
local mob_name = "skeleton:skeleton"
local base_d... |
local BaseClass = require "NJLI.STATEMACHINE.SceneEntityState"
local Leaderboards = {}
Leaderboards.__index = Leaderboards
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--############... |
local coroutine = require "coroutine"
local mq = require "koh.mq"
local JSON = require "luvit.json"
local url = require "luvit.url"
local http = require "luvit.http"
local https = require "luvit.https"
local odbxuv = require "odbxuv"
local epoch = require "luautil.epoch"
local ibmt = require "ibmt"
local createQueryBu... |
local ADDDONNAME, CFR = ...
function CFR:GetPlayerCovenant()
local covenantID = C_Covenants.GetActiveCovenantID()
return covenantID
end
function CFR:HasItemReward(itemID)
return not not self:GetThemeForItem(itemID)
end
function CFR:GetCovenantForItem(itemID)
if self.kyrian_items[itemID] then
... |
return {
armundertow = {
acceleration = 0.04,
activatewhenbuilt = true,
brakerate = 0.24,
buildcostenergy = 5018,
buildcostmetal = 390,
builder = false,
buildpic = "armundertow.dds",
buildtime = 7500,
canattack = true,
canguard = true,
canhover = true,
canmove = true,
canpatrol = true,
cans... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.