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
task createDirs << { | |
webAppDir.mkdirs() | |
sourceSets.all { | |
allSource.srcDirs.each { | |
it.mkdirs() | |
} | |
} | |
} |
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
sc stop beep && sc config beep start= disabled |
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
Console2 config To use git bash on it: | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i |
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 TransformationStepdefs { | |
private RequestSpecification spec = RestAssured.with(); | |
@Given("^I have a single \"([^\"]*)\" file$") | |
public void I_have_a_single_file(String format) throws Throwable { | |
spec.given(). | |
multiPart("requestData", objectAsJson()). | |
header("Version", 1); | |
} |
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 ServerApp { | |
private Server server; | |
public static void main(String[] args) { | |
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {"restapp.xml"}); | |
MyService previewService = (MyService) appContext.getBean("MyService"); | |
new ServerApp().start("http://localhost:9000/", previewService, Response.class); | |
System.exit(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
instalar counter strike source no mac (multiplayer working): | |
- baixar counter strike source cider port(eu baixei do demonoid http://www.demonoid.com/files/details/1897279/51062454/ 3.13gb) | |
- baixar http://css.setti.info/servers/masterserver/ | |
- control+click no ícone do Counter Strike depois de montar o dmg >"Show Contents" | |
- entra em Contents>Resources>Transgaming>c_drive>program Files>css>platform>config | |
- renomear o MasterServers.vdf pra MasterServers.vdf_bkp (se quiser restaurar depois) | |
- copiar o arquivo de servers(MasterServers.vdf) que vc fez download para essa pasta | |
- command+i com o MasterServers.vdf selecionado e altera pra readonly o arquivo (se não o jogo altera para os servers da Valve) | |
- have fun :) |
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
Local/Site | |
http://www.casadocodigo.com.br | |
- Aplicações Java para a web com JSF e JPA | |
- Test-Driven Development: Teste e Design no Mundo Real | |
- HTML5 e CSS3: Domine a web do futuro | |
- Vire o jogo com Spring Framework | |
http://www.novatemporeal.com.br |
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
Alguns 'anti-padrões' catalogados. Solucões postarei futuramente. | |
1 - selectors dinamicos | |
ex: '#div_produto_${codigo}' | |
Neste caso, muitos devs esperam que o código seja renderizado para só então aplicar um evento naquele componente. | |
2 - Validação de forms na função submit. | |
ex: $("#form_salvar_bobina").submit(function() { | |
//validação aqui ... |
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
// implementation of the method 'methods' exists in Ruby to JavaScript | |
// in this case, only the methods included in 'Object' will appear | |
// lack the methods of the type that inherits from 'Object' | |
Object.prototype.methods = function() { | |
var mets = []; | |
for(i in this) { | |
if (typeof this[i] === 'function') | |
mets.push(i); | |
} |
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
# anotações sobre screencast sobre Git | |
Topicos - Tempo | |
. Instalação do git, conceituação de DVCS, exemplos de VCS existentes, configurações do git, criando um repo | |
. Estrutura de um commit (43:00) | |
# SHA-1 é melhor que MD5. Porque? SHA-1 checa a integridade do conteudo recebido na operação de digest | |
# video parado em 50:13' |