Skip to content

Instantly share code, notes, and snippets.

View FlashNoob98's full-sized avatar
🎯
Focusing

Daniele Olivieri FlashNoob98

🎯
Focusing
  • Naples
View GitHub Profile
@santoshmn26
santoshmn26 / turtle_calculator.py
Created November 14, 2017 21:55 — forked from joetechem/turtle_calculator.py
Two simple calculator programs
# Any line that starts with a pound sign (#) is known as a comment, Python knows to ignore comments
# Comments are useful for explaining what you are doing in a program to yourself or someone else who might be working on the same program
# Let's write a calculator program that has the computer ask the user for two number to calculate, then return the answer
# to have a program accept input from a user, we use the raw_input() function, Python automatically considers what the user types in as a string.
print("Please give me a number")
number1 = raw_input() # here's our first variable
print("Please give me another number")
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote