Skip to content

Instantly share code, notes, and snippets.

View exonomyapp's full-sized avatar
💭
Decentralizing Life

Exonomy App exonomyapp

💭
Decentralizing Life
View GitHub Profile
@exonomyapp
exonomyapp / The Haversine formula to calculate the distance between two points.md
Last active February 10, 2025 20:57
The Haversine formula to calculate the distance between two points

The Haversine formula is a mathematical equation used to calculate the great-circle distance between two points on the Earth's surface, given their latitude and longitude in decimal degrees. This is particularly useful for applications like yours, where you need to filter vouchers based on their proximity to a user's location.


Haversine Formula

The Haversine formula calculates the great-circle distance ( d ) between two points on the Earth's surface:

image

@exonomyapp
exonomyapp / DeepSeek Explains How China Uses Vouchers.md
Created February 1, 2025 08:14
DeepSeek Explains How China Uses Vouchers

DeepSeek Explains How China Uses Vouchers

Prompt: How is China using vouchers to offset the shortage of cash in their domestic economy?

R1 reasoning process

Okay, so I need to figure out how China is using vouchers to deal with the cash shortage in their domestic economy. Let me start by recalling what I know about economic policies. Vouchers are like coupons or tickets that people can use to get discounts or specific goods and services. If there's a cash shortage, maybe the government is issuing these vouchers to encourage spending without needing physical cash.

First, why would there be a cash shortage? Maybe due to economic slowdowns, people are holding onto their money instead of spending it. That can lead to lower demand, which isn't good for the economy. So, if the government gives out vouchers, they might be trying to stimulate consumer spending. For example, during the COVID-19 pandemic, many places had lockdowns, which probably hurt businesses. Vouchers could help get people spending

@exonomyapp
exonomyapp / Una Crítica de la Democracia desde Soluciones de IA Competidoras.md
Created January 27, 2025 11:14
Una Crítica de la Democracia desde Soluciones de IA Competidoras

Una Crítica de la Democracia desde Soluciones de IA Competidoras

Una crítica saludable de la democracia proporcionada por las versiones gratuitas de dos soluciones de IA: la china Deepseek y la estadounidense ChatGPT. ¡Dos visiones, dos mundos, pero un solo tema candente! ¿Qué tienen que decir estas inteligencias artificiales sobre uno de los sistemas políticos más discutidos? Vamos a descubrirlo. 🧠💥

Deepseek:

Introducción

@exonomyapp
exonomyapp / Chinese AI Criticism of Democracy.md
Last active January 27, 2025 10:57
Chinese AI (Deepseek) Criticism of Democracy (2 response versions)

Chinese AI (Deepseek) Criticism of Democracy

2 response versions followed by ChatGPT responses to the same prompt. Following the 2 versions, a union of the 2, rather than their intersection, is also provided.


Prompt:

I would like a healthy criticism of Democracy without branding it as a failed system. I would like this criticism to quote critics of Democracy going as far back as possible into recorded history, even to times before Democracy, as a labeled concept, was defined. Quotations need to be provided in the quality and format of academic footnotes. Critics should be from outside of Western Civilization as well as its architects. Keep the results to less than 1200 words and provide an additional 100 word introduction to explain the 1200 word treatment.


Version 1

@exonomyapp
exonomyapp / Data Modeling the Exonomy with IPFS and OrbitDB.md
Last active January 19, 2025 23:27
Data Modeling the Exonomy with IPFS and OrbitDB

Data Modeling the Exonomy with IPFS and OrbitDB

The following guide helps to align the Exonomy app with IPFS and OrbitDB for best practices modeling of both data and process, ensuring robust, decentralized handling of Exonomy’s voucher and chat functionalities while laying the groundwork for future integration with Exocracy and expanded P2P features:

Step 1: Introducing the Combined Concept of IPFS and OrbitDB

In a decentralized application, IPFS and OrbitDB complement each other by addressing different aspects of data storage and management:

Role of IPFS: Immutable Storage for Voucher Assets

IPFS is responsible for storing the actual content of the voucher system. Each file (e.g., metadata, images, videos) is chunked, hashed, and assigned a Content Identifier (CID). These CIDs represent immutable, content-addressed storage, ensuring data integrity. However, IPFS alone does not manage the logical structure or relationships between assets, making it unsuitable for complex qu

@exonomyapp
exonomyapp / Voucher-Stripe Integration.md
Created January 10, 2025 20:22
Functional Specification For Voucher - Stripe Integration

Functional Specification for Exonomy Voucher Payment and Redemption Feature

Overview

This feature enables Exonomists to use vouchers for payments, handle optional cash redemptions, and persist transaction and voucher data using IPFS/OrbitDB for replication and offline functionality. The app will integrate with Stripe for payments, webhook handling, and custom receipts, while leveraging Nuxt3, TypeScript, Ionic for UI, and Capacitor for cross-platform deployment.


Feature Details

Voucher Management

@exonomyapp
exonomyapp / Setting up Exonomy repo.md
Last active January 9, 2025 21:30
Step-by-Step instructions for setting up Exonomy repo

Exonomy App Installation Guide

This guide provides step-by-step instructions for creating and setting up the Exonomy App repository as described in the functional specification.

Step 1: Initialize a Git Repository

  1. Create a new folder for the project:
    mkdir exonomy-app
    cd exonomy-app
@exonomyapp
exonomyapp / Functional Specification for the Exonomy App.md
Last active January 9, 2025 13:16
Functional Specification for the Exonomy App

Functional Specification for the Exonomy App

1. Introduction

  • Purpose: Exonomy aims to establish a decentralized platform for voucher-based transactions, fostering trust and economic resilience in financially constrained environments.
  • Scope: Peer-to-peer voucher creation, exchange, and redemption, integrating triadic health metrics inspired by Ayurveda (Vata, Pitta, Kapha), and initially internal - but eventually external - support for project management via the Exocracy application. Prior to introducing Exocracy.com as a server-based extenstion of the Exonomy app - expanding its onboard Exocracy module - it will be designed to function fully without any dependency on servers, including even network communication infrastructure servers such as NAT traversal (referring, for example, to STUN, TURN, and ICE technologies). Until a critical mass of nodes is achieved, Exonomy will maintain and operate a basic IPFS/OrbitDB node hosted for full time availability with the hopes that eventually t
@exonomyapp
exonomyapp / Where Is The Exonomy.md
Last active January 10, 2025 13:10
Where Is The Exonomy?

Where Is The Exonomy?

One of the more elusive concepts of the Exonomy is its location. How can we understand the essence of Exonomy's location when it operates absolutely without traditional servers and relies almost entirely on mobile phones, tables, and notebooks to locate its content and its operations? The following elaboration attempts to demystify both the topology and the mechanisms of the Exonomy

The Nature of Decentralization Based on IPFS

Each peer in our app manages a local IPFS node optimized for mobile devices, seamlessly integrating with Exonomy's decentralized architecture and communication. Locally generated data remains historically intact and is found using its content, not by an address that depends on its literal location, ensuring integrity and privacy. Nodes retrieve non-local data by querying peers via P2P pub-sub agreements, eliminating central server reliance, enhancing device independence, efficiency, and security while maintaining full decentralization.

  • Each peer in the
@exonomyapp
exonomyapp / Setting up NativeScript for Android.md
Created December 25, 2024 11:43
Setting up NativeScript for Android

Configuring a NativeScript + Vue app for Android involves several steps to ensure the app is ready for development, testing, and final deployment. Here's a detailed guide:


1. Install Prerequisites

  • Ensure you have the following installed on your system:
    • Node.js (v14 or later)
    • NativeScript CLI:

npm install -g @nativescript/cli