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== | |
// @name Tag list | |
// @namespace http://statestreetgang.net/ | |
// @version 1.1 | |
// @description Adds an expandable list containing a link to every question on the current tag page. Useful when you want to open many questions with the same tag at the same time. | |
// @match http://stackoverflow.com/*tag*/* | |
// @match http://meta.stackoverflow.com/*tag*/* | |
// ==/UserScript== | |
function exec(fn) { | |
var script = document.createElement('script'); |
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== | |
// @name Shitty tag eradicator | |
// @namespace http://statestreetgang.net/ | |
// @version 1.0 | |
// @description Quick way to remove the Books tag and delete the question. | |
// @match http://stackoverflow.com/questions/* | |
// ==/UserScript== | |
function exec(fn) { | |
var script = document.createElement('script'); |
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== | |
// @name Remove ignored | |
// @namespace http://statestreetgang.net/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://stackoverflow.com/questions | |
// @copyright 2012+, You | |
// ==/UserScript== | |
function exec(fn) { | |
var script = document.createElement('script'); |
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== | |
// @name Always Be Closing | |
// @namespace http://statestreetgang.net/ | |
// @version 1.2 | |
// @description Adds easy-to-use buttons for closing crap questions. | |
// @match http*://stackoverflow.com/questions/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
var container = document.createElement('div'), resultSpan = document.createElement('span'), post, tries = 0; |
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
1. create a new wpf project called ContentControlDataTemplate | |
2. open MainWindow.xaml | |
3. Remove all text, paste the following | |
<Window x:Class="ContentControlDataTemplate.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:ContentControlDataTemplate" |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HowDoILoops | |
{ | |
class Program | |
{ |
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
class Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
var cts = new CancellationTokenSource(); | |
var task = DoSomeWork(cts.Token); | |
await Task.Delay(2000); | |
cts.Cancel(); | |
await Task.Delay(2000); | |
WriteLine("Yep, we done"); |