Skip to content

Instantly share code, notes, and snippets.

View ashishtomer's full-sized avatar
💭
Get busy living or get busy dying.

Ashish Tomer ashishtomer

💭
Get busy living or get busy dying.
  • Bengaluru
View GitHub Profile
@ashishtomer
ashishtomer / BarChartWithScale.html
Created June 15, 2017 04:11
Creating the bar charts with scaling
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<script>
var dataArray = [120, 40, 50, 160];
@ashishtomer
ashishtomer / GraphWithAxes.html
Created August 9, 2017 11:31
D3 scatterplot chart with scales and axes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="d3/d3.v4.min.js"></script>
<title>Graph With Axes</title>
</head>
<body>
<script type="text/javascript">
@ashishtomer
ashishtomer / SeedLinkExtractorActor.scala
Last active January 8, 2018 17:04
The actor which extracts the links from the seed pages (which are opened when we click the seed links).
package com.jobllers.service.jobsscrapper.impl.scrapper.actors
import akka.actor.{Actor, PoisonPill, Props}
import com.jobllers.service.jobsscrapper.impl.scrapper.actors.JobLinkExtractorActor.JobPageCrawlInfo
import com.jobllers.service.jobsscrapper.impl.scrapper.actors.SeedLinkExtractorActor.{FileName, SeedPage, SeedPageCSVDirectory, SeedPageOptional}
import com.jobllers.service.jobsscrapper.impl.scrapper.actors.SeedLinkExtractorActorChild.{GetSeedLinksFromPage, SendSeedLinks}
import com.jobllers.service.jobsscrapper.impl.scrapper.naukri.Headers
import com.jobllers.service.jobsscrapper.impl.scrapper.util.RemoteContentPuller
import org.joda.time.DateTime
import org.jsoup.Jsoup
@ashishtomer
ashishtomer / JobLinkExtractorActor.scala
Created January 8, 2018 17:20
This class extracts the jobs from the job listing website.
package com.jobllers.service.jobsscrapper.impl.scrapper.actors
import java.io.IOException
import java.util.concurrent.TimeoutException
import akka.actor.{Actor, Props}
import com.jobllers.service.jobsscrapper.impl.scrapper.actors.JobLinkExtractorActor.JobPageCrawlInfo
import com.jobllers.service.jobsscrapper.impl.scrapper.actors.JobLinkExtractorChildActor.CrawlJobPage
import com.jobllers.service.jobsscrapper.impl.scrapper.naukri.Headers
import com.jobllers.service.jobsscrapper.impl.scrapper.util.RemoteContentPuller
@ashishtomer
ashishtomer / git-maven-howto.md
Created November 2, 2019 19:32 — forked from fernandezpablo85/git-maven-howto.md
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository

Cd into it

@ashishtomer
ashishtomer / GradesCodec.java
Created February 15, 2021 09:50 — forked from JaiHirsch/GradesCodec.java
MongoDB 3.0 java driver Codec example - Codec class for the mapping the Grades bean
package org.scratch;
import org.bson.BsonReader;
import org.bson.BsonString;
import org.bson.BsonValue;
import org.bson.BsonWriter;
import org.bson.Document;
import org.bson.codecs.Codec;
import org.bson.codecs.CollectibleCodec;
import org.bson.codecs.DecoderContext;