content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local util = require("nightfox.util")
local M = {}
-- Return the initial colors of the colorscheme. This is the default defined colors
-- without the color overrides from the configuration.
function M.init()
-- Reference:
-- https://coolors.co/3b3a32-f1756f-6de874-f0e656-a381ff-ff87b1-7ef5b8-c7b7c7-f5b87f-ffb8d1
... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------
-- $Id: md5.lua,v 1.4 2006/08/21 19:24:21 carregal Exp $
----------------------------------------------------------------------------
local core
local string = string or require"string"
if string.find(_VERSION, "Lua 5.0") then
local c... | nilq/small-lua-stack | null |
local component = require("component")
local commandBlock
local event = require("event")
local gpu = component.gpu
local ecs = require("ECSAPI")
if not component.isAvailable("command_block") then
ecs.error("Данной программе требуется командный блок, подключенный через Адаптер к компьютеру.")
return
else
commandBlo... | nilq/small-lua-stack | null |
--[[ Copyright (c) 2018 Pavel "sofo" Schoffer
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, publish, dis... | nilq/small-lua-stack | null |
-- project
set_project("tbox")
-- set xmake minimum version
set_xmakever("2.5.1")
-- set project version
set_version("1.6.6", {build = "%Y%m%d%H%M"})
-- set warning all as error
set_warnings("all", "error")
-- set language: c99
stdc = "c99"
set_languages(stdc)
-- add defines to config.h
set_configvar("_GNU_SOURCE"... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Ranguemont Pass
-- NM: Tros
-- Used in Quests: Painful Memory
-- !pos -289 -45 212 166
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
function onMobDeath(mob, player, isKiller)
if (player:hasKeyItem(tpz.ki.... | nilq/small-lua-stack | null |
local pdk = require("apioak.pdk")
local role = require("apioak.db.role")
local plugin = require("apioak.db.plugin")
local upstream = require("apioak.db.upstream")
local table_name = "oak_projects"
local _M = {}
_M.table_name = table_name
function _M.all(project_name)
local sql
if project_name and... | nilq/small-lua-stack | null |
AddCSLuaFile()
SWEP.HoldType = "ar2"
if CLIENT then
SWEP.PrintName = "Poltergeist"
SWEP.Slot = 7
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 54
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "polter_desc"
};
SWEP.Icon = "vgui/ttt/icon_polter"
end
SWEP.Base = "weapon_ttt... | nilq/small-lua-stack | null |
-- Note: This file is _not_ using any LUA dependency on purpose. (like: md5, lfs)
-- Please keep in mind when you modify this script.
-- Initialize the pseudo random number generator
math.randomseed(os.time())
MESSAGE_PATH = ""
METHOD = "POST"
NR_FILES = 100
-- Load body informations from files
bodies = {}
for i=1... | nilq/small-lua-stack | null |
--[[
Name: "cl_player.lua".
Product: "nexus".
--]]
nexus.player = {};
nexus.player.sharedVars = {};
-- A function to get whether a player is noclipping.
function nexus.player.IsNoClipping(player)
if ( player:GetMoveType() == MOVETYPE_NOCLIP
and !player:InVehicle() ) then
return true;
end;
end;
-- A function to ... | nilq/small-lua-stack | null |
-- mods/default/tools.lua
-- support for MT game translation.
local S = default.get_translator
-- The hand
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level = 0,
groupcaps = {
crumbly ... | nilq/small-lua-stack | null |
local _M = {}
local kong = kong
local WARNING_SHOWN = false
function _M.serialize(ongx, okong)
if not WARNING_SHOWN then
kong.log.warn("basic log serializer has been deprecated, please modify " ..
"your plugin to use the kong.log.serialize PDK function " ..
"instead")
... | nilq/small-lua-stack | null |
help(
[[
HISAT2 is a fast and sensitive alignment program for mapping next-generation sequencing reads (both DNA and RNA) against the general human population (as well as against a single reference genome).
]])
whatis("Loads HISAT2 program that aligns RNA-Seq")
local version = "2.0.3-beta"
local base = "/cvmfs/oasis.... | nilq/small-lua-stack | null |
local M = {}
function M.get(nodes, total_cost, total_score)
return {
nodes = nodes,
total_cost = total_cost,
total_score = total_score
}
end
return M
| nilq/small-lua-stack | null |
-- common code for all types of grenade
AddCSLuaFile()
DEFINE_BASECLASS "weapon_tttbase"
SWEP.HoldReady = "grenade"
SWEP.HoldNormal = "slam"
if CLIENT then
SWEP.PrintName = "Incendiary grenade"
SWEP.Instructions = "Burn."
SWEP.Slot = 3
SWEP.ViewModelF... | nilq/small-lua-stack | null |
local componentHelpers = {}
local tableHelpers = require "helpers/tableHelpers"
local io = require "io"
local component = require "component"
-- Generates and returns a table of all proxies for given component type
componentHelpers.proxyComponents = function(type)
return tableHelpers.map(component.list(type),
... | nilq/small-lua-stack | null |
require "spec/setup/defines"
require "stdlib/utils/table"
require "stdlib/event/event"
describe("Force",
function()
setup(
function()
--_G.serpent = require("serpent")
_G.script = {
on_event = function(_, _) return end,
on... | nilq/small-lua-stack | null |
local xmlns_ping = "urn:xmpp:ping";
function verse.plugins.ping(stream)
function stream:ping(jid, callback)
local t = socket.gettime();
stream:send_iq(verse.iq{ to = jid, type = "get" }:tag("ping", { xmlns = xmlns_ping }),
function (reply)
if reply.attr.type == "error" then
local type, condition, tex... | nilq/small-lua-stack | null |
--local it = require("z.it")
local z=z
local pairs=pairs
local type=type
local tonumber=tonumber
local naughty=require("naughty")
local awful=require("awful")
local client=client
module("z.it.utils")
--I need to rewrite this, and also define somewhere how i want this to behave,
--This will sometimes move client t... | nilq/small-lua-stack | null |
settings = {
world = {
small_step_size = 1 / 120.0,
screen_width = 100,
screen_pixel_width = 1280,
screen_pixel_height = 720,
global_drag = 0.145
},
debug = {
show_lines = false,
no_sound = false,
skip_intro = false,
render_walls = false,
},
priorities = {
splotches ... | nilq/small-lua-stack | null |
local Formatters=require 'formatters'
local lattice=require 'lattice'
local Amen={}
local TYPE_SCRATCH=1
local TYPE_RATE=2
local TYPE_JUMP=3
local TYPE_SPLIT=5
local TYPE_LOOP=6
local TYPE_LPF=7
local TYPE_STROBE=8
local TYPE_VINYL=9
local TYPE_HPF=10
function Amen:new(args)
local l=setmetatable({},{__index=Amen})
... | nilq/small-lua-stack | null |
--[[
Oh my god was this a headache.
I delved into minecraft's code, and found how the sky is determined.
First, it gets the temperature of the biome, and generates it from HUE, SATURATION AND VALUE
sO WE HAVE TO CONVERT THAT TO RGB!
ARGH!
And AFTER that, we need to dETERMINE THE ANGLE OF THE SKY!
It's all a ma... | nilq/small-lua-stack | null |
--file config.lua
--@author: xiangchao<cloudaice@gmail.com>
module(...)
servers =
{
{
name='server1',
host='127.0.0.1',
port=6380,
db=0
},
{
name='server2',
host='127.0.0.1',
port=6379,
db=0
}
}
-- 应用名称
apps =
{
'default'
}
-- 访问的... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Madaline
-- Standard Info NPC
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
local Telmoda_Madaline = player:getCharVar("Telmoda_Madaline_Event")
if (Telmoda_Madaline ~= 1) t... | nilq/small-lua-stack | null |
fx_version "adamant"
games {"rdr3"}
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
client_scripts {
'config.lua',
'client/client.lua',
}
server_scripts {
'server/server.lua',
}
shared_scripts {
'locale.lua',
'locales/... | nilq/small-lua-stack | null |
require("common.common")
SceneHelper = ClassDefinition(SceneHelper);
function SceneHelper.setEntityScale(entity, scale)
if (entity == nil or entity == INVALID_ENTITY) then
return;
end
local scene = Scene.GetMainScene();
local transform = scene:GetTransform(entity);
if (transform == nil) ... | nilq/small-lua-stack | null |
require "prototypes.dummy-spidertron"
| nilq/small-lua-stack | null |
require "Polycode/SceneEntity"
class "SceneParticleEmitter" (SceneEntity)
function SceneParticleEmitter:SceneParticleEmitter(...)
if type(arg[1]) == "table" and count(arg) == 1 then
if ""..arg[1]:class() == "SceneEntity" then
self.__ptr = arg[1].__ptr
return
end
end
for k,v in pairs(arg) do
if ty... | nilq/small-lua-stack | null |
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
require "torch"
re... | nilq/small-lua-stack | null |
-- This example was intended to show some simple Cairo drawing in a
-- GtkDrawingArea widget, but it ended up being more of a demonstration
-- of some Gtk+ techniques. Search for 'Cairo' in the code to find the
-- bits which directly use the Lua-oocairo library.
--
-- Quite accidentally this program also demonstrates ... | nilq/small-lua-stack | null |
function modalbind.init()
local modewibox = wibox({
ontop=true,
visible=false,
x=0,
y=0,
width=1,
height=1,
opacity=defaults.opacity,
bg=beautiful.modebox_bg or
beautiful.bg_normal,
fg=beautiful.modebox_fg or
beautiful.fg_normal,
shape=gears.shape.round_rect,
type="toolbar"
}... | nilq/small-lua-stack | null |
-- Copyright (c) 2016 Luke San Antonio
-- All rights reserved.
version{"330"}
vs_input{location = 0, "vec3", "vertex"}
vs_input{location = 1, "vec3", "normal_in"}
vs_input{location = 2, "vec2", "uv_in"}
fs_output{"vec4", "diffuse_out"}
vs_fs_interface{"vec2", "uv"}
vs_fs_interface{"vec4", "world_pos"}
vs_fs_interf... | nilq/small-lua-stack | null |
---@class Item : zombie.scripting.objects.Item
---@field public clothingExtraSubmenu String
---@field public DisplayName String
---@field public Hidden boolean
---@field public Icon String
---@field public Medical boolean
---@field public CannedFood boolean
---@field public SurvivalGear boolean
---@field public Mechani... | nilq/small-lua-stack | null |
Clockwork.config:AddToSystem("Permanent door owners", "perma_door_owners", "Whether or not characters will keep their doors forever, unpurchasable by others.")
Clockwork.config:AddToSystem("Keep doors on death", "keep_doors_on_death", "Whether or not characters will keep their doors when they die.") | nilq/small-lua-stack | null |
if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
share.selecter = share.selecter or "peco"
nyagos.alias.dump_temp_out = function()
for _,val in ipairs(share.dump_temp_out) do
nyagos.write(val,"\n")
end
end
nyagos.bindkey("C-o",function(this)
... | nilq/small-lua-stack | null |
--[[
Farming settings can be changed here and kept inside mod folder
even after the mod has been updated, or you can place inside
world folder for map specific settings.
--]]
local viscosity=1
if minetest.settings:get("farming.rarety") then
farming.config:set_float("rarety",minetest.settings:get("farming.rarety... | nilq/small-lua-stack | null |
local playsession = {
{"nikkolai0404", {24444}},
{"Matik12", {25734}},
{"autopss", {146773}},
{"Thantanos", {5517}},
{"Elrael", {247440}},
{"minipini55", {1913}},
{"Dragonfest", {5565}},
{"Erikost3", {1523}},
{"Biker", {88428}},
{"Reyand", {169182}},
{"Guy_732", {198957}},
{"Nikkichu", {14809}},
{"banakeg"... | nilq/small-lua-stack | null |
--[[oo]]
local _class={}
function class(super)
local class_type={}
class_type.ctor=false
class_type.super=super
class_type.new=function(...)
local obj={}
do
local create
create = function(c,...)
if c.super then
create(c.super,...)
end
if c.ctor then
c.ctor(obj,...)
e... | nilq/small-lua-stack | null |
node.setcpufreq(node.CPU160MHZ)
------------------------------
-- Setup and common functions
------------------------------
function printHeap(x)
print("---heap "..x..":", node.heap())
end
printHeap("at beginning")
require "TaskQueue"
require "I2CLib"
require "PCA9685"
require "GPIOSTEP"
require "WIFILib"
printH... | nilq/small-lua-stack | null |
local Class = require("lbase/class")
local LinkedList = require("lbase/linked_list")
--- @class LruCache : Object
local LruCache = Class.Object:inherit("LruCache")
---
--- Constructs lru cache object.
--- @param capacity number
function LruCache:constructor(capacity)
self.m_recentList = LinkedList:new()
self.m_cach... | nilq/small-lua-stack | null |
--[[
NutScript 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 3 of the License, or
(at your option) any later version.
NutScript is distributed in the hope that it will ... | nilq/small-lua-stack | null |
--[[
* author : kaishiqi
* descpt : create on 2016-03-18
]]
local Entry = {}
Entry.__index = Entry
-------------------------------------------------
-- life cycle
function Entry.new()
local instance = setmetatable({}, Entry)
instance:ctor()
return instance
end
function Entry:ctor()
self.context_ ... | nilq/small-lua-stack | null |
local ID_DUMPTREE = NewID()
local ID_DUMPOSC = NewID()
local ID_BOOTSC = NewID()
local ID_BOOTSC_internal = NewID()
local ID_QUITSC = NewID()
local ID_AUTODETECTSC = NewID()
local SCProcess
function InitSCMenu()
local SCMenu = wx.wxMenu{
{ ID_DUMPTREE, "Dump ... | nilq/small-lua-stack | null |
---
--- Array v0.3 by yangruihan
--- See https://github.com/RayStudio36/array.lua for usage documentation.
--- Licensed under MIT.
--- See https://opensource.org/licenses/MIT for details.
---
---@class Array
local Array = {}
Array.__index = function(t, key)
if type(key) == "number" then
return Array.get(t... | nilq/small-lua-stack | null |
local function printf(...) DEFAULT_CHAT_FRAME:AddMessage('|cff0061ff[RaidBrowser]: '..format(...)) end
local function script_error(type, err)
local name, line, msg = err:match('%[string (".-")%]:(%d+): (.*)')
printf( '%s error%s:\n %s', type,
name and format(' in %s at line %d', name, line, msg) or '',
err )
e... | nilq/small-lua-stack | null |
-- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.ped_blacklist then return end
local PedBlacklist = class("PedBlacklist", vRP.Extension)
-- METHODS
function PedBlacklist:__construct()
vRP.Extension.__construct(self)
self.ped_models = {} -- map of model... | nilq/small-lua-stack | null |
local Player = {} -- simple table for Player. As there is only one, class not required
local Shared = require "shared"
function Player.setProperties(width, height, speed)
--[[ static class equivalent of a constructor ]]
Player.speed = speed
Player.rect = {} -- required for collision detection
Player.rect.x... | nilq/small-lua-stack | null |
local HU = require "luahotupdate"
HU.Init("hotupdatelist", {"D:\\ldt\\workspace\\hotimplement\\src"}) --please replace the second parameter with you src path
function sleep(t)
local now_time = os.clock()
while true do
if os.clock() - now_time > t then
HU.Update()
return
end
end
end
... | nilq/small-lua-stack | null |
local fiber = require("fiber")
local expirationd = require("expirationd")
local t = require("luatest")
local g = t.group("atomic_iteration")
local helpers = require("test.helper")
g.before_all(function()
helpers.init_spaces(g)
end)
g.after_each(function()
helpers.truncate_spaces(g)
end)
function g.test_pass... | nilq/small-lua-stack | null |
--[[
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("featureflags","Administrative","Opens up a window containing th... | nilq/small-lua-stack | null |
local t = Def.ActorFrame{}
t[#t+1] = Def.Actor{
CodeMessageCommand=function(self,params)
if params.Name == "AvatarShow" then
SCREENMAN:AddNewScreenToTop("ScreenAvatarSwitch");
end;
end;
};
t[#t+1] = LoadActor("../_frame");
t[#t+1] = LoadActor("currentsort");
t[#t+1] = LoadActor("../_cursor");
t[#t+1] = Load... | nilq/small-lua-stack | null |
-- The template opponent phase
local opponentPhaseOrbit = {}
opponentPhaseOrbit.__index = opponentPhaseOrbit
local ORBIT_START_ANG = -math.pi / 2
local ORBIT_ANG_SPEED = 1.2 -- How many radians per second should the opponent advance in orbit?
local ORBIT_RADIUS_X = 400
local ORBIT_RADIUS_Y = 250
local ORBIT_FOCAL_... | nilq/small-lua-stack | null |
local mexico = require "mexico"
--
-- Base Clas for a Corona Display Object
--
-- Properties:
--
--
-- Styles:
-- + referencePoint [string] : Center, TopLeft, TopCenter, TopRight, CenterRight
-- BottomRight, BottomCenter, BottomLeft, CenterLeft
--
local DisplayObject = mexico.class(mexico... | nilq/small-lua-stack | null |
local M = {}
local config = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '‾' },
changedelete = { text = '~' },
},
}
function M.setup(opts)
config = vim.tbl_deep_extend('force', config, opts or {})
-- Gitsigns
require('gitsigns'... | nilq/small-lua-stack | null |
local p = premake
local project = p.project
local workspace = p.workspace
local tree = p.tree
local cmake = p.extensions.cmake
cmake.common = {}
local m = cmake.common
m.cppStandards = {
["C++98"] = "98",
["C++11"] = "11",
["C++14"] = "14",
["C++17"] = "17",
["C++20"] = "20... | nilq/small-lua-stack | null |
executable("tests")
files {"**.cpp"}
dependson {"executor"}
libdirs {libs.boost.libdir}
links {"executor", libs.boost:libnames()}
includedirs {libs.boost.includes, production.includes}
dependson{"TestHelpers", "TestDoubles"} | nilq/small-lua-stack | null |
gameNpcs.updateDialogBox = function(id)
local index = dialogs[id]
if not index.text[index.currentPage] then return end
local t = string.sub(index.text[index.currentPage], 1, index.length)
local text = index.text
ui.updateTextArea(-88001, '<font color="#f4e0c5">'..t, id)
ui.updateTextArea(-88002, "<textformat left... | nilq/small-lua-stack | null |
-- Defines a workspace with two projects inside (Dane and Sandbox)
workspace "Dane"
architecture "x64"
configurations
{
"Debug", -- I think it is pretty clear what it is
"Release", -- Basically a faster version of debug
"Dist" -- Distribution version, absolutely no logging
}
-- Defining a Variable... | nilq/small-lua-stack | null |
return
{
equipment =
{
-- player equipment
{ type = "energy-shield-equipment", name = "energy-shield-mk3-equipment", chassis = { "player" }, roles = { "support", "combat" }, minimum_tier = 3, },
{ type = "energy-shield-equipment", name = "energy-shield-mk4-equipment", chassis = { "player" }, roles = { "support"... | nilq/small-lua-stack | null |
--[[
A system for translating from one XML format to another.
This is done by building an array that describes how to process the source format.
The processing of an element can automatically:
Build a new element, with a possibly different name from the original.
Build new attributes for that new element, with... | nilq/small-lua-stack | null |
--
-- Minimal "one window at a time" configuration.
--
-- There are no features. No keyboard control.
--
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- {{{ Layout
-- Table of layouts to cover with awful.layout.inc, order matters.
local layouts = {
-- awful.layou... | nilq/small-lua-stack | null |
workspace "Kame"
architecture "x64"
configurations {
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Kame/vendor/GLFW/include"
IncludeDir["Glad"] = "Kame/vendor/GLAD/include"
IncludeDir["ImGui"] = "Kame/vendor/imgui"... | nilq/small-lua-stack | null |
function love.load()
music = love.audio.newSource('assets/music/background.mp3', 'stream')
music:setLooping(true)
love.audio.play(music)
cursor = love.graphics.newImage("assets/ui/cursor.png")
love.mouse.setVisible(false)
game_over = false
game_win = false
bullet = Bullet('assets/weapons/red/laserRed... | nilq/small-lua-stack | null |
local files = require 'files'
local guide = require 'parser.guide'
local vm = require 'vm'
local define = require 'proto.define'
local lang = require 'language'
local await = require 'await'
return function (uri, callback)
local ast = files.getAst(uri)
if not ast then
return
end
... | nilq/small-lua-stack | null |
require('lib.keymap')
keymap {'n', '<Leader>l', '<Cmd>Limelight!!<CR>'}
| nilq/small-lua-stack | null |
slot0 = class("ShanchengPTOilPage", import(".TemplatePage.PtTemplatePage"))
slot0.OnFirstFlush = function (slot0)
slot0.super.OnFirstFlush(slot0)
slot0.scrolltext = slot0:findTF("name", slot0.awardTF)
end
slot0.OnUpdateFlush = function (slot0)
slot0.super.OnUpdateFlush(slot0)
onButton(slot0, slot0.battleBtn, fun... | nilq/small-lua-stack | null |
rtr_label_flags = {}
rtr_label_flags["0x0001"] = "VR_RT_LABEL_VALID_FLAG"
rtr_label_flags["0x0002"] = "VR_RT_ARP_PROXY_FLAG"
rtr_label_flags["0x0004"] = "VR_RT_ARP_TRAP_FLAG"
rtr_label_flags["0x0008"] = "VR_RT_ARP_FLOOD_FLAG"
vr_route_table = {}
vr_route_table[1] = {}
vr_route_table[1].field_name = "vr_route_h_op"
vr... | nilq/small-lua-stack | null |
-- Item data (c) Grinding Gear Games
return {
-- Boots: Armour
[[
强袭者【仿品】
粗革短靴
等级需求: 55, 97 Dex
联盟: 夺宝奇兵
固定基底词缀: 0
+(30-40) 敏捷
闪避值提高 (20-40)%
+(50-70) 最大生命
移动速度提高 25%
灵巧效果提高 (10-30)%
近期内你若击中敌人,则移动速度提高 10%
]],
[[
溃败【仿品】
暗影之靴
等级需求: 63, 62 Dex, 62 Int
联盟: 夺宝奇兵
固定基底词缀: 0
该装备的闪避与能量护盾提高 (100-150)%
晕眩回复和格挡回复提高 (30-40)%
插入的旅... | nilq/small-lua-stack | null |
function onCreate()
makeLuaSprite('spaceback', 'space', -340, -300)
setScrollFactor('spaceback', 0.2, 0.2);
addLuaSprite('spaceback', false)
close(true);
end | nilq/small-lua-stack | null |
local TextEditor = script:FindFirstAncestor("TextEditor")
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local Roact = require(TextEditor.Packages.Roact)
local RoactRodux = require(TextEditor.Packages.RoactRodux)
local Llama = require(TextEditor.Packages.Llama)
local Utilities = require(TextEditor... | nilq/small-lua-stack | null |
bot_token = "362176057:AAHhNhzqs7JqNWQO8q4UimwBkoriLR2HK40"
send_api = "https://api.telegram.org/bot"..bot_token
bot_version = "1.7"
sudo_name = "Mizbanivps.com"
sudo_id = 250049437
sudo_user = "Mizbanivps.com"
nerkh = "5"
| nilq/small-lua-stack | null |
-- fractional delay line 1
-- with lagrange interpolation
local function FLine (bufSize)
local n,e = math.frexp(bufSize)
bufSize = 2^e --nextpoweroftwo
local buf = ffi.new("double[?]", bufSize)
local mask = bufSize - 1
local h = {[0]=0,0,0,0}
local pos = 0
local ptL = 0
local dc1, dc2 = 0, 0
local lastdt = ... | nilq/small-lua-stack | null |
-- This file is part of broadcaster library
-- Licensed under MIT License
-- Copyright (c) 2019 Ranx
-- https://github.com/r4nx/broadcaster
-- Version 0.3.0
local handlers = {}
local logger = require 'log'
logger.usecolor = false
logger.level = 'info'
local proto = require 'broadcaster.proto'
local utils = require '... | nilq/small-lua-stack | null |
-- Harpoon Setup --
require("harpoon").setup({
global_settings = {
save_on_toggle = true,
save_on_change = true,
enter_on_sendcmd = true,
},
})
| nilq/small-lua-stack | null |
return Def.Actor{ OnCommand=function(self) self:sleep(1) end } | nilq/small-lua-stack | null |
local vector = require "vector"
require "shared_vars"
require "motor_schema"
require "utilities"
require "swarm_intelligence"
---- Global vars ----
-- Velocity
MIN_VELOCITY = -15
MAX_VELOCITY = 15
CRUISE_VELOCITY = 10
ROBOT_DRIVE_SHAFT = robot.wheels.axis_length / 2 -- 7
PI = math.pi
-- Led colors
RESTING_LED_COLOR... | nilq/small-lua-stack | null |
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_rulebook\cr_languages.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
SetSource({
SourceLong="Core Rulebook",
SourceShort="CR",
SourceWeb="http://paizo.com/store/downloads/pathfinder/pat... | nilq/small-lua-stack | null |
Facet = {}
function Facet:create(entity, system, o)
o = o or {}
setmetatable(o, self)
self.__index = self
if entity then
o._of = entity
end
if system then
o._system = system
end
return o
end
function Facet:new(entity, system, o)
return Facet:create(entity, system, o)
end
function Facet... | nilq/small-lua-stack | null |
return {'unicaat','uniciteit','unicum','unie','unief','uniek','uniekheid','unieverdrag','unificatie','unificeren','uniform','uniformdrager','uniformeren','uniformering','uniformiteit','uniformjas','uniformkleding','uniformpet','uniformverbod','unikleurig','unikleurige','unilateraal','unilateralisme','unionist','unionis... | nilq/small-lua-stack | null |
function love.conf(t)
t.console = true
t.window.width = 1280
t.window.height = 720
end | nilq/small-lua-stack | null |
-- 3D ME Command
Citizen.CreateThread(function()
TriggerEvent('chat:addSuggestion', '/me', 'Can show personal actions, face expressions & much more.')
end)
local nbrDisplaying = 1
function DoesPlayerExist(pServerId)
return exports['npc-infinity']:DoesPlayerExist(pServerId)
end
RegisterCommand('me', function(sou... | nilq/small-lua-stack | null |
function onCastSpell(creature, variant)
return creature:conjureItem(2260, 2305, 2)
end
| nilq/small-lua-stack | null |
function readAll(file)
local f = io.open(file, "rb")
local content = f:read("*all")
f:close()
return content
end
ngx.header["Content-Type"] = "application/x-www-form-urlencoded"
if ngx.var.http_accept_esi == "1.0" then
ngx.header["Edge-Control"] = "dca-enable-debugging-tag"
... | nilq/small-lua-stack | null |
require('hop').setup({
case_insensitive = true,
})
vim.api.nvim_set_keymap('n', 'f', "<cmd>lua require'hop'.hint_char1()<cr>", {noremap = true})
vim.api.nvim_set_keymap('o', 'f', "<cmd>lua require'hop'.hint_char1()<cr>", {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>w', "<cmd>lua require'hop'.hint_words(... | nilq/small-lua-stack | null |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | nilq/small-lua-stack | null |
return {
[1]= "anime",
[2]= "weeaboo",
[3]= "otaku",
}
| nilq/small-lua-stack | null |
workspace "Meow"
architecture "x64"
configurations
{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "Dependencies/GLFW"
include "Dependencies/GLAD"
IncludeDirs = {}
IncludeDirs["GLFW"] = "Dependencies/GLFW/include"
IncludeDirs["GLAD"] = "Dependencies/GLAD/includ... | nilq/small-lua-stack | null |
vim.opt.number = false
vim.opt.relativenumber = false
vim.opt.numberwidth = 3
vim.opt.signcolumn = 'yes'
vim.opt.laststatus = 1
vim.opt.showcmd = false
vim.opt.showmode = true
vim.opt.ruler = false
vim.opt.expandtab = true
vim.opt.smarttab = true
vim.opt.smartindent = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
... | nilq/small-lua-stack | null |
local facets = require("lua_schema.facets");
local basic_stuff = require("lua_schema.basic_stuff");
local error_handler = require("lua_schema.error_handler");
local __list_handler_class = {}
__list_handler_class.type_name = 'list';
__list_handler_class.datatype = 'list';
function __list_handler_class:is_deserialized_... | nilq/small-lua-stack | null |
if not projectDir then
paths.dofile('../projectdir.lua')
end
------------------------------------------------------------------------------------------------------------
local function load_logger(logger_filename)
return paths.dofile('../util/logger.lua')(logger_filename)
end
--------------------------------... | nilq/small-lua-stack | null |
function update():
end
function draw():
plank(vec3(0, 0, -0.5), vec3(0, 0, 0.5), 0, palette[18], 0.6)
plank(vec3(0, 0, -0.5), vec3(0, 1, -0.6), 0, palette[13], 0.1)
plank(vec3(-0.3, 1, -0.6), vec3(0.3, 1, -0.6), 0.5, palette[21], 0.2)
end
| nilq/small-lua-stack | null |
--[[
Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
local _, Bartender4 = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
-- register module
local BagBarMod = Bartender4:NewModule("BagBar", "AceHook-3.0")
-- fetch upvalues
local ButtonBar =... | nilq/small-lua-stack | null |
local funcs = {}
local meta = {}
local met = {}
meta.__index = met
function funcs.new(ID)
local tb = {
content = {},
buttons = {}
}
setmetatable(tb, meta)
return tb
end
function met:addButton(button)
self.buttons[#self.buttons + 1] = button
end
function met:getButton(btnID)
for i = 1, #self.butt... | nilq/small-lua-stack | null |
local plugin_name = vim.split((...):gsub("%.", "/"), "/", true)[1]
local M = require("vusted.helper")
M.root = M.find_plugin_root(plugin_name)
M.test_data_path = "spec/test_data/"
M.test_data_dir = M.root .. "/" .. M.test_data_path
function M.before_each()
M.new_directory("")
vim.api.nvim_set_current_dir(M.test_d... | nilq/small-lua-stack | null |
--[[ BaseLua
https://github.com/dejayc/BaseLua
Copyright 2012 Dejay Clayton
All use of this file must comply with the Apache License,
Version 2.0, under which this file is licensed:
http://www.apache.org/licenses/LICENSE-2.0 --]]
--[[
----------------------------------------------------------... | nilq/small-lua-stack | null |
--!nonstrict
--[[
Constructs and returns objects which can be used to model derived reactive
state.
]]
local src = script.Parent.Parent
local packages = src.Parent
local maidConstructor = require(packages:WaitForChild("maid"))
local Package = script.Parent.Parent
local Types = require(Package.Types)
local captureD... | nilq/small-lua-stack | null |
local Object = require 'core.object'
local frameRate = 1/60
local ops = {}
function ops.greater(a, b)
if a >= b then return 0 end
return b - a
end
function ops.less(a, b)
if a <= b then return 0 end
return b - a
end
function ops.l(a, b)
if a < b then return 0 end
return b - a
end
function ops.g(... | nilq/small-lua-stack | null |
--[[
The player functions expose certain information about the player.
]]
---@return Vector Player center position
---@see @https://www.teardowngame.com/modding/api.html#GetPlayerPos
function GetPlayerPos() end
---@param includePitch boolean Include the player pitch (look up/down) in transform
---@return Transform Cu... | nilq/small-lua-stack | null |
--------------------------------
-- @module Shaky3D
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
-- brief Initializes the action with a range, shake Z vertices, grid size and duration.<br>
-- param duration Specify the duration of the Shaky3D action. It's a value in seconds.<br>
-- pa... | nilq/small-lua-stack | null |
-- This file is generated by proto-gen-lua. DO NOT EDIT.
-- The protoc version is 'v3.19.2'
-- The proto-gen-lua version is 'Develop'
local protobuf = require "protobuf.protobuf"
local registry = require "protobuf.registry"
local proto2_enum_pb_desc = require "proto2.enum_pb_desc"
local proto2_enum_pb = {}
---@ali... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.