Skip to content

Instantly share code, notes, and snippets.

View MCMXCIII's full-sized avatar
👑
I am bad at git.

Christopher Crawford MCMXCIII

👑
I am bad at git.
View GitHub Profile
import java.util.*;
import java.util.StringTokenizer;
public class NameLab {
public static void main(String a[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter your last name.");
String lastName = sc.nextLine();
System.out.println("Followed by your first and middle names.");
@MCMXCIII
MCMXCIII / install_python.ps1
Created October 25, 2017 18:34 — forked from carlosfunk/install_python.ps1
Powershell scripts for setting up a Python environment under Windows
# To run this file you will need to open Powershell as administrator and first run:
# Set-ExecutionPolicy Unrestricted
# Then source this script by running:
# . .\install_python.ps1
$save_dir=Resolve-Path ~/Downloads
$project_dir = "C:\Projects"
$virtualenv_dir = $project_dir + "\virtualenvs"
$client = New-Object System.Net.WebClient
#!/usr/bin/env python
#
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip.
#
# Pip is a thing that installs packages, pip itself is a package that someone
# might want to install, especially if they're looking to run this get-pip.py
@MCMXCIII
MCMXCIII / get-pip.py
Last active November 2, 2017 17:17
pip file
#!/usr/bin/env python
#
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious good for you for being
# paranoid This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip.
#
# Pip is a thing that installs packages, pip itself is a package that someone
# might want to install, especially if they're looking to run this get-pip.py
@MCMXCIII
MCMXCIII / README.md
Created May 9, 2019 12:29 — forked from hasanbayatme/README.md
A Simple Bash Script for Installing Composer on Ubuntu Locally (current user) and Globally (all users).

Installation

Install composer locally (current user only):

wget -O - https://gist.github.com/EmpireWorld/1dd5f59566e186907f99dc16badc382a/raw/install-composer-local.sh | bash

Install composer globally (all users):

@MCMXCIII
MCMXCIII / genL0regress.py
Last active October 19, 2019 17:10
Finished Single line?
import pandas as pd
import numpy as np
import mathplotlib.pyploy as plt
immport seaborn as seabornInstance.model_selection
from sklearn import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn iport metrics
%mathplotlib inline
dataset= pd.read_csv("path to csv dataset CLEAN PLEASE-DEFINE VARS")
@MCMXCIII
MCMXCIII / Multiline.py
Created October 19, 2019 18:05
Regression for multiline
#FOR MULTILINES
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sasbornInstance
from sklearn.model_selection
import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn import metrixcs
#Moving large groups of users to a group
#Just edit where the CSV is going to be and make sure to include the header of the list of users as "email address"
Import-Module AzureAD
#Connects to your Office365 tenant
#This will prompt for credentials
Connect-AzureAD
#Link the csv file to read from.(Please use the exact path.)
$csvPath = "C:\"
#Moving large groups of users to a group
#Just edit where the CSV is going to be and make sure to include the header of the list of users as "emailAddress"
#The fields you have to change are "$csvPath" to the folder with the csv
#and the "displayname -eq "Name of group" "
Import-Module AzureAD
#Connects to your Office365 tenant
Connect-AzureAD
package com.example.test;
import com.example.test.R;
import androidx.appcompat.app.AppCompatActivity;
import android.R;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.support.v7.app.AppCompatActivity;