Skip to content

Instantly share code, notes, and snippets.

View nikhilbchilwant's full-sized avatar
🎯
Focusing

Nikhil nikhilbchilwant

🎯
Focusing
  • Saarbruecken
View GitHub Profile
1 book at 12.49
1 music CD at 14.99
1 chocolate bar at 0.85
1 imported box of chocolates at 10.00
1 imported bottle of perfume at 47.50
1 imported bottle of perfume at 27.99
1 bottle of perfume at 18.99
1 packet of headache pills at 9.75
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 7 columns, instead of 5. in line 8.
-0.999946731472807,-0.003250577037431079,8.063859626542223e-05,0.009795991358010769,-4.062566040432649e-06,126.201,
-0.999934838455267,-0.0035951706761868703,8.918709303731274e-05,0.01083446430247757,-4.493238625157716e-06,125.201,
-0.9999134100654938,-0.004144338364014195,0.00010281055464144708,0.012489444898878611,-5.179587532868385e-06,125.951,
-0.9998598922278656,-0.005271652849801863,0.0001307763762899738,0.015886738005109296,-6.588503394302076e-06,127.591,
-0.9997049743543068,-0.007649424324308065,0.00018976287368296436,0.02305242844941126,-9.560238422576475e-06,127.461,
-0.9984502864602299,-0.017526221359527312,0.0004347812317613186,0.0528173032047863,-2.1904243736549392e-05,125.571,
0.9966797523452127,-0.025642203976216808,0.0006361182368493839,0.07727575924485228,-3.204758597505911e-05,125.201,
0.9998130622282742,-0.006089184531771139,0.00015105726995204557,0.01835046466017733,-7.6102531974603965e-06,123.061,
0.9999480954950095,-0.0032086902406711936,7.959949076080647e-05,0.009669760632096682,-4.0102
@nikhilbchilwant
nikhilbchilwant / GridSearchCV logs
Last active September 11, 2019 09:28
We varied weighing parameters for features between the range (0,2) and found that the optimal is achieved at 'simple_tfidf': 0.2, 'profanity_analysis': 1.3
This file has been truncated, but you can view the full file.
precision recall f1-score support
NOT 0.50 0.36 0.42 500
OFF 0.50 0.64 0.56 500
accuracy 0.50 1000
macro avg 0.50 0.50 0.49 1000
weighted avg 0.50 0.50 0.49 1000
Fitting 3 folds for each of 8000 candidates, totalling 24000 fits
@nikhilbchilwant
nikhilbchilwant / .npmrc
Created December 16, 2018 11:19
Docker node-alpine .npmrc
;;;; Taken from https://gist.github.com/mrzool/a6184a3bff49fbec965c
;;;; Semicolon denotes comment
access=null
always-auth=false
also=null
bin-links=true
browser=null
ca=null
cafile=undefined
; cache=/Users/zool/.npm
@nikhilbchilwant
nikhilbchilwant / CommandNotes
Last active September 6, 2018 08:39
Commonlt used commands by developer working on Ubuntu 16.04 + Postgres + Java
Restart postgres server : /etc/init.d/postgresql restart
Get connection count : SELECT sum(numbackends) FROM pg_stat_database;
Get databases : \l
Quit psql : \q
Edit authorization : sudo vim /etc/postgresql/9.5/main/pg_hba.conf
Edit connections : sudo vim /etc/postgresql/9.5/main/postgresql.conf
Clean mven local repository : mvn dependency:purge-local-repository
@nikhilbchilwant
nikhilbchilwant / openAAS_Demo_17_10_20.log
Created January 3, 2018 12:29
Complete log of erros
/*********************************************************************
======================================================================
Datei : ../../../../addonlibs/administration/FBD/openAAS_Demo_17_10_20.log
Laden der Datenbasis
Ereignisprotokoll vom 2018-01-03 17:49:15
HOST : localhost:7509
@nikhilbchilwant
nikhilbchilwant / HibernateConfig
Created October 29, 2017 14:09
A skeleton of Hibernate Config class
@Configuration
@ComponentScan(value={"package"})
@EnableTransactionManagement
public class HibernateConfig {
@Autowired
private Environment env;
private Properties getHibernateProperties() throws AppConfigException{
//read properties from config file. I'm not not pasting whole source code here
@nikhilbchilwant
nikhilbchilwant / privacy.txt
Created November 13, 2016 11:25
Will I Find Ride Privacy Policy
This is experimental app. We we'll try not to mess up with your data but hey, no guarantee.
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Stack;
public class Solution {
public static Scanner sc = new Scanner(System.in);
public static Stack<Solution.Node> stack = null;
public static int ans = -1;
public static void main(String[] args){