This file contains hidden or 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
#!/bin/bash | |
# add remote connection called origin (default name) | |
git remote add origin git@github.com:atafs/fed-bed-git-version-control.git | |
# check | |
git remote | |
git remote -v | |
# change existing remote connection (eg from https to ssh) |
This file contains hidden or 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 AlbumDetail = ({ album }) => { | |
const { title, artist, thumbnail_image, image, url } = album; | |
const { | |
thumbnailStyle, | |
headerContentStyle, | |
thumbnailContainerStyle, | |
headerTextStyle, | |
imageStyle | |
} = styles; |
This file contains hidden or 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 Button = ({ onPress, children }) => { | |
const { buttonStyle, textStyle } = styles; | |
return ( | |
<TouchableOpacity onPress={onPress} style={buttonStyle}> | |
<Text style={textStyle}> | |
{children} | |
</Text> | |
</TouchableOpacity> | |
); |
This file contains hidden or 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
#!/bin/bash | |
# create a new project | |
cd ~; mkdir Repo; cd Repo | |
# create a new git repository | |
## git init . | |
git init DemoProj | |
mate README.md |
This file contains hidden or 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
# show the history ------------------------------------------------------------------- | |
git hist | |
# check differences between 2 commits | |
git difftool <id> HEAD | |
# modify a file | |
mate README.md | |
git diff |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<!--<link rel="stylesheet" href="styles.css">--> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<!--<script src="script.js"></script>--> |
NewerOlder