Skip to content

Instantly share code, notes, and snippets.

View 64lines's full-sized avatar

Julian Alexander Murillo 64lines

  • Huge Inc.
  • Medellin - Colombia
View GitHub Profile
@64lines
64lines / kneighbors.py
Last active November 6, 2017 16:28
[PYTHON][SKLEARN] KNeighbors Classifier Predictions
# 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)
@64lines
64lines / freewifilocations.csv
Last active November 4, 2017 16:40
Free Wi-Fi Specific Locations Manhattan
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
@64lines
64lines / pandas.py
Last active November 6, 2017 17:25
[PYTHON][PANDAS] - Pandas
# Import pandas as pd
import pandas as pd
# Fix import by including index_col
cars = pd.read_csv('cars.csv', index_col=0)
@64lines
64lines / plotting.py
Last active November 6, 2017 16:00
[PYTHON] Plotting with matplotlib
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')
@64lines
64lines / create_user.sql
Last active October 24, 2017 13:44
[ORACLE] - Create user SQL
alter session set "_ORACLE_SCRIPT"=true;
create user julian identified by julian;
grant dba to julian;
@64lines
64lines / application.xml
Last active December 28, 2024 15:39
[JAVA] - Example Application.xml file to create .Ear files.
<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>
SELECT to_char(creation_date, 'dd-mm-yy hh24:mi:ss') as creation_date from PANDORA.NEPHROLOGIST;
@64lines
64lines / tmux.conf
Created September 25, 2017 16:11
[TMUX] tmux config for 256 colors terminal
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
## Status bar design
# status line
@64lines
64lines / unix_socket.sh
Created September 6, 2017 13:51
Unix Socket
netstat -ln | grep "unix.*mysql"
@64lines
64lines / open.js
Created September 4, 2017 14:39
[CUCUMBER] - Expand cucumber report
$("details").attr("open", "true")