alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
chrome --headless --disable-gpu --remote-debugging-port=9222
| databricks/dolly-v2-12b model : https://huggingface.co/databricks/dolly-v2-12b | |
| python 3.10.6 download link : https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe | |
| install it into your C drive directly better - make sure to add path | |
| git download link : https://git-scm.com/downloads | |
| git large download link : https://git-lfs.com/ |
| cd /tmp | |
| wget http://rsync.samba.org/ftp/rsync/src/rsync-3.1.1.tar.gz -O - | tar xz | |
| cd *rsync* | |
| ./configure | |
| make | |
| sudo make install | |
| make clean |
| copy/delete word under cursor in Vim | |
| yw / byw | |
| Assuming that the cursor is at the first character of the word simply do this in command mode: | |
| yw | |
| y is for yank and w is for word. | |
| Other ways of doing the same thing which are not as efficient: | |
| vey | |
| the v starts visual select mode. e tells vim to move to end of word. y yanks or copies the word. to delete replace y with x. |
| drop table if exists student; | |
| create table student ( | |
| sno integer, | |
| sname varchar(10), | |
| age integer | |
| ); | |
| drop table if exists courses; | |
| create table courses ( | |
| cno varchar(5), |
| """Information Retrieval metrics | |
| Useful Resources: | |
| http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
| http://www.nii.ac.jp/TechReports/05-014E.pdf | |
| http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
| http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
| Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
| """ | |
| import numpy as np |
| #!/usr/bin/python | |
| # | |
| # See http://stackoverflow.com/questions/1016997/generate-from-generators | |
| # | |
| # Equivalent implementation in Python of this Haskell code: | |
| # | |
| # grandKids generation kidsFunc val = | |
| # iterate (concatMap kidsFunc) [val] !! generation | |
| from itertools import chain, islice, imap |