- 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
let colors = ["rgba(255, 0, 0, alpha)", "rgba(255, 127, 0, alpha)", "rgba(255, 255, 0, alpha)", "rgba(0, 255, 0, alpha)", "rgba(0, 0, 255, alpha)", "rgba(75, 0, 130, alpha)", "rgba(148, 0, 211, alpha)"]; | |
let alpha = {'#c6e48b': '.5', '#7bc96f': '.7', '#239a3b': '.8', '#7bc96f': '.9', '#196127': '1'} | |
let days = document.getElementsByClassName('day'); | |
for (var i = 0; i < days.length; i++) { | |
if (days[i].attributes.fill.value != "#ebedf0") { | |
let color = colors[i % 7].replace('alpha', alpha[days[i].attributes.fill.value]) | |
days[i].style.fill = color; | |
} | |
} |
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
import random | |
import time | |
class Node: | |
def __init__(self, data = None, next = None): | |
self.data = data | |
self.next = next | |
class LinkedList: |
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
class Node: | |
def __init__(self, data = None): | |
self.data = data | |
self.next = None | |
def setData(self, data = None): | |
self.data = data | |
def setNext(self, next = None): | |
self.next = next |