Skip to content

Instantly share code, notes, and snippets.

@yashbedi
yashbedi / switch_git_profile.sh
Created September 13, 2023 19:33
Script for switching between git profiles, bash script, seamless switching, changing git accounts,
#!/bin/bash
# Define profile names and corresponding Git configuration values
profile1_name="Personal"
profile1_username="YOUR_USER_NAME"
profile1_email="YOUR_EMAIL_PERSONAL"
profile2_name="Work"
profile2_username="YOUR_USER_NAME"
@yashbedi
yashbedi / textViewWithEmailAndPhone.swift
Last active September 14, 2017 12:38
Working Code For UITextView With Email And Phone . in Swift 3 ,100% crash proof code.
// Created by yash bedi on 09/05/17.
// Copyright © 2017 yash bedi. All rights reserved
// textViewWithEmailAndPhone.swift
import UIKit
import MessageUI
class ViewController: UITextViewDelegate, MFMailComposeViewControllerDelegate{
@IBOutlet weak var infoTextView: UITextView!
var email = "yourEmail@domain.com"
<!DOCTYPE html>
<html>
<head><title>content list</title>
<link href='http://fonts.googleapis.com/css?family=Julius Sans One:400,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Special Elite|Satisfy' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Economica:400,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="file.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Metal Mania:400,300' rel='stylesheet' type='text/css'>
<style>
a:link { font-family: 'Economica' ,sans-serif;
body {
background:#FFFFFF;
}
h1 {
font-family: 'Julius Sans One' ,sans-serif;
text-transform: uppercase;
color: #CC0052;
text-indent: 150px;
font-size: 30px;