Registry edit that allows you to add Windows command-line, Powershell and/or GIT Bash to explorer context menu. source
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
private static Task LoadPageAsync(IWebBrowser browser) { | |
var tcs = new TaskCompletionSource<bool>(); | |
void Handler(object sender, LoadingStateChangedEventArgs args) { | |
if (args.IsLoading) return; | |
browser.LoadingStateChanged -= Handler; | |
tcs.TrySetResult(true); | |
} | |
browser.LoadingStateChanged += Handler; |
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 ReCodEx Task Markdown to Clipboard | |
// @description Adds a button to ReCodEx tasks, which allows you to copy the task markdown to clipboard | |
// @namespace http://sorashi.github.io/ | |
// @version 0.1 | |
// @author sorashi | |
// @include https://recodex.mff.cuni.cz/app/assignment/* | |
// @updateURL https://gist.github.com/sorashi/3c133f743f24459bc6cf0a121b7113ef/raw | |
// @downloadURL https://gist.github.com/sorashi/3c133f743f24459bc6cf0a121b7113ef/raw | |
// @require https://unpkg.com/turndown/dist/turndown.js |
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
都道府県 | English name | katakana | romaji | |
---|---|---|---|---|
北海道 | Hokkaido | スンマセン | sunmasen | |
青森県 | Aomori | ブジョホヘンシタ | bujohohenshita | |
岩手県 | Iwate | オモサゲナガンス | omosagenagansu | |
宮城県 | Miyagi | ゴメンナー | gomennā | |
秋田県 | Akita | シカダネァ | shikadanæ | |
山形県 | Yamagata | ワレガッタナス | waregattanasu | |
福島県 | Fukushima | ボットナー | bottonā | |
茨城県 | Ibaraki | スンマセン | sunmasen | |
栃木県 | Tochigi | イヤーワリーネー | iyāwarīnē |
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
@echo off | |
cd C:\Windows\Microsoft.NET\Framework | |
for /d %%D in (*) do echo %%~fD | |
PAUSE |
{
"embeds": [
{
"title": "Build {{buildId}}",
"url": "{{buildUrl}}",
"color": {{#passed}}40973{{/passed}}{{^passed}}11672839{{/passed}},
"footer": {
"icon_url": "{{#passed}}https://i.imgur.com/Rf4g8v6.png{{/passed}}{{^passed}}https://i.imgur.com/QaERwAW.png{{/passed}}",
"text": "{{#passed}}Success{{/passed}}{{^passed}}Failure{{/passed}}"
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
000000|Black | |
000080|Navy Blue | |
0000C8|Dark Blue | |
0000FF|Blue | |
000741|Stratos | |
001B1C|Swamp | |
002387|Resolution Blue | |
002900|Deep Fir | |
002E20|Burnham | |
002FA7|International Klein Blue |
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
#r "System.Numerics" | |
using System; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Numerics; | |
using System.IO; | |
using System.Diagnostics; | |
/* |
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
public static bool IsPrime(int candidate) { | |
if ((candidate & 1) == 0) | |
return candidate == 2; | |
for (int i = 3; (i * i) <= candidate; i += 2) | |
if ((candidate % i) == 0) | |
return false; | |
return candidate != 1; | |
} |
NewerOlder