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
-- Adminer 4.1.0 MySQL dump | |
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS `heatmap`; | |
CREATE TABLE `heatmap` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, |
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
<?php | |
// function order array | |
private static function _getSerialDataSubstitute($data, $extraArray = null) | |
{ | |
$array = array(); | |
//$data = !empty($data[0]) ? $data[0] : array(); | |
$c = 0; | |
if (is_array($data) && count($data) > 0) { |
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
<?php | |
if ($flag && is_array($array) && count($array) > 0) { | |
$fields = ''; | |
$values = ''; | |
foreach ($array as $key => $value) { | |
$fields = "$key,"; | |
$values = "'$value',"; |
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
$oldmask = umask(0); | |
mkdir("test", 0777); | |
umask($oldmask); |
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
/* | |
* | |
* return name sin __ | |
*/ | |
function renameFileNameInSession(name) { | |
var rename = name; | |
var patt = /\w*__(\d*)__.{3,4}/; | |
var result = patt.test(name); | |
if (result) { |
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
/* | |
* validar patron file__101__.txt | |
*/ | |
var patt = /\w*__(\d*)__\.\w{3,4}/; |
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
# create databse sql | |
CREATE DATABASE mydb | |
DEFAULT CHARACTER SET utf8 | |
DEFAULT COLLATE utf8_general_ci; | |
# config in server mysql | |
[mysqld] | |
character-set-server=utf8 | |
collation-server=utf8_general_ci |
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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// ref : http://davidwalsh.name/curl-post | |
// ref2: http://www.silverphp.com/php-curl-function-for-post-and-get-request.html | |
class Cron extends MY_Controller { | |
/** | |
* | |
*/ |
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
#!/bin/bash | |
### Install Redmine (http://www.redmine.org) from scratch | |
### This script is intended for Ubuntu/Debian-based systems | |
### Copyright (c) 2014, Nikolay Khodov (https://github.com/nikolaykhodov) | |
### All rights reserved. | |
### Redistribution and use in source and binary forms, with or without | |
### modification, are permitted provided that the following conditions are |
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
<?php $string = ''; | |
foreach ($point as $key => $arreglo) { | |
foreach($arreglo as $indice => $value) { | |
$string .= "{x:".$arreglo['x'].", y:".$arreglo['y'].", value:50},"; continue; | |
} | |
} | |
if($string != '') { | |
$string = substr($string, 0, -1); | |
} | |
?> |