Skip to content

Instantly share code, notes, and snippets.

View moracarlos's full-sized avatar

Carlos Mora moracarlos

  • Panamá
View GitHub Profile
<form action="https://docs.google.com/forms/d/1MoZsbMPcbJ9SEDKeR2xysg7X9o9Jy-1KazIdiwJ_Bqo/formResponse" method="POST" target="_blank" onsubmit="try {return window.confirm(&quot;Vas a enviar información a una página externa.\n¿Seguro que quieres continuar?&quot;);} catch (e) {return false;}">
<ol role="list">
<div role="listitem">
<div dir="auto" style="margin:12px 0">
<div style="margin-bottom:1.5em;vertical-align:middle;margin-left:0;margin-top:0;max-width:100%">
<label>
<div style="display:block;font-weight:bold;margin-top:.83em;margin-bottom:.83em"> Nombre y Apellido
<label aria-label="(Campo obligatorio)"></label>
<span aria-hidden="" style="color:#c43b1d">*</span></div>
<div dir="auto" style="display:block;margin:.1em 0 .25em 0;color:#666"></div>
org.opendatakit.briefcase.util.BadFormDefinition: Form definitions are incompatible.
at org.opendatakit.briefcase.model.BriefcaseFormDefinition.resolveAgainstBriefcaseDefn(BriefcaseFormDefinition.java:212)
at org.opendatakit.briefcase.model.BriefcaseFormDefinition.resolveAgainstBriefcaseDefn(BriefcaseFormDefinition.java:81)
at org.opendatakit.briefcase.util.ServerFetcher.downloadFormAndSubmissionFiles(ServerFetcher.java:147)
at org.opendatakit.briefcase.util.TransferFromServer.doAction(TransferFromServer.java:43)
at org.opendatakit.briefcase.ui.BriefcaseCLI.run(BriefcaseCLI.java:182)
at org.opendatakit.briefcase.ui.MainBriefcaseWindow.main(MainBriefcaseWindow.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<script>
jQuery(document).ready(function($){
var timelineBlocks = $('.cd-timeline-block'),
offset = 0.8;
//hide timeline blocks which are outside the viewport
hideBlocks(timelineBlocks, offset);
//on scolling, show/animate timeline blocks when enter the viewport
$(window).on('scroll', function(){
app.use(function(req, res, next) {
res.header('Access-Control-Allow-Credentials', true);
res.header('Access-Control-Allow-Origin', req.headers.origin);
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.header('Access-Control-Allow-Headers', 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept');
if ('OPTIONS' == req.method) {
res.send(200);
} else {
next();
}
###############################################################################
#
# Copyright (C) 2014, Tavendo GmbH and/or collaborators. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
@moracarlos
moracarlos / opencv-python-ipcam.py
Created August 3, 2016 03:02 — forked from thearn/opencv-python-ipcam.py
python-opencv ip camera example
import base64
import time
import urllib2
import cv2
import numpy as np
"""
Examples of objects for image frame aquisition from both IP and
url = 'http://banesco.com/wp-content/uploads/img.jpg'
if startsWith(url, 'http://banesco.com/') {
new_url = str_replace('http://banesco.com/', 'http://cdntest2014.cloudapp.net', url)
ajax_call(new_url)
}
if startsWith(url, 'http://bneco-adm-2015.cloudapp.net/') {
new_url = str_replace('http://bneco-adm-2015.cloudapp.net/', 'http://cdntest2014.cloudapp.net', url)
ajax_call(new_url)
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
#REWRITE WP-LOGIN.PHP#
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RedirectMatch 301 /wp-login.php(.*) /$1
#RedirectMatch 301 /wp-admin(.*) /$1
{
"title": "WC1",
"configuration": {
"widgets": {
"8ae59c22-45be-86d5-de96-8480476332f6": {
"isSystemType": true,
"bundleAlias": "charts",
"typeAlias": "basic_timeseries",
"type": "timeseries",
"title": "Timeseries - Flot",