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
- Acesse https://registro.br/cgi-bin/nicbr/stini | |
- Digite o Usuário e SENHA | |
- Clique em ENTRAR | |
- Clique no aba TITULARIDADE | |
- Clique em Editar informações |
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
// http://jsfiddle.net/0s8kzoke/ | |
console.log('----VEHICLE DEFINITION----'); | |
function Vehicle(name, model, speedLimit) { | |
// prevent the scope error when the programmer forgot the | |
// 'new' keyword before call the constructor. | |
if (!(this instanceof Vehicle)){ | |
return new Vehicle(name, model, speedLimit); | |
} |
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
function Pessoa(nome) { | |
if(!this instanceof Pessoa) { | |
return new Pessoa(nome); | |
} | |
this.nome = nome; | |
} | |
Pessoa.prototype.getNome = function() { | |
return this.nome; | |
} |
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
// No Node.js é melhor usar o Util.inherits (https://nodejs.org/docs/latest/api/util.html#util_util_inherits_constructor_superconstructor) | |
var __extends = this.__extends || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
__.prototype = b.prototype; | |
d.prototype = new __(); | |
}; | |
var Animal = (function () { | |
function Animal(name) { |
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 nome = 'creudovaldo'; | |
console.log('--------------'); | |
var Pessoa = (function() { | |
// Construtor | |
function Pessoa(nome) { | |
this.nome = nome; | |
} | |
// Metodo de instancia, todos que instanciam Pessoa deveriam ter acesso |
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 Foo = { | |
init: function(who) { | |
this.me = who; | |
}, | |
identify: function() { | |
return "I am " + this.me; | |
} | |
}; | |
Foo.create = function() { |
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
hudson.model.Hudson.instance.items.findAll{job -> job.isBuildable() && job.name.contains("stb")}.each{ | |
job -> | |
println("Job : ${job.name}"); | |
builds = jenkins.model.Jenkins.instance.getItem(job.name).getBuilds().reverse(); | |
for(i = 0; i < builds.size() - 4; i++){ | |
builds[i].delete(); | |
println(" Build - ${builds[i]} - Deleted With Success."); | |
} | |
println(" Deleted Builds - ${builds.size()}"); | |
} |