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, { useContext } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
const AppContext = React.createContext({ theme: null, nome: null }); | |
function Post() { | |
const theme = useContext(AppContext); | |
return ( | |
<div className="{theme}"> |
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 os | |
import platform | |
import subprocess | |
firefox_path = None | |
system = platform.system().lower() | |
def check_firefox(): | |
if system == "darwin": |
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.JS | |
import React from 'react' | |
import './App.css' | |
import { SEO } from './seo' | |
function App() { | |
return ( | |
<div> | |
<SEO title="Home page" location="/" type="Organization" /> | |
hello |
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
Click==7.0 | |
Flask==1.0.3 | |
Flask-Cors==3.0.8 | |
Flask-SQLAlchemy==2.4.0 | |
itsdangerous==1.1.0 | |
Jinja2==2.10.1 | |
MarkupSafe==1.1.1 | |
psycopg2-binary==2.8.2 | |
six==1.12.0 | |
SQLAlchemy==1.3.4 |
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 api from '../../services/api'; | |
import React, { Component } from 'react' | |
import { Formik, Field, Form, ErrorMessage } from 'formik' | |
import '../Base/base.css' | |
class CreatePost extends Component { | |
// state = { | |
// title: '', | |
// category: '', |
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
function solution(A) { | |
// permutation -> if numbers in sequences, return 1 | |
// ex. [3,1,2] is a permutation, [3,4,1] isn't | |
let result = 1 | |
let sortedArr = A.sort((a,b) => a - b) | |
let next = sortedArr[0] | |
for (let i=0; i < sortedArr.length; i++) { | |
(sortedArr[i] !== next) ? result = 0 : next += 1 | |
} |
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 from 'react'; | |
import PropTypes from 'prop-types'; | |
import deburr from 'lodash/deburr'; | |
import Downshift from 'downshift'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import TextField from '@material-ui/core/TextField'; | |
import Paper from '@material-ui/core/Paper'; | |
import MenuItem from '@material-ui/core/MenuItem'; | |
import Grid from '@material-ui/core/Grid'; | |
import { compose } from 'redux'; |
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 } from 'react' | |
import { Formik, Field, Form, ErrorMessage } from 'formik' | |
import './index.css' | |
class LoginForm extends Component { | |
handleSubmit = (values, actions) => { | |
actions.setSubmitting(true) | |
console.log(values) | |
console.log(actions) | |
// just login now without passwd: |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from bs4 import BeautifulSoup | |
import re | |
import requests | |
import pandas as pd |
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 checking for folder | |
2 /home/converge/UpdateInstaPy/auto.sh: line 19: date: command not found | |
3 /home/converge/UpdateInstaPy/auto.sh: line 20: mkdir: command not found | |
4 /home/converge/UpdateInstaPy/auto.sh: line 21: mkdir: command not found | |
5 created new globalfolder UpdateInstaPy and subfolder with name: | |
6 Cloning into 'InstaPy'... | |
7 --2018-12-28 08:59:44-- https://chromedriver.storage.googleapis.com/LATEST_RELEASE | |
8 Resolving chromedriver.storage.googleapis.com (chromedriver.storage.googleapis.com)... 216.58.202.80, 2800:3f0:4001:80c::2010 | |
9 Connecting to chromedriver.storage.googleapis.com (chromedriver.storage.googleapis.com)|216.58.202.80|:443... connected. | |
10 HTTP request sent, awaiting response... 200 OK |