This file contains 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
# react-native-cli: 2.0.1 | |
# react-native: 0.55.3 | |
# NB: My rn files are inside "js" dir | |
project 'Golee.xcodeproj' | |
# Uncomment the next line to define a global platform for your project | |
# platform :ios, '9.0' |
This file contains 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
# ------ Prerequisites ------ | |
# Start server | |
$ mongod | |
# Start client | |
$ mongo | |
# Install packages on python 2.7 (required version of "pip" >= 10) | |
$ sudo pip install --ignore-installed pymongo | |
$ sudo pip install --ignore-installed numpy |
This file contains 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
<Lightbox key="lightbox"> | |
<Drawer | |
hideNavBar | |
key="drawer" | |
contentComponent={MenuContent} | |
drawerImage={MenuIcon} | |
drawerWidth={300} | |
initial | |
> | |
<Scene key="team_nav"> |
This file contains 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
Router | |
Stack | |
Scene "Landing" | |
Tabs tabBarComponent={_CustomTabBarComponent_} | |
**#1st child** | |
Lightbox key="First" | |
Drawer | |
Scene**A**,Scene**B** |
This file contains 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
//It works only for iOS, with Android i can't set picker with intervals | |
onDateChange={(date)=>{ | |
if(this.state.dateMode == "time" && this.state.minuteInterval){ | |
let hours = Number(String(date).split(":")[0]) | |
let minutes = Number(String(date).split(":")[1]) | |
let diff = minutes % this.state.minuteInterval | |
if(diff != 0){ | |
date = (String(hours)+":"+String(minutes-diff)) | |
} |
This file contains 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
CREATE TABLE `Student` | |
( | |
`idStudent` int NOT NULL auto_increment, | |
`name` varchar(45) NOT NULL , | |
PRIMARY KEY (`idStudent`) | |
); | |
CREATE TABLE `Exam` | |
( |
This file contains 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
platform :ios, '9.0' | |
target 'golee' do | |
# this is very important to have! | |
node_modules_path = '../node_modules' | |
rn_path = '../node_modules/react-native' | |
pod 'React', :path => '../node_modules/react-native/' | |
pod 'React-Core', :path => '../node_modules/react-native/React' | |
pod 'React-DevSupport', :path => '../node_modules/react-native/React' |
This file contains 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
# Create a public key (https://git-scm.com/book/it/v1/Git-sul-Server-Generare-la-Propria-Chiave-Pubblica-SSH) | |
$ ssh-keygen -t rsa | |
# If it doesn't work | |
$ ssh-add ~/.ssh/id_rsa |
This file contains 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
# Start Metro bundler with env var | |
$ REACT_APP_ENV=prod react-native start --reset-cache | |
$ react-native run-ios |
This file contains 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
Usa JS, supportato solo su Chrome. | |
Vantaggio di cypress vs altri framework: non è fragile, infatti verifica che gli elementi siano nella viewport | |
(es. un bottone verifica che sia visible e cliccabile). | |
Intercettare chiamate http, fare tipo poxy, possibile mochare le chiamate | |
(quindi settare alcuni parametri nella risposta dal microservizio). | |
Testare come se fossi un utente. | |
GET: Faccio una query sulla base del testo che contiene (oppure data-test-id) |