Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Git

Github CLI: Brings GitHub to your Terminal

If you create a local folder before creating a GitHub repository for it, you might need to go to the GitHub website then create a new repository, then add a remote to your current folder. Is there any way that all of these steps could be done in the terminal in 1 line of code?
That is when GitHub CLI  comes in handy. The code snippet above shows how to create a new Github repository in your local folder.
With GitHub CLI, you can also manage your pull requests, issues, repositories, gists, and so much more! Check out GitHub CLI here.Favorite

Github CLI: Brings GitHub to your Terminal Read More »

github1s: Read GitHub Code with VS Code on your Browser in One Second

Syntax highlighting in VS Code makes it easy for you to understand the source code. Is there a way that you can read GitHub code with VS Code in 1s?
Yes, there is. Simply replace github.com/yourname/repository with github1s.com/yourname/repository to view Github with VS Code. It should show up like above.
 

Source Code
Favorite

github1s: Read GitHub Code with VS Code on your Browser in One Second Read More »

PyGithub: Manage your Github resources using Python

If you want to manage your Github resources (repositories, user profiles, organizations, etc.) from Python scripts, try PyGithub. Above is an example to get a list of Github repositories when searching for a certain topic.
You just need Github object your Github account to get almost any information on Github.
I used PyGithub along with other Python libraries to scrape more than 1k top machine learning Github profiles.
Find more on how to use PyGithub here.
 
 Favorite

PyGithub: Manage your Github resources using Python Read More »

Pull one file from another branch using git

Pull the files from another branch into your branch can be messy. What if you just want to pull one file from another branch? You can easily to like that with the code snippet below

git fetch command downloads contents from remote repository
git checkout command lets you navigate to another branch
git add command adds a change in the working directory to the staging area
git commit command captures the state of a project at that point in time

Now you just update one file in your branch without messing with the rest!Favorite

Pull one file from another branch using git Read More »

Download a file on Github using wget

If you want to download a file on Github such as a csv file, instead of cloning the repo, simply use the code snippet above. For example, if the website the file you want to extract is ‘https://github.com/khuyentran1401/Data-science/blob/master/visualization/dropdown/population.csv’, type:
wget https://raw.githubusercontent.com/khuyentran1401/Data-science/master/visualization/dropdown/population.csv
Now the data is in your directory!Favorite

Download a file on Github using wget Read More »

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran