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
Get all remote branches | |
git fetch --all | |
git checkout -b <ur_new_local_branch_name> remotes/origin/<Remote_Branch_Name> | |
Check which local branch of yours track which remote branch in Git | |
git branch -vv |
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 numpy | |
import Gnuplot | |
def rainfall_intensity_t10(t): | |
return 11.23 * (t**(-0.713)) | |
def rainfall_intensity_t50(t): | |
return 18.06 * (t**(-0.713)) | |
g = Gnuplot.Gnuplot() |
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
/* | |
* Application: PCA_Analysis | |
* | |
* USAGE: An application performing a basic Principal Component Analysis. | |
* This application illustrates the class, PCA. | |
* | |
* WRITTEN BY: Dr Michael Thomas Flanagan | |
* | |
* DATE: December 2010 | |
* |
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
## Code picks every letter in the list and puts it in test and the rest in train. It does this for the entire list till the end. | |
from collections import Counter | |
# a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
a = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] | |
# Code for splitting training and testing | |
test = [] | |
train = [] | |
for i in range(0, len(a)): | |
if bool(test) is 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:tools="http://schemas.android.com/tools" | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- border circle --> | |
<item | |
android:width="50dp" | |
android:height="50dp" | |
tools:ignore="UnusedAttribute"> | |
<shape android:shape="rectangle"> |
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
{ | |
questions: [{ | |
text: "What does 'API' stand for?", | |
answer: "API stands for Application Programming Interface." | |
},{ | |
text: "What's so good about pragmatic REST?", | |
answer: "It's focused on the api consumer, so it makes it easier for developers to contribute to your app library!" | |
}] | |
} |
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
@Preview | |
@Composable | |
fun DrawBefore() { | |
Box( | |
modifier = Modifier.fillMaxSize(), | |
contentAlignment = Alignment.Center | |
) { | |
Card( | |
shape = RoundedCornerShape(8.dp) | |
,modifier = Modifier |