Skip to content

Commit

Permalink
fix: use correct field for json title (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamtoshi authored Oct 31, 2023
1 parent ae84952 commit 79ebb98
Show file tree
Hide file tree
Showing 120 changed files with 238 additions and 238 deletions.
4 changes: 2 additions & 2 deletions bin/update-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ find . -type f -path '*chapter*' -name '*.yml' | while read path; do
new_path="$dir/$file.json"

echo "Templating $path to $new_path"
echo "$(cat $path | yq -o json | jq '{ (.screen): {screen: .screen, answers: [.answers[].answer], feedback: [.answers[].feedback], question: .question, text: .text, title: .question} }')" > $new_path
echo "$(cat $path | yq -o json | jq '{ (.screen): {screen: .screen, answers: [.answers[].answer], feedback: [.answers[].feedback], question: .question, text: .text, title: .title} }')" > $new_path

done

Expand Down Expand Up @@ -39,4 +39,4 @@ allchapterfiles=$(find . -type f -name '*-combined.json' | sort)
combinedfile="./combined-output.json"

jq -s add $allchapterfiles > $combinedfile
rm -f $allchapterfiles
rm -f $allchapterfiles
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "So what exactly is Bitcoin",
"text": "Bitcoin is digital money. It can be transferred instantly and securely between any two people in the world — without the need for a bank or any other financial company in the middle.",
"title": "So what exactly is Bitcoin"
"title": "So what exactly is Bitcoin?"
}
}
2 changes: 1 addition & 1 deletion chapter-101-bitcoin-what-is-it/101.02-lesson-sat.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "I just earned a “Sat\". What is that?",
"text": "One “Sat” is the smallest unit of a bitcoin. We all know that one US Dollar can be divided into 100 cents. Similarly, one Bitcoin can be divided into 100,000,000 sats. In fact, you do not need to own one whole bitcoin in order to use it. You can use bitcoin whether you have 20 sats, 3000 sats — or 100,000,000 sats (which you now know is equal to one bitcoin).\n",
"title": "I just earned a “Sat\". What is that?"
"title": "I just earned a “Sat. What is that?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Why does money have value?",
"text": "Money requires people to trust. People trust the paper dollar bills in their pocket. They trust the digits in their online bank account. They trust the balance on a store gift card will be redeemable. Having money allows people to easy trade it immediately for a good, or a service.\n",
"title": "Why does money have value?"
"title": "Money is a social agreement."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Which coincidence does money solve?",
"text": "Centuries ago, before people had money, they would barter -- or haggle over how to trade one unique item, in exchange for another item or service. Let’s say you wanted to have a meal at the local restaurant, and offered the owner a broom. The owner might say “no” -- but I will accept three hats instead, if you happen to have them. You can imagine how difficult and inefficient a “barter economy” would be! By contrast, with money, you can simply present a $20 bill. And you know that the restaurant owner will readily accept it.\n",
"title": "Which coincidence does money solve?"
"title": "Money solves the “coincidence of wants”... What is that??"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What are some items that have been historically used as a unit of money?",
"text": "Thousands of years ago, a society in Micronesia used very large and scarce stones as a form of agreed currency. Starting in the 1500’s, rare Cowrie shells (found in the ocean) became commonly used in many nations as a form of money. And for millennia, gold has been used as a form of money for countries around the world -- including the United States (until 1971).\n",
"title": "What are some items that have been historically used as a unit of money?"
"title": "Money has evolved, since almost the beginning of time."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Why were stones, seashells and gold used as units of money?",
"text": "Well, these items all had some -- but not all -- of the characteristics of good money.\n\n\n\nSo what characteristics make for “good” money?\nScarce: not abundant, nor easy to reproduce or copy\nAccepted: relatively easy for people to verify its authenticity\nDurable: easy to maintain, and does not perish or fall apart\nUniform: readily interchangeable with another item of the same form\nPortable: easy to transport\nDivisible: can be split and shared in smaller pieces\n",
"title": "Why were stones, seashells and gold used as units of money?"
"title": "Why were stones, shells and gold commonly used as money in the past?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What is the primary reason money is important?",
"text": "Everybody knows that money matters.\n\n\nMost people exchange their time and energy -- in the form of work -- to obtain money. People do so, to be able to buy goods and services today -- and in the future.\n",
"title": "What is the primary reason money is important?"
"title": "Money is important to individuals"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Who can legally print US Dollars, anytime they wish?",
"text": "Modern-day economies are organized by nation-states: USA, Japan, Switzerland, Brazil, Norway, China, etc.\n \n Accordingly, in most every nation, the government holds the power to issue and control money.\n\n\n In the United States, the Central Bank (known as the Federal Reserve, or “Fed”) can print, or create, more US Dollars at any time it wants.\n\n\n The “Fed” does not need permission from the President, nor Congress, and certainly not from US citizens.\n\n\n Imagine if you had the ability to print US Dollars anytime you wanted to -- what would you do??\n",
"title": "Who can legally print US Dollars, anytime they wish?"
"title": "Money is also important to governments"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Who creates fiat currencies, such as US Dollars or Swiss Francs?",
"text": "All national currencies in circulation today are called “fiat” money. This includes US Dollars, Japanese Yen, Swiss Francs, and so forth.\n\n\nThe word “fiat” is latin for “by decree” -- which means “by official order”.\n\n\nThis means that all fiat money -- including the US Dollar -- is simply created by the order of the national government.\n",
"title": "Who creates fiat currencies, such as US Dollars or Swiss Francs?"
"title": "Fiat Currency: What is that?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Why should I care about the government controlling fiat money?",
"text": "As shared in a prior quiz, the US Central Bank is the Federal Reserve, or the “Fed”.\n\n\nThe Fed can print more dollars at any time -- and does not need permission from the President, nor Congress, and certainly not from US citizens.\n\n\nHaving control of money can be very tempting for authorities to abuse -- and often time leads to massive inflation, arbitrary confiscation and corruption.\n\n\nIn fact, Alan Greenspan, the famous former chairman of The Fed, famously said the US “can pay any debt that it has, because we can always print more to do that”.\n",
"title": "Why should I care about the government controlling fiat money?"
"title": "I trust my government. Why should I care about fiat money?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What does it mean when the government prints money?",
"text": "Well, everybody should care!\n\n\nThe practice of government printing money -- or increasing the supply of dollars -- leads to inflation.\n\n\nInflation is an increase in the price of goods and services. In other words, the price for something in the future will be more expensive than today.\n\n\nSo what does inflation mean for citizens?\n\n\nIn the United Kingdom, the Pound Sterling has lost 99.5% of its value since being introduced over 300 years ago.\n\n\nIn the United States, the dollar has lost 97% of its value since the end of WWI, about 100 years ago.\n\n\nThis means a steak that cost $0.30 in 1920... was $3 in 1990… and about $15 today, in the year 2020!\n",
"title": "What does it mean when the government prints money?"
"title": "Who should care that the government can print unlimited money?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What happens to the value of all fiat money over time?",
"text": "That is correct.\n\n\nIn the history of the world, there have been 775 fiat currencies created. Most no longer exist, and the average life for any fiat money is only 27 years.\n\n\nThe British Pound is the oldest fiat currency. It has lost more than 99% of its value since 1694.\n\n\nThere is no precedent for any fiat money maintaining its value over time. This is inflation.\nIt is effectively a form of theft of your own hard earned money !\n",
"title": "What happens to the value of all fiat money over time?"
"title": "Does this mean that all fiat money loses value over time?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What are some other issues that exist with fiat money?",
"text": "Yes, there are many other issues that exist with modern fiat money.\n\n\nFirst, it can be extremely difficult to move money around the world. Often, governments will outright restrict the movement -- and sometimes even confiscate money -- without a valid reason or explanation. And even when you can send money, high transaction fees make it very expensive.\n\n\nSecond, even in the US, there has been a complete loss of privacy, as the majority of commerce takes places with debit and credit cards, as well as online with other systems such as PayPal and Apple Pay.\n\n\nEver notice how an ad appears in your social media or Gmail just moments after searching for a certain product or service? This is known as “surveillance capitalism”, and is based on companies selling your personal financial data.\n",
"title": "What are some other issues that exist with fiat money?"
"title": "OK, fiat money loses value over time. Are there other issues?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Is the supply of bitcoin limited forever?",
"text": "Governments can print fiat money in unlimited quantities.\n\n\nBy way of contrast, the supply of Bitcoin is fixed — and can never exceed 21 million coins.\n\n\nA continually increasing supply of fiat money creates inflation. This means that the money you hold today is less valuable in the future.\n\nOne simple example:\nA loaf of bread that cost about 8 cents in 1920. In the year 1990 one loaf cost about $1.00, and today the price is closer to $2.50 !\n\n\nThe limited supply of bitcoin has the opposite effect, one of deflation.\n\n\nThis means that the bitcoin you hold today is designed to be more valuable in the future — because it is scarce.\n",
"title": "Is the supply of bitcoin limited forever?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Is bitcoin centralized?",
"text": "Fiat money is controlled by banks and governments — which is why people refer to it as a “centralized” currency.\n\nBitcoin is not controlled by any person, government or company — which makes it “decentralized”\n\nNot having banks involved means that nobody can deny you access to bitcoin — because of race, gender, income, credit history, geographical location — or any other factor.\n\nAnybody — anywhere in the world — can access and use Bitcoin anytime you want. All you need is a computer or smartphone, and an internet connection. In fact, even a feature phone with no internet can utilize Bitcoin with services like Machankura!\n",
"title": "Is bitcoin centralized?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Can people counterfeit Bitcoin?",
"text": "Paper money, checks and credit card transactions can all be counterfeit, or faked.\n\nThe unique software that runs the Bitcoin network eliminates the possibility of duplicating money for counterfeit purposes.\n\nNew bitcoin can only be issued if there is agreement amongst the participants in the network. People who are voluntarily running bitcoin software on their own computers and smartphones.\n\nThis ensures that it is impossible to counterfeit, or create fake bitcoins.\n",
"title": "Can people counterfeit Bitcoin?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What is the smallest amount of Bitcoin one can own, or use?",
"text": "Old-fashioned fiat money can only be spent in amounts as small as one penny — or two decimal places for one US Dollar ($0.01).\n\nOn the other hand, Bitcoin can be divided 100,000,000 times over. This means that you could spend as little as ₿0.00000001. You will note the \"\"\"\" symbol, which is the Bitcoin equivalent of \"\"$\"\". Sometimes you will also see the use of BTC, instead of ₿.\n\nBy way of contrast, Bitcoin can handle very small payments — even those less than one US penny!\n",
"title": "What is the smallest amount of Bitcoin one can own, or use?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Is the Bitcoin network secure?",
"text": "The bitcoin network is worth well over $100 billion today. Accordingly, the network must be very secure — so that money is never stolen.\n\n\nBitcoin is known as the world’s first cryptocurrency.\n\n\nThe “crypto” part of the name comes from cryptography. Simply put, cryptography protects information through very complex math functions.\n\n\nMost people do not realize — but Bitcoin is actually the most secure computer network in the world !\n\n\n(you may have heard about bitcoin “hacks” — which we will debunk in the next quiz)\n",
"title": "Is the Bitcoin network secure?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Has Bitcoin ever been hacked?",
"text": "To be direct: the bitcoin network itself has never been hacked. Never once.\n\n\n Then what exactly has been hacked?\n\n\n Certain digital wallets that did not have proper security in place.\n\n\n Just like a physical wallet holds fiat currency (in the form of paper bills), digital wallets hold some amount of bitcoin.\n\n\n In the physical world, criminals rob banks — and walk away with US Dollars. The fact that someone robbed a bank does not have any relationship as to whether the US Dollar is stable or reliable money.\n\n\n Similarly, some computer hackers have stolen bitcoin from insecure digital wallets — the online equivalent of a bank robbery.\n\n\n However, it is important to know that the bitcoin network has never been hacked or compromised !\n",
"title": "Has Bitcoin ever been hacked?"
"title": "Special Characteristic"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What is the primary and ultimate evolutionary function of collectibles",
"text": "The earliest human societies engaged in trade through barter, but this method had several limitations. One issue was the \"double coincidence of wants\" problem, where two people needed to desire the same item at the same time in order to complete a trade.\n\nTo overcome this issue, humans began to collect and value certain items for their rarity and symbolic significance, such as shells, animal teeth, and flint.\n\nThese collectibles served as a way for early humans to store and transfer wealth, providing an evolutionary advantage over other species such as Homo neanderthalensis.\n",
"title": "What is the primary and ultimate evolutionary function of collectibles"
"title": "The origins of money"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What was the primary role of collectibles in paleolithic societies",
"text": "Collectibles served as a precursor to money by allowing trade between different groups and facilitating the transfer of wealth between generations. Although they were not used as frequently as modern money in paleolithic societies, collectibles still served as a store of value and could sometimes even facilitate trade.\n\nPrimitive forms of money, such as collectibles, had a low velocity compared to modern currency and might only be transferred a few times during an individual's lifetime. However, durable collectibles that were passed down through generations had substantial value at each transfer and sometimes made trade possible.\n",
"title": "What was the primary role of collectibles in paleolithic societies"
"title": "Primitive forms of money"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What was the main advantage of being able to anticipate future demand for collectible items in early human societies",
"text": "The choice of which items to collect or create posed a significant problem for early humans, as they had to anticipate which objects would be desired by others. The ability to correctly predict which items would be in demand for their collectible value gave a significant advantage to the owner in terms of their ability to trade and accumulate wealth.\n\nSome Native American tribes, such as the Narragansetts, even focused on producing collectibles that had little practical use, but were valuable in trade.\n\nThe earlier a collectible is anticipated to be in future demand, the greater the advantage its possessor has, as it can be obtained at a lower cost before it becomes widely sought after and its trade value increases as the number of people demanding it grows.\n",
"title": "What was the main advantage of being able to anticipate future demand for collectible items in early human societies"
"title": "Anticipating Demand"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "What is a Nash Equilibrium and how does it benefit society",
"text": "Acquiring an item with the expectation that it will be desired as a future store of value can accelerate its adoption for that purpose. This process can create a feedback loop that drives societies towards adopting a single store of value.\n\nIn game theory, this is known as a \"Nash Equilibrium\". Reaching a Nash Equilibrium for a store of value can greatly benefit a society, as it makes trade and the division of labor easier and paves the way for the development of civilization.\n",
"title": "What is a Nash Equilibrium and how does it benefit society"
"title": "The Key to Facilitating Trade"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"question": "Why did merchants and traders in early human societies have an incentive to promote the adoption of a foreign store of value in their own society",
"text": "As human societies and trade routes developed over time, stores of value that emerged in different societies began to compete with each other. Merchants and traders had to decide whether to save their profits in the store of value of their own society or in the store of value of the society they were trading with, or a combination of both.\n\nHolding savings in a foreign store of value gave merchants the ability to complete trade more easily in that society, and also gave them an incentive to promote the adoption of that store of value in their own society, as it would increase the purchasing power of their savings.\n\nWhen two societies adopt the same store of value, they see a significant reduction in the cost of trading with each other and an increase in trade-based wealth. In the 19th century, most of the world converged on a single store of value – gold – and this period saw the greatest increase in trade in history.\n",
"title": "Why did merchants and traders in early human societies have an incentive to promote the adoption of a foreign store of value in their own society"
"title": "The Benefits of Converging on a Single Store of Value"
}
}
Loading

0 comments on commit 79ebb98

Please sign in to comment.