content
stringlengths
5
1.05M
toolchain("arm-himix100-linux") set_kind("standalone") set_sdkdir("/opt/hisi-linux/x86-arm/arm-himix100-linux") set_bindir("/opt/hisi-linux/x86-arm/arm-himix100-linux/bin") toolchain_end()
local telescope = require('telescope') telescope.setup { defaults = { vimgrep_arguments = { "rg", "--ignore" "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case" }, prompt_position = "bottom", prompt_prefix = "> ", selection_caret = "> ", ...
vim.opt.termguicolors = true vim.g.encoding = "UTF-8" vim.o.fileencoding = 'utf-8' vim.o.encoding = "utf-8" vim.wo.number = true vim.wo.relativenumber = true vim.wo.cursorline = true vim.wo.signcolumn = "yes" -- 缩进2个空格等于一个Tab vim.o.tabstop = 4 vim.bo.tabstop = 4 vim.o.softtabstop = 4 vim.o.shiftround = true -- >> <...
for i, v in string.gmatch('odoasndoqew', 'o') do print(i, v) end print('----') for each in string.gmatch('odoasndoqew', '[oa]') do print(each) end print('----') for each in string.gmatch('odoasndoqew', '[oa]?') do print(each) end print('----') for each in string.gmatch('(abc),(def),ghui,()', ',?%(([^()]*)%)') do...
require "gui/flag_editor" local toggles = require "gui/toggles" local list = iup.list{visiblecolumns = 8, visiblelines = 15, expand = "VERTICAL"} local vertices, triangles, materials, ClearFields, active_pos local v = {} for i = 1, 3 do v[i] = { x = iup.text{visiblecolumns = 6, readonly = "YES"}, y = iup.text{v...
-- Kong runloop -- -- This consists of local_events that need to -- be ran at the very beginning and very end of the lua-nginx-module contexts. -- It mainly carries information related to a request from one context to the next one, -- through the `ngx.ctx` table. -- -- In the `access_by_lua` phase, it is responsible fo...
return { version = "1.4", luaversion = "5.1", tiledversion = "1.4.3", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 22, tilewidth = 8, tileheight = 8, nextlayerid = 5, nextobjectid = 678, properties = {}, tilesets = { { name = "tiles-overworld", f...
local module = {} --[[ When allocating push stack marker which is assigned to the variable If the variable is needed then just calculate the diff between the var marker and current stack marker which will be the offset for rsp !! THIS IS JUST AN EXPERIMENT IN HOW TO HANDLE OUTPUT !! ]] local instru =...
--wall-clock time, monotonic time and sleeping for Windows, Linux and OSX. --Written by Cosmin Apreutesei. Public Domain. local ffi = require'ffi' local M = {} local C = ffi.C if ffi.os == 'Windows' then ffi.cdef[[ void time_GetSystemTimeAsFileTime(uint64_t*) asm("GetSystemTimeAsFileTime"); int time_QueryPerfo...
-- Dialogue for NPC "npc_lola" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_mona", "sex_romantic")) then DL:setRoot(1) elseif (not DL:isConditionFulfilled("npc_lola", "talk")) then DL:setRoot(2) elseif (not DL:isConditionFulfilled("npc_lola", "question_1")) then DL:setRoot(4) elsei...
include("shared.lua") surface.CreateFont( "npc", { font = "Harry P", extended = false, size = ScrW() * 0.07, weight = 500, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, ...
--[[ Functions ]] --[[ Events ]]
local audio_file = "_silent" -- the best way to spread holiday cheer is singing loud for all to hear if PREFSMAN:GetPreference("EasterEggs") and MonthOfYear()==11 then audio_file = "jinglebells.ogg" end return THEME:GetPathS("", audio_file)
require("game.image_structures") -- Type boxlayout_type function create_boxlayout_type() -- local boxlayout_type = {} -- invis As Byte' if set, box is invisible. boxlayout_type.invis = 0 -- -- x_loc As Integer boxlayout_type.x_loc = 0 -- y_loc As Integer boxlayout_type.y_loc = 0 -- -- speed As Double ...
-- Create console if false then console.CreateConsole() end -- Only run if we have the global table if not _G then return end -- Localise globals local _G = _G local io = io local file = file -- BLT Global table _G.BLT = { version = 2.0 } _G.BLT.Base = {} _G.print = function(...) local s = "" for i, str in ipa...
--[[ gun_giver by BlockBa5her Protected under MIT license (C) 2017 CONFIG EXPLAINING: GUN NAMES: https://wiki.fivem.net/wiki/Weapons ATTACHEMENT NAMES: https://wiki.fivem.net/wiki/Weapon_Components Just look below, it should be self-explanatory ]] config = { ['/office...
RoleManager = RoleManager or BaseClass(BaseHotUpdate) function RoleManager:__init() if RoleManager.Instance then ErrorLog("[RoleManager] Attemp to create a singleton twice !") end RoleManager.Instance = self end function RoleManager:__delete() RoleManager.Instance = nil end function RoleManager:GetRoleByCRole...
local util = require "formatter.util" return function(lang) return { exe = "prettydiff", args = { util.format_prettydiff_arg("mode", "beautify"), util.format_prettydiff_arg("lang", lang), util.format_prettydiff_arg("readmethod", "filescreen"), util.format_prettydiff_arg("endquietly", ...
RegisterNetEvent('ND_hospital:client:FinishServices') AddEventHandler('ND_hospital:client:FinishServices', function(h, wasLucky) if h and usedHiddenRev then return end local player = PlayerPedId() if IsPedDeadOrDying(player) then local playerPos = GetEntityCoords(player, true) NetworkResurrectLocalPlayer...
local resource_autoplace = require("resource-autoplace") resource_autoplace.initialize_patch_set("titanium-ore", true) data:extend( { { type = "resource", name = "titanium-ore", icon = "__spicy-teeth-core_assets__/graphics/icons/titanium-ore.png", icon_size = 32, flags = {"placeable-neutral"}, ...
local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local clickable_container = require('widget.clickable-container') local icons = require('theme.icons') local create_widget = function() local e...
includeFile("custom_content/draft_schematic/space/engine/collection_reward_engine_01_mk1.lua") includeFile("custom_content/draft_schematic/space/engine/collection_reward_engine_01_mk2.lua") includeFile("custom_content/draft_schematic/space/engine/collection_reward_engine_01_mk3.lua") includeFile("custom_content/draft_s...
local skynet = require "skynet" local s = require "service" local socket = require "skynet.socket" local cluster = require "skynet.cluster" local runconfig = require "runconfig" -- 保存客户端连接 local conns = {} -- [fd] = conn -- 保存已登录玩家信息 local players = {} -- [playerid] = gateplayer local function conn() local m = { ...
require('actors/AI') PlayerAI = class('PlayerAI', AI) PlayerAI:includes(Beholder) function PlayerAI:initialize() super.initialize(self) self._thrust = false self._strafeLeft = false self._strafeRight = false self._fire = false self:observe('keypressed_w', function(self) self._thrust = true end) self:ob...
class "ZombiesServer" ZombiesTeamManager = require "ZombiesTeamManager" ZombiesLogic = require "ZombiesLogic" function ZombiesServer:__init() self.m_TeamManager = ZombiesTeamManager() self.m_GameLogic = ZombiesLogic() self.m_UpdateEvent = Events:Subscribe("Engine:Update", self, self.OnUpdate) self.m...
NewShipType = StartShipConfig() NewShipType.displayedName="$10072" NewShipType.sobDescription="$10073" NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth",26000) NewShipType.regentime=0 NewShipType.minRegenTime=0 NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.2) NewShipType.rearArmo...
function onCreate() -- background shit makeLuaSprite('BG', 'black', -800, -800); scaleObject('BG', 5, 5); addLuaSprite('BG', false); end function onCreate () --background cuz yeah why not? makeLuaSprite('BG2', 'sansbackgroundomfg', -800, -800); ...
AddCSLuaFile() SWEP.PrintName = "BW Keys" SWEP.Slot = 0 SWEP.SlotPos = 3 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false SWEP.ViewModelFOV = 62 SWEP.ViewModelFlip = false SWEP.Spawnable = false SWEP.AdminSpawnable = false SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = 0 SWEP.Primary.Autom...
-- first entry is tech id to use if the player has none of the upgrades in the list local kIndexToUpgrades = { { kTechId.Shell, kTechId.Vampirism, kTechId.Carapace, kTechId.Regeneration }, { kTechId.Spur, kTechId.Silence, kTechId.Celerity, kTechId.Adrenaline }, { kTechId.Veil, kTechId.Camouflage, kTechId.Au...
CLASS.name = "Doctor" CLASS.faction = FACTION_CITIZEN CLASS.salary = 230 CLASS.business = { } CLASS.weapons = { "weapon_healer", } CLASS.limit = 3 CLASS.business = { -- Foods ["aidkit"] = 1, ["healthkit"] = 1, ["healvial"] = 1, } CLASS.color = Color(47, 79, 79) function CLASS:onSet(client) for k, v in ipairs...
local export = {} --[=[ [[Unsupported titles]] and pages with high memory usage are listed at [[Module:links/data]]. Other modules used: [[Module:script utilities]] [[Module:scripts]] [[Module:languages]] and its submodules [[Module:gender and number]] [[Module:utilities]] [[Module:string]] [[Module:...
-- -- -- Copyright 2012 Rackspace -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
slot0 = class("FragmentShopPage", import(".ShamShopPage")) slot0.getUIName = function (slot0) return "FragmentShop" end slot0.GetPaintingCommodityUpdateVoice = function (slot0) return end slot0.CanOpen = function (slot0, slot1, slot2) return pg.SystemOpenMgr.GetInstance():isOpenSystem(slot2.level, "FragmentShop")...
return function(parent, dir) local lgi = require 'lgi' local Gtk = lgi.Gtk local window = Gtk.Dialog { title = "Gtk.SizeGroup", transient_for = parent, buttons = { { Gtk.STOCK_CLOSE, Gtk.ResponseType.NONE }, }, resizable = false, on_response = Gtk.Widget.destroy, } window:get_content_area():a...
local helpers = require("open-related.helpers") local filename = require("open-related.helpers.filename") local M = {} M.alternate_header = helpers.make_builtin({ filetypes = { "cpp" }, related_to = filename.from_patterns({ { match = "(.*).h$", format = "%s.cpp" }, { match = "(.*).cpp$", format = "%s.h" }...
-- MutantAlert -- For when the AI has been alerted to something and is just going to investigate what it was local Behavior = CreateAIBehavior("MutantAlert", "MutantBase", { Alertness = 0, Constructor = function (self, entity) self:Log("MutantAlert"); -- Search at least 10s. entity.AI.allowLeave = false; e...
local foo = {} function foo.load(x, w, h) foo.win = false foo.instruction = "Run!" foo.x = x foo.w = w foo.h = h end function foo.keypressed(key, bindings) end function foo.update(dt, bindings) if love.keyboard.isDown(bindings.pl.left) then end if love.keyboard.isDown(bindings.pl.ri...
local length = table.getn(KEYS); for i = 1, length, 1 do redis.call("zincrby", KEYS[i], ARGV[1], ARGV[2]) end return 1
help([[ Loads the Pythia environment ]]) local version = "8.2.3" whatis("loads the Pythia environment") prefix = "/opt/pythia8230" if (depends_on) then depends_on("root") else if (not isloaded("root")) then always_load("root") end end prepend_path("LD_LIBRARY_PATH", pathJoin(prefix, "/lib")) prepend_path("...
Data={} function Data.every() return "*" end function Data.new (name) local self = {} local name = name local nums = {} -- indexes of indepedendent numerics local syms = {} -- indexes of indepedendent symbols local dnums = {} -- indexes of depedendent numerics local dsyms = {} -- indexes of dep...
-- XMS_Tester_A.lua -- dofile( "XMS.lua" ) XMS_Tester_A = class( nil ) XMS_Tester_A.maxChildCount = 0 XMS_Tester_A.maxParentCount = 1 XMS_Tester_A.connectionInput = sm.interactable.connectionType.logic XMS_Tester_A.connectionOutput = sm.interactable.connectionType.none XMS_Tester_A.colorNormal = sm.color.new( 0x404040...
-- returns a function that, invoked with a delta, calls the callback -- when the total time is reached. if provided, the elseCallback -- will be invoked on each call with time < total. local function timeout(total, callback, elseCallback, periodic) local elapsed = 0 return function(dt) elapsed = elapsed + dt ...
CAchievement = {} function CAchievement:new(player) outputDebugString("CAchievement:new >> "..string.gsub(getPlayerName(player), "#%x%x%xx%x%x", ""), 0, 255, 180, 0) dbQuery(CAchievement.constructor, {player}, g_Connection, "SELECT * FROM v_achievements WHERE `account_id` = ?", getElementData(player, "account_id")) e...
data:extend({ { type = "item", name = "dummy-item", icon = "__Logistics Railway__/graphics/control-panel.png", flags = {"hidden"}, subgroup = "transport", order = "z", stack_size = 1, icon_size = 32 }, { type = "item", name = "storage-rail", icon = "__Logistics Railway__/graphics/storage-rail.p...
------------------------------------------------------------ ------------------------------------------------------------ local channels = TokoVoipConfig.channels; function addPlayerToRadio(channelId,playerServerId) if (not channels[channelId]) then channels[channelId] = {id = channelId, name = channelId.." Mhz", s...
hp = 5000 attack = 280 defense = 250 speed = 55 mdefense = 300 luck = 60 explodes = true strength = ELEMENT_NONE weakness = ELEMENT_FIRE local player_ids = {} local attacks_in_a_row = 0 function initId(id) myId = id end function numCharmed() local count = 0 for i=1,#player_ids do if ...
local const = require("constants") local class = require("libs.class") local states = require("gameobject.player.states.states") local Shword = require("gameobject.shword") local Wait = class("Wait", states.Base) function Wait:initialize(player, ...) states.Base.initialize(self, player) end function Wait:enter()...
-- @module: PageViewTest -- @author: JoeyChen -- @Date: 2018-10-22 16:14:39 -- @Last Modified by JoeyChen -- @Last Modified time 2018-10-22 17:32:49 local function createUI() local pageView = ccui.PageView:create() -- 设置容器尺寸 pageView:setContentSize(200,200) -- 设置能否触摸 pageView:setTouchEn...
tutorial = {} tutMap = {} tutMap.width = 5 tutMap.height = 5 for i = 0, tutMap.width+1 do tutMap[i] = {} end tutMap[1][3] = "C" tutMap[2][3] = "C" tutMap[3][3] = "C" tutMap[4][3] = "C" tutMap[5][3] = "C" tutMap[3][1] = "C" tutMap[3][2] = "C" tutMap[3][4] = "C" tutMap[3][5] = "C" tutMap[1][1] = "SCHOOL" tutMap[2][1...
data:extend({ { type = "double-setting", name = "camera-san-zoom", setting_type = "runtime-per-user", default_value = 0.25, minimum_value = 0.1, maximum_value = 2.0 } })
local assert_error = require("lapis.application").assert_error local assert_valid = require("lapis.validate").assert_valid local csrf = require "lapis.csrf" local capture = require "utils.capture" local format = require "utils.text_formatter" local generate = require "utils.generate" local proces...
local X = {} local team = GetTeam(); local CStackTime = {55,55,55,55,55,54,55,55,55,55,55,55,55,55,55,55,55,55} local CStackLoc = { Vector(-800.000000, -5000.000000, 0.000000), Vector(-1871.000000, -2936.000000, 0.000000), Vector(801.000000, -3146.000000, 0.000000), Vector(-3481.000000, -1122.000000, 0.000000)...
function Lothros_OnEnterCombat(Unit,Event) Unit:RegisterUnitEvent("Lothros_Spell", 60000, 0) end function Lothros_Spell(Unit,Event) Unit:FullCastSpellOnTarget(38167,Unit:GetClosestPlayer()) end function Lothros_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function Lothros_OnDied(Unit,Event) Unit:RemoveEvent...
module("luci.controller.advanced",package.seeall) function index() if not nixio.fs.access("/etc/config/advanced")then return end local e e=entry({"admin","system","advanced"},cbi("advanced"),_("高级设置"),60) e.dependent=true end
local ReplicatedStorage = game:GetService("ReplicatedStorage") require(ReplicatedStorage.TestEZ).TestBootstrap:run({ ReplicatedStorage.Plasma, ReplicatedStorage.Tests, })
function opponentNoteHit(id, direction, noteType, isSustainNote) if curBeat < 186 then if curBeat > 148 then cameraShake('cam', '0.015', '0.1') end end end
local ngx = _G.ngx local action = setmetatable({}, require "apps.api.internal.action_base") local assert_error = require("lapis.application").assert_error local models = require "models" local Threads = models.threads function action:GET() -- Get Thread local thread = assert_error(Threads:...
local Animation = {} local Animation_mt = { __index = Animation } function Animation.new(image, frames, duration) local new_animation = { image=image, frames=frames, max_frame=#frames, duration=duration or 0.1, position=0, elapsed=0, } return setmetatable(new_animation, Animation_mt) e...
local asdf_to_number = require 'asdf_to_number' return function(vars, args) -- s [str] [digit 1] [digit 2] vars.write(args[2], vars.read(args[2]):sub( asdf_to_number(vars.read(args[3])) + 1, asdf_to_number(vars.read(args[4])) + 1)) end
--- Holds all created standard operating procedures. -- The created SOPs must be added in this static module. This prevents from being dependent on the load order of the Lua files. -- The currently added SOPs can be received at any time. A callback can be added to get notified about SOPs which are added subsequently. -...
local me = game.Players.yfc local char = me.Character local pg = me.PlayerGui local spd = 0 local cordx = 25000 local cordy = 750000 local cordz = 2765 local reading = "No readings found;" local wepstatus = "Inactive - none on board" local locations = 65 pcall(function() char["Ship"]:remove() end) local model...
local F, C, L = unpack(select(2, ...)) local CHAT = F:GetModule('Chat') local split, strfind, strmatch, gmatch, gsub, sub = string.split, string.find, string.match, string.gmatch, string.gsub, string.sub local pairs, ipairs, tonumber = pairs, ipairs, tonumber local min, max, tremove = math.min, math.max, table.remove ...
bmd.openurl("https://www.youtube.com/c/JiPi_YT/videos")
package("spdlog") set_homepage("https://github.com/gabime/spdlog") set_description("Fast C++ logging library.") set_urls("https://github.com/gabime/spdlog/archive/$(version).zip", "https://github.com/gabime/spdlog.git") add_versions("v1.9.0", "61f751265cfce8fb17f67e18fa1ad00077280c0800082...
local LoggerEnums = require "LoggerEnums" local Config = { logging = { mode = LoggerEnums.mode.file, level = LoggerEnums.level.debug, filePath = getScriptPath() .. "\\Logs\\" }, server = { host = "127.0.0.1", port = 34130, timeout = 1 -- In seconds. } script = { loopDelayOnError...
local util = require 'monochrome.util' local Default = { '#EBEBEB', '#101010' } local Subtle = { '#F1F5F9', '#0A1219' } local CoolGray = { '#F9FAFB', '#111827' } local Photon = { '#c6c6c6', '#262626' } local Amplified = { '#FFFFFF', '#000000' } -- LuaFormatter off local colors = { bright_red = '#ffc4c4', brig...
--[[ QA API: Aligns a question to most likely predicates and entities from a structured knowledge base. Given the question, produces a ranked list of the most likely {predicate, entity pairs} --]] local QA_API = torch.class('softmax.AttentionAPI') function QA_API:__init(config) -- load modelf self.config =...
-- Busted runner require "busted.runner"() -- Modules local Dispatcher = require "dispatcher" local Event = require "event" describe("Event dispatcher", function() it("should be createable", function() local dispatcher = Dispatcher:new() assert.same("table", type(dispatcher)) end) it("sh...
local t = Def.ActorFrame { } for player_index, player_number in ipairs(GAMESTATE:GetEnabledPlayers()) do -- Modifiers local MOD_SIZE = 48 -- Frame local mod_frame = Def.ActorFrame { InitCommand = function(self) self:x(-512) :y(SCREEN_HEIGHT - 158) end, OnCommand = function(self) ...
ENT.Type = "anim" ENT.Base = "cw_attpack_base" ENT.PrintName = "KHR Pistol Optics" ENT.PackageText = "KHR Pistol Optics" ENT.Category = "CW 2.0 Attachments" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.attachments = {"kry_docter_sight", "md_microt1kh", "md_rmr"}
local ConstEnum = require("prototypes.enums.ConstEnum") -- 聚灵阵 -- ENTITY { type = "assembling-machine", name = "灵药园", icon = ConstEnum.graphics .. "/entity/7x7.png", icon_size = 288, max_health = 5000, flags = { "not-rotatable", "placeable-neutral", "placeable-player", "player-creation" }, ...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
return { { frequency = 0.02, phase = 90, }, { frequency = 0.1, phase = 270, }, { frequency = 0.01, phase = 180, }, { frequency = 0.2, phase = 270, }, { frequency = 1, phase = 0, }, { frequency = 0.05, phase = 120, }, { frequency = 2, phas...
-- -- Read bjam files, output premake -- premake.actions.convertbjam = {} local bjam = premake.actions.convertbjam function bjam.read(filename) local jamList = {} local oldDir = os.getcwd() if os.isdir(filename) then error("Expected filename, found directory : "..filename) end filename = path.getabsolute(f...
object_tangible_item_costume_kit_costume_kit = object_tangible_item_costume_kit_shared_costume_kit:new { } ObjectTemplates:addTemplate(object_tangible_item_costume_kit_costume_kit, "object/tangible/item/costume_kit/costume_kit.iff")
ITEM.name = "MK18" ITEM.description = "A Close-Quarters weapon, the MK18 is a performance-built M4A1 with a shorter upper reciever and adjustable stock meant to be used by special units who have a need for reliable firepower in close to medium range engagements. Fires 5.56x45 Rounds." ITEM.model = "models/weapons/ether...
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:InitializeSuper("unadmin","Administrative","Unadmin players.") self.Argumen...
before_each(function() lor = _G.lor app = lor({ debug = true }) Request = _G.request Response = _G.response req = Request:new() res = Response:new() end) after_each(function() lor = nil app = nil Request = nil Response = nil req = nil res = nil end) describ...
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=gym&keyword=climb&key=AIzaSyDGL9WfslaxKb43C2YxWEpwCnZzZNrZ8-c https://maps.googleapis.com/maps/api/place/details/json?placeid=2a35ed5051c6cfbb3c97adce679b87fb5a5ffabb&key=AIzaSyDGL9WfslaxKb43C2YxWEpwCnZzZNrZ8-c...
ELONA.i18n:add { mod = { loaded_script = "Loaded script {$1}. ", }, }
-- Predefined global variables: -- file_path -- comment_begin -- comment_end -- comment_line_prefix -- Globals set just before processing each LIMP comment: -- last_generated_data -- base_indent -- nl_style local table = table local debug = debug local string = string local tostring = tostring local type = type local...
data:extend({ { type = "technology", name = "steam-locomotives", icon = "__steamTrains__/graphics/technology/steam-locomotive.png", icon_size = 128, prerequisites = {"railway", "fluid-handling"}, effects = {}, unit = { ingredients = { {"automation-science-pack", 1}, ...
return { tileSize = 16, Solid = 0, Floor = 1, Corridor = 2, Door = 3, HHiddenDoor = 4, VHiddenDoor = 5, HWall = 6, VWall = 7, TLWall = 8, TRWall = 9, BLWall = 10, BRWall = 11, Dropoff1 = 12, Dropoff2 = 13, Dropoff3 = 14, Dropoff4 = 15, CorridorWall = 16, Pepper = 17 }
local Adapter = require('arken.ActiveRecord.Adapter') local QDateTime = require('QDateTime') local test = {} test.should_return_with_order = function() local adapter = Adapter.new() local where = adapter:where{ order = 'id' } assert( where == ' ORDER BY id', where ) end test.should_return_with_limit = func...
local tab = {} tab.name = "TAB_CUSTOMIZATION" tab.id = 1 tab.text = "CUSTOMIZATION" tab.switchToKey = "gm_showhelp" if CLIENT then function tab:processKey(b, p) if self:processSlotKeyPress(b, p) then return true end return nil end local emptyString = "" local hud16 = "CW_HUD32" local hud18 = "CW_HUD...
local awful = require('awful') local beautiful = require('beautiful') local wibox = require('wibox') local gears = require('gears') local mat_icon = require('widget.material.icon') local dpi = require('beautiful').xresources.apply_dpi local icons = require('theme.icons') local TagList = require('widget.tag-list') local...
if script.Parent.className ~= "HopperBin" then bin = Instance.new("HopperBin") bin.Name = "build" bin.Parent = game.Players.acb227.Backpack script.Parent = bin end bin = script.Parent size = 0 function onButton1Down(mouse) part = Instance.new("Explosion") part.Parent = workspace part.BlastRadius = size pa...
local Action = require(script.Parent.Action) return Action("StampScaleSet", function(max) return { max = max } end)
--- @module vline local BASE = (...):match("(.-)[^%.]+$") local core = require( BASE .. "core" ) local style = require( BASE .. "style" ) local group = {} ------------------------------------------------------------------------------- -- vertically allign all elements -------------------------------------------------...
WorkingDirectoryBinaries = nil -- Loads all binaries in working directory -- Or loads the cached list if it exists function loadWorkingDirectory() if WorkingDirectoryBinaries then return WorkingDirectoryBinaries else WorkingDirectoryBinaries = {} end local binaries = love.filesystem.get...
--- -- @type Slot -- -- DisplayObject that will be bound to bones. -- import local json = MOAIJsonParser local class = require "flower.class" local table = require "flower.table" local DisplayObject = require "flower.DisplayObject" local SpineUtils = require "flower.spine.SpineUtils" local SpineEvent = require "f...
-- Plugin configuration: julia-vim -- ============================================================================ -- Substitute LaTeX symbols after typing. vim.g.latex_to_unicode_auto = true -- Alignment configuration. vim.g.julia_indent_align_brackets = 0 vim.g.julia_indent_align_funcargs = 0 vim.g.julia_indent_ali...
local lsp_name = "sumneko_lua" local config = require("lspmanager.utilities").get_config(lsp_name) local os = require("lspmanager.os") local cmd_exec = "./extension/server/bin/" if os.get_os() == os.OSes.Windows then cmd_exec = cmd_exec .. "Windows/lua-language-server.exe" else cmd_exec = cmd_exec .. "Linux/l...
local ffi = require "ffi" local libs = { OSX = { x86 = "OpenGL.framework/OpenGL", x64 = "OpenGL.framework/OpenGL" }, Windows = { x86 = "OPENGL32.DLL", x64 = "OPENGL32.DLL" }, } local gl = ffi.load( libs[ ffi.os ][ ffi.arch ] ) require "WTypes" ffi.cdef[[ typedef unsigned int GLenum; typedef unsig...
function() local output = "" aura_env.h = string.format("%.2f",GetHaste()).."%" aura_env.v = string.format("%.2f",GetCombatRatingBonus(29)).."%" aura_env.c = string.format("%.2f",GetCritChance()).."%" aura_env.m = string.format("%.2f",GetMasteryEffect()).."%" if (GetHaste() or 0) >= 1...
local strict = require 'pl.strict' local test = require 'pl.test' local M = strict.module (...) function M.answer () Boo = false -- fine, it's a declared global -- in strict mode, you cannot assign to globals if you aren't in main test.assertraise(function() Foo = true end," assign to undeclar...
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmCombat() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local she...
local wm = require("window_manager") wm.init() wm.run()
local PathOfBloodRelatedStats = { [ID.Murders] = true, [ID.Kills] = true, [ID.SoulsEaten] = true, [ID.StolenItems] = true, } ---@param character EclCharacter ---@param stat CustomStatData ---@param tooltip TooltipData local function OnCustomStatTooltip(character, stat, tooltip) if PathOfBloodRelatedStats[stat.ID]...
Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"]...