Skip to content

Instantly share code, notes, and snippets.

<html><head><link rel="stylesheet" href="http://sindresorhus.com/github-markdown-css/github-markdown.css"/></head><body><article class="markdown-body">
<h1 id="analysing-fcq-data">Analysing FCQ Data</h1>
<p>Here is the data set for FCQ. You can get FCQ data from <a href="http://www.colorado.edu/fcq/">FCQ</a>.</p>
<pre>
var data = loader.json('examples/fcq/fcq.2014.json', {multiLines: true})
var fields = _.keys(data[0]).join(', ')
</pre>
<h2 id="exploring-lodash">Exploring lodash</h2>
<p><a href="https://lodash.com">lodash</a> is A JavaScript utility libray to manipulate data. Let&#39;s do it.</p>
@sangheestyle
sangheestyle / some.md
Created April 1, 2015 11:53
crawl google play store review
"{0: '', 1: u'painters', 2: u'indulgence', 4: u'visual', 5: u'fantasy', 7: u'appreciation', 9: u'different', 10: u'historic', 11: u'architectural', 12: u'styles', 15: u'seen', 18: u'1840', 19: u'architects', 20: u'dream', 23: u'series', 25: u'paintings', 28: u'last', 31: u'mohicans', 33: u'made', 35: u'three', 36: u'year', 37: u'trip', 39: u'europe', 41: u'1829', 45: u'better', 46: u'known', 49: u'trip', 50: u'four', 51: u'years', 52: u'earlier', 56: u'journeyed', 59: u'hudson', 60: u'river', 63: u'catskill', 64: u'mountains', 65: u'ftp', 66: u'name', 68: u'this_painter', 71: u'oxbow', 74: u'voyage', 76: u'life', 77: u'series'}"
@sangheestyle
sangheestyle / getreviews.js
Last active September 23, 2019 13:36
Get reviews from google play
var request = require('request');
var cheerio = require('cheerio');
// Set the headers
var headers = { 'User-Agent': 'Wild/0.0.1'
, 'Content-Type': 'application/x-www-form-urlencoded'
}
// Configure the request
var options = { url: 'https://play.google.com/store/getreviews'
@sangheestyle
sangheestyle / vb.py
Created April 9, 2015 16:12
Variational Bayes(not implemented yet). Just part.
from scipy import array
from scipy.special import psi as digam
from math import exp
words = ["cat", "dog", "hamburger", "iron", "pig"]
beta = array([[.26, .185, .185, .185, .185],
[.185, .185, .26, .185, .185],
[.185, .185, .185, .26, .185]])
gamma = [2.0, 2.0, 2.0]
@sangheestyle
sangheestyle / build_atlas_ubuntu.md
Last active July 25, 2024 02:40
Build ATLAS in ubuntu

How to build ATLAS in uruntu

We can build ATLAS on a ubuntu machine.

Steps

First above all, you need to do disable 'Intel SpeedStep' in BIOS if you use Intel CPU. Then do the following:

# cpufreq-set -g performance -c  <CPU>

For example, I did the following because I used i5 which has quad cores.

@sangheestyle
sangheestyle / model07_play_with_feature_selection.ipynb
Last active August 29, 2015 14:19
feature engineering with scikit-learn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sangheestyle
sangheestyle / gp.js
Created April 29, 2015 07:25
crawling reviews of google play
var request = require('request');
var cheerio = require('cheerio');
// Set the headers
var headers = { 'User-Agent': 'Wild/0.0.1'
, 'Content-Type': 'application/x-www-form-urlencoded'
}
// Configure the request
var options = { url: 'https://play.google.com/store/getreviews'
@sangheestyle
sangheestyle / command.sh
Created May 29, 2015 08:42
Search regex with curl command
$ curl -H "Content-Type: application/json" -X POST -d '{"regex": ".setTag\\([^,|^\\(]*,[^,]*\\)", "ext":"java", "local_repo_root": "demo_set", "max":100}' http://sangheestyle.com:8080/api/search/commits -o result.json