Skip to content

Instantly share code, notes, and snippets.

View sxflynn's full-sized avatar

Stephen Flynn sxflynn

View GitHub Profile
@sxflynn
sxflynn / move-to-github.md
Last active September 23, 2024 11:18
How to port your GitLab repo to GitHub, step by step

Move your Gitlab repository to GitHub

Why move to GitHub?

If you are a coding bootcamp student that has been building projects and solving exercises in a private GitLab repository that is controlled by another organization, then you might want to move your work to GitHub to preserve what you have done and learned, and make your work more visible to other developers in the community, and employers.

The GitHub profile is a great way to market yourself as a developer. You can pin repos to the top that you want to highlight to the community. It also has data visualizations on your contribution history to repo projects. Fortunately, if you have been making contributions to private repos in GitLab, all of your commit history will transfer to this graph.

Directions

  1. cd into your existing Gitlab repository that you want to move to Github.
  • This is what mine looked like:
@sxflynn
sxflynn / election.py
Created November 27, 2021 06:18
Upper Arlington 2021 School Board Election simulator
import random
import secrets
import time
start_time = time.time()
print ("Welcome to the November 2021 Upper Arlington School Board Election simulation!")
print ("In Nov 2020, there were 24,622 ballots cast. 61.5% for Biden and 36.7% for Trump, and 1.8% for others. In other races, 49.1% voted for State Senator Kunze(R), and 50.9% voted for Rep. Stivers(R). In previous November elections, 23,309 ballots were cast in 2016, 15,526 in 2017, 21,043 in 2018 and 9,556 in 2019.")
print ("Let's run a simulation of the upcoming school board election.")
demPrefs = {'Liz': .02, 'Lou': .05, 'Nidhi':.98, 'Scott':.40, 'Carol':.70}
indPrefs = {'Liz': .20, 'Lou': .45, 'Nidhi':.35, 'Scott':.70, 'Carol':.45}