Skip to content

Instantly share code, notes, and snippets.

View svanderbleek's full-sized avatar
:shipit:
I’ll take the case

Sandy Vanderbleek svanderbleek

:shipit:
I’ll take the case
View GitHub Profile
sentence = 'there was once a fox who there enjoyed tea there was once a fox who there enjoyed tea tea'
words = sentence.split()
counts = {}
for word in words:
counts[word] = counts.get(word, 0) + 1
top3 = sorted(count.items(), key=lambda x: x[1], reverse=True)[:3]
print(top3)
@svanderbleek
svanderbleek / analysis.R
Last active January 7, 2019 03:31
bank
library(caret)
library(dplyr)
data = read.csv2("bank-additional-full.csv")
f = y ~ duration + pdays + euribor3m + month + day_of_week + job + default + age + previous + contact + poutcome + nr.employed + cons.price.idx
# Scaling Parameters
SAMPLE = 10

Keybase proof

I hereby claim:

  • I am svanderbleek on github.
  • I am sandyeven (https://keybase.io/sandyeven) on keybase.
  • I have a public key ASCmCeCp_4K_o-fEc4gDn9wcbuBO_idqJTO2t1jZYAgfigo

To claim this, I am signing this object:

@svanderbleek
svanderbleek / dabblet.css
Created December 27, 2013 05:32
Untitled
.cardspring-page {
max-width: 960px;
margin: 60px auto;
border: solid 1px #CCC;
border-radius: 4px;
background-image: linear-gradient(#CCC, #BBB);
padding: 20px;
}
@media all and (max-width: 1060px) {
@svanderbleek
svanderbleek / dabblet.css
Created December 27, 2013 04:46
Untitled
.squat-box {
max-width: 400px;
height: 200px;
border-radius: 4px;
background: rgba(200,200,200,.3);
padding: 20px;
font-family: Helvetica;
}
.squat-domain {
.squat-box {
max-width: 600px;
height: 600px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
body {
font-family: Helvetica;
}
textarea {
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, .1);
resize: none;
width: 100%;
height: 160px;
body {
font-family: Helvetica;
}
textarea {
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, .1);
resize: none;
width: 100%;
height: 160px;
@font-face {
font-family: BrannbollNY;
src: url('http://www.aringtypeface.com/font-test/brannboll_ny.ttf');
}
body {
font-family: Helvetica;
}
#page {
@font-face {
font-family: BrannbollNY;
src: url('http://www.aringtypeface.com/font-test/brannboll_ny.ttf');
}
body {
font-family: Helvetica;
}
#page {