Skip to content

Instantly share code, notes, and snippets.

View dbarjs's full-sized avatar
🏡
Working from home

Eduardo Barros dbarjs

🏡
Working from home
View GitHub Profile
@dbarjs
dbarjs / scientific.js
Last active August 29, 2015 14:21
Funções e métodos do Magma Scientific v1.8.0
/*!
* Magma Scientific Client Functions v1.8.0 (http://getvilla.org/)
* Copyright 2014-2015 Magma Fantastico
* Licensed under MIT (https://github.com/noibe/villa/blob/master/LICENSE)
*/
var getActiveCheckbox = function (a, b) {
var c, d;
c = $('input[name=' + a + ']:checked');
@dbarjs
dbarjs / info.html
Created October 29, 2015 17:30
Modelo de info
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div class="infos">
<div class="info-address-wrapper flex justify-center">
@dbarjs
dbarjs / model-2.html
Created October 29, 2015 17:32
Modelo de info
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div class="infos">
<div class="info info-address">
Verifying that +dbarjs is my blockchain ID. https://onename.com/dbarjs
// Create the XHR object.
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// XHR for Chrome/Firefox/Opera/Safari.
xhr.open(method, url, true);
xhr.setRequestHeader('Accept', 'application/json; charset=utf-8');
// xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
} else if (typeof XDomainRequest != "undefined") {
// XDomainRequest for IE.
{
post_meta: {},
post_files: {},
isValid: false
}
add post_app {
meta: {
meta_fields: [
/*
table structures
meta_rules
_id
app_id
contentType
file_rules
@dbarjs
dbarjs / load.html
Created June 7, 2016 15:33
Load.JS
<!DOCTYPE html>
<html lang="pt-br" class="is-loading">
<meta charset="UTF-8">
<title>Load.js</title>
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<script src="dist/js/villa.min.js"></script>
<link rel="stylesheet" href="dist/css/villa.min.css"/>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="dist/css/material-colors.css"/>
<!DOCTYPE html>
<html lang="pt-br" class="is-loading">
<meta charset="UTF-8">
<title>Load.js</title>
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<script src="dist/js/villa.min.js"></script>
<link rel="stylesheet" href="dist/css/villa.min.css"/>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="dist/css/material-colors.css"/>
current {
status {
[status object]
}
band {
[queue object]
}