Skip to content

Instantly share code, notes, and snippets.

😃
Improving leasing with code.

Fernando Dorantes fdorantesm

😃
Improving leasing with code.
Block or report user

Report or block fdorantesm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.php
<?
function parse($view,$data){
$vars = array();
foreach($data as $key=>$value){
$vars[] = '{'.$key.'}';
}
@fdorantesm
fdorantesm / err.json
Created Aug 12, 2017
Mongoose duplicated key
View err.json
{
"status": 400,
"message": "insertDocument :: caused by :: 11000 E11000 duplicate key error index: morado.properties.$cert_1 dup key: { : \"predial2.pdf\" }",
"data": {
"code": 11000,
"index": 0,
"errmsg": "insertDocument :: caused by :: 11000 E11000 duplicate key error index: morado.properties.$cert_1 dup key: { : \"predial2.pdf\" }",
"op": {
"updatedAt": "2017-08-12T22:43:06.593Z",
"createdAt": "2017-08-12T22:43:06.593Z",
@fdorantesm
fdorantesm / Queretaro.geojson
Last active Oct 3, 2017 — forked from anonymous/map.geojson
Queretaro metropolitan area
View Queretaro.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fdorantesm
fdorantesm / map.geojson
Last active Oct 3, 2017
Geofence Yapp Querétaro
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fdorantesm
fdorantesm / map.geojson
Last active Oct 12, 2017
Geocerca de Tepatitlán de Morelos
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View helpers.php
<?php
function human_implode($glue = ",", $last = "y", $elements = array(), $filter = null){
if ($filter) {
$elements = array_map($filter, $elements);
}
$str = implode("{$glue} ", $elements);
@fdorantesm
fdorantesm / sessions.php
Created Feb 22, 2018
PHPSESSID Helper functions
View sessions.php
<?php
function decode_session($data){
$temp = $_SESSION;
session_decode($data);
$out = $_SESSION;
$_SESSION = $temp;
return $out;
}
View maps.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="yo" style="width: 480px; height:320px;"></div>
<div id="taq" style="width: 480px; height:320px;"></div>
<div id="genotipo" style="width: 480px; height:320px;"></div>
<script src="maps.js"></script>
@fdorantesm
fdorantesm / classes.css
Last active Apr 22, 2018
Loop classes generator with sass
View classes.css
.p0 {
padding: 0px;
}
.p5 {
padding: 5px;
}
.p10 {
padding: 10px;
@fdorantesm
fdorantesm / flexbox.css
Last active Apr 22, 2018
Grid generator sass mixin
View flexbox.css
.col {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-preferred-size: 0;
flex-basis: 0;
max-width: 100%;
}
.start-xs {
You can’t perform that action at this time.