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
# coding: utf-8 | |
""" | |
Participantes: | |
Zorak, Iury, Lucas Rogério, Willian, Lucas Campos, Bruno Henrique, Elias, Rafael, Bustalover, Jhonny, Plinio | |
""" | |
import unittest |
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
#coding: utf-8 | |
import json | |
with open('urls.json', 'r') as urls: | |
dic = json.load(urls, encoding='utf-8') | |
for item in dic['responseData']: | |
sub_item = dic['responseData']['results'] | |
for s in sub_item: |
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
import random | |
lista = random.sample(xrange(1,61), 50) | |
lista2 = random.sample(xrange(1,61), 50) | |
lista = lista + lista2 |
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 <map> | |
#include <utility> | |
using namespace std; | |
/* dado usa sequencia de caracteres numericos imprime quantos leds serão preciso para mostrar os caracteres | |
é utilizado a entrada e saída padrão | |
*/ |
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 <string> | |
#include <vector> | |
using namespace std; | |
int main(){ | |
string nome("Texto #3"); | |
string nova = ""; | |
int i,aux,n,m; | |
cin >> n; |
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
var datas; | |
db.transaction(function(transaction){ | |
transaction.executeSql('SELECT * FROM Comics WHERE name = ? ', | |
[["batman"]], | |
function(transaction,result){ | |
for(var i = 0; i < result.rows.length;i++){ | |
datas = result.rows.item(i)['name']; | |
} | |
}, |
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
public class Fatorial { | |
public int fatorial(int num) throws InvalidNumberException { | |
if (num < 0) | |
return 0; | |
if (num <= 1) { | |
return 1; | |
} else { |
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
import unittest | |
def fat(n): | |
if n == 1 or n == 0: | |
return n | |
return fat(n - 1) * n; | |
class Test(unittest.TestCase): |
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
import java.applet.Applet; | |
import java.awt.BorderLayout; | |
import java.awt.Button; | |
import java.awt.Event; | |
import java.awt.GridLayout; | |
import java.awt.Label; | |
import java.awt.Panel; | |
public class Jogo extends Applet{ |
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
import java.util.List; | |
public class Teste { | |
public static void main(String[] args) { | |
Estoque e = new Estoque(); | |
//cadastrando carros |