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
package certificacao; | |
public abstract class ClassA { | |
public void run(){ | |
System.out.println("running..."); | |
} | |
} |
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
package integer; | |
public class MaxInt { | |
public static void main(String[] args) { | |
Integer i = Integer.MAX_VALUE - 10; | |
for(int x=0; x<20; x++){ | |
System.out.println( i++ ); | |
} |
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
package br.com.zueira; | |
public class Zueira { | |
public static void main(String[] args) { | |
boolean zueira = true; | |
while(zueira){ | |
if( 1 == 2){ | |
zueira = false; | |
} |
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
var | |
ArquivoResultado, LinhaResultado, CampoResultado: JObject; | |
linha, coluna, quantidadeLinhas, quantidadeColunas : integer; | |
path, nome, valor : string; | |
begin | |
ArquivoResultado := LerArquivoRetorno(ParamStr(1)); | |
quantidadeLinhas := GetQuantidadeDeLinhas(ArquivoResultado); | |
// LOG | |
Writeln( IntToStr(quantidadeLinhas) + ' linhas' ); |
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
package me.falci.planoB.javascript; | |
import java.util.Date; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
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
package me.falci.planoB.converter; | |
import java.util.Calendar; | |
import java.util.Date; | |
import org.springframework.core.convert.converter.Converter; | |
/** | |
* @author Falci | |
* |
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
criarLista(X, R) :- | |
criarLista(X, [], R). | |
criarLista(2, L, R) :- | |
R = '.'(2,L), | |
!. | |
criarLista(X, L, R) :- | |
T = '.'(X, L), | |
Xn is X -1, |
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
package me.falci.util; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import com.google.common.base.Function; | |
import com.google.common.base.Joiner; | |
import com.google.common.collect.Lists; |
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
Number.prototype.format = function(c, d, t){ | |
var n = this, | |
c = isNaN(c = Math.abs(c)) ? 2 : c, | |
d = d == undefined ? "," : d, | |
t = t == undefined ? "." : t, | |
s = n < 0 ? "-" : "", | |
i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", | |
j = (j = i.length) > 3 ? j % 3 : 0; | |
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); |
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
$.fn.codeReader = function(options){ | |
var timer, defaults = { | |
event: 'keypress', | |
max: 100, | |
fail: function(){ | |
console.error('keyboard'); | |
}, | |
success: function(str){ | |
console.log(str); | |
} |
OlderNewer