Skip to content

Instantly share code, notes, and snippets.

View sagarpreet-chadha's full-sized avatar
💭
Happiness is a journey , not a destination .

Sagarpreet Chadha sagarpreet-chadha

💭
Happiness is a journey , not a destination .
View GitHub Profile
╔══════╦══════╦════════╗
║users ║ 5% ║ 95% ║
╠══════╬══════╬════════╣
║ 100 ║ 93 ║ 7 ║
║ 500 ║ 469 ║ 31 ║
║ 1500 ║ 1429 ║ 71 ║
║ 1500 ║ 1430 ║ 70 ║
╚══════╩══════╩════════╝
@sagarpreet-chadha
sagarpreet-chadha / indi.js
Created June 26, 2019 09:19
Problem Solved for scope .
L.LayerGroup.IndigenousLayers = L.LayerGroup.extend(
{
options: {
popupOnMouseover: false,
clearOutsideBounds: false,
target: '_self',
},
@sagarpreet-chadha
sagarpreet-chadha / mapKnitterLayer.js
Created June 26, 2019 08:22
Extending Layer in Mapknitter
L.Icon.MapKnitterIcon = L.Icon.extend({
options: {
iconUrl: 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png',
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
iconSize: [12, 21],
iconAnchor: [6, 21],
popupAnchor: [1, -34],
shadowSize: [20, 20]
}
});
@sagarpreet-chadha
sagarpreet-chadha / sagarpreet_chadha.md
Last active August 22, 2018 09:04
GSOC 2018 Work Product - Sagarpreet Chadha

GSoC with PublicLab

Finally, the GSoC coding period is coming to an end as I finish up my project. In this post I aim to summarize all of the work I have done during the past months.

GSoC 2018 Work Product - Sagarpreet Chadha

<div id="graph"></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var Data = {
nodes: [
{
id: 1,
<rss version="2.0">
<channel>
<title>Recent research notes on PublicLab.org</title>
<description>
Open source environmental science research at Public Lab
</description>
<link>https://publiclab.org/feed.rss</link>
<item>
<title>Kilimanjaro Citizen Science - KCS-1</title>
<author>cutlan</author>
@sagarpreet-chadha
sagarpreet-chadha / mypersonalfeed.rss
Last active January 10, 2018 19:37
Testing twitter recipe IFTTT
<rss version="2.0">
<channel>
<title>Recent research notes on PublicLab.org</title>
<description>
Open source environmental science research at Public Lab
</description>
<link>https://sagarpreet-chadha.github.io/feed.rss</link>
<image>
<url>https://publiclab.org/system/images/photos/000/023/122/medium/PIC2.jpg</url>
<title>Landofcode.com RSS</title>
package sagarpreet97.reminder;
import android.app.Activity;
import android.app.DialogFragment;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;