🏃♂️
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() { | |
var jasmineEnv = jasmine.getEnv(); | |
jasmineEnv.updateInterval = 250; | |
/** | |
Create the `HTMLReporter`, which Jasmine calls to provide results of each spec and each suite. The Reporter is responsible for presenting results to the user. | |
*/ | |
var htmlReporter = new jasmine.HtmlReporter(); | |
jasmineEnv.addReporter(htmlReporter); |
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
describe('Service: ComprasService', function () { | |
var ComprasService, $httpBackend; | |
beforeEach(function(){ | |
module('app'); | |
inject(function($injector){ | |
ComprasService = $injector.get('ComprasService'); | |
$httpBackend = $injector.get('$httpBackend'); | |
}); |
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 app = angular.module('app', []); | |
app.run(function($httpBackend){ | |
$httpBackend.whenGET('/listadecompras').respond( | |
[ { | |
nome: 'Pão', | |
quantidade: 2, | |
comprado: false | |
}, | |
{ |
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 app = angular.module('app', []); | |
app.run(function($httpBackend){ | |
$httpBackend.whenGET('/listadecompras').respond( | |
[ { | |
nome: 'Pão', | |
quantidade: 2, | |
comprado: false | |
}, | |
{ |
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
angular.module('app').service('ComprasService', ['$http', function ($http) { | |
this.ObterListaDeCompras = function() { | |
return $http.get('/listadecompras').then(function(response) { | |
return response || null; | |
}, function(response) { | |
switch(response.status) | |
{ | |
default: | |
throw 'nenhuma informação'; |
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
// Released under the MIT license | |
// created by: Frank Zondlo | |
// Quick and dirty jquery script to split ULs into multiple columns | |
(function($){ | |
jQuery.fn.cols = function(num_columns) { | |
//Break up the array into managable chunks | |
function chunk (arr, number_of_chunks) { |
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 app = angular.module('app', []); | |
app.controller("ListagemController", function($scope){ | |
$scope.itens = []; | |
for (var i = 1; i <= 16; i++) { | |
$scope.itens.push({text: 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
static void Main(string[] args) | |
{ | |
try | |
{ | |
Console.WriteLine("Selecione uma das opções abaixo: "); | |
Console.WriteLine("1) Publicar usuários"); | |
Console.WriteLine("2) Publicar empresas"); | |
Console.WriteLine("3) Publicar perguntas"); | |
Console.WriteLine("4) Publicar boxes das empresas"); | |
Console.WriteLine("5) Publicar categorias das empresas"); |
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
<div id="BoxProgress" class="activitybox-progress hide"> | |
<hr> | |
<div class="progress progress-success progress-striped active"> | |
<div class="bar" id="BoxProgress_Progress"> | |
</div> | |
</div> | |
</div> | |
<div id="activityboxicons" class="activitybox-icons pull-right hide"> | |
<span class="btn btn-mini fileinput-btn" title="inserir imagem"><i class="icon-camera"> |