Skip to content

Instantly share code, notes, and snippets.

View neymarsabin's full-sized avatar
🏠
Working from home

Sabin neymarsabin

🏠
Working from home
View GitHub Profile
cy.server();
cy.route('POST', '**/csv_files').as('postFile');
cy.upload_file('.dropzone-title', 'bin_trade.xlsx');
cy.wait('@postFile');
@neymarsabin
neymarsabin / *github:gists*
Last active October 7, 2018 15:08
Cypress Upload a File
7428fa2... 10/07/18 20:50 public Cypress Upload a File
+ 61877cc... 09/08/17 11:35 public API JSON authentication with Devise
3740394... 07/30/17 09:57 public These are some of my project references in socialnetwork application in ruby on rails.
86c208e... 07/25/17 19:53 public
@neymarsabin
neymarsabin / registrations_controller.rb
Created September 8, 2017 05:50 — forked from jwo/registrations_controller.rb
API JSON authentication with Devise
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else
@neymarsabin
neymarsabin / project-references
Last active August 8, 2017 12:42
These are some of my project references in socialnetwork application in ruby on rails.
Project-references
http://blog.christianperone.com/2011/09/machine-learning-text-feature-extraction-tf-idf-part-i/
http://blog.christianperone.com/2011/10/machine-learning-text-feature-extraction-tf-idf-part-ii/
http://blog.christianperone.com/2013/09/machine-learning-cosine-similarity-for-vector-space-models-part-iii/
https://janav.wordpress.com/2013/10/27/tf-idf-and-cosine-similarity/
Some references for finding Similarity between documents:
Bird, S., Klein, E., & Loper, E. (2009). Natural language processing with Python: Analyzing text with the natural language toolkit. Sebastopol, CA: O’Reilly Media.
Liang, H. (2014). Coevolution of political discussion and common ground in web discussion forum. Social Science Computer Review, 32, 155-169. doi:10.1177/0894439313506844
Pang, B., & Lee, L. (2004). Sentiment polarity dataset version 2.0 [Data file]. Retrieved from http://www.nltk.org/nltk_data/
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., . . . Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825-2830. http://www.jmlr.org/papers/v12/pedregosa11a.html