Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Happiness is a journey , not a destination .

Sagarpreet Chadha sagarpreet-chadha

💭
Happiness is a journey , not a destination .
View GitHub Profile
View gist:3de1dcd10dc94293dfda4f3c2fe7261f
╔══════╦══════╦════════╗
║users ║ 5% ║ 95% ║
╠══════╬══════╬════════╣
║ 100 ║ 93 ║ 7 ║
║ 500 ║ 469 ║ 31 ║
║ 1500 ║ 1429 ║ 71 ║
║ 1500 ║ 1430 ║ 70 ║
╚══════╩══════╩════════╝
@sagarpreet-chadha
sagarpreet-chadha / indi.js
Created Jun 26, 2019
Problem Solved for scope .
View indi.js
L.LayerGroup.IndigenousLayers = L.LayerGroup.extend(
{
options: {
popupOnMouseover: false,
clearOutsideBounds: false,
target: '_self',
},
@sagarpreet-chadha
sagarpreet-chadha / mapKnitterLayer.js
Created Jun 26, 2019
Extending Layer in Mapknitter
View mapKnitterLayer.js
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 Aug 22, 2018
GSOC 2018 Work Product - Sagarpreet Chadha
View sagarpreet_chadha.md

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

View graph.html
<div id="graph"></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var Data = {
nodes: [
{
id: 1,
View rssatomtesting.atom
<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 Jan 10, 2018
Testing twitter recipe IFTTT
View mypersonalfeed.rss
<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>
View AddListview_activity.java
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;