Skip to content

Instantly share code, notes, and snippets.

View element824's full-sized avatar

Koushik Nagarajan element824

View GitHub Profile
@element824
element824 / GIT Git
Created October 26, 2015 21:53
Command to unset git proxy settings
git config --global --unset http.proxy
git config --global --unset https.proxy
@element824
element824 / ggforce
Created November 26, 2016 01:38
ggplot
install.packages("ggplot2")
install.packages("ggforce")
library(ggplot2)
library(ggforce)
pie <- data.frame(
state = c('eaten', 'eaten but said you didn\'t', 'cat took it', 'for tonight', 'will decompose slowly'),
focus = c(0.2, 0, 0, 0, 0),
start = c(0, 1, 2, 3, 4),
end = c(1, 2, 3, 4, 2*pi),
amount = c(4,3, 1, 1.5, 6),
/*
- Introduction to Microsoft R Service in SQL Server 2016 (Part 1)
- Author: Tomaž Kaštrun (twitter: @tomaz_tsql | blog: http://tomaztsql.wordpress.com
- Published: SQL Server Central http://www.sqlservercentral.com
- Date: 24.08.2016
*/
USE WideWorldImporters;
Type in this code in RStudio and a list of all the data sets that are included with all the packges you have installed will come up:
data(package = .packages(all.available = TRUE))
@element824
element824 / .block
Last active June 7, 2018 06:15
Sankey test
license: mit
license: mit
@element824
element824 / .DS_Store
Last active June 7, 2018 06:31
d3 | Parallel Coordinates
Bud1%
@element824
element824 / docker and sql server
Created April 24, 2019 20:13
docker and sql server
docker pull mcr.microsoft.com/mssql/server:2019-CTP2.5-ubuntu
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Pass@Word1" -p 21143:1433 --name sql19-25t -v SQL2019:/var/opt/mssql -d mcr.microsoft.com/mssql/server:2019-CTP2.5-ubuntu
docker cp C:\Temp\WideWorldImporters-Full.bak fed5e2a1b82c:/var/opt/mssql/data/
@element824
element824 / customvis.py
Created October 31, 2019 04:30 — forked from staceymakes/customvis.py
Custom Vision API Prediction - PYthon
import requests
import json
url="YOUR_PREDICTION_ENDPOINT _ AVAIL customvision.ai"
headers={'content-type':'application/octet-stream','Prediction-Key':'YOUR_PREDICTION_KEY'}
r =requests.post(url,data=open("YOUR_LOCAL_IMAGE.jpg","rb"),headers=headers)
print(r.content)
@element824
element824 / IgniteDownloader.ps1
Created November 9, 2019 23:45 — forked from ddneves/IgniteDownloader.ps1
Ignite Downloader
#########################################################################################
## Author: David das Neves
## Date: 09.11.2019
## Description: Filtering of Ignite session files with OutGridView
## Downloading with 10 downloads in parallel including resume functionality
#########################################################################################
# Start PowerShell as admin
#via code: Start-Process powershell -Verb runAs