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
| (byebug) produtos | |
| #<ActiveRecord::Result:0x95c1b0c | |
| @columns=["id", "nome"], | |
| @rows=[ | |
| [1, "yuri"], | |
| [2, "Igor"], | |
| [3, "Iran"], | |
| [4, "Hotaviano"], | |
| [5, "Maria"], |
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
| @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', [ |
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
| interface ClockConstructor { | |
| new (hour: number, minute: number); | |
| } | |
| interface ClockInterface { | |
| tick(); | |
| } | |
| function createClock(ctor: ClockConstructor, hour: number, minute: number): ClockInterface { | |
| return new ctor(hour, minute); |
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 myModule = require('myModule'); | |
| var myModuleInstance = new myModule(); | |
| myModule.hello(); | |
| myModule.goodbye(); |
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
| function myModule() { | |
| this.hello = function() { | |
| return 'Hello'; | |
| } | |
| this.goodbye = function() { | |
| return 'goodbye'; | |
| } | |
| } |
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 <stdio.h> | |
| int main() { | |
| return 0; | |
| } |
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 StringTeste { | |
| public static void main(String[] args) { | |
| String nome = "Yuri"; | |
| nome.concat(" Melo"); //Concatena String | |
| System.out.println(nome); | |
| } | |
| } |
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 StringTeste { | |
| public static void main(String[] args) { | |
| String nome = "Yuri"; | |
| nome.concat(" Melo"); //Concatena String | |
| System.out.println(nome); | |
| } | |
| } |
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.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++; | |
| } |
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.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++; | |
| } |
NewerOlder