content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--[[
Created by Grid2 original authors, modified by Michael
--]]
local Range = Grid2.statusPrototype:new("range")
local Grid2 = Grid2
local tonumber = tonumber
local tostring = tostring
local UnitIsUnit = UnitIsUnit
local UnitInRange = UnitInRange
local IsSpellInRange = IsSpellInRange
local UnitIsDeadOrGhost = UnitIs... | nilq/small-lua-stack | null |
local GUI = require("GUI")
--------------------------------------------------------------------------------
local workspace = GUI.workspace()
workspace:addChild(GUI.panel(1, 1, workspace.width, workspace.height, 0x262626))
local filesystemChooser = workspace:addChild(GUI.filesystemChooser(2, 2, 30, 3, 0xE1E1E1... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1713, "DBM-Nighthold", nil, 786)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15140 $"):sub(12, -3))
mod:SetCreatureID(101002)
mod:SetEncounterID(1842)
mod:SetZone()
--mod:SetUsedIcons(8, 7, 6, 3, 2, 1)
mod:SetHotfixNoticeRev(15020)
mod.respawnTime = 25--or 30
mo... | nilq/small-lua-stack | null |
-- Bartender4 Locale
-- Please use the Localization App on WoWAce to Update this
-- http://www.wowace.com/projects/bartender4/localization/ ;¶
local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "esES") or LibStub("AceLocale-3.0"):NewLocale("Bartender4", "esMX")
if not L then return end
L[ [=["None" as modifie... | nilq/small-lua-stack | null |
local Hamming = {}
function Hamming.compute(a,b)
if #a ~= #b then return -1 end
local d = 0
for i=1,#a do
if a:sub(i,i) ~= b:sub(i,i) then
d = d + 1
end
end
return d
end
return Hamming
| nilq/small-lua-stack | null |
CSR = Mat.new( "CSR" )
-- eof
| nilq/small-lua-stack | null |
/*******************************
Dynamic Memory Gate
for Wiremod
(C) Sebastian J.
********************************/
include('shared.lua')
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Initialize()
end
function ENT:OnRemove()
end
function ENT:Draw()
... | nilq/small-lua-stack | null |
local class = require("libs/middleclass/middleclass")
Beam = class("Beam")
function Beam:initialize(charge_time)
if charge_time >= 3 then
charge_time = 10
end
self.charge = charge_time * 10
self.alive_time = 0
self.max_alive_time = charge_time / 2
end
function Beam:draw()
local rc = ... | nilq/small-lua-stack | null |
--[[
Panluna test suite for pandoc interation
Copyright (c) 2017 Albert Krewinkel
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED ... | nilq/small-lua-stack | null |
local customParamSetViewScore=
{
name="customParamSetViewScore",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="timesView",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=86,visible=1,fillParentWidth=1,fillParentHeig... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Turn the network's prediction into either even (0) or odd (1) by
-- rounding the prediction values up or down. Then count how many are correct.
--------------------------------------------------------------------------------
require 't... | nilq/small-lua-stack | null |
local packages = script.Parent.Parent.Parent
local synthetic = require(script.Parent.Parent)
local util = require(script.Parent.Parent:WaitForChild("Util"))
local fusion = util.initFusion(require(packages:WaitForChild('fusion')))
local maidConstructor = require(packages:WaitForChild('maid'))
local enums = require(scrip... | nilq/small-lua-stack | null |
function envoy_on_request(request_handle)
request_handle:headers():add("X-Company", "FDJ")
end
function envoy_on_response(response_handle)
body_size = response_handle:body():length()
response_handle:headers():add("response-body-size", tostring(body_size))
end
| nilq/small-lua-stack | null |
--[[
-- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
-- its licensors.
--
-- For complete copyright and license terms please see the LICENSE at the root of this
-- distribution (the "License"). All use of this software is governed by the License,
-- or, if provided, by the license be... | nilq/small-lua-stack | null |
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Red Razor Anomaly"
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = "Cuts people who walk in it"
ENT.Category = "Anomalies"
ENT.Spawnable = true
ENT.AdminSpawnable = true
function ENT:OnRemove()
end
function ENT:PhysicsUpdate()
end
function ENT:P... | nilq/small-lua-stack | null |
-- THESE CAN BE CHANGED
triggerKey = "tab" -- default button to open/close scoreboard
settingsKey = "F7" -- default button to open the settings window
drawOverGUI = true -- draw scoreboard over gui?
seperationSpace = 80 -- the space between top/bottom screen and scoreboard top/bottom in pixels
-- BUT DON'T TOUCH THESE... | nilq/small-lua-stack | null |
local M = {}
local fontname = "FiraCode NF"
local fontsize = 10
local nvui_install_path = "d:\\Program Files\\nvui"
function M.adjust_fontsize(amount)
fontsize = fontsize + (amount or 0)
vim.opt.guifont = fontname .. ":h" .. fontsize
end
function M.setup()
vim.cmd("source " .. nvui_install_path .. "\\vim\\plug... | nilq/small-lua-stack | null |
XPSYS = {}
XPSYS.XP = 0
XPSYS.level = 1
XPSYS.XPOfNextLevel = 1
--[[---------------------------------------------------------
Name: XPSYS.Update()
Desc: Updates all the data on the client.
-----------------------------------------------------------]]
function XPSYS.Update(len)
XPSYS.XP = net.ReadInt(32)
XPSYS... | nilq/small-lua-stack | null |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
-- [ Pizza Event ] --
RegisterNetEvent('bdl:signpizza')
AddEventHandler('bdl:signpizza',function()
local src = source
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.showNotification('Complimenti , hai ottenuto un nuovo lav... | nilq/small-lua-stack | null |
local Batchnorm, parent = torch.class("nn.BatchNorm", "nn.Module")
function Batchnorm:__init(s)
parent.__init(self)
self.running_mean = s.running_mean
self.running_std = s.running_var:clone():sqrt()
self.weight = s.weight
self.bias = s.bias
self.eps = 1e-5
assert (self.running_mean ~= nil)
asse... | nilq/small-lua-stack | null |
require("scripts/globals/common")
require("scripts/globals/status")
require("scripts/globals/msg")
function getSummoningSkillOverCap(avatar)
local summoner = avatar:getMaster()
local summoningSkill = summoner:getSkillLevel(tpz.skill.SUMMONING_MAGIC)
local maxSkill = summoner:getMaxSkillLevel(avatar:getMai... | nilq/small-lua-stack | null |
local fmt = string.format
local md5 = ngx.md5
local _M = {}
local EMPTY = {}
local function keys(t)
local res = {}
for k, _ in pairs(t) do
res[#res+1] = k
end
return res
end
-- Return a string with the format "key=value(:key=value)*" of the
-- actual keys and values in args that are in vary_fields.
-... | nilq/small-lua-stack | null |
return {
"000_base_rate_limiting",
"001_14_to_15",
"002_15_to_10",
}
| nilq/small-lua-stack | null |
function IncludeDetouring()
IncludePackage("detouring")
local directory = _GARRYSMOD_COMMON_DIRECTORY .. "/include/detouring"
local _project = project()
local _workspace = _project.workspace
local _project_directory = _GARRYSMOD_COMMON_DIRECTORY .. "/projects/" .. os.target() .. "/" .. _ACTION
-- This first in... | nilq/small-lua-stack | null |
require 'imgui.components.webview'
local imguiInterface = require 'imgui.base'
local lm = require 'lib.locales'
local async = require 'lib.async'
local projectManager = require 'editor.projectManager'
local fs = require 'lib.filesystem'
-- project creation wisard view
ProjectWizard = class(ImguiWindow, function(self, ... | nilq/small-lua-stack | null |
LinkLuaModifier("modifier_item_scythe_of_the_ancients_passive", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_scythe_of_the_ancients_stun", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
item_scythe_of_the_ancients = class({
GetIntrinsicModifierN... | nilq/small-lua-stack | null |
return {[1]={stats={[1]="blood_offering_%_of_life_to_lose",[2]="blood_offering_%_of_lost_life_to_regenerate_as_life_per_second"},name="blood_offering_life_loss",lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="Sacrifices %1%%% of your Life\nMinions Regenerate %2%%% of Sacrificed Life per se... | nilq/small-lua-stack | null |
require 'text_util'
local class = require '30log'
local json = require 'json'
local Slide = require 'slide'
-- local white_block = resource.load_image('white.png')
local EventListSlide = Slide:extend("EventListSlide")
local EventListItem = require 'event_list_item'
function EventListSlide:init(x, y, width, height, d... | nilq/small-lua-stack | null |
local fan = require "fan"
require "compat53"
local scheme_map = {}
scheme_map["tcp"] = require "fan.connector.tcp"
scheme_map["udp"] = require "fan.connector.udp"
scheme_map["fifo"] = require "fan.connector.fifo"
local function extract_url(url)
if not url then
return
end
local _, _, scheme, twoslash, other... | nilq/small-lua-stack | null |
-- DON'T use local lfm = lfm here because it brakes sumneko.
local config = lfm.config
package.path = string.gsub(package.path, "./%?.lua;", "")
package.path = package.path .. ";" .. config.luadir .. "/?.lua"
package.path = package.path .. ";".. config.configdir .. "/lua/?.lua"
local fm = lfm.fm
local log = lfm.log
... | nilq/small-lua-stack | null |
-- Copyright 2010 by Renée Ahrens, Olof Frahm, Jens Kluttig, Matthias Schulz, Stephan Schuster
-- Copyright 2011 by Jannis Pohlmann
-- 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 f... | nilq/small-lua-stack | null |
-- Visions2D
-- Dependencies: SDL2, SDL2 TTF, GLEW (TODO: dynamically link? I don't know!)
-- Header Only dependencies: spdlog, dearimgui, stbimage, glm, rapidjsson
workspace "visions2D"
architecture "x64"
configurations
{
"Debug"
}
startproject "sandbox"
outputdir = "%{cfg.buildcfg}-%{c... | nilq/small-lua-stack | null |
--[[
This software is in the public domain. Where that dedication is not recognized,
you are granted a perpetual, irrevokable license to copy and modify this file
as you see fit.
]]
-- Opens the game's save directory (or a subfolder wthin it) in the system's
-- file browser. Written for LÖVE 0.9.0+.
-- LÖVE 0.9.1 incl... | nilq/small-lua-stack | null |
--ServerSync Resource made by Wyste for Fivem--
--Repository: https://github.com/Wyste/ServerSync --
name 'ServerSync'
description 'Syncronizes Time/Weather/Wind and more.'
author 'Wyste (https://github.com/Wyste) | (https://discordapp.com/invite/byNc6wA)'
version 'v1.0'
url 'https://github.com/Wyste/ServerSync'
reso... | nilq/small-lua-stack | null |
local _2afile_2a = "fnl/conjure/config.fnl"
local _1_
do
local name_4_auto = "conjure.config"
local module_5_auto
do
local x_6_auto = _G.package.loaded[name_4_auto]
if ("table" == type(x_6_auto)) then
module_5_auto = x_6_auto
else
module_5_auto = {}
end
end
module_5_auto["aniseed/m... | nilq/small-lua-stack | null |
--海竜神-リバイアサン
--
--Script by Trishula9
function c100426017.initial_effect(c)
aux.AddCodeList(c,22702055)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,100426017)
e1:SetTarget(c100426017.tht... | nilq/small-lua-stack | null |
ENTITY.IsNetworked = false
ENTITY.Properties = {
{ Name = "size", Type = PropertyType.FloatSize },
{ Name = "target", Type = PropertyType.Entity },
}
function ENTITY:Initialize()
local size = self:GetProperty("size")
local colliderSize = size / 2
self:SetCollider(Rect(-colliderSize, colliderSize), true)
self:En... | nilq/small-lua-stack | null |
vars.cflags = {
"$(CFLAGS)"
}
vars.ackcflags = {
"-O6"
}
vars.ackldflags = {}
vars.plats = {
"cpm",
"linux386",
"linux68k",
"linuxppc",
"linuxmips",
"msdos86",
"osx386",
"osxppc",
"pc86",
"rpi",
"pdpv7",
"em22",
}
vars.plats_with_tests = {
"cpm",
"linux68k",
"linux386",
"linuxppc",
"linuxmips",
"pc8... | nilq/small-lua-stack | null |
require("map")
require("guard")
require("target")
require("abilities")
ROT = require("rotLove/rotLove/rotLove")
Camera = require "hump.camera"
debug = false
random = love.math.newRandomGenerator()
function love.load(arg)
title_font = love.graphics.newFont("assets/kenpixel.ttf", 70)
main_font = love.graphics.n... | nilq/small-lua-stack | null |
return {'eulink','eulderink'} | nilq/small-lua-stack | null |
-- Functions from transforming a parsed token stream into a song structure and then an event stream
function update_timing(song)
-- Update the base note length (in seconds), given the current L and Q settings
-- Returns a timing state update event to be inserted into the output stream
local rate = 0... | nilq/small-lua-stack | null |
local function getAdorneeBasePart(adornee: Instance)
if adornee:IsA("BasePart") then
return adornee :: BasePart
elseif adornee:IsA("Model") then
local primaryPart: BasePart? = adornee.PrimaryPart
if primaryPart then
return primaryPart :: BasePart
else
local part = adornee:FindFirstChildWhichIsA("BasePar... | nilq/small-lua-stack | null |
local PANEL = {};
function PANEL:Init ( )
self.DialogButtons = {};
self.DialogLabels = {};
self:SetSkin("ugperp")
self.TextHolder = vgui.Create("DPanelList", self);
self.TextHolder:EnableHorizontal(false)
self.TextHolder:EnableVerticalScrollbar(true)
self.TextHolder:SetPadding(0);
self.TextHolder:SetSpaci... | nilq/small-lua-stack | null |
local Players = game:GetService("Players")
local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Symbol = require(Modules.Common.Symbol)
return {
Hidden = Symbol.named("Hidden"),
Closed = Symbol.named("Closed"),
Brief = Symbol.named("Brief"),
Full = Symbol.named("Full"),
... | nilq/small-lua-stack | null |
Skada:AddLoadableModule("Dispels", nil, function(Skada, L)
if Skada.db.profile.modulesBlocked.Dispels then return end
local mod = Skada:NewModule(L["Dispels"])
local function log_dispell(set, dispell)
local player = Skada:get_player(set, dispell.playerid, dispell.playername)
if player then
-- Add to player ... | nilq/small-lua-stack | null |
--[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "EditBox", 27
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Typ... | nilq/small-lua-stack | null |
local t = require( "taptest" )
local kebabcase = require( "kebabcase" )
t( kebabcase{ "Wiki", "Word", "BUMPY", "caPS" }, "wiki-word-bumpy-caps" )
t()
| nilq/small-lua-stack | null |
--- WEdit Actions (https://github.com/Silverfeelin/Starbound-WEdit)
--
-- Script used by controller.lua. Keeps all WEdit actions centralized in one place.
-- This script can not be used by itself, as it relies on data defined in or adjusted by wedit.lua and/or controller.lua.
require "/interface/wedit/dyePicker/dyePic... | nilq/small-lua-stack | null |
---@class CovenantPreview
C_CovenantPreview = {}
function C_CovenantPreview.CloseFromUI() end
---@param playerChoiceResponseID number
---@return CovenantPreviewInfo previewInfo
function C_CovenantPreview.GetCovenantInfoForPlayerChoiceResponseID(playerChoiceResponseID) end
---@class CovenantAbilityType
local Covenan... | nilq/small-lua-stack | null |
dirt = {}
dirt.blocks = {}
-- todo: add breakability to breakable blocks
function dirt:load()
dirt.spr = love.graphics.newImage("/assets/dirt.png")
dirt:new(-2, -2)
dirt:new(4, 4)
dirt:new(-5, -10)
dirt:new(5, -9)
dirt:new(-3, 9)
dirt:new(12, 3)
dirt:new(4,2,0)
end
function dirt:new(... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md
------------------------------------------------------------------... | nilq/small-lua-stack | null |
return function(gravity)
return function(scene, dt)
for entity in pairs(scene:entities_with('has_mass', 'velocity')) do
entity.velocity.y = entity.velocity.y + gravity * dt
end
end
end
| nilq/small-lua-stack | null |
solution "sdl2-tetris"
location "../build"
configurations { "Debug", "Dev", "Release" }
platforms { "native", "x32", "x64" }
project "sdl2-tetris"
location "../build"
kind "ConsoleApp"
language "C++"
files { "../src/**.h", "../src/**.cpp" }
flags { "ExtraWarnings", "FatalWarnings" }
links { "SDL2_ttf" ... | nilq/small-lua-stack | null |
local c = require "hive.core"
local system_cell = assert(package.searchpath("hive.system", package.path),"system cell was not found")
local hive = {}
function hive.start(t)
local main = assert(package.searchpath(t.main, package.path), "main cell was not found")
return c.start(t, system_cell, main)
end
return hive | nilq/small-lua-stack | null |
object_mobile_tusken_m_greeter = object_mobile_shared_tusken_m_greeter:new {
}
ObjectTemplates:addTemplate(object_mobile_tusken_m_greeter, "object/mobile/tusken_m_greeter.iff")
| nilq/small-lua-stack | null |
--[[
===============================================================================
** SceneTitle v1.0 **
By Lysferd (C) 2014
Summary:
Manages the title screen.
Features:
- ...
ToDos:
- ...
===============================================================================
--]]
require( 'lua.map.menu' )... | nilq/small-lua-stack | null |
function GetCargoColonistSpecializationItems()
local items = {}
for id, entry in pairs(const.ColonistSpecialization) do
items[#items+1] = {id = id, sort_key = entry.sort_key, name = entry.display_name_plural}
end
table.sortby_field(items, "sort_key")
return items
end
DefineClass.CargoItem = {
__parents = { "In... | nilq/small-lua-stack | null |
-- ioctls, filling in as needed
-- note there are some architecture dependent values
local bit = require "bit"
local band = bit.band
local function bor(...)
local r = bit.bor(...)
if r < 0 then r = r + 4294967296LL end
return r
end
local lshift = bit.lshift
local rshift = bit.rshift
-- include types to get size... | nilq/small-lua-stack | null |
-- Input file for advection with auxiliary variables
-- polynomial order
polyOrder = 1
-- cfl number to use
cfl = 0.2/2
-- grid on which equations are to be solved
grid = Grid.RectCart2D {
lower = {0, 0},
upper = {1.0, 1.0},
cells = {32, 32},
}
-- create FEM nodal basis
basis = NodalFiniteElement2D.Serendi... | nilq/small-lua-stack | null |
local o = WardrobeHelper
if o.customCategories == nil then o.customCategories = {} end
local c = o.customCategories
---------------------------------------------------------------
-- Tier 6 - Normal
---------------------------------------------------------------
c["Tier 6"] = {}
c["Tier 6"]["#allSources"] = true
c["... | nilq/small-lua-stack | null |
-- Main logic taken from Valve's Slitbreaker dungeon files
-- Reformatted for DotA IMBA by:
-- AltiV - March 15th, 2019
----------------------------
-- WAND OF THE BRINE FILE --
----------------------------
item_imba_wand_of_the_brine = class({})
LinkLuaModifier( "modifier_item_imba_wand_of_the_brine", "components/... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Amanitar", 619, 583)
if not mod then return end
mod:RegisterEnableMob(30258)
--------------------------------------------------------------------------------
-- Initialization
--... | nilq/small-lua-stack | null |
-- $Id: savetable.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: savetable.lua
-- brief: a human friendly table writer
-- author: Dave Rodgers
--
--... | nilq/small-lua-stack | null |
object_tangible_furniture_decorative_wod_floating_stones = object_tangible_furniture_decorative_shared_wod_floating_stones:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_floating_stones, "object/tangible/furniture/decorative/wod_floating_stones.iff")
| nilq/small-lua-stack | null |
print("hello world!")
TestFunc(5, "this string is called from lua!!!", 3)
TestFunc1(5, "this string is called from lua from func 1!!!", 3) | nilq/small-lua-stack | null |
-- love.graphics.captureScreenshot( filename )
-- Save data stuff
igmenu = top:newFrame(0,0,0,0,0,0,.3,.8)
igmenu.Visible = false
igmenu.Visibility = 0
igmenu:center()
igmenu.resume = igmenu:newTextLabel("Resume",0,0,0,0,0,0,1,1/5)
igmenu.save = igmenu:newTextLabel("Save",0,0,0,0,0,(1/5),1,1/5)
igmenu.load = igmenu:new... | nilq/small-lua-stack | null |
local createEnum = import("../createEnum")
return createEnum("HorizontalAlignment", {
Center = 0,
Left = 1,
Right = 2,
}) | nilq/small-lua-stack | null |
-- luacheck: globals gViewer gLoadConfig gOnNewImage gRecord gFolder gSendImageToFTP
gViewer = View.create() -- Will show in 3D viewer
gViewer:setID('viewer3D')
-------------------------------------
-- Load previously saved config -----
-------------------------------------
--@gLoadConfig(jobPath:string)
function gLo... | nilq/small-lua-stack | null |
-- This is the module file for GPAW environment
local version = '1.4.0'
help([[
GPAW environment ]] .. version .. [[
]])
depends_on('gcc/9.1.0', 'mpich/3.3.1', 'hdf5/1.10.4', 'intel-mkl/2019.0.4')
local base = '/appl/soft/phys/gpaw/' .. version
local py_base = '/appl/soft/phys/gpaw/python/2.7.13'
local bun... | nilq/small-lua-stack | null |
local tab = {}
tab.name = "TAB_ATTACHMENT_ADJUSTMENT"
tab.id = 4
tab.text = "ATTACHMENT ADJUSTMENT"
tab.switchToKey = "gm_showspare2"
tab.selectedAttachment = nil
if CLIENT then
function tab:processKey(key, isPressed)
if not isPressed then
return nil
end
if not CustomizableWeaponry.sightAdjustment:getCur... | nilq/small-lua-stack | null |
local http = require('http')
local options = {
host = "luvit.io",
port = 80,
path = "/"
}
local req = http.request(options, function (res)
res:on('data', function (chunk)
p("ondata", {chunk=chunk})
end)
end)
req:done()
| nilq/small-lua-stack | null |
-- +attack
return {
id = "copperBoots",
name = "Copper Boots",
equipmentType = "feet",
tier = 1,
spriteSheet = "armor",
spriteCoords = Vector2.new(2,2),
onlyOne = true,
recipe = {
ingotCopper = 10,
},
stats = {
defense = 20,
moveSpeed = 5,
},
ta... | nilq/small-lua-stack | null |
--
-- volume.lua
-- volume daemon
-- Dependencies:
-- pulseaudio
--
-- Signals:
-- daemon::volume::percentage
-- percentage (integer)
--
-- daemon::volume::muted
--
local awful = require("awful")
local helpers = require("helpers")
-- ========================================
-- Config
-- ==========================... | nilq/small-lua-stack | null |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local server_name = "denols"
configs[server_name] = {
default_config = {
cmd = {"deno", "lsp"};
filetypes = {"javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx"};
root_dir =... | nilq/small-lua-stack | null |
--ワン・バイ・ワン
--One by One
--Scripted by Kohana Sonogami
function c101104078.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101104078+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c101104078.cost)
e1:SetTarget(c101104078.target)
e1:... | nilq/small-lua-stack | null |
local CONSTANTS_API = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API"))
local UTIL_API = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API"))
local _Constants_API = require(script:GetCustomProperty("Constants_API"))
local EventsAPI = require(script:GetCustomProperty("META_EventsAPI... | nilq/small-lua-stack | null |
--[[=========================================
_ _ _
| | | | | | /\ /\
| | | | | | / \ _ __ _ __ / \ _ __ ___
| | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __|
| |___| |__| / ____ \| |_) | |_) / ____ \| | | (__
|______\____/_/ \_\ .__/| .__/_/ \_\_| \___|
Scripting Pro... | nilq/small-lua-stack | null |
local defaultOptions = {
}
ShopButton = nil
local optionsWindow
local optionsTabBar
local options = {}
local zBless = nil
function init()
ShopButton = modules.client_topmenu.addRightGameToggleButton('ZShop', tr('Z Shop').. '', '/images/zshop/zpoints', toggle)
-- ShopButton:setOn(false)
for k,v in pairs(defaultOp... | nilq/small-lua-stack | null |
local i18n = require("core.i18n")
i18n.add {
common = {
nothing_happens = "何もおきない… ",
something_is_put_on_the_ground = "何かが足元に転がってきた。",
you_put_in_your_backpack = "{itemname($1, 1)}をバックパックに入れた。",
it_is_impossible = "それは無理だ。",
},
}
| nilq/small-lua-stack | null |
slot0 = class("GuildMissionBattleView")
slot1 = Vector3(40, -3, 40)
slot2 = 10
slot3 = 1028
slot4 = Vector3(80, -3, 40)
function slot5(slot0)
slot1 = {}
slot2 = {}
for slot6, slot7 in ipairs(ys.Battle.BattleConst.FXContainerIndex) do
slot2[slot6] = Vector3(slot0[slot6][1], slot0[slot6][2], slot0[slot6][3])
end
... | nilq/small-lua-stack | null |
local libraryUtil = require( 'libraryUtil' )
local VariablesLua = {}
local php
function VariablesLua.var( name, default )
libraryUtil.checkTypeMulti( 'var', 1, name, { 'string', 'number' } )
libraryUtil.checkTypeMulti( 'var', 2, default, { 'string', 'number', 'nil' } )
name = tostring( name )
default = tostring( d... | nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_6 = {
[182] = {
cannon = 0,
name = "罗利",
type = 2,
speed_growth = 0,
battle_unit_type = 49,
air = 0,
air_growth = 0,
durability = 99999,
friendly_cld = 0,
armor = 0,
id = 182,
bubble_fx = "",
dodge_growth = 0,
icon = "luoli",
star = 0,
torpedo = 0,... | nilq/small-lua-stack | null |
--[[ Element: Class Icons
Toggles the visibility of icons depending on the player's class and
specialization.
Widget
ClassIcons - An array consisting of as many UI Textures as the theoretical
maximum return of `UnitPowerMax`.
Notes
Monk - Chi Orbs
Paladin - Holy Power
Priest - Shadow Orbs
Warlock - S... | nilq/small-lua-stack | null |
----
-- Tests for the xlsxwriter.lua relationships class.
--
-- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
require "Test.LongString"
plan(1)
----
-- Tests setup.
--
local expected
local got
local caption
local Relationships = require "xlsxwriter.relationships"
local relationships
... | nilq/small-lua-stack | null |
--===========================================================================--
-- --
-- System.Web.HttpSession --
-- --
... | nilq/small-lua-stack | null |
require("Utilities")
function Server_StartGame(game, standing)
if (Mod.Settings.Version ~= 1)then return end;
--TODO we can move stuff here around better so we don't call unneeded things
publicGameData = Mod.PublicGameData
playerGameData = Mod.PlayerGameData;
--Call playerGameDataSetup if we havn't done it al... | nilq/small-lua-stack | null |
local errors = require('errors')
errors.deprecate(
"Module `cartridge.graphql.execute` is deprecated." ..
" Use `require('graphql.execute')` instead."
)
return require('graphql.execute')
| nilq/small-lua-stack | null |
--[[
Name: sh_unconscious.lua
For: santosrp
By: Maw, Unknown? past devs, Rustic7
]]--
GM.Uncon = {}
if gspeak then
function gspeak:player_alive( pPlayer )
if not pPlayer:Alive() then return false end
return not pPlayer:IsUncon()
end
end
local pmeta = debug.getregistry().Player
function pmeta:IsUncon()
retu... | nilq/small-lua-stack | null |
local insertionSort = require("modules/InsertionSort")
local shellSort = require("modules/ShellSort")
function main()
print("Lua Start")
-- insertionSort.Sort()
shellSort.Sort()
end
main() | nilq/small-lua-stack | null |
Scaleform = {}
local scaleform = {}
scaleform = setmetatable({}, scaleform)
scaleform.__call = function()
return true
end
scaleform.__index = scaleform
function Scaleform.Request(Name)
local ScaleformHandle = RequestScaleformMovie(Name)
local data = {name = Name, handle = ScaleformHandle}
return setmetatable... | nilq/small-lua-stack | null |
--lua端的全局事件号以10000起始,c#的是1~9999
local GlobalEvents = BaseClass(CS.UnityMMO.GlobalEvents)
GlobalEvents.GameStart = 10000
return GlobalEvents | nilq/small-lua-stack | null |
slot0 = class("MiniGameProxy", import(".NetProxy"))
slot0.ON_HUB_DATA_UPDATE = "on hub data update"
slot0.ON_MINI_GAME_DATA_UPDATE = "on_mini_game_data_update"
slot0.register = function (slot0)
slot0.miniGameHubDataDic = {}
slot0.miniGameDataDic = {}
end
slot0.CheckHasHub = function (slot0, slot1)
return slot0.min... | nilq/small-lua-stack | null |
--[[ MyGame.OtherNameSpace.Unused
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.5
Declared by : //include_test/sub/include_test2.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
--]]
local flatbuffers = require('... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local logger = require "logger"
local json = require "cjson"
local futil = require "futil"
local clustermc = require "clustermc"
local function boot()
skynet.newservice("logservice")
skynet.newservice("clustermgr")
skynet.timeout(200, function()
--调用远程服务要在服务名前加'@'符号
... | nilq/small-lua-stack | null |
setenv("PYTHON_VERSION", myModuleVersion())
setenv("LEVEL","MPI")
| nilq/small-lua-stack | null |
local ADDON_NAME, ADDON = ...
local bankFrame = {}
bankFrame.__index = bankFrame
function DJBagsRegisterBankFrame(self, bags)
for k, v in pairs(bankFrame) do
self[k] = v
end
ADDON.eventManager:Add('BANKFRAME_OPENED', self)
ADDON.eventManager:Add('BANKFRAME_CLOSED', self)
table.insert(UI... | nilq/small-lua-stack | null |
STRING_PEDS = {
"a_c_alligator_01",
"a_c_alligator_02",
"a_c_alligator_03",
"a_c_armadillo_01",
"a_c_badger_01",
"a_c_bat_01",
"a_c_bear_01",
"a_c_bearblack_01",
"a_c_beaver_01",
"a_c_bighornram_01",
"a_c_bluejay_01",
"a_c_boar_01",
"a_c_boarlegendary_01",
"a_c_bu... | nilq/small-lua-stack | null |
MSD.Icons48 = {
cross = Material("msd/icons/cross.png", "smooth"),
cog = Material("msd/icons/cog.png", "smooth"),
layers = Material("msd/icons/layers.png", "smooth"),
layers_plus = Material("msd/icons/layers-plus.png", "smooth"),
layers_remove = Material("msd/icons/layers-remove.png", "smooth"),
account = Materia... | nilq/small-lua-stack | null |
remote = require 'net.box'
fiber = require 'fiber'
log = require 'log'
msgpack = require 'msgpack'
env = require('test_run')
test_run = env.new()
test_run:cmd("push filter ".."'\\.lua.*:[0-9]+: ' to '.lua...\"]:<line>: '")
test_run:cmd("setopt delimiter ';'")
function x_select(cn, space_id, index_id, iterator, offset,... | nilq/small-lua-stack | null |
local feedbackWindow
local textEdit
local okButton
local cancelButton
local postId = 0
local tries = 0
local replyEvent = nil
function init()
feedbackWindow = g_ui.displayUI('feedback')
feedbackWindow:hide()
textEdit = feedbackWindow:getChildById('text')
okButton = feedbackWindow:getChildById('okButton')
ca... | 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.