Skip to content

Instantly share code, notes, and snippets.

View loftwah's full-sized avatar
💭
“Any sufficiently advanced technology is equivalent to magic.”

Dean Lofts loftwah

💭
“Any sufficiently advanced technology is equivalent to magic.”
  • Melbourne, Australia
View GitHub Profile
@raghavmri
raghavmri / main.py
Created December 5, 2021 09:00
youtube_downloader_python
# importing the module
from pytube import YouTube, Playlist
from pathlib import Path
import os
# Global variables
file_size = 0
def main():
@tshemsedinov
tshemsedinov / notOptimal.js
Last active December 8, 2021 08:59
Bad code example for students
'use strict';
let movePoints = (offset, points) => {
points.forEach((point) => {
const type = typeof point;
if (type === 'object') {
point.x += offset.x;
point.y += offset.y;
} else {
let i = points.indexOf(point);
@wangvnn
wangvnn / tools-engineer-checklist.md
Created November 29, 2021 05:54 — forked from gorlak/tools-engineer-checklist.md
Tools Engineer Checklist

This list is provided as a guide for tools engineers of all skill levels looking for jobs in the game industry. It's meant as a guide to topics that should be pursued broadly in order to be well spoken in an interview. I doubt any hiring manager requires deep knowedge across every topic, but an ideal candidate would be somewhat knowledgable (aware of its existence if asked directly) with all topics here.

Each list of bullets increases in difficulty, so later bullets are more applicable to senior (or even director) level candidates.

Good luck.

@gorlak

Math

@motorailgun
motorailgun / idea.md
Last active January 4, 2026 11:46
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@joepie91
joepie91 / no-your-cryptocurrency-cannot-work.md
Last active June 1, 2025 21:56
No, your cryptocurrency cannot work

No, your cryptocurrency cannot work

Whenever the topic of Bitcoin's energy usage comes up, there's always a flood of hastily-constructed comments by people claiming that their favourite cryptocurrency isn't like Bitcoin, that their favourite cryptocurrency is energy-efficient and scalable and whatnot.

They're wrong, and are quite possibly trying to scam you. Let's look at why.

What is a cryptocurrency anyway?

There are plenty of intricate and complex articles trying to convince you that cryptocurrencies are the future. They usually heavily use jargon and vague terms, make vague promises, and generally give you a sense that there must be something there, but you always come away from them more confused than you were before.

import 'dart:io';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:firebase_storage/firebase_storage.dart' as firebase_storage;
import 'package:path/path.dart';
import 'package:path_provider/path_provider.dart';
class FileUpload extends StatefulWidget {
FileUpload({Key? key}) : super(key: key);
@hanskw4267
hanskw4267 / realtek_rtl8812bu_setup.sh
Last active January 18, 2022 08:41
Wifi adapter - REALTEK RTL8812BU setup
#! /usr/bin/env bash
echo "-------------------------------------------------"
echo "<-- REALTEK RTL8812BU Driver setup - Hans -->"
echo "-------------------------------------------------"
echo " <-- Update and install pkgs --> "
sudo apt-get update
sudo apt-get install -y dkms git build-essential
@vagnercardosoweb
vagnercardosoweb / https-request.ts
Last active October 17, 2021 06:26
request https default node
import https, { RequestOptions } from 'https';
export interface HttpRequest extends RequestOptions {
url: string;
body?: string;
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS';
}
interface Response<T = Buffer | any> {
body: T;
@merlinmann
merlinmann / wisdom.md
Last active November 14, 2025 03:16
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

@patrbraun
patrbraun / Regex-Tutorial.md
Last active July 8, 2021 04:21
Describing matching an Email regex expression: `/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/`

Regex-Tutorial

Introductory paragraph (replace this with your text)

Summary

Matching an Email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/

Table of Contents