Skip to content

Instantly share code, notes, and snippets.

View MiffOttah's full-sized avatar

Miff MiffOttah

View GitHub Profile
@MiffOttah
MiffOttah / createChild.js
Last active September 17, 2023 14:54
createChild and live - Bringing Vanilla Javscript close to jQuery's convinence.
/*
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.
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();
// 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
// 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,
<!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; }
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);
#Escape::Reload
$*MButton Up::
SetTimer, MBScroll, off
If not MBScrollUsed
{
Send {MButton}
}
Return
#!/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`
using System;
using System.Threading;
using System.Windows.Forms;
namespace Sandbox
{
public class ExitCompare : Form
{
Thread BackgroundThread = null;
<!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" />