9 | A share of {{symbolValues.name}} ({{symbolValues.symbol}}) costs {{symbolValues.price | usd}} 10 |
11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /resumos/cursos/cs50/all-challenges/problems/movies/11.sql: -------------------------------------------------------------------------------- 1 | SELECT title 2 | FROM movies AS movies 3 | JOIN ratings AS ratings ON ratings.movie_id = movies.id 4 | JOIN stars AS stars ON stars.movie_id = movies.id 5 | JOIN people AS people ON people.id = stars.person_id 6 | WHERE people.name = "Chadwick Boseman" 7 | ORDER BY ratings.rating DESC 8 | LIMIT 5; -------------------------------------------------------------------------------- /resumos/akita-videos/o-que-vem-depois-do-hello-world.md: -------------------------------------------------------------------------------- 1 | # O que vem DEPOIS do Hello World | Consertando meu C 2 | 3 | [Video](https://www.youtube.com/watch?v=YyWMN_0g3BQ) 4 | 5 | > Cuidado com copy e paste de código 6 | 7 | 8 | ## Estudar sobre 9 | - Swift arc 10 | - Rust 11 | - Estatistica básica (curva gaussiana...) 12 | 13 | ## Links 14 | -------------------------------------------------------------------------------- /resumos/cursos/cs50/all-challenges/problems/movies/13.sql: -------------------------------------------------------------------------------- 1 | SELECT name 2 | FROM people AS people 3 | JOIN stars AS stars ON people.id = stars.person_id 4 | WHERE stars.movie_id IN 5 | ( 6 | SELECT stars.movie_id 7 | FROM stars 8 | INNER JOIN people ON stars.person_id = people.id 9 | WHERE name = "Kevin Bacon" 10 | AND birth = 1958 11 | ) 12 | AND name != "Kevin Bacon"; -------------------------------------------------------------------------------- /resumos/cursos/cs50/all-challenges/problems/finance/templates/apology.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | 3 | {% block title %} 4 | Apology 5 | {% endblock %} 6 | 7 | {% block main %} 8 |
9 | {% endblock %}
10 |
--------------------------------------------------------------------------------
/resumos/akita-videos/introducao-a-videogames-e-emuladores.md:
--------------------------------------------------------------------------------
1 | # Introdução a Videogames e Emuladores
2 |
3 | [Video](https://www.youtube.com/watch?v=vUqLLpUJ47s)
4 |
5 | ## Assistir:
6 |
7 | - [Modern Vintage Gamer](https://www.youtube.com/user/jimako123)
8 | - [Coding Secrets](https://www.youtube.com/channel/UCkY047vYjF92-8HcoVTXAOg)
9 | - [Retro Game Mechanics Explained](https://www.youtube.com/channel/UCwRqWnW5ZkVaP_lZF7caZ-g)
10 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/homepage/scripts.js:
--------------------------------------------------------------------------------
1 | async function getBtcPrice(){
2 | const card = document.getElementById("card-btc")
3 | const currentPrice = await fetch("https://api.gdax.com/products/BTC-USD/book").then(response => response.json())
4 | card.innerHTML = "1BTC = " + currentPrice.bids[0][0]
5 | }
6 |
7 | document.addEventListener("DOMContentLoaded", function(event) {
8 | getBtcPrice();
9 | });
10 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/movies/12.sql:
--------------------------------------------------------------------------------
1 | SELECT title
2 | FROM movies AS movies
3 | JOIN stars AS stars ON stars.movie_id = movies.id
4 | JOIN people AS people ON stars.person_id = people.id
5 | WHERE people.name = "Johnny Depp"
6 |
7 | INTERSECT
8 |
9 | SELECT title
10 | FROM movies AS movies
11 | JOIN stars AS stars ON stars.movie_id = movies.id
12 | JOIN people AS people ON stars.person_id = people.id
13 | WHERE people.name = "Helena Bonham Carter";
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/quote.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | Quote
5 | {% endblock %}
6 |
7 | {% block main %}
8 |
14 | {% endblock %}
15 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/sentimental/mario-more.py:
--------------------------------------------------------------------------------
1 | from cs50 import get_int
2 | from sys import exit
3 |
4 | height = get_int("Height: ")
5 |
6 | while height < 1 or height > 8:
7 | height = get_int("Height: ")
8 |
9 | for line in range(1, height + 1):
10 |
11 | for spaces in range(height - line):
12 | print(" ", end="")
13 |
14 | print(f"{line * '#'}", end="")
15 |
16 | for gap in range(2):
17 | print(" ", end="")
18 |
19 | print(f"{line * '#'}", end="\n")
--------------------------------------------------------------------------------
/resumos/cursos/cs50/final.md:
--------------------------------------------------------------------------------
1 | # Final Project Readme
2 |
3 | - Extension to see cryptocurrencies on browser
4 |
5 | What will your software do?
6 | Provided a real time data from choosen cryptos inside browser extensions.
7 |
8 | What features will it have?
9 | - Save prefered cryptos
10 | - Order cryptos
11 | - See real time values and market
12 | - Find exchanges
13 |
14 | How will it be executed?
15 | - Creating extension for browser
16 | - Collect data from https://www.coingecko.com/en/api
17 | - Saved data into a custom python server
18 |
--------------------------------------------------------------------------------
/resumos/akita-videos/entendendo-git.md:
--------------------------------------------------------------------------------
1 | # Entendendo GIT
2 |
3 | [Video](https://www.youtube.com/watch?v=6Czd1Yetaac)
4 |
5 | ## Desenvolvedores citados:
6 |
7 | - Junio Hamano
8 | - Linus Torvalds
9 | - Alan Cox
10 | - Andrew Morton
11 | - Eugene Roschal
12 | - Igor Pavlov
13 | - Phil Katz
14 |
15 | ## Video e materiais:
16 |
17 | - [Tech Talk Linus Git](https://www.youtube.com/watch?v=4XpnKHJAok8)
18 | - [Post Git Akita](https://www.akitaonrails.com/git)
19 |
20 | ## Estudar:
21 |
22 | - Algoritmo LCS
23 | - Algoritmo de Huffman
24 | - [Pro Git, Livro Oficial](https://git-scm.com/book/pt-br/v2)
25 | - CHMOD
26 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/login.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | Log In
5 | {% endblock %}
6 |
7 | {% block main %}
8 |
17 | {% endblock %}
18 |
--------------------------------------------------------------------------------
/resumos/akita-videos/covid-matou-minha-startup.md:
--------------------------------------------------------------------------------
1 | # A COVID-19 matou minha Startup?
2 |
3 | [Video](https://www.youtube.com/watch?v=Y8SaMX30X1g)
4 |
5 | > Nada será como era antes da pandemia
6 |
7 | > Se um sistema depende do programador original para funcionar ele está mal feito. Rotacione programadores.
8 |
9 | > Não faça a solução mais complicada no dia 1. Faça o essencial, com certeza se o negócio der certo mudará muita coisa.
10 |
11 | ## Estudar sobre
12 |
13 | Quantitative easing (QE)
14 | Entendendo criptografia
15 | Consenso Bizantino
16 |
17 | ## Links
18 |
19 | [But how does bitcoin actually work?](https://www.youtube.com/watch?v=bBC-nXj3Ng4) - :heavy_check_mark:
20 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/buy.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | Quote
5 | {% endblock %}
6 |
7 | {% block main %}
8 |
17 | {% endblock %}
18 |
--------------------------------------------------------------------------------
/resumos/akita-videos/aprendendo-sobre-computadores-com-mario-hardcore.md:
--------------------------------------------------------------------------------
1 | # Aprendendo sobre Computadores com Super Mario (do jeito Hardcore++)
2 |
3 | [Video](https://www.youtube.com/watch?v=hYJ3dvHjeOE)
4 |
5 | > Você sabe que um programador é bom quando programa em ambientes limitados e precisa extrair o máximo do hardware.
6 |
7 | Normalmete soluções e algoritmos universais não são bons para todos os casos. Você precisa analisar seu caso e ver o que comporta.
8 |
9 | Algoritmos costumam ser um balanço de dois fatores: se quiser economizar memória vai gastar mais ciclos de processamento - se quiser velocidade economizando ciclos provavelmente via gastar mais memória.
10 |
11 | ## Estudar sobre
12 |
13 | - Lookup table (cache)
14 |
15 | ## Links
16 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/final-project/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Cryfo",
3 | "description": "Keep an eye on your favorite cryptocurrencies!",
4 | "version": "1.0",
5 | "manifest_version": 3,
6 | "options_ui": {
7 | "page": "options.html",
8 | "open_in_tab": false
9 | },
10 | "permissions": ["storage"],
11 | "action": {
12 | "default_popup": "popup.html",
13 | "default_icon": {
14 | "16": "/images/cryfo16.png",
15 | "32": "/images/cryfo32.png",
16 | "48": "/images/cryfo48.png",
17 | "128": "/images/cryfo128.png"
18 | }
19 | },
20 | "icons": {
21 | "16": "/images/cryfo16.png",
22 | "32": "/images/cryfo32.png",
23 | "48": "/images/cryfo48.png",
24 | "128": "/images/cryfo128.png"
25 | }
26 | }
--------------------------------------------------------------------------------
/resumos/akita-videos/hello-world-como-nunca-entendendo-c.md:
--------------------------------------------------------------------------------
1 | # Hello World Como Você Nunca Viu! | Entendendo C
2 |
3 | [Video](https://www.youtube.com/watch?v=Gp2m8ZuXoPg)
4 |
5 | Tudo em computação tem um custo, e toda troca terá seu prejuizo
6 |
7 | Cuidado com valores de precisão de base 2 em contas com float number
8 |
9 | Tuple não é a mesma coisa que array
10 |
11 | O código é feito para outros programadores entenderem, o binário não se importa com nomes
12 |
13 | ## Estudar sobre
14 | - Inteiros e negativos em bytes
15 | - Teoria Two's Complement
16 | - Booth's Multiplication Algorithm
17 | - Tipo Number no Javascript sempre converter para float
18 | - Números complexos e grandes em computação
19 | - Stack LIFO-FIFO
20 | - Queue
21 | - Tail Recursion
22 | - Protobuf
23 | - Programação Funcional
24 |
25 | ## Links
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/register.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | Register
5 | {% endblock %}
6 |
7 | {% block main %}
8 |
20 | {% endblock %}
21 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/lecture10.md:
--------------------------------------------------------------------------------
1 | # Ethic - Final
2 |
3 | Some frustrations never goes away, be comfortable with this
4 |
5 | Computer Science is hard
6 |
7 | Be comfortable with google search
8 |
9 | Computational Thinking:
10 | input problems -> ***** -> Output solutions
11 |
12 | Always take a look into correctness, design and style of your solution
13 |
14 | You work with abstraction of ideas and precision
15 |
16 | Be ethic and choose well when developing
17 |
18 | Democracy society:
19 | - Rights
20 | - Opportunity of expression
21 | - Access
22 | - Diversity
23 | - Comunicative power
24 |
25 | Ask questions better
26 |
27 | The main of course is to you figure out how to do things by your own
28 |
29 | - Admitly frustration, and keep going
30 | - Read Documentation
31 | - Teach your own new languages
32 |
33 |
--------------------------------------------------------------------------------
/resumos/akita-videos/arvores-o-comeco-de-tudo.md:
--------------------------------------------------------------------------------
1 | # Árvores: O Começo de TUDO | Estruturas de Dados e Algoritmos
2 |
3 | [Video](https://www.youtube.com/watch?v=9GdesxWtOgs)
4 |
5 | > Cometer erros faz parte do processo
6 |
7 | Arvóres podem ter várias aplicações mas se resumem ao conceito de criar uma lista eficiente para atender um propósito, seja inserções mais rápidas, buscas mais eficientes, equilibrio de arvore, organização de dados...
8 |
9 | É uma das várias estruturas de dados e como todas elas possui casos de utilização, o ideal é entender sua vantagens e desvantagens em cada tipo de aplicação para analisar se deve ou não utilizar.
10 |
11 | Existem diversos algoritmos para implementação de árvores cada um com seu propósito.
12 |
13 | Estudar:
14 | - Números pseudo aleatórios
15 | - red black tree
16 | - b-tree
17 | - avl
18 | - try color marking
19 | - Cormen
20 | - Tanenbaum
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/sell.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | Sell
5 | {% endblock %}
6 |
7 | {% block main %}
8 |
22 | {% endblock %}
23 |
--------------------------------------------------------------------------------
/resumos/cursos/cs50/all-challenges/problems/finance/templates/history.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}
4 | CS50
5 | {% endblock %}
6 |
7 | {% block main %}
8 | | Symbol | 12 |Type | 13 |Shares | 14 |Price | 15 |Transacted | 16 |
|---|---|---|---|---|
| {{transaction.stock}} | 22 |{{transaction.operation}} | 23 |{{transaction.shares}} | 24 |{{transaction.price | usd}} | 25 |{{transaction.datetime}} | 26 |
| Symbol | 12 |Name | 13 |Shares | 14 |Price | 15 |Total | 16 |
|---|---|---|---|---|
| {{stock.stock}} | 22 |{{stock.name}} | 23 |{{stock.shares}} | 24 |{{stock.actualPrice | usd}} | 25 |{{(stock.actualPrice * stock.shares) | usd}} | 26 |
| CASH | 30 |31 | | 32 | | 33 | | {{actualCash | usd}} | 34 |
| 39 | | {{(actualCash) | usd}} | 40 ||||
| USDT Market | 39 |Price | 40 |Change (24h) | 41 | 42 |
|---|
| Name | 33 |Birthday | 34 |
|---|---|
| {{birthday.name}} | 41 |{{birthday.month}}/{{birthday.day}} | 42 |
54 | Bitcoin is a digital currency that was created in January 2009. It follows the ideas set out in a whitepaper by the mysterious and pseudonymous Satoshi Nakamoto 55 |
56 |80 | Buy Bitcoin by transferring money from your bank account to a Bitcoin vendor. 81 |
82 |88 | Don’t want to leave the house? You can use a number of popular payment apps. 89 |
90 |96 | Have a gift card you don't need? Trade it here for Bitcoin instantly. 97 |
98 |108 | Become a vendor on BTCS50 and empower millions around the world with financial freedom. Offer multiple payment methods that buyers like, eliminate middlemen, and we will help you with all the resources and guidance needed to succeed. 109 |
110 | 111 |A purely peer-to-peer version of electronic cash would allow onlinepayments to be sent directly from one party to another without going through afinancial institution.
54 |67 | Commerce on the Internet has come to rely almost exclusively on financial institutions serving astrusted third parties to process electronic payments. While the system works well enough formost transactions, it still suffers from the inherent weaknesses of the trust based model.Completely non-reversible transactions are not really possible, since financial institutions cannotavoid mediating disputes. The cost of mediation increases transaction costs, limiting theminimum practical transaction size and cutting off the possibility for small casual transactions,and there is a broader cost in the loss of ability to make non-reversible payments for non-reversible services. With the possibility of reversal, the need for trust spreads. Merchants mustbe wary of their customers, hassling them for more information than they would otherwise need.A certain percentage of fraud is accepted as unavoidable. 68 |
69 |70 | These costs and payment uncertaintiescan be avoided in person by using physical currency, but no mechanism exists to make paymentsover a communications channel without a trusted party.What is needed is an electronic payment system based on cryptographic proof instead of trust,allowing any two willing parties to transact directly with each other without the need for a trustedthird party. Transactions that are computationally impractical to reverse would protect sellersfrom fraud, and routine escrow mechanisms could easily be implemented to protect buyers. Inthis paper, we propose a solution to the double-spending problem using a peer-to-peer distributedtimestamp server to generate computational proof of the chronological order of transactions. 71 |
72 |73 | The system is secure as long as honest nodes collectively control more CPU power than anycooperating group of attacker nodes.1 2.TransactionsWe define an electronic coin as a chain of digital signatures. Each owner transfers the coin to thenext by digitally signing a hash of the previous transaction and the public key of the next ownerand adding these to the end of the coin. A payee can verify the signatures to verify the chain ofownership.The problem of course is the payee can't verify that one of the owners did not double-spendthe coin. 74 |
75 |76 | A common solution is to introduce a trusted central authority, or mint, that checks everytransaction for double spending. After each transaction, the coin must be returned to the mint toissue a new coin, and only coins issued directly from the mint are trusted not to be double-spent.The problem with this solution is that the fate of the entire money system depends on thecompany running the mint, with every transaction having to go through them, just like a bank. 77 |
78 |79 | We need a way for the payee to know that the previous owners did not sign any earliertransactions. For our purposes, the earliest transaction is the one that counts, so we don't careabout later attempts to double-spend. The only way to confirm the absence of a transaction is tobe aware of all transactions. In the mint based model, the mint was aware of all transactions anddecided which arrived first. To accomplish this without a trusted party, transactions must bepublicly announced [1], and we need a system for participants to agree on a single history of theorder in which they were received. The payee needs proof that at the time of each transaction, themajority of nodes agreed it was the first received 80 |
81 |