Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
sangheestyle / install_and_using.md
Last active February 25, 2021 21:43
Install and using numba on mac

Install and using numba on mac

  • Mac version: 10.11.3
  • Python version: 3.5.1

Install

$ brew tap homebrew/versions
$ brew install llvm37
@sangheestyle
sangheestyle / suggestor.py
Created October 16, 2015 14:44
Simple experiement on using suggestor in ES
from datetime import datetime
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.indices.create("brands")
# Mapping for suggester
# It should include [property]_suggest property for suggester
mapping = {
execute pathogen#infect()
colorscheme molokai
syntax enable
filetype indent plugin on
set nocompatible
set backspace=indent,eol,start
set tabstop=4
set shiftwidth=4
@sangheestyle
sangheestyle / readme.md
Created July 26, 2015 18:34
Vim for go programming on mac

How to

Steps

For neocomplete

brew uninstall vim
brew install luajit
brew install vim --with-lua
brew uninstall macvim
brew install macvim --with-cscope --with-lua --HEAD
@sangheestyle
sangheestyle / hellogl.py
Created June 25, 2015 22:44
Hellogl by Riverbank
#!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2010 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.