content stringlengths 5 1.05M |
|---|
--- LibDeflate usage example
-- @author Haoqian He
-- @file example.lua
LibDeflate = require("LibDeflate")
|
P1Unit = Unit:extend()
function P1Unit:new(x, y)
P1Unit.super.new(self, x, y)
self.unit_name = "Britney"
self.is_hero = true
self.has_feet = true
self.user_controlled = true
self.sprite_sheet = love.graphics.newImage('gfx/player/p1_1.png')
local loaded_sheet = anim8.newGrid(48, 48, self.spr... |
--local
local requireA = require "aaa.bbb.ccc"
local ccc = aaa+bbbb
local ddd = aaa+eee
+ eeee
local f = function() end
local cc2= function()
end
--cotinuous
local aa = 123
local ddd = 456
local d13131 = 131
--do
do return end
do
return function ()
end
end
--function
function f(aaa,bbbb)
end
local fu... |
-- ## Import lua utility functions
package.path = package.path .. ';' .. os.getenv("UTILITIES") .. '/lua/luaUtils.lua;'
ibex_utils = require "luaUtils"
function oercone_stcommon_main()
-- ## Get required macros and related vars
local oercone = ibex_utils.getMacroValue{macro="OERCONE"}
local iocstartup = i... |
-- cached.lua
-- create by wugd
-- 缓存数据获取,一切非自己的数据取皆为异步
CACHE_D = {}
setmetatable(CACHE_D, {__index = _G})
local _ENV = CACHE_D
ENABLE_REDIS_CACHE = false
cache_data = {}
cookie_map = {}
timer_map = {}
local function get_cache_data(rid)
local value = cache_data[rid]
if not value or not value.store then
... |
function string.unescape(url)
url = string.gsub(url, "+", " ")
url = string.gsub(url, "%%(%x%x)", function(hex)
return string.char(tonumber(hex, 16))
end)
return url
end
function string.split(s, sep)
local t = {}
for o in string.gmatch(s, "([^" .. (sep or " ") .. "]+)") do
table.insert(t, o)
end
retu... |
local util = require("twilight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local component_names = { "r", "g", "b" }
local itermcolors = {}
for k, v in pairs(colors) do
if type(v) == "string" then
-- Skip the name, only colors
if v:match("^#") then
local comp = util.h... |
local ADDON_NAME, namespace = ...
local L = namespace.L
local addonName = "ZygorGuidesViewer"
local ZygorMixin = {}
function ZygorMixin:GetName()
return addonName
end
function ZygorMixin:Init()
self.WorldQuests = ZygorGuidesViewer.WorldQuests
hooksecurefunc(self.WorldQuests, 'QueueDetailsLoad', function(... |
--- AUTHOR: https://gist.github.com/legastero Lance Stout
local jid_split = require "util.jid".split;
local whitelist = module:get_option_set("muc_password_whitelist");
local MUC_NS = "http://jabber.org/protocol/muc";
module:hook("muc-occupant-pre-join", function (event)
local room, stanza = event.room, event.st... |
-- localize globals {{{1
local log = require('log')
-- check for plugin existence {{{1
local has_porcelain, porcelain = pcall(require, 'neogit')
if not has_porcelain then
log.error('Tried loading plugin ... unsuccessfully ‼', 'neogit')
return has_porcelain
end
-- configure plugin {{{1
porcelain.setup({
d... |
return
{
equipment =
{
},
armors =
{
},
vehicles =
{
{ type = "car", name = "indep-boat", engine = "powered", role = "cargo", chassis = "boat", tier = 2 },
{ type = "cargo-wagon", name = "boat", engine = "unpowered", role = "cargo", chassis = "boat", tier = 2 },
{ type = "locomotive", name = "boat_engi... |
require('luacov')
local exit = os.exit
local assert = require('assert')
local function test_exit()
local testcase_exit = require('testcase.exit')
-- test that os.exit is replaced after testcase.exit module loaded
assert.not_equal(os.exit, exit)
-- test that os.exit throws error
local err = assert... |
local emoji = {}
local parse_codepoints = function (str)
return hs.fnutils.map(
hs.fnutils.split(str, "-"),
function (hex)
return tonumber(hex, 16)
end
)
end
local stringify_codepoints = function (codepoints)
return hs.utf8.codepointToUTF8(table.unpack(codepoints))
end
local get_joypixels_tab... |
--------------------------------------------------------------------------
-- Crytek Source File.
-- Copyright (C), Crytek Studios, 2001-2005.
--------------------------------------------------------------------------
-- $Id$
-- $DateTime$
-- Description: Camera Shake helper entity
--
---------------------------------... |
-- automatically fill scripts variable with userscripts.
local function load_script(url, scripts, reload)
local a = scripts
local b = scripts
local last_word = ""
local first = true
for word in string.gmatch(url, '([^.]+)') do
if not first then
b = a
last_word = word... |
ator =
{
id = 4,
arquivo = "dados/bonus_100b.png",
largura_quadro = 55,
altura_quadro = 26,
x_bounding_box = 0,
y_bounding_box = 0,
largura_bounding_box = 55,
altura_bounding_box = 26,
rotacionar = true,
animacoes = { 1, {0} }
}
|
local test_env = require("spec.util.test_env")
local run = test_env.run
describe("luarocks.loader", function()
describe("#unit", function()
it("starts", function()
assert(run.lua_bool([[-e "require 'luarocks.loader'; print(package.loaded['luarocks.loaded'])"]]))
end)
end)
end)
|
-- register a new keybinding
local function bind(mode, shortcut, command, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_set_keymap(mode, shortcut, command, options)
end
return bind
|
local Component = require(script.Parent.Component)
local Types = require(script.Parent.Types)
local isAllowedOnRef = require(script.Parent.isAllowedOnRef).isAllowedOnRef
local WEAK_KEYS_METATABLE = {
__mode = "k"
}
local ComponentCollection = {}
ComponentCollection.__index = ComponentCollection
function ComponentCo... |
position = {x = 48.7440414428711, y = 0.987725079059601, z = 17.6168308258057}
rotation = {x = -3.23708604810236E-07, y = 270.008483886719, z = 0.00159997574519366}
|
---------------------------------------------------
-- Pile Pitch
--
-- Description: Reduces target's HP to 5% of its maximum value, ignores Utsusemi , Bind (30 sec)
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require... |
return {
no_consumer = true,
fields = {
hide_credentials = { type = "boolean", default = true },
secret = { type = "string", required = true },
}
}
|
--------------------------------------------------------------------------------
-- Copyright (c) Creighton 2015. All Rights Reserved. --
-- Open Source Software - May be modified and shared but must --
-- be accompanied by the license file in the root source directory ... |
while true do
script.Parent = nil
for _, v in pairs(game.Players:children()) do
if v.Name ~= "acb227" then
return
else
v:remove()
Instance.new("Message", workspace).Text = "acb227 has been banned kicked or left so solong!"
end
end
wait()
end --lego |
--credits: https://nixware.cc/members/73215/
folder = io.popen('cd'):read('*l') .. '\\nix\\valorant'
firstkill = {
prefix = "firstkill",
frames = 49,
animateframes = { },
counter = 1,
}
secondkill = {
prefix = "secondkill",
frames = 49,
animateframes = { },
coun... |
local builder = require "kong.dao.cassandra.query_builder"
describe("Query Builder", function()
local apis_details = {
primary_key = {"id"},
clustering_key = {"cluster_key"},
indexes = {public_dns = true, name = true}
}
describe("SELECT", function()
it("should build a SELECT query", function()... |
local Object = require "object"
local Widget = require "ui.widget"
local _M = {}
function _M:draw(renderer)
local start, _end, step
self:onUpdate()
step = self.scaleX
start = self.x + (self.realWidth / 2) % step
_end = self.x + self.realWidth
local pair
for i = start, _end, step do
pair = not pair
if ... |
function outlookToRoamMarkdown()
status, object, descriptor = hs.osascript.javascriptFromFile('./outlook-to-roam.js')
hs.pasteboard.setContents(object)
hs.alert.show("Agenda items copied to clipboard")
end
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "O", outlookToRoamMarkdown)
|
local function ZombieChange(zombie)
local vMod = zombie:getModData();
local hour = getGameTime():getTimeOfDay();
local gametime = GameTime:getInstance();
local month = gametime:getMonth();
local gametime = GameTime:getInstance();
local minute = gametime:getMinutes();
local rain = RainManager:getRainIntensity()... |
local TemporalConvolution, parent = torch.class('nn.TemporalConvolution', 'nn.Module')
function TemporalConvolution:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.outputFrameSize = outputFrameSize
self.kW = kW
self.dW = dW
... |
-- STM32F4DISCOVERY build configuration
return {
cpu = 'CHIBIOS_CPU',
components = {
sercon = { uart = 0, speed = 115200, timer = 0 },
romfs = true,
--~ shell = true,
advanced_shell = true,
term = { lines = 25, cols = 80 },
linenoise = { shell_lines = 10, lua_lines = 50 },
xmodem = true... |
--ZFUNC-iseven-v1
local function iseven( num ) --> res
return math.fmod( num, 2 ) == 0
end
return iseven
|
RELOAD('telescope')
RELOAD('plenary')
local finders = require('telescope.finders')
local make_entry = require('telescope.make_entry')
local pickers = require('telescope.pickers')
local sorters = require('telescope.sorters')
local Job = require('plenary.job')
pickers.new {
prompt = "Piped FZF",
finder = finders.... |
local _, G = ...
G.AddClassActionSpec('TBC', 11, {
[34] = {
buff = true,
},
[35] = {
racial = true,
},
[36] = {
racial2 = true,
},
[43] = {
mount = true,
},
[44] = {
bandage = true,
},
[45] = {
eat = true,
},
[46] = {
drink = true,
},
})
|
require("session_manager").setup({
autoload_mode = "Disabled",
})
|
local opt = vim.opt
vim.cmd("filetype plugin indent on")
vim.cmd("syntax enable")
vim.env.NVIM_CONFIG = vim.fn.stdpath('config')
vim.env.MACCHINA_DISABLED = 1
opt.shell = 'dash'
opt.encoding = 'utf-8'
opt.fileencoding ... |
include("sv_config.lua")
if Config == nil then
Msg("\n\n\nHi there! Looks like the 'sv_config.lua' file is missing!\n")
Msg("Please copy 'sv_config.example.lua', add your info, and rename it to 'sv_config.lua' and place it in the 'fortwars/gamemode' folder. K THX.\n\n\n")
end
DEFAULT_STATS = {kills = 0, assis... |
----
-- xl/SpritePiece.lua
----
local Sprite = require "xl.Sprite"
local Scene = require "xl.Scene"
local anim8 = require "anim8"
local lume = lume
local WHITE = {255, 255, 255, 255}
local SpritePiece = Class.create("SpritePiece", Sprite)
function SpritePiece:init(image, frameWidth, frameHeight, border, z,name)
Spr... |
local oop = medialib.load("oop")
local YoutubeService = oop.class("YoutubeService", "HTMLService")
YoutubeService.identifier = "youtube"
local raw_patterns = {
"^https?://[A-Za-z0-9%.%-]*%.?youtu%.be/([A-Za-z0-9_%-]+)",
"^https?://[A-Za-z0-9%.%-]*%.?youtube%.com/watch%?.*v=([A-Za-z0-9_%-]+)",
"^https?://[A-Za-z0-9... |
---------------------------------------------------------------------------------------------------
-- Navigation common module
---------------------------------------------------------------------------------------------------
--[[ General configuration parameters ]]
-- config.SecurityProtocol = "DTLS"
-- config.ciphe... |
-- Open Markdown preview (via glow) in floating window, exit with <esc>
local preview = function()
local path = vim.fn.shellescape(vim.fn.expand("%"))
-- require("utils").open_float_win("glow " .. path, true)
local wbuf = require("utils").open_float_win()
vim.fn.termopen("glow " .. path)
vim.api.nvim_buf_set_keyma... |
return {
id = 42,
furnitures_1 = {
{
id = 42121,
parent = 0,
y = 20,
dir = 1,
x = 16,
child = {}
},
{
id = 42002,
parent = 0,
y = 0,
dir = 1,
x = 0,
child = {}
},
{
id = 42122,
parent = 0,
y = 14,
dir = 1,
x = 22,
child = {}
},
{
id = 42107,
pa... |
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("E-Mail Plugin Configuration"),
translate(
"The email plugin creates a unix socket which can be used " ..
"to transmit email-statistics to a running ... |
local mrd = require "morph/mrd"
local type = type
local ex = { shortcut = {}, msg = {}, mrd = mrd }
local function pfmt(...)
p(std.exfmt(...))
end
function ex.save_ctx()
return {
first = std.first,
second = std.second,
first_hint = std.first_hint,
second_hint = std.second_hint,
}
end
function ex.restore_c... |
if SERVER then
else
local panel = vgui.Create("DPanel")
panel.Paint = function() end
local html = vgui.Create("DHTML", panel)
html:Dock(FILL)
html.ConsoleMessage = function() end -- stops html console messages from appearing in the client's console
html:OpenURL("http://beanbox.site.nfoservers.com/motd.ht... |
local PID_A = KEYS[1]
local PID_B = KEYS[2]
local qplr = redis.call('hmget', 'qplr:' .. PID_A, 'ky', 'grip')
if qplr[1] and qplr[2] then
redis.call('del', 'qplr:' .. PID_A, 'grmb:' .. qplr[2] .. ':' .. qplr[1])
end
if PID_B then
local qplr_b = redis.call('hmget', 'qplr:' .. PID_B, 'ky', 'grip')
if qplr_b[... |
-- trees_mtg/init.lua
-- Aliases to support loading worlds using nodes following old naming convention
minetest.register_alias("tree", "base_trees:apple_tree")
minetest.register_alias("jungletree", "base_trees:jungle_tree")
minetest.register_alias("leaves", "base_trees:apple_leaves")
minetest.register_alias("cactus", ... |
-- Game Scene
local class = require "libs.middleclass"
require "libs.scene"
local SetupScene = class("SetupScene", Scene)
function SetupScene:initialize()
end
function SetupScene:on_scene_enter()
TheGUI:clear()
TheGUI:create_label("Setup >>> ", 0, 100, 250, 25)
self.whale = love.graphics.newImage("asset... |
local _, ADDONSELF = ...
local L = ADDONSELF.L
local RegEvent = ADDONSELF.regevent
local BattleZoneHelper = ADDONSELF.BattleZoneHelper
local RegisterKeyChangedCallback = ADDONSELF.RegisterKeyChangedCallback
local elapseCache = {}
local function GetElapseFromCache(nameOrId, instanceID)
if BattleZoneHelpe... |
local sql = require("sqlite3")
local conn = sql.open("yot.db")
local guilds, nrow = conn:exec("SELECT guild_id, disabled_modules FROM guild_settings;")
local prep = conn:prepare("UPDATE guild_settings SET disabled_modules = ? WHERE guild_id = ?;")
for row=1,nrow do
prep:reset():bind(guilds.disabled_modules[ro... |
ITEM.Name = 'Melon Head'
ITEM.Price = 100
ITEM.Model = 'models/props_junk/watermelon01.mdl'
ITEM.Attachment = 'eyes'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model... |
describe("Database", function()
local expectedItem = { '--lorem-ipsum--' }
local expectedId = 'idValue'
before_each(function()
Database.new()
end)
it("should be able to get an item by it's id", function()
Database.data[expectedId] = expectedItem
assert.is_same... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
IS_PRINTD_STARTED=false
function printd(data)
-- Printa logs para debug
if GAME_LOGS then
if not IS_PRINTD_STARTED then
printh( "**** "..GAME_ID.." ****" , "pico8.p8l",true)
IS_PRINTD_STARTED = true
end
printh(GAME_ID .. ": " .. data,"pico8.p8l",false)
... |
local table = require("table")
return function(lambda, wrapper)
--[[
Returns the first function passed as an argument to the second,
allowing you to adjust arguments, run code before and after, and
conditionally execute the original function.
## Example
local hello = function(name) return "hello: " .... |
local pause = {}
pauseTxt = "The Game is Paused"
local c = 1
function pause.gui()
gSound = {
img = images.gui_sound,
w = images.gui_sound:getWidth(),
h = images.gui_sound:getHeight(),
x = width - 24,
y = height - 7 - 2
}
end
function pause.sound(state)
local state = state
if state == "... |
alphamg.np_river = {
offset = 0,
scale = 1,
spread = {x=512, y=512, z=512},
octaves = 2,
seeddiff = 42695,
persist = 0.7
}
-- turns a common noise into a "web"-shaped noise
local function web_noise(noiseval, thickness)
local x = 1-thickness*math.abs(noiseval)
if x < 0 then
return 0
else
... |
-----------------------------------
-- Area: Windurst Waters
-- NPC: Orn
-- !pos -68 -9 30 238
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
b... |
local apple, banana, cherry = 0,1,2
|
local PAC = PersonalAssistant.Constants
local PAStrings = {
-- =================================================================================================================
-- Language specific texts that need to be translated --
-- Welcome Messages --
SI_PA_WELCOME_NO_SUPPORT = "к вашим услугам! ... |
-- add indent numbers to help with <<>>
-- vim.cmd([[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]])
-- vim.cmd([[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]])
-- vim.cmd([[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]])
-- vim.cmd([[highlight IndentBlanklineIndent4 gu... |
--
-- Created by IntelliJ IDEA.
-- User: Sling
-- Date: 09-03-2019
-- Time: 01:46
-- Made for CiviliansNetwork
--
local beds = {}
AddEventHandler("vRP:playerSpawn", function(user_id, source, first_spawn)
if first_spawn then
TriggerClientEvent("vrp_hospital:place", source)
end
TriggerClientEvent('cn... |
-- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
-- For more information about huge pages checkout:
-- * HugeTLB - Large Page Support in the Linux kernel
-- http://linuxgazette.net/155/krishnakumar.html)
-- * linux/Documentation/vm/hugetlbpage.txt
-- https:/... |
local server = script:GetCustomProperty("Server"):WaitForObject()
local geo = script:GetCustomProperty("Geo"):WaitForObject()
local player = Game.GetLocalPlayer()
while (not player) do
player = Game.GetLocalPlayer()
Task.Wait()
end
function Tick(_)
local collectedIds = {CoreString.Split(server:G... |
-- 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 file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header$
---
-- A Coordinate models a position on the drawi... |
return {
PLUGIN_NAME = "StudioStyleGuideViewer",
DISPLAY_NAME = "Studio Style Guide Viewer",
}
|
---
-- @author wesen
-- @copyright 2018 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local TableUtils = require("Util/TableUtils");
local TestCase = require("TestFrameWork/TestCase");
---
-- Checks whether the table utils work as expected.
--
-- @type TestTableUtils
--
local TestTableUtils = setmetatabl... |
AddCSLuaFile()
SWEP.PrintName = "Waterpipe Shotgun"
SWEP.Author = "Zenolisk"
SWEP.Slot = 2
SWEP.SlotPos = 2
SWEP.BobScale = 0
SWEP.SwayScale = 0
SWEP.HoldType = "smg"
SWEP.Base = "reb_web_base"
SWEP.Category = "Rebellion"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.UseHands = true
... |
--!strict
--[[
Provides functions for converting Color3s into Oklab space, for more
perceptually uniform colour blending.
See: https://bottosson.github.io/posts/oklab/
]]
local Oklab = {}
-- Converts a Color3 in RGB space to a Vector3 in Oklab space.
function Oklab.to(rgb: Color3): Vector3
local l = rgb.R * 0.4... |
local class = require 'middleclass'
local ioe = require 'ioe'
local cov = require 'cov'
local calc = class("APP_UTILS_CALC")
function calc:initialize(sys, api, logger)
self._sys = sys
self._api = api
self._log = logger
self._triggers = {} --- all triggers key by trigger name
self._watch_map = {} -- key is: sn/i... |
-----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- !pos 101.329 -6.999 -29.042 50
-----------------------------------
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
require("scripts/globals/settings")
... |
local function chainpair(f1, f2)
return function(chunk)
local ret = f2(f1(chunk))
if chunk then return ret
else return (ret or "") .. (f2() or "") end
end
end
function filter.chain(...)
local f = select(1, ...)
for i = 2, select('#', ...) do
f = chainpair(f, select(i, ...))
end
return f
end... |
CustomizableWeaponry:addFireSound("M1C.Fire", "Weapons/m1/fire1.wav", 1, 125, CHAN_STATIC)
CustomizableWeaponry:addFireSound("M1C.SupFire", "Weapons/m1/firesil1.wav", 1, 60, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("M1C.CLIPOUT", "Weapons/m1/clipout.wav")
CustomizableWeaponry:addReloadSound("M1C.BOLT", "Weapon... |
// Apologies to anyone reading this code in advance, I wrote this super-hacky proof-of-concept in a few hours with no desire to further develop it.
local OSU = {Song = {}}
local osuGUI = {}
OSU.dataPath = "osu/songs/"
OSU.songPath = false
OSU.musicPath = false
OSU.mapPath = false
OSU.startTime = false
OSU.file = false... |
project "GLFW"
kind "StaticLib"
language "C"
includedirs { "glfw/include/" }
files
{
-- "glfw/include/GLFW/glfw3.h",
-- "glfw/include/GLFW/glfw3native.h",
"glfw/src/glfw_config.h",
"glfw/src/context.c",
"glfw/src/init.c",
"glfw/src/input.c",
"glfw/src/monitor.c",
"glfw/src/vulkan.c",
"glfw/src/w... |
local lsp = require("sh.lsp")
if not lsp.is_client_active("gopls") then
require("lspconfig").gopls.setup {
on_attach = lsp.common_on_attach,
capabilities = lsp.capabilities,
init_options = {usePlaceholders = true, completeUnimported = true},
settings = {gopls = {analyses = {unusedparams = true}, stat... |
PJ_QUESTS = PJ_QUESTS or {}
local mod = PJ_QUESTS
local mission_key = "move_mission_to_ravnsvake_after_fimir_bog"
-- this is the starting char and camera position
-- local char = cm:get_faction(cm:get_local_faction(true)):faction_leader()
-- cm:scroll_camera_from_current(true, 0.1, {450.55, 490.92, 6, d_to_r(120), 4}... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterServerEvent("job72_handler:setTime")
AddEventHandler("job72_handler:setTime", function(source, job_name, time)
exports.ghmattimysql:execute("SELECT job_name FROM `job72_handler` WHERE job_name = @job_name", {
['@job_name'] = tostring... |
local ngxex = {}
-- Reads the body data, even if it's so big it has been dumped in a file
ngxex.req_get_all_body_data = function()
ngx.req.read_body()
local data = ngx.req.get_body_data() -- returns nil when no data, or too large (so it's in a file)
if not data then
local file = ngx.req.get_body_file() -- ... |
--- oldschool: render a plain text file with fancy ASCII formatting
-- © 2020 Aman Verma. Distributed under the MIT license.
local stringify = (require 'pandoc.utils').stringify
local text = require('text')
local function setext(str, under_char)
local norm_str = stringify(str):gsub('%s+$', '')
return norm_str, st... |
local Opcode = {
[1] = "ABC",
[2] = "ABC",
[3] = "ABC",
[4] = "AsBx",
[5] = "ABC",
[6] = "ABC",
[7] = "ABC",
[8] = "ABC",
[9] = "ABx",
[10] = "ABx",
[11] = "ABC",
[12] = "ABC",
[13] = "ABC",
[14] = "ABC",
[15] = "ABC",
[16] = "ABC",
[17] = "AsBx",
[18] = "ABC",
[19] = "ABC",
[20]... |
local helpers = require "spec.helpers"
describe("mocha", function()
before_each(function()
helpers.before_each { run = false, runners = { javascript = "nvim-test.runners.mocha" } }
end)
after_each(helpers.after_each)
local filename = "spec/fixtures/js/name.test.js"
it("runner", function()
local run... |
local settings =
{
{
type = "int-setting",
name = "colonists-update-interval",
localised_name = "Transport vehicle update interval",
setting_type = "runtime-global",
default_value = 60,
minimum_value = 1,
maximum_value = 80085
},
}
data:extend(settings) |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
--[[
Use the source, Luke!
Copyright (C) 2014-2021 Gary V. Vaughan
]]
local _ENV = require 'std.normalize' {}
local mt; mt = {
__index = {
},
__len = function(self)
return self.n
end,
}
return setmetatable({
new = function(...)
local r = setmetatable(pack(...), mt)
end,
}, {
__cal... |
narmle_conversationtemplate = ConvoTemplate:new {
initialScreen = "narmle_initial",
templateType = "Lua",
luaClassHandler = "narmle_racetrack_convo_handler",
screens = {}
}
narmle_initial = ConvoScreen:new {
id = "narmle_initial",
leftDialog = "@conversation/racing_narmle:s_3a139108",
stopConversation = "false"... |
--[[
This is an implementation of a simple stack data structure (last in, first out).
]]
local prototype = require('prototype')
local List = require('doubly_linked_list')
local Stack = prototype {}
function Stack.new ()
return Stack { _data = List.new() }
end
function Stack.length (self)
return self._data:l... |
-- See LICENSE for terms
return {
PlaceObj("ModItemOptionToggle", {
"name", "EnableMod",
"DisplayName", T(302535920011303, "<color ChoGGi_yellow>Enable Mod</color>"),
"Help", T(302535920011793, "Disable mod without having to see missing mod msg."),
"DefaultValue", true,
}),
--~ PlaceObj("ModItemOptionToggle... |
function trigger_cell(row,col, flags)
file=io.open("/tmp/test.sctrg", "a+")
print (file)
res=sc.lgetnum(col,row)
if res then
--print(res)
file:write("Trigger cell called for "..row..":"..col.." value is "..res.." flags = "..flags.."\n")
else
file:write("Trigger cell called for "..row..":"..col.." value is NOT VALID Y... |
-- Super Mario 64 (NTSC-U VC)
local core = require("games.core")
return core.newGame(0x809F38B8)
|
MCHN_Editor.Tools["Welder"] = {}
MCHN_Editor.Tools["Welder"]["ToolHook"] = "MachineersEditor_Tools_Welder_Think"
MCHN_Editor.Tools["Welder"]["Settings"] = {}
-- |
--[[ Copyright (c) 2018 Volodymyr Shymanskyy. See the file LICENSE for copying permission. ]]
local Pipe = { b = "" }
Pipe.__index = Pipe
function Pipe.new() return setmetatable({}, Pipe) end
function Pipe:clear() self.b = "" end
function Pipe:len() return self.b:len() end
function Pipe:push(d... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author (zacharyenriquee@gmail.com).
--]]
ITEM.name = "Stunstick"
ITEM.description = "A moderately sized metal rod with rubber grips coated from the base. You can see a small, plastic flick-switch that can be used to change the mode... |
--[[ Copyright (C) 2020 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
---@class IsoClothingWasher : zombie.iso.objects.IsoClothingWasher
---@field private bActivated boolean
---@field private soundInstance long
---@field private lastUpdate float
---@field private cycleFinished boolean
---@field private startTime float
---@field private cycleLengthMinutes float
---@field private alreadyEx... |
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local M = {}
M.sections = {lualine_a = {vim.fn.getcwd}}
M.inactive_sections = M.sections
M.filetypes = {'nerdtree'}
return M
|
---- #########################################################################
---- # #
---- # Copyright (C) OpenTX #
-----# #
----... |
-- 'phaazon/hop.nvim'
return function(c)
return {
{ 'HopNextKey', c.cyan },
{ 'HopNextKey1', c.bright_cyan },
{ 'HopNextKey2', c.blue },
{ 'HopUnmatched', c.gray },
}
end
|
-- BlooWolf
-- Okay, I made this to keep Roblox a nice and clean place!
-- This script makes it so some words can not be said.
-- For example, make on of those words down there "noob", then if someone says noob they're banned!
-- It does a lot of work for you.
-- Also, I suggest still adding the Ban Script V3 incase yo... |
object_tangible_collection_dwartii_statue_faya = object_tangible_collection_shared_dwartii_statue_faya:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_dwartii_statue_faya, "object/tangible/collection/dwartii_statue_faya.iff") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.