This file contains hidden or 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
// Paste in browser console and run | |
async function deleteStaleBranches(delay=500) { | |
var stale_branches = document.getElementsByClassName('js-branch-delete-button'); | |
for (var i = 0; i < stale_branches.length; i++) | |
{ | |
stale_branches.item(i).click(); | |
await new Promise(r => setTimeout(r, delay)); | |
} | |
} |
This file contains hidden or 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.Runtime.CompilerServices; | |
public class C { | |
async async await(await async) => await async; | |
} | |
[AsyncMethodBuilder(typeof(builder))] | |
class async { | |
public awaiter GetAwaiter() => throw null; |
This file contains hidden or 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 NETSCAPE-Bookmark-file-1> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><A HREF="https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/-%20uid/TP40014508" ADD_DATE="1414706885" PRIVATE="0" TAGS="javascript,mac,osx,yosemite">JavaScript for Automation Release Notes</A> | |
<DD>This article describes JavaScript for Automation, a new feature in OS X Yosemite. |
This file contains hidden or 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
Does anyone use JSON for custom configuration files and if so, are there any conventions or common practices, when reading them from a .NET project? I have created a simple schema for one data type, and want to be able to store a collection of those in this config file, and I'm wondering if the { "data": ... } pattern makes sense or if there's another convention I should be using that makes more sense. | |
https://github.com/Dynalon/JsonConfig | |
https://stackoverflow.com/questions/30042795/building-a-json-configuration-section |
This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
using System.Data.Linq; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace UnitTesting.MyAssembly | |
{ | |
internal class MockTable<T> : ITable<T> where T : class |
This file contains hidden or 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
https://twitter.com/switchology/status/1037814109440565248 |
This file contains hidden or 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
https://cmatskas.com/how-to-update-your-git-credentials-on-windows/ | |
git config --global credential.helper wincred | |
Via PowerShell? |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<RunSettings> | |
<!-- Configurations that affect the Test Framework --> | |
<RunConfiguration> | |
<MaxCpuCount>1</MaxCpuCount> | |
</RunConfiguration> | |
</RunSettings> |
This file contains hidden or 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
//https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.getgroupnames(v=vs.110).aspx | |
This file contains hidden or 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 uptime() { | |
(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime | Format-Table | |
} |
NewerOlder