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
var _ = require('underscore'); | |
module.exports = function(matricula) { | |
var arrNumerosSoma = { | |
DV_1: [2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 1, 2, 3, 4, 0, 6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], | |
DV_2: [1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, 1, 2, 3, 0, 0, 6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
}, | |
somatoria = { | |
DV_1: [], | |
DV_2: [] |
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
html, body { | |
padding: 0; | |
margin: 0; | |
height: 100%; | |
} | |
.wrapper { | |
display: table; | |
width: 100%; | |
height: 100%; |
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
var _ = require('underscore'); | |
var paths = require.context('./models', true, /.js$/); | |
var models = []; | |
_(paths.keys()).each(function(path) { | |
var name = /.\/(.*).js/.exec(path)[1]; | |
models[name] = paths(path); | |
}); | |
var model = new models['a']({id: 123}); |
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 class="columns"> | |
<div class="column col-4"> | |
<select class="form-select" @change="changePerPage" v-model="itemsPerPage" number> | |
<option v-for="p in perPage" track-by="$index" value="{{p}}">{{p}} REGISTROS POR PÁGINA</option> | |
</select> | |
</div> | |
<div class="column col-4 text-center"> | |
<p style="margin:7px;">PÁGINA {{currentPage}} DE {{totalPages}}</p> | |
</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
import $ from 'jquery'; | |
/** | |
* dp - default parameters | |
* @type Object | |
*/ | |
let dp = { | |
alert: { | |
header: '', | |
body: '', |
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
<snippet> | |
<content><![CDATA[ | |
<table class="table table-bordered"> | |
<thead> | |
<tr>${SELECTION/([^\s]+)|(?:\s(\w+))/()(?3\n\t\t\t<th class="text-center text-uppercase">$3<\/th>)/g} | |
</tr> | |
</thead> | |
<tbody> | |
<tr v-for="(item, index) in ${SELECTION/([^\s]+)|(\s\w+)/$1/g}">${SELECTION/([^\s]+)|(\s(\w+))/()(?3\n\t\t\t<td class="text-center">{{ item\.$3 }}<\/td>)/g} | |
</tr> |
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
let _fetch = window.fetch; | |
window.fetch = (url, options) => { | |
return new Promise((resolve, reject) => { | |
let p = _fetch(url, options); | |
document.dispatchEvent(new CustomEvent('fetchStart', { detail: p })); | |
p.then(response => { | |
if (response.ok) { |
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
$.ajaxPrefilter((options, originalOptions, jqXHR) => { | |
let dfd = $.Deferred(); | |
if (options.resolved) { | |
this.showLogin = false; | |
return; | |
} | |
jqXHR.done(dfd.resolve); |
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
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo " [${BRANCH}${STAT}] " | |
else | |
echo " " | |
fi |
OlderNewer