SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
// IDC script for identifying functions and such | |
#include <idc.idc> | |
#define RenameFunction(a, b) Message("Found %s at %a\r\n", b, a); MakeName(a, b) | |
#define START_ADDR 0x00400000 | |
static main() { | |
auto addr = BADADDR; | |
auto onMovePacket = FindAoBAndRename("25 0C FE FF FF 05 E8 03", "?OnMovePacket@CMovePath@@QAEXAAVCInPacket@@H@Z"); |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
-- in your utils.lua | |
local M = {} | |
-- https://vi.stackexchange.com/questions/31206 | |
M.flash_cursorline = function() | |
vim.opt.cursorline = true | |
vim.cmd([[hi CursorLine guifg=#000000 guibg=#ffffff]]) | |
vim.fn.timer_start(200, function() | |
vim.cmd([[hi CursorLine guifg=NONE guibg=NONE]]) | |
vim.opt.cursorline = false |