- 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
"""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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
I hereby claim:
- I am vaibhavmule on github.
- I am vaibhavmule (https://keybase.io/vaibhavmule) on keybase.
- I have a public key ASAvEBTuIiSrgdmtgR0udGn4st5D8e3khRQXzqZeBqjh2go
To claim this, I am signing this object:
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 command line developer tools | |
cd /Applications/Utilities/ | |
xcode-select --install | |
# install nvm node and npm | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash | |
echo ". ~/.nvm/nvm.sh" > ~/.bash_profile | |
nvm install stable | |
nvm use stable | |
nvm alias default stable |
NewerOlder