This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
n = 23 | |
nro_uno = 0 | |
b = n.to_s(2) | |
for i in 0..b.length-1 | |
if b[i] == "1" | |
nro_uno += 1 | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone <linkProject> | |
cd <Project> | |
git status | |
git checkout -b "name-branch" | |
git checkout name-branch | |
git add <filename> | |
git add . | |
git commit -m "Commit message" | |
git push origin <branchName> | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add . | |
git commit -m "First commit" | |
git remote add origin [email protected]:Danielapariona/Prueba.git | |
git push -u origin master |