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
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
<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
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="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
const webpack = require('webpack'); | |
const compiler = webpack(require('./webpack.config')); | |
compiler.watch({ // watch options: | |
aggregateTimeout: 300, // wait so long for more changes | |
poll: true // use polling instead of native watchers | |
// pass a number to set the polling interval | |
}, function(err, stats) { | |
console.log(stats.toString()); |
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'; | |
import Vue from 'vue'; | |
export default { | |
getCourses() { | |
return Vue.resource('/courses').get(); | |
}, | |
putCourses(){ | |
return Vue.resource('/courses').put(); |
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 restrict"; | |
const Hapi = require('hapi'); | |
const CookieAuth = require('hapi-auth-cookie'); | |
const server = new Hapi.Server(); | |
server.connection({ | |
host: 'localhost', | |
port: 3000 | |
}); |
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'; | |
var schedAPI = require('./schedAPI'); | |
var handlebars = require("handlebars"); | |
var fs = require('fs'); | |
var partialsDir = __dirname + '/template/partials'; | |
var XLSX = require('xlsx'); | |
var Excel = require('exceljs'); | |
/** Retorna as informações do sched e gera as placas em html */ | |
schedAPI.getSessionExport((err,session) => { |
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
alias workrebase="git checkout master && git pull origin master && git checkout work && git rebase master" | |
alias worksync="workrebase && git checkout master && git merge work && git push origin master && git checkout work" | |
alias workghpagesrebase="git checkout gh-pages && git pull origin gh-pages && git checkout work && git rebase gh-pages" | |
alias workghpagessync="workghpagesrebase && git checkout gh-pages && git merge work && git push origin gh-pages && git checkout work" |