Skip to content

Instantly share code, notes, and snippets.

Loiane Groner loiane

Block or report user

Report or block loiane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@loiane
loiane / gist:3588ce18b0fc2d0d390daa8fefe67842
Last active Sep 14, 2016
sencha extjs 6 - load locale dynamically
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 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";
View gist:2d6ea53a210c091007fb
Verifying that +loiane is my blockchain ID. https://onename.com/loiane
View CPrincipal.java
import javax.swing.JFrame;
class CPrincipal {
public static void main (String[] args){
JFrame janela = new JFrame();
janela.setSize(500,300);
janela.setVisible(true);
}
@loiane
loiane / Aula19Exer20.java
Created Dec 31, 2015
Duvidas Forum Java
View Aula19Exer20.java
for(int i=0;i<real.length;i++){
double valorReal = Double.parseDouble(JOptionPane.showInputDialog(" Digite o valor em reais R$"));
real[i] = dolar * valorReal; //multiplicação simples por exemplo, dólar a 4 reais = 2 reais equivalem a 4*2 == 8
}
View ExtJSWorldMap.js
Ext.define('MyApp.view.WorldMap', {
extend: 'Ext.draw.Component',
alias: 'widget.worldmap',
gradients :[{
id: 'gradientId',
angle: 45,
stops: {
0: {
color: '#fdf0be'
View gist:6983000
Curso Java Básico Aula 01: Introdução e Dicas para quem está Começando
Todas as aulas já publicadas: http://www.loiane.com/2013/10/curso-java-basico-java-se-gratuito
Java, Curso Java, Curso Java Gratuito, Curso Java Grátis, Java SE
Youtube:
[Curso Java Básico] Aula 13: Operadores (Aritiméticos, Lógicos e Relacionais)
Mais infos e links: http://www.loiane.com/2013/10/curso-java-basico-java-se-gratuito/
View ArgumentoEclipse.java
public class ArgumentosIDE {
public static void main(String[] args) {
System.out.println(args[0]);
}
}
You can’t perform that action at this time.