content
stringlengths
5
1.05M
--[[ MIT License Copyright (c) 2021 sampixel 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, dis...
--- -- Implementation of the Channel class -- initialization {{{ local irc = libs.irc local misc = libs.misc local socket = libs.socket -- }}} --- -- This module implements a channel object representing a single channel we -- have joined. local channel = {} -- object metatable {{{ -- TODO: this <br /> shouldn't...
if (SERVER) then AddCSLuaFile() end --FnFAL sound.Add({ name="Weapon_FnFAL.Single", volume = 1.0, pitch = {100,105}, sound = "weapons/FnFal/FnFAL_fp.wav", level = 156, channel = CHAN_STATIC }) sound.Add({ name="Weapon_FnFAL.SingleSilenced", volume = 1.0, pitch = {100,105}, sound = "weapons/FnFal/FnFAL_suppre...
----------------------------------- -- Area: Xarcabard -- Mob: Shadow Dragon ----------------------------------- function onMobDeath(mob, player, isKiller) end function onMobDespawn(mob) local B_ToD = GetServerVariable("[POP]Biast") local X = mob:getXPos() local Y = mob:getYPos() local Z = mob:getZPo...
require("isolater/widget/gameLevelListCustomView/pageViewBase"); HallGameListPageView = class(PageViewBase); HallGameListPageView.getPageItemNum = function(self) return 4; end HallGameListPageView.getPageItemView = function(self) return HallGameListPageItem; end HallGameListPageView.getMarginSpa...
-- Editing brush require 'LuaScripts/Class' EditingBrush=class(function(self, scene) self.brushcursornode=scene:CreateChild() self.brushcursor=self.brushcursornode:CreateComponent("CustomGeometry") self.brushcursor:SetNumGeometries(1) self.brushmat=cache:GetResource("Material", "Materials/TerrainBrush.xml") end) ...
conditions = { }
-- probably most useful with the digit_3x5 script. -- keeps track of a simple score on two mesecons pins, -- and accepts game reset and enable via a third. --## config section ##-- -- pin names to use for "L" and "R" team inputs. local left_pin = "D" local right_pin = "B" -- pin name to use for enable / reset. local...
-- English dictionary (en) kWord_Audio = "Audio" kWord_Back = "Back" kWord_CreatedBy = "Created By" kWord_Credits = "Credits" kWord_GameCenter = "Game Center" kWord_Locked = "Locked" kWord_Options = "Options" kWord_Photographs = "Photographs" kWord_Play = "Play" kWord_Quit = "Quit" kWord_Restart = "Restart" kWord_Scor...
--[[ Author: kritth Date: 12.03.2015 TODO: - Particle on swap - Courier swap - Ward swap ]] --[[ ==================================================================================================================== ============================================Init Functions=========================================...
local msgserver = require "snax.msgserver" local crypt = require "skynet.crypt" local skynet = require "skynet" local loginservice = tonumber(...) local server = {} local users = {} local username_map = {} local internal_id = 0 -- login server disallow multi login, so login_handler never be reentry -- call by login ...
cloth_belts_db = { id0 = { source = "Shadumbras Head", drop_rate = "quest", name = "Abandoned Zandalari Shadowgirdle", category_territory = "", territory = "Horde", id = "0", expansion = "", location = "Ashenvale" }, id1 = { source = "Ivus the Forest Lord", drop_rate = "Unknown", name = "Ivus' ...
--[[---------------------------------------------------------------------------- Application Name: BarcodeReader Summary: Reading EAN/UPC Barcodes Description: Script loads periodically all images inside the 'resources' folder. If there are codes successfully found in one of the images, the content a...
function callback(...) return setmetatable({ cb = {...}, invoke = function(self, ...) local v1, t1 = self.cb[1], type(self.cb[1]) if #self.cb == 1 then if t1 == 'function' or t1 == 'table' then return v1(...) end elseif #self.cb == 2 then local v2, t2 = sel...
worldboss_6 = Creature:new { customName = "\\#00ff00<<< Malevolent Gurk >>> \\#ff0000[lvl 300]", socialGroup = "gurk", faction = "", level = 300, chanceHit = 100, damageMin = 8500, damageMax = 10000, specialDamageMult = 10.0, baseXp = 28549, baseHAM = 400000, baseHAMmax = 500000, armor = 3, resists = {16...
function flua() print "FLua" end print(str) print(x2) print(x3) print(x) x = 12 x2 = 2131 x3 = 13 str = "Fuck" b = false f()
return {'majorca','majem','majestatisch','majesteit','majesteitelijk','majesteitsschennis','majestueus','majeur','majolica','majolicategel','majoor','major','majoraan','majoraat','majordomus','majoreren','majorette','majorettekorps','majoriteit','majuskel','maja','majuro','maj','majella','majid','majesteitelijke','maje...
--[[ -- ## dart/textDocument/publishOutline Notification Direction: Server -> Client Params: `{ uri: string, outline: Outline }` Outline: `{ element: Element, range: Range, codeRange: Range, children: Outline[] }` Element: `{ name: string, range: Range, kind: string, parameters: string | undefined, typeParameters: str...
pfUI:RegisterSkin("Options - Sound", function () local border = tonumber(pfUI_config.appearance.border.default) local bpad = border > 1 and border - 1 or 1 StripTextures(SoundOptionsFrame) CreateBackdrop(SoundOptionsFrame, nil, true, .75) EnableMovable(SoundOptionsFrame) HookScript(SoundOptionsFrame, "OnS...
local module = {} local replicated = game:GetService('ReplicatedStorage') local values = require(replicated.Common.Values) local template = require(script.Template) local send = require(script.Send) local remotes = replicated.Remotes local play = remotes.Play local delete = remotes.DeleteSave local sendData = remo...
local npcTree = {} local Content = ExtraFWMod:getContent() local CustomNPCs = {} Content.Classes.AI = { new = function (self, obj) --creates a new member of the class. attributes in obj override defaults, except for the four function tables obj = obj or {} for _,tbl in pairs(Content.fnTypes) do --clone all tables...
function getVehicleDistanceTraveled(player, vehicle) if isElement(player) and vehicle and (getElementType(vehicle) == "vehicle") then return math.round( getElementData(vehicle, "travelmeter-vehicleDistanceTraveled"), 1 ) or 0 end return false end function setVehicleDistanceTraveled(player, vehicle, dista...
function love.conf(t) t.title = "YALT - Yet Another Love Terminal" -- The title of the window the game is in (string) t.author = "josefnpat" -- The author of the game (string) t.identity = nil -- The name of the save directory (string) t.version = 0 -- The LÖVE ver...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- mapinfo.lua -- local mapinfo = { name = "Enceladus", shortname = "Enceladus", description = "This ice planet has high geothermal activity and ...
Target = "NAMEHERE" game:GetService('RunService').Stepped:connect(function() game.Players.LocalPlayer.Character.Head.CanCollide = false game.Players.LocalPlayer.Character.Torso.CanCollide = false game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false game.Players.LocalPlayer.Character["Right Leg"].C...
--MG TECTONIC Plants api trees section --adapted from valleys mapgen --==================================================================== --Functions --- Add tree roots. Called after mapgen via register local function make_root(x0, y0, z0, data, area, tree, air) local ystride = area.ystride local ybot = y0 - 1 ...
-- Create the TP GUI -- function GUI.createTPGui(player) -- Get the MFPlayer -- local MFPlayer = getMFPlayer(player.name) -- Create the GUI -- local GUITable = GAPI.createBaseWindows(_mfGUIName.TPGUI,{"gui-description.MFTPGUITitle"}, MFPlayer, true, true, false, "vertical", "horizontal") local mainFr...
--- LevelState is the main gameplay state. local class = require "lib.middleclass" local gamestate = require "lib.hump.gamestate" local Timer = require "lib.hump.timer" local State = require "src.states.state" -- Systems local CameraStartSystem = require "src.systems.camerastart" local CameraFinishSystem ...
function read1 (x) local i = 0 return function () collectgarbage() i=i+1 return string.sub(x, i, i) end end function cannotload (msg, a,b) assert(not a and string.find(b, msg)) end x = string.dump(load("return 1")) a = assert(load(x, nil, "b")) assert(a() == 1) --[[cannotload("attempt to load a bi...
local playsession = { {"mewmew", {177480}}, {"SchniSchnaSchnuck", {10353}}, {"dpoba", {215382}}, {"j0nni", {213439}}, {"SpS", {207140}}, {"willzcn", {76474}}, {"ANV1L", {185530}}, {"adidas", {5090}}, {"nizzy", {167655}}, {"pickles28", {9369}}, {"Bill_Nye_1", {151572}}, {"redlabel", {142709}}, {"Jhumekes", ...
require("mineunit") mineunit("core") describe("Mod initialization", function() it("Wont crash", function() sourcefile("init") end) it("Wont crash if initialized with nil", function() QoS(nil) QoS() end) it("Wont crash if initialized with nil and priority", function() QoS(nil, 2) end) end)
local class = require('opus.class') local itemDB = require('core.itemDB') local Peripheral = require('opus.peripheral') local Util = require('opus.util') local RefinedAdapter = class() function RefinedAdapter:init(args) local defaults = { name = 'refinedStorage', } Util.merge(self, defaults) Util...
--[[ GD50 Pokemon Author: Colton Ogden cogden@cs50.harvard.edu ]] MenuState = Class{__includes = BaseState} function MenuState:init() end function MenuState:update(dt) end function MenuState:render() end
sound.Add( { name = "RocketThrust", sound = "^thrusters/rocket01.wav", channel = CHAN_BODY, pitchstart = 50, pitchend = 50, level = 80, volume = 0.7, } )
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local uo = require "util.core" local CMD = {} local nodeid = tonumber(skynet.getenv ("nodeid") or 1) assert(nodeid < 1024) local reference_time = os.time({year=2017,month=1,day=1}) local next_seq = 1 -- gen uuid using 'snowflake' -- ...
Garage = {} Garage.themePrimaryColor = {} local isActive = false local pendingBuyCallback function Garage.start(vehicles, enteredVehicleId, vehicle) if isActive then return false end isActive = true Garage.themePrimaryColor = {exports.dpUI:getThemeColor()} localPlayer.dimension = 0 exports.dpTime:forceTime(12...
----------------------------------- -- Area: Bostaunieux Oubliette (167) -- Mob: Garm -- Note: PH for Shii ----------------------------------- local ID = require("scripts/zones/Bostaunieux_Oubliette/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ----------------------------------- function o...
local included = pcall(debug.getlocal, 4, 1) local T = require("test") local date = require("date") local expect = T.expect local equal = T.equal --# = date --# :toc: --# :toc-placement!: --# --# Date and time operations. --# --# toc::[] --# --# == *date.diff*(_Object_, _Object_) -> _Table_ --# Subtract the date and ti...
local plateChanges = {} local function findPlate(plate) for k,v in pairs(plateChanges) do if plate == v then return k end end return nil end RegisterServerEvent("vehicleMod:changePlate") AddEventHandler("vehicleMod:changePlate", function(newPlate, isFake, oldPlate) if isFak...
-- Rewind script -- Will rewind emulation upon pressing a specific key -- Original script by: deltaphc -- Modified by: Chrezm -- Test compatibility if not pcall(function() sav_create() end) then mnv_error('std_betterrewind.lua is not compatible with the current emulator. Please try a different one.') end -- Constants...
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local command = helpers.command local eq = helpers.eq local funcs = helpers.funcs local feed = helpers.feed local write_file = helpers.write_file describe('jumplist', function() local fname1 = 'Xtest-functional-normal-jump' ...
vim.fn.sign_define('DiagnosticSignError', { text = '', texthl = 'DiagnosticSignError' }) vim.fn.sign_define('DiagnosticSignWarn', { text = '', texthl = 'DiagnosticSignWarn' }) vim.fn.sign_define('DiagnosticSignInfo', { text = '', texthl = 'DiagnosticSignInfo' }) vim.fn.sign_define('DiagnosticSignHint', { text = '',...
local kNewMarineWeaponEffects = { railgun_weak_attack = { effects = { --{viewmodel_cinematic = "cinematics/marine/railgun/muzzle_flash.cinematic", attach_point = "fxnode_r_railgun_muzzle"}, --{weapon_cinematic = "cinematics/marine/railgun/muzzle_flash.cinematic", attach...
require 'torch' require 'image' require 'nn' -- log(0) = -inf, 0 is from initializing qlearning table and apparently some state is never reached function preprocess_labels(dataset) for i = 1, dataset:size() do for j = 1, 4 do if dataset.labels[i][j] == 0 then dataset.labels[i][j] = 0.001...
local MSQ = LibStub("Masque", true) if not MSQ then return end -- Dek2 MSQ:AddSkin("Dek2", { Author = "Excitor", Version = "1.0", Shape = "Square", Masque_Version = 40300, Backdrop = { Width = 42, Height = 42, Color = {1, 1, 1, 1}, Texture = [[Interface\AddOns\Masque_Dek2\Textures\Backdrop]],...
-- forward-directional -- created on 2021/4/30 -- author @zoloypzuo local vertex_shader = [[ #version 330 layout(location = 0) in vec3 position; layout(location = 1) in vec2 texCoord; layout(location = 2) in vec3 normal; layout(location = 3) in vec3 tangent; out vec2 texCoord0; out vec3 worldPos0; out mat3 tbnMatrix;...
local vm = require 'vm.vm' local guide = require 'parser.guide' local files = require 'files' local util = require 'utility' local await = require 'await' local function eachDef(source, deep) local results = {} local lock = vm.lock('eachDef', source) if not lock then return results end ...
class("LoadSceneCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot1:getBody().type = LOAD_TYPE_SCENE slot0:sendNotification(GAME.LOAD_CONTEXT, slot1.getBody()) end return class("LoadSceneCommand", pm.SimpleCommand)
object_tangible_tcg_series1_decorative_chon_bust = object_tangible_tcg_series1_shared_decorative_chon_bust:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series1_decorative_chon_bust, "object/tangible/tcg/series1/decorative_chon_bust.iff")
--[[ Name: LibTipHooker-1.1.lua Description: A Library for hooking tooltips. Revision: $Revision: 16 $ Author: Whitetooth Email: hotdogee [at] gmail [dot] com LastUpdate: $Date: 2011-04-17 08:19:29 +0000 (Sun, 17 Apr 2011) $ Website: Documentation: SVN: $URL $ License: LGPL v3 ]] --[[ Features { 1. Why...
-- Eliza.lua is a very superficial form of rogerian psychotherapy meant for -- entertainment and educational purposes. It is based on the original MIT Eliza -- with text taken from the public domain pascal version. -------------------------------------------------------------------------------- -- Permission to use, ...
local Runner = require("tests.indent.common").Runner local XFAIL = require("tests.indent.common").XFAIL local runner = Runner:new(it, "tests/indent/c", { tabstop = 4, shiftwidth = 4, softtabstop = 0, expandtab = true, }) describe("indent C:", function() describe("whole file:", function() runner:whole_fi...
WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243 PADDLE_SPEED = 200 -- 200 pixels / second -- from: https://github.com/Ulydev/push Class = require 'class' push = require 'push' -- importing file require 'Ball' require 'Paddle' function love.load() math.randomseed(os.time()) lov...
return { radars = { ["radar-2"] = 2, ["radar-3"] = 3, ["radar-4"] = 4, ["radar-5"] = 5, } }
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by jow.hou. --- DateTime: 2019/4/25 10:04 ---this file is for me to practice table ---__index 用来索引 当__index为函数是直接调用 local table1 = { jow = "hi" } local table2 = { wofead = "hello" } local table3 = { jowney = "nice" } print(table1.jow, table1.wofead) ...
require"logging.email" local logger = logging.email { rcpt = "mail@host.com", from = "mail@host.com", { subject = "[%level] logging.email test", }, -- headers }...
local UIS = game:GetService("UserInputService") local lp = game.Players.LocalPlayer local c = lp.Character UIS.InputBegan:connect(function(input, processed) c.Humanoid.JumpPower = 50 -- sets the JumpPower from 0 to 50 (default JumpPower) if processed then return end if input.KeyCode == Enum.KeyCode.Space then -- if th...
return { -- 175x faster then filetype.vim "nathom/filetype.nvim", config = function() -- we dont need filetype.vim since we use nathom/filetype.nvim vim.g.did_load_filetypes = 1 end, }
require("lunit") local imlib2 = require("imlib2") local font = imlib2.font local module = module module("manipulating the font paths/listing fonts", lunit.testcase) do function test_list_paths() assert_table(font.list_paths()) end function test_add_path() font.add_path("foo") assert_equal("foo", fo...
hs.loadSpoon("SpoonInstall") -------------------------------- -- START VIM CONFIG - https://github.com/dbalatero/VimMode.spoon -------------------------------- local VimMode = hs.loadSpoon("VimMode") local vim = VimMode:new() -- Configure apps you do *not* want Vim mode enabled in -- For example, you don't want this ...
object_building_mustafar_structures_must_jeditemple_platform_lrg = object_building_mustafar_structures_shared_must_jeditemple_platform_lrg:new { } ObjectTemplates:addTemplate(object_building_mustafar_structures_must_jeditemple_platform_lrg, "object/building/mustafar/structures/must_jeditemple_platform_lrg.iff")
return function(self) return self.states[self.position] end
FACTION.name = "Rebels" FACTION.desc = "Just don't select it." FACTION.color = Color(255, 255, 255) FACTION.isDefault = false FACTION.models = { "models/police.mdl", "models/alyx.mdl" } FACTION_REBELS = FACTION.index
---@class BattleNet C_BattleNet = {}
local lib={} function lib.same(x) return x end function lib.any(l) return l[math.random(1,#l)] end function lib.anys(l,n, t) t,n = {}, n or 128 for i=1,n do t[#t+1] = lib.any(l) end return t end function lib.map(t,f, out) out={} f = f and f or function(z) return z end if t then for i,v in pairs(t) ...
-- local function spawner_integration() -- return -- { -- filename = "__base__/graphics/entity/spawner/spawner-idle-integration.png", -- variation_count = 4, -- width = 258, -- height = 188, -- shift = util.by_pixel(2, -2), -- frame_count = 1, -- line_length = 1, -- hr_version = -- ...
----------------------------------- -- Area: Nashmau -- NPC: Nabihwah -- Type: Imperial Gate Guard -- !pos 9.988 -7 68.585 53 ----------------------------------- require("scripts/globals/besieged") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) tpz.be...
require 'torch' require 'image' require 'paths' require 'fs' require 'util' require 'util/file' require 'dataset/pipeline' require 'fn' require 'fn/seq' require 'dataset' require 'dataset/TableDataset' Coil = {} Coil.name = 'coil' Coil.dimensions = {3, 128, 128} Coil.n_dimensions = 3 * 128 * 128 Coil.size...
require 'rutil' if rutil == nil then dofile 'rutil.lua' if rutil == nil then error('NO RUTIL PACKAGE AVAILABLE') end end function createNasaTrainSet(file) local data = csvToTable(file, ' ', false) for i=1, #data do data[i][27] = nil end data = torch.Tensor(data) local info = {} info.x = d...
local ok, treesitter_configs = pcall(require, "nvim-treesitter.configs") if not ok then vim.notify("nvim-treesitter.configs not found. Tree-sitter integration is disabled.", "error") return end treesitter_configs.setup({ highlight = { enable = true }, -- Disabled for now as it's still pretty buggy in Go ...
cc = cc or {} ---NavMeshObstacle object ---@class NavMeshObstacle : Component local NavMeshObstacle = {} cc.NavMeshObstacle = NavMeshObstacle -------------------------------- -- ---@return int function NavMeshObstacle:getSyncFlag() end -------------------------------- -- ---@param radius float ---@param height float ...
socialcredit = socialcredit or {} socialcredit.Version = "1.0b" socialcredit.Privilege = "SocialCreditControl" socialcredit.Config = include("socialcredit/config.lua") local Player = FindMetaTable("Player") function Player:GetSocialCredit() return self:GetNWInt("SocialCredit") end hook.Add("OnGamemodeLoaded", "S...
local function chars(str, pattern) local result, i = {}, 0 for char in str:gmatch(pattern or ".") do i = i + 1 result[i] = char end return result end return chars
--[[tullaRange Config Localization - Italian]] if GetLocale() ~= 'itIT' then return end local AddonName, Addon = ... local L = Addon.L L.ColorSettings = 'Colori' L.ColorSettingsTitle = 'Impostazioni per la configurazione del colore' L.oor = 'Bersaglio distante' L.oom = 'Mana scarso' L.unusable = 'Non utilizzabil...
local llthreads = require("llthreads2.ex") local mtmsg = require("mtmsg") local threadIn = mtmsg.newbuffer() local threadOut = mtmsg.newbuffer() local threadOut2 = mtmsg.newbuffer() local T = 6 -- total time in seconds local N = 10000 local thread = llthreads.new(function(threadInId, threadOutId, threadOut2...
local Equipment = script:GetCustomProperty("Equipment"):WaitForObject() local propChicken = script:GetCustomProperty("Chicken"):WaitForObject() local propSound = script:GetCustomProperty("Sound"):WaitForObject() local IDLE = script:GetCustomProperty("IdleStance") or "unarmed_idle_relaxed" local RUN = script:GetCustomPr...
workspace "template-project" architecture "x86_64" language "C++" startproject "example-project" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "vendors/GLFW/include" IncludeDir["glad"] = "vendors/glad/includ...
-- Lies die bisherige Ausgabe aus dem Command Speicher aus local text = Command:getData() -- Lies alles nach dem Command als einen Parameter aus local newText = Command.parameter -- Wenn der Benutzer, der den Command gesendet hat Moderator ist -- Und es einen neuen Text gibt if User:isModerator() and string.len(newTe...
author 'GRANDØMX#0001' fx_version 'adamant' game 'gta5' server_scripts { '@mysql-async/lib/MySQL.lua', 'server.lua' } dependency 'mythic_notify'
require "ISUI/ISLayoutManager" local ThePVPButton = ISButton:derive("ThePVPButton"); function makeToolTip(option,name,desc) local toolTip = ISToolTip:new(); toolTip:initialise(); toolTip:setVisible(false); -- add it to our current option option.toolTip = toolTip; toolTip:setNa...
local _task = nil local _pending = {} local _tasks = {} local _delay = 1500 local _prefix = "[AutoMailReturn]: " local _subjects = {"/r","/b","/ret","/rts","rts","return","bounce","/return","/bounce"} local _settings = {autoDeleteEmpty = true, delay = _delay} local _currentMail = { sendTo="", subjec...
--[[---------------------------------------------------------------------------- This file is part of Friday Night Funkin' Rewritten by HTV04 ------------------------------------------------------------------------------]] weeks[1] = { init = function() weeks.init() stageBack = Image(love.graphics.newI...
--[[ Copyright (C) 2019 Onset Roleplay Developers: * Logic_ Contributors: * Blue Mountains GmbH ]]-- -- Variables -- Functions local function SetPickupColor(pickup, r, g, b, a, materialslot) materialslot = materialslot or 0 local StaticMeshComponent = GetPickupStaticMeshComponent(pickup) StaticMeshComponent:Set...
object_tangible_tcg_series1_decorative_display_case_01 = object_tangible_tcg_series1_shared_decorative_display_case_01:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series1_decorative_display_case_01, "object/tangible/tcg/series1/decorative_display_case_01.iff")
----------------------------------------------------------------------------------------- -- -- level.lua -- Copyright 2016 Flynn Tesoriero -- https://github.com/flynntes -- https://flynntes.com -- ----------------------------------------------------------------------------------------- local composer = require( "comp...
local url = require("url") local http = require('http') local PORT = process.env.PORT or 10083 require('tap')(function(test) test('http-get-url', function(expect) local seen_req = false local server server = http.createServer(function(req, res) assert('GET' == req.method) assert('/foo?bar' =...
module(...,package.seeall) local ffi = require("ffi") local types = require("pf.types") -- Load FFI declarations. local pcap -- The pcap library, lazily loaded. local verbose = os.getenv("PF_VERBOSE"); local MAX_UINT32 = 0xffffffff ffi.cdef[[ typedef struct pcap pcap_t; const char *pcap_lib_version(void); int pcap_...
local Pattern = require('utils/pattern') local urlencode = require('querystring').urlencode local concat = table.concat local sf = string.format local unpack = table.unpack local docs = { _SIGNATURE = '[mentions [, ...]] !docs [, query [, subquery]]', _DESCRIPTION = 'Search devdocs.io for framework and programmi...
local nmap = require('utils').nmap nmap('<leader>ff', '<cmd>lua require(\'telescope.builtin\').find_files()<cr>') nmap('<leader>fr', '<cmd>lua require(\'telescope.builtin\').live_grep()<cr>') nmap('<leader>fg', '<cmd>lua require(\'telescope.builtin\').git_files()<cr>') nmap('<leader>fc', '<cmd>lua require(\'telescope....
local LovelyEvent = { events = {}, -- list of all events eventQueue = {}, waitTimer = 0, -- -- -- loopedEvent = false, -- if event is looped } -- -- -- function LovelyEvent.new() local e = setmetatable( LovelyEvent, { __index = LovelyEvent } ) e:loadDefaultEvents() return e end -- -- -- fu...
--- -- A smallish httpspider library providing basic spidering capabilities -- It consists of the following classes: -- -- * <code>Options</code> -- ** This class is responsible for handling library options. -- -- * <code>LinkExtractor</code> -- ** This class contains code responsible for extracting urls from web pages...
local debris = game:GetService("Debris") local fastForward= false local debuffs = { ["HeartFreeze"] = { Multipliers = { WalkSpeed = .01 }, Adds = { }, Particle = { game.ServerStorage.TowerDefensePackages.Effects.Slow }, ParticleEnabledTimer = .3, ParticlesDebris = 3 }, ["FastForward"...
-- A simple Lua wrapper for ceph with swift. -- more: http://docs.ceph.org.cn/radosgw/swift/ local http = require"resty.http" local cjson = require "cjson" local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local _M = new_tab(0, 155) _M._VERSION = '...
if SERVER then AddCSLuaFile( "vgui/cs_f4_menu.lua" ) util.AddNetworkString( "f4menu" ) hook.Add ( "ShowSpare2", "F4MenuHook", function ( ply) net.Start ( "f4menu" ) net.Send ( ply ) end) end if CLIENT then include( "vgui/cs_f4_menu.lua" ) net.Receive( "f4menu", function() if( !CSF4Menu ) th...
-- demonstrates how to capture multiple key sequences, like 'ctrl-k 1', with extman. -- This is used to implement Borland-style markers. scite_Command { 'ctrl-k|do_ctrl_command k|Ctrl+K', 'ctrl-q|do_ctrl_command q|Ctrl+Q', } local gMarksMap = {} local gMarks = {} scite_OnOpen(function(f) gMarksMap...
require "scene" require "clue" local scene = Scene() --******************* -- IMAGES --******************* local sceneFolder = "res/scenes/inside_bike/" scene.spriteImg = love.graphics.newImage(sceneFolder .. "bikeroom_black.png") --******************* -- TEXT --******************* scene.startupAutoTe...
function birlikKurGUI() guiSetInputMode("no_binds_when_editing") local screenW, screenH = guiGetScreenSize() birlikWindow = guiCreateWindow((screenW - 288) / 2, (screenH - 321) / 2, 288, 321, "Melancia - Birlik Sistemi", false) guiWindowSetSizable(birlikWindow, false) isimLbl = guiCreateLabel(10, 26, 63, 26, "Bir...
DefineClass.InfopanelItems = { __parents = {"ItemMenuBase"}, ScaleModifier = point(750,750), Margins = box(0,135,-30,0), hide_single_category = true, rollover_anchor = "center-bottom", lines_stretch_time_init = 350, ZOrder = 0, FocusOnOpen = "child", } function InfopanelItems:Init() self:SetModal() PlayFX...
TrainFindBattleState = State:new() function TrainFindBattleState:needToRun(game_context, bot_context) -- must NOT be in battle if game_context.battle.is_in_battle then return false end -- for character_index = 0,2 do -- local character = game_context.characters[character_index] -- -- -- par...
local MaskRowSmoothL1Criterion, parent = torch.class('nn.MaskRowSmoothL1Criterion', 'nn.SmoothL1Criterion') function MaskRowSmoothL1Criterion:updateOutput(inputs, targets) local target = targets[1] local indicator = targets[2] self._buffer2 = self._buffer2 or inputs.new() self._buffer2:resizeAs(inputs):c...