Skip to content

Instantly share code, notes, and snippets.

View itsgoofer's full-sized avatar
🕶️
Probably coding rn.

Goofer itsgoofer

🕶️
Probably coding rn.
  • GooferVille
  • The Internet
  • 05:29 (UTC +02:00)
  • X @itsgoofer
View GitHub Profile
@itsgoofer
itsgoofer / WSL 2 GNOME Desktop.md
Created January 20, 2023 17:23 — forked from Ta180m/WSL 2 GNOME Desktop.md
Set up a GNOME desktop environment on WSL 2

WSL 2 GNOME Desktop

NOTE: If you want the ultimate Linux desktop experience, I highly recommend installing Linux as your main OS. I no longer use Windows (except in a VM) so I will not be maintaining this guide anymore.

Think Xfce looks dated? Want a conventional Ubuntu experience? This tutorial will guide you through installing Ubuntu's default desktop environment, GNOME.

GNOME is one of the more complex — and that means more difficult to run — desktop environments, so for years people couldn't figure [o

@itsgoofer
itsgoofer / us_states.json
Last active August 29, 2015 14:13
A JSON array of US States with name and abbreviations
[
{
"name": "Alabama",
"abbreviation": "AL"
},
{
"name": "Alaska",
"abbreviation": "AK"
},
{
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
module Jekyll
class Pagination < Generator
# This generator is safe from arbitrary code execution.
safe true
# Generate paginated pages if necessary.
#
# site - The Site.
#
@itsgoofer
itsgoofer / ClockFormats.as
Created April 11, 2011 23:04
The same function written two ways.
//Traditional Way
public function getClockFormat1(milliseconds:Number):String
{
var seconds:Number = milliseconds / 1000;
var m:int = 0;
if (seconds > 0) {
while (seconds > 59) {
m++;
seconds -= 60;
}