Skip to content

Instantly share code, notes, and snippets.

View thehoneymad's full-sized avatar
🎯
Focusing

Swagata Prateek thehoneymad

🎯
Focusing
  • AWS
  • Vancouver
  • 03:20 (UTC -07:00)
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
STATE POPESTIMATE2019 lat long
Alabama 4903185 32.377716 -86.300568
Alaska 731545 58.301598 -134.420212
Arizona 7278717 33.448143 -112.096962
Arkansas 3017804 34.746613 -92.288986
California 39512223 38.576668 -121.493629
Colorado 5758736 39.739227 -104.984856
Connecticut 3565287 41.764046 -72.682198
Delaware 973764 39.157307 -75.519722
District of Columbia 705749 38.89511 -77.03637
{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-123.067946,49.000653],[-123.06794793954228,49.00077057812272],[-123.06794987634042,49.000887989891375],[-123.06795142072362,49.00098161284463],[-123.06795309852322,49.001083323712514],[-123.06795473033887,49.00118224695927],[-123.06795635054661,49.00128046651755],[-123.06795722829034,49.00133367673169],[-123.06795930625933,49.00145964650025],[-123.0679603033769,49.00152009334603],[-123.06796189067583,49.00161631791899],[-123.06796412996547,49.00175206720193],[-123.06796463198333,49.00178250031893],[-123.06796619632453,49.001877333157886],[-123.06796762500225,49.00196394186268],[-123.06796830576688,49.002005210891944],[-123.06796997601964,49.00210646425744],[-123.0679717970065,49.00221685536354],[-123.06797306154566,49.00229351372897],[-123.06797395763606,49.00234783614666],[-123.06797588495603,49.002464673333876],[-123.06797665131253,49.00251113107837],[-123.06797801928326,49.002594059628635],[-123.06798035511032,49.00273566116255],[-123.06798
@thehoneymad
thehoneymad / DataCat.md
Last active February 12, 2017 19:54
DataCat plans

Background:

TaskCat needs a dedicated reporting micro-service. This epic should serve as the accumulator of all the associated work with TaskCat reporting. This background serves as a proposal for TaskCat reporting system.

Components and protocols

| Database | Mongodb | | Data-interchange format | JSON | | Front-end framework | Angular2 | | Charting tool Suggestion | D3.js, chart.js | | Api Layer | Asp.net Web Api 2.2 or Asp.net core |

@thehoneymad
thehoneymad / JobsPerDay.json
Last active February 12, 2017 15:17
Jobs per day
[
{
"_id": {
"CreateDate": {
"$date": 1483920000000
}
},
"count": 4,
"jobs": [
"Job-YEAQ5ULD",
@thehoneymad
thehoneymad / testController.cs
Last active February 5, 2017 10:27
Testing out .net core routing
namespace RocheClinicalTrial.Controllers
{
[AllowAnonymous]
[Route("api/[controller]")]
public class RocheClinicalTrialController : Controller
{
// GET: api/values
[HttpGet]
public JsonResult Get()
{
/**
* Definition for an interval.
* public class Interval {
* public int start;
* public int end;
* public Interval() { start = 0; end = 0; }
* public Interval(int s, int e) { start = s; end = e; }
* }
*/
public class Solution {
/**
* Definition for an interval.
* public class Interval {
* public int start;
* public int end;
* public Interval() { start = 0; end = 0; }
* public Interval(int s, int e) { start = s; end = e; }
* }
*/
public class Solution {
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MergeIntervals
{
class Program
{
public static IList<Interval> Merge(IList<Interval> intervals)
{
@thehoneymad
thehoneymad / MedianOfTwoArrays.py
Created November 4, 2016 11:35
Get median of two sorted same sized array
# Im trying with same sized array here
array1 = [10,11,12,18,20]
array2 = [2,5,8,15,19]
def GetMedianOfTwoArrays(array1, array2, a1Start, a1End, a2Start, a2End):
# Find medians from the two arrays
m1 = (a1Start + a1End) / 2
m2 = (a2Start + a2End) / 2