content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
wait(0.03) local ply = game.Players.LocalPlayer local part = function(name,cframe,smooth,cancollide) local make = Instance.new("Part",ply.Character) make.Name = name make.FormFactor = Enum.FormFactor.Custom make.Size = Vector3.new(0.8,1,3) make.CFrame = ply.Character.Torso.CFrame make.FrontSurface = 2 make.BackS...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local config = require "game.config" local t_insert = table.insert local t_sort = table.sort local _M = {} _M.data = { profit = config.template.alliancegirl } _M.tryst_num_max = 2 _M.profit_type =...
nilq/small-lua-stack
null
-- Copyright (C) 2017-2019 DBot -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distr...
nilq/small-lua-stack
null
------------------------------------ --- Police Backup, Made by FAXES --- ------------------------------------ RegisterCommand("bk", function(source, args, rawCommand) local s = source local bkLvl = args[1] if not bkLvl then TriggerClientEvent("Fax:ShowInfo", source, "~y~Моля поставете код~n~~s~1,...
nilq/small-lua-stack
null
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_TransmogCollection C_TransmogCollection = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_TransmogCollection.GetAp...
nilq/small-lua-stack
null
xpcall(function() local a = 42 end, function(er) local b = "fail" end) local c = "finally"
nilq/small-lua-stack
null
require "SyMini" require "Catalunya" local pcount = 0 local totalpw = 0 local pwlist = ctk.string.loop:new() function updatelistview() while pwlist:parsing() do runtabcmd('resaddcustomitem',pwlist.current) end pwlist:clear() ctk.utils.delay(2000) end function newpassword(p) local j = ctk.json.object:ne...
nilq/small-lua-stack
null
local physics = {} function physics:enter() meterSize = 64 love.physics.setMeter(meterSize) --height of 1 meter in pixels for physics purposes world = love.physics.newWorld(0, 9.81*meterSize, true) ground = {} ground.body = love.physics.newBody(world, 700, 900, "static") ground.shape = love.physics.newRec...
nilq/small-lua-stack
null
local enc = require("__debugadapter__/base64.lua") --this has to be defined before requiring other files so they can mark functions as ignored local stepIgnoreFuncs = {} -- make it weak keys so it doesn't keep an otherwise-dead function around setmetatable(stepIgnoreFuncs,{__mode="k"}) ---@param f function loca...
nilq/small-lua-stack
null
return {'ootje','ootjes','ootmoed','ootmoedig','ootmoedigheid','ootmarsum','ooteman','ootes','ootjers','ootmoedige','ootmoediger','ootmoedigst','ootmoedigste','ootmarsumse'}
nilq/small-lua-stack
null
function marked_kunai(keys) if keys.caster:HasModifier(keys.modifierCheck) then keys.ability:ApplyDataDrivenModifier(keys.caster, keys.caster, keys.modifier, {}) else keys.caster:RemoveModifierByName(keys.modifier) end end function createDaggerParticle( keys ) if keys.caster.daggers == nil then keys.caster...
nilq/small-lua-stack
null
---@meta --=== liquidcrystal === ---@class lc local lc = {} ---@class backend_obj ---@class i2c4bitCfg ---@field sda integer ---@field scl integer ---@field busid integer ---@field busad integer ---@field speed integer ---@field rs integer ---@field rw integer ---@field en integer ---@field bl integer ---@field d4 ...
nilq/small-lua-stack
null
---@class CurrencySystem C_CurrencyInfo = {} ---@param currencyID number ---@return boolean|nil, boolean|nil warModeApplies, limitOncePerTooltip function C_CurrencyInfo.DoesWarModeBonusApply(currencyID) end ---@param index number ---@param expand boolean function C_CurrencyInfo.ExpandCurrencyList(index, expand) en...
nilq/small-lua-stack
null
position = {x = 49.9246597290039, y = 0.987726628780365, z = 17.6655139923096} rotation = {x = -2.40733538703353E-06, y = 270.008483886719, z = 0.00160439661704004}
nilq/small-lua-stack
null
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- -- Clear Chat @Administracji addCommandHandler("cc", function (player, _, ...) if getElementData(player, "player:admin", true) then local reason = tab...
nilq/small-lua-stack
null
--- Scene that runs the serialize sub-modules' test suites. -- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associated documentation files (the -- "Software"), to deal in the Software without restriction, including -- without limitation the rights to use, copy...
nilq/small-lua-stack
null
--!strict --[[ Linearly interpolates the given animatable types by a ratio. If the types are different or not animatable, then the first value will be returned for ratios below 0.5, and the second value for 0.5 and above. FIXME: This function uses a lot of redefinitions to suppress false positives from the Luau ...
nilq/small-lua-stack
null
-- Encoding: UTF-8 -- tmppanel.lua local far2_dialog = require "far2.dialog" local Package = {} -- The default message table local M = { MOk = "Ok"; MCancel = "Cancel"; MError = "Error"; MWarning = "Warning"; MTempPanel ...
nilq/small-lua-stack
null
local M = {} function M.sanitize(text) if (not text) then return end local str = tostring(text):gsub("<.->", "") -- Remove markup local t = {} for s in string.gmatch(str, "([^\n]+)") do t[#t + 1] = s end return t end function M.get_url(str) local url = str:match("https?://%S*") return url en...
nilq/small-lua-stack
null
pg = pg or {} pg.TimeMgr = singletonClass("TimeMgr") pg.TimeMgr._Timer = nil pg.TimeMgr._BattleTimer = nil pg.TimeMgr._sAnchorTime = 0 pg.TimeMgr._AnchorDelta = 0 pg.TimeMgr._serverUnitydelta = 0 pg.TimeMgr._isdstClient = false slot2 = 3600 slot3 = 86400 slot4 = 604800 pg.TimeMgr.Ctor = function (slot0) slot0._battle...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/1 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/detailed_info_GetSystemCapability.md -- Item: Use ...
nilq/small-lua-stack
null
lu = require('luaunit') TestFailuresWithXml = {} --class TestFailuresWithXml.__class__ = 'TestFailuresWithXml' function TestFailuresWithXml:test_failure_with_simple_xml() lu.assertEquals( '<toto>ti"ti</toto>', 'got it' ) end function TestFailuresWithXml:test_failure_with_cdata_xml() ...
nilq/small-lua-stack
null
pcu_events = {"FREQ_MAX_LIMIT_THERMAL_CYCLES","FREQ_MAX_LIMIT_POWER_CYCLES","MCP_PROCHOT_CYCLES","FREQ_TRANS_CYCLES"}
nilq/small-lua-stack
null
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") ENT.WireDebugName = "Starfall Processor" ENT.OverlayDelay = 0 local Context = SF.CreateContext() function ENT:UpdateState(state) if self.name then self:SetOverl...
nilq/small-lua-stack
null
--[[Author: Amused/D3luxe Used by: Pizzalol Date: 11.07.2015. Blinks the target to the target point, if the point is beyond max blink range then blink the maximum range]] function Blink(keys) local point = keys.target_points[1] local caster = keys.caster local casterPos = caster:GetAbsOrigin() local pid = caster...
nilq/small-lua-stack
null
local Move = { Right = gg.Vector.right(), Left = gg.Vector.left(), Up = gg.Vector.up(), Down = gg.Vector.down() } local Colors = { Head = {0, 1, 0}, Tail = {.075, .55, .075} } local moveIncrement = .1 local Player = { head = gg.Vector.new(3, 0), lastMoveTime = 0, lastMoveDir = Mov...
nilq/small-lua-stack
null
--[[ Copyright (c) 2008 Gordon Gremme <gremme@zbh.uni-hamburg.de> Copyright (c) 2008 Center for Bioinformatics, University of Hamburg 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 permissi...
nilq/small-lua-stack
null
object_tangible_borrie_wall_intr_assoc_wall_a = object_tangible_borrie_wall_shared_intr_assoc_wall_a:new { } ObjectTemplates:addTemplate(object_tangible_borrie_wall_intr_assoc_wall_a, "object/tangible/borrie/wall/intr_assoc_wall_a.iff")
nilq/small-lua-stack
null
local ffi = require 'ffi' local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C local C_str = ffi.string ffi.cdef [[ enum { GLFW_RESIZABLE = 0x00020003, GLFW_VISIBLE = 0x00020004, GLFW_DECORATED = 0x00020005, GLFW_FLOATING = 0x00020007 }; typedef struct { int width; int height; unsigned char* p...
nilq/small-lua-stack
null
-- components package local modules = { 'actor', 'colored', 'image', 'jumper_physics', 'zindex', } local package = select(1, ...) local exports = {} for _, modname in ipairs(modules) do exports[modname] = require(package .. '.' .. modname) end return exports
nilq/small-lua-stack
null
local sched = require 'sched' local common = require 'rpc.common' local proxy = require 'rpc.proxy' local socket = require 'socket' local checks = require 'checks' local M = { _NAME = 'rpc.sched' } M.SPAWN_CMD = [[LUA_PATH='./lua/?.lua;./lua/?/init.lua' LUA_CPATH='./lua/?.so' lua -e 'require"rpc".newclient(nil, %po...
nilq/small-lua-stack
null
--Copyright 2021 The casbin Authors. All Rights Reserved. -- --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 applicab...
nilq/small-lua-stack
null
local tableAssertion = flow.assertionFactory.new(function(data) local dataType = type(data); return dataType == "table", "TYPE_RESTRICTION_VIOLATION", "Table expected, got " .. dataType; end); tableAssertion.addSubAssertion("hasKey", function(data, key) return data[key] ~= nil, "INDEX_NON_EXISTENT", "Expected a va...
nilq/small-lua-stack
null
--[[ Copyright (c) 2020 robot256 (MIT License) * Project: Smart Artillery Wagons * File: control.lua * Description: Runtime operation script for replacing artillery wagons. * Functions: * => OnTrainChangedState * If train is stopped at station and signal is present, change wagons as needed. * => OnPlayer...
nilq/small-lua-stack
null
--Copyright 2021 The casbin Authors. All Rights Reserved. -- --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 applicab...
nilq/small-lua-stack
null
---@meta ---@class cc.TransitionProgress :cc.TransitionScene local TransitionProgress={ } cc.TransitionProgress=TransitionProgress ---* Creates a transition with duration and incoming scene.<br> ---* param t Duration time, in seconds.<br> ---* param scene A given scene.<br> ---* return An autoreleased TransitionP...
nilq/small-lua-stack
null
#!/usr/bin/lua g_db = require("genders") require("bfcommons") -- handle must be global local cnf_filename = "/etc/clustduct.conf" -- read the config local config = {} local cnf_file,err = loadfile(cnf_filename,"t",config) if cnf_file then cnf_file() else print(err) end if config.clustduct["confdir" ]== nil then config....
nilq/small-lua-stack
null
--[[ 检查被调用的接口是否为公共方法 @module PublicBehavior @author FuYao Date 2018-9-13 Last Modified by FuYao Last Modified time 2018-9-13 ]] local BehaviorBase = require("framework.behavior.BehaviorBase"); local PublicBehavior = class("PublicBehavior",BehaviorBase) PublicBehavior.className_ = "PublicBehavior"; function Pub...
nilq/small-lua-stack
null
local computer = require("computer") local component = require("component") local GUI = require("GUI") local MineOSInterface = require("MineOSInterface") local buffer = require("doubleBuffering") local image = require("image") local fs = require("filesystem") if not component.isAvailable("camera") then GUI.alert("Th...
nilq/small-lua-stack
null
local env = import_modules({})
nilq/small-lua-stack
null
-- Provides: -- signal::brightness -- percentage (integer) local awful = require("awful") -- Subscribe to backlight changes -- Requires inotify-tools local brightness_subscribe_script = [[ bash -c " while (inotifywait -e modify /sys/class/backlight/?*/brightness -qq) do echo; done "]] local brightness_scri...
nilq/small-lua-stack
null
Config = {} Config.DrawDistance = 15.0 Config.MarkerType = 1 Config.MarkerSize = { x = 1.5, y = 1.5, z = 0.5 } Config.MarkerColor = { r = 50, g = 50, b = 204 } Config.classicPrice = 50 Config.goldenPrice = 500 Config.plat...
nilq/small-lua-stack
null
fs = require 'bee.filesystem' local minizip = require 'minizip' local function for_directory(path, func, leaf) for file in (leaf and (path / leaf) or path):list_directory() do local leaf = (leaf and (leaf / file:filename()) or file:filename()) if fs.is_directory(file) then for_di...
nilq/small-lua-stack
null
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_rulebook\cr_kits.lst -- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237 SetSource({ SourceLong="Core Rulebook", SourceShort="CR", SourceWeb="http://paizo.com/store/downloads/pathfinder/pathfind...
nilq/small-lua-stack
null
require 'itertools' local class = require 'lupy' class [[Array < Sequence]] function __init__(self, ...) self.seq = {...} if #self.seq == 1 and type(self.seq[1]) == "table" then self.seq = {table.unpack(self.seq[1])} end Sequence.__init__(self, self.seq) end function get(self, i) ret...
nilq/small-lua-stack
null
function onCreate() -- background shit makeLuaSprite('together', 'roadstuff/together', -600, 0); addLuaSprite('together', false) makeLuaSprite('retry', 'roadstuff/bretry', -600, 0); addLuaSprite('retry', false) makeLuaSprite('town', 'philly/PHILLYAHAHA', -50, 400); addLuaSprite('town', false) setProperty('tow...
nilq/small-lua-stack
null
object_tangible_furniture_flooring_wood_frn_flooring_wood_s23 = object_tangible_furniture_flooring_wood_shared_frn_flooring_wood_s23:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_wood_frn_flooring_wood_s23, "object/tangible/furniture/flooring/wood/frn_flooring_wood_s23.iff")
nilq/small-lua-stack
null
--- Sounds API -- -- @topic api local failed = {} -- initialize random number generator local rand = PcgRandom(os.time()) --- Plays a sound. -- -- -- @function sounds:play -- @tparam string name Sound file without .ogg suffix. -- @tparam[opt] SoundParams sp Sound parameters. -- @treturn int Sound handle or ...
nilq/small-lua-stack
null
local locations = { } local shopBlips = { } local areBlipsEnabled = false; addEvent ( "NGModshop:sendClientShopLocations", true ); addEventHandler ( "NGModshop:sendClientShopLocations", root, function ( l ) locations = l; end ); addEvent ( "onClientPlayerLogin", true ); addEventHandler ( "onClientPlayerLogin", root,...
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", GAMEMODE...
nilq/small-lua-stack
null
require('src.utilities.numbers') Cursor = Base:extend() function Cursor:constructor(size, ox, oy) self.x = 1 self.y = 1 self.offsetX = ox or 0 self.offsetY = oy or 0 self.size = size or 16 self.cornerSize = 4 self.color = 7 self.weight = 1 self.full = false end function Cursor:draw...
nilq/small-lua-stack
null
require "lang.Signal" local Logger = require("Logger") describe("Log", function() it("should have created a global 'Log' variable", function() assert.truthy(Log) end) end) describe("Logger", function() local subject describe("default level", function() before_each(function() ...
nilq/small-lua-stack
null
local M = {} M.options = { icons_enabled = true, theme = 'gruvbox', component_separators = {'', ''}, section_separators = {'', ''} } M.sections = { lualine_a = {'mode'}, lualine_b = {'branch'}, lualine_c = {'filename'}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}...
nilq/small-lua-stack
null
-- Hello world function local function am(text) DEFAULT_CHAT_FRAME:AddMessage(text) end -- Create a local variable of the type Frame local a = CreateFrame("Frame") -- Register a Event on that Frame a:RegisterEvent("PLAYER_LOGIN") -- Set a script that will be run on a given Even...
nilq/small-lua-stack
null
function GetValue(list) local value = {} for k, v in ipairs(list) do value[v] = true end return value end BlacklistedPickupIDs = GetValue {8, 9, 10, 11, 26, 34, 43, 51, 55, 59, 62, 63, 64, 68, 71, 74, 75, 83, 90, 92, 93, 94, 104, 105, 115, 117, 118, 119, 124, 127, 132, 140, 141, 142, 144, 149, 150, 176, 177, 178...
nilq/small-lua-stack
null
local function paths_from(grid, row, col) if row > grid.rows or col > grid.cols then return 0 end if not grid[row][col] then grid[row][col] = paths_from(grid, row+1, col) + paths_from(grid, row, col+1) end return grid[row][col] end local function solve(data) local grid = { rows = data.length; cols = dat...
nilq/small-lua-stack
null
function getTriggerType() if stopTriggerSensor~=-1 then local data=sim.readCustomDataBlock(stopTriggerSensor,'XYZ_BINARYSENSOR_INFO') if data then data=sim.unpackTable(data) local state=data['detectionState'] if not lastStopTriggerState then lastSt...
nilq/small-lua-stack
null
num = {} -- finite difference: df/dx = ( f(x+eps)-f(x) ) / eps local function diff(f, a, Xr, p, eps) local orig = a[p] local y1 = f(a, Xr) a[p] = a[p] + eps local y2 = f(a, Xr) a[p] = orig return (y2 - y1) / eps end -- computes the mean square error local function mse(f, a, X, y) ...
nilq/small-lua-stack
null
#!/usr/bin/env glue print "This is a lua file!"
nilq/small-lua-stack
null
local ContextActionService = game:GetService("ContextActionService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local AppPage = require...
nilq/small-lua-stack
null
clibrary { name = "lib", srcs = { "./access.c", "./break.c", "./chmode.c", "./close.c", "./create.c", "./filesize.c", --"./lock.c", "./modtime.c", "./open.c", "./read.c", "./remove.c", "./rename.c", "./seek.c", "./stop.c", "./system.c", --"./unlock.c", "./write.c", }, hdrs = { "./system.h" }, }
nilq/small-lua-stack
null
data:extend({ { type = "item", name = "thorium-fuel-cell", icon = graphics .. "thorium-fuel-cell.png", icon_size = 64, icon_mipmaps = 4, pictures = { layers = { { size = 64, filename = "__Atomic_Overhaul__/graphics/icons/thorium-fuel-cell.png", scale = 0.25, mipmap_count =...
nilq/small-lua-stack
null
require("import") import("android.content.*") import("android.widget.*") import "android.view.View" local layout = { FrameLayout, layout_width="fill", layout_height="fill", { Button, text="button1", id="view1", layout_width="100dp", layout_height="50dp", }, { Button, id="view2",...
nilq/small-lua-stack
null
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 Level pushnumber 11 setfield -2 Value
nilq/small-lua-stack
null
local mainUrl = "https://raw.githubusercontent.com/Dewyer/minocarto/master/enderbank/frontend/main.lua"; local toWrite = "./main.lua"; local mainCode = http.get(mainUrl).readAll(); print("Got main code "..mainCode:len().." bytes"); local mainToWrite = fs.open(toWrite, "w"); mainToWrite.write(mainCode); mainToWrite.c...
nilq/small-lua-stack
null
-- lcall.lua local args = {...} if not args[1] then return nil end local f = args[1] table.remove(args, 1) f(unpack(args))
nilq/small-lua-stack
null
--[[ solo: zapraszanie, przyjmowanie zaproszen, wybor broni @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-solo @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- local sw, sh = guiGetScreenSize() solo_wnd...
nilq/small-lua-stack
null
-- ChiliPeppr - WS2812/WS2813 LED library -- local ZLed = {} ZLed = {} ZLed.pin = 4 ZLed.strandLength = 1 ZLed.buffer = ws2812.newBuffer(ZLed.strandLength, 3); ZLed.t = tmr.create() ZLed.isBusy = false function ZLed.chase(r, g, b) -- local isRun, mode = ZLed.t:state() -- if isRun == true then return end if Z...
nilq/small-lua-stack
null
object_building_player_city_shared_barn_no_planet_restriction = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/player/city/shared_barn_no_planet_restriction.iff" } ObjectTemplates:addClientTemplate(object_building_player_city_shared_barn_no_planet_restriction, "object/building/player/city...
nilq/small-lua-stack
null
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- This sub-module is used to access results to a spotlightObject query which have been grouped by one or more attribute values. -- -- A spotlightGroupObject is a special object created when you specify one or more grouping attributes with [hs.spo...
nilq/small-lua-stack
null
local floor, ceil = math.floor, math.ceil local min, max = math.min, math.max local mpp_util = require("mpp_util") ---@class Layout local layout = {} layout.name = "Base" layout.translation = {"mpp.settings_layout_choice_base"} layout.defaults = {} layout.defaults.miner = "electric-mining-drill" layout.defaults.bel...
nilq/small-lua-stack
null
local ffi = require("ffi") local utils = require("libc_utils") require ("sys/types") require ("sys/socket") ffi.cdef[[ typedef uint32_t tcp_seq; ]] -- This structure can be used if you're going to access -- the tcp header right on the wire. if ffi.abi("le") then ffi.cdef[[ struct tcphdr { union { struct { ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- W E B A P P -- -----------------------------------------------------------------------------...
nilq/small-lua-stack
null
-- -- Upcoming uniques will live here until their mods/rolls are finalised -- data.uniques.new = { -- 3.4 General [[ Aul's Uprising Onyx Amulet League: Delve Source: Drops from unique{Aul, the Crystal King} Variant: Strength: Anger Variant: Strength: Determination Variant: Strength: Purity of Fire Variant: Strength: ...
nilq/small-lua-stack
null
local BLACK_COLOR3: Color3 = Color3.new() local function Color3Lerp(C0: Color3, C1: Color3): (number) -> Color3 local L0: number, U0: number, V0: number local R0: number, G0: number, B0: number = C0.R, C0.G, C0.B R0 = R0 < 0.0404482362771076 and R0 / 12.92 or 0.87941546140213 * (R0 + 0.055) ^ 2.4 G0 = G0 < 0.04044...
nilq/small-lua-stack
null
-- Default ------------------ local theme = {} theme.font = 'Fira Code Medium 10' theme.useless_gap = 3 theme.border_width = 0 theme.border_normal = "#1c1c1c" theme.border_focus = "#1c1c1c" theme.border_marked = "#1c1c1c" return theme
nilq/small-lua-stack
null
return "abs"
nilq/small-lua-stack
null
ITEM.name = "Bloodsucker Jaw" ITEM.model ="models/lostsignalproject/items/parts/bloodsucker_jaw.mdl" ITEM.description = "A jaw from a bloodsucker." ITEM.longdesc = "Bloodsucker tentacles contain a special gland which produces an enzyme capable of dissolving the skin and simultaneously preventing blood from clotting. Di...
nilq/small-lua-stack
null
#!/usr/bin/lua local GPIO = require('rolib').GPIO local gpio_in = GPIO(10, "in")
nilq/small-lua-stack
null
local L = LibStub("AceLocale-3.0"):NewLocale("BestInSlotRedux", "esES") if L then L["%1$s from raid tier: %2$s"] = "%1$s desde raid tier: %2$s" L["%1$s needs nothing from %2$s %3$s"] = "%1$s no necesita nada de %2$s %3$s" L["%1$s needs the following bosses from %2$s %3$s"] = "%1$s necesita lo siguiente de los bosses ...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System local SlipeCollisionShapes local SlipeSharedElements System.import(function (out) SlipeCollisionShapes = Slipe.Shared.CollisionShapes SlipeSharedElements = Slipe.Shared.Elements end) System.namespace("Slipe.Shared.Elements.Events", function (namespace) nam...
nilq/small-lua-stack
null
GlobalVar("ShowResourceOverview", false) GlobalVar("g_ResourceOverviewCity", {}) GlobalVar("g_ResourceOverviewTotal", false) GlobalRealTimeThread("ResourceOverviewThread", function() while true do ResourceOverviewThreadBody() Sleep(1000) end end) function SavegameFixups.ResourceOverviewThread_MovedBodyOutOfLoop...
nilq/small-lua-stack
null
--Source : https://www.gadget-freakz.com/2018/05/script-your-dryver-or-washingmachine/ --Change the values below to reflect to your own setup Script = 'script_time_wasmachine' Debug = 'Y' -- Functions function Debug_msg (msg) if (Debug == 'Y') then print('>> ' .. Script .. ': '.. msg) end end -- Variable local washer_...
nilq/small-lua-stack
null
local opts = { noremap = true, silent = true } local term_opts = { silent = true } -- Shorten function name local keymap = vim.api.nvim_set_keymap --Remap space as leader key keymap("", "<Space>", "<Nop>", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " -- Modes -- normal_mode = "n", -- insert_mode = "i"...
nilq/small-lua-stack
null
local t = LoadFallbackB() -- top message t[#t+1] = StandardDecorationFromFile("CoinMessage","CoinMessage") -- scrolling message if PREFSMAN:GetPreference("Premium") ~= 'Premium_Off' then t[#t+1] = StandardDecorationFromFile("Premium","Premium") end if PREFSMAN:GetPreference("MemoryCards") then t[#t+1] = Def.Sprite...
nilq/small-lua-stack
null
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables -- -- Global variables get saved when a scenario gets checkpointed in one of the folowin...
nilq/small-lua-stack
null
--require "common/class" function callLuaException2(p1,p2) DDerror("al12") --exception end function callLuaException() callLuaException2(); end function test() local df=fuud() end function LuaCallFun_exception1() LogInfo("run LuaCallFun_exception1 ") LuaCallFun_exception(); end test();
nilq/small-lua-stack
null
local wibox = require('wibox') local awful = require('awful') local gears = require('gears') local naughty = require('naughty') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local config_dir = gears.filesystem.get_configuration_dir() local widget_icon_dir = config_dir .. 'widget/sc...
nilq/small-lua-stack
null
-- be sure to have the `date.lua` file -- from https://github.com/Tieske/date local date = require "date" -- replace "Created Date"/"Closed Date" columns -- with the name of the columns in your CSV if (string.len(col["Created Date"]) == 0 or string.len(col["Closed Date"]) == 0) then return end local t_sdate = da...
nilq/small-lua-stack
null
-- Modification from the codebase of scott's icml16 -- please check https://github.com/reedscot/icml2016 for details require 'image' require 'nn' require 'nngraph' require 'cunn' require 'cutorch' require 'cudnn' require 'lfs' require 'torch' torch.setdefaulttensortype('torch.FloatTensor') local alphabet = "abcdef...
nilq/small-lua-stack
null
local has_telescope, telescope = pcall(require, "telescope") if not has_telescope then error "This extension requires telescope.nvim (https://github.com/nvim-telescope/telescope.nvim)" end local terraform_builtin = require "telescope._extensions.terraform.builtin" return require("telescope").register_extension { ...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.PrintName = "Merchant" ENT.Category = "GmodZ" ENT.Spawnable = true ENT.AdminOnly = true ENT.isMerchant = true ENT.bNoPersist = true function ENT:SetAnim() for k, v in ipairs(self:GetSequenceList()) do if (v:lower():find("idle") and v != "idlenoise") then return self:ResetSequence(k) end ...
nilq/small-lua-stack
null
--[[ author: Aussiemon ----- Copyright 2018 Aussiemon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
nilq/small-lua-stack
null
require("ui/node"); local match_hall_record_item_history_layout = require(ViewPath .. "hall/matchHall/widget/match_hall_record_item_history_layout"); require("hall/matchHall/gameMatchHall/data/matchRecordDataInterface"); -- 历史战绩 local GameMatchHallRecordMatchItem = class(Node); -- 箭头状态:右,下,上 GameMatchHallRecord...
nilq/small-lua-stack
null
local positions = { vec3(-744.510,-1369.972,43.256) } local scenarios = {} function PopulateFeedBagPutdown() local ped = PlayerPedId() local pedPosition = GetEntityCoords(ped) local scenarioType = "WORLD_HUMAN_FEEDBAG_PUTDOWN" local scenarioTypeHash = GetHashKey(scenarioType) for _, position...
nilq/small-lua-stack
null
os.loadAPI("mcip") TIMEOUT_THRESHOLD = 10 mcip.initialize() mcip.ipv4_initialize("default", "192.168.1.1", "255.255.255.0", "192.168.1.254") mcip.filter(mcip.ICMP, mcip.ENABLED) mcip.run_with(function() while true do mcip.icmp_ping("default", "192.168.1.2") parallel.waitForAny( function() local event, i...
nilq/small-lua-stack
null
local _, ns = ... local _, _, L = unpack(ns) if GetLocale() ~= "frFR" then return end L["Version Check"] = "Ne prend en charge que NDui v%s" L["Changelog"] = "Journal des modifications" L["Option Tips"] = "|nLes options non marquées avec un astérisque (*) nécessitent un rechargement de l'interface utilisateur.|n|nDoub...
nilq/small-lua-stack
null
require("scripts/util") MoarInserterItemPrototypeTemplate = { type = "item", name = "TEMPLATE", icon = "TEMPLATE", flags = {"goes-to-quickbar"}, subgroup = "inserter", order = "TEMPLATE", place_result = "TEMPLATE", stack_size = 100 } function init(obj, typeArg, rangeArg) local baseName = typeArg .. ...
nilq/small-lua-stack
null
return { AIR = { Name = "Air", Desc = "... Air. How do you have this?", Translucent = true, }, STONE = { Name = "Stone", Desc = "Unremarkable stone. Hard as a rock.", Translucent = false, Value = 1, }, UNBREAKIUM = { Name = "_unbreakium...
nilq/small-lua-stack
null
dofile 'lampshade.lua' local config = { scale = 0.25, tolerance = 1, thickness = 3, profile_number = 4, -- shall be 20 to be nicer angle = 30, -- default is zero bottom = { external_radius = 100, internal_radius = 80, -- radius = at middle }, upper = { height = 200, ...
nilq/small-lua-stack
null