Skip to content
Snippets Groups Projects
Commit 1fb46fab authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Commit icial

parents
No related branches found
No related tags found
No related merge requests found
# Treinamento Git
Este projeto foi criado para passar noções básicas de Git e GitLab.
Vá para a Wiki deste projeto para aprender sobre Git e GitLab e para fazer alguns exercícios.
# -*- coding: utf-8 -*-
"""
1. O programa sorteia um número aleatório
2. O usuário entra com um palpite
2a. Se o palpite estiver correto, o programa acaba
2b. Se não, diga se o número sorteado é maior ou menor que o palpite
3. Repete o passo dois
"""
import random
numero = random.randint(0,100)
palpite = int(raw_input("Digite o seu palpite: (0-100)"))
while palpite != numero:
if palpite > numero:
print "O número é menor."
else:
print "O número é maior."
palpite = int(raw_input("Digite o seu palpite: (0-100)"))
print "ACERTOU!!!!!!!!!"
app.js 0 → 100644
var stApp = angular.module('thoughtsApp', ['ionic', 'firebase']);
stApp.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('signup', {
url: '/signup',
templateUrl: 'templates/signup.html',
controller: 'LoginCtrl'
})
.state('login', {
url: '/login',
templateUrl: 'templates/login.html',
controller: 'LoginCtrl'
})
.state('home', {
url: '/home',
abstract: true,
templateUrl: 'templates/side-menu.html'
})
.state('home.tab', {
url: '/tab',
abstract: true,
views: {
'tabs': {
templateUrl: 'templates/tabs.html'
}
}
})
.state('home.tab.dashboard', {
url: '/dashboard',
views: {
'tab-dashboard': {
templateUrl: 'templates/tabs/tab-dashboard.html',
controller: 'ThoughtsCtrl'
}
}
})
.state('home.tab.user-dashboard', {
url: '/dashboard/user/:userEmail',
views: {
'tab-dashboard': {
templateUrl: 'templates/tabs/tab-account.html',
controller: 'AccountCtrl'
}
}
})
.state('home.tab.my-thoughts', {
url: '/my-thoughts',
views: {
'tab-my-thoughts': {
templateUrl: 'templates/tabs/tab-my-thoughts.html',
controller: 'ThoughtsCtrl'
}
}
})
.state('home.tab.user-my-thoughts', {
url: '/my-thoughts/user/:userEmail',
views: {
'tab-my-thoughts': {
templateUrl: 'templates/tabs/tab-account.html',
controller: 'AccountCtrl'
}
}
})
.state('home.tab.account', {
url: '/account',
views: {
'tab-account': {
templateUrl: 'templates/tabs/tab-account.html',
controller: 'AccountCtrl'
}
}
})
.state('home.tab.user-account', {
url: '/account/user/:userEmail',
views: {
'tab-account': {
templateUrl: 'templates/tabs/tab-account.html',
controller: 'AccountCtrl'
}
}
})
.state('home.tab.favorites', {
url: '/account/favorites/:userEmail',
views: {
'tab-account': {
templateUrl: 'templates/tabs/user-favorites.html',
controller: 'FavoriteThoughtsCtrl'
}
}
})
$urlRouterProvider.otherwise('/signup');
});
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="core-cell" attributes="color background">
<template>
<style>
:host {
display: block;
background: {{background}};
padding: 3px;
width: 2.5em;
height: 2.5em;
border-radius: 8px;
font-size: 1em;
font-weight: 300;
}
@media screen and (max-width: 768px){
:host{
width: 2em;
height: 2em;
}
}
@media screen and (max-width: 320px){
:host{
width: 0.5em;
height: 0.5em;
}
}
.cell{
background: {{color}};
height: 100%;
width: 100%;
border-radius: 50%;
}
</style>
<div class="cell" layout horizontal center>
</div>
</template>
<script>
Polymer('core-cell', {
/** The background color of the cell
*
* @attribute background
* @type string
* @default 'whitesmoke'
*/
background: 'whitesmoke',
/** The color of the cell
*
* @attribute color
* @type string
* @default 'whitesmoke'
* */
color: this.background
});
</script>
</polymer-element>
.center-div{
display: table;
margin: 0 auto;
text-align: center;
}
.center-div h2{
color: #fff;
font-family: 'Coming Soon', cursive;
}
.profile-picture{
border-radius: 50%;
border: solid 3px;
border-color: #fff;
height: 114px;
width: 114px;
}
.page{
background: #007DCF;
background-image: url(24.png);
background-size: cover;
width: 100%;
height: 100%;
padding-top: 10%;
}
.age{
color: #fff;
font-size: 500%;
font-weight: bolder;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment