Skip to content

Instantly share code, notes, and snippets.

View git-ashish's full-sized avatar
🏠
Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

🏠
Freelancing – Open to exciting opportunities
View GitHub Profile
@git-ashish
git-ashish / index.html
Created April 23, 2019 15:19
.Astronomy Star Chart
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<style>
body {
background: black;
}
@git-ashish
git-ashish / README.md
Created April 22, 2019 13:12 — forked from skokenes/README.md
Scatterplot with Lasso

This example demonstrates incorporating the d3 lasso plugin with a d3 scatterplot. Clicking and dragging on the plot area will produce a lasso that can be used to hover or loop around the dots in the scatterplot. Functions are then executed based on whether dots were selected or not.

The lasso plugin can be found here.

@git-ashish
git-ashish / MySQL_5-7_macOS.md
Created April 9, 2019 11:25 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@git-ashish
git-ashish / plotting_avg_temp.md
Created March 26, 2019 07:11 — forked from vkoul/plotting_avg_temp.md
Average Monthly Temp in Germany between 1881-1991 and 2008-2018

loading the libraries

library(ggplot2)
library(readr)
library(tidyverse)
library(lubridate)

loading the data

@git-ashish
git-ashish / README.md
Created March 17, 2019 18:26 — forked from veltman/README.md
Directional arrows
@git-ashish
git-ashish / .block
Created February 6, 2019 08:35 — forked from mbostock/.block
Point-Along-Path Interpolation
license: gpl-3.0
@git-ashish
git-ashish / .block
Created February 6, 2019 08:30 — forked from mbostock/.block
Stroke Dash Interpolation
license: gpl-3.0
@git-ashish
git-ashish / .block
Created December 5, 2018 17:41 — forked from arpitnarechania/.block
Condegram Spiral Plot
license: MIT
@git-ashish
git-ashish / gist:1fdbfca9a4238bb922b3f435f857082f
Created November 30, 2018 05:24 — forked from Pindar/gist:7319399
Restore database from bz2 file
bunzip2 < serverdb.sql.bz2 | mysql -h example.com -P 3306 -u USERNAME -p DATABASE_NAME
@git-ashish
git-ashish / data.json
Last active November 24, 2018 12:17
Sample dataset for Hierarchical layouts
{"key":"","depth":0,"iDepth":0,"values":[{"key":"Telecom","values":[{"key":"Application","values":[{"key":"Business Application","values":[{"key":"Finance","depth":4,"iDepth":4,"uid":4,"color":"#843c39","Amount (TC)-net":50137.74,"Amount (TC)":50137.74,"REF_Amount":"USD"},{"key":"Human Resources","depth":4,"iDepth":4,"uid":6,"color":"#7b4173","Amount (TC)-net":29306.85,"Amount (TC)":29306.85,"REF_Amount":"USD"},{"key":"Information Technolo","depth":4,"iDepth":4,"uid":8,"color":"#9c9ede","Amount (TC)-net":42937.92,"Amount (TC)":42937.92,"REF_Amount":"USD"},{"key":"Manufacturing & Dist","depth":4,"iDepth":4,"uid":10,"color":"#8c6d31","Amount (TC)-net":43197.3,"Amount (TC)":43197.3,"REF_Amount":"USD"},{"key":"Product Development","depth":4,"iDepth":4,"uid":12,"color":"#ce6dbd","Amount (TC)-net":46581.36,"Amount (TC)":46581.36,"REF_Amount":"USD"},{"key":"Sales & Marketing","depth":4,"iDepth":4,"uid":14,"color":"#ad494a","Amount (TC)-net":37592.61,"Amount (TC)":37592.61,"REF_Amount":"USD"}],"depth":3,"iDepth":3,"u