View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View Loiane_social_resume.md

Bio

Loiane Groner has over 10 years of experience working with software development based on Java and JavaScript/HTML5 (and related frameworks). Worked for multinational companies such as IBM and currently works at Citibank as fullStack developer. Loiane is also engaged with technology user groups such as Java (Sou Java, Campinas JUG), Sencha, JavaScript and Angular.

Blog and articles

Loiane maintains the blog http://loiane.com with over 500 posts published in Portuguese-Br and English (from previous blog loianegroner.com). She published posts about Java, Java EE (Spring, Hibernate), JavaScript/Ajax/JSON and tutorials. The blog is hosted on Github with all its content under MIT License (https://github.com/loiane/loiane.github.io). Was also awarded the title of MVB (Most Valuable Blogger) from DZone portal (https://dzone.com/users/286409/Loiane.html)

View TesteStringInteger.java
public class TesteStringInteger {
public static void main(String[] args) {
String numeroDoArquivo = "99 ";
//numeroDoArquivo = numeroDoArquivo.trim(); //remove espaços das extremidades
numeroDoArquivo = numeroDoArquivo.replaceAll(" ", ""); //remove todos os espaços
long numero = Long.parseLong(numeroDoArquivo);
View Simple File Upload Component
import { Component, Input, AfterViewInit } from '@angular/core';
import { NgModel, DefaultValueAccessor, NgControl } from '@angular/forms';
import { Http, Headers, RequestOptions } from '@angular/http';
@Component({
selector: 'app-file-uploader',
template: '<input type="file" (change)="updated($event);">',
providers: [NgModel, DefaultValueAccessor]
})
export class FileUploaderComponent implements AfterViewInit {
View gist:3588ce18b0fc2d0d390daa8fefe67842
function loadLocale(){
var query = Ext.Object.fromQueryString(location.search),
lang = query.lang ? query.lang.toLowerCase() : 'en';
if (lang === 'pt'){
lang = 'pt_BR';
}
var extJsFile = Ext.util.Format.format("resources/locale/ext-locale-{0}.js", lang);
View ReceitaBoloMousseMorango.md
View ArrayELinkedList.java
import java.util.ArrayList;
import java.util.LinkedList;
public class ArrayELinkedList {
public static void main(String[] args) {
ArrayList<LinkedList<String>> arrayList = new ArrayList<>();
LinkedList<String> linked01 = new LinkedList<>();
View Aula17.java
for (int i=0,j=10;i<j;i++,j--){
System.out.println("i tem valor: " + i +" e j tem valor: " +j);
}
//é o mesmo que
int i = 0;
int j = 10;
while (i<j){
System.out.println("i tem valor: " + i +" e j tem valor: " +j);
i++;
View TesteConsoleColorido.java
public class TesteConsoleColorido {
public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String ANSI_BLUE = "\u001B[34m";
public static final String ANSI_PURPLE = "\u001B[35m";
public static final String ANSI_CYAN = "\u001B[36m";