connected to #
Caso positivo descreva aqui
| # http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry | |
| # The docker tag is the first 6 letters of the Git commit id | |
| job_build_dotnet: | |
| stage: build | |
| image: microsoft/dotnet:latest | |
| script: | |
| - dotnet restore | |
| - dotnet publish src/MyProject.Web -c Release | |
| artifacts: |
| image: microsoft/aspnetcore-build:1.1 | |
| variables: | |
| PROJECT_DIR: "app" | |
| cache: | |
| key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME" | |
| paths: | |
| - .nuget/ |
| var getPosition = function (options) { | |
| return new Promise(function (resolve, reject) { | |
| navigator.geolocation.getCurrentPosition(resolve, reject, options); | |
| }); | |
| } | |
| getPosition() | |
| .then((position) => { | |
| console.log(position); | |
| }) |
| // Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/ | |
| // Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch | |
| // async function | |
| async function fetchAsync () { | |
| // await response of fetch call | |
| let response = await fetch('https://api.github.com'); | |
| // only proceed once promise is resolved | |
| let data = await response.json(); | |
| // only proceed once second promise is resolved |
| <snippet> | |
| <content><![CDATA[public function get${1/(.*)/\u$1/}() | |
| { | |
| return \$this->${1:$SELECTION}; | |
| } | |
| public function set${1/(.*)/\u$1/}(\$$1) | |
| { | |
| return \$this->$1 = \$$1; | |
| } |
| <div id="demo"> | |
| <h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
| </div> | |
| <ul id="humans-list"> | |
| <li v-repeat="humans"> | |
| {{fields.firstName}} {{fields.lastName}} | |
| </li> | |
| </ul> |
| using System.Web.Mvc; | |
| namespace MyApp | |
| { | |
| public class CarController : Controller | |
| { | |
| //... | |
| public ActionResult Edit(CarModel model) | |
| { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> | |
| <script class="jsbin" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js" type="text/javascript"></script> | |
| <script src="jquery.validate.cpf.js"></script> | |
| <script type="text/javascript"> | |
| $(function () { | |
| var $cpf = $("#id_cpf").attr("name"); | |
| var $params = {debug:false, rules:{}, messages:{}}; |