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
// ==UserScript== | |
// @id stackexchange-diff-color-toggle@poke | |
// @name StackExchange: Show revision diff color toggle | |
// @namespace poke | |
// @version 1.2.0 | |
// @author Patrick Westerhoff | |
// @include *://*.stackexchange.com/*/revisions* | |
// @include *://*.stackexchange.com/review/suggested-edits/* | |
// @include *://meta.serverfault.com/*/revisions* | |
// @include *://meta.serverfault.com/review/suggested-edits/* |
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
#! /usr/bin/env python3 | |
from itertools import groupby, chain | |
NONE = '.' | |
RED = 'R' | |
YELLOW = 'Y' | |
def diagonalsPos (matrix, cols, rows): | |
"""Get positive diagonals, going from bottom-left to top-right.""" | |
for di in ([(j, i - j) for j in range(cols)] for i in range(cols + rows -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
// ==UserScript== | |
// @id microsoft-docs-force-english@poke | |
// @name Microsoft Docs: Force English | |
// @description Force Microsoft Docs and MDN to be displayed in English, regardless of the browser’s locale settings. | |
// @namespace poke | |
// @version 3.0.0 | |
// @author Patrick Westerhoff | |
// @grant none | |
// @include https://docs.microsoft.com/* | |
// @include https://learn.microsoft.com/* |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Guild Wars 2: Item search</title> | |
</head> | |
<body> | |
<div id="loader">Loading…</div> | |
<div id="app" style="display: none;"> |
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
Param([string] $Folder) | |
Write-Host 'Backdating files in folder' $Folder -ForegroundColor Green | |
Push-Location $Folder | |
git init | |
git commit --allow-empty -m 'Initialize repository' | |
Write-Host 'Looking for files: ' -NoNewLine -ForegroundColor Blue | |
$files = Get-ChildItem * -Recurse | ? { !$_.PSIsContainer } | sort LastWriteTime | |
Write-Host $files.Length -NoNewLine -ForegroundColor Yellow |
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 Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Hosting.Server.Features; | |
using Microsoft.AspNetCore.Server.Kestrel; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using System; | |
using System.IO; | |
namespace ExampleApp | |
{ |
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 System; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Hosting.Internal; | |
using Microsoft.AspNetCore.Hosting.Server; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Http.Features; | |
using Microsoft.AspNetCore.Server.Kestrel.Core; | |
using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal; |
OlderNewer