🏃♂️
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
| 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
| 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
| (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
| public static class WebExtensions | |
| { | |
| public static T GetResultFromWeb<T>(string url) where T : new() | |
| { | |
| using (var webClient = new WebClient()) | |
| { | |
| var json_data = string.Empty; | |
| try | |
| { |
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(){"use strict";angular.module("ngCalendarium",[]).constant("calendarConfig",{template:['<div class="calendarium">','<div class="header">','<button class="previous" ng-click="previousMonth()" title="previous month" ><<</button>',"<h1>{{monthLabel}}/{{yearLabel}}</h1>",'<button class="next" ng-click="nextMonth()" title="next month" >>></button>',"</div>",'<ol class="day-names clear">','<li ng-repeat="weekDay in weekDays">{{weekDay}}</li>',"</o>",'<ol class="days">','<li ng-repeat="dateContainer in dateContainers" title="{{dateContainer.state.tooltip}}">','<div ng-if="dateContainer.state.disabled" class="date disabled" ng-class="dateContainer.state.className"></div>','<div ng-if="!dateContainer.state.disabled && !isDate(dateContainer.date)" class="date empty"></div>','<div ng-if="!dateContainer.state.disabled && isDate(dateContainer.date)" ng-class="dateContainer.state.className" class="date" ng-click="selectDate(dateContainer.date,dateContainer.state)">{{dateContainer.date.getDate()}}</div>',"</li>"," |
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
| using HoloToolkit.Unity.InputModule; | |
| using UnityEngine; | |
| public class HologramBehaviors : MonoBehaviour, IFocusable, IInputClickHandler | |
| { | |
| [SerializeField] | |
| public bool IsRotating = false; | |
| [SerializeField] | |
| public Color FocusedColor = Color.red; |
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
| wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
| sudo dpkg -i /tmp/code_latest_amd64.deb |
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
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| import subprocess | |
| # Script taken from doing the needed operation | |
| # (Filters > Remeshing, Simplification and Reconstruction > | |
| # Quadric Edge Collapse Decimation, with parameters: | |
| # 0.9 percentage reduction (10%), 0.3 Quality threshold (70%) |