Skip to content

Instantly share code, notes, and snippets.

View digorithm's full-sized avatar
⚒️
Building

Rodrigo Araújo digorithm

⚒️
Building
View GitHub Profile
/**
* ASSUMPTION: this method won't be called if the IP-MAC pair is already
* Found in the file "macIpAdresses.txt"
*
* So I didn't check for duplicates.
*
* ALSO: for() better than forEach? (https://jsperf.com/fast-array-foreach)
*/

Keybase proof

I hereby claim:

  • I am digorithm on github.
  • I am digorithm (https://keybase.io/digorithm) on keybase.
  • I have a public key ASAVdl8CDz7S4PaW7RWPZhG4glc9_LiPmU27QBkjlu9Luwo

To claim this, I am signing this object:

FORMAT: 1A HOST: http://polls.apiblueprint.org/

FastFood

This is the official API from the app Geladeira do Dia 20. Please consider that this API documentation is not finished.

Fastfood API Root [/]

FORMAT: 1A HOST: http://polls.apiblueprint.org/

FastFood

This is the official API from the app Geladeira do Dia 20. Please consider that this API documentation is not finished.

Fastfood API Root [/]

FORMAT: 1A HOST: http://polls.apiblueprint.org/

FastFood

This is the official API from the app Geladeira do Dia 20. Please consider that this API documentation is not finished.

Fastfood API Root [/]

from sklearn.feature_extraction.text import TfidfVectorizer
vectorizer = TfidfVectorizer()
vectorized_x = vectorizer.fit_transform(X)
def tune_parameters(clf,X,y):
"""
Use this method when it's needed to find better parameters.
Change the parameters dict as needed. No need for
cross_val method, as the grid_search.fit() calls it
internally
"""
parameters = {
'features__tfidf__vect__max_features':[10000],
'features__tfidf__vect__ngram_range':[(1,1)],
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="/PersonController?action=listperson" />