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
<template> | |
<div> | |
<form @submit.prevent="createGroup"> | |
<input type="text" v-model="start_date"></input> | |
<button type="submit">Nova Turma</button> | |
</form> | |
</div> | |
</template> |
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
GroupController.addStudent = (id, student_id) => { | |
return Group.findById(id) | |
.then((g) => new Promise((resolve, reject) => { | |
if(g){ | |
resolve(g); | |
}else{ | |
reject('??'); | |
} | |
})); | |
}; |
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
<template> | |
<div> | |
<form @submit.prevent="formSubmit"> | |
<vue-tabs> | |
<v-tab title="Personal Info"> | |
<div class="form-group"> | |
<label>Name</label> | |
<input v-validate="'required'" name="name" type="text" v-model="client.name" class="form-control"> | |
<span v-show="errors.has('name')" class="bg-danger">{{ errors.first('name') }}</span> | |
</div> |
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
using System; | |
using System.Threading; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Loop(); | |
} |
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
//----------------------------------------------------------------------------- | |
// C# .NET 4.5 Console Wrapper | |
// | |
// Marc King < mjking@umich.edu > | |
// v1.0 2015-04-26 | |
//----------------------------------------------------------------------------- | |
using SysConsole = System.Console; | |
using System; | |
using System.IO; |
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
'use strict'; | |
const CreateGroupList = require('../utils/GroupsListPDF'); | |
const Group = require('../models').Group; | |
const Client = require('../models').Client; | |
const Course = require('../models').Course; | |
const ClientGroup = require('../models').ClientGroup; | |
const Boom = require('boom'); | |
const moment = require('moment'); | |
const fields = ['id','start_date','end_date','start_hour','end_hour','course_id','classes','teacher_id','classes']; | |
const teacher = {model: Client, as: 'Teacher', attributes: ['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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
tstSlice2() | |
} |
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 { expect } from 'chai' | |
import VueResource from 'vue-resource' | |
describe('HelloWorld.vue', () => { | |
it('renders props.msg when passed', () => { | |
expect(true).to.be.true | |
}) | |
}) |
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
'use strict'; | |
const PDFDocument = require('pdfkit'); | |
const fs = require('fs'); | |
const printHeader = doc => { | |
const opt = {continued: true}; | |
doc.text("Name", opt); | |
doc.x = 200; | |
doc.text("Start date", opt); | |
doc.x = 250; |
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 { Link } from "gatsby" | |
import PropTypes from "prop-types" | |
import React, { useState } from "react" | |
const Header = ({ siteTitle }) => { | |
useState(false); | |
return ( | |
<header | |
style={{ | |
background: `rebeccapurple`, |