Skip to content

Instantly share code, notes, and snippets.

View ajn123's full-sized avatar
💭
Let's Work Together!

AJ Norton ajn123

💭
Let's Work Together!
View GitHub Profile
FROM composer:latest
WORKDIR /app
COPY . .
RUN composer install
COPY . .
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error, r2_score
data, target = datasets.load_diabetes(return_X_y=True, as_frame=True)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder
from sklearn.tree import DecisionTreeClassifier
from sklearn import tree
data = pd.read_csv('~/Downloads/Play Tennis.csv')
print(data)
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class ExamRead {
public static void main(String args[]) throws FileNotFoundException {
b3daf88e689406af7d294aa4dfa0db98
//
// ViewController.swift
// httpDownload
//
// Created by AJ Norton on 12/15/15.
// Copyright © 2015 AJ Norton. All rights reserved.
//
import UIKit
@ajn123
ajn123 / README.md
Created December 14, 2015 03:07
Tap Gesture Example

Tap Gesture App example from my Youtube Channel.

//: Playground - noun: a place where people can play
import UIKit
extension UIImage {
class func scaleImageToSize(img: UIImage, size: CGSize) -> UIImage {
UIGraphicsBeginImageContext(size)
//: Playground - noun: a place where people can play
import UIKit
func delay(time: Double, closure: () -> () ) {
dispatch_after(
dispatch_time(DISPATCH_TIME_NOW, Int64(time * Double(NSEC_PER_SEC))),
dispatch_get_main_queue(), closure)
//
// Collection.swift
// FormatGUide
//
// Created by AJ Norton on 10/22/15.
// Copyright © 2015 AJ Norton. All rights reserved.
//
import UIKit
import Photos