Skip to content

Instantly share code, notes, and snippets.

View ramyaragupathy's full-sized avatar
🗺️

Ramya ramyaragupathy

🗺️
View GitHub Profile
@jt
jt / merge.md
Created August 23, 2011 18:47
Merge a forked gist

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git://gist.github.com/1163142.git gist-1163142
    
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://gist.github.com/1164196.git
    
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@ruckus
ruckus / statistics.sql
Created June 5, 2013 23:26
Postgres statistics queries
** Find commmonly accessed tables and their use of indexes:
SELECT relname,seq_tup_read,idx_tup_fetch,cast(idx_tup_fetch AS numeric) / (idx_tup_fetch + seq_tup_read) AS idx_tup_pct FROM pg_stat_user_tables WHERE (idx_tup_fetch + seq_tup_read)>0 ORDER BY idx_tup_pct;
Returns output like:
relname | seq_tup_read | idx_tup_fetch | idx_tup_pct
----------------------+--------------+---------------+------------------------
schema_migrations | 817 | 0 | 0.00000000000000000000
user_device_photos | 349 | 0 | 0.00000000000000000000
@inosaint
inosaint / An incomplete list of Indian data viz enthusiasts.md
Last active May 27, 2016 05:27
An attempt to compile a directory of indians working in the world of data visualization
@ajzeigert
ajzeigert / index.html
Created January 21, 2016 21:56
Pulsing markers in Mapbox GL JS
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.2/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.2/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; font: 15px/20px sans-serif; }
@kepta
kepta / linter.md
Last active September 15, 2016 17:09

Setting up linters

Pre requisites

Basic setup

To setup a new project.

@tmcw
tmcw / README.md
Created March 31, 2017 02:01
Managing GitHub Watching en masse

Managing GitHub Watching

I decided to unwatch many repos in multiple organizations. Here are two scripts that I wrote to make that possible. It works like:

  1. I load GitHubAccessToken in my environment, an environment variable that gives these access
  2. I run node get-all-watched.js > all-watching.txt to dump all watching into a text file
  3. Run grep "^developmentseed" all-watching > developmentseed.txt, for instance, to make a text file of only repos in the developmentseed org that I'm watching
  4. Run node unwatch-file-of-repos.js developmentseed.txt to unwatch all those repos.
@DevKhokhar
DevKhokhar / indian_women_in_data.md
Last active December 23, 2021 09:22
List of Indian women who represent the data space in India and globally

Below is a list of Indian women who have contributed it to the data space in India and globally - be it Data Strategy, Data Engineering, Machine Learning, Artificial Intelligence, Data and Public Policy, or any other related field. Please feel free to add in the missing names. I have arranged the names alphabetically for easy searchability. Please do add the name, twitter handle (if available), linkedin profile (if available), link(s) to their public blogs/videos (if available) and the area of specialization. Also, don't forget to add in your name below to the link of contributors. This isn't an individual's effort - this will work only if more and more people contribute. Thanks!

*Note: I have started with just the Indian women here because I wanted to bring attention to some of the inspirational women at the national level. However, if you want to replicate it for any other country or even at a global level, please feel free to either add in into the same list (adding an additional column of course) or cr

@willemarcel
willemarcel / countries.json
Created June 20, 2018 12:38
hot website countries.json
---
layout:
---
{% capture countries_list %}
{% for country in site.where-we-work %}
{{ country.title }}::
{% for project in site.projects %}
{% if project.Country contains country.title %}