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
--- | |
app/controllers/companies/edit.js | 31 ++ | |
app/services/active-storage.js | 16 + | |
app/templates/companies/edit.hbs | 87 +--- | |
config/environment.js | 10 +- | |
package.json | 1 + | |
yarn.lock | 705 +++++++++++++++++++++++++++++- | |
6 files changed, 768 insertions(+), 82 deletions(-) | |
create mode 100644 app/controllers/companies/edit.js | |
create mode 100644 app/services/active-storage.js |
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
import Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked prop; | |
@action |
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
import Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
import { restartableTask } from 'ember-concurrency-decorators'; | |
import { inject as service } from '@ember/service'; | |
import query from 'uaw/gql/queries/allOpinionsSearch'; | |
export default class DataLoaderComponent extends Component { | |
@service apollo; | |
@service filters; | |
@tracked results = []; |
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
import Ember from 'ember'; | |
import {inject as service} from '@ember/service'; | |
export default Ember.Controller.extend({ | |
appName: `Ember's Route Hook Order`, | |
router: service(), | |
actions: { | |
clearLog() { | |
Ember.$('.log-item').remove(); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
histogram: [{1: 4}, {2: 10}, {3: 2425}, {4: 2}, {5: 294}] | |
}); |
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() { | |
var call = Function.prototype.call; | |
Function.prototype.call = function() { | |
console.log(this, arguments); | |
return call.apply(this, arguments); | |
}; | |
}()); |
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
sudo su | |
mkdir /mnt/dir | |
mount /dev/sda6 /mnt/dir | |
for dir in proc dev sys etc bin sbin var usr lib lib64 tmp; do | |
mount -o bind $dir /mnt/dir/$dir | |
done | |
chroot /mnt/dir | |
# nano /etc/default/grub | |
# update-grub2 |
O robô deverá andar para frente até que este encontre um obstáculo e, então, deverá andar alguns centímetros de ré, e então virar, para o lado direito ou esquerdo e continuar andando para frente.
OBS: Deverá obrigatoriamente usar o bloco matemático (random).
O robô deverá andar sempre para frente e evitar a colisão (50 cm). Ao notar a presença de alguma parede ou objeto, este deve parar completamente e para escolher o próximo destino ele irá girar em 360º (para a direita ou esquerda) procurando uma direção onde o sensor indique um obstáculo a mais de 50cm (ou a ausência deles) e então é para este caminho que ele irá seguir. Caso não haja caminho disponível ele deverá emitir uma mensagem e se auto-desligar.
NewerOlder