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 org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.Mock; | |
import org.mockito.Mockito; | |
import org.mockito.runners.MockitoJUnitRunner; | |
import static org.mockito.Mockito.mock; |
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 ajax = (str)=>{ | |
return new Promise(function(resolve, reject){ | |
$.get(str).success(resolve).fail(reject); | |
}) | |
}; | |
ajax('https://httpbin.org/get').then(function(res){ | |
// primeiro then fitra valor | |
return res.url; | |
}).then(function(res){ |
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 asyncFunc() { | |
return new Promise( | |
function (resolve, reject) { | |
$.get('https://httpbin.org/geta', function(res){ | |
resolve(res); | |
}).fail(function(res){ | |
reject(res.responseText); | |
}); | |
}); | |
} |
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
roundborder(x) | |
-moz-border-radius x | |
-webkit-border-radius x | |
border-radius x | |
unselectable() | |
-moz-user-select -moz-none | |
-khtml-user-select none | |
-webkit-user-select none |
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
/* | |
USAGE: | |
webpack.config.js: | |
[..] loaders:{ | |
{ test: /\.(png|jpg)$/, loader: 'url-css-loader-workaround?relativePath=./../..&name=[path][name].[ext]' } | |
} | |
*/ |
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 path = require('path'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
module.exports = { | |
entry: { | |
main: './js/main.js', | |
ignore: ['./stylus/style.styl'] | |
}, | |
output: { | |
path: '../build/js', |
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 query = [{ | |
"type": "/tv/tv_program", | |
"name": null, | |
"id": null, | |
"genre": "sitcom", | |
"/common/topic/image": [{ | |
"id": null | |
}], | |
"/common/topic/subjects": [], | |
"program_creator": [], |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="ISO-8859-1"> | |
<title>Ex.01</title> | |
<script src="jquery-1.11.3.min.js"></script> | |
</head> | |
<body> | |
seletores: | |
tr:odd - ímpar (vermelho) |
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
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title></title> | |
</head> | |
<body> | |
n1: <input id="n1" type="text"><br> | |
n2: <input id="n2" type="text"><br> | |
<ul> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="ISO-8859-1"> | |
<title>Exercício 1</title> | |
</head> | |
<body> | |
<script> |
NewerOlder