This file contains hidden or 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
| *.class | |
| # Mobile Tools for Java (J2ME) | |
| .mtj.tmp/ | |
| # Package Files # | |
| *.jar | |
| *.war | |
| *.ear |
This file contains hidden or 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
| # Desde un Live CD de Linux, acceder como super usuario | |
| > sudo su | |
| # Listar partciones de disco duro | |
| > fdisk -l | |
| # Montar la partición | |
| > mount /dev/sda[numero_particion] /mnt/ | |
| # Instalar grub |
This file contains hidden or 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
| #include <iostream> | |
| #include <cstdlib> | |
| #include <ctime> | |
| using namespace std; | |
| int randomAccumulator() | |
| { | |
| int suma = 0; | |
| int randNumber = 0; | |
| int temp = 0; |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> | |
| using namespace std; | |
| bool esPrimo(int numero) | |
| { | |
| int res=false; | |
| int divs=2; | |
| int mitad; |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| bool isCapicua(int num) | |
| { | |
| int a = num; | |
| int c = 0; | |
| int b = 0; | |
| while(a != 0) |
This file contains hidden or 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
| #include <iostream> | |
| #include <cstdlib> | |
| #include <ctime> | |
| using namespace std; | |
| string kilobases() | |
| { | |
| float kb = 0.03; | |
| float gc = 0.5; | |
| int longitud = kb * 1000; |
This file contains hidden or 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
| Host github.com | |
| Hostname ssh.github.com | |
| Port 443 | |
| Host bitbucket.org | |
| Hostname altssh.bitbucket.org | |
| Port 443 |
This file contains hidden or 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
| # Revert merge | |
| git reset --merge ORIG_HEAD | |
| # | |
| git branch --set-upstream-to=origin/<padre> <hijo> | |
| git branch --set-upstream-to=origin/sprint_1 EP-611-cambio-de-paquetes-a-mostrar |
This file contains hidden or 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
| $.ajax({ | |
| url: 'http://mydomain.com/ajax-request', | |
| type: 'POST', | |
| dataType: 'json', | |
| async: true, | |
| data:{ | |
| '_token': '{{ csrf_token() }}', | |
| 'foo' : 'Foo' | |
| }, | |
| success: function success(data, status) { |
This file contains hidden or 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
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| NO_COLOR="\[\033[0m\]" | |
| PS1="$GREEN\u@\h$NO_COLOR:\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ " |