Skip to content

Instantly share code, notes, and snippets.

import pyodbc
import MySQLdb
import datetime
## Select the last event in the MySQL # DEBUG:
connection = ""
mysqldb = MySQLdb.connect(db='blindaje_sistema', user='root', passwd='')
mysqldb = mysqldb.cursor()
@aricore
aricore / search wp
Created July 11, 2018 17:59
search wp
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: No
SITE_URL: http://dmclaw.staging.wpengine.com
HOME_URL: http://dmclaw.staging.wpengine.com
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: No
SITE_URL: http://dmclaw.staging.wpengine.com
HOME_URL: http://dmclaw.staging.wpengine.com
SearchWP Version: 2.9.12
SearchWP License: 723cee4c70bd3391c411e29dc1cb89fc
WordPress Version: 4.9.5
Permalink Structure: /events-media/%postname%/
Active Theme: PaperStreet 1.0
# Apis
## Login
JWT token will be generated in the BE and will be used in each call to verify authenticity.
**Body**
```
url: /v1/login
method: POST
### Keybase proof
I hereby claim:
* I am aricore on github.
* I am aricore (https://keybase.io/aricore) on keybase.
* I have a public key ASDm3GuHkiIO8XVbrQv0Q9BCrvyPwGaY5MClqF5a-kJrNAo
To claim this, I am signing this object:
@aricore
aricore / gist:a641335bc8b460dd1504
Last active September 4, 2015 14:40
Data for application
##Preguntas técnicas:##
1. Para hacer lo siguiente vamos a necesitar un servidor, es necesario que también haya una web?
2. Necesitas alguna panel de control donde administrar los puntos q se agreguen? van a recibir moderación?
3. Los usuarios finales, solo ingresan por los celulares?
4. Los usuarios serán anónimos o necesitas alguna tipo de logueo? Como por ejemplo ingresar con Facebook o Twitter.
5. Ustedes se encargan del diseño de la interfaz? también necesitariamos tener detalles, porque si quieren cosas muy interactivas [diseños raros, transiciones, o cosas raras se puede encarecer tmb]. Lo ideal sería basarse en elementos q ya existen de la interfaz de cada sistema, iOS y Android, ya que al haber distintos dispositivos, las medidas de pantalla cambian.
1. No es necesario por el momento q haya web.
$formValues = $this->input->post(NULL, TRUE);
//Certifications Array
$certifications = array(
'date_of_certification',
'date_certification_expires',
'chef',
'deck',
'diving',
'engineering',