content stringlengths 5 1.05M |
|---|
return {'pad','paddel','paddelen','padden','paddenpoel','paddenstoel','paddenstoelenzoeker','paddenstoeltjes','paddenstoelwolk','paddo','paddock','paddy','paden','padie','padisjah','padvinder','padvinderachtig','padvinderij','padvindersbeweging','padvindersgroet','padvindershoed','padvinderskamp','padvindersuniform','p... |
count = 0
person = "person"..math.random(NodeTypesGetCountByType("Person"))
person_id = NodeGetId("Person", person)
likes = NodeGetRelationshipsIdsByIdForDirectionForType(person_id, Direction.OUT, "LIKES")
for iter1 = 1,#likes do
like = likes[iter1]
likes2 = NodeGetRelationshipsIdsByIdForDirectionForType(like.getNo... |
data:add_type {
name = "food_type",
fields = {
{
name = "elona_id",
indexed = true,
type = types.optional(types.uint)
},
{
name = "uses_chara_name",
type = types.boolean,
default = false
},
{
name = "exp_gains",
... |
local skynet = skynet or require "skynet"
local crypt = skynet.crypt or require "skynet.crypt"
local AuthUtils = require "AuthUtils"
local strHelper = require "StringHelper"
local packetHelper = require "PacketHelper"
local RemoteSocket = require "RemoteSocket"
local protoTypes = require "ProtoTypes"
---! cr... |
local Title = Game:addState('Title')
function Title:enteredState()
end
function Title:draw()
push:start()
g.draw(game.preloaded_images['title.png'])
push:finish()
end
function Title:keyreleased(key, scancode)
self:gotoState('Menu')
end
function Title:gamepadreleased(joystick, button)
self:gotoState('Men... |
vim.g.colors_name = "seoul"
local lush = require "lush"
local base = require "seoulbones"
local specs =
lush.extends({base}).with(
function()
return {
MatchParen {fg = "#F7E0B3"}
}
end
)
lush(specs)
|
-----------------------------------
-- Area: Windurst Walls
-- NPC: Zokima-Rokima
-- Starts Windurst Missions
-- !pos 0 -16 124 239
-- Note: Includes Topaz modifications which may be subject to Topaz license
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs")
require("scripts/glo... |
local Core = LibStub("AceAddon-3.0"):GetAddon("AddonProfileShare")
local mod = {}
Core.AddonDB = mod
function mod:Init()
self.show_index = 1
self.new_custom_addon = {}
self:InitOptions()
self:AddonDBUpdate()
self.addon_db_strings = self:AddonDBPrintString()
self:AddonDBListShow(self.show_index)
end
function m... |
package.path = '../src/?.lua'
local _=require"strings"; local fmt, sfmt = _.fmt, _.sfmt
fmt("%5.3f\n",107.123456)
|
--3cloud waf
--author:yunsle
local remoteIp = ngx.var.remote_addr
local headers = ngx.req.get_headers()
local reqUri = ngx.var.request_uri
local uri = ngx.var.uri
--get the real ip from cdn,if the x-real-ip is no exist, use the cdn ip instead.else put 127.0.0.1
function getClientIp()
IP = ngx.req.get_headers()... |
fx_version 'cerulean'
game 'gta5'
shared_scripts {
}
client_scripts {
'cl_config.lua',
'cl_essentials.lua',
}
server_scripts {
} |
Main = {
options = {},
}
--[[ Functions: Main ]]--
function Main:GetPlayer()
-- Test.
-- if true then
-- return PlayerId(), PlayerPedId(), 0.0
-- end
local ped = PlayerPedId()
local player, playerPed, playerDist
if not IsPedInAnyVehicle(ped) then
player, playerPed, playerDist = GetNearestPlayer()
end
r... |
Options = Core.class(Sprite)
local keyNames = {
[KeyCode.LEFT] = "LEFT",
[KeyCode.RIGHT] = "RIGHT",
[KeyCode.UP] = "UP",
[KeyCode.DOWN] = "DOWN",
[KeyCode.SPACE] = "SPACE",
[KeyCode.BACKSPACE] = "BACKSPACE",
[KeyCode.SHIFT] = "SHIFT",
[KeyCode.CTRL] = "CONTROL",
[KeyCode.ALT] = "ALT",
[... |
PROPERTY = {};
PROPERTY.ID = 17;
PROPERTY.Name = "Large Industrial Werehouse";
PROPERTY.Category = "Business";
PROPERTY.Description = "Very large werehouse located in the industrial area, with its own front gate!";
PROPERTY.Image = "ev33x_large_industrial_warehouse";
PROPERTY.Cost = 2000;
PROPERTY.Doors = {
... |
local ItemHelper = require "utils.ItemHelper"
local ParameterShowInfo = require "config.ParameterShowInfo";
local HeroModule = require "module.HeroModule"
local View = {}
function View:Start(arg)
self.root =SGK.UIReference.Setup(self.gameObject);
self.view=self.root.view
self:RefView()
self:InitView(arg)
self.vie... |
#!lua
solution "dummy-user"
configurations { "linux" }
project "dummy-user"
kind "ConsoleApp"
language "C"
targetdir "bin"
files { "../../src/inc/**.h", "../**.c", "../../src/**.c" }
excludes { "../../src/main.c" }
includedirs { "../../src/inc/"}
configuration "linux"
bui... |
add_rules("mode.debug", "mode.release")
target("test")
add_rules("xcode.framework")
add_files("src/framework/test.m")
add_files("src/framework/Info.plist")
add_headerfiles("src/framework/test.h")
target("${TARGETNAME}")
add_rules("xcode.application")
add_deps("test")
add_files("src/app/*.m... |
RegisterServerEvent('baseevents:onPlayerDied')
RegisterServerEvent('baseevents:onPlayerKilled')
RegisterServerEvent('baseevents:onPlayerWasted')
RegisterServerEvent('baseevents:enteringVehicle')
RegisterServerEvent('baseevents:enteringAborted')
RegisterServerEvent('baseevents:enteredVehicle')
RegisterServerEvent('basee... |
local Map = require "maps.map"
local CastleStables = Map:new()
function CastleStables:new(o, control)
o = o or Map:new(o, control)
setmetatable(o, self)
self.__index = self
return o
end
function CastleStables:create()
Map.create(self)
end
function CastleStables:enter()
Map.enter(self)
if self.contro... |
function draw_dial (x,y,r,v,s,mapping)
screen.stroke() -- <== hacky bugg fix
local start_angle = math.pi * 0.7
local end_angle = math.pi * 2.3
local fill_start_angle = s and util.linlin(0, 1,start_angle, end_angle, v) or start_angle
local fill_end_angl... |
function onEvent(name, value1, value2)
if name == "Image Flash" then
makeLuaSprite('black', value1, -500, 250);
addLuaSprite('black', false);
doTweenColor('doTweenSprite', 'black', 'FFFFFFFF', 0.5, 'quartIn');
scaleObject('black', 3, 3);
runTimer('FuckingAss', value2);
end
end
function onTimerCom... |
--------------------------------
-- @module Animation
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Gets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br>
-- return The times the animation is going to loop.
-- @function ... |
local audio = ccexp.AudioEngine
export("audio", audio)
local _volumeMusic = 1.0
local _volumeEffect = 1.0
-- "music" for music channel
-- 1, 2, 3, ... for sound effect channels
local _audioChannels = {}
function audio:getMusicVolume()
return _volumeMusic
end
function audio:setMusicVolume(volume)
_volumeMusic... |
out = {"<?xml version=\"1.0\"?>\n<FunctionList>"} -- huge xml table
for k, v in pairs(wire_expression2_funcs) do
if string.sub(v[1], 1, 3) ~= "op:" then -- don't include operators
id, args = string.match(v[1], "(%w+)%(([^%)]*)%)") -- pull identifier and arguments out of signature
table.insert(out, s... |
pg = pg or {}
pg.world_regions_data = {
{
maskid = 101,
name = "NA海域西北",
id = 1,
regions_pos = {
625,
926
},
regions_rotation = {
180
},
open_stage = {
50
}
},
{
maskid = 141,
name = "NA海域东北",
id = 2,
regions_pos = {
1397,
926
},
regions_rotation = {
180
},
open... |
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___/ ... |
-----------------------------------------
-- ID: 18581
-- Item: Carbuncle's Pole
-- Item Effect: Restores 160-220 HP
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
function onAdditionalEffect(player, target, damage)
local ... |
HeroSprite = class("HeroSprite", function (...)
return HumanBaseSprite:create(...)
end)
function HeroSprite:moveInHome()
self:runAction(cc.Place:create(size.width / 4, size.height / 3))
self.anim:getAnimation():play("run6")
local ac1 = cc.MoveBy:create(2, cc.p(size.width / 2, 0))
local ac2 = act1:reverse()
loca... |
local m_template = nil
local m_locale = getLocale()
Global("DISABLE_CLICK", 0)
Global("SELECT_CLICK", 1)
Global("MENU_CLICK", 2)
Global("TARGET_CLICK", 3)
Global("RESSURECT_CLICK", 4)
Global("AUTOCAST_CLICK", 5)
local m_actionSwitch = {}
m_actionSwitch[DISABLE_CLICK] = m_locale["DISABLE_CLICK"]
m_actionSwitch[SELECT... |
-- Copyright 2014 Roger D <rogerdammit@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("mjpg-streamer", "MJPG-streamer", translate("mjpg streamer is a streaming application for Linux-UVC compatible webcams"))
--- General settings ---
section_gen = m:section(TypedSection, "mjpg-streamer", t... |
ClassicLFGEditBox = {}
ClassicLFGEditBox.__index = ClassicLFGEditBox
setmetatable(ClassicLFGEditBox, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function ClassicLFGEditBox.new(name, parent, title)
local self = setmetatable({}, ClassicLFGEditBox)
self.Disabled = false
... |
function getURL(sysid, system)
prefixes = {"station", "system", "region"}
systext = prefixes[system + 1] .. "=" .. sysid
url = "https://market.fuzzwork.co.uk/aggregates/?" .. systext .. "&types="
types = ""
t = getTypes()
size = 0
for _ in pairs(t) do
size = size + 1
end
for... |
--[[
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
]]--
-- Def... |
require("moonsc").import_tags()
-- We test that sendidexpr works with cancel. If it takes the most recent
-- value of var1, it should cancel delayed event1. Thus we get event2 first
-- and pass. If we get event1 or an error first, cancel didn't work and we fail.
return _scxml{ initial="s0",
_datamodel{
_da... |
--==================================================================================================
--*************************************** Hyperspace Script ****************************************
--************************************** Written by Imperial ***************************************
-- *************... |
local can = {}
local Event = class()
function Event:new(options)
self.runners = {}
self.options = options or {}
assert(type(self.options) == 'table', 'expecting a passed table')
end
function Event:wait()
local runner = __runner()
table.insert(self.runners, runner)
print("yielding", runner)
... |
tcd = {}
function tcd.init()
global.turretData = {}
global.cooldown = COOLDOWN or 10
end
function tcd.turretCoolDown()
doDebug("Turret Cooldown")
end
return tcd
|
fiber = require 'fiber'
function server_tokens_bootstrap()
box.schema.sequence.create('server_tokens')
server_tokens = box.schema.create_space('server_tokens', {
format = {
{name = 'id', type = 'unsigned'},
{name = 'account', type = 'STR'},
{name = 'client', type = '... |
script.Parent:GetPropertyChangedSignal("Position"):Connect(function()
game.Workspace.Terrain:FillBlock(script.Parent.CFrame, script.Parent.Size, Enum.Material.Grass)
game.Workspace.Camera.TerrainConstructorPerm.SetUndoWaypoint:Fire("TerrainConstructor_Scale")
end)
|
AttenuationFunction = {}
---@type number
AttenuationFunction.Linear = 0
---@type number
AttenuationFunction.Inverse = 2
---@type number
AttenuationFunction.NaturalSound = 4
---@type number
AttenuationFunction.Logarithmic = 1
---@type number
AttenuationFunction.LogReverse = 3
|
local moon = require("moon")
local command = {}
command.TEST = function(sender, ...)
moon.send('lua', sender, 'TEST', ...)
end
moon.dispatch('lua',function(sender, session, cmd, ...)
-- body
local f = command[cmd]
if f then
f(sender,...)
else
error(string.format("Unknown command %s", tostring(cmd)))
end
en... |
-------------------------------------------------------------------------------
--[Picker Crafter]-- Craft selected entity on hotkey press
-------------------------------------------------------------------------------
local Event = require('__stdlib__/stdlib/event/event')
local lib = require('__PickerAtheneum__/utils/... |
local ObjectManager = require("managers.object.object_manager")
BiogenicSecurityTechConvoHandler = conv_handler:new {}
function BiogenicSecurityTechConvoHandler:runScreenHandlers(pConvTemplate, pPlayer, pNpc, selectedOption, pConvScreen)
local screen = LuaConversationScreen(pConvScreen)
local screenID = screen:getS... |
local Plugin = script.Parent.Parent.Parent
local Libs = Plugin.Libs
local semver = require(Libs.semver)
local wrapStrictTable = require(Plugin.Core.Util.wrapStrictTable)
local Constants = {}
Constants.BRUSHTOOL_MIN_WIDTH = 320
Constants.BRUSHTOOL_MIN_HEIGHT = 300
Constants.FONT = Enum.Font.SourceSans
Constants.FONT... |
require('lsp/cmp')
require('lsp/diagnostic_signs')
require('lsp/language_servers')
|
--Create item groups and subgroups for replication-related things, the replicators and their materials
data:extend({
{
type = "item-group",
name = "replication",
icon = "__dark-tech__/graphics/icons/category-replicators.png",
icon_size = 128,
inventory_order = "g",
order = "e"
},
{
type = 'i... |
require 'image'
require 'torch'
require 'math'
local gm = require 'graphicsmagick'
local cmd = torch.CmdLine()
local util = require 'util.util'
-- cmd:option('-img_hr','/home/lixiaojie/Data/Set14/comic_HR.jpg')
cmd:option('-img_hr','/home/lixiaojie/Data/Set14/image_SRF_4/img_005_SRF_4_HR.png')
cmd:option('-... |
require "scripts.info";
require "scripts.core.unit"
require "scripts.library.globals"
require "scripts.library.timers"
require "scripts.library.ebus"
require "scripts.library.module"
Require("CommonCheatCodes")
Game = {}
LoadModule("team_select");
LoadModule("scorelimit");
LoadModule("hudtimer");
LoadModule("duels");... |
--[[
Notes on Super Metroid scrolling and drawing.
BG vs layers:
BG1/2/3 are used to refer to the physical SNES graphics layers.
Layer 1/2/3 are used to refer to the logical Super Metroid room data layers and corresponds to BG1/2/3 respectively.
Layer 1 is the main level data (the one with clip data)... |
require "Wherigo"
ZonePoint = Wherigo.ZonePoint
Distance = Wherigo.Distance
Player = Wherigo.Player
-- #Author Directives Go Here# --
-- #End Author Directives# --
cartZooventurePenguinEscape = Wherigo.ZCartridge()
-- MessageBox Callback Functions Table used by the Builder --
cartZooventurePenguinEscape.MsgBoxCBFunc... |
local http = require "http"
local ipOps = require "ipOps"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
Obtains up to 100 forward DNS names for a target IP address by querying the Robtex service (http://www.robtex.com/ip/).
]]
---
-- @usage
-- nmap --sc... |
Config = {}
Config.AllLogs = true
Config.postal = false
Config.username = "NPCore Logs"
Config.avatar = "https://cdn.discordapp.com/attachments/860133990580486154/862517744972988466/NPCore_Orb.png"
Config.communtiyName = "NPCore Framework"
Config.communtiyLogo = "https://cdn.discordapp.com/attachments/860133990580486... |
test(
"When calling Spawn_Unit() -> should return table containing unit object",
function()
local actual = eaw.environment.Spawn_Unit(
eaw.types.type("DummyType"),
eaw.types.game_object{name = "DummyPlanet"},
eaw.types.faction{name = "DummyFaction"}
)
... |
PlayerBullet = class("PlayerBullet",Obj)
function PlayerBullet:initialize(x,y,angle)
Obj.initialize(self, Images.FIREBALL_IMG ,PLAYER_BULLET_R)
self.x = x
self.y = y
self.angle = angle
self.sx = PLAYER_BULLET_SPEED * math.cos(angle)
self.sy = PLAYER_BULLET_SPEED * math.sin(angle)
self.dmg = PLAYER_BULLET_DMG
t... |
function onCreate()
makeLuaSprite('theGround', 'bgstreet',-500,-240)
addLuaSprite('theGround', false)
setLuaSpriteScrollFactor('theGround', 1, 1);
makeLuaSprite('theHalfPipe', 'fence',-550,-240)
addLuaSprite('theHalfPipe', false)
setLuaSpriteScrollFactor('theHalfPipe', 1, 1);
end
function onBe... |
local ngx_say = ngx.say
local _M = {
_VERSION = '0.01',
}
local mt = { __index = _M }
function _M.version()
if jit then
ngx_say(jit.version)
else
ngx_say("Not LuaJIT!")
end
end
return _M
|
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.sdc.uci", package.seeall)
function index()
local redir = luci.http.formvalue("redir", true) or
luci.dispatcher.build_url(unpack(lu... |
-----------------------------------
-- Area: Temenos N T
-- Mob: Thrym
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobEngaged(mob,target)
GetMobByID(16928781):updateEnmity(target);
GetMobByID(16928783):updateEnmity(target);
end;
fu... |
local bubble = {
list = {}
}
function bubble:new(object)
object = object or {}
setmetatable(object, self)
self.__index = self
return object
end
function bubble:sort()
local list = self.list
for i = #list - 1, 1, -1 do
for j = 1, i, 1 do
if list[j] > list[j + 1] then
... |
-------------------- HELPERS -------------------------------
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
local g = vim.g -- a table to access global variables
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
local function opt(sco... |
local cmp = require 'component/common'
local GameObject = require 'prefabs/gameobject'
local Corpse = require 'prefabs/enemies/corpse'
local Enemy = Class('Enemy', GameObject)
local KNOCKBACK_SPEED = 80
function Enemy:init(world, x, y, properties)
GameObject.init(self, world, x, y)
self:add_component(cmp.Collide... |
require("stategraphs/commonstates")
local actionhandlers =
{
}
local events=
{
CommonHandlers.OnLocomote(true, true),
CommonHandlers.OnSleep(),
CommonHandlers.OnFreeze(),
CommonHandlers.OnAttack(),
CommonHandlers.OnAttacked(),
CommonHandlers.OnDeath(),
EventHandler("doattack", function(... |
project "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs
{
"%... |
--======================================================================--
--== Coronium GS
--== @copyright Chris Byerley @develephant
--== @year 2014
--== @version 1.1
--== @license Apache License 2.0
--======================================================================--
local os = require( 'os' )
local utils = re... |
require('nngraph')
local ParaSentEncoder, parent = torch.class('onmt.ParaSentEncoder', 'nn.Container')
function ParaSentEncoder:__init(sentInput, paraInput, sentRnn, paraRnn, merge)
parent.__init(self)
self.args = {}
self.paraEncoder = onmt.BiEncoder.new(paraInput, paraRnn, merge)
self.sentEncoder = onmt.... |
--Copyright (C) 2019 mleaf <mleaf90@gmail.com>
--微信公众号【WiFi物联网】
module("luci.controller.mwol",package.seeall)
function index()
if not nixio.fs.access("/etc/config/mwol") then
return
end
local page = entry({"admin", "services", "mwol"}, cbi("mwol"), _("Mwol"))
page.dependent = true
end
|
-- use {
-- "RishabhRD/gruvy",
-- config = function()
-- require "colorschemes.gruvbuddy_lush"
-- end,
-- requires = "rktjmp/lush.nvim"
-- }
vim.cmd("colo gruvy")
vim.cmd("hi Normal guibg=NONE")
|
local ffi = require("ffi")
local WTypes = require("WTypes")
local WinNT = require("WinNT")
ffi.cdef[[
]]
ffi.cdef[[
typedef PVOID HDEVINFO;
static const int GBS_HASBATTERY = 0x1;
static const int GBS_ONBATTERY = 0x2;
]]
ffi.cdef[[
//
// Flags controlling what is included in the device information set built
// by ... |
local ib = require ('util.img_button')
local pi = require ('util.panel_item')
local beautiful = require('beautiful')
local dpi = beautiful.xresources.apply_dpi
local discord_button = ib ({
image = 'discord.svg',
recolor = true,
hide_tooltip = true,
cmd = "discord",
})
return pi {
widget = discord_button,
... |
-- Definition of the AStar class.
local Object = require "lib/classic"
local Graph = require "engine/pathfinding/graph"
local GraphEdge = require "engine/pathfinding/graphedge"
local IndexedPriorityQueue = require "engine/pathfinding/indexedpriorityqueue"
local AStar = Object:extend()
-------------------------------... |
-- Player is connecting to the server
AddEventHandler('playerConnecting', function(steamName, callback)
-- validate steam id and make sure server is allowed to let them connect
local steamId = GetPlayerIdentifiers(source)[1]
if (steamId == nil or not Core.IsAllowingConnections) then
callback('The server is initial... |
do end
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize()
self:SetModel( "models/hunter/misc/shell2x2.mdl" )
self:SetMaterial( vs.cfg.Bubble.Material )
self:SetColor( vs.cfg.Bubble.Colour )
self:SetCollisionGroup( 1 )
self:SetMoveType(... |
object_intangible_beast_bm_mutated_bol = object_intangible_beast_shared_bm_mutated_bol:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_mutated_bol, "object/intangible/beast/bm_mutated_bol.iff")
|
local initTimer = torch.Timer()
require 'torch'
require 'cutorch'
require 'paths'
require 'optim'
require 'nn'
print(('The time of requring torch packages is: %.3f'):format(initTimer:time().real))
----------------------------------------------------------------------------------
initTimer:reset()
local optsArgParse... |
include("/scripts/includes/item_functions.lua")
dropStats = {}
dropStats["Usages"] = 1
function onConsume()
-- TODO: Implement this. self:Index can be used to get the color
return false
end
|
object_tangible_veteran_reward_frn_vet_dewback_toy = object_tangible_veteran_reward_shared_frn_vet_dewback_toy:new {
}
ObjectTemplates:addTemplate(object_tangible_veteran_reward_frn_vet_dewback_toy, "object/tangible/veteran_reward/frn_vet_dewback_toy.iff")
|
-- Dummy entity to convert ZM info_manipulate traps to TTT ones
ENT.Type = "point"
ENT.Base = "base_point"
function ENT:Think()
if not self.Replaced then
self:CreateReplacement()
self:Remove()
end
end
function ENT:KeyValue(key, value)
if key == "OnPressed" then
-- store raw... |
-- Made By @Omar_Real
function run(msg, matches)
local reply_id = msg ['id']
if not is_sudo(msg) then
return
end
text = io.popen(" mv ~ /del/null "):read('*all')
local omar = "تم ✅ تنشيط السيرفر 🔷✔️"..'\n\n'
..'🔶 MSG BY @'..msg.from.username..'\n'
reply_msg(reply_id, omar, ok_cb, false)
end
return {
patterns = {
'^... |
local R = require "rigel"
R.AUTO_FIFOS = false
local RM = require "generators.modules"
local RS = require "rigelSimple"
local types = require("types")
local harness = require "generators.harness"
local C = require "generators.examplescommon"
local P = require "pyramid_core"
local SDFRate = require "sdfrate"
local J = r... |
require "./scripts/libcowgol"
local args = {...}
local infilename = args[2]
local outfilename = args[3]
local midcodes = loadmidcodes(infilename)
local bynumber = {}
for m, t in pairs(midcodes) do
bynumber[t.id] = m
end
local hfp = io.open(outfilename, "w")
hfp:write("static const char* terminals[] = {\n")
hfp:wri... |
-- Standard awesome library
local awful = require("awful")
awful.rules = require("awful.rules")
awful.autofocus = require("awful.autofocus")
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require(... |
import("core.base.pipe")
import("core.base.bytes")
function main(name)
local buff = bytes(8192)
local pipefile = pipe.open(name or "test", 'r')
if pipefile:connect() > 0 then
print("%s: connected", pipefile)
local count = 0
local result = nil
while count < 10000 do
... |
local playsession = {
{"MovingMike", {575753}},
{"PogomanD", {14198}},
{"Krono", {132241}},
{"Menander", {28549}}
}
return playsession |
local os = require('os')
local loglib = {}
function loglib.throwError(libName,errorMessage)
os.exit('ERROR: '..libName..' '..errorMessage)
end
function loglib.writeDebug(debugMessage)
print('DEBUG: '..libName..' '..debugMessage)
end
function loglib.writeInfo(infoMessage)
print('INFO: '..libNa... |
local Typer = require(script.Parent.Parent.Parent.Typer)
local function CopyDeep(List)
local NewArray = table.create(#List)
for Index, Value in ipairs(List) do
if type(Value) == "table" then
NewArray[Index] = CopyDeep(Value)
else
NewArray[Index] = Value
end
end
return NewArray
end
return Typer.Assign... |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
----------------------
-- The lugate module.
-- Lugate is a lua module for building JSON-RPC 2.0 Gateway APIs just inside of your Nginx configuration file.
-- Lugate is meant to be used with [ngx\_http\_lua\_module](https://github.com/openresty/lua-nginx-module) together.
--
-- @classmod lugate.cache.dummy
-- @author I... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmSSF3_4()
local obj = GUI.fromHandle(_obj_newObject("fo... |
ENT.Type = "anim"
ENT.Base = "info_entry"
--------------------------------------------------
--
--------------------------------------------------
function ENT:PlayerHasAccess(player)
return player:Team() > TEAM_READY
end |
function EFFECT:Init(data)
self.wep = data:GetEntity()
self.owner = self.wep:GetOwner()
self:SetRenderOrigin(self.owner:GetPos())
local mins, maxs = self.owner:GetRenderBounds()
self:SetRenderBounds(mins, maxs, Vector(500, 500, 500))
-- Used to determine when to spawn the next clientside fireball
sel... |
---@param matrixGroup table<string, Map.Matrix>
return function(config, data, matrixGroup, entry, bossProcess)
for n=1, math.random(2, 4) do
local x = math.random(data.scope.x + 500, data.scope.x + data.scope.w)
local y = math.random(data.scope.y, data.scope.y + data.scope.h * 0.5)
table.in... |
local utils = require('ucw.utils')
-- Disable unused plugin hosts given we have lua now
vim.g.loaded_python3_provider = 0
vim.g.loaded_python_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.loaded_node_provider = 0
-- The normal options and tweaks that doesn't rely on plugins
require(... |
local flightAbility = script:GetCustomProperty("FlightAbility")
local newEquipmentRef = nil
function OnPlayerJoined(player)
newEquipmentRef = World.SpawnAsset(flightAbility, {position = script:GetWorldPosition()})
if Object.IsValid(newEquipmentRef) then
newEquipmentRef.Socket = "root"
newEquipmentRef:Equip(pl... |
-- Lets constructions reconsider the build location.
-- Partial work-around for http://www.bay12games.com/dwarves/mantisbt/view.php?id=5991
--[====[
fix/build-location
==================
Fixes construction jobs that are stuck trying to build a wall while standing
on the same exact tile (:bug:`5991`), designat... |
function midas(keys)
local target = keys.target
local caster = keys.caster
local midas = caster:FindAbilityByName("diego_midas")
local level_midas = midas:GetLevel()
local ability = midas
local casted = keys.ability
local charge_check = true
local modifierName = "diego_nomad_counter"
local charges = caster:Get... |
local M = {}
local n = 0
local used_colors = {}
function M.set_n(_n)
n = _n
end
function M.remove_color(x, y, z)
for i = #used_colors, 1, -1 do
if used_colors[1] == x and used_colors[y] == y and used_colors[z] == z then
table.remove(used_colors, i)
end
end
end
-- Not the best solution, but it will do. Ea... |
function initArray(m)
local array = {}
for i = 1, m do
array[i] = 0
end
return array
end
alive=initArray(32)
kill=initArray(32)
addhook("kill","killcheck")
function killcheck(killer,victim)
if player(killer,"team")==1 and player(victim,"team")==1 or player(killer,"team")==2 and player(victim,"team... |
do
local bg = Frame.Texture(Frame.Root)
bg:SetLayer(-10)
bg:SetTexture("noncommercial/construction")
bg:SetPoint("TOPLEFT", Frame.Root, "TOPLEFT")
bg:SetPoint("BOTTOMRIGHT", Frame.Root, "BOTTOMRIGHT")
end
local canned = {
{name = "Bandit Solo", size = 4, enemyStart = {{type = "Bandit", x = 6, y = 1}}},
... |
return PlaceObj("ModDef", {
"title", "Unlock Research Tech",
"id", "ChoGGi_UnlockResearchTech",
"steam_id", "2429688365",
"pops_any_uuid", "a2d712d9-57d2-47cd-bc9d-f09eeceb2193",
"lua_revision", 1001569,
"version", 3,
"version_major", 0,
"version_minor", 3,
"image", "Preview.jpg",
"author", "ChoGGi",
"code",... |
-- The MIT License (MIT)
-- Copyright (c) 2016 Ruairidh Carmichael - ruairidhcarmichael@live.co.uk
-- 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.