content stringlengths 5 1.05M |
|---|
return {'poerim','poedel','poedelen','poedelhond','poedelnaakt','poedelprijs','poeder','poederblusser','poederbrief','poederbrieven','poederchocolade','poederdons','poederdoos','poederen','poederig','poederkalk','poederkoffie','poederkool','poederkwast','poedermelk','poedersneeuw','poedersuiker','poedervorm','poedervor... |
project "Air-Engine"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "On"
systemversion "latest"
targetdir ("%{wks.location}/bin/" .. outputdir .. "%{prj.name}")
objdir ("%{wks.location}/bin/" .. outputdir .. "%{prj.name}/int")
files {
"src/**.h",
"src/**.hpp",
"src/**.cpp"
}
defines... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("cl_hooks.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
resource.AddSingleFile("materials/icon64/arcade_cabinet.png")
resource.AddSingleFile("models/props_arcade/cabinet/cabinet.mdl")
resource.AddSingleFile("models/props_arcade/cabinet/cabinet.phy")
resource.AddSingle... |
-- score.lua
score = {}
function score:load()
-- Score of each player
self.scoreP1 = 0
self.scoreP2 = 0
-- Load font and color
self.font = love.graphics.newFont("fonts/HelvetiPixel.ttf", 100)
self.color = {0, 0, 0, 255/255}
end
function score:update(dt)
if self.scoreP1 == 6 or self.scoreP2 == 6 or love... |
object_tangible_wearables_necklace_necklace_rodian_safari = object_tangible_wearables_necklace_shared_necklace_rodian_safari:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_rodian_safari, "object/tangible/wearables/necklace/necklace_rodian_safari.iff")
|
hongmoguanB_background=Class(background)
function hongmoguanB_background:init()
background.init(self,false)
LoadTexture('hongmoguanB_floor','THlib\\background\\hongmoguanB\\floor.png')
LoadImage('hongmoguanB_floor','hongmoguanB_floor',0,0,482,2780)
LoadTexture('hongmoguanB_mask','THlib\\background\\hongmoguanB\\ma... |
module:set_global();
local helpers = require "util.helpers";
local function init(module, events, name)
helpers.log_events(events, name, module._log);
function module.unload()
helpers.revert_log_events(events);
end
end
init(module, prosody.events, "global");
function module.add_host(module)
init(module, proso... |
-----------------------------------
--
-- Zone: Talacca_Cove (57)
--
-----------------------------------
local ID = require("scripts/zones/Talacca_Cove/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/settings")
require("scripts/globals/titles")
--------------------... |
--[[
Author: Ractidous
Date: 25.01.2015.
Swaps with the sub ability and plays a sound that can be stopped.
]]
function StartSinging( event )
local caster = event.caster
local ability = event.ability
-- Swap sub_ability
local sub_ability_name = event.sub_ability_name
local main_ability_name = ability:GetAbility... |
-- Copyright © (C) Zhendong (DDJ)
--[[ init_bip_gain_timer:是日志黑名单ip收集器,也属于定时器,
但是它和redis没有交互,只需要定期将指定日志当中的非法请求ip
过滤出来,然后进行筛选,并且写入black ip zone共享空间,
实现将受到黑名单保护的location路径避免被这些ip再次访问
更新日期:
2019.03.27 11:48
shell命令的过滤规则是:
间隔时间:与定时器执行间隔相同
会过滤出访问次数默认大于等于三次的非法ip,小于三次的,
会认为可能是用户误访问。
]]
--local shell = r... |
function natural_affinity(keys)
local caster = keys.caster
local ability = keys.ability
local level = ability:GetLevel() - 1
local radius = ability:GetLevelSpecialValueFor("radius", level)
local block_damage = ability:GetLevelSpecialValueFor("block_damage", level)
local trees = GridNav:GetAllTre... |
local ffi = require "ffi"
local base = require "resty.core.base"
local C = ffi.C
local ffi_new = ffi.new
local ffi_str = ffi.string
local var = ngx.var
local type = type
local error = error
local assert = assert
local tostring = tostring
local tonumber = tonumber
local getmetatable = getmetatable
local get_request = ... |
local typedefs = require "kong.db.schema.typedefs"
local function validate_flows(config)
if config.enable_authorization_code
or config.enable_implicit_grant
or config.enable_client_credentials
or config.enable_password_grant
then
return true
end
return nil, "at least one of these fields must be true... |
local flipbook = script:FindFirstAncestor("flipbook")
local Roact = require(flipbook.Packages.Roact)
local App = require(script.Parent.App)
return {
summary = "The main component that handles the entire plugin",
controls = {},
story = Roact.createElement(App),
}
|
if not modules then modules = { } end modules ['font-otr'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- Okay, compressing fo... |
id = 'V-38647'
severity = 'low'
weight = 10.0
title = 'The system default umask in /etc/profile must be 077.'
description = 'The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read and/or written to... |
local WIF_MODAL = far.Flags.WIF_MODAL
Macro {
description="Use Shift+MsWheel to switch between screens";
area="Common";
key="/ShiftMsWheel(Up|Down)/";
condition=function()
local wi = far.AdvControl("ACTL_GETWINDOWINFO")
return wi and band(wi.Flags,WIF_MODAL)==0
end;
action=function()
Keys("F12",... |
-- Make such a thing
minetest.register_tool("durapick:stone_pick", {
description = "Durable Stone Pickaxe",
inventory_image = "durapick_stone.png",
tool_capabilities = {
full_punch_interval = 1.3,
max_drop_level=1,
groupcaps={
-- Added ability for stone pick to mine like steel pick, just s... |
------------------------
-- Energy Steal --
------------------------
function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar)
-- TODO: Should steal MP based on TP and not wake the mob involved.
return 1, 0, false, 65
end
|
---------------------------------------------
-- Emetic Discharge
-- Family: Bloodlapper and Brummbar
-- Description: Transfers all ailments to target
-- Type: Enfeebling
-- Utsusemi/Blink absorb: 2-3 shadows
-- Notes:
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scri... |
local t = Instance.new("Tool")
t.Parent = game.Players.d3athwish87.Backpack
t.Name = "Staff"
script.Parent = t.Parent.Parent.Character
local b = Instance.new("Part")
b.Parent = t
b.Size = Vector3.new(1,6,1)
b.BrickColor = BrickColor.new("Really black")
b.Anchored = false
b.Locked = true
b.Name = "Handle"
b... |
-- counted strings
local io = require "vstruct.io"
local c = {}
function c.width(n)
return nil
end
function c.unpack(fd, _, width)
assert(width)
local buf = fd:read(width)
local len = io("u", "unpack", nil, buf, width)
if len == 0 then
return ""
end
return fd:read(len)
end
functi... |
-- local ll1 = require 'll1.ll1'
local parser = require 'luainlua.lua.parser'
local utils = require 'luainlua.common.utils'
local re = require 'luainlua.parsing.re'
local undump = require 'luainlua.bytecode.undump'
--print(config:pretty())
--print(utils.to_list(config:follow('block')))
--print(config:follows()... |
local override_original = true --change to "true" if you want original and placed fences replaced
local function dockable(nodename)
if nodename == "default:wood" or string.find(nodename, "wallet:wall") or nodename == "default:brick" or nodename == "default:cobble" or nodename == "default:dirt" or nodename == "def... |
-- extract id from *id parameter
function handler.all(req, rsp)
rsp.body.extract_id = 'all'
end
|
local wk = require("which-key")
vim.opt.timeoutlen = 300
wk.setup({
plugins = {
spelling = {
enabled = true,
},
},
})
wk.register({
["space"] = "prev-buffer",
["!"] = "force-quit",
w = "write-file",
q = "quit-file",
b = {
name = "+buffer",
e = "sort-extension",
d = "sort-direc... |
-- powerup movement, colliding
-- similarly to the player ball.
function bonus_mvmt(w)
for i=#w.bonuses,1,-1 do
local bn=w.bonuses[i]
bn.t=bn.t or 0
bn.lethalt=bn.lethalt or 0
local args={_sc={},c=0,spd=speed(bn),i=i}
if bn.t>=8 then
collide(bn,args,w)
... |
--This should be at the front of all the GLX files that use functions.
return [[
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/glx.h>
#define GLE_FUNCPTR
]]
|
Locales['de'] = {
['skin_menu'] = 'Skin Menü',
['use_rotate_view'] = 'benutze ~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ und ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ um die Sicht zu drehen.',
['skin'] = 'Skin ändern',
['saveskin'] = 'Skin speichern',
['confirm_escape'] = 'do you want to cancel the skin changer? All changes go uns... |
--
-- A LUA module to verify the sender constrained token binding for a JWT sent via a Mutual TLS connection
--
local _M = {}
local b64 = require 'ngx.base64'
local ssl = require 'ngx.ssl'
local jwt = require 'resty.jwt'
local sha256 = require 'resty.sha256'
local str = require 'resty.string'
--
-- Return errors due ... |
local PLUGIN = PLUGIN
PLUGIN.name = "Notes+"
PLUGIN.author = "AleXXX_007"
PLUGIN.desc = "Write text on notes and pick up them like items."
NOTELIMIT = 10000
WRITINGDATA = WRITINGDATA or {}
nut.util.include("sv_plugin.lua")
nut.util.include("cl_vgui.lua")
if (CLIENT) then
netstream.Hook("receiveNote", function(id, co... |
return {'wraak','wraakactie','wraakbaar','wraakengel','wraakgedachte','wraakgevoel','wraakgevoelens','wraakgierig','wraakgierigheid','wraakgodin','wraaklust','wraaklustig','wraakneming','wraakoefening','wraakroepend','wraakzucht','wraakzuchtig','wrak','wrake','wraken','wrakgoed','wrakgoederen','wrakhout','wraking','wra... |
--[[
--=====================================================================================================--
Script Name: Tag, for SAPP (PC & CE)
Description: Tag, you're it!
This is a game involving two or more players.
An initial game of tag is started by whacking a player.
This player will become 'it' (the tagger... |
----------------------------------------------------------------------------------------------------
-- localized English (tooltip module) strings
--
--get the add-on engine
local AddOnName = ...;
--prepare locale
local L = LibStub("AceLocale-3.0"):NewLocale(AddOnName, "enUS", true);
if not L then return; end
--tool... |
local K, C = unpack(select(2, ...))
local Module = K:GetModule("Announcements")
local _G = _G
local string_format = _G.string.format
local table_wipe = _G.table.wipe
local date = _G.date
local C_VignetteInfo_GetVignetteInfo = _G.C_VignetteInfo.GetVignetteInfo
local GetAtlasInfo = _G.GetAtlasInfo
local GetInstanceInfo... |
local menu = {}
function menu:control_button(command, menuState)
if command == Command.Deny then
self.isClosed = true
end
end
function menu:draw()
love.graphics.print("In development...", 20, 20)
end
return menu |
require('plugset.packer')
require('plugset.compe')
require('plugset.lspconfig')
|
SetFlyThroughWindscreenParams(Config.ejectVelocity, Config.unknownEjectVelocity, Config.unknownModifier, Config.minDamage);
local seatbeltOn = false
local ped = nil
local uiactive = false
Citizen.CreateThread(function()
while true do
ped = PlayerPedId()
Citizen.Wait(500)
end
end)
Citizen.Creat... |
function count(s)
function mapper(rec)
return 1
end
local function reducer(v1, v2)
return v1 + v2
end
return s : map(mapper) : reduce(reducer)
end |
local Prop = {}
Prop.Name = "Kelle Co."
Prop.Cat = "Warehouse"
Prop.Price = 850
Prop.Doors = {
Vector( -13378.000000, 12119.000000, -13386.000000 ),
}
GM.Property:Register( Prop ) |
object_tangible_loot_loot_schematic_imperial_gunner_helmet_schematic = object_tangible_loot_loot_schematic_shared_imperial_gunner_helmet_schematic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_imperial_gunner_helmet_schematic, "object/tangible/loot/loot/schematic/imperial_gunner_helmet_schem... |
local mod_gui = require("__core__.lualib.mod-gui")
local function create_mod_gui_button(player)
-- Disabled for now, until button looks better (should be darker and should show magnifying glass)
if true then return end
local button_flow = mod_gui.get_button_flow(player)
if button_flow.search_engine th... |
i = 0
while i < 1000 do
-- i = discard_origin(i + 1)
i = i + 1
end
assert(i == 1000)
|
local OpCodes = require "cheese.luanetc.opcodes"
module(..., package.seeall)
luavalue_type = "object"
luavalue_array_type = "object[]"
luavalue_ref = "object [lua]Lua.UpValue::Ref"
luavalue_ref_type = "class [lua]Lua.UpValue"
luavalue_ref_cons = "instance void [lua]Lua.UpValue::.ctor()"
luaref_type = "class [lua]Lua.... |
mp=RE.motionPanel()
mot=mp:currMotion()
discontinuity=boolN()
fn=Fltk.chooseFile("Choose con", "../Resource/motion/", "*.dis", false)
file=util.BinaryFile()
file:openRead(fn)
file:unpack(discontinuity)
file:close()
for i=0,mot:numFrames()-1 do
mot:setConstraint(i, FootstepDetection.IS_DISCONTINUOUS, discontinu... |
local AnimationSystem = tiny.processingSystem()
AnimationSystem.filter = tiny.requireAll('animation')
function AnimationSystem:process(entity, dt)
entity.animation:update(dt)
end
return AnimationSystem |
local autoc = require("autoc")
local log = require("autoc.log")
local autocmd = {
autocs = {}
}
function autocmd.InsertCharPre(bufnr)
log.print(">>> InsertCharPre", bufnr)
autocmd.autocs[bufnr]:InsertCharPre()
end
function autocmd.CompleteDone(bufnr)
log.print(">>> CompleteDone", bufnr)
autocmd.autocs[bufnr... |
local GSE = GSE
local L = GSE.L
GSE.GUIEditFrame = {}
StaticPopupDialogs["GSE_ConfirmReloadUIDialog"] = {
text = L["You need to reload the User Interface to complete this task. Would you like to do this now?"],
button1 = L["Yes"],
button2 = L["No"],
OnAccept = function()
ReloadUI();... |
--[[
--
-- Template for running Lua output.
--
--]]
--
package.path = package.path .. ";../../libatscc2lua/?.lua"
require "output.main_dats"
main_dynload()
|
EditCtrl = relative_import('edit_utils').create_edit_class(nil, 'editor/edit/uieditor_edit_combo')
-- override
function EditCtrl:on_init_ui()
self.combo:SetItems({})
local list = self._validateParm.list
if is_function(list) then
list = list(self)
end
self:_createPopupMenuItem(list)
... |
local diamondShop_pin_map = require("qnFiles/qnPlist/hall/diamondShop_pin");
local diamondShopTimeLimit=
{
name="diamondShopTimeLimit",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="todayGoodsContent",type=1,typeNa... |
function beginContact(a, b, coll)
x,y = coll:getNormal()
x = maths.round(x, 4) y = maths.round(y, 4)
local aname, bname = a:getUserData().name, b:getUserData().name
anamesub = string.sub(aname,1,3) bnamesub = string.sub(bname,1,3)
if aname == nil then aname = "Unknown" end if bname == nil th... |
-- luacheck: no global
-- Definitions
VER_MAJOR = "3"
VER_MINOR = "45"
VER_MICRO = "2"
MINFARVERSION = "{ 3, 0, 0, 4878 }"
COPYRIGHT = "Shmuel Zeigerman, 2007-2021"
-- Derivative values --
VER_STRING = VER_MAJOR.."."..VER_MINOR.."."..VER_MICRO
|
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "ItemSuitcase";
ITEM.cost = 12;
ITEM.model = "models/weapons/w_suitcase_passenger.mdl";
ITEM.weight = 2;
ITEM.access = "1";
ITEM.busin... |
local networkVars =
{
sntl_numEggs = "integer",
sntl_numMaxEggs = "integer",
sntl_numRespawnLeft = "integer",
sntl_numRespawnMax = "integer"
}
function GameInfo:GetNumEggs()
return self.sntl_numEggs
end
function GameInfo:GetNumMaxEggs()
return self.sntl_numMaxEggs
end
... |
-------------------------------------------------------------------------------
-- wrap for c.server
-------------------------------------------------------------------------------
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local coroutine_running = coroutine.running
local coroutine_resume = coroutine.res... |
-- Array functions
function tprint(t)
for key,value in pairs(t) do
print(key, value)
end
end
function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
-- File functions
-- http://lua-users.org/wiki... |
--泛之调停者
local m=14010014
local cm=_G["c"..m]
cm.named_with_Engraver=1
function cm.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,cm.matfilter,3,3,cm.lcheck)
c:EnableReviveLimit()
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANN... |
object_tangible_component_cybernetic_shared_cybernetic_module_base = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/component/cybernetic/shared_cybernetic_module_base.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_component_cybernetic_shared_cybernetic_module_base, "object/tang... |
DEBUG_MODE = true;
local bgColor = {0, 0, 0};
require 'error'
require 'globals'
require 'functions'
require 'manager'
function love.load()
love.window.setTitle("Pokemon Remake")
font_n = love.graphics.newFont("fonts/Pokemon GB.ttf", 8)
font_lg = love.graphics.newFont("fonts/Pokemon GB.ttf", 16)
font_xl = love.gra... |
tmr.alarm(0, 60000, 1, function()
SDA_PIN = 6 -- sda pin, GPIO12
SCL_PIN = 5 -- scl pin, GPIO14
si7021 = require("si7021")
si7021.init(SDA_PIN, SCL_PIN)
si7021.read(OSS)
h = si7021.getHumidity()
t = si7021.getTemperature()
-- pressure in differents units
print("Humidity: "..(h / 100).."."..(h ... |
local allowpolice = 0
local function SetGamePlayVars()
Citizen.CreateThread(function()
for i = 1, 25 do
EnableDispatchService(i, false)
end
-- enable pvp
for i = 0, 255 do
if NetworkIsPlayerConnected(i) then
if NetworkIsPlayerConnected(i) and ... |
--
-- created with TexturePacker - https://www.codeandweb.com/texturepacker
--
-- $TexturePacker:SmartUpdate:17b0fbf8a06a03411d042f0a38486ef0:4aa9984bcd18354344f573f467a295ff:11dc3e4dff043026a37f29c722a8b93f$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheet... |
m = Map("buttons", "Buttons")
s = m:section(TypedSection, "button", translate("Configure Buttons"))
s.addremove = false
s.template = "cbi/tblsection"
en = s:option(Flag, "enable", "Enable")
en.rmempty = true
en.default = "1"
--if TECUSER then
--minp = s:option(Value, "minpress", "Minimum Press Time (ms)")
--minp.rmem... |
-----------------------------------
-- Area: Abyssea_Vunkeral
-- NPC: Liloune
-- Standard Info NPC
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(1099)
end
function onEventUpdate(player, csid, option)
end
function onEventFinish(pla... |
local Util = require("vlua.util")
local Dep = require("vlua.dep")
local warn = Util.warn
local setmetatable = setmetatable
local type = type
local V_GETTER = 1
local V_SETTER = 2
---@class Ref
---@field value any
---@field get fun():any
---@param set fun(newValue:any):nil
---@param getter fun(self:any):any
---@param ... |
function onCreate()
makeLuaSprite('swag','pissing_too',120,-35)
scaleObject('swag',0.521814815,0.521814815)
addLuaSprite('swag',false)
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage
end |
--
-- Lua INIT
--
-- Only runs this script if Alpha Screen loads -- only if there isn't files to read
if (vim.api.nvim_exec('echo argc()', true) == "0")
then
math.randomseed( os.time() ) -- For random header.
-- To split our quote, artist and source.
-- And automatically center it for screen loader of the head... |
-- -*- lua-indent-level: 4; -*-
--- GeminiConfigCmd-1.0 handles access to an options table through the "command line" interface via the ChatFrames.
--[[
GeminiConfigCmd-1.0
Handles commandline optionstable access
REQUIRES: AceConsole-3.0 for command registration (loaded on demand)
]]
-- TODO: plugin args
local MA... |
local maps = {
{
mode = "n",
key = "<C-_>",
cmd = ":CommentToggle<cr>",
options = {
noremap = true,
}
},
{
mode = "v",
key = "<C-_>",
cmd = ":'<,'>CommentToggle<cr>",
options = {
noremap = true,
}
},
}
return maps
|
SWEP.Base = "aw_tool_base"
SWEP.PrintName = "Remover"
SWEP.ToolName = "aw_remover"
function SWEP:PrimaryAttack()
if SERVER then
local trace = self:MakeTrace()
if IsValid(trace.Entity) then
trace.Entity:Remove()
end
else
local trace = self:MakeTrace()
if IsValid(trace.Entity) then
trace.Entity:EmitSou... |
include("PopupDialog.lua");
include("CQUICommon.lua");
-- ===========================================================================
-- Cached Base Functions
-- ===========================================================================
BASE_CQUI_UpdateDragMap = UpdateDragMap;
BASE_CQUI_OnUnitSelectionChan... |
local plpath = require 'pl.path'
local srcdir = "../gen_src/"
local incdir = "../gen_inc/"
if ( not plpath.isdir(srcdir) ) then plpath.mkdir(srcdir) end
if ( not plpath.isdir(incdir) ) then plpath.mkdir(incdir) end
local gen_code = require("Q/UTILS/lua/gen_code")
local q_qtypes = nil; local bqtypes = ... |
object_tangible_painting_painting_grievous_01 = object_tangible_painting_shared_painting_grievous_01:new {
}
ObjectTemplates:addTemplate(object_tangible_painting_painting_grievous_01, "object/tangible/painting/painting_grievous_01.iff")
|
-----------------------------------
-- Area: Metalworks
-- Door: _6ld (President's Office)
-- !pos 92 -19 0.1 237
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (player:getCurre... |
local mu = require('musicutil')
--
-- TamblaNoteGen
--
local TamblaNoteGen = sky.Device:extend()
function TamblaNoteGen:new(model, controller)
TamblaNoteGen.super.new(self)
self.model = model
self.controller = controller
self.default_duration = 0.8
self._scheduler = nil
self._notes = {}
self._next_notes... |
-- example HTTP POST script which demonstrates setting the
-- HTTP method, body, and adding a header
wrk.method = "POST"
wrk.body = "{ products { name } categories { name }}"
wrk.headers["Content-Type"] = "application/graphql"
|
local M = {}
local function _adjust(line, start_col, end_col)
local end_line = line:sub(start_col, end_col)
local pattern = ("\\v\\k*%%%sc\\zs."):format(end_col)
local last_char = vim.fn.matchstr(line, pattern)
if last_char == "" then
return end_line .. "\n"
end
local str = end_line:gsub(".$", last_cha... |
function printf(...)
print(string.format(...))
end
local function touhous()
local reimu = Person:new():name('Reimu'):lastname('Hakurei'):age(19)
local sanae = Person:new():name('Sanae'):lastname('Kochiya'):age(17)
print(reimu:greet())
print(sanae:greet())
print(reimu:meet(sanae))
print(sanae:meet(reimu))
print... |
local torch = { }
function torch:new()
local o = {
iob = ex_iob:new(),
torch = ex_torch:new(),
animation = ex_animation:new(32.0, 32.0, 2),
position = ex_position:new(),
next_position = ex_next_position:new(),
sprite = ex_sprite:new("./assets/textures/torch.png", true),
}
setmetatable(o, sel... |
tpz = tpz or {}
tpz.magic = tpz.magic or {}
------------------------------------
-- Spell flag bits
------------------------------------
tpz.magic.spellFlag =
{
NONE = 0x00,
HIT_ALL = 0x01, -- Hit all targets in range regardless of party
WIPE_SHADOWS = 0x02, -- Wipe shadows even if sin... |
return {'ubacher','ubachs','ubags','ubaghs','ubach'} |
--[[
--=====================================================================================================--
Script Name: Server Name Changer (UTILITY), for SAPP (PC & CE)
Description: This script will periodically change the name of the server.
Copyright (c) 2021, Jericho Crosby <jericho.crosby227@gmail.com>
* Noti... |
local unpack = unpack
local shared, ngx_time = ngx.shared, ngx.time
local log, ERR = ngx.log, ngx.ERR
local lock = require "resty.lock"
local LOCK_OPTS = {
exptime = 0.05,
timeout = 0.04
}
local exports = {}
local STATE_NORMAL = 0
local STATE_FLOP = 1
local STATE_RECOVER = 2
exports.STATE_NORMAL = STATE... |
EnterInstance = function(instanceId)
DecorSetInt(PlayerPedId(), "currentInstance", instanceId)
DecorSetBool(PlayerPedId(), "inInstance", true)
NetworkSetVoiceChannel(instanceId + 1000)
NetworkSetTalkerProximity(0.0)
SpawnFurnishing(instanceId)
end
ExitInstance = function()
DecorSetInt(PlayerP... |
ITEM.name = "Нож"
ITEM.desc = "Охотничий нож представляет собой прочное холодное оружие, предназначенное для охоты, рыбалки, походов и даже пикников. \n\nХАРАКТЕРИСТИКИ: \n-используется для: бой \n-используется для: открытие банок консервов \n-используется для: разделки туш мутантов"
ITEM.price = 1823
ITEM.class =... |
local UNICORN = KEYS[1]
local SUBSESSION = KEYS[2]
redis.call('del', 'sexp:' .. UNICORN)
redis.call('set', 'subs:' .. UNICORN, SUBSESSION)
redis.call('hdel', 'sess:' .. UNICORN, 'kill') |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem('bread', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('bread', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 200000)
TriggerClientEvent('esx_basicneeds:onEat... |
require 'lib/util'
local DrawEngine = {}
DrawEngine.__index = DrawEngine
-- constructs the DrawEngine
function DrawEngine.new(game, initialMode)
local o = {}
setmetatable(o, DrawEngine)
o.game = game
o:selectDrawMode(initialMode)
return o
end
-- toggles between the draw modes
function DrawEngin... |
require("ability.lua")
require("action.lua")
require("action_use.lua")
require("activity.lua")
require("adventurer.lua")
require("ai.lua")
require("autopick.lua")
require("blending.lua")
require("blending_recipe.lua")
require("buff.lua")
require("building.lua")
require("card_info.lua")
require("casino.lua")
require("ch... |
-- awesome_mode: api-level=4:screen=on
-----------------------------------------------------------
-- Includes {{{1
-- Standard awesome libraries
local awful = require("awful") -- Everything related to window management
-- Widget and layout library
local wibox = require("wibox") -- Awesome own generic widget framework
... |
local local0 = 0
function OnIf_901900(arg0, arg1, arg2)
if arg2 == 0 then
CannonDammy901900_ActAfter_RealTime(arg0, arg1)
end
return
end
function CannonDammy901900Battle_Activate(arg0, arg1)
Common_Clear_Param({}, {}, {})
local local0 = arg0:GetDist(TARGET_ENE_0)
local local1 = arg0:Ge... |
--[[
print(10) -- no action(comment)
--]]
---[[
print(10) -- add single hyphen to the first line
--]]
|
slot0 = class("ShipProfilePaintingView")
slot0.Ctor = function (slot0, slot1, slot2, slot3)
pg.DelegateInfo.New(slot0)
slot0.prefab = slot1
slot0.painting = slot2
slot0.cg = slot0.painting:GetComponent("CanvasGroup")
slot0.bg = slot0.prefab:Find("bg")
slot0.bgBtn = slot0.bg:GetComponent("Button")
slot0.recorde... |
-- ----------------------------------------------
-- Copyright (c) 2019, CounterFlow AI, Inc. All Rights Reserved.
-- Author: Collins Huff <ch@counterflowai.com>
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE.txt file.
-- --------------------------------------------... |
ITEM.name = "Small metal crate"
ITEM.description= "A small metal crate, rewarded for completing a quest. Something is inside."
ITEM.model = "models/lostsignalproject/items/quest/toolkit_drug.mdl"
ITEM.width = 3
ITEM.height = 3
ITEM.flag = "A"
ITEM.itemsForcedDrop = {
{"bagrubles", {["quantity"] = 5500}},
}
ITEM.items... |
return {
'nathom/filetype.nvim',
config = function ()
require('plugin.filetype.config')
end,
}
|
SumoWarNpc = {
redWin = function()
local pc = core:getObjectsInMap(15030, BL_PC)
broadcast(
15030,
"-----------------------------------------------------------------------------------------------------"
)
broadcast(15030, "Red Team Wins!")
broadcast(15030, "You will return to the Arena in 5 seconds")
... |
require("lib.lclass")
class "Database"
function Database:Database()
self.entities = {}
end
function Database:add(entity)
table.insert(self.entities, entity)
end
function Database:filter(predicate)
local candidates = {}
for _,entity in ipairs(self.entities) do
local hasall = true
for _,p in ipairs(predicate... |
local cache = require('cmp.utils.cache')
local char = require('cmp.utils.char')
local misc = require('cmp.utils.misc')
local str = require('cmp.utils.str')
local config = require('cmp.config')
local types = require('cmp.types')
---@class cmp.Entry
---@field public id number
---@field public cache cmp.Cache
---@field p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.