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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
class Contact extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
password: 'swordfish', | |
authorized: false | |
}; |
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
const xhr = new XMLHttpRequest(); | |
const url = 'https://api-to-call.com/endpoint'; | |
xhr.responseType = 'json'; | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState === XMLHttpRequest.DONE) { | |
//console.log('xhr response', xhr.response); | |
console.log(xhr.response); | |
} | |
} |
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
// Include data for accessing Google APIs | |
const apiKey = 'js-request-api-key-from-google'; | |
const projection = 'FULL'; | |
const url = 'https://www.googleapis.com/urlshortener/v1/url'; | |
// Some page elements | |
const $inputField = $('#input'); | |
const $expandButton = $('#expand'); |
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
const xhr = new XMLHttpRequest(); | |
const url = 'https://api-to-call.com/endpoint'; | |
xhr.responseType = 'json'; | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState === XMLHttpRequest.DONE) { | |
//console.log('xhr response', xhr.response); | |
console.log(xhr.response); | |
} | |
} |
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
const xhr = new XMLHttpRequest(); | |
const url = 'https://api-to-call.com/endpoint'; | |
// const url = 'https://www.googleapis.com/urlshortener/v1/url'; | |
const apiKey = 'AIzaSyB_gg7APX8yD_jzBHmTGxxDkhva95Zw808'; | |
const data = JSON.stringify({id: '200'}); | |
xhr.responseType = 'json'; | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState === XMLHttpRequest.DONE) { |
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
// Include data for accessing Google APIs | |
const apiKey = 'api_key'; | |
const projection = 'FULL'; | |
const url = 'https://www.googleapis.com/urlshortener/v1/url'; | |
// Some page elements | |
const $inputField = $('#input'); | |
const $expandButton = $('#expand'); |
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 React from 'react' | |
import { | |
StyleSheet, | |
View, | |
Text, | |
Platform, | |
TouchableOpacity, Button | |
} from 'react-native' | |
import { Ionicons, FontAwesome } from '@expo/vector-icons' | |
import { |
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 React from 'react' | |
import { | |
StyleSheet, | |
View, | |
Text, | |
Platform, | |
TouchableOpacity, Button | |
} from 'react-native' | |
import { Ionicons, FontAwesome } from '@expo/vector-icons' | |
import { |
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 React, { Component } from 'react' | |
import { | |
StyleSheet, | |
View, | |
Text, | |
Platform, | |
TouchableOpacity, Button | |
} from 'react-native' | |
import { Ionicons, FontAwesome } from '@expo/vector-icons' | |
import { |
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
[alias] | |
co = checkout | |
co-b = checkout -b | |
br = branch | |
br-r = branch -r | |
br-a = branch -a | |
br-m = branch -m | |
br-d = branch -d | |
br-force-d = branch -D | |
ci-reset-author = commit --amend --reset-author |