Skip to content

Instantly share code, notes, and snippets.

@sanjayts
sanjayts / work-with-multiple-github-accounts.md
Last active February 29, 2024 15:40 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

The setup can be done in 5 easy steps:

Step 1

Create SSH keys for all accounts

First make sure your current directory is your .ssh folder.

@sanjayts
sanjayts / house.py
Created July 1, 2011 06:48
draw house in gasp
import sys
from gasp import * # import everything from the gasp library
def draw_house_colored(x, y):
begin_graphics(1024, 768, "Game", color.BLACK) # open the graphics canvas
Box((x + 20, y + 20), 100, 100, True, color.BLUE) # the house
Box((x + 55, y + 20), 30, 50, True, color.GREEN) # the door
Box((x + 40, y + 80), 20, 20, True, color.YELLOW) # the left window
Box((x + 80, y + 80), 20, 20, True, color.YELLOW) # the right window
#include <stdio.h>
int main(int argc, char* argv[]) {
printf("Hello world!");
return 0;
}