Instantly share code, notes, and snippets.

🤓

# Lewis CowlesLewiscowles1986

🤓
• Sort options
Last active Aug 29, 2015
View gist.md

Problem #1

God algorithms, God solutions etc, God methods etc often add unnesecarry complexity with very little benefit. There is no God, get over that...

Shipow: Even if I don't support religions, I'm pretty ok with the idea of an omnipotent mind as it stay in the context of narration. And I guess that even someone very trustfull will never imagine God as web/app designer ;)

Problem #2

Created Dec 27, 2016 — forked from joshenders/usbloadergx_hdd.md
How to format a USB drive for storing GameCube games

### Why do we change the cluster size when formatting USB drives for storing GameCube games?

For loading GC Games with USBLoaderGX via DiosMios/Nintendont, format your usb drive's primary partition as FAT32 with 32KB clusters (also known as blocks). This increases performance by reducing the NUMBER of transactions required to perform a read/write operation at the expense of the (very negligible) LENGTH of time to complete a transaction; since it's reading more data per transaction.

I'm not certain, since I can't find a GameCube disk specification, but I don't think the 32KB cluster size is an attempt to imitate the on-disk storage format of retail GameCube discs; which may or may not be 32KB. Retail Wii discs however, actually DO use 32KB clusters. As far as I can tell, 32KB is simply the highest density of bytes per cluster that is supported by FAT32 and of course, by extension, Wii homebrew storage libraries.

If you're concerned about storage efficiency

Created Aug 26, 2018 — forked from vipickering/closestNumberArray.js
Javascript: Find The Closest Number In Array To A Specific Value
View closestNumberArray.js
 var array = []; function closest(array,num){ var i=0; var minDiff=1000; var ans; for(i in array){ var m=Math.abs(num-array[i]); if(m
You can’t perform that action at this time.