| open System | |
| open System.Threading.Tasks | |
| module Domain = | |
| type Order = { Number: string; Price: decimal; Type: string } | |
| let changePrice order price = | |
| { order with Price = price } |
| // 1. pure, don't think about IO at all | |
| module Domain = | |
| let add x y = x + y | |
| // 2. think about IO but not its implementation | |
| module App = | |
| let add (getX: unit -> Async<int32>) y = | |
| async { | |
| let! x = getX () | |
| return Domain.add x y |
| import { render } from "@testing-library/react"; | |
| import { MyComponent } from './MyComponent'; | |
| describe("MyComponent", () => { | |
| let wrapper; | |
| beforeEach(async () => { | |
| wrapper = render(<MyComponent butiful />); | |
| }); |
| (require 'org) | |
| (setq-default indent-tabs-mode nil) | |
| (setq org-display-inline-images t) | |
| (setq org-redisplay-inline-images t) | |
| (setq org-startup-with-inline-images "inlineimages") | |
| (setq default-frame-alist | |
| (append (list '(width . 72) '(height . 40)))) |
Precisamos de pessoas com energia, integridade e inteligência, que aprendam rápido e que gostem de conhecer e aplicar novas tecnologias.
O tempo sugerido para conclusão do desafio é de 15 dias. Queremos que você se dedique e demonstre a qualidade de seu código.
Bom desafio!
O Sistema Financeiro precisa representar valores monetários. A ideia básica é ter uma estrutura de dados que permita realizar operações financeiras com dinheiro dentro de uma mesma moeda. Isso é pelo motivo de pontos flutuantes terem problemas de aritmética, logo encodificamos valores decimais/fracionais/reais como uma estrutura de dados com campos em inteiros, além de mapeamos operações aritméticas sobre tal estrutura. No fim, a implementação acaba sendo uma Estrutura de Dados Abstrata.
Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.
This article is also on my blog, too.
Note: $ denotes the start of a command. Don't actually type this.
- Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
- Go to https://repo.continuum.io/archive to find the list of Anaconda releases
- Select the release you want. I have a 64-bit computer, so I chose the latest release ending in
x86_64.sh. If I had a 32-bit computer, I'd select thex86.shversion. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Ana
| // @flow | |
| // https://github.com/FormidableLabs/react-native-svg-mock | |
| import React from 'react'; | |
| const createComponent = function(name: string) { | |
| return class extends React.Component { | |
| // overwrite the displayName, since this is a class created dynamically | |
| static displayName = name; |
| class RedBlackTree: | |
| #Red/Black tree implementation based on | |
| #Algorithms in C++, Sedgewick | |
| #Introduction To Algorithms Cormen, Thomas H. / Leiserson, Charles E . / Rivest, Ronald L . The MIT Press 07/1990 | |
| # NOTE : LOOK AT END OF FILE TO SEE DIFFERENCES IN TRAVERSAL IDIOMS | |
| red,black = range(2) | |
| # double underscores induce name mangling to make methods private | |
| def __copy(self,node): |