Skip to content

Instantly share code, notes, and snippets.

View rgherta's full-sized avatar
🥴

Roman Gherta rgherta

🥴
View GitHub Profile
@zhensongren
zhensongren / uninstall_python3.MD
Last active April 12, 2024 23:39
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

@PurpleBooth
PurpleBooth / README-Template.md
Last active May 1, 2024 17:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@eddieajau
eddieajau / extractColumn.js
Created August 12, 2014 23:49
Extract a column from an array of JavaScript objects.
function extractColumn(arr, column) {
function reduction(previousValue, currentValue) {
previousValue.push(currentValue[column]);
return previousValue;
}
return arr.reduce(reduction, []);
}
@abhiin1947
abhiin1947 / Youtube intent
Created January 20, 2013 16:56
A method to pass an intent to youtube app on android
void watch_video(String url)
{
Intent yt_play = new Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(yt_play);
}