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 / 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 / README.md
Created November 13, 2018 07:52 — forked from asizer/README.md
d3 Horizontal BoxPlot

This sample is based on Mike Bostock's Box Plots. The box.js file has been modified in a number of ways besides making the box plots horizontal: the transitions have been removed, the 1.5 iqr function is included as the default to compute the whisker length, data objects are attached to the whisker ends and outlier dots (instead of just the values), and there are transparent q1-q2 and q2-q3 boxes that contain those respective data points for possible future use.

Hovering over outlier dots in the boxplot highlights them on the table and vice-versa. This also demonstrates a move-to-front functionality -- when an outlier circle is highlighted, it is moved to the end of the svg's elements so that it appears on top of the other outliers.

Also, the axis rounds its range to intervals that go into a power of 10 (see the cleanUpChartRange function).

The variable being plotted is a generated logNoraml distribution, to demonstrate outliers more prominently (sometimes there are so many, the table gets cut

@git-ashish
git-ashish / index.html
Created November 8, 2018 13:25 — forked from jasondavies/index.html
longscroll.js
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.longscroll {
overflow-y: auto;
width: 480px;
height: 500px;
float: left;
}
.longscroll .row {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.