- Learn how to start a new react native project
- Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
- Learn how to upgrade a react native project
- Learn how to add a package to the project
- Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
- Learn how to use fetch to get data from your backend
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
echo "Updating" && | |
sudo apt-get update | |
echo "Upgrading" && | |
sudo apt-get dist-upgrade | |
echo "Cleaning Up" && | |
sudo apt-get -f install && | |
sudo apt-get autoremove && | |
sudo apt-get -y autoclean && |
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
"""A FeedController Module""" | |
from masonite.view import View | |
from masonite.request import Request | |
from app.Post import Post | |
class FeedController: | |
"""FeedController |
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
""" | |
Develop an ETL system that will Extract data from a CSV file, | |
apply some transformation and output the transformed | |
data to another CSV. | |
ETL stands for Extract Transform and Load - this system should be divided into these modules: | |
Extract module - should be able to retrieve data from a CSV file | |
Transform module - should accept input stream from Extract module and | |
for each column adds an additional column | |
indicating the data type of the column |
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
var request = require('request'); | |
var unzip = require('unzip'); | |
var csv2 = require('csv2'); | |
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip') | |
.pipe(unzip.Parse()) | |
.on('entry', function (entry) { | |
entry.pipe(csv2()).on('data', console.log); | |
}) | |
; |
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
def calculate_angle(hour, minute): | |
""" | |
Assuming 12 hours is 360 degree which is | |
(720 minutes) or 0.5 degree per minute | |
and 60 minutes = 360* which 6 degree per minutes. | |
""" | |
if hour == 12 and minute == 60: | |
hour, minute = 0, 0 | |
angle_of_hour_hand = (60 * hour + minute) / 2 | |
angle_of_minute_hand = 6 * minute |
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
sudo apt-get update && sudo apt-get dist-upgrade | |
sudo apt-get install netselect-apt -y | |
sudo netselect-apt | |
sudo apt-get install sudo chromium vim git git-core zsh vlc libcanberra-gtk-module fonts-crosextra-carlito fonts-crosextra-caladea -y | |
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
wget "https://www.rescuetime.com/installers/rescuetime_current_amd64.deb" | |
sudo dpkg -i rescuetime_current_amd64.deb | |
rm rescuetime_current_amd64.deb |
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
# install git | |
sudo apt get install git | |
# install elasticsearch | |
sudo apt-get install build-essential libssl-dev | |
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
sudo apt-get update && sudo apt-get install elasticsearch | |
# install java |
NewerOlder