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 / copy_clipboard.sh
Last active February 11, 2024 19:01
windows git bash (copy from clipboard)
# from terminal to clipboard
echo "hello world" > /dev/clipboard
pass show personal/loom |head -n 1 > /dev/clipboard
# from clipboard to terminal
cat /dev/clipboard > save.txt
@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 / .zshrc
Created November 1, 2023 21:12
remove background color WSL terminal ls command
#Change ls colours
LS_COLORS="ow=01;36;40" && export LS_COLORS
#make cd use the ls colours
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
autoload -Uz compinit
compinit
@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