Skip to content

Instantly share code, notes, and snippets.

View Fahad021's full-sized avatar

Fahad Abul Fahad021

View GitHub Profile
@Fahad021
Fahad021 / jupyter-as-a-desktop-app.md
Created September 26, 2021 23:57 — forked from xiaolai/jupyter-as-a-desktop-app.md
Run Jupterlab as an desktop app

How to run Jupyterlab as a desktop app on Mac OSX

Tired of opening terminal to launch Jupyterlab, and having to leave it opened all the time? Try to run Jupyterlab as a desktop app:

nativefier-jupyterlab

One of a benefits is avoiding the annoying accident: "closed Jupyterlab when quitting the browser".

1. Install Miniconda for mac

@Fahad021
Fahad021 / install_packages.sh
Created April 19, 2021 23:38 — forked from luiscape/install_packages.sh
Install Python dependency packages from requirements.txt using conda.
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
@Fahad021
Fahad021 / clustering-time-series-data.R
Created March 19, 2019 16:39
Clustering Time Series Data
library(quantmod)
symbols = c('A', 'AAPL', 'ADBE', 'AMD', 'AMZN', 'BA', 'CL', 'CSCO', 'EXPE', 'FB', 'GOOGL',
'GRMN', 'IBM', 'INTC', 'LMT', 'MSFT', 'NFLX', 'ORCL', 'RHT', 'YHOO')
start = as.Date("2014-01-01")
until = as.Date("2014-12-31")
# Grab data, selecting only the Adjusted close price.
#
stocks = lapply(symbols, function(symbol) {