Skip to content

Instantly share code, notes, and snippets.

View danielschmitz's full-sized avatar

Daniel Schmitz danielschmitz

  • UFJF
  • Juiz de Fora / Brazil
View GitHub Profile
LInks de Laravel
Links de Angular
Links de React
<?php
class Foo(){
function bar(){
}
}
<script>
System.config({
transpiler: 'typescript',
typescriptOptions: { emitDecoratorMetadata: true },
packages: {'app': {defaultExtension: 'ts'}}
});
System.import('app/main')
.then(null, console.error.bind(console));
</script>
{
/*
// Place your snippets for Markdown here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
<tbody>
<tr v-for="categorie in data">
<td>@{{ categorie.id }}</td>
<td>@{{ categorie.name }}</td>
<td>Ação</td>
</tr>
</tbody>
var vm = new Vue({
el: '#example',
data: {
title: 'Employees'
},
computed: {
resourceEmployee: function () {
return this.$resource('employees{/id}'),
}
}
import { VueComponent, Prop, Watch } from 'vue-typescript'
class Link {
name:string;
path:string;
constructor(name:string, path:string){
this.name = name;
this.path = path;
export function loadCategories({dispatch, state},keyword) {
dispatch('SHOW_LOADING')
let start = (state.category.page * state.itens_per_page) - (state.itens_per_page - 1);
let keywordString=""
if (keyword!=null){
keywordString=`&q=${keyword}`
}