Skip to content

Instantly share code, notes, and snippets.

import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import AppRouterConfig from './app.router.config';
import {AuthService} from 'aurelia-authentication';
import {BindingEngine} from 'aurelia-framework';
import {EventAggregator} from 'aurelia-event-aggregator';
@inject(Router, AppRouterConfig, AuthService, BindingEngine, EventAggregator)
export class Default {
@LeoNero
LeoNero / gist:5a1c97375106d40ed9f9748304112980
Created November 14, 2016 23:16
default/login/login.js
login() {
let loginData = {
username: this.username,
password: this.password,
school: this.selectedSchool //this.selectSchool retorna o ID da escola, e não o Object
};
this.authService
.login(loginData)
.then(response => {
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 5, 4, 2, 3);
int portaBtnEnter = 10;
int portaBtnMoveSeta = 9;
bool btnEnter;
bool btnMoveSeta;
'use strict';
const moment = require('moment');
const jwt = require('jwt-simple');
const config = require('../config/config.js');
exports.createJWT = user => {
let payload = {
sub: user._id,
iat: moment().unix(),
[{"_id":"57aeab62ed8ac259616c8b52","number":1,"type":"Personal Preference","question":"What is your favorite place to visit on weekends? Describe it and explain why it is your favorite place to go.","audio_url":"","reading":"","__v":0}]
import {inject} from 'aurelia-framework';
import {HttpClient} from 'aurelia-fetch-client';
@inject(HttpClient)
export class NewTask {
tasksType =
[
{number: 1, type: 'Personal Preference'},
{number: 2, type: 'Paired Choice'},
<template>
<div>
<select md-select value.bind="selectedTaskType" change.delegate="onChangeTaskType()">
<option model.bind="null">Choose the type of the task...</option>
<option repeat.for="taskType of tasksType" model.bind="taskType">
${taskType.number} - ${taskType.type}
</option>
</select>
</div>
@LeoNero
LeoNero / error
Last active August 5, 2016 04:39
{ Error: ENOENT: no such file or directory, open '/app/package.json'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/app/package.json'
}
@LeoNero
LeoNero / README.md
Last active November 29, 2019 11:10

Semantic, responsive, magical, easy to learn flexbox grid.

Semantic, responsive, magical, easy to learn flexbox grid.