Skip to content

Instantly share code, notes, and snippets.

View rahulaga's full-sized avatar

Rahul rahulaga

View GitHub Profile
@rahulaga
rahulaga / reviews.csv
Last active May 1, 2021 18:15
ecommerce reviews data sample
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 7 columns, instead of 4. in line 3.
Age,Title,Review_Text,Recommended_IND,Division_Name,Department_Name,Class_Name
38,"Quality blouse, runs very large","I'm an xl in all retailer tops, and sometimes the xl are still too small to fit loosely; i don't like to wear tight clothes. having said that, i had to purchase this top in a size small because it was just cut so large. the sleeves hang a bit odd if you don't get the correct size. i love the feel of the blouse, the fabric is a nice quality. i recommend giving it a try but have patience during the process of figuring out the size that will look best on you in this blouse.",1,General,Tops,Knits
38,,,1,Initmates,Intimate,Swim
58,Fly away sides,I waited a long time to get this top. unfortunately i will be returning. the sides are gathered and stick out a lot on the sides. not as pictured. the sides should have been pleated. it runs smaller in the bust and when closed it was a little snug. afraid this might shrink with dry cleaning or washing. the design is unique and wish this top would of worked.,
@rahulaga
rahulaga / telepresence-minikube.sh
Created September 21, 2018 17:32
Telepresence and Minikube
#Install
$brew cask install osxfuse && brew install socat datawire/blackbird/telepresence
#Telepresence
#svc-name - get NAME from: kubectl get svc
#namespace - if you need one
#minikube-port - same kubectl command above show this under PORT(S)
#local-port - where you are running your local server
$ telepresence --swap-deployment <svc-name> --namespace <namespace> --expose <minikube-port>:<local-port> --run-shell --method inject-tcp
@rahulaga
rahulaga / s3upload.java
Created August 17, 2018 16:31
S3 file upload to pre-signed url
//generate as described in S3 docs
URL url = s3Client.generatePresignedUrl(generatePresignedUrlRequest);
String presignedURL = url.toString();
System.out.println(presignedURL);
//upload gzip resource
Resource resource = new ClassPathResource("file.gz");
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
XClustXS. XClust. Xyleme. SPL. Cupid. MOMIS.
XML Schema (XS)/DTD. XS. DTD. DTD. DTD. DTD. Semi/Structured data.
Simplification. Yes. Yes. No. Yes. No. No.
Match Names. Yes. Yes. Yes. Yes. Yes. Yes.
Handle Linguistics. Yes. Yes. Yes. Yes. Yes. Yes.
Domain Specific. Yes. No. No. No. Yes. No.
Consider Cardinality. Yes. Yes. Yes. Yes. Yes. No.
Consider Type. Yes. No. No. No. Partly. No.
Consider Namespace. Yes. No. No. No. No. No.
Handle Recursion. Yes. Yes. No. Yes. No. No.
Domain. XClust. XClustXS.
Car Rentals. 44%. 30%.
Hospitals. 14%. 10%.
Property. 28%. 21%.
Hotels. 30%. 23%.
(AB)C. D.
(AB)C. 0.0. 0.6.
D. 0.6. 0.0
AB. C. D.
AB. 0.0. 0.8. 0.6.
C. 0.8. 0.0. 0.4.
D. 0.6. 0.4. 0.0
A. B. C. D.
A. 0.0. 0.9. 0.8. 0.5.
B. 0.9. 0.0. 0.7. 0.6.
C. 0.8. 0.7. 0.0. 0.4.
D. 0.5. 0.6. 0.4. 0.0
Range Dynamic Static
0.1 4451 5878
0.2 988 1079
0.3 620 558
0.4 566 248
0.5 206 129
0.6 362 64
0.7 356 32
0.8 225 7
0.9 117 4
Processes. tstartup. tcomm1. tcomp. tcomm2.
3. 0.0043851. 0.0004821. 0.00025745. 0.0012721.
4. 0.0044841. 0.0006681. 0.0003396. 0.0013311.
5. 0.0043731. 0.0009441. 0.00040575. 0.0007391.
6. 0.0042731. 0.0008021. 0.0004609. 0.0010651.
7. 0.0042291. 0.0009941. 0.0005905. 0.0012221.
8. 0.0044671. 0.0011061. 0.0005082. 0.0015261.
9. 0.0041731. 0.0012171. 0.00062735. 0.0040601.
10. 0.0045411. 0.0017761. 0.0006045. 0.0070911.
11. 0.0047231. 0.0015631. 0.00067765. 0.0031441.