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
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class Main { |
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
double C1diametro; | |
double C1circunferencia; | |
double C1area; |
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
$("#btn-ajuda").on("click",function() { | |
//starta a função aqui | |
} |
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
<meta charset="UTF-8"> | |
<input type="text" id="numero"/> | |
<input type="submit" value="adicione e verifique no bingo!" id="adivinhar"/> | |
<script> | |
var sorteados = new Array(); | |
var nrosUsuario = new Array(); | |
var numerosSorteados= function(){ | |
var n1= Math.floor(Math.random() * 60); |
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
https://www.youtube.com/watch?v=CAcyG2v6X2w | |
aplicar aqui a expressão regular | |
salvar na variavel resultante o que vier depois de "v=" | |
nesse exemplo a variavel iria conter "CAcyG2v6X2w" | |
<iframe width="200" height="300" src="//www.youtube.com/embed/$variavel" frameborder="0" allowfullscreen></iframe> |
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
<?php | |
$url = "https://www.youtube.com/watch?v=4Sc6lSMnp0c"; | |
parse_str( parse_url( $url, PHP_URL_QUERY ), $my_array_of_vars ); | |
$teste = $my_array_of_vars['v']; | |
$width = 400; | |
$height = 300; | |
?> | |
<iframe width="<?php echo $width ?>" height="<?php echo $height ?>" src="//www.youtube.com/embed/<?php echo $teste?>" frameborder="0" allowfullscreen> |
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
# PATCH/PUT /users/:id.:format | |
def update | |
# authorize! :update, @user | |
respond_to do |format| | |
if @user.update(user_params) | |
sign_in(@user == current_user ? @user : current_user, :bypass => true) | |
format.html { redirect_to @user, notice: 'Your profile was successfully updated.' } | |
format.json { head :no_content } | |
else | |
format.html { render action: 'edit' } |
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
<%= will_paginate @posts, :class => 'page-por-page pagination pagination-sm', renderer: BootstrapPagination::Rails %> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
typedef struct info{ | |
int valor; | |
}inf; | |
typedef struct vetor{ |
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
<%= f.select(:sector, [['Pessoal','Contábil','Fiscal','Administrativo/Financeiro']], {:prompt => "SETOR:", :required => true, :class => 'meio' }) %> |
OlderNewer