Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

catindog/nardtree GINK03

🌴
On vacation
Block or report user

Report or block GINK03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BigQuery_query_talkingdata.sql
-- Feature engineering BigQuery SQL queries for the kaggle talkingdata competition by tkm2261
-- it may acheve 0.9823 on the public LB with simple GBDT.
-- destination table: takling.test2
SELECT
CASE WHEN t.click_id is null THEN -1 ELSE t.click_id END as click_id,
o.*
FROM
`talking.test_supplement` as o
LEFT OUTER JOIN
View circumcenter.py
import numpy as np
def circumcenter(vert1, vert2, vert3):
# H/T: wikipedia.org/wiki/Circumscribed_circle
Ax, Ay = vert1
Bx, By = vert2
Cx, Cy = vert3
D = 2 * (Ax * (By - Cy) + Bx * (Cy - Ay) + Cx * (Ay - By))
@YoshihitoAso
YoshihitoAso / gist:9048005
Last active Dec 18, 2018
[Python][Mecab]ubuntu環境にmecabをインストールする方法
View gist:9048005

Ubuntu環境にMecabをインストールする方法

インストール手順

$ sudo apt-get install mecab libmecab-dev mecab-ipadic
$ sudo aptitude install mecab-ipadic-utf8
$ sudo apt-get install python-mecab

SAMPLE

@esehara
esehara / simpleoptiontype.py
Created Jul 30, 2013
Option型のPython的実装
View simpleoptiontype.py
# -*- coding: utf-8 -*-
class SimpleOption(object):
NOTHING = False
SOME = True
def __init__(self, is_some, value=None):
You can’t perform that action at this time.