Skip to content

Instantly share code, notes, and snippets.

View Yousuf28's full-sized avatar
🎯
Building R Shiny App

Yousuf Ali Yousuf28

🎯
Building R Shiny App
View GitHub Profile
@Yousuf28
Yousuf28 / gist:3fa376910772acdd5495fad7448abe2d
Created February 28, 2024 23:46 — forked from BillRaymond/gist:b39ae5d862aa81a250b70b812bd5d1cc
Dockerfile to build a specific version of Python and set it as the default using Deadsnakes
####
# Specify the OS you want to run the Docker container in
# For the latest version of Ubuntu, use:
# FROM ubuntu:latest
# Learn more about this Ubuntu image, and versions (tags):
# https://hub.docker.com/_/ubuntu
####
FROM ubuntu:22.04
#####
@Yousuf28
Yousuf28 / matplotlibrc
Created January 17, 2024 15:57 — forked from jsoma/matplotlibrc
sample default matplotlibrc file from matplotlib
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overwritten in your next install.
# If you want to keep a permanent local copy that will not be
# overwritten, place it in the following location:
# unix/linux:
# $HOME/.config/matplotlib/matplotlibrc or
@Yousuf28
Yousuf28 / README.md
Created January 10, 2024 04:57 — forked from sebnyberg/README.md
Emacs 29 MacOS setup
@Yousuf28
Yousuf28 / build_emacs-nox.md
Created December 27, 2023 14:12 — forked from lopesivan/build_emacs-nox.md
Build emacs

Build emacs

A one-liner to install all dependencies is:

$ sudo apt update
$ sudo apt install build-essential libgtk-3-dev libgnutls28-dev \
  libtiff5-dev libgif-dev libjpeg-dev libpng-dev libxpm-dev \
 libncurses-dev texinfo \
@Yousuf28
Yousuf28 / list_proj_pkgs.R
Created November 27, 2023 20:33 — forked from joelnitta/list_proj_pkgs.R
List all functions and packages used by R scripts in a project
# List all functions and packages used by R scripts in a project.
library(NCmisc)
# IMPORTANT: Also load any libraries used by the project
# Make list of all functions by package
funcs <-
list.files(here::here(), pattern ="\\.R$", recursive = TRUE, full.names = TRUE) %>%
map(list.functions.in.file) %>%
flatten
@Yousuf28
Yousuf28 / tmux-cheatsheet.markdown
Created November 18, 2023 01:42 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Yousuf28
Yousuf28 / tmux.conf
Created November 5, 2023 23:39 — forked from atelic/tmux.conf
A vim-friendly tmux config
# change prefix to Ctrl-a (like in gnu-screen)
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# shell
set -g default-command /bin/zsh
set -g default-shell /bin/zsh
@Yousuf28
Yousuf28 / DataFrameSearch.py
Created September 26, 2023 02:21 — forked from RamonWill/DataFrameSearch.py
The code from my tutorial series on how to create a CSV/Dataframe viewer in Tkinter
# Tutorial playlist https://www.youtube.com/playlist?list=PLCQT7jmSF-LrwYppkB3Xdbe6QC81-ozmT
import tkinter as tk
from pathlib import Path
from tkinter import ttk
from TkinterDnD2 import DND_FILES, TkinterDnD
import pandas as pd
@Yousuf28
Yousuf28 / README.md
Created November 11, 2022 05:11 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@Yousuf28
Yousuf28 / 01.bash_shortcuts_v2.md
Last active October 5, 2022 17:14 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description terminal R vscode
ctrl + a Goto BEGINNING of command line HOME HOME