content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
include('schedules.lua')
include('tasks.lua')
-- Variables
ENT.m_fMaxYawSpeed = 200 -- Max turning speed
ENT.m_iClass = CLASS_CITIZEN_REBEL -- NPC Class
AccessorFunc( ENT, "m_iClass", "NPCClass" )
AccessorFunc( ENT, "m_fM... | nilq/small-lua-stack | null |
local M = {}
-- Check if nvim-treesitter is available
-- (there would be a lot of copied code without this dependency)
local ok_parsers, ts_parsers = pcall(require, "nvim-treesitter.parsers")
if not ok_parsers then
ts_parsers = nil
end
local ok_utils, ts_utils = pcall(require, "nvim-treesitter.ts_utils")
if not ok_... | nilq/small-lua-stack | null |
--##
local util = require("factorio-plugin.util")
---@param uri string @ The uri of file
---@param text string @ The content of file
---@param diffs Diff[] @ The diffs to add more diffs to
local function replace(uri, text, diffs)
---@type string|number
for s_narrow, s_id, f_id
in
text:gmatch("()%-%-%-[^%S\n... | nilq/small-lua-stack | null |
Fish = Enemy:extend("Fish")
-- lekkerOh
Fish:implement(Locator)
function Fish:new(...)
Fish.super.new(self, ...)
self:setImage("lekkeroh", 36)
self.anim:add("shy", "1>24")
self.anim:add("attack", "25>36")
self:addIgnoreOverlap(SolidTile)
self.floating = true
self.solid = 0
self.gravity = 0
self.speed = 100... | nilq/small-lua-stack | null |
package("protoc")
set_kind("binary")
set_homepage("https://developers.google.com/protocol-buffers/")
set_description("Google's data interchange format compiler")
if is_host("windows") then
if is_arch("x64") then
add_urls("https://github.com/protocolbuffers/protobuf/releases/downloa... | nilq/small-lua-stack | null |
object_tangible_scout_trap_trap_ap_kaminoandart = object_tangible_scout_trap_shared_trap_ap_kaminoandart:new {
}
ObjectTemplates:addTemplate(object_tangible_scout_trap_trap_ap_kaminoandart, "object/tangible/scout/trap/trap_ap_kaminoandart.iff")
| nilq/small-lua-stack | null |
local module = {}
local lua_script_type = Engine.getComponentType("lua_script")
module.particles_enabled = true
module.clouds_enabled = true
module.render_gizmos = true
module.blur_shadowmap = true
module.render_shadowmap_debug = false
module.render_shadowmap_debug_fullsize = false
function doPostprocess(pipeline, th... | nilq/small-lua-stack | null |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
require 'SAMemory.game.vector3d'
require 'SAMemory.game.RenderWare'
local mt = ... | nilq/small-lua-stack | null |
local t = require(script.Parent.Packages.t)
local types = {}
types.Message = t.interface({
id = t.string,
userId = t.string,
text = t.string,
createdAt = t.number,
responses = t.array(t.string),
parentId = t.optional(t.string),
})
return types
| nilq/small-lua-stack | null |
local Utility = {};
local McpFeature = require("AdituV.DetectTrap.Utility.McpFeature");
local Strings = require("AdituV.DetectTrap.Strings");
local Strings_en = require("AdituV.DetectTrap.Strings_en");
-- Miscellaneous functions
Utility.checkCodePatchFeature = function(featureId)
local featureId = featureId:lower()... | nilq/small-lua-stack | null |
local BidirectionalGRU = {}
function BidirectionalGRU.rnn(nstep, avg, emb_dim)
if avg == nil then
avg = 0
end
if emb_dim == nil then
emb_dim = 256
end
local inputs = {}
for n = 1,nstep do
table.insert(inputs, nn.Identity()())
end
-- gates for update
local i2h_update_fwd = {}
local h2h_... | nilq/small-lua-stack | null |
include( "contentsidebartoolbox.lua" )
local pnlSearch = vgui.RegisterFile( "contentsearch.lua" )
local PANEL = {}
function PANEL:Init()
self.Tree = vgui.Create( "DTree", self )
self.Tree:SetClickOnDragHover( true )
self.Tree.OnNodeSelected = function( Tree, Node ) hook.Call( "ContentSidebarSelection... | nilq/small-lua-stack | null |
local files = require 'files'
local fsu = require 'fs-utility'
local furi = require 'file-uri'
local diag = require 'provider.diagnostic'
local config = require 'config'
files.removeAll()
fsu.scanDirectory(ROOT, function (path)
if path:extension():string() ~= '.lua' then
return
end
local uri =... | nilq/small-lua-stack | null |
local android = premake.extensions.android
android.properties = {}
local properties = android.properties
--
-- Generate project.properties
--
function properties.generate(prj)
_p(0, 'target=$(androidapilevel)')
end | nilq/small-lua-stack | null |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local _M = function(role,data)
local pass = role.resource:can_inspire(data.pos,data.num)
if not pass then return 2602 end
local cost = role.resource:get_inspire_cost(data.pos,data.num)
local en... | nilq/small-lua-stack | null |
-- id int 打击点组ID
-- HitPointSet tableString[k:#1(string)|v:#table(hitnum=#2(int),hitmove=#3(int),damageratio=#4(int),powerratio=#5(int),soundhit=#6(string),effecthit=#7(string),freezedelay=#8(int),freezetarget=#9(int),freezeself=#10(int)),h... | nilq/small-lua-stack | null |
minetest.register_alias("mapgen_stone", "main:stone")
minetest.register_alias("mapgen_dirt", "main:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "main:dirt_with_grass")
minetest.register_alias("mapgen_sand", "main:sand")
minetest.register_alias("mapgen_water_source", "main:water_source")
minetest.register_al... | nilq/small-lua-stack | null |
workspace "flaaffy"
configurations { "Debug", "Release" }
targetdir "bin/%{cfg.buildcfg}"
startproject "mareep"
filter "configurations:Debug"
defines { "DEBUG" }
symbols "on"
filter "configurations:Release"
defines { "RELEASE" }
optimize "On"
project "mareep"
kind "ConsoleApp"
language "C#"
namespace "arookas"
loca... | nilq/small-lua-stack | null |
s(1.5)
w ""
c "$eU wot mate?"
w ""
w "You've already"
w "submitted an"
w "answer" | nilq/small-lua-stack | null |
-- game of life
-- jryzkns 2018
-- https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
-- add in music generation based on amount of cells living
local unrequited = require("unrequited")
zoomfactor = 10
function love.load()
game = {}
game.xdim = 1000
game.ydim = 600
game.title = "... | nilq/small-lua-stack | null |
-- more concentrated
minetest.register_node("bitumen:vapor_2", {
description = "Vapor",
drawtype = "airlike",
pointable = false,
diggable = false,
walkable = false,
buildable_to = true,
paramtype = "light",
sunlight_propagates = true,
-- post_effect_color = info.post_effect_color,
-- tiles = { "default_... | nilq/small-lua-stack | null |
function love.math.setRandomSeed(seed)
return math.randomseed(seed)
end
function love.math.random(a,b)
return math.random(a,b)
end
function love.math.triangulate(polygon)
-- Reference here: https://2dengine.com/?p=polygons#Triangulation
local function signedPolygonArea(p)
local s = 0
l... | nilq/small-lua-stack | null |
local fsm = require "fsm"
describe("fsm", function ()
local m
describe("events & states", function ()
before_each(function ()
m = fsm.create({
initial = "green",
events = {
{name = "warn", from = "green", to = "yellow"},
{name = "panic", from = "yellow", to = "red" ... | nilq/small-lua-stack | null |
--[[
Name: Board.lua
From roblox-trello v2
Description: Constructor for Trello Boards.
Copyright (c) 2019 Luis, David Duque
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 So... | nilq/small-lua-stack | null |
dirtmons = {}
dirtmons.mod = "Dirt monsters Aggressive"
function dirtmons:register_mob(name, def)
minetest.register_entity(name, {
name = name,
hp_min = def.hp_min or 5,
hp_max = def.hp_max,
physical = true,
collisionbox = def.collisionbox,
visual = def.visual,
visual_size = def.visual_size,
mesh = def... | nilq/small-lua-stack | null |
require 'torch'
dofile 'do_labeling.lua'
dofile 'S_transfer' | nilq/small-lua-stack | null |
local _0_0 = nil
do
local name_23_0_ = "conjure.main"
local loaded_23_0_ = package.loaded[name_23_0_]
local module_23_0_ = nil
if ("table" == type(loaded_23_0_)) then
module_23_0_ = loaded_23_0_
else
module_23_0_ = {}
end
module_23_0_["aniseed/module"] = name_23_0_
module_23_0_["aniseed/locals"]... | nilq/small-lua-stack | null |
local awful = require('awful')
local beautiful = require('beautiful')
local gears = require('gears')
local wibox = require('wibox')
local icons = require('theme.icons')
local helpers = require('helpers')
local widget_container = require('widgets.containers.widget-container')
local properties = {
mute = true,
volume... | nilq/small-lua-stack | null |
--
-- Built with,
--
-- ,gggg,
-- d8" "8I ,dPYb,
-- 88 ,dP IP'`Yb
-- 8888888P" I8 8I
-- 88 I8 8'
-- 88 gg gg ,g, I8 dPgg,
-- ,aa,_88 I8 8I ,8'8, ... | nilq/small-lua-stack | null |
local routineHandlerMethods = {
Add = function(self, func, ...)
if type(func) == "function" and (not self.maxRoutines or #self.list >= self.maxRoutines) then
local routineID
repeat
routineID = math.random(0, 9999)
until not self.list[routineID]
local routine = {
name = false,
thread = corout... | nilq/small-lua-stack | null |
--[[
globals.lua (FindGlobals), a useful script to find global variable access in
.lua files, placed in the public domain by Mikk in 2009.
HOW TO INVOKE:
luac -l MyFile.lua | lua globals.lua MyFile.lua
or:
c:\path\to\luac.exe -l MyFile.lua | c:\path\to\lua.exe c:\path\to\globals.lua MyFile.lua
Directives in the... | nilq/small-lua-stack | null |
--------------------
--- Badssentials ---
--------------------
function Draw2DText(x, y, text, scale, center)
-- Draw text on screen
SetTextFont(4)
SetTextProportional(7)
SetTextScale(scale, scale)
SetTextColour(255, 255, 255, 255)
SetTextDropShadow(0, 0, 0, 0,255)
SetTextDropShado... | nilq/small-lua-stack | null |
print("Hello, world") | nilq/small-lua-stack | null |
---
-- Copyright (c) 2015 Jason Lingle
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- 1. Redistributions of source code must retain the above copyright
-- notice, this list of condit... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
-- constants
------------------------------------------------------------------------------
SPLASH_STATE = 1
MAIN_MENU_STATE = 2
GAME_STATE = 3
PAUSE_STATE = 4
OPTIONS_STATE = 5
DEFEAT_STATE = 6
---------------------------------------------... | nilq/small-lua-stack | null |
class("AirportCaptureBar", import(".LevelStageStatusBarTemplate")).GetUIName = function (slot0)
return "AirportCaptureBar"
end
return class("AirportCaptureBar", import(".LevelStageStatusBarTemplate"))
| nilq/small-lua-stack | null |
-- #############
-- ## ##
-- ## Inbox ##
-- ## ##
-- #############
local mailSlotCount = 18; -- Number of slots in the inbox TOC
function UMMInboxTOCTemplate_OnLoad(this)
this.RefreshTOC = function(self)
local offset = UMMMailManager.InboxOffset;
for i = 1, mailSlotCount do
local bu... | nilq/small-lua-stack | null |
type Storage = {
proxyAddr: string,
data: string
}
var M = Contract<Storage>()
function M:init()
self.storage.proxyAddr = ''
self.storage.data = '' -- delegate_call caller's contract must define storages used in callee
end
-- parse a,b,c format string to [a,b,c]
let function parse_args(arg: string, c... | nilq/small-lua-stack | null |
local asyncio = require "lua-asyncio"
local async = asyncio.async
local loop = asyncio.loops.EventLoop.new({}, 10, 10)
local lock = loop:new_object(asyncio.sync.Lock)
local event = loop:new_object(asyncio.sync.Event)
local shared_var
local shared_access = async(function()
if shared_var then return end
print("Acqui... | nilq/small-lua-stack | null |
local settings = {
-- #### FUNCTIONALITY SETTINGS
--navigation keybindings force override only while playlist is visible
--if "no" then you can display the playlist by any of the navigation keys
dynamic_binds = true,
-- to bind multiple keys separate them by a space
key_moveup = "UP",
key_mov... | nilq/small-lua-stack | null |
--This file should have all functions that are in the public api and either set
--or read the state of this source.
local vim = vim
local utils = require("neo-tree.utils")
local renderer = require("neo-tree.ui.renderer")
local M = {}
local default_config = nil
local state_by_tab = {}
local get_state = function()
l... | nilq/small-lua-stack | null |
local module = {}
local replicatedStorage = game:GetService("ReplicatedStorage")
local modules = require(replicatedStorage.modules)
local network = modules.load("network")
local utilities = modules.load("utilities")
network:connect("signal_alertChatMessage", "OnClientEvent", function(messageTable)
game.S... | nilq/small-lua-stack | null |
-- commands for modifying the debug module
local t = {}
local function info(self, f, title, graph, ...)
local func, err = loadstring(self.joinWithSpaces(...))
if err then
return err
else
f(title, func)
end
end
local function setValue(t, key, ...)
local base = t[key]
local values = { ... }
... | nilq/small-lua-stack | null |
-----------------------------------
--
-- Zone: Crawlers_Nest (197)
--
-----------------------------------
local ID = require("scripts/zones/Crawlers_Nest/IDs")
require("scripts/globals/conquest")
require("scripts/globals/treasure")
-----------------------------------
function onInitialize(zone)
UpdateNMSpawnPoint... | nilq/small-lua-stack | null |
local ConsoleAppender = {}
ConsoleAppender.__index = ConsoleAppender
setmetatable(ConsoleAppender, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function ConsoleAppender:new()
local self = setmetatable({}, ConsoleAppender)
return self
end
function ConsoleAppender:append(string)
prin... | nilq/small-lua-stack | null |
require 'mispec'
local buffer, buffer1, buffer2
local function initBuffer(buffer, ...)
local i,v
for i,v in ipairs({...}) do
buffer:set(i, v, v*2, v*3, v*4)
end
return buffer
end
local function equalsBuffer(buffer1, buffer2)
return eq(buffer1:dump(), buffer2:dump())
end
describe('WS2812 buffers', fun... | nilq/small-lua-stack | null |
require "lmkbuild"
local abs_path = lmkbuild.abs_path
local add_files = lmkbuild.add_files
local append = lmkbuild.append_local
local dofile = dofile
local exec = lmkbuild.exec
local function gset (name, value)
lmkbuild.set_global (name, value, true)
end
local ipairs = ipairs
local io = io
local file_newer = lmkbui... | nilq/small-lua-stack | null |
--[[
N2N V2 Luci configuration page.Made by 981213
]]--
module("luci.controller.n2n_v2", package.seeall)
function index()
if not nixio.fs.access("/etc/config/n2n_v2") then
return
end
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
entry({"admin", "vpn", "n2n_v2", "status"}, call("act_stat... | nilq/small-lua-stack | null |
local addon, ns = ...
ns.xCT = CreateFrame("Frame", "xCT", UIParent)
ns.Filters = {}
-- Addon
ns.xCT.Title = GetAddOnMetadata(addon, 'Title')
ns.xCT.Version = GetAddOnMetadata(addon, 'Version')
ns.xCT.VersionNumber = tonumber(ns.xCT.Version)
ns.xCT.Description = GetAddOnMetadata(addon, 'Notes')
ns.xCT.Welcome... | nilq/small-lua-stack | null |
local InstancedArea = require("api.InstancedArea")
local Area = require("api.Area")
local Assert = require("api.test.Assert")
function test_InstancedArea_set_child_area_position()
local parent = InstancedArea:new()
local child = InstancedArea:new()
parent:add_child_area(child)
local x, y, floor = parent:... | nilq/small-lua-stack | null |
-------------------------------------------- Библиотеки -------------------------------------------------------------
local component = require("component")
local colorlib = require("colorlib")
local gpu = component.gpu
local tetris = {}
-------------------------------------------- Переменные --------------------... | nilq/small-lua-stack | null |
local luv = require"luv"
OSes = {
Nothing = 0,
Windows = 1,
Unix = 2
}
current_os = OSes.Nothing
if luv.os_uname().sysname == "Windows_NT" then
current_os = OSes.Windows
else
current_os = OSes.Unix
end
| nilq/small-lua-stack | null |
local UIMacros =
{
Name = "UIMacros",
Type = "System",
Namespace = "C_Macro",
Functions =
{
},
Events =
{
{
Name = "ExecuteChatLine",
Type = "Event",
LiteralName = "EXECUTE_CHAT_LINE",
Payload =
{
{ Name = "chatLine", Type = "string", Nilable = false },
},
},
{
Name = "UpdateMac... | nilq/small-lua-stack | null |
--[[
German Localization
--]]
local ADDON = ...
local L = LibStub('AceLocale-3.0'):NewLocale(ADDON, 'deDE')
if not L then return end
--keybindings
L.ToggleBags = 'Inventar umschalten'
L.ToggleBank = 'Bank umschalten'
L.ToggleGuild = 'Gildenbank umschalten'
L.ToggleVault = 'Leerenlager umschalten'
--terminal
L.Comma... | nilq/small-lua-stack | null |
AddCSLuaFile()
SWEP.PrintName = "ПБ"
SWEP.Category = "Call of Pripyat"
SWEP.Base = "weapon_cop_base"
SWEP.Slot = 1
SWEP.SlotPos = 2
SWEP.Spawnable = true
SWEP.AdminOnly = false
SWEP.ViewModel = "models/wick/weapons/stalker/stcopwep/pb_model.mdl"
SWEP.WorldModel = "models/wick/weapons/stalker/stcopwep/w_... | nilq/small-lua-stack | null |
--[[------------------------------------------------------
lk.Node
-------
Encapsulate lua code (protect global space, enable reload,
provide links and introspection).
--]]------------------------------------------------------
-- node metatable
local lib = {type='lk.Node'}
lib.__index = lib
lk.Node = l... | nilq/small-lua-stack | null |
--[[
This is an example usage of the loveblobs library
use mouse 1 to grab objects
use mouse 2 to spawn softbodies
--]]
love.blobs = require "loveblobs"
local util = require "loveblobs.util"
local softbodies = {}
local mousejoint = nil
function love.load()
-- init the physics world
love.physics.setMeter(16)
wo... | nilq/small-lua-stack | null |
--[[
Array
The Array object represents the Postscript Array. It
has a few features and functions which make it
convenient.
A fixed size array, with an index starting at '0'
Useful when we want a more typical 'C' style array
of a fixed size.
The array guards against writing past its stated
capa... | nilq/small-lua-stack | null |
-- auto generated by collectmedb on 2019-11-30 22:13:22
local CollectMe = LibStub("AceAddon-3.0"):GetAddon("CollectMe")
local Data = CollectMe:GetModule("Data")
Data.CompanionsZone = {
[2403] = { [862] = 862, [942] = 942 }, -- Abyssal Eel
[2678] = { [1355] = 1355 }, -- Abyssal Slitherling
[1624] = { [339]... | nilq/small-lua-stack | null |
--[[-------------------------------------------------------------------
Nuke
---------------------------------------------------------------------]]
hook.Add("PlayerUse", "LaunchNuke", function(ply, ent)
if !ply:IsZombie() && ent.bNukeBtn && !ent:IsPressed() then
hook.Call( "OnNukeLaunched", GAMEMODE, ply )
end
e... | nilq/small-lua-stack | null |
Inventory = exports.vorp_inventory:vorp_inventoryApi()
local VorpCore = {}
TriggerEvent("getCore",function(core)
VorpCore = core
end)
data = {}
function RandomItem()
local Items = {
"goldbar",
"lockpick"
}
return Items[math.random(#Items)]
end
function RandomNumber()
return math.random(1,2)
... | nilq/small-lua-stack | null |
natives["java.lang.Object"] = natives["java.lang.Object"] or {}
natives["java.lang.Object"]["toString()Ljava/lang/String;"] = function(this)
return asObjRef(tostring(this):sub(8), "Ljava/lang/String;")
end | nilq/small-lua-stack | null |
ITEM.name = "Car Battery"
ITEM.desc = "An old car battery"
ITEM.model = "models/items/car_battery01.mdl"
ITEM.width = 2
ITEM.height = 2
ITEM.money = {6, 10} | nilq/small-lua-stack | null |
--[[
@Author: Gavin "Mullets" Rosenthal
@Desc: Datastore system that can replace DS2/Roblox Datastore implementation. Roll the dice 🎲
@Note: While developing the rework, I didn't know what I was doing so all parameters are laid out in dictionary format
--]]
--[[
[DOCUMENTATION]:
https://github.com/Mullets-Gavin/D... | nilq/small-lua-stack | null |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP_chests")
--- Config
-- list of static chests
-- {access, x, y, z, name-optional}
-- access = can be user_id, user_permission or user_group. Set it to "none" to... | nilq/small-lua-stack | null |
-- Unityから呼ばれるのはmain.luaのみとする。このファイルを起点にゲームスクリプトを記述する。
--[[local function foo(initPosX, speed)
for i = 1, 5 do
local enemy = GenerateEnemy(EnemyID.SmallBlueFairy, initPosX, ScreenTop.y, speed, -math.pi / 2, 8)
for i = 1, 15 do
coroutine.yield()
end
end
for i = 1, 180 do
coroutine.yield()
end
end]]
loca... | nilq/small-lua-stack | null |
local lg = love.graphics
local cpath = tostring(...):gsub("%.[^%.]+$", "")
local class = require(cpath .. ".utils").class
local Cart = class()
function Cart:init(runtime)
self._runtime = runtime
lg.setDefaultFilter("nearest", "nearest")
self._backCanvas = lg.newCanvas(2048, 2048)
self._clear = nil
self._ti... | nilq/small-lua-stack | null |
ITEM.name = "Административные документы"
ITEM.desc = ""
ITEM.price = 6942
ITEM.exRender = false
ITEM.weight = 0.12
ITEM.model = "models/kek1ch/notes_document_case_3.mdl"
ITEM.width = 2
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(202.4426574707, 169.8695526123, 123.72142791748),
ang = Angle(25, 220, 0),... | nilq/small-lua-stack | null |
LoveUI.TextView=LoveUI.Control:new();
function LoveUI.TextView:init(frame, contentSize, ...)
LoveUI.Control.init(self, frame, ...)
self.value=""
self.enabled=true
self.opaque=true;
self.tabAccessible=true
self.contentView=LoveUI.View:new(LoveUI.Rect:new(0,0,contentSize:get()));
self.contentView.opaque=true
sel... | nilq/small-lua-stack | null |
local slider = {}
slider.clickedLast = false
slider.leftLast = false
slider.rightLast = false
slider.leftCooldown2Active = false
slider.rightCooldown2Active = false
slider.leftCooldown1 = 0
slider.rightCooldown1 = 0
slider.leftCooldown2 = 0
slider.rightCooldown2 = 0
slider.wheelDelta = 0
function slider.new(x, y, size... | nilq/small-lua-stack | null |
function auriskins.gen_formspec_skins (player)
local fs = ainv.formspec_base(player)
fs = fs .. ainv.create_tabs()
--Labels
fs = fs .. [[
label[7,0;Available Skins]
]]
local playerdata = auriskins.get_skin_data(player)
if playerdata.preview then
fs = fs .. "image[3.5,1;3,6;" .. playerdata.preview .. "]"
e... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Nashmau
-- NPC: Abihaal
-- Standard Info NPC
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(221, player:getGil(), 100)
end
function onEventUpdate(player, csid, option)
end
function onEve... | nilq/small-lua-stack | null |
--- === cp.ui.Element ===
---
--- A support class for `hs.axuielement` management.
---
--- See:
--- * [Button](cp.ui.Button.md)
--- * [CheckBox](cp.rx.CheckBox.md)
--- * [MenuButton](cp.rx.MenuButton.md)
local require = require
--local log = require "hs.logger".new("Element")
local drawing... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Mhaura
-- NPC: Blandine
-- Start Quest: The Sand Charmz
-- !pos 23 -7 41 249
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onT... | nilq/small-lua-stack | null |
if FirstLoad then
SelectionShapes, SelectionShapesByHash = {}, {}
end
--calcs the dist between each point in the array of points,
--and then sticks the total dist up to that point in the z member
--clones the first point and sets it as last with the appropriate dist for less checks c side.
function PreparePointsArray... | nilq/small-lua-stack | null |
local _ = require 'moses'
local BN, parent = nn.BatchNormalization, nn.Module
local empty = _.clone(parent.dpnn_mediumEmpty)
table.insert(empty, 'buffer')
table.insert(empty, 'buffer2')
table.insert(empty, 'centered')
table.insert(empty, 'std')
table.insert(empty, 'normalized')
table.insert(empty, 'output')
table.inse... | nilq/small-lua-stack | null |
solution "string_c"
include "../../build"
project "string_c"
def_c()
files {"*.c","*.h"}
| nilq/small-lua-stack | null |
local Graphics = {
dx = 0,
dy = 0,
sx = 1,
sy = 1,
scissorX = 0,
scissorY = 0,
scissorWidth = 0,
scissorHeight = 0,
}
local function transform(x, y)
local newX = x * Graphics.sx + Graphics.dx
local newY = y * Graphics.sy + Graphics.dy
return newX, newY
end
function Graphics... | nilq/small-lua-stack | null |
--RBI Baseball script
--Written by adelikat
--Shows stats and information on screen and can even change a batter or pitcher's hand
local PitchingScreenAddr = 0x001A;
local PitchingScreen;
local p1PitchHealthAddr = 0x060D;
local p1PitchHealth;
local p2PitchHealthAddr = 0x061D;
local p2PitchHealth;
local... | nilq/small-lua-stack | null |
---@tag telescope.previewers
---@brief [[
--- Provides a Previewer table that has to be implemented by each previewer.
--- To achieve this, this module also provides two wrappers that abstract most
--- of the work and make it really easy create new previewers.
--- - `previewers.new_termopen_previewer`
--- - `previ... | nilq/small-lua-stack | null |
fx_version 'cerulean'
games { 'gta5' }
author 'MOXHA'
client_script 'debug/C_main.js'
server_script 'debug/S_main.js' | nilq/small-lua-stack | null |
--需要处理例子特效的ui对象 需要继承该类 比如baseview baseitem
UIPartical = UIPartical or BaseClass(UIZDepth)
local UIPartical = UIPartical
--每个layer的起始值
UIPartical.Start_SortingOrder_list = {
["Scene"] = 0,
["Main"] = 100,
["Dynamic_Main"] = 150,
["UI"] = 200,
["Activity"] = 300,
["Top"] = 400,
}
--每个layer的当前层数
UIPartical.curr_... | nilq/small-lua-stack | null |
local Prop = {}
Prop.Name = "Subs House 3"
Prop.Cat = "House"
Prop.Price = 450
Prop.Doors = {
Vector( 7975, 11855, 163 ),
Vector( 7884.3798828125, 11986.400390625, 163 ),
Vector( 7781, 12337, 163 ),
Vector( 7565, 11958.900390625, 163.21000671387 ),
}
GM.Property:Register( Prop ) | nilq/small-lua-stack | null |
require "loadurl"
require "json"
require "sed"
require "gmod_defines"
require "messagestats"
require "fn"
require "vectors"
require "http_codes"
require "algo"
require "youtubenamer"
require "imagereply"
require "yt"
require "wiki"
require "memespeak"
hook.StopPersist()
cookie.StopPersist();
| nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- -= Object =-
---------------------------------------------------------------------------------------------------
-- Setup
local Object = {}
Object.__index = Object
-- Returns a new Object
function Object:new(layer, ... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local libpath = package.searchpath('librfcn', package.cpath)
if not libpath then return end
require 'cunn'
ffi.cdef[[
void PSROIPooling_updateOutput(THCState *state, THCudaTensor *output, THCudaTensor *indices, THCudaTensor *data, THCudaTensor* rois, int spatial_scale, int height, int width... | nilq/small-lua-stack | null |
local M = {}
function M.test()
local cairo = require "org.xboot.cairo"
local M_PI = math.pi
local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400)
local cr = cairo.create(cs)
cr:save()
cr:set_source_rgb(0.9, 0.9, 0.9)
cr:paint()
cr:restore()
local dashes = {
50.0, --/* ink */
10.0, -... | nilq/small-lua-stack | null |
---
-- Pipe I/O handling.
--
-- @module radio.core.pipe
local ffi = require('ffi')
local math = require('math')
local class = require('radio.core.class')
local platform = require('radio.core.platform')
---
-- Pipe. This class implements the serialization/deserialization of sample
-- vectors between blocks.
--
-- @in... | nilq/small-lua-stack | null |
return function()
local utils = require('utils');
local animator = require('animator');
animator.stop();
utils.all(0,0,0, 66);
end | nilq/small-lua-stack | null |
add_rules("mode.debug", "mode.release")
set_policy("check.auto_ignore_flags", false)
-- 引入自定义工具链
includes("toolchains/*.lua")
set_targetdir("$(projectdir)/build/$(build_type)/$(mode)")
--
includes("util_lib")
| nilq/small-lua-stack | null |
DEFAULT_SETTINGS = nil
READY_PLAYERS = {}
-- *********************************************
function importDefaultSettings()
local settingsFile = fileOpen("settings.json")
if (settingsFile) then
local size = fileGetSize(settingsFile)
local data = fileRead(settingsFile, size)
local con... | nilq/small-lua-stack | null |
local Spell = { }
Spell.LearnTime = 30
Spell.ApplyFireDelay = 0.4
Spell.ForceSpriteSending = true
Spell.Description = [[
Changes the color of the
object you're looking at.
]]
Spell.NodeOffset = Vector(-13, 69, 0)
Spell.AccuracyDecreaseVal = 0
function Spell:PreFire(wand)
if not self.Sound then
self.Sound = Crea... | nilq/small-lua-stack | null |
local lspconfig = require("lspconfig")
local c = require("configs.completion.lsp.custom")
lspconfig.tsserver.setup(c.default({
root_dir = c.custom_cwd,
settings = {
tsserver = {
useBatchedBufferSync = true,
},
javascript = {
autoClosingTags = true,
su... | nilq/small-lua-stack | null |
object_tangible_storyteller_prop_pr_ch9_installation_creature_farm = object_tangible_storyteller_prop_shared_pr_ch9_installation_creature_farm:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_installation_creature_farm, "object/tangible/storyteller/prop/pr_ch9_installation_creature_farm.iff... | nilq/small-lua-stack | null |
local LibNumbers = Wheel("LibNumbers")
assert(LibNumbers, "UnitExtraPower requires LibNumbers to be loaded.")
-- Lua API
local _G = _G
local math_floor = math.floor
local pairs = pairs
local tonumber = tonumber
local tostring = tostring
local unpack = unpack
-- WoW API
local UnitCanAttack = UnitCanAttack
local UnitIs... | nilq/small-lua-stack | null |
require("txtjpg4")
util.AddNetworkString("screengrab_start")
util.AddNetworkString("screengrab_part")
util.AddNetworkString("screengrab_fwd_init")
util.AddNetworkString("screengrab_fwd")
hook.Add("PlayerSay", "screengrab_playersay", function( ply, said )
if string.Left( string.lower(said), 3 ) == "!sg" then
local ... | nilq/small-lua-stack | null |
local modname = "desserts_and_ice"
local modpath = minetest.get_modpath(modname)
local mg_name = minetest.get_mapgen_setting("mg_name")
local S = minetest.get_translator(minetest.get_current_modname())
-- Ice cream bowls
minetest.register_node("desserts_and_ice:vanilla_icecream_bowl", {
description = S("Bowl of V... | nilq/small-lua-stack | null |
local ui = script.Parent
local Roact = require(game.ReplicatedStorage.Roact)
local InfoDrop = require(ui.InfoDrop)
local green = Color3.fromHSV(0.3405, 0.5812, 0.6275)
local orange = Color3.fromHSV(0.0587, 1.0000, 0.9020)
local red = Color3.fromHSV(0.0000, 0.8470, 0.7176)
local function StatusBar(props)... | nilq/small-lua-stack | null |
local EQUIPMENT = script:FindAncestorByType("Equipment")
local BONUS_MOVEMENT = script:GetCustomProperty("BonusMovement")
EQUIPMENT.equippedEvent:Connect(function(equipment, player)
player.maxWalkSpeed = player.maxWalkSpeed + BONUS_MOVEMENT
end)
EQUIPMENT.unequippedEvent:Connect(function(equipment, player)
player... | nilq/small-lua-stack | null |
local API = require(script:GetCustomProperty("APITest"))
API.SaveInfo("Hello World")
Task.Wait(3)
print(API.GetInfo("value")) | 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.