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
Homebrew build logs for udacity/carnd-mpc-project/mumps on macOS 10.13.3 | |
Build date: 2018-03-06 00:14:37 |
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
## modified from: | |
## https://github.com/miloharper/simple-neural-network and | |
## https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1 | |
## thanks! | |
import csv | |
from numpy import exp, array, random, dot | |
class NeuralNetwork(): | |
def __init__(self): |
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
public class BubbleSort { | |
/** Bubble sort method */ | |
public static void bubbleSort(int[] list) { | |
boolean needNextPass = true; | |
for (int k = 1; k < list.length && needNextPass; k++) { | |
// Array may be sorted and next pass not needed | |
needNextPass = false; | |
for (int i = 0; i < list.length - k; i++) { | |
if (list[i] > list[i + 1]) { |
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
add drawables | |
add to strings (can use translations or copy/paste) | |
create a new TableLayout underlayouts called photos.xml | |
add rows (can be found below) | |
create a new LinearLayout underlayouts called tours.xml | |
add stuff (can be found below) |
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
public class Circle extends GeometricObject { | |
private double radius; | |
public Circle() { | |
} | |
public Circle(double radius) { | |
this.radius = radius; | |
} |
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
public class AnyWildCardDemo { | |
public static void main(String[] args ) { | |
GenericStack<Integer> intStack = new GenericStack<Integer>(); | |
intStack.push(1); // 1 is autoboxed into new Integer(1) | |
intStack.push(2); | |
intStack.push(-2); | |
print(intStack); | |
} |
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 java.util.Scanner; | |
public class ComputeFactorial { | |
/** Main method */ | |
public static void main(String[] args) { | |
// Create a Scanner | |
Scanner input = new Scanner(System.in); | |
System.out.print("Enter a non-negative integer: "); | |
int n = input.nextInt(); | |
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
package edu.ggc.lutz.pixabayretrofit; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.util.HashMap; | |
import java.util.List; |
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
capture json from curl or postman, like | |
{ | |
"base": "USD", | |
"date": "2017-10-10", | |
"rates": { | |
"CAD": 1.2499, | |
... | |
... | |
} | |
} |
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
public class Circle extends GeometricObject { | |
private double radius; | |
public Circle() { | |
} | |
public Circle(double radius) { | |
this.radius = radius; | |
} |