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
| <div id="canvas"></div> | |
| <style> | |
| #canvas { | |
| width: 500px; | |
| height: 300px; | |
| border: 5px solid black; | |
| position: relative; | |
| box-sizing: content-box; | |
| } |
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
| intent('What does this app do?', 'What can I do here?', | |
| reply('This is a news project.')); | |
| const API_KEY = '7bdfb1b10aca41c6becea47611b7c35a'; | |
| let savedArticles = []; | |
| // News by Source | |
| intent('Give me the news from $(source* (.*))', (p) => { | |
| let NEWS_API_URL = `https://newsapi.org/v2/top-headlines?apiKey=${API_KEY}`; | |
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
| // 1. NewsCard/styles.js: | |
| import { makeStyles } from '@material-ui/core/styles'; | |
| export default makeStyles({ | |
| media: { | |
| height: 250, | |
| }, | |
| border: { | |
| border: 'solid', | |
| }, |
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
| App.css | |
| html, body, #root { | |
| font: 0.9rem sans-serif; | |
| background: #0a1f44; | |
| color: #1e2432; | |
| height: 100%; | |
| margin: 0; | |
| } | |
| .main-container { |
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 wolframalpha | |
| client = wolframalpha.Client("lilpumpsaysnopeeking") | |
| import wikipedia | |
| import PySimpleGUI as sg | |
| sg.theme('DarkPurple') | |
| layout =[[sg.Text('Enter a command'), sg.InputText()],[sg.Button('Ok'), sg.Button('Cancel')]] | |
| window = sg.Window('PyDa', layout) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| using Alpaca.Markets; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading; | |
| namespace Examples | |
| { | |
| class MeanReversionPaperOnly | |
| { |
NewerOlder