This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: AGPL-3.0-or-later | |
| // The ABI encoder is necessary, but older Solidity versions should work | |
| pragma solidity ^0.7.0; | |
| pragma experimental ABIEncoderV2; | |
| // These definitions are taken from across multiple dydx contracts, and are | |
| // limited to just the bare minimum necessary to make flash loans work. | |
| library Types { | |
| enum AssetDenomination { Wei, Par } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component/*, Fragment*/ } from "react"; | |
| // Using react containers to achieve responsiveness in Medias | |
| import Container from "react-bootstrap/Container"; | |
| import Media from "react-media"; | |
| <Container> | |
| {/* Smaller phones portrait */} | |
| <Media query="(min-width: 319px) and (max-width: 567px)"> | |
| <p>KnowledgeBase Test 319 - 567</p> | |
| </Media> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### connect to google | |
| _pytrends = TrendReq(hl='en-US', tz=360) | |
| #### build the playload | |
| _kw_list = ["bitcoin"] | |
| _cat = 0 | |
| _geo = '' | |
| _gprop = '' | |
| # dates can be formated as `2017-12-07 2018-01-07`,`today 3-m`, or `today 5-y` check trends.google.com's url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How does a bang modify the list passed into the method? | |
| How can we return a different list with a new item if we dont want to modify the list? | |
| How does bang affect the code below????? | |
| def add_item!(item, list) | |
| #list << item | |
| # # this is what we return from the method | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What and how are symbols used. What was the purpose of p :hello | |
| how would you use a ruby symbole in the real world? |