content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
require('lualine').setup({
options = {
icons_enabled = true,
theme = 'onedark',
},
extensions = {
'nvim-tree',
},
})
| nilq/small-lua-stack | null |
package.name = "drawstuff"
package.language = "c++"
package.objdir = "obj/drawstuff"
package.links = {}
-- Append a "d" to the debug version of the libraries
for k,v in ipairs(project.configs) do
if (string.find(v, "Debug") ~= nil) then
package.config[v].target = "drawstuffd"
end
end
-- Output ... | nilq/small-lua-stack | null |
--!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... | nilq/small-lua-stack | null |
ember_spirit_flame_guard_nb2017 = class({})
--------------------------------------------------------------------------------
function ember_spirit_flame_guard_nb2017:OnSpellStart()
local hTarget = self:GetCursorTarget()
if hTarget == nil or hTarget:IsInvulnerable() then
return
end
hTarget:AddNewModifier( self:... | nilq/small-lua-stack | null |
-- Auto-generated bindings for component 'dropper'
dropper = {}
dropper.type = "dropper"
dropper.address = "00000000-0000-0000-0000-000000000000"
dropper.slot = 0
---
function dropper.pushItemIntoSlot() return end
---
function dropper.expandStack() return end
---
function dropper.listMethods() return end
---
f... | nilq/small-lua-stack | null |
local meta = FindMetaTable( "Entity" );
local pmeta = FindMetaTable( "Player" );
GM.DoorAccessors = {
{ "Type", "UInt", DOOR_UNBUYABLE, 3 },
{ "OriginalName", "String", "" },
{ "Name", "String", "" },
{ "Price", "UInt", 0, 16 },
{ "Building", "String", "" },
{ "Owners", "Table", { } },
{ "Assigned... | nilq/small-lua-stack | null |
string = {}
--[[
Returns the internal numerical codes of the characters s[i], s[i+1], ..., s[j]. The default value for i is 1; the default value for j is i.
Note that numerical codes are not necessarily portable across platforms.
--]]
function string.byte( s, i, j ) return __std.Number end
--[[
Receives zero or more... | nilq/small-lua-stack | null |
mineunit("metadata")
local ItemStack = {}
--* `is_empty()`: returns `true` if stack is empty.
function ItemStack:is_empty() return self._count < 1 end
--* `get_name()`: returns item name (e.g. `"default:stone"`).
function ItemStack:get_name() return self._count > 0 and self._name or "" end
--* `set_name(item_name)`: ... | nilq/small-lua-stack | null |
local module = {}
module.SSID = "myWifiSsid"
module.SSID_PASS = "supersecret"
module.HOST = "ipOfMqttHost"
module.PORT = 1883
module.USER = "userForMqtt"
module.PASS = "passwordForMqtt"
module.ID = "client_" .. node.chipid()
module.ENDPOINT = "nodemcu/relay1/"
module.MAX_RELAY = 7
return module
| nilq/small-lua-stack | null |
local json = require 'json'
ngx.header.content_type = 'application/json';
ngx.say(json.encode{server="ss"..tostring(math.random(1,3)), mode="RW"})
| nilq/small-lua-stack | null |
local PLUGIN = PLUGIN
netstream.Hook("StartPlayMusicCar", function(client, data)
local entity = client:GetVehicle()
local item = nut.item.list[data]
if entity.sound then
entity.sound:Stop()
end
item.options = {}
for k, v in pairs(item.cassette_options) do
item.options[#item.options + 1] = k
e... | nilq/small-lua-stack | null |
-- -*-lua-*-
--
-- $Id: hnetd_wireshark.lua $
--
-- Author: Markus Stenberg <mstenber@cisco.com>
--
-- Copyright (c) 2013 cisco Systems, Inc.
--
-- Created: Tue Dec 3 11:13:05 2013 mstenber
-- Last modified: Sat Jul 14 08:36:53 2018 mstenber
-- Edit time: 123 min
--
-- This is Lua module which provides VERY... | nilq/small-lua-stack | null |
WeaponTypes.addType("LancerLaser", "Lancer", armed) | nilq/small-lua-stack | null |
-- Prints mapping information
require "tests.elasticsearch.config"
broker:requestAndPrint(METHOD.GET, "myindex/_mapping")
| nilq/small-lua-stack | null |
local Event = require("api.Event")
local Gui = require("api.Gui")
local UiSkillTrackerEx = require("mod.skill_tracker_ex.api.gui.UiSkillTrackerEx")
local Chara = require("api.Chara")
data:add_multi(
"base.config_option",
{
{ _id = "enabled", type = "boolean", default = true },
}
)
local function setup_... | nilq/small-lua-stack | null |
plyr = game:GetService("Players").LocalPlayer
char = plyr.Character
head = char:findFirstChild("Head")
torso = char:findFirstChild("Torso")
ra = char:findFirstChild("Right Arm")
la = char:findFirstChild("Left Arm")
rl = char:findFirstChild("Right Leg")
ll = char:findFirstChild("Left Leg")
neck = torso:findFirstChild("N... | nilq/small-lua-stack | null |
--[[
File: src/animations/animationstate.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Defines a current animation state. Effectively the IDrawable interface for a sprite.
]]--
local AnimationFrame = require("src.animations.animationframe")
local AnimationState = Class{funct... | nilq/small-lua-stack | null |
-- opens nvidia control panel + afterburner from their default locations
-- sleep function
function sleep(n)
if
n > 0 then os.execute("ping -n " .. tonumber(n+1) .. " localhost > NUL")
end
end
-- powershell script
local script = [[
#check if AfterBurner has started running
if($Null -eq (get-process "M... | nilq/small-lua-stack | null |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
CustomizableWeaponry:registerAmmo("9x18MM", "9x18MM Rounds", 9, 18)
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "M1911"
SWEP.IconLetter = "f"
killicon.AddFont("cw_deagle", "CW_KillIcons", SWEP.IconLetter, Color(255, 80, 0, 150))... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Advanced Laser Receiver"
ENT.WireDebugName = "Advanced Laser Receiver"
if CLIENT then return end -- Only the server runs the rest of this
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYP... | nilq/small-lua-stack | null |
---@param lastVersion integer
---@param nextVersion integer
RegisterModListener("Loaded", ModuleUUID, function(lastVersion, nextVersion)
if lastVersion < 386859008 then
--Migrating Lua timer data
for i,db in pairs(Osi.DB_LeaderLib_Helper_Temp_LuaTimer:Get(nil,nil)) do
local timerName,uuid = table.unpack(db)
... | nilq/small-lua-stack | null |
local function RequireOwner(args, client, msg)
if (msg.author.id == client.owner.id) then
return true
else
return false, 'This command can only be run by the owner of the bot'
end
end
local function RequireXPermissions(user, err, args, client, msg)
if not msg.guild then
return t... | nilq/small-lua-stack | null |
match_anim_layout=
{
name="match_anim_layout",type=0,typeName="View",time=0,x=0,y=0,width=0,height=0,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1
}
return match_anim_layout; | nilq/small-lua-stack | null |
--[[------------------------------------------------------
lk.Morph test
-------------
...
--]]------------------------------------------------------
require 'lubyk'
local should = test.Suite('lk.Morph')
local function makeMorph(t, filepath)
local morph = lk.Morph()
morph.spawn = function(self, ...)
... | nilq/small-lua-stack | null |
return {
id = 11,
text = {key='/demo/1',text="测试1"},
} | nilq/small-lua-stack | null |
--
assert(StormFox.Env,"Missing framework!")
local snd_glass = Sound("stormfox/rain-glass.wav")
local snd_nextto = Sound("stormfox/rain-light-outside.wav")
local snd_direct = Sound("stormfox/rain-light.wav")
local snd_roof = Sound("stormfox/rain_roof.wav")
local snd_windloop = Sound("ambient/ambience/wind_light02... | nilq/small-lua-stack | null |
-- << Services >> --
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
-- << Constants >> --
local CLIENT = script.Parent.Parent
local PLAYER = Players.LocalPlayer
local GUI = PLAYER:WaitForChild("PlayerGui")
-- << Modules >> --
local DataValues = requir... | nilq/small-lua-stack | null |
factorial = function (n)
local f -- allows f to be recursive
f = function (n, a) -- scope of f begins here
return n==0 and a or f(n-1, a*n) -- proper recursive call
end
return f(n, 1)
end
assert(factorial(10) == 3628800)
| nilq/small-lua-stack | null |
require "ok"
local l = require "lib"
local Data = require "data"
local Space = require "space"
local id = l.id
function _dist( data,space)
data = Data():import("../test/data/raw/auto93.csv")
space = data:space(l.x)
if true then return true end
for _,r1 in pairs(data.rows) do
local n = space:neigh... | nilq/small-lua-stack | null |
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('QuestGuru') then return end
function AS:QuestGuru()
AS:SkinFrame(QuestGuru)
AS:SkinFrame(QuestGuru.count)
AS:SkinFrame(QuestGuruScrollFrame.expandAll)
QuestGuru:SetTemplate("Transparent")
-- Skin QuestGuru Buttons
for i = 1, QuestGuru:GetNumChildren() do
lo... | nilq/small-lua-stack | null |
--[[
Title: KeepworkService Session
Author(s): big
Date: 2019.09.22
Place: Foshan
use the lib:
------------------------------------------------------------
local KeepworkServiceSession = NPL.load('(gl)Mod/WorldShare/service/KeepworkService/Session.lua')
------------------------------------------------------------
]]
... | nilq/small-lua-stack | null |
--[[lit-meta
name = "creationix/uv"
description = "Shim to use 'luv' as 'uv' for non-luvi based apps using luvit libs"
version = "1.8.0"
]]
return require 'luv'
| nilq/small-lua-stack | null |
--
-- Copyright (c) 2016-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.
--
local util... | nilq/small-lua-stack | null |
-- Global cooldown spell id
_GlobalCooldown = 61304;
-- Bloodlust effects
_Bloodlust = 2825;
_TimeWrap = 80353;
_Heroism = 32182;
_AncientHysteria = 90355;
_Netherwinds = 160452;
_DrumsOfFury = 178207;
_Exhaustion = 57723;
local INF = 2147483647;
local _Bloodlusts = {_Bloodlust, _TimeWrap, _Heroism, _Anc... | nilq/small-lua-stack | null |
local a,b
a = #b
a= #"foo" | nilq/small-lua-stack | null |
-- speaker = hs.speech.new()
-- speaker:speak("Hammerspoon is online")
-- hs.notify.new({title="Hammerspoon launch", informativeText="Boss, at your service"}):send()
| nilq/small-lua-stack | null |
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___/ ... | nilq/small-lua-stack | null |
local SPAM_PATTERNS = {
"[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm]%.[Mm][Ee]/%S+",
"[Tt][Ll][Gg][Rr][Mm]%.[Mm][Ee]/%S+",
"[Aa][Dd][Ff]%.[Ll][Yy]/%S+",
"[Ss][Hh]%.[Ss][Tt]/%S+",
"[Tt]%.[Mm][Ee]/%S+",
"[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm]%.[Dd][Oo][Gg]/%S+",
"[Cc][Hh][Aa][Tt]%.[Ww][Hh][Aa][Tt][Ss][Aa][Pp][Pp]%.[Cc][Oo][... | nilq/small-lua-stack | null |
vim.api.nvim_create_augroup('nvim-org-markup', { clear = true })
-- this re-definition simply wraps the callback with a function, so it will
-- use 'require' every time. Slightly slower, but updates when I'm reloading
-- the libraries as I edit the code
vim.api.nvim_create_autocmd('Filetype', {
pattern = 'org',
gr... | nilq/small-lua-stack | null |
E = {
CreateBusStop = 'lacheebus:createBusStop', -- Request to create a bus stop
GetBusStops = 'lacheebus:requestBusStops', -- Requests all bus stops
GetRoutes = 'lacheebus:requestRoutes', -- Gets a list of routes
GetRoute = 'lacheebus:requestSpecificRoute', -- Gets a specific route
... | nilq/small-lua-stack | null |
--init.lua
active_tracks = {}
-- jukebox crafting
minetest.register_craft({
output = 'jdukebox:box',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'ores:mese_crystal', 'ores:diamond', 'ores:mese_crystal'},
{'group:wood', 'group:wood', 'group:wood'},
}
})
--jdukebox
minetest.register_node("jdukeb... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
package.path = package.path..";../?.lua"
local glfw = require("moonglfw")
local gl = require("moongl")
local glmath = require("moonglmath")
local new_plane = require("common.plane")
local new_torus = require("common.torus")
local new_teapot = require("common.teapot")
local new_quad = require("common.... | nilq/small-lua-stack | null |
--[[
Name: init.lua
For: SantosRP
By: TalosLife
]]--
AddCSLuaFile "cl_init.lua"
AddCSLuaFile "shared.lua"
include "shared.lua"
util.AddNetworkString "CookingPot"
function ENT:Initialize()
self:SetModel( "models/props_c17/metalPot001a.mdl" )
self:SetModelScale( 0.9 )
self:PhysicsInit( SOLID_VPHYSICS )
self:Set... | nilq/small-lua-stack | null |
local customization_menu = {};
local table_helpers;
local config;
local screen;
local player;
local large_monster;
local small_monster;
local env_creature;
local language;
local part_names;
local time_UI;
local keyboard;
customization_menu.font = nil;
customization_menu.font_range = { 0x1, 0xFFFF, 0 };
customization... | nilq/small-lua-stack | null |
local utility = require('shared.utility')
local Page = require('settings.pages.page')
local Settings = require('settings.types')
local Custom
do
local _class_0
local _parent_0 = Page
local _base_0 = { }
_base_0.__index = _base_0
setmetatable(_base_0, _parent_0.__base)
_class_0 = setmetatable({
__init = ... | nilq/small-lua-stack | null |
local Char = {}
Token = nil
for i = 48, 57 do table.insert(Char, string.char(i)) end
for i = 65, 90 do table.insert(Char, string.char(i)) end
for i = 97, 122 do table.insert(Char, string.char(i)) end
Citizen.CreateThread(function ()
while Token == nil do
Token = GenerateToken(12)
Citizen.Wait(0)
end
end)
Reg... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS("base_gmodentity")
ENT.PrintName = "Servo"
ENT.Author = "TankNut"
if SERVER then
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self.NumpadCache = {}
self.Directions = Vector()
end
function ... | nilq/small-lua-stack | null |
-- sveta.lua
-- implements aggregation of abstract data by update date and number of updates
-- grouping by id and data
-- allows desc sorting by date or by (2_week_count + total_count),
-- where 2_week_count is number of updates for last two weeks,
-- this updates automatically by fiber every 24 hours
--
--
-- space[4... | nilq/small-lua-stack | null |
C_CovenantCallings = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_CovenantCallings.AreCallingsUnlocked)
---@return boolean unlocked
function C_CovenantCallings.AreCallingsUnlocked() end
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_CovenantCallings.RequestCallings)
function C_CovenantCalli... | nilq/small-lua-stack | null |
local M = {}
local TMUX = os.getenv('TMUX')
-- This function is taken from 'https://github.com/numToStr/Navigator.nvim'.
M.execute = function(command)
local socket = vim.split(TMUX, ',')[1]
local tmux = string.format('tmux -S %s %s', socket, command)
local handle = assert(io.popen(tmux), string.format('Error: ... | nilq/small-lua-stack | null |
workspace "Lumi"
architecture "x64"
startproject "LumiEditor"
configurations
{
"Debug",
"Release",
"RelWithDebInfo",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.architecture}"
group "External"
include "Lumi/ext/entt"
include "Lumi/ext/glad"
include "Lumi/ext/GLFW"
include "Lumi/ext/glm"
i... | nilq/small-lua-stack | null |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Conf = require "moonpie.configuration"
local Files = require "moonpie.utility.files"
local icons = {}
local loaded = false
local function load()
local list = Files.fi... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'dist/aslt.js'
server_script 'server.lua'
| nilq/small-lua-stack | null |
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
API = Proxy.getInterface("API")
cAPI = Tunnel.getInterface("API")
RegisterServerEvent('FRP:TITLESWASH:washMoney')
AddEventHandler('FRP:TITLESWASH:washMoney', function()
local _source = source
local User = API.getUserFromSo... | nilq/small-lua-stack | null |
object_tangible_scout_camokit_camokit_kashyyyk = object_tangible_scout_camokit_shared_camokit_kashyyyk:new {
}
ObjectTemplates:addTemplate(object_tangible_scout_camokit_camokit_kashyyyk, "object/tangible/scout/camokit/camokit_kashyyyk.iff")
| nilq/small-lua-stack | null |
--chapter 13
function div0(a, b)
if b == 0 then
error("DIV BY ZERO !")
else
return a / b
end
end
function div1(a, b) return div0(a, b) end
function div2(a, b) return div1(a, b) end
ok, result = pcall(div2, 4, 2); print(ok, result)
ok, err = pcall(div2, 5, 0); print(ok, err)
ok, err = pc... | nilq/small-lua-stack | null |
local action_state = require('telescope.actions.set')
local actions = require('telescope.actions')
require('telescope').load_extension('project')
require('telescope').setup {
defaults = {
file_sorter = require('telescope.sorters').get_fzy_sorter,
prompt_prefix = ' >',
color_devicons =... | nilq/small-lua-stack | null |
-- A linear boundless 1D space map handler
-- This handler is devised for 1-directional continuous space, where
-- nodes are represented with consecutive integer values: 0, 1, 2, etc.
-- Similar to a range (interval) with no bounds.
-- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0.
-- Implements Node class (fr... | nilq/small-lua-stack | null |
object_tangible_gcw_pvp_rank_rewards_pvp_imperial_battle_banner = object_tangible_gcw_pvp_rank_rewards_shared_pvp_imperial_battle_banner:new {
}
ObjectTemplates:addTemplate(object_tangible_gcw_pvp_rank_rewards_pvp_imperial_battle_banner, "object/tangible/gcw/pvp_rank_rewards/pvp_imperial_battle_banner.iff")
| nilq/small-lua-stack | null |
require("ai.actions.gettargetbase")
function GetTargetCreaturePet:doAction(pAgent)
if (pAgent ~= nil) then
--print("1")
local agent = AiAgent(pAgent)
local command = agent:getLastCommand()
if (command ~= PET_ATTACK and command ~= PET_GUARD and command ~= PET_SPECIAL_ATTACK1 and command ~= PET_SPECIAL_ATTACK2... | nilq/small-lua-stack | null |
whale = {}
function whale.load()
whale.isHurt = false
whale.hurtRemaining = 0
whale.x = 400
whale.y = 300
whale.dir = 0
whale.speed = 50
whale.hunger = 100
whale.health = 100
local whale_sprite = love.graphics.newImage("assets/textures/whale.png")
--whale_sprite:setFilter("neare... | nilq/small-lua-stack | null |
--[[
I'm sure there's a better way to do this
for now - since prune() leaves things in a div -> add - > mul state,
I'll just have this around to convert things to an add -> div -> mul state
TODO make canonical form add -> sub -> mul -> div
--]]
local class = require 'ext.class'
local Visitor = require 'symmath.visitor.... | nilq/small-lua-stack | null |
plr=game:service'Players'.LocalPlayer
ch=plr.Character
tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
m,mouse=plr:GetMouse(),plr:GetMouse()
cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
combo=false
if ch:findFirstChild("Inficio") then
ch.Inficio:Destroy()
end
... | nilq/small-lua-stack | null |
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "PreGame",
id = "Achievements",
PlaceObj('XTemplateTemplate', {
'__template', "OverlayDlg",
'Dock', false,
'HandleMouse', true,
}, {
PlaceObj('XTemplateCode', {
'run', function (self, parent, context)
paren... | nilq/small-lua-stack | null |
--[[
*************************************************************
* Load Application Config.
*************************************************************
]]
local ngx = ngx
local m_config = {}
function m_config.initial(self)
local run_env = ngx.ctx.app.run_env
local prefix = "config.config"
local suff... | nilq/small-lua-stack | null |
scoreManager = {}
local note
function scoreManager.ResetCombo()
scoreManager.combo = 0
end
function scoreManager.AddHealth(value)
gameManager.health = gameManager.health + value
if gameManager.health > 100 then
gameManager.health = 100
end
end
function scoreManager.AddCombo()
scoreManager.combo = sc... | nilq/small-lua-stack | null |
class("GetRefundInfoCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.ConnectionMgr.GetInstance():Send(11023, {
type = 1
}, 11024, function (slot0)
if slot0.result == 0 then
getProxy(PlayerProxy).setRefundInfo(slot1, slot0.shop_info)
pg.m02:sendNotification(GAME.REFUND_INFO_UPDATE)
if slo... | nilq/small-lua-stack | null |
Broadcaster = {}
function Broadcaster.broadcastCurrentMapInfo(map)
local resName = map.resname
local mapRes = getResourceFromName(resName)
local mapInfo = {
name = getResourceInfo(mapRes, "name"),
resourceName = resName,
timesPlayed = 0,
author = getResourceInfo(mapRes, "au... | nilq/small-lua-stack | null |
function update (elapsed)
if curStep >= 1340 and curStep < 1600 then
local currentBeat = (songPos / 1000)*(bpm/180)
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 30 * math.sin((currentBeat + i*0.20) * math.pi), i)
end
else
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'],i)
... | nilq/small-lua-stack | null |
local function check(a, b)
if a ~= b then
error("check failed with "..tostring(a).." ~= "..tostring(b), 2)
end
end
local x,y = 0/0,1
check(x<x, false)
check(x<=x, false)
check(x>x, false)
check(x>=x, false)
check(x==x, false)
check(x~=x, true)
check(x<y, false)
check(x<=y, false)
check(x>y, false)
check(x>=... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2013 David Young dayoung@goliathdesigns.com
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | nilq/small-lua-stack | null |
--[[ Copyright (C) 2018 Google Inc.
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, or
(at your option) any later version.
This program is distributed in the hope th... | nilq/small-lua-stack | null |
local _={}
_[38]={x=29,id=2,y=13,arrangement=0,type=1}
_[37]={x=1,id=1,y=14,arrangement=0,type=4}
_[36]={x=3,id=0,y=3,arrangement=0,type=1}
_[35]={y=2,x=29,id=0}
_[34]={y=3,x=16,dest=23,id=3}
_[33]={y=3,x=16,dest=23,id=2}
_[32]={y=3,x=16,dest=23,id=1}
_[31]={y=3,x=16,dest=23,id=0}
_[30]={y=11,x=5,target=10,id=3}
_[29]=... | nilq/small-lua-stack | null |
-- LuaJack example: oscillator.lua
--
-- Generates a pure sinusoid at a given frequency and sends it to
-- a playback port.
jack = require("luajack")
getopt = require("luajack.getopt")
fmt = string.format
my_name = arg[0]
USAGE =
"Usage: lua " .. my_name .. " [options]" ..
"\nGenerates a pure sinusoid and sends i... | nilq/small-lua-stack | null |
function func1()
func2()
end
function func2()
func3()
end
function func3()
error("some error")
end
func1()
| nilq/small-lua-stack | null |
local A, GreyHandling = ...
--[[
Taken here : https://bitbucket.org/Kjasi/libkjasi/src/48396478046986fa634f35b6ab746cc943ff0042/Kjasi.lua
Get the ID Number and Type from a link.
The returned Type variable lets you identify the type of link. If an ItemID is passed, then the type is "id".
If link is an item, and i... | nilq/small-lua-stack | null |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
local ToggleFrame = ToggleFrame
--Global variables that we don't cache, list them here for... | nilq/small-lua-stack | null |
require('plugins.godot.variables')
| nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- User story: Smoke
-- Use case: GetPolicyConfigurationData
-- Item: Happy path
--
-- Requirement summary:
-- [GetPolicyConfigurationData] SUCCESS: getting SUCCESS:SDL.GetPolicyConfigurationData()
--
-- Description:
-- ... | nilq/small-lua-stack | null |
debugging = nil
local Interface = require 'NJLI.Interface'
local BitmapFont = require 'NJLI.BitmapFont'
local YappyGame = require "YAPPYBIRDS.YappyGame"
RanchersFont = nil
Geometry2D = nil
OrthographicCameraNode = nil
PerspectiveCameraNode = nil
MyGame = nil
gInterface = nil
local Create = function()
if nil == O... | nilq/small-lua-stack | null |
local tonumber = tonumber
local random = math.random
local insert = table.insert
local rcall = redis.call
local results = {}
local member
local argv1 = tonumber(ARGV[1])
local argv2 = tonumber(ARGV[2])
local argv3 = tonumber(ARGV[3])
for member = 1, argv1, 1 do
local score = random(1, argv3)
rcall('zadd', KEY... | nilq/small-lua-stack | null |
return {'papiamento','papiaments','papoea','papoeas','papoeaas','pap','papa','papadum','papaja','paparazzo','papaver','papaverbol','papaverolie','papaverteelt','papaverzaad','papborstel','papbuik','papegaai','papegaaiduiker','papegaaien','papegaaienbek','papegaaienziekte','papendom','papenkop','papenvreter','paper','pa... | nilq/small-lua-stack | null |
#!/usr/bin/env gt
--[[
Copyright (c) 2014-2015 Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014-2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission no... | nilq/small-lua-stack | null |
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local sceneName = ...
local composer = require( "composer" )
local scene = composer.newScene(sceneName)
local _K = require("Application")
scene._composerFileName = nil
scene.classType = "{{classType}}"
scene... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
--
--filename: game.ui.MainBottom
--date:2019/11/22 23:11:45
--author:heguang
--desc:主界面底部
--
---------------------------------------------------------------------------------------------------
local strClassName = 'gam... | nilq/small-lua-stack | null |
EEex_AddResetListener(function()
Infinity_DoFile("M_BDebug")
end)
function getActionbarButton(buttonIndex)
if buttonIndex < 0 or buttonIndex > 11 then
error("buttonIndex out of bounds", 2)
end
local ecx = rdword(rdword(0x93FDBC) + 0xD14)
local actionbarAddress = rdword(rdword(ecx + rbyte(e... | nilq/small-lua-stack | null |
--[[
kms
also, if you came here for a token, move away because there aint any tokens.
special thanks to Ted Kaczynski#2736 or https://github.com/geniiii
]]
--functions--
local discordia = require("discordia")
local json = require("./json")
local stuff = require("./modules/stuff")
local a = "Pref... | nilq/small-lua-stack | null |
-- read/write
function hunger.read(player)
local inv = player:get_inventory()
if not inv then
return nil
end
local hgp = inv:get_stack("hunger", 1):get_count()
if hgp == 0 then
hgp = 21
inv:set_stack("hunger", 1, ItemStack({name = ":", count = hgp}))
else
hgp = hgp
end
if tonumber(hgp) > HUNGER_MAX + 1... | nilq/small-lua-stack | null |
local menu_state = {}
local anims = {
{ dict = "random@mugging3","handsup_standing_base", anim = "handsup_standing_base" },
{ dict = "random@arrests@busted", anim = "idle_a" },
{ dict = "anim@heists@heist_corona@single_team", anim = "single_team_loop_boss" },
{ dict = "mini@strip_club@idles@bouncer@base", anim = "b... | nilq/small-lua-stack | null |
--Credit: BenikUI for this mod.
local KUI, E, L, V, P, G = unpack(select(2, ...))
local KUF = KUI:GetModule('KUIUnits');
local UF = E:GetModule('UnitFrames');
local pairs, select, random = pairs, select, random
-- GLOBALS: hooksecurefunc
local GetNumClasses = GetNumClasses
local GetClassInfo = GetClassInfo
local Ge... | nilq/small-lua-stack | null |
local sti = require "libs.sti.sti"
local map
function love.load()
map = sti("assets/mapas/mapa.lua")
leer_mapa()
crear_capas()
end
function love.draw()
map:draw()
end
function love.update(dt)
map:update(dt)
end
function leer_mapa()
for _, layer in ipairs(map.layers) do
if layer.type=="tilelayer" then
... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local util = common.util
local getItemModel = require(util.getItemModel)
local renderer = {
id = "oneHandedWeapon"
}
function renderer:create()
local character = self.player.character or self.player.Charac... | nilq/small-lua-stack | null |
function OnPlayerMoving( Player )
local LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName()]
-- The world probably was created by an external plugin. Lets load the settings.
if not LimitWorldWidth then
LoadWorldSettings(Player:GetWorld())
LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName(... | nilq/small-lua-stack | null |
--
-- SelectBox Widget.
-- @copyright Jefferson Gonzalez
-- @license MIT
--
local common = require "core.common"
local style = require "core.style"
local Widget = require "widget"
local ListBox = require "widget.listbox"
---@class widget.selectbox : widget
---@field private list_container widget
---@field private lis... | nilq/small-lua-stack | null |
express = class() -- check expressjs.com doc
local socket = require "socket"
-- define methods functions on express
local methods = { "checkout", "copy", "delete", "get", "head", "lock", "merge", "mkactivity", "mkcol", "move", "m-search", "notify", "options", "patch", "post", "purge", "put", "report", "search", "subs... | nilq/small-lua-stack | null |
function all_tests()
local res = {}
for _, x in ipairs(os.files("**.cc")) do
local item = {}
local s = path.filename(x)
table.insert(item, s:sub(1, #s - 3)) -- target
table.insert(item, path.relative(x, ".")) -- source
table.insert(res, item)
end
r... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("Auracle", "enUS", true, true)
L["ARENA"] = ARENA -- noun
L["AURAS"] = AURAS -- plural noun
L["BACKGROUND"] = EMBLEM_BACKGROUND -- noun
L["BATTLEGROUND"] = BATTLEGROUND -- noun
L["BORDER"] = EMBLEM_BORDER -- noun
L["COLOR"] = COLOR -- noun
L["DEFAULT"] = DEFAULT
L["DELETE"]... | nilq/small-lua-stack | null |
--- Handler implementing latest RethinkDB handshake.
-- @module rethinkdb.internal.current_handshake
-- @author Adam Grandquist
-- @license Apache
-- @copyright Adam Grandquist 2016
local crypto = require('crypto')
local errors = require'rethinkdb.errors'
local ltn12 = require('ltn12')
local pbkdf2 = require'rethinkdb... | nilq/small-lua-stack | null |
object_draft_schematic_bio_engineer_bio_component_bio_component_armor_adenine = object_draft_schematic_bio_engineer_bio_component_shared_bio_component_armor_adenine:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_bio_component_bio_component_armor_adenine, "object/draft_schematic/bio_engineer/b... | 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.