Skip to content

Instantly share code, notes, and snippets.

View igordcsouza's full-sized avatar
🏠
Working from home

Igor Souza igordcsouza

🏠
Working from home
View GitHub Profile
#!/bin/sh
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
do
url="http://va05-idc.rnp.br/riotransfer/cederj/sistemas_comp/ead05025/Aula_0"
aula="/Aula_0"
format=".mp4"
wget $url$i$aula$i$format
done
package ordenanomeidade;
import java.util.Scanner;
public class OrdenaNomeIdade {
private static final int TAMANHO = 10;
public static void main(String[] args) {
String nome[] = new String[TAMANHO];
int idade[] = new int[TAMANHO];
int menu = 0;
Scanner teclado = new Scanner(System.in);
@igordcsouza
igordcsouza / bubble-sort.lisp
Last active March 18, 2016 13:10
Bubble sort em lisp utilizando recursividade!
(defun change(lat x)
(setq Aux (nth x lat))
(setf (nth x lat) (nth (+ 1 x) lat))
(setf (nth (+ 1 x) lat) Aux))
(defun bubble(lat x y)
(if(= x (length lat))
(print lat)
(cond((< y (length lat))
(cond((not (null (nth (+ 1 y) lat)))