content
stringlengths
5
1.05M
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- pudge_meat_hook_lu...
---@class ModelSceneActor : ParentedObject local ModelSceneActor = {} function ModelSceneActor:AttachToMount() end function ModelSceneActor:CalculateMountScale() end function ModelSceneActor:ClearModel() end function ModelSceneActor:Dress() end function ModelSceneActor:GetActiveBoundingBox() end function ModelSce...
local function Board(size) local _grid = {} for x = 0, size.width - 1 do _grid[x] = {} for y = 0, size.height - 1 do _grid[x][y] = false end end local self = { size = size, grid = _grid } local function is_box_inside_grid(box_position, box_size) return box_position.x >= 0 and box_po...
object_tangible_tcg_series7_garage_display_vehicles_speederbike_flash = object_tangible_tcg_series7_garage_display_vehicles_shared_speederbike_flash:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_speederbike_flash, "object/tangible/tcg/series7/garage_display_vehicles/speederbi...
function tableFind(tab,el) for index, value in pairs(tab) do if value == el then return index end end return -1 end function rot(x,y,a) return math.cos(a)*x-math.sin(a)*y,math.sin(a)*x+math.cos(a)*y end function harmonic(t, d, f, p, a) return a*math.sin(2*math.pi*f*t/d +2*mat...
local keys = require "keybindings" local config = require "config" local vector = require "lib.vector" local sensor = require "lib.sensor" local entities = require "lib.entities" local player_entity = {} ; player_entity.__index = player_entity local simulate_physics function player_entity.create (en...
-- v. 2.0a -- Interactive subtitles for `mpv` for language learners. -- -- default keybinding: F5 -- if interSubs start automatically - mpv won't show notification -- -- dirs in which interSubs will start automatically; part of path/filename will also work; case insensitive; regexp autostart_in = {'/med/doc', 'German',...
-- Chessboard informations chessboard = nil -- Team turn teamTurn = 0 -- Init game function start() chessboard = {} for i = 0, 7 do chessboard[i] = {} for j = 0, 7 do chessboard[i][j] = nil end end for i = 0, 7 do chessboard[1][i] = { team=0, piece="Pawn" } ...
-- -- Foo.lua : example of plugin -- -- $ export LUA_PATH="$LUA_PATH;./eg/?.lua" -- $ smc -load Foo file.sm -- require 'Coat' local CodeGen = require 'CodeGen' singleton 'Foo' extends 'Smc.Language' has.id = { '+', default = 'FOO' } has.name = { '+', default = 'Foo' } has.option ...
local Skada = Skada local pairs, tostring, format = pairs, tostring, string.format local GetSpellInfo = Skada.GetSpellInfo or GetSpellInfo local GetSpellLink = Skada.GetSpellLink or GetSpellLink local playerPrototype = Skada.playerPrototype local _ local CCSpells = { [118] = 0x40, -- Polymorph [12809] = 0x01, -- Co...
if FirstLoad then MouseButtonImages = { ["MouseL"] = "UI/Common/mouse_left_click.tga", ["MouseR"] = "UI/Common/mouse_right_click.tga", ["MouseM"] = "UI/Common/mouse_middle_click.tga", ["MouseX1"] = "UI/Common/mouse_button_4.tga", ["MouseX2"] = "UI/Common/mouse_button_5.tga", ["MouseWheelFwd"] = "UI/Common/...
--Torch lib for mpi commnication require 'mpiT' require 'sys' mpiT.Init() megs = os.getenv('MEGS') or '10' megs = tonumber(megs) _rank = torch.IntStorage(1) mpiT.Comm_rank(mpiT.COMM_WORLD,_rank) rank = _rank[1] _size = torch.IntStorage(1) mpiT.Comm_size(mpiT.COMM_WORLD,_size) size = _size[1] if rank == 0 then pri...
-- local mg = metagui mg.keys = { -- dict of keycodes backspace = 0, del = 69, tab = 1, enter = 3, kpEnter = 85, home = 92, ["end"] = 93, pgUp = 94, pgDn = 95, up = 87, down = 88, left = 90, right = 89, numLock = 111, capsLock = 112, scrollLock = 113, menu = 123, prtSc = 125, sysRq = 125, pause = 127, } ...
local lush = require("lush") local hsl = lush.hsl ---@diagnostic disable: undefined-global local theme = lush(function() return { ColorColumn { bg = hsl("#586e74") }, -- used for the columns set with 'colorcolumn' -- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel...
local ESX = nil local TERMINATE_GAME_EVENT = 'blargleambulance:terminateGame' local START_GAME_EVENT = 'blargleambulance:startGame' local SERVER_EVENT = 'blargleambulance:finishLevel' local hospitalBlip = nil playerData = { ped = nil, position = nil, vehicle = nil, isInAmbulance = false, isAmbul...
-- $Id: heavy.lua,v 1.3 2015/09/08 17:18:18 roberto Exp roberto $ -- See Copyright Notice in file all.lua print("creating a string too long") do local st, msg = pcall(function () local a = "x" while true do a = a .. a.. a.. a.. a.. a.. a.. a.. a.. a .. a .. a.. a.. a.. a.. a.. a.. a.. a.. a ...
local ConvertToTableView = {} function ConvertToTableView.convert(listView, param) param = param or {} local parentNode = listView:getParent() local size = listView:getContentSize() local direction = listView:getDirection() --1:垂直 2:水平 local position = cc.p(listView:getPositionX(), listView:getPositionY()) lis...
--- Module implementing the luarocks-admin "make_manifest" command. -- Compile a manifest file for a repository. local make_manifest = {} local writer = require("luarocks.manif.writer") local index = require("luarocks.admin.index") local cfg = require("luarocks.core.cfg") local util = require("luarocks.util") local d...
{ ident=1257003, sort=1257003000, group=1257, features=PALETTE, name=_("_text_material_lapismarine")_("_bl")_("_text_structue"), blurb=_("_blurb_structue"), shape=TRI, scale=1, #include "_T_Lapishull.lua" points=-1, #include "_T_Lapisblock.lua" --FAKE--#include "_T_Lapisfakeblock.lua" }, { ...
workspace "Vanilla" configurations {"Debug", "Release"} project "Vanilla" -- project name kind "ConsoleApp" -- what's the kind language "C++" targetdir "bin/" includedirs {"shared/"} includedirs {"net/"} includedirs {"utils/"} includedirs {"./"} files {"*.cpp", "*.h"} files {"utils/**.cpp"} files {"utils/...
local LibClientBuild = Wheel("LibClientBuild") assert(LibClientBuild, "UnitPetHappiness requires LibClientBuild to be loaded.") -- Constants for client version local IsClassic = LibClientBuild:IsClassic() local IsTBC = LibClientBuild:IsTBC() -- WoW API local GetPetHappiness = GetPetHappiness local HasPetUI = HasPetUI...
local units = {'B', 'KB', 'MB', 'GB', 'TB'} return function(bytes, places) places = places or 2 if bytes == 0 then return '0B' end local base = math.log(bytes) / math.log(1024) local floored = math.floor(base) local unit_amount = math.pow(1024, base - floored) local place_mod = math.pow(10, places) ...
--[[ Copyright 2019 Manticore Games, Inc. 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, d...
HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Utils.lua") local MineArray = {} local player, playerTeamName local adviceGiven0 = false local adviceGiven1 = false local adviceGiven2 = false function onGameInit() Seed = 0 -- The base number for the random number generator GameFlags = gfInfA...
-- intercom.lua -- Part of FusionPBX -- Copyright (C) 2010 Mark J Crane <markjcrane@fusionpbx.com> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source co...
local Tunnel = module('_core', 'libs/Tunnel') local Proxy = module('_core', 'libs/Proxy') local hpp = Tunnel.getInterface("hpp_sedexcars") hppC = {} Tunnel.bindInterface("hpp_sedexcars", hppC) API = Proxy.getInterface('API') cAPI = Tunnel.getInterface('cAPI') local cfg = module("hpp_sedexcars", "config/cfg") animA...
bgNPC.cfg.replics = {} local function GetFilePath(name) return 'background_npcs_core/config/replics/language/sh_' .. name .. '.lua' end local function GetGameLanguage() local lnaguage_path = GetFilePath( GetConVar('cl_language'):GetString() ) if file.Exists(lnaguage_path, 'LUA') then return lnaguage_path end en...
local discordia = require('discordia') local client = discordia.Client() local prefix = '!' local TOKEN = 'bot_token_here' client:on('ready', function() print('Ready') client:setGame('watching for !ghostlyFacts') end) client:on('messageCreate', function(message) if message.content == prefix ..'ping' then...
require('packer').use { 'gitsigns.nvim', config = function() require('gitsigns').setup { signs = { add = { text = "▎" }, change = { text = "▎" }, delete = { text = "▎" }, topdelete = { text = "契" }, changedelete = { text = "▎" }, }, } end, setup = func...
local csvreader = {} --store function local csvcont = {} --store csvcont local function trim_left(s) return string.gsub(s, "^%s+", ""); end -- 去掉字符串右空白 local function trim_right(s) return string.gsub(s, "%s+$", ""); end -- 解析一行 function csvreader.parseline(line) local ret = {}; ...
select(2, ...) 'ItemDatabase' -- Imports local util = require 'Utility.Functions' local utf8 = require 'Shared.UTF8' -- Consts local const = util.ReadOnly({ -- See: https://tbc.wowhead.com/items?filter=151;1;187815 itemIds = util.IsBcc() and { { 1, 39656 }, -- Defaults { 43516 }, -- Brutal Nether Drake ...
fx_version 'cerulean' games { 'rdr3', 'gta5' } author 'Brackzz' description 'Atm Robbery' version '1.0.0' -- What to run client_scripts { 'client.lua' } server_scripts { 'server.lua' } shared_script { 'config.lua' }
--[[ Collections.lua Interface to smart-collection utility class - no object to represent an individual (extended) collection... *** This module came late: much having to do with collections has been implemented elsewhere, so @26/Dec/2013, this class is quite limited. --]...
-- system.looping, made by Bolodefchoco#0000 system.looping = function(f, ticks, ...) local timers, index = { }, 0 local addTimer = function(_, ...) index = index + 1 timers[index] = system.newTimer(f, 1000, true, ...) end local seconds = 1000 / ticks for timer = 0, 1000 - seconds, ...
-- -- Copyright (c) 2019 lalawue -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local Core = nil local ipport = ... if jit then Core = require("ffi-mnet") print("using jit", _VERSION) else Core = require("mne...
function onCreate() setPropertyFromClass('ClientPrefs', 'noReset', true) end function opponentNoteHit(id, noteData, noteType, isSustainNote) if dadName == "neomonster" then cameraShake('game', 0.0095, 0.1) end end
object_tangible_item_beast_converted_rancor_decoration = object_tangible_item_beast_shared_converted_rancor_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_rancor_decoration, "object/tangible/item/beast/converted_rancor_decoration.iff")
local function send(type, args) local content = ('{type=%q,args=%s}\r\n'):format(type, args) io.stdout:write(('Content-Length: %d\r\n%s'):format(#content, content)) end local function execute(s) return assert(load('return (' .. s .. ')', '=(protocol)', 't', {}))() end local function recv(s, bytes...
object_tangible_loot_creature_loot_collections_kill_tulrus_activation = object_tangible_loot_creature_loot_collections_shared_kill_tulrus_activation:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_kill_tulrus_activation, "object/tangible/loot/creature/loot/collections/kill_tulrus_ac...
-- See LICENSE for terms -- local whatever globals we call local ShowHexRanges = ShowHexRanges local HideHexRanges = HideHexRanges local IsKindOf = IsKindOf local pairs = pairs local SuspendPassEdits = SuspendPassEdits local ResumePassEdits = ResumePassEdits local reddish = -46777 -- lighter red than "red" local opti...
includeFile("custom_content/tangible/tcg/series5/hangar_ships/arc170.lua") includeFile("custom_content/tangible/tcg/series5/hangar_ships/awing.lua") includeFile("custom_content/tangible/tcg/series5/hangar_ships/black_sun_fighter_heavy_01.lua") includeFile("custom_content/tangible/tcg/series5/hangar_ships/black_sun_figh...
if global.playerdata then for _, pdata in pairs(global.playerdata) do if pdata.hovering_entities then for _, ent in pairs(pdata.hovering_entities) do ent.destroy() end end end global.playerdata = {} end
local WITH_SDL = 0 local WITH_SDL2 = 0 local WITH_SDL_STATIC = 0 local WITH_SDL2_STATIC = 0 local WITH_PORTAUDIO = 0 local WITH_OPENAL = 0 local WITH_XAUDIO2 = 0 local WITH_WINMM = 0 local WITH_WASAPI = 0 local WITH_ALSA = 0 local WITH_JACK = 0 local WITH_OSS = 0 local WITH_COREAUDIO = 0 local WITH_VITA_HOMEBREW = 0 lo...
return function(utf8) utf8.config.modifier = utf8.config.modifier or { utf8:require "modifier.compiletime.vanilla", utf8:require "modifier.compiletime.frontier", utf8:require "modifier.compiletime.stub", } function utf8.regex.compiletime.modifier.parse(regex, c, bs, ctx) for _, m in ipairs(utf8.config.modifie...
--[[ Copyright (c) 2021 wzhengsen. 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, distribute, su...
local sql = exports.sql --------- [ Element Data returns ] --------- local function getData( theElement, key ) local key = tostring(key) if isElement(theElement) and (key) then return exports['[ars]anticheat-system']:callData( theElement, tostring(key) ) else return false end end local function setData( t...
if not URS then URS = {} end URS.types = {} URS.types.restrictions = {"tool", "vehicle", "effect", "swep", "npc", "ragdoll", "prop", "sent", "all", "advdupe", "pickup"} URS.types.limits = {"vehicle", "effect", "npc", "ragdoll", "prop", "sent"} URS.types.loadouts = {} URS.restrictions = {} URS.limits = {} URS.loado...
local colors = { black = '#393b44', red = '#c94f6d', green = '#97c374', yellow = '#dbc074', blue = '#61afef', magenta = '#c678dd', cyan = '#63cdcf', white = '#dfdfe0', fg = '#abb2bf', bg = '#0e171c', text = '#0e17...
require("lsp").setup "solidity"
return "693064456149925949" --literally just the client id, its not a token. you cant do much with it.
project "Graphics" location "../../../projects/lib" kind "StaticLib" targetname "Graphics" pchheader "graphics/precomp.h" pchsource "../../../source/graphics/precomp.cpp" defines { "KH_GFXAPI_VULKAN", "WIN32_LEAN_AND_MEAN", "NOGDICAPMASKS", "NOSYSMETRICS", "NOMENUS", "NOICONS", "NOSYSCOMMANDS", ...
conf = { common = { node_memory_MemAvailable_bytes = { t = 'gauge', p = 'node_memory_MemAvailable_bytes%s+([^\n]+)\n' }, node_memory_MemTotal_bytes = { t = 'gauge', p = 'node_memory_MemTotal_bytes%s+([^\n]+)\n' }, node_filesyste...
-- Import custom Modules -{{{ require "utils/tables" require "utils/strings" -- }}} -- Helper variables -{{{ local api = vim.api local fn = vim.fn -- }}} -- Variables -{{{ local key_pressed = '' local win_width local render_list = {} local minimal_text_length = 0 local minimal_text = '' local minimal_end_reached = fals...
#!/usr/bin/env tarantool -- -- IProto-server -- Should be used to distribute input requests using load balancer. -- to run `tarantool -i server.lua <port>`. <port> should be 3301, 3302, 3303. -- local fio = require('fio') local digest = require('digest') local port = tonumber(arg[1]) if port == nil then error('In...
Locales['en'] = { ['ooc_prefix'] = 'OOC | %s', ['twt_help'] = 'Send et tweet', ['twt_prefix'] = '^0[^4Twitter^0] (^5@%s^0)', ['me_help'] = 'Personlige muligheder', ['me_prefix'] = 'Mig | %s', ['do_help'] = 'RP information', ['do_prefix'] = 'Gør | %s', ['generic_argument_name'] = 'Besked', ['generic_ar...
function onEvent(name, value1, value2) makeLuaSprite(value2, value1); addLuaSprite(value2, false); addGlitchEffect(value2, 2,1) addGlitchEffect(value1, 2,1) end
local PROFILER = import('/mods/DilliDalli/lua/AI/DilliDalli/Profiler.lua').GetProfiler() local MAP = import('/mods/DilliDalli/lua/AI/DilliDalli/Mapping.lua').GetMap() local CreatePriorityQueue = import('/mods/DilliDalli/lua/AI/DilliDalli/PriorityQueue.lua').CreatePriorityQueue UnitController = Class({ Initialise =...
vim.api.nvim_exec( [[ " next help tag nnoremap <silent><buffer> zl :call search('<Bar>[^ <Bar>]\+<Bar>\<Bar>''[A-Za-z0-9_-]\{2,}''')<cr> " previous help tag nnoremap <silent><buffer> zh :call search('<Bar>[^ <Bar>]\+<Bar>\<Bar>''[A-Za-z0-9_-]\{2,}''','b')<cr> " follow tag nnoremap <buffer> <CR> <C-]> " back to tag nn...
function onCreate() makeLuaSprite('pulsedemon','pulsedemon',-400,-300) addLuaSprite('pulsedemon',false) end function onBeatHit( ... )--for every beat -- body end function onStepHit( ... )--for every step -- body end function onUpdate( ... ) -- body end
--[[ Companion plugin for the LuaSnip snippet engine. Defines a completion function which can be used for built-in insert mode completion (e.g. omni completion). See 'ins-completion' for details. After completion the snippet is expanded. --]] -- lazy load LuaSnip, only useful when LuaSnip wasn't already loaded...
----------------------------------------- -- ID: 4757 -- Scroll of Blizzard -- Teaches the black magic Blizzard ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(149) end function onItemUse(target) target:addSpell(149) end
Import "Utils/FindRoute.lua" local small_rooms = { "A_Combat01", "A_Combat03", "A_Combat04", "A_Combat05", "A_Combat06", "A_Combat07", "A_Combat08A", "A_Combat09", "A_Combat10" } local c2_boon = { ItemName = "PoseidonRangedTrait", -- Even for Beowulf, Poseidon doesn't use ShieldLoadAmmo_ Rarity ...
heroicStrikeActionSlot = 13 berserkerRageActionSlot = 14 whirlwindActionSlot = 15 bloodThirstActionSlot = 17 function warrior_fury_skull() if azs.targetSkull() then warriorFuryAttack() else stop_autoattack() end end function warrior_fury_cross() if azs.targetCross() then warriorFuryAttack() else stop...
return { app_dirs = { "/usr/local/bin", "/usr/share/applications" }, menu_sel = "fzy", ctrl_bin = "mxctl.control", pop_term = 'urxvt', -- relative to $HOME wallpapermode = "folder", -- new|fixed|cycle|folder wallpaperscache = ".wlprs", wallpaperfixd = "Pictures/wal...
while true do buttons.read() j2_init() startscreen:blit(0, 0) logo_menu2:blit(158,40) screen.print(245,80,"You're playing JOLLY 2 PSP.\nThe game contains flashing lights, \njumpscares and loud sounds.\nOriginal game is made by IvanG.\nThe port is made by maxdev.\nGood luck!",0.8, white, black, __ACENTER) sc...
-- The name of your workspace will be used, for example, to name the Visual Studio .sln file generated by Premake. workspace "libae" -- We set the location of the files Premake will generate location "build" -- We indicate that all the projects are C++ only language "C++" -- We will compile for x86_64. You can...
local jid_split = require "util.jid".split; local st = require "util.stanza"; local set = require "util.set"; local select = select; local blacklist = module:get_option_inherited_set("host_blacklist", {}); local function stanza_checker(attr) return function (event) local host = select(2, jid_split(event.stanza.att...
local module = {} module.SSID = {} module.SSID["wifi"] = "Someone@2.4Ghz" module.HOST = "some-one.me" module.PORT = "1883" module.ID = node.chipid() module.ENDPOINT = "nodemcu/" return module
--[[ KD_Display Created by MichaelCoding25 MIT License Copyright (c) 2021 MichaelCoding25 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...
ImSdkConstants = {}; --@brief 返回类型 --note 用于映射调用sdk时,sdk的返回值类型 ImSdkConstants.eReturnType = { TYPE_OK = 1; --返回成功 TYPE_ERROR = -1; --返回失败 -- ... } --@brief 协议id --note 用于映射sdk返回的数据是对应哪个接口 ImSdkConstants.eProtoId = { INIT = 0; --初始化成功 ...
-- // Pulsar -- // zork - 2012 --get the addon namespace local addon, ns = ... ----------------------------- -- DEFAULT GLOBAL VALUES // SAVEDVARIABLES PER ACCOUNT ----------------------------- ns.default_glob = {}
-- curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim local Plug = vim.fn['plug#'] vim.call('plug#begin', '~/.local/share/nvim/plugged') -- colors for vim Plug('morhetz/gruvbox') -- colors for vim -- Plug 'mhartington/ocea...
local c = require("null-ls.config") local u = require("null-ls.utils") local M = {} M.run = function(generators, params, postprocess, callback) local a = require("plenary.async") local runner = function() u.debug_log("running generators for method " .. params.method) if vim.tbl_isempty(gener...
modifier_mini_spider_slow_attack = class(ModifierBaseClass) ------------------------------------------------------------------------------------ function modifier_mini_spider_slow_attack:IsHidden() return true end ------------------------------------------------------------------------------------ function modifie...
-- import local AssetLibraryModule = require 'candy.AssetLibrary' local TextureBaseModule = require 'candy.asset.TextureBase' local TextureInstanceBase = TextureBaseModule.TextureInstanceBase local RenderTargetModule = require 'candy.RenderTarget' local TextureRenderTarget = RenderTargetModule.TextureRenderTarget ----...
-- -- Created by IntelliJ IDEA. -- User: Kunkka -- Date: 6/12/17 -- Time: 16:52 -- To change this template use File | Settings | File Templates. -- local audio = {} local engine = cc.SimpleAudioEngine:getInstance() function audio:init() self.audios = {} self.seOn = cc.UserDefault:getInstance():getBoolForKey("...
require("Tower/rotator.lua") require("Tower/upgrade.lua") require("Tower/xpSystem.lua") require("Tower/supportManager.lua") require("NPC/state.lua") require("stats.lua") require("Projectile/projectileManager.lua") require("Projectile/Arrow.lua") require("Projectile/ArrowMortar.lua") require("Game/campaignTowerUpg.lua")...
local components = require("components") return function(instance, e) local collider = instance.collider local solidShape = e:get(components.solidShape) if solidShape then collider:register(solidShape.shape) end local senseCircle = e:get(components.senseCircle) if senseCircle then collider:register(senseCi...
StringUtil = {} function StringUtil.ReplaceEscapedCharWithChar(str) return string.gsub(str, "\\n", "\n") end function StringUtil.Trim(str) return (str:gsub("^%s*(.-)%s*$", "%1")) end function StringUtil.Split(str, sep) if str == nil then return nil end local str1, str2 = string.match(str, "(.-)"..sep.."(.*)") if...
local bling = require("module.bling") local awful = require("awful") local gears = require("gears") local naughty = require("naughty") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") require("awful.autofocus") local dpi = xresources.apply_dpi local l = awful.layout.suit awful....
local oil = require "oil" local oo = require "oil.oo" local assert = require "oil.assert" local os = require "os" module("oil.corba.services.event.EventFactory", oo.class) function create(self, data) assert.type(data, "table") return { created = os.time()...
----------------------------------------- -- ID: 4881 -- Scroll of Sleepga -- Teaches the black magic Sleepga ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(273) end function onItemUse(target) target:delSpell(363) target:addSpell(273) end
script.Parent = nil newscript = script:Clone() Autio = {} Autio.insert = "21001552" Autio.sb = newscript Autio.showlvls = false; Autio.bet = ":"; Autio.parts = {"Head", "Left Leg", "Right Leg", "Left Arm", "Right Arm", "Torso"} Autio.ablist = {}; Autio.players = {}; Autio.remove = false; Autio.bubblechat = true; ...
-- I do NOT use the KEYS array because I don't use Redis cluster currently. -- In the future if I use cluster, I'll use key{session} to let ALL session related keys to be put to the same slot. -- We preserve the most recent 20 sessions for a user. The older sessions will be removed once exceeded this limit. local MAX_...
function LoadRunways() local runways = {} -- Panau international table.insert(runways, { center = Vector3(-6263.817871, 208.897552, -3283.355713), radius = 4000, runwayLines = { { lineStart = Vector3(-5859.331543, 208.890671, -3685.240723), lineEnd = Vector3(-6482.459473, 208.89...
function onCreate() makeLuaSprite( 'L00','Lost_BG00', -450, -400 ); setLuaSpriteScrollFactor( 'L00', 0, 0 ); scaleObject( 'L00', 1.0, 1.0 ); makeLuaSprite( 'floor', 'Lost_floor', -427.5, -400 ); setLuaSpriteScrollFactor( 'floor', 1.0, 0.6 ); scaleObject( 'floor', 1.0, 1.0 ); --I will keep th...
local lpeg = require"lpeg" local Import = require"Toolbox.Import" local Object = Import.Module.Relative"Object" local Vlpeg = Import.Module.Relative"Vlpeg" local Array = Import.Module.Relative"Objects.Array" return Object( "Nested.PEG.Sequence", { Construct = function(self, Parts) self.Parts = Array("Nested.PEG...
local elastic = require 'elastic' local JSON = require 'cjson' local input = require 'parse' function handle(r) r.content_type = "application/json" local get = r:parseargs() local post = input.parse(r) if get.delete then local doc = elastic.get('rule', get.delete) if doc then ...
--##################################-- -- Create by THOMAS#9033 --##################################-- config = {} config.title = "ADVANCED CARDEL" -- Title of menu config.subtitle = "~b~main advanced_cardel" -- SubTitle of menu config.glare_rui=false config.TitleFont=2 -- 1 to 7 config.TitleScale=1.0 -- ...
-- -- Created by IntelliJ IDEA. Copyright (C) 2017 Hanks -- User: hanks -- Date: 2017/5/26 -- A news app -- require "import" import "android.widget.*" import "android.content.*" import "android.net.*" import "android.view.View" import "androlua.LuaHttp" import "androlua.LuaAdapter" import "androlua.widget.video.VideoP...
timeFactorIndex = 5 timeFactorList = {0, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 40, 90} function resetTimeFactor() for k, v in pairs(timeFactorList) do if v == 1 then timeFactorIndex = k end end timeFactor = timeFactorList[timeFactorIndex] end --------------------------------------- -- scan a directory and retur...
local mpu = require('M6502').new() local utils = require('M6502.utils') ------------------------------------------------------------------------------ -- Test callbacks local function test_on_read() print('testing on_read()') mpu:poke(0x1234, 7) assert(mpu:peek(0x1234) == 7) local function reader(mpu, ...
if SERVER then include("crosshair/init.lua") else include("crosshair/cl_init.lua") end
SetupProject("Tut 15 Many Images", "Many Images.cpp", "data/PT.vert", "data/Tex.frag")
-------------------------------------------------------------------------------- --[[ alongLine Particles positioned along a line. --]] -------------------------------------------------------------------------------- local CBE = require("CBE.CBE") local vent = CBE.newVent({ preset = "burn", positionType = "alongLi...
--Frame data collector script -- originally created by Dammit fromdammit.typepad.com --[[ to do: - read startup : detect button pressed, end when at least a green box appears - read recovery : force jump and detect when char state change to jump --> on whiff --> on hit --> on block - take screenshot of ea...
require'hop'.setup() vim.api.nvim_set_keymap('n', '<leader>w', '<cmd>HopWord<CR>', { noremap = true })
message('AH.lua has been loaded!')
local gears = require("gears") local awful = require("awful") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local helpers = require("helpers") require("ui.decorations.emacs") require("ui.decorations.ncmpcpp") local tb_ops = {} local add_dec...
local tweener = require('tweener.base') local easing = require('tweener.easing') local tPulse = tweener("loopforward") do tPulse.add({r = 128}, 0, easing.inSine) tPulse.add({r = 255}, 1 / 3, easing.outSine) end local tStipple = tweener('loopforward') do tStipple.add({ stipple = '0xf00f' }, 0.5) tStipple.add({...