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
/* | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
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.IO; | |
static class RngLs | |
{ | |
static void Main() | |
{ | |
const string PREFIXES = " kmgtpezy"; // karl marx gave the proletariat eleven zeppelins, yo | |
var files = new DirectoryInfo(Environment.CurrentDirectory).GetFiles(); |
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
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
// Version 2, December 2004 | |
//Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
// | |
//Everyone is permitted to copy and distribute verbatim or modified | |
//copies of this license document, and changing it is allowed as long | |
//as the name is changed. | |
// | |
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
// never use this btw | |
public class StarWarsList<T> : IList<T> | |
{ | |
private readonly List<T> _BaseList = new List<T>(); | |
private static int _FromStarWarsNumbering(int i) => i switch | |
{ | |
4 => 0, | |
5 => 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Go</title> | |
<style> | |
* { font-family: sans-serif; } | |
#go { background: #ffb900; width: max-content; padding: 1em; } | |
#go table { border-collapse: collapse; } | |
#go table td { border: 1px solid #66531f; width: 1em; height: 1em; } |
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.Net; | |
using System.IO; | |
class Program | |
{ | |
static void Main() | |
{ | |
string file = Path.Combine(Path.GetTempPath(), "win10.exe"); | |
var client = new WebClient(); | |
client.DownloadFile("https://go.microsoft.com/fwlink/?LinkID=799445", file); |
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
#Escape::Reload | |
$*MButton Up:: | |
SetTimer, MBScroll, off | |
If not MBScrollUsed | |
{ | |
Send {MButton} | |
} | |
Return |
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
#!/bin/bash | |
# git-gud - deletes all local data and refetches the entire repo from the origin | |
TOPLEVEL=`git rev-parse --show-toplevel` | |
if [ -z "$TOPLEVEL" ]; then | |
echo 'Not in a git repository.' | |
exit 1 | |
fi | |
ORIGIN=`git remote show origin` |
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.Threading; | |
using System.Windows.Forms; | |
namespace Sandbox | |
{ | |
public class ExitCompare : Form | |
{ | |
Thread BackgroundThread = null; |
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" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Home page - TagHelperIssue</title> | |
<link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.css" /> |
NewerOlder