This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FloatingHelp(subject) | |
local stats = vim.api.nvim_list_uis()[1] | |
local width = math.ceil(stats.width * 0.8); | |
local height = math.ceil(stats.height * 0.8); | |
local buf = vim.api.nvim_create_buf(false, true) | |
local winConfig = { | |
relative = 'editor', | |
width = width, | |
height = height, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#InstallKeybdHook | |
#UseHook On | |
SendMode Input | |
SimulateKeyDown(key, modifier, direction) | |
{ | |
Send %modifier%{ %direction% } | |
KeyWait, %key%, T.3 | |
If (!ErrorLevel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System.Collections.Generic; | |
namespace EqualityPerformanceTest | |
{ | |
public class Person | |
{ | |
public int Id { get; set; } = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Creates a 'cache.php' file in the content directory, containing all pages. | |
The file is being kept for a day, page changes will be ignored as long the cache file exists. | |
You can simply delete the cache file in order to refresh the pages and contents | |
*/ | |
class PicoCaching extends AbstractPicoPlugin { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Create file 'PicoAnchors.php' in pico plugin folder and paste content | |
class PicoAnchors extends AbstractPicoPlugin { | |
public function onContentParsed(&$content) { | |
while ($this->getNextLink($content, $match)) { | |
$linkName = $match['name'][0]; | |
$endingTagOffset = $match['endingtag'][1] + $this->lastOffset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Create file 'PicoBom.php' in pico plugin folder and paste contents | |
class PicoBom extends AbstractPicoPlugin { | |
public function onContentLoaded(&$content) { | |
if (substr($content, 0, 3) == "\xEF\xBB\xBF") | |
$content = str_replace("\xEF\xBB\xBF",'',$content); | |
} |