Skip to content

Instantly share code, notes, and snippets.

View elyosemite's full-sized avatar
🎯
Focusing

Yuri Melo elyosemite

🎯
Focusing
View GitHub Profile
(byebug) produtos
#<ActiveRecord::Result:0x95c1b0c
@columns=["id", "nome"],
@rows=[
[1, "yuri"],
[2, "Igor"],
[3, "Iran"],
[4, "Hotaviano"],
[5, "Maria"],
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
animations: [
trigger('goals', [
transition('* => *', [
query(':enter', style({ opacity: 0 }), {optional: true}),
query(':enter', stagger('300ms', [
interface ClockConstructor {
new (hour: number, minute: number);
}
interface ClockInterface {
tick();
}
function createClock(ctor: ClockConstructor, hour: number, minute: number): ClockInterface {
return new ctor(hour, minute);
var myModule = require('myModule');
var myModuleInstance = new myModule();
myModule.hello();
myModule.goodbye();
function myModule() {
this.hello = function() {
return 'Hello';
}
this.goodbye = function() {
return 'goodbye';
}
}
#include <stdio.h>
int main() {
return 0;
}
public class StringTeste {
public static void main(String[] args) {
String nome = "Yuri";
nome.concat(" Melo"); //Concatena String
System.out.println(nome);
}
}
public class StringTeste {
public static void main(String[] args) {
String nome = "Yuri";
nome.concat(" Melo"); //Concatena String
System.out.println(nome);
}
}
import java.util.Scanner;
public class ManipulacaoStrings {
static boolean verificarEmail(String email){
int contA = 0;
for (int i = 0; i<email.length(); i++){
if (email.charAt(i)=='@')
contA++;
}
import java.util.Scanner;
public class ManipulacaoStrings {
static boolean verificarEmail(String email){
int contA = 0;
for (int i = 0; i<email.length(); i++){
if (email.charAt(i)=='@')
contA++;
}