Skip to content

Instantly share code, notes, and snippets.

@gubatron
gubatron / A National Singularity Fund for High Universal Income: Redefining Work, Empowering Passions, and Embracing a Post-Labor Future.md
Last active January 21, 2025 02:29
A National Singularity Fund for High Universal Income: Redefining Work, Empowering Passions, and Embracing a Post-Labor Future

A National Singularity Fund for High Universal Income:

Redefining Work, Empowering Passions and Embracing a Post Labor Future

Introduction

As Artificial General Intelligence (AGI) surpasses human-level cognition and super-dexterous robots automate vast swaths of manual and knowledge-intensive work, billions of people risk losing their traditional jobs. This scenario is often painted in stark terms—one of displacement, unemployment, and fear. Yet, a deeper truth lies in the fact that a future of abundant automation can liberate society from rote or uninspiring labor, allowing individuals to pursue creativity, innovation, personal growth, and genuine passions.

To prevent social unrest and ensure equitable benefits, we propose a National Singularity Fund (NSF). The NSF collects and manages revenue from automation taxes, equity grants, and targeted investments in exponential technologies (AGI, quantum computing, fusion energy). By distributing High Universal Income (HUI) to

@WolfgangSenff
WolfgangSenff / gist:168cb0cbd486c8c9cd507f232165b976
Last active February 15, 2025 13:44
Godot 4.0 Migration/Upgrade guide
## For a beginner-friendly version of the following (more advanced users likely will get better use of the below,
## if you're just starting out...), see this new gist:
## https://gist.github.com/WolfgangSenff/0a9c1d800db42a9a9441b2d0288ed0fd
This document represents the beginning of an upgrade or migration document for GDScript 2.0 and Godot 4.0. I'm focusing on 2D
at the moment as I'm upgrading a 2D game, but will hopefully have more to add for 3D afterward.
## If you want more content like this, please help fund my cat's medical bills at https://ko-fi.com/kyleszklenski - thank you very much! On to the migration guide.
@willnationsdev
willnationsdev / LootTable.gd
Last active September 5, 2020 15:57
Have a LootTable resource that exports an Array of LootElement script instances
tool
class_name LootTable
extends Resource
export var _element_type: Script = null setget set_element_type
export var data := [] setget set_data
func set_data(p_value: Array) -> void:
# Validate element types.
# Only necessary because Godot doesn't yet have typed Arrays
# or exportable user-defined Resource types. Hopefully coming for 4.0.
for i in len(p_value):

1 - Install imagemagick

  • Mac: brew install imagemagick
  • Ubuntu Linux: Follow this guide
  • If you are on windows, these instructions should work on WSL (windows subsystem for linux)

Updated Script

1- Save the following script as split-icons.sh

@FFouetil
FFouetil / EnumFlagAttribute.cs
Last active February 10, 2021 02:16 — forked from ChemiKhazi/EnumFlagAttribute.cs
Unity3d property drawer for automatically making enums flags into mask fields in the inspector.
using UnityEngine;
public class EnumFlagAttribute : PropertyAttribute
{
public string enumName;
public EnumFlagAttribute() {}
public EnumFlagAttribute(string name)
{
@jchandra74
jchandra74 / PowerShell Customization.md
Last active January 8, 2025 09:35
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@attacus
attacus / riot-matrix-workshop.md
Last active April 8, 2025 08:18
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

@rakkarage
rakkarage / cloudSettings
Last active December 2, 2019 22:50
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-12-02T22:50:44.036Z","extensionVersion":"v3.4.3"}

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@randomchance
randomchance / prompt.ps1
Last active April 6, 2020 08:03 — forked from kadet1090/prompt.ps1
PowerLine like prompt for PowerShell
$script:bg = [Console]::BackgroundColor;
$script:first = $true;
$script:last = 0;
Import-Module Posh-Git
$BranchBehindAndAheadStatusForegroundColor = [System.ConsoleColor]::Magenta
$BranchBehindStatusForegroundColor = [System.ConsoleColor]::Yellow
$BranchAheadStatusForegroundColor = [System.ConsoleColor]::Green
$BranchIdenticalStatusToForegroundColor = [System.ConsoleColor]::White
$workingAdded = '+'