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
| # Import KNeighborsClassifier from sklearn.neighbors | |
| from sklearn.neighbors import KNeighborsClassifier | |
| # Create arrays for the features and the response variable | |
| y = df['party'].values | |
| X = df.drop('party', axis=1).values | |
| # Create a k-NN classifier with 6 neighbors: knn | |
| knn = KNeighborsClassifier(n_neighbors=6) |
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
| LOCATION | SSID | |
|---|---|---|
| 179 WEST 26 STREET | LinkNYC Free Wi-Fi | |
| 25 EAST 29 STREET | LinkNYC Free Wi-Fi | |
| 1515 BROADWAY | LinkNYC Free Wi-Fi | |
| 201 WEST 48 STREET | LinkNYC Free Wi-Fi | |
| 1600 Broadway | LinkNYC Free Wi-Fi | |
| 1668 Broadway | LinkNYC Free Wi-Fi | |
| 1626 Broadway | LinkNYC Free Wi-Fi | |
| 1606 Broadway | LinkNYC Free Wi-Fi | |
| 300 Madison Ave | LinkNYC Free Wi-Fi |
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
| # Import pandas as pd | |
| import pandas as pd | |
| # Fix import by including index_col | |
| cars = pd.read_csv('cars.csv', index_col=0) |
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
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| gdp_cap = [10, 11, 12, 14, 18] | |
| life_exp = [11, 30, 13, 41, 12] | |
| # Specify c and alpha inside plt.scatter() | |
| plt.scatter(x = gdp_cap, y = life_exp, s = np.array(pop) * 2, c = col, alpha = 0.8) | |
| # Previous customizations | |
| plt.xscale('log') |
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
| alter session set "_ORACLE_SCRIPT"=true; | |
| create user julian identified by julian; | |
| grant dba to julian; |
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
| <application id="Application_ID" > | |
| <display-name>Application Name</display-name> | |
| <description>This is the application description</<description> | |
| <module id="WebModule_1" > | |
| <web> | |
| <web-uri>pandorabe.war</web-uri> | |
| <context-root>/</context-root> | |
| </web> | |
| </module> | |
| </application> |
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
| SELECT to_char(creation_date, 'dd-mm-yy hh24:mi:ss') as creation_date from PANDORA.NEPHROLOGIST; |
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
| ###################### | |
| ### DESIGN CHANGES ### | |
| ###################### | |
| # panes | |
| set -g pane-border-fg black | |
| set -g pane-active-border-fg brightred | |
| ## Status bar design | |
| # status line |
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
| netstat -ln | grep "unix.*mysql" |
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
| $("details").attr("open", "true") |