Skip to content

Instantly share code, notes, and snippets.

satomacoto satomacoto

Block or report user

Report or block satomacoto

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
docker images | awk '/<none/{print $3}' | xargs docker rmi
docker ps -f "status=exited" -q | xargs docker rm
satomacoto /
Created Dec 10, 2012
[He 2012] Document Summarization based on Data Reconstruction
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
class DSDR:
"""Z He, et al. Document Summarization based onData Reconstruction (2012)
satomacoto /
Last active Apr 27, 2018
kNN on
# -*- coding:utf-8 -*-
from pymongo import MongoClient
client = MongoClient()
db = client.xvideos
def create_db():
f = open('')
for line in f:
curl -fsSL | bash
curl -fsSL | bash
satomacoto /
Created Apr 12, 2012
Parser with MeCab
#! /usr/bin/python
# -*- encoding: utf-8 -*-
Parser with MeCab
import MeCab
import glob
import re
import os
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys,getopt
from numpy import array,matrix,diag
from scipy import sum,log,exp,mean,dot,ones,zeros
from scipy.special import polygamma
from scipy.linalg import norm
from random import random
pyenv install miniconda3-latest
pyenv local miniconda3-latest
conda create -n myenv anaconda
source (conda info --root)/etc/fish/conf.d/
conda activate myenv
View Twitter API with Curl
# create an account, create an app
# @see
# retrieve the access tokens
# @see
# create the file ~/twitter_api
nano ~/twitter_api
Authorization: OAuth oauth_consumer_key="XXXXXX", oauth_nonce="11111111", oauth_signature="XXXXXX", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1450728725", oauth_token="99999-XXXXXX", oauth_version="1.0"
satomacoto / labeledarrow.html
Created Aug 18, 2012
labeled arrow w/ D3.js
View labeledarrow.html
<html lang="en">
<meta charset="UTF-8">
<script src=""></script>
line.arrow {
stroke: #666;
satomacoto / cooccur-top20.txt
Last active Mar 24, 2017
count tag occurrence and cooccurrence on
View cooccur-top20.txt
('blowjob', 'hardcore') 594241
('blowjob', 'brunette') 336485
('blowjob', 'teen') 334746
('amateur', 'teen') 322670
('brunette', 'hardcore') 320892
('hardcore', 'teen') 302974
('blonde', 'brunette') 282348
('blonde', 'blowjob') 272567
('blowjob', 'oral') 269461
('blonde', 'hardcore') 252474
You can’t perform that action at this time.